Difference between revisions of "MessageBox Tutorial"
Jump to navigation
Jump to search
→GetButtonPressed: Note on following frames
imported>Haama (→Basic Mechanics of MessageBox and Related Functions: Example script no longer needed) |
imported>Haama (→GetButtonPressed: Note on following frames) |
||
|
*...
*'''''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
<pre>if (GetButtonPressed == -1)
...
elseif (Choice == 0)</pre>
Likewise, GetButtonPressed will return -1 for all following frames (until the script runs another messagebox).
===Timing===
| |||