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

How to make poison kill the unit instead of give it 1 life?

Status
Not open for further replies.
Level 11
Joined
Jul 9, 2009
Messages
927
You can only do this by triggers
  • Envenom
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacked unit) has buff Envenomed Spears ) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of (Attacked unit)) Equal to 1.00
        • Then - Actions
          • Unit - Kill (Attacked unit)
        • Else - Actions
If you dont know how to use Triggers/GUI
you should learn first. here are some links on GUI Triggering. Happy Mapping.
 
You can trigger your poison spell.

All of warcraft3 ladder posion abilities leave enemy with 1 hp?
Disease yes, enchantress yes, but not sure about wyvern one.

Warden's one should be usefull for you. It kills enemy, but it displays texttag unfortunately.

@Saif your need loop for proper 'killing', since your trigger kills enemy only when it's being attacked.
 
Last edited:
Level 11
Joined
Jul 9, 2009
Messages
927
oh yeah sorry I forgot about that xD
  • Envenom
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacked unit) has buff Poison (Stacking)) Equal to True
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Add (Attacked unit) to PoisonGroup
      • Unit Group - Pick every unit in PoisonGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Life of (Attacked unit)) Equal to 1.00
            • Then - Actions
              • Unit - Kill (Attacked unit)
            • Else - Actions
I guess this one is the right trigger :)
 
Status
Not open for further replies.
Top