Difference between revisions of "MessageBox Tutorial"

Jump to navigation Jump to search
20 bytes added ,  13:35, 20 July 2007
imported>Haama
imported>Haama
Line 28: Line 28:


===Where to place MessageBox and GetButtonPressed===
===Where to place MessageBox and GetButtonPressed===
[[MessageBox]] takes one frame to display, so you can use any [[BlockTypes|block]] to display it. However, [[GetButtonPressed]] needs to be in a [[BlockTypes|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 the player's decision is caught. This is because it will take at least a few frames for the player to read the menu and make a decision (as well as some other peculiarities).
[[MessageBox]] takes one frame to display, so you can use any [[:Category:Blocktypes|block]] to display it. However, [[GetButtonPressed]] needs to be in a [[:Category:Blocktypes|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 the player's decision is caught. This is because it will take at least a few frames for the player to read the menu and make a decision (as well as some other peculiarities).


===Keep 'em separated===
===Keep 'em separated===
Anonymous user

Navigation menu