Difference between revisions of "Messagebox Tutorial/GameMode And MenuMode"

Jump to navigation Jump to search
m
→‎A few notes: Better name
imported>Haama
(→‎The script: Updated)
imported>Haama
m (→‎A few notes: Better name)
Line 69: Line 69:
End</pre>
End</pre>


==A few notes==
==A few more notes==
Basically, this works by firing up a menu while in GameMode. The menu will start up the MenuMode block, which will then display the correct menu. The menu I've chosen to display for GameMode is "Exiting options…". I've done this as, if the player happens to see this menu, something has gone wrong and when the player clicks "Done" the options menu will close (I have yet to see this menu, by the way).
Basically, this works by firing up a menu while in GameMode. The menu will start up the MenuMode block, which will then display the correct menu. The menu I've chosen to display for GameMode is "Exiting options…". I've done this as, if the player happens to see this menu, something has gone wrong and when the player clicks "Done" the options menu will close (I have yet to see this menu, by the way).


Line 77: Line 77:


For each menu, you will need to set the ExitButton. This is important so there won't be a menu displayed from the GameMode block after the player has decided to exit. Set it to -2 if there aren't any options that will let the player exit the menu.
For each menu, you will need to set the ExitButton. This is important so there won't be a menu displayed from the GameMode block after the player has decided to exit. Set it to -2 if there aren't any options that will let the player exit the menu.


==Example code (Multiple Menus Script from the MessageBox Tutorial)==
==Example code (Multiple Menus Script from the MessageBox Tutorial)==
Anonymous user

Navigation menu