• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Command Button That Calls A Trigger To Run

Status
Not open for further replies.
Level 2
Joined
Nov 9, 2013
Messages
10
Is it possible to create an ability that - when its command card button is pressed - will make a trigger run?

For example: I have created triggers that change terrain type to simulate road construction.

All I need to do now is create a button on the command card that will allow one of my custom "road construction units" to trigger the terrain changing trigger.

Is this possible? I guess I need to create a new ability for the custom unit. But I don't know how to link that new ability to my terrain changing trigger.
 
Level 2
Joined
Nov 9, 2013
Messages
10
OK. I think I get it. Now all I need is a button on the unit's command card to cast the ability.

I know that pre-loaded abilities come with their own command card buttons. How can I create a command button for my custom ability? Or should I just select a pre-loaded ability and simply change some stats, and just use the pre-loaded ability's command button?
 
Level 2
Joined
Nov 9, 2013
Messages
10
Awesome, thanks.

PS... I guess there's no way to create our own icons for custom command buttons using MS Paint or other drawing program and then importing it into our maps, is there?
 
Status
Not open for further replies.
Top