Mod:Creation Kit/QueryStat - Game

Member of: Mod:Creation Kit/Game Script

Queries the value of the specified misc stat.

Syntax
int Function QueryStat(string asStat) native global

Parameters

 * asStatName: The name of the misc stat

Return Value
The current value of the specified misc stat if it is found, or 0 if the specified misc stat is not found.

Examples
if (Game.QueryStat("Houses Owned") == 5) Debug.Trace("Player owns 5 houses!") endif
 * Query the "Houses Owned" stat