Ive got 2 buffs -> Buff A and Buff B
when Buff A is active it should be removed if you apply buff B and vice versa (via abilities)
so every buff needs a Behavior Validator (Remove)
so far so clear
now im messing around with the 2 validators (has buffA which checks if buffA is Equal to 1 on the caster, has buffB which checks if buffB is Equal to 1 on the caster) and can't figure out how they need to be.
atm when i apply one of the buffs it is instantly removed, and in the beginning there is no buff active at the target.
Don't know about how to mess around with validators, but you can do it like that:
Make two new effects of type "Remove Behavior". Effect A should remove Buff B, Effect B should remove Buff A.
Then you go to your behaviors. In Buff A you add Effect A to "Effect - Effect - Initial". In Buff B you add Effect A at the same place.
Now they'll remove each other every time you apply one of them.
Something you might also consider is whether the "Behavior - Validator(Remove)" activates [and removes the behavior] when the validator returns true or when it returns false. So, when you apply BuffA and it checks the the "Has BuffB" then I would expect that if BuffB is applied, then the validator will return true, else it will return false, and I believe the field is looking for when the validator returns false.
This might not be necessary now, but later it might be good to have these validators worked out for when they're necessary.
Hope that helps!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
My problem:
Ive got 2 buffs -> Buff A and Buff B
when Buff A is active it should be removed if you apply buff B and vice versa (via abilities)
so every buff needs a Behavior Validator (Remove)
so far so clear
now im messing around with the 2 validators (has buffA which checks if buffA is Equal to 1 on the caster, has buffB which checks if buffB is Equal to 1 on the caster) and can't figure out how they need to be.
atm when i apply one of the buffs it is instantly removed, and in the beginning there is no buff active at the target.
so whats wrong?
Don't know about how to mess around with validators, but you can do it like that:
Make two new effects of type "Remove Behavior". Effect A should remove Buff B, Effect B should remove Buff A.
Then you go to your behaviors. In Buff A you add Effect A to "Effect - Effect - Initial". In Buff B you add Effect A at the same place.
Now they'll remove each other every time you apply one of them.
thx that works fine :)
@Cryfor: Go
Something you might also consider is whether the "Behavior - Validator(Remove)" activates [and removes the behavior] when the validator returns true or when it returns false. So, when you apply BuffA and it checks the the "Has BuffB" then I would expect that if BuffB is applied, then the validator will return true, else it will return false, and I believe the field is looking for when the validator returns false.
This might not be necessary now, but later it might be good to have these validators worked out for when they're necessary.
Hope that helps!