I want remove a self behavior(buff) when specific effect work. (or when a unit attack to others) so I might to make validator using for behavior-validator(remove).
I could find validator-unit ability, but in this case buff is removed as soon as order ability ( it is casting ability).
I don't want remove buff before effect happen.
apply a behavior to the casting unit with the effect and count validate this behavior to disable the other
you can do the same with the weapon of the unit, replace the dmg with a set and apply a buff the the caster and do dmg
Use a NotAttacking (Unnamed). When the unit attacks it will then remove your buff. Or like mentioned earlier get your weapon to have a set effect with a Remove Behavior effect and your desired effect. You could even use a Create Persistent to act as a delay.
I want remove a self behavior(buff) when specific effect work. (or when a unit attack to others) so I might to make validator using for behavior-validator(remove).
I could find validator-unit ability, but in this case buff is removed as soon as order ability ( it is casting ability). I don't want remove buff before effect happen.
How can handle this??
You need to describe what you want to happen in a more logical manner for starters
validators dont do anything other then allow things to happen. They are basically a "true/false" statement in data. when you set off your specific effect you should use a set effect
set effect ( on the set effect you apply the validator( count behaviors on unit => 1 ))
effect you want
remove behavior effect
if your trying to set off a specific effect when attacking you would use an "offensive behavior buff" .... then set what effect you want the behavior to do when the unit attacks.... that effect it does would be the set effect i just explained.
hello...guys.
I want remove a self behavior(buff) when specific effect work. (or when a unit attack to others) so I might to make validator using for behavior-validator(remove).
I could find validator-unit ability, but in this case buff is removed as soon as order ability ( it is casting ability). I don't want remove buff before effect happen.
How can handle this??
apply a behavior to the casting unit with the effect and count validate this behavior to disable the other
you can do the same with the weapon of the unit, replace the dmg with a set and apply a buff the the caster and do dmg
Use a NotAttacking (Unnamed). When the unit attacks it will then remove your buff. Or like mentioned earlier get your weapon to have a set effect with a Remove Behavior effect and your desired effect. You could even use a Create Persistent to act as a delay.
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
the Attacking validators are bad. they trigger if you order the attack not when the unit actually attacks another unit
You need to describe what you want to happen in a more logical manner for starters validators dont do anything other then allow things to happen. They are basically a "true/false" statement in data. when you set off your specific effect you should use a set effect
if your trying to set off a specific effect when attacking you would use an "offensive behavior buff" .... then set what effect you want the behavior to do when the unit attacks.... that effect it does would be the set effect i just explained.