Difference between revisions of "MessageBox Tutorial"

Jump to navigation Jump to search
5 bytes added ,  10:53, 26 August 2007
imported>Haama
(→‎Intro: Warning)
imported>Haama
elseif (Choice == 0)</pre>
 
===WhereWhich Block to placerun MessageBox and GetButtonPressed?===
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).
 
Anonymous user

Navigation menu