Difference between revisions of "MessageBox Tutorial/Quest Scripts"

→‎Setup: Changed script to reflect new one in main tutorial
imported>Haama
imported>Haama
(→‎Setup: Changed script to reflect new one in main tutorial)
If (Choosing == 0) ;meaning it shouldn't be running
Return
 
 
Elseif (Choosing == -1) ;Display your menu
Messagebox "Which option?" "First Option" "Second Option" ;... "Tenth Option"
Set Choosing to 1
Set Choice to -1
 
Elseif (Choosing == 1) ;Catch the player's decision
If (Choice == -1) ;No choice yet
;run your code for the second decision
Set Choosing to 0 ;to finish up
;...
; Elseif (Choice == 9) ;Final/Tenth Option▼
;Further illustrations of more options
;run your code for the tenth decision▼
; Elseif (Choice == #) ;Nth Option
; Set Choosing to 0 ;to finish up▼
;run your code for the nth decision
 
▲; Set Choosing to 0
▲; Elseif (Choice == 9) ;Final/Tenth Option
▲ ;run your code for the tenth decision
; Set Choosing to 0
Endif
Endif
Anonymous user