Difference between revisions of "Global"

310 bytes added ,  11:54, 20 February 2012
no edit summary
imported>Scornett-Bot
m (Script running global find and replace: Category:Object Classes for Category:Objects)
 
imported>Jog
Line 10: Line 10:
** If checked, the '''Value''' of this Global is not expected to change during gameplay, and will not be saved with save game data.
** If checked, the '''Value''' of this Global is not expected to change during gameplay, and will not be saved with save game data.
** If unchecked, the '''Value''' is expected to change, and will be saved.
** If unchecked, the '''Value''' is expected to change, and will be saved.
==Accessing Global Variables==
===Scripting===
To access global variables in Papyrus scripts, one needs to use the functions [[GetValue]] and [[SetValue]]
set myhour to GameHour.Getvalue()
GameHour.Setvalue(10)
===Console===
In the Console global variables can be adressed directly:
set GameHour to 10


[[Category:Miscellaneous]]
[[Category:Miscellaneous]]
[[Category:Object Classes]]
[[Category:Object Classes]]
Anonymous user