Difference between revisions of "MessageBox Tutorial"

295 bytes added ,  13:56, 14 June 2007
no edit summary
imported>Haama
imported>Haama
Line 156: Line 156:
Begin onActivate
Begin onActivate
   Set Choosing to -1
   Set Choosing to -1
  If (GetInSameCell player == 0)
    MoveTo player
  Endif
End
End


Line 164: Line 161:


Begin GameMode
Begin GameMode
  If (GetInSameCell player == 0) ;always keep it near the player
    MoveTo player
    Return
  Endif
   If (Choosing == 0) ;meaning it shouldn't be running
   If (Choosing == 0) ;meaning it shouldn't be running
     If (GetInSameCell YourXMarker == 0)
     If (GetInSameCell YourXMarker == 0)
Line 201: Line 204:
Begin onActivate
Begin onActivate
   Set Choosing to -1
   Set Choosing to -1
End
Begin GameMode
   If (GetInSameCell player == 0)
   If (GetInSameCell player == 0)
     MoveTo player
     MoveTo player
    Return
   Endif
   Endif
End




Begin GameMode
   If (Choosing == 0) ;meaning it shouldn't be running
   If (Choosing == 0) ;meaning it shouldn't be running
     If (GetInSameCell YourXMarker == 0)
     If (GetInSameCell YourXMarker == 0)
Line 308: Line 314:


==Extras==
==Extras==
Need your menu to do more? Well, here's some extra snippets of code:
That will take care of most menu systems you'll ever want to create. However, there is still more functioniality you can add to your menus. From here, you can either get it all by using the following script, or pick and choose using the mini-tutorials:
<br>'''''Mmmm... sleep... I'll add these shortly...'''''
<br>'''''Mmmm... sleep... I'll add these shortly...'''''
<br>[[Messagebox_Tutorial:_Centralizing_Your_Menu_Exits|Centralizing your menu exits]]
<br>[[Messagebox_Tutorial:_Centralizing_Your_Menu_Exits|Centralizing your menu exits]]
Line 314: Line 320:
<br>Ensuring your menus are seen
<br>Ensuring your menus are seen
<br>[[Messagebox_Tutorial:_Set_Variables|Allowing the player to set a variable to any number]]
<br>[[Messagebox_Tutorial:_Set_Variables|Allowing the player to set a variable to any number]]
<br>Controlling the menu system via external scripts
<br>[[User:Haama|Haama]] 02:08, 14 June 2007 (EDT)
<br>[[User:Haama|Haama]] 02:08, 14 June 2007 (EDT)
[[Category: Scripting Tutorials]]
[[Category: Scripting Tutorials]]
Anonymous user