Difference between revisions of "MessageBox Tutorial"

15 bytes added ,  13:34, 20 July 2007
m
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 [[BlockType]] to display it. However, [[GetButtonPressed]] needs to be in a [[BlockType]]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 [[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).


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