This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

Difference between revisions of "User:Niaht/Notes"

Jump to navigation Jump to search
16 bytes added ,  02:56, 27 December 2007
m
no edit summary
imported>Niaht
m
imported>Niaht
m
Line 1: Line 1:
So far everything here really refers to Quest Scripts. I'm in the process of creating some testing packages, and since I just want the scripts to run at start...
So far everything here mostly refers to Quest Scripts. I'm in the process of creating some testing packages, and since I just want the scripts to run at start...


== Scripting ==
== Scripting ==


===Functions ===
===Functions ===
[[MessageBox]]: This function is blocking, so why did multiple successive message boxes in a single Quest script not appear?
[[MessageBox]]: To display multiple message boxes in succession you must create a state engine, and check GetButtonPressed in between each call until the user does. Otherwise the second will override the first and so on.


Now I've managed to make a messagebox come up without the mouse cursor. The game continued on. I had to enter the console to be able to click the messagebox. Hitting escape also wouldn't display the mouse cursor.
Issue: My first message box still appears without the cursor, and the game is still in-play.


===Category:Variables===
===Category:Variables===
Variables are declared outside the scope of a Block (or event handler) (Begin [BlockName]). We "Set" them inside a block.
Variables can be declared outside and inside the scope of a Block (or event handler) (Begin [BlockName]). They can only be assigned a value (Set) inside a block.


What happens to them after that? If the block is run again, the variables will be re-set (not reset)?. If you wrap your Set in a conditional, do the variables retain their values after being set once? What happens when the game is restarted?
What happens to them after that? If the block is run again, the variables will be re-set (not reset)?. If you wrap your Set in a conditional, do the variables retain their values after being set once? What happens when the game is restarted?
Anonymous user

Navigation menu