Trigger - Damage area

Discussion in 'World Editor Help' started by nicolas, May 2, 2009.

  1. nicolas

    nicolas New Member

    Ratings:
    +2 / 0 / -0
    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?
     
  2. Komaqtion

    Komaqtion You can change this now in User CP.

    Ratings:
    +469 / 0 / -0
    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 ;)
     
  3. simonake

    simonake New Member

    Ratings:
    +72 / 0 / -0
    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)
     
  4. nicolas

    nicolas New Member

    Ratings:
    +2 / 0 / -0
    Ah oke, thx alot.
     
  5. Komaqtion

    Komaqtion You can change this now in User CP.

    Ratings:
    +469 / 0 / -0
    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)
     
  6. Moon_Raven

    Moon_Raven New Member

    Ratings:
    +8 / 0 / -0
    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
     
  7. Komaqtion

    Komaqtion You can change this now in User CP.

    Ratings:
    +469 / 0 / -0
    hehe, sorry :S :p
     
  8. simonake

    simonake New Member

    Ratings:
    +72 / 0 / -0
    I know ,Komaqtion

    It's just to show how.
     

Share This Page