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

trigger help

Status
Not open for further replies.
Level 3
Joined
Jul 3, 2004
Messages
45
im making a trigger spell and cant find the damage trigger that does a set amount of damage not a percentage to enemy units nerby the caster if someone could make a map with a trigger like this 1 so i can coppy paste it onto my map that would be great
 
Level 13
Joined
May 5, 2004
Messages
1,330
Hm, perhaps this helps (event -> finishes casting... / condition -> ability being...)

Actions
Unit Group - Pick every unit in (Units within 512.00 of (Position of (Casting unit)) matching (((Owner of (Picked unit)) controller) Equal To Hostile)) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 150.00)


I made the whole trigger, but for your question only this should be important:

Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 150.00)

This removes 150 hp (from enemy units (if using the trigger above, didn't test it))
 
Status
Not open for further replies.
Top