QueryStat - Game

Revision as of 14:31, 1 November 2011 by imported>Cdcooley
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: 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

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

Notes

QueryStat can be used to query any misc stat that the game tracks.

See Also