Unit

Unit are objects that represent a type of character or object with RPG traits, and contains a list of Stats and Attributes.

Units in an RPG Just like in most RPGs, a Class defines a type character with different values. For example, a Mage will have the same Stats and Attributes as a Knight, but their values and progression may differ, making the Mage grow his magic abilities at a much higher rate than the Knight, which focuses on its physical ones.

Property

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

  • Array[Attribute] attrs: The Attributes list defines all the attributes linked to this particular class.

  • Array[Stat] stats: The Stats list defines all the stats linked to this particular class, including the ones that define the max cap of Attributes.

Create a Unit resource

Just like stats.

Last updated