Difference between revisions of "MessageBox Tutorial/Quest Scripts"

Jump to navigation Jump to search
→‎Setup: Changed script to reflect new one in main tutorial
imported>Haama
imported>Haama
(→‎Setup: Changed script to reflect new one in main tutorial)
Line 36: Line 36:
   If (Choosing == 0) ;meaning it shouldn't be running
   If (Choosing == 0) ;meaning it shouldn't be running
     Return
     Return


   Elseif (Choosing == -1) ;Display your menu
   Elseif (Choosing == -1) ;Display your menu
     Messagebox "Which option?" "First Option" "Second Option" ;...
     Messagebox "Which option?" "First Option" "Second Option" ... "Tenth Option"
     Set Choosing to 1
     Set Choosing to 1
     Set Choice to -1
     Set Choice to -1
   Elseif (Choosing == 1) ;Catch the player's decision
   Elseif (Choosing == 1) ;Catch the player's decision
     If (Choice == -1) ;No choice yet
     If (Choice == -1) ;No choice yet
Line 52: Line 50:
       ;run your code for the second decision
       ;run your code for the second decision
       Set Choosing to 0 ;to finish up
       Set Choosing to 0 ;to finish up
;...  
;...
;Further illustrations of more options
;   Elseif (Choice == 9) ;Tenth Option
;    Elseif (Choice == #) ;Nth Option
      ;run your code for the tenth decision
      ;run your code for the nth decision
;     Set Choosing to 0 ;to finish up
;      Set Choosing to 0
 
;    Elseif (Choice == 9) ;Final/Tenth Option
      ;run your code for the tenth decision
;     Set Choosing to 0
     Endif
     Endif
   Endif
   Endif
Anonymous user

Navigation menu