Difference between revisions of "MessageBox Tutorial"
Jump to navigation
Jump to search
→Activator Script: Using Variable-Loaded method, changed around extra button info
imported>Haama (→Activator: Note on Reference Editor ID) |
imported>Haama (→Activator Script: Using Variable-Loaded method, changed around extra button info) |
||
|
===Activator Script===
<pre>scn YourMenuScript
Short Working
Short Choosing
Short Choice
Begin onActivate
Set Choosing to -1
Set
Endif▼
End
Begin GameMode
If Working
If (Choosing == 0) ;meaning it shouldn't be running
Set Reset to 0▼
▲ Endif
Elseif (Choosing == -1) ;Display your menu
Messagebox "Which option?" "First Option" "Second Option"
Set Choosing to 1
Set Choice to -1
;run your code for the second decision
Set Choosing to 0 ;to finish up
;...
; Set
▲; Elseif (Choice == 9) ;Final/Tenth Option
▲ ;run your code for the tenth decision
Endif
Endif
End</pre>
You can start your menus from any script with <pr>YourActivatorsReferenceEditorID.Activate player, 1</pre>.
| |||