Ability Effects
Last updated
Last updated
Ability Effects are separated into small pieces of related functionality, and can be chained together like building blocks to build up quite complex spells. The 3 main groups of functionality are:
Attached effects are tracked by the CharacterStats class on the actual character, have a length that can be extended or refreshed, and are capable of both directly affecting a character's stats, and performing additional effects over their lifetime.
Targeting and timing effects are responsible for deciding when and where to trigger additional effects. They may choose valid targets from a group of targets, direct the motion of physical prefabs, and determine how long spell effects remain in the game before they are destroyed. They cannot perform any direct action on a character, but can call any other effect, including effects which can perform actions on characters.
Action effects perform actions on characters. Current action capabilities include resurrection, teleportation, healing, and damage dealing.