• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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