• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Spell] How to select the ablity using triggers?

Status
Not open for further replies.
Level 6
Joined
Dec 27, 2013
Messages
261
As it says it will automactitcly select the ablity then leaves the player to target.

For example.
A airstrike ablity from a dialog is selected
you could target the airstrike by selecting in to a point without selecting it manually.
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
Oh, that can not be done very well. The closest way is forcing a keyboard hotkey.
Otherwise you can also order the unit to cast it immediately, but this is probably not what you want.

Another way is catching the "Unit is issued an order targeting a point" event and then acting as if it was an ability cast (only with triggered spells).
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
Something like this
  • Hotkey
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Game - Force Player 1 (Red) to press the key A
The exact implementation depends on your map. You might have to check if the right unit is selected, otherwise who knows what that hotkey does.
 
Status
Not open for further replies.
Top