Background for Starfield
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 stats by string value that is listed in Game Settings:

  • Animals Friended
  • Animals Killed
  • Armor Mods Crafted
  • Assaults
  • Backstabs
  • Bobbleheads Collected
  • Brotherhood of Steel Quests Completed
  • Bright Ideas
  • Buildings
  • Caps Found
  • Chems Crafted
  • Chems Taken
  • Chests Looted
  • Computers Hacked
  • Cores Ejected
  • Corpses Eaten
  • Creatures Killed
  • Critical Strikes
  • Days Passed
  • Days Survived
  • Automatron Quests Completed
  • Locations Cleared
  • Fatman Deaths
  • Fits of Rage
  • Food
  • Food Cooked
  • Food Eaten
  • Four Leaf Clovers
  • Fusion Cores Consumed
  • Grand Slams
  • Grim Reaper Sprints
  • Happiness
  • Hours Slept
  • Hours Waiting
  • Institute Quests Completed
  • Intimidations
  • Investments Made
  • Items Scrapped
  • Items Stolen
  • Junk Collected
  • Legendary Enemies Killed
  • Locations Discovered
  • Locks Picked
  • Main Quests Completed
  • Mines Disarmed
  • Misc Objectives Completed
  • Minutemen Quests Completed
  • Money Shots
  • Most Caps Carried
  • Murders
  • Mysterious Stranger Visits
  • Objects Built
  • Pants Exploded
  • Paralyzing Punches
  • People
  • People Killed
  • Plants Harvested
  • Pockets Picked
  • Power
  • Quests Completed
  • RadAway Taken
  • Rad-X Taken
  • Ricochets
  • Robots Hacked
  • Robots Killed
  • Railroad Quests Completed
  • Sandman Kills
  • Side Quests Completed
  • Magazines Found
  • Sneak Attacks
  • Persuasion Successes
  • Stimpaks Taken
  • Supply Lines Created
  • Levels Survived
  • Synths Killed
  • Times Addicted
  • Trespasses
  • Turrets Killed
  • Wasteland Whispers
  • Water
  • Weapons Disarmed
  • Weapon Mods Crafted
  • Workshops Unlocked

Misc Stats for Minigames:

  • HSAtomicCommand
  • HSAutomatron
  • HSGrognak
  • HSJangles
  • HSPipfall
  • HSRedMenace
  • HSZetaInvaders

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 Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.