Dealing damage in an area with triggres

Orphen_123

New Member
Reaction score
2
im trying to make a spell that simply deals damage in an area of 500 around the caster. but when i try and deal the damage (using triggers) it doesnt work. it either damages every unti, including the caster(killing him) or damages no 1. can any1 help, wat triggers should i use
 

Kikac_NNGK

Well-Known Member
Reaction score
33
Pick every unitwithin range 500 of position of triggering unit matching (matching unit is an enemy of triggering player)
Loop actions:
Damage picked unit with damage 300....blah blah
 

Orphen_123

New Member
Reaction score
2
Unit Group - Pick every unit in (Units within 500.00 of (Position of (Casting unit)) matching (((Picked unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True)) and do (Unit - Cause (Casting unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal).

every thing works but it deals damage to every unit within range. so kills the unit casting the spell
 

Kikac_NNGK

Well-Known Member
Reaction score
33
i think it should be fine. Sry but i dont have open WE now cos im in school yet. When i'll get home i'll tell u more. Ok?
 
Reaction score
91
> (Picked unit) belongs to an enemy of (Owner of (Casting unit)
Shouldn't that be Matching unit instead of Picked unit?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top