• 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] How to make interruption function in my map?

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
You need to keep track of the abiliites being cast with another system (might require you make it). You can then look up which ability the unit is casting at the time it takes damage.

Such a system could be made roughly with 2 triggers and a hashtable. When the unit starts an ability you use the hashtable to map the ability type to the unit. When the unit finishes an ability and the hashtable says the ability is being cast you then remove the mapping from the hashtable. In your damage response trigger you can look up which ability the unit is casting with the hashtable.

Be warned that the GUI action for ability type is currently broken and causes the editor to crash on selection as it tries to use the jass type rather than an integer (what GUI expects).
 
Status
Not open for further replies.
Top