I have a unit with an instant ability that toggles between two passive modes (switches between passive movement speed or passive damage boost), and I want the command card to show a different passive button depending on the toggle mode. When I first conceived of this, I was planning to use the trigger to show/hide abilities. Unfortunately, a passive button on the command card is not an ability.
Is there any way to show/hide a passive button?
Any given unit can be using either mode A or mode B at any given time, so is it possible to make a requirement that only affects a single individual unit? I think if this were somehow possible I could use "show" requirements to hide the passive button until the toggle mode is changed.
The Terran Ghost has an ability called "Hold Fire" which basicly switches between two modes by applying a behavior. Everytime he uses the ability, the first button disappears and the second one for "deactivating" appears. There are also 2 requirements linked to this ability that check if a unit has a behavior or not. You could look into this and change it as you like.
A requirement can check for much stuff at single units. For your example, a check fot the Behavior Count at Unit would probably be useful. Just look it up in the requirement, the rest should be self-explanatory.
I have a unit with an instant ability that toggles between two passive modes (switches between passive movement speed or passive damage boost), and I want the command card to show a different passive button depending on the toggle mode. When I first conceived of this, I was planning to use the trigger to show/hide abilities. Unfortunately, a passive button on the command card is not an ability.
Is there any way to show/hide a passive button?
Any given unit can be using either mode A or mode B at any given time, so is it possible to make a requirement that only affects a single individual unit? I think if this were somehow possible I could use "show" requirements to hide the passive button until the toggle mode is changed.
Thanks!
@SkrowFunk: Go
The Terran Ghost has an ability called "Hold Fire" which basicly switches between two modes by applying a behavior. Everytime he uses the ability, the first button disappears and the second one for "deactivating" appears. There are also 2 requirements linked to this ability that check if a unit has a behavior or not. You could look into this and change it as you like.
@SkrowFunk: Go
A requirement can check for much stuff at single units. For your example, a check fot the Behavior Count at Unit would probably be useful. Just look it up in the requirement, the rest should be self-explanatory.
Thanks for the advice!
Using the "show" requirement for "Count Behavior - Complete at Unit" allowed me to toggle the passive icon on and off between individual units.
Boom baby!
Dont forget to set the button as restricted under the abilities.
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
What exactly is this for? It seems to work fine without this setting for me, and had no noticeable effect when I tried it.