• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Solved] How to damage all units on the map that have X buff?

Status
Not open for further replies.
Level 3
Joined
Jan 30, 2009
Messages
32
I made a simple fire wall spell, it makes some dummies with the fire trap model, i set their animation speed to 0% and it looks pretty nice but how can i make the units near those dummies get damaged? I don't want to use spells like blizzard or rain of fire cause i want its damage to scale with caster's intelligence (about 1x intelligence of caster each sec the unit stays near it) so I just gave the dummy the rain of fire ability (with no damage, just for the buff) and ordered it to cast at its origin and gave it a buff called "Burning". I want to make a trigger that damages every unit on the map every 0.1 sec that has the buff "Burning", dealing 0.1 x caster's intelligence. How can i do this? :vw_wtf:
 
Last edited:
  • Untitled Trigger 001
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff Accuracy ) Equal to True)) and do (Actions)
        • Loop - Actions
          • Unit - Cause (Casting unit) to damage (Picked unit), dealing (Real((Intelligence of (Casting unit) (Include bonuses)))) damage of attack type Spells and damage type Normal
1. Don't forget to remove leaks
2. When casting the spell use variable unit and set it to casting unit then replace the casting unit in loop actions with the variable unit.
 
Status
Not open for further replies.
Back
Top