I got a weapon, which applies a behavior to the target when it is attacked. 1 stack per attack, and max stack for the behavior is 3.
I created a validator of the type Unit Combare Behavior Count and set the behavior to my behavior, and the unit to Source, the Compare to Equal to and the value to 3. Then I created an effect of the type Set, and set the validator for the effect to my new validator.
Then I went to my behavior, and set the Initial and Refresh effect to my set effect. But it does not work, do any of you have a clue?
Ugh - well I figured out what was wrong. The behavior did not have the extend and refresh stack flag checked, so it never reached 3 stacks. It works as it should now.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I got a weapon, which applies a behavior to the target when it is attacked. 1 stack per attack, and max stack for the behavior is 3. I created a validator of the type Unit Combare Behavior Count and set the behavior to my behavior, and the unit to Source, the Compare to Equal to and the value to 3. Then I created an effect of the type Set, and set the validator for the effect to my new validator.
Then I went to my behavior, and set the Initial and Refresh effect to my set effect. But it does not work, do any of you have a clue?
Try changing the validator target to Target Unit, Source might still refer to the attacker.
@Photoloss: Go
Ugh - well I figured out what was wrong. The behavior did not have the extend and refresh stack flag checked, so it never reached 3 stacks. It works as it should now.