Hey
I've done some research to get a "spiked carapace"-like passive ability.
Reminder : it returns XX% of the damage dealt to the attacker.
I'm stuck. What I've done for now :
Dummy Behavior, given to the one with the spiked carapace
Global Behavior, given to every other units. It gives them negative lifesteal (effectively dealing XX% of the attacker damage to himself).
I got that right, but my validator to verifiy if the attacked unit has the dummy behavior is not working (hence everybody get damage returned).
My Validator is this :
UnitHasNoSpikedCarapace
Validator - Behavior Spiked CarapaceUser ( dummy )
Validator - Compare Not Equal To
Validator - Unit + (None):Source
Validator - Value 1
Then my global behavior got this :
Behavior - Validators (Disable) (UnitHasNoSpikedCarapace)
Am I on the right track ? What am I doing wrong ? I'd be glad if somebody can help, and I'm sure that'll help a lot of people trying to make the same passive ability.
So it only works when your units have anything but 1 stack of the behaviour on the souce unit and not the target? Also you need to put the validator into your -ve leech buff. Also why not make your spiked carapace a damage response that applies the -ve life steal buff with the validator that it needs to fire at the caster (Unit Order).
I've think it throught, and I believe that the damage response will apply the behavior AFTER the damage is done.
So it isn't quite perfect since the unit with the behavior
1) can attack someone else and the spiky carapace will still have effect even if it's not the spiky carapace user
2) will not work at the first attack
Even if I have not tested it, I think that's what will happend.
What do you think ?
I'm a bit stuck actually.
I've done an apply effect to damage effect, and it works well...
Except that as I predicted :
1) the first attack doesn't trigger the passive (no damage thrown back at attacker)
2) that negative lifesteal stick forever. I tryed to make a validator for the unit to attack the target, but I'm a bit confused how I'm supposed to fill the fields for that.
I'm sure I'll be able to handle 2), but 1) stays definitivly a problem, and I'm wondering if I'm not going deeper in the wrong direction ...
Unit Order validator would work for the disable in that if it is applied by the caster unit you could then set that validator to only return true when targeting the caster.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Thanks for your answers you've been providing, but I'm sorry, I read your sentence a couple times, I still don't get it.
I must say that I have no idea how the whole "target" linked with the "effect" thing work (in validators). I'd love you or somebody could explain what I must enter in the validator's field precisely, because I have no clue right now what I am doing, and my countless tests are taking very long time...
As life leech in general requires a target you are making it that if the target is the unit that applies the nega leech buff it becomes invalid so does not work.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Okay, didn't see the edited post about the fields. I got this right.
I don't have now the results, but I think I got it. I'll post when I'm done.
The only thing that people said that was misleading was the whole damage response point. An effect is NOT applied before the attack but after.
Thanks you people for all your answers.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey I've done some research to get a "spiked carapace"-like passive ability. Reminder : it returns XX% of the damage dealt to the attacker.
I'm stuck. What I've done for now :
Dummy Behavior, given to the one with the spiked carapace Global Behavior, given to every other units. It gives them negative lifesteal (effectively dealing XX% of the attacker damage to himself). I got that right, but my validator to verifiy if the attacked unit has the dummy behavior is not working (hence everybody get damage returned).
My Validator is this : UnitHasNoSpikedCarapace
Validator - Behavior Spiked CarapaceUser ( dummy ) Validator - Compare Not Equal To Validator - Unit + (None):Source Validator - Value 1
Then my global behavior got this : Behavior - Validators (Disable) (UnitHasNoSpikedCarapace)
Am I on the right track ? What am I doing wrong ? I'd be glad if somebody can help, and I'm sure that'll help a lot of people trying to make the same passive ability.
So it only works when your units have anything but 1 stack of the behaviour on the souce unit and not the target? Also you need to put the validator into your -ve leech buff. Also why not make your spiked carapace a damage response that applies the -ve life steal buff with the validator that it needs to fire at the caster (Unit Order).
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
I've think it throught, and I believe that the damage response will apply the behavior AFTER the damage is done.
So it isn't quite perfect since the unit with the behavior 1) can attack someone else and the spiky carapace will still have effect even if it's not the spiky carapace user 2) will not work at the first attack
Even if I have not tested it, I think that's what will happend. What do you think ?
I thought exactly the same thing, but according to my tests, the behavior gets applied before the damage is dealt.
Thx for your answer so far !
I'm a bit stuck actually. I've done an apply effect to damage effect, and it works well... Except that as I predicted :
1) the first attack doesn't trigger the passive (no damage thrown back at attacker)
2) that negative lifesteal stick forever. I tryed to make a validator for the unit to attack the target, but I'm a bit confused how I'm supposed to fill the fields for that.
I'm sure I'll be able to handle 2), but 1) stays definitivly a problem, and I'm wondering if I'm not going deeper in the wrong direction ...
Unit Order validator would work for the disable in that if it is applied by the caster unit you could then set that validator to only return true when targeting the caster.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
Validator - Other Unit + Spiked Carapace - Damage sent back at attacker:Caster
Validator - Unit + Spiked Carapace - Damage sent back at attacker:Target
This is an order unit validator. Did I do this right ? If so, I messed up somewhere else.
Was more likely thinking the Validator - Unit - Value at source or origin and the Target - Target - Value set to caster on the -ve life leech buff.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
Thanks for your answers you've been providing, but I'm sorry, I read your sentence a couple times, I still don't get it.
I must say that I have no idea how the whole "target" linked with the "effect" thing work (in validators). I'd love you or somebody could explain what I must enter in the validator's field precisely, because I have no clue right now what I am doing, and my countless tests are taking very long time...
As life leech in general requires a target you are making it that if the target is the unit that applies the nega leech buff it becomes invalid so does not work.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
And how can I enter such a specific unit into the validator ? That's what I'm asking
If a buff is applied by a unit it still knows it's own caster.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Okay, didn't see the edited post about the fields. I got this right. I don't have now the results, but I think I got it. I'll post when I'm done.
The only thing that people said that was misleading was the whole damage response point. An effect is NOT applied before the attack but after. Thanks you people for all your answers.