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

Respond to "A unit Finishes casting an ability"

Status
Not open for further replies.
Level 11
Joined
May 26, 2009
Messages
760
Below are my triggers. The game text works which must mean the ability is compatible with the event. But how do I shape the kill-action to make the unit targeted of the ability to die?

  • Events
    • Unit - A unit Finishes casting an ability
  • Conditions
    • (Ability being cast) Equal to Blow Up
  • Actions
    • Game - Display to (All players) the text: Works this far?
    • Unit - Kill (Target of ability being cast)
Yours,
Chizume
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set Hash = (Last created hashtable)
  • Untitled Trigger 002 Copy
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to ...
    • Actions
      • Hashtable - Save Handle Of(Target unit of ability being cast) as (Key unit) of (Key (Triggering unit)) in Hash
  • Untitled Trigger 002 Copy 2
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to ...
    • Actions
      • Unit - Kill (Load (Key unit) of (Key (Triggering unit)) in Hash)
 
Wouldn't these triggers work better?
  • Kill-spell 1
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to ...
    • Actions
      • Set Kill_This_Unit = (Target unit of ability being cast)
  • Kill-spell 2
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to ...
    • Actions
      • Unit - Kill (Kill_This_Unit)
 
Status
Not open for further replies.
Top