• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

[Trigger] Execute?

Status
Not open for further replies.
Level 4
Joined
Jul 31, 2008
Messages
109
Make it in two triggers (unitvar - variable type unit)
(trigger 1)
Events
Unit is attacked - (generic unit event)
Conditions
Owner of (attacked unit) not equal owner of (attacking unit) - (player comparison)
Actions
set unitvar = (attacked unit)
run trigger 2 (checking conditions)
(trigger 2 previously turned off, NOT TURNED OFF i hope you understand)
Events
unitvar life becomes smaller than 300.00 - (unit - life)
Conditions
--------------------------------
Actions
kill (attacked unit) - (unit - kill)
 
Status
Not open for further replies.
Top