Difference between revisions of "MessageBox Tutorial"
Jump to navigation
Jump to search
→Starting, stopping, and the first menu: Links
imported>Haama |
imported>Haama |
||
|
==Avoiding Common Mistakes for More Complex Menus==
===Starting, stopping, and the first menu===
You won't want your menu script to run all the time, so it needs a clear beginning and a clear ending. On activators you can use the [[onActivate]] block and use [[ReferenceEditorID.Activate|Activate player,
<pre>begin onActivate
messagebox "What would you like to do?" "Button 0" ... "Button 9"
...
set Choosing to 0 ;Whenever you want to exit the menu</pre>
===Keeping multiple menus separated===
| |||