-
Notifications
You must be signed in to change notification settings - Fork 0
Data Effect
Data\Effect {DataDataEffect}
Effects are the building blocks of abilities and weapons and can be used to launch missiles, perform searches, deal damage, and the like. Effects can be chained together to create complex ability sequences. For example to create a fireball abilities that explodes and deals damage in an area, you can create an effect tree such as Launch Missile > Area Search > Damage. The effects can be configured so that the Launch Missile effect creates an Area Search on impact, which runs a Damage effect on enemy units within a small radius.
Some effects have a Location field which determines where the effect is created. For effects that can only occur on a unit (such as Damage or Apply Behavior) this field may be called Which Unit or Target. Regardless of whether the target type is a unit or location, where the effect is created follows the same general semantics.
If the target type is unit and the specified unit isn't found, then the effect won't be executed.
- Target Unit: the target unit of the previous effect, weapon, ability, or behavior.
- Source Unit: the last unit involved in the effect tree (a previous target, spawned unit, or missile).
- Caster Unit: the first unit involved in the effect tree (typically the unit that used the weapon or ability).
If the target type is location but the target happens to be a unit, then the location of the unit will be used instead.
- Target Location: the target location of the previous effect, weapon, ability, or behavior.
- Source Location: the location of the previous effect in the effect tree.
- Caster Location: the location of first unit involved in the effect tree.
If the target type is unit or location, it will look for a unit first before falling back to a location.
- Target Unit or Location: the target unit/location of the previous effect, weapon, ability, or behavior.
- Source Unit or Location: the last unit/effect location in the effect tree.
- Caster Unit or Location: the first unit/location involved in the effect tree.
- Launch Missile
- Damage
- Area Search
- Persistent
- Kill
- Spawn
- Morph
- Apply Behavior
- Remove Behavior
- Apply Tag
- Remove Tag
- Switch Effect
- Set Waypoints
- Disengage
- Sell
- Heal
- Add Gold
- Teleport
- Teleport Along Waypoint
- Set
- Enumerate Unit List
- Set Bounty
- Remove
- Stop
- Modify Unit
- Issue Ability
- Consume Mana
- Issue Command
- Force
- Attach Unit
- Detach Unit
- Modify Upgrade Level
FieldType: Template
FieldType: Parent
When checked, prints the effect's caster/source/target info to the log.