Difference between revisions of "MessageBox Tutorial"
Jump to navigation
Jump to search
→Activator Script: Corrections
imported>Haama (Corrected) |
imported>Haama (→Activator Script: Corrections) |
||
Line 363: | Line 363: | ||
Messagebox "Which option?" "First Option" "Second Option" ;... | Messagebox "Which option?" "First Option" "Second Option" ;... | ||
Set Choosing to 1 | Set Choosing to 1 | ||
Set Choice to | Set Choice to -1 | ||
Return | Return | ||
Line 369: | Line 369: | ||
If (Choice == -1) ;No choice yet | If (Choice == -1) ;No choice yet | ||
Set Choice to GetButtonPressed | Set Choice to GetButtonPressed | ||
Elseif (Choice == 0) ;First Option | Elseif (Choice == 0) ;First Option | ||
;run your code for the first decision | ;run your code for the first decision | ||
Line 387: | Line 386: | ||
Endif | Endif | ||
End</pre> | End</pre> | ||
You can start your menus from any script with <pr>YourActivatorsReferenceEditorID.Activate player, 1</pre>. | |||
==Moving Between Multiple Menus== | ==Moving Between Multiple Menus== |