Research:Scripting: Difference between revisions

From OpenMW Wiki
Jump to navigation Jump to search
(→‎List of exposed globals: Implementation status)
Line 49: Line 49:
|MonthsToRespawn
|MonthsToRespawn
|1.0
|1.0
|Container respawning
|[[Research:World#Container_respawning|Container respawning]]
|<font color="red">not started, how does this relate to iMonthsToRespawn?</font>
|<font color="red">not started, how does this relate to iMonthsToRespawn?</font>
|-
|-
Line 59: Line 59:
|WerewolfClawMult
|WerewolfClawMult
|1.0
|1.0
|Werewolf melee damage
|[[Research:Combat#Damage|Werewolf melee damage]]
|<font color="red">not started, needs research</font>
|<font color="red">not started, needs research</font>
|-
|-
Line 83: Line 83:
|<font color="green">implemented</font>
|<font color="green">implemented</font>
|}
|}
These defaults are engine defaults that have a lower priority than values read from data files. This means a new game will have the values from the base game data rather than these values.

Revision as of 23:27, 19 July 2014

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 implemented
Year 427.0 implemented
Month 7.0 implemented
Day 17.0 implemented
DaysPassed 1.0 implemented
TimeScale 30.0 implemented
CharGenState 0 Character creation implemented
MonthsToRespawn 1.0 Container respawning not started, how does this relate to iMonthsToRespawn?
PCKnownWerewolf 0 Werewolf transformation not started, needs research
WerewolfClawMult 1.0 Werewolf melee damage not started, needs research
CrimeGoldDiscount 0 Dialogue global variables implemented
CrimeGoldTurnIn 0 implemented
PCHasCrimeGold 0 implemented
PCHasGoldDiscount 0 implemented
PCHasTurnIn 0 implemented

These defaults are engine defaults that have a lower priority than values read from data files. This means a new game will have the values from the base game data rather than these values.