Story Framework 6 is now live! Find more info here.
Story Framework Documentation

Stat Bars

SF includes a easy to manage "Stat Bar" system to enable certain statistics to appear on-screen as progress bars (things such as stamina, health, etc).


Adding new Stat Bars can be done inside of the Framework Settings data asset > System Defaults > Inventory > Player Stat Values array.

Stat Name The "ID" of your Stat. Used to target this specific Stat Bar when modifying it. Stat Value The default "starting" value of your Stat. For example, something like health would start at 100.0 (assuming the range defined below is 0,0 - 100,0). Stat Min / Max Values The value range of your Stat Bar. Stat Color The color of your Stat Bar that appears on the players HUD. Stat Type The "type" of Stat that this is. "Focal Stat" displays as a larger, thicker progress bar than "Side Stat", giving you a way to visually separate more "important" values or Stats.


Modifying and managing a Stat Bars value is as simple as calling the dedicated Stat functions from SF's inventory manager.

These functions can be thrown into things like Quick Actions, Trigger Volumes, Listen for Event Objects, etc to further modularize things.


SF's inventory manager also includes a OnStatModified event dispatcher that can be binded to events to handle custom logic that executes when a Stat reaches 0,0 for instance.


Export to PDF