StatusEffects
Status Effects are temporal ailments that affect a character.
Most RPG games use the same Status Effects, such as Poison, which drains the character's health for a period of time. However, you can create your own and completely customize the afliction.
StatusEffect is s resource.
Property:
StringName id: The ID value must be unique throughout the whole project.
Array[StringName] tags: The tags added to the unit after release.
Int max_stack: Max Stack determines how many of the same Status Effect can be active at a give time on a target.
Float duration: If duration <= 0, the effect will persist indefinitely.
Bool allow_while_ticked: Allowing code to run every frame.
Bool remove_tags_on_finished: Remove tags when finished.
By default, most status effects have a stack limit of 1, meaning that adding the effect again when it has reached its maximum stack will have no effect. However, it is entirely possible to stack multiple instances of, for example, poison, increasing their life drain effect.
Last updated