Stats

Stats are objects that represent a particular numeric trait of a character. This value can evolve throughout the whole game.

Common Stats:

Common stat values on games are strength, dexterity, wisdom, luck, ...

Property

  • StringName id: The ID value must be unique throughout the whole project.

  • Float base_value: The Base Value is the numeric value that the Stat starts with. It is worth noting this value is not necessarily the final value of the Stat, just a mutable numeric value. The final value of a Stat is calculated applying a FlowerModifier. If none asset is provided, the final value is simply the Base Value.

Create a Stat resource

By FilesSystem

Right click on the file system and select "New -> Resources", search "Stat":

By GDScript

like this:

Last updated