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

[Solved] Need help creating specialized trigger condition.

Status
Not open for further replies.
Level 14
Joined
Mar 27, 2008
Messages
1,003
So basically I have a trigger that runs a skill which kills the caster and displays text.

Now the only problem is, I have another trigger that runs if a unit is killed and that displays text too.

What I need to do is create a condition that makes it so the second trigger does not run if the reason the unit is dead is because of that skill.

Can anyone help?
 
Level 14
Joined
Mar 27, 2008
Messages
1,003
Can you post the triggers?
http://www.hiveworkshop.com/forums/miscellaneous-tutorials-456/how-easily-post-triggers-163285/

You can try
Trigger - turn off death detection
-kill caster-
Trigger - turn on death detection

Here's the spell trigger -

  • Suicide
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Suicide
    • Actions
      • Unit - Kill (Triggering unit)
      • Game - Display to (All allies of Player 1 (Red)) the text: |cffff0000One of th...
      • Game - Display to (All allies of Player 12 (Brown)) the text: |cffff0000A mortal ...
Here's the second trigger (the one where I need to add the condition in)

  • Player Death from Environment
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Owner of (Dying unit)) Not equal to Player 12 (Brown)
      • (Owner of (Dying unit)) Not equal to Neutral Hostile
      • (Owner of (Dying unit)) Not equal to Neutral Passive
      • (Owner of (Killing unit)) Not equal to Player 12 (Brown)
      • (Owner of (Killing unit)) Not equal to Neutral Hostile
      • (Owner of (Killing unit)) Not equal to Neutral Passive
    • Actions
      • Game - Display to (All allies of Player 1 (Red)) the text: |cffff0000The dunge...
      • Game - Display to (All allies of Player 12 (Brown)) the text: |cffff0000A mortal ...
 
Status
Not open for further replies.
Top