• 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.

[General] cast on self hotkey?

Status
Not open for further replies.

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,881
On 1.32+ you can detect when a button is pressed. This works with the Hotkey as well.
  • press ability
    • Events
      • Game - Button for ability Hex and order Orc Shadow Hunter - Hex pressed.
    • Conditions
    • Actions
      • Set Variable HexPressed = True
Player presses Escape:
  • escape
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
      • HexPressed Equal to True
    • Actions
      • Unit - Order YourUnit to Orc Shadow Hunter - Hex YourUnit
      • Set Variable HexPressed = False
Triggering Player will work in the first trigger but I'm not sure about Triggering Unit.

You'll probably want to detect when the player cancels with right clicks/the actual Cancel ability. You can use Mouse Events for right click detection and I believe there's a way to detect Cancel as well. Maybe through Orders or a specific Event.
 
Last edited:
Status
Not open for further replies.
Top