I'm trying to make a shield ability that applies a 'shield buff' and has the following characteristics:
Can be used on either self or ally
Lasts for x seconds
If the buffed target does not take any one instance of damage that is above 50 damage, nothing happens.
If the buffed target takes any one instance of damage that is above 50 damage:
That particular instance of damage will be negated (Meaning no damage dealt)
The shield will be removed
The caster (not the buffed target) will gain shield points dependent on the damage blocked
I have all the animations and basic usage of the ability working (Buff lasting for x seconds, usable on self or ally, etc.) but I can't figure out how to make the bold part working, mainly how to make the behavior be removed when more than 50 damage is taken in one instance. I am aware of the 'Behavior - Remove' field, but I can't find any Validator that can do what I need.
P.S. Would prefer the method to be pure/mainly data and minimal triggers involved.
Well; I'm not the best data editor out there; but I really don't think this is possible, and it'll take 4 lines of code to do it in a trigger, so it's your call on how to do it.
Well, I gave up on making it purely data-based, so I started using triggers. I got the buff 'behavior' to be removed when the buffed target takes any one instance of damage that is at least 50 damage. However, I have been working only with data all along, so I'm lost as to how to make the other 2 to work:
That particular instance of damage will be negated (Meaning no damage dealt)
The caster (not the buffed target) will gain shield points dependent on the damage blocked
Any help on that, whether using data or triggers, will be great.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm trying to make a shield ability that applies a 'shield buff' and has the following characteristics:
I have all the animations and basic usage of the ability working (Buff lasting for x seconds, usable on self or ally, etc.) but I can't figure out how to make the bold part working, mainly how to make the behavior be removed when more than 50 damage is taken in one instance. I am aware of the 'Behavior - Remove' field, but I can't find any Validator that can do what I need.
P.S. Would prefer the method to be pure/mainly data and minimal triggers involved.
Well; I'm not the best data editor out there; but I really don't think this is possible, and it'll take 4 lines of code to do it in a trigger, so it's your call on how to do it.
Well, I gave up on making it purely data-based, so I started using triggers. I got the buff 'behavior' to be removed when the buffed target takes any one instance of damage that is at least 50 damage. However, I have been working only with data all along, so I'm lost as to how to make the other 2 to work:
Any help on that, whether using data or triggers, will be great.