Narrat Docs
Search
⌃K
Narrat Docs
Search
⌃K
Narrat
Functions Documentation
All commands list
Save Commands
String commands
Text Commands
Random Generation
Logical Operators
Math commands
Jump
Choice
Modifying variables
If
Left-side Viewport commands
Clear Dialog
Audio commands (music and sounds)
Wait
Skills Commands
Notify
Stats Commands
Add Stat
Set Stat
Get Stat Value
Text Field
Features
Quests
Transitions
Inventory
HUD Stats
Screens
Skills System
Saving and Reloading
Playing Audio
Functions
Guides
Getting Help
Language syntax and expressions
Using items
Updating narrat
Getting Started
Old Template method
Config files
Useful Links
Theming the game and UI
Installing Narrat in a web app
Editing a narrat game
Building and exporting your game
Publishing on Steam (Steamworks integration)
Examples
Example Config
Example narrat script
Powered By GitBook

Set Stat

​
The set_stat function in narrat sets a HUD stat to a specified value
Syntax: set_stat [statId] [value]
See HUD Stats page for more info on this feature
Example:
set_stat currency 100
Previous
Add Stat
Next
Get Stat Value
Last modified 8mo ago
Copy link