Difference between revisions of "MessageBox Tutorial"

2 bytes added ,  01:11, 14 June 2007
no edit summary
imported>Haama
imported>Haama
Line 192: Line 192:




==Multiple Menus in 1 Script==
==Multiple Menus in One Script==
Not only will the above code work, but it makes multiple menus easy to do. Remember that each menu has two parts: the display of the menu and catching the player's decision. So, each menu can be broken into two numbers, a negative number ('''''-1''''' in the example above) and a positive number ('''''1''''' in the example above). Use different numbers for each menu, and whenever you want to move to a new menu, use <u>'''''set Choosing to -#'''''</u>. Here's several examples of menu switching: (also, please note that due to wiki limitations, the messageboxes below have been given line breaks, whereas in the CS they wouldn't have one)
Not only will the above code work, but it makes multiple menus easy to do. Remember that each menu has two parts: the display of the menu and catching the player's decision. So, each menu can be broken into two numbers, a negative number ('''''-1''''' in the example above) and a positive number ('''''1''''' in the example above). Use different numbers for each menu, and whenever you want to move to a new menu, use <u>'''''set Choosing to -#'''''</u>. Here's several examples of menu switching: (also, please note that due to wiki limitations, the messageboxes below have been given line breaks, whereas in the CS they wouldn't have one)
<pre>Short Choosing
<pre>Short Choosing
Anonymous user