Difference between revisions of "MessageBox Tutorial"

Jump to navigation Jump to search
295 bytes added ,  13:56, 14 June 2007
no edit summary
imported>Haama
imported>Haama
Begin onActivate
Set Choosing to -1
If (GetInSameCell player == 0)▼
MoveTo player▼
Endif▼
End
 
 
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 (GetInSameCell YourXMarker == 0)
Begin onActivate
Set Choosing to -1
▲ If (GetInSameCell player == 0)
MoveTo player▼
Endif▼
End
 
 
Begin GameMode
▲ If (GetInSameCell player == 0)
▲ MoveTo player
Return
▲ Endif
 
 
If (Choosing == 0) ;meaning it shouldn't be running
If (GetInSameCell YourXMarker == 0)
 
==Extras==
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:
Need your menu to do more? Well, here's some extra snippets of code:
<br>'''''Mmmm... sleep... I'll add these shortly...'''''
<br>[[Messagebox_Tutorial:_Centralizing_Your_Menu_Exits|Centralizing your menu exits]]
<br>Ensuring your menus are seen
<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)
[[Category: Scripting Tutorials]]
Anonymous user

Navigation menu