Research:Scripting

From OpenMW Wiki
Revision as of 20:26, 19 July 2014 by Hrnchamd (talk | contribs) (New section on script global variables.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Script commands

See Scripting (status).


Script global variables

Engine data exposed to scripts through script global variables, rather than accessor functions.

List of exposed globals

ID Default value Used in Implementation status
GameHour 12.0 Time system
Year 427.0
Month 7.0
Day 17.0
DaysPassed 1.0
TimeScale 30.0
CharGenState 0 Character creation
MonthsToRespawn 1.0 Container respawning
PCKnownWerewolf 0 Werewolf transformation
WerewolfClawMult 1.0 Werewolf melee damage
CrimeGoldDiscount 0 Dialogue global variables
CrimeGoldTurnIn 0
PCHasCrimeGold 0
PCHasGoldDiscount 0
PCHasTurnIn 0