Difference between revisions of "MenuMate Tutorial"
Jump to navigation
Jump to search
→Script
imported>Speedo (→XML) |
imported>Speedo (→Script) |
||
Line 15: | Line 15: | ||
scn BankDemoScript | scn BankDemoScript | ||
int accountBalance | int accountBalance | ||
ref playerRef | ref playerRef | ||
int playerGold | int playerGold | ||
int minVar | int minVar | ||
int temp | int temp | ||
int invert | int invert | ||
int displayStatus | |||
float fQuestDelayTime | |||
begin MenuMode | |||
if (displayStatus) | |||
mmUpdate | |||
endif | |||
end | |||
begin GameMode | begin GameMode | ||
set fQuestDelayTime to 0.0001 | |||
set | |||
if (displayStatus == 0) | |||
set playerRef to player | |||
StopQuest BankDemo | set playerGold to player.GetItemCount Gold001 | ||
set minVar to 0 | |||
set temp to 0 | |||
set invert to 0 | |||
if (mmLoadMenu "demo.xml") | |||
set displayStatus to 1 | |||
else | |||
PrintC "menu failed to load" | |||
StopQuest BankDemo | |||
endif | |||
elseif (mmGetStatus == 1) | |||
set displayStatus to 0 | |||
StopQuest BankDemo | |||
endif | |||
end | end | ||
</pre> | </pre> |