Difference between revisions of "MessageBox Tutorial"
Jump to navigation
Jump to search
m
→Starting, stopping, and the first menu: Fixed link
imported>Haama |
imported>Haama m (→Starting, stopping, and the first menu: Fixed link) |
||
Line 66: | Line 66: | ||
==Avoiding Common Mistakes for More Complex Menus== | ==Avoiding Common Mistakes for More Complex Menus== | ||
===Starting, stopping, and the first menu=== | ===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. | 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 [[Activate|ReferenceEditorID.Activate player, 1]] to start the menu: | ||
<pre>begin onActivate | <pre>begin onActivate | ||
messagebox "What would you like to do?" "Button 0" ... "Button 9" | messagebox "What would you like to do?" "Button 0" ... "Button 9" |