Say I wanted to have an ability that can only be cast on units with a specific behavior, such that clicking an invalid unit gives an error message similar to clicking on a point with an ability that can only target units or clicking on a structure with an ability that cannot target structures. Can this be done?
Say I wanted to have an ability that can only be cast on units with a specific behavior, such that clicking an invalid unit gives an error message similar to clicking on a point with an ability that can only target units or clicking on a structure with an ability that cannot target structures. Can this be done?
Yes, just add the desired validator to the effect of the ability.
Custom Campaign Initiative | Mapster Community Project: Data Wizards
Starcraft II: Unsung Rebels, a custom campaign for Starcraft II
SC2Saver, a way to create saved games via trigger
Frustrated with the editor and would like answers in real time? Join the SC2Mapster Discord!
I could be wrong, but
wouldn't that cause you to cast the ability and it would not do anything?
Nope, cannot target unless the first effect used by the ability is validated.
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
Now I see, thanks