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