Difference between revisions of "Globals"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Knightmare348
imported>JOG
(Gave it a more professional look...)
Line 1: Line 1:
A global variable is available for any script or condition to reference without being linked to a particular quest or object. To see a list of all the global variables in what you are working on within TESCS simply go to Gameplay -> Globals in the menu bar.
A global variable is available for any script or condition to reference without being linked to a particular quest or object.


See the [[Global Variable List]] for a list of global variables used in Oblivion.esm.
Global variables are created and modified under '''Gameplay -> Globals'''


You can create your own global variables


*'''EditorID:''' The name of the variable. No spaces or special characters are allowed.
*'''EditorID:''' The name of the variable. No spaces or special characters are allowed.
Line 11: Line 10:
*'''Value:''' The default value for the global variable.
*'''Value:''' The default value for the global variable.


==See also==
[[List of global variables]]


[[Category:Gameplay Menu]]
[[Category:Gameplay Menu]]
[[Category:Scripting]]
[[Category:Scripting]]
[[Category:Variables]]
[[Category:Variables]]

Revision as of 11:57, 3 June 2006

A global variable is available for any script or condition to reference without being linked to a particular quest or object.

Global variables are created and modified under Gameplay -> Globals


  • EditorID: The name of the variable. No spaces or special characters are allowed.
  • Variable Type: Short and Long are actually the same thing. Both are integer formats. Float is a real number format. Internally all types of global variables are stored as 32-bit floats. The technical implementation of this variable-format causes inaccuracies at very high or low values. (e.g all numbers from 2000000000 to 2000000064 are stored as 2000000000)
  • Value: The default value for the global variable.


See also

List of global variables