I have 3 abilities (type behaviour). When one is active and I activate one of the other abilities I want the first ability to deactivate first. How to do it?
Issue 1: Ability is not turned off, only temporarily disabled.
Ability 1 only disables ability 2 for as long as ability 1 is active (like emp revealing a cloacked unit for a few seconds). I need ability 1 to turn off ability 2 not just disable for a limited time.
Issue 2: Does not affect command card Button layouts.
The button layout of the disabled ability "2" is not changed as it is only disabled. So I can not reactivate it as it is still active.
I am not sure, if I understand the problem correctly.
You have 3 abilities of type Behavior on one unit. These behaviors are toggleable, I assume? And you want to toggle off any currently active ability, when you toggle on another one, right? You don't really want to disable an ability as in making it not useable anymore. All abilities are useable at any time, but when used, they deactivate any other currently activated ability.
If this is indeed your desired behavior, I would suggest using Issue Order effects, which issue the order to deactivate the appropriate abilities or Remove Behavior effects, which straight up remove the other behaviors. Execute these with the Effect - Initial field of your behaviors, use a Set effect to execute multiple effects. You want the first behavior to issue the cancel of or remove 2 and 3, the 2nd should remove 1 and 3, you get the idea.
Hello everyone.
I have 3 abilities (type behaviour). When one is active and I activate one of the other abilities I want the first ability to deactivate first. How to do it?
Thanks.
@JohnyGee: Go
In modifications there is field "behaviors enabled/disabled" put the others in there
@LaxSalmon: Go Thank you!
Edited: Unfortunately is not what I want.
Ability 1 only disables ability 2 for as long as ability 1 is active (like emp revealing a cloacked unit for a few seconds). I need ability 1 to turn off ability 2 not just disable for a limited time.
The button layout of the disabled ability "2" is not changed as it is only disabled. So I can not reactivate it as it is still active.
@JohnyGee: Go
Ah ok for 1 then, in the buff, you can add a remove behavior effect in the Effect-Initial field.
Not sure about nr 2, but i guess it should work out if u remove it like above.
I am not sure, if I understand the problem correctly.
You have 3 abilities of type Behavior on one unit. These behaviors are toggleable, I assume? And you want to toggle off any currently active ability, when you toggle on another one, right? You don't really want to disable an ability as in making it not useable anymore. All abilities are useable at any time, but when used, they deactivate any other currently activated ability.
If this is indeed your desired behavior, I would suggest using Issue Order effects, which issue the order to deactivate the appropriate abilities or Remove Behavior effects, which straight up remove the other behaviors. Execute these with the Effect - Initial field of your behaviors, use a Set effect to execute multiple effects. You want the first behavior to issue the cancel of or remove 2 and 3, the 2nd should remove 1 and 3, you get the idea.
It Works!!
Thank you LaxSalmon and Kueken531 for your help. I did your sollution Kueken531.