Difference between revisions of "MessageBox Tutorial"

202 bytes added ,  12:45, 29 August 2007
→‎Activator Script: Reset info added
imported>Haama
(→‎Activator Disadvantages: Examples and Explanations)
imported>Haama
(→‎Activator Script: Reset info added)
Line 336: Line 336:
Short Choosing
Short Choosing
Short Choice
Short Choice
short Reset




Line 341: Line 342:
Begin onActivate
Begin onActivate
   Set Choosing to -1
   Set Choosing to -1
  Set Reset to 1
   If (GetInSameCell player == 0) ;always keep it near the player
   If (GetInSameCell player == 0) ;always keep it near the player
     MoveTo player
     MoveTo player
Line 350: Line 352:
Begin GameMode
Begin GameMode
   If (Choosing == 0) ;meaning it shouldn't be running
   If (Choosing == 0) ;meaning it shouldn't be running
    If Reset
      ;Add anything that needs to be re-initialized,
      ;  or that you changed in the onActivate block that needs to be reset
      Set Reset to 0
    Endif
     If (GetInSameCell YourXMarker == 0)
     If (GetInSameCell YourXMarker == 0)
       MoveTo YourXMarker
       MoveTo YourXMarker
Anonymous user