I've been looking into creating an ability exactly like Prayer of Mending from World of Warcraft.
Basically it applies a Behavior and when a unit takes damage it heals that unit and then bounces to another target, This isnt too tricky. The part I haven't figured out is how do I limit the jumps to 5 times? Or any amount for that matter.
So in short I need help to limit the bounces of this ability to a specific number.
Anyone got any idea of how to accomplish this?
(Found another thread regarding recreating Prayer of Mending, however he didn't want to limit the times it would jump).
So I thought a bit more about my ability and came to the conclusion that what I'm really looking for is a way to Limit how many times an effect is run for a specific Ability Instance.
I thought of adding an (Apply Behavior) effect which applies a buff that stacks 4 times to the Original Caster of the ability, and then having a Validator checking whether or not the stack exceeds 4. However I'm unsure how to make it so that the Original Caster receives the Behavior and not the target which launches the next Bounce of the ability.
Damage Response:
Vitals: -25 Life
Handled: Set Effect
Time Use: 3 Seconds, to ensure it wont trigger again whilst the missile is bouncing to the next target.
Set Effect:
Remove Behavior (1 Stack)
Area Search, validator: Checking if unit has Behavior
if true: Launch Missile > Impact: Transfer Behavior (4 Stacks)
Maximum count: 1
I've been looking into creating an ability exactly like Prayer of Mending from World of Warcraft. Basically it applies a Behavior and when a unit takes damage it heals that unit and then bounces to another target, This isnt too tricky. The part I haven't figured out is how do I limit the jumps to 5 times? Or any amount for that matter.
So in short I need help to limit the bounces of this ability to a specific number.
Anyone got any idea of how to accomplish this?
(Found another thread regarding recreating Prayer of Mending, however he didn't want to limit the times it would jump).
So I thought a bit more about my ability and came to the conclusion that what I'm really looking for is a way to Limit how many times an effect is run for a specific Ability Instance.
I thought of adding an (Apply Behavior) effect which applies a buff that stacks 4 times to the Original Caster of the ability, and then having a Validator checking whether or not the stack exceeds 4. However I'm unsure how to make it so that the Original Caster receives the Behavior and not the target which launches the next Bounce of the ability.
Solved it, was actually really simple.
A tired mind is a slow mind...
This is the Setup.
Ability:
Effect - Target
Launch Missile > Impact: Apply Behavior (4 Stacks).
Behavior:
Damage Response:
Vitals: -25 Life
Handled: Set Effect
Time Use: 3 Seconds, to ensure it wont trigger again whilst the missile is bouncing to the next target.
Set Effect:
Remove Behavior (1 Stack)
Area Search, validator: Checking if unit has Behavior
if true: Launch Missile > Impact: Transfer Behavior (4 Stacks)
Maximum count: 1