Trigger - Damage area

nicolas

New Member
Reaction score
2
So i got this simple trigger using the action - Damage area:

Untitled Trigger 001
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Teleport
Actions
Wait 0.15 seconds
Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 150.00 at (Position of (Triggering unit)), dealing (100.00 + (Mana of (Triggering unit))) damage of attack type Spells and damage type Normal


Though i dont know if this is supposed to be but when it damages the area it also damages the triggering unit. Is this normal since i thought it would only damage the enemies of the casting unit and if its normal how can i change it so it doesnt dmg the casting unit?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Well, it's normal, so the only way to do this is to pick all enemy units in the range you want and use the action Damage Target instead of area ;)
 

simonake

New Member
Reaction score
72
Use a trigger like this one.
Trigger:
  • Unit Group - Pick every unit in 500 range of (Position of (Triggering Unit)) matching((Matching unit) belong to an Enemy of (Owner of (Triggering unit)) and do (Actions)
    • Loop -
      • Unit - Cause (Triggering unit) to deal 500 damage to (Picked unit)
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Here's a leakless trigger, sorry simonake but ...:
Trigger:
  • Damage
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Animate Dead
    • Actions
      • Set TempPoint = (Position of (Triggering unit))
      • Set Temp_Group = (Units within 150.00 of TempPoint matching ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and (((Matching unit) is alive) Equal to True)))
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Unit - Cause (Triggering unit) to damage (Picked unit), dealing (100.00 + (Mana of (Triggering unit))) damage of attack type Spells and damage type Normal
      • Custom script: call DestroyGroup(udg_Temp_Group)
      • Custom script: call RemoveLocation(udg_TempPoint)
 

Moon_Raven

New Member
Reaction score
8
Here:
Trigger:
  • Spell
    • Events
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units within 150.00 of (Position of (Triggering unit))) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Picked unit) Not equal to (Triggering unit)
            • Then - Actions
              • Unit - Cause (Triggering unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
            • Else - Actions

EDIT: crap, I'm late :D
 
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