Difference between revisions of "MessageBox Tutorial"

Jump to navigation Jump to search
113 bytes added ,  10:40, 29 August 2007
→‎GetButtonPressed: Note on following frames
imported>Haama
imported>Haama
(→‎GetButtonPressed: Note on following frames)
Line 18: Line 18:
*...
*...
*'''''9''''' for the tenth(you can have 10 options at most)
*'''''9''''' for the tenth(you can have 10 options at most)
#GetButtonPressed will only return the correct button press the first time it's called in a script; any other use of GetButtonPressed will return -1. For instance, if the player presses the first button, then in the following script
#GetButtonPressed will only return the correct button press the first time it's called in a script; any other use of GetButtonPressed will return -1. For instance, if the player presses the first button, then in the following script
<pre>if (GetButtonPressed == -1)
<pre>if (GetButtonPressed == -1)
Line 31: Line 32:
...
...
elseif (Choice == 0)</pre>
elseif (Choice == 0)</pre>
Likewise, GetButtonPressed will return -1 for all following frames (until the script runs another messagebox).


===Timing===
===Timing===
Anonymous user

Navigation menu