Difference between revisions of "MessageBox Tutorial"

91 bytes removed ,  11:50, 29 August 2007
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 GetButtonPressed
     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
      Return
     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>
Ok, no games that time. You can start your menus from any script with <u>'''''YourActivatorsReferenceEditorID.Activate player, 1'''''</u> and this script will do the rest.
You can start your menus from any script with <pr>YourActivatorsReferenceEditorID.Activate player, 1</pre>.


==Moving Between Multiple Menus==
==Moving Between Multiple Menus==
Anonymous user