Difference between revisions of "MessageBox Tutorial"
Jump to navigation
Jump to search
→Where to place MessageBox and GetButtonPressed
imported>Haama (→Intro: Warning) |
imported>Haama |
||
|
elseif (Choice == 0)</pre>
===
MessageBox takes one frame to display, so you can use any [[:Category:Blocktypes|block]] to display it. However, GetButtonPressed needs to be in a block that continuously runs (i.e., [[GameMode]], [[MenuMode]], [[ScriptEffectUpdate]]) and needs to be on a script that is running every frame (i.e., an activator that is in a loaded cell, a quest running every .001 seconds, etc.), until it returns the player's button press. This is necessary as it will take more than a frame for the player to read the menu and make a decision (as well as some other peculiarities).
| |||