• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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