Background for Skyrim SE
Member of the Game script
intfunctionQueryStat(stringasStat)NativeGlobal

Description

Wiki Description

Queries the value of the specified misc stat.

Documentation Comment

Queries the given stat and returns its value


Caveats

CK Wiki - Notes

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

The following is a list of valid stats to query.

  • Locations Discovered
  • Dungeons Cleared
  • Days Passed
  • Hours Slept
  • Hours Waiting
  • Standing Stones Found
  • Gold Found
  • Most Gold Carried
  • Chests Looted
  • Skill Increases
  • Skill Books Read
  • Food Eaten
  • Training Sessions
  • Books Read
  • Horses Owned
  • Houses Owned
  • Stores Invested In
  • Barters
  • Persuasions
  • Bribes
  • Intimidations
  • Diseases Contracted
  • Days as a Vampire
  • Days as a Werewolf
  • Necks Bitten
  • Vampirism Cures
  • Werewolf Transformations
  • Mauls
  • Quests Completed
  • Misc Objectives Completed
  • Main Quests Completed
  • Side Quests Completed
  • The Companions Quests Completed
  • College of Winterhold Quests Completed
  • Thieves' Guild Quests Completed
  • The Dark Brotherhood Quests Completed
  • Civil War Quests Completed
  • Daedric Quests Completed
  • Dawnguard Quests Completed
  • Dragonborn Quests Completed
  • Questlines Completed
  • People Killed
  • Animals Killed
  • Creatures Killed
  • Undead Killed
  • Daedra Killed
  • Automatons Killed
  • Favorite Weapon
  • Critical Strikes
  • Sneak Attacks
  • Backstabs
  • Weapons Disarmed
  • Brawls Won
  • Bunnies Slaughtered
  • Spells Learned
  • Favorite Spell
  • Favorite School
  • Dragon Souls Collected
  • Words Of Power Learned
  • Words Of Power Unlocked
  • Shouts Learned
  • Shouts Unlocked
  • Shouts Mastered
  • Times Shouted
  • Favorite Shout
  • Soul Gems Used
  • Souls Trapped
  • Magic Items Made
  • Weapons Improved
  • Weapons Made
  • Armor Improved
  • Armor Made
  • Potions Mixed
  • Potions Used
  • Poisons Mixed
  • Poisons Used
  • Ingredients Harvested
  • Ingredients Eaten
  • Nirnroots Found
  • Wings Plucked
  • Total Lifetime Bounty
  • Largest Bounty
  • Locks Picked
  • Pockets Picked
  • Items Pickpocketed
  • Times Jailed
  • Days Jailed
  • Fines Paid
  • Jail Escapes
  • Items Stolen
  • Assaults
  • Murders
  • Horses Stolen
  • Trespasses
  • Eastmarch Bounty
  • Falkreath Bounty
  • Haafingar Bounty
  • Hjaalmarch Bounty
  • The Pale Bounty
  • The Reach Bounty
  • The Rift Bounty
  • Tribal Orcs Bounty
  • Whiterun Bounty
  • Winterhold Bounty

Parameters

stringasStat

CK Wiki Description

The name of the misc stat


Examples

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

Auto-Generated Example

string myString__asStat

int returnedValue = Game.QueryStat(myString__asStat)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.