QueryStat - Game

Revision as of 02:54, 24 March 2024 by 78.27.117.218 (talk) (Corrected "Fusion Cores Consumed", as the string actually used in the script differs from what is displayed on the Pip-Boy.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Game Script

Queries the value of the specified misc stat.

SyntaxEdit

int Function QueryStat(string asStat) native global

ParametersEdit

  • asStatName: The name of the misc stat

Return ValueEdit

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

ExamplesEdit

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

NotesEdit

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

See AlsoEdit