put the Validator "Caster Not In Combat", in the Behavior's "Behavior - Validators (Remove)" field. This validator is of the type Unit Compare Damage Taken Time.
I don't think that's what he wants. He wants a "shield" that lasts until the unit takes damage, then it does something and disappears. Yes, you can do this. The behavior needs to fire a "remove behavior" effect in its damage response.
I did not mean a protective shield. In MtG "Shield" is a kind of slang for something that waits for an event, does something once, then goes away. Your method doesn't accomplish this. Based on his description, he wants a behavior that ends when the unit takes damage, not when the unit is in combat (which doesn't require taking damage at all)
Hi. I am using validator to remove behavior if unit takes damage. You must found validator with name IsUnderFire(Unnamed). Then, duplicate him and call it Is Not Under Fire. Change validator type on or. And field validator - negate - enabled. Now go to behavior that you want to remove when unit takes damage and in field behavior - validators(remove) add this validator.
I was wondering if there was a way of removing a specific behavior if a unit takes damage while under the effect of that behavior.
Specifically, is there a way to do this without having to use triggers, and use "Unit takes damage"?
@AegisD: Go
put the Validator "Caster Not In Combat", in the Behavior's "Behavior - Validators (Remove)" field. This validator is of the type Unit Compare Damage Taken Time.
@AegisD: Go
I don't think that's what he wants. He wants a "shield" that lasts until the unit takes damage, then it does something and disappears. Yes, you can do this. The behavior needs to fire a "remove behavior" effect in its damage response.
A shield? Where do you see anything about a shield?
Either way, there are multiple ways of doing this, and the second way would require creating a new Remove Behavior effect.
@BorgDragon: Go
I did not mean a protective shield. In MtG "Shield" is a kind of slang for something that waits for an event, does something once, then goes away. Your method doesn't accomplish this. Based on his description, he wants a behavior that ends when the unit takes damage, not when the unit is in combat (which doesn't require taking damage at all)
@BorgDragon: Go
Thanks, this method worked!
@shardfenix: Go
Since BorgDragon's method worked I didn't try yours, but thanks for the reply anyway!
Hi. I am using validator to remove behavior if unit takes damage. You must found validator with name IsUnderFire(Unnamed). Then, duplicate him and call it Is Not Under Fire. Change validator type on or. And field validator - negate - enabled. Now go to behavior that you want to remove when unit takes damage and in field behavior - validators(remove) add this validator.
http://www.youtube.com/user/RussianMapster