Difference between revisions of "QueryStat - Game"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Cdcooley
 
imported>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
m (→‎Notes: added list stats from sMiscStatXXX from GameSetting window)
Line 24: Line 24:
== Notes ==
== Notes ==
QueryStat can be used to query any misc stat that the game tracks.
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 Used
* 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 Also ==
== See Also ==

Revision as of 03:05, 14 June 2020

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.

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 Used
  • 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 Also