Difference between revisions of "MessageBox Tutorial"

Jump to navigation Jump to search
44 bytes added ,  10:59, 29 August 2007
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, it1]] to start the menu:
<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===
Anonymous user

Navigation menu