RtUnitBhv

If a GameObject has this Behaviour, then on the Start Event, the RuntimeUnit gets initialized from the Base Data (UnitBase). You have to specify from which UnitBase it should be initialized.

Initializing a Unit

To initialize a Unit you must provide one of "Unit Base" or "Unit Base Name" …​

RtUnitBhvs know their owning Player.

Every RtUnit has the ability to receive Buffs and Damage.

Notable Stats:

Attack Range:

The attack range of a unit is the range of its weapon.

Unbuffed and Max (Buffed) Vitals

Modifiers to Vitals are found on Behaviors (Attributes and Buffs).

  • Flat modifiers (e.g. plus 10 Life) are found under Behavior→Modifications→Stats→Maximum

  • Percentage modifiers (e.g. plus 10 percent Life) are found under Behavior→Modifications→Vital Max Bonus Fraction.

When using Attributes, percentage modifiers are ignored, as this would quickly escalate to high numbers considering that Attributes have levels.

Unbuffed Vitals

The Unbuffed Vitals are calculated like this: Unit’s Vitals plus Vitals from Attributes.

Buffed Vitals

Buffed Vitals are Unbuffed Vitals plus Vital Modifiers from Buffs.

Note that Buffs can also be applied to a Unit when it equips an Item (see Item → Equip Behavior).