Not Too Hard Trigger Help

Lghtofthmoon

New Member
Reaction score
0
Hi, I want to damage every enemy unit within 400 range of the casting unit for 4x the casting Hero's agility. I've only been able to figure out how to do the damage to one single unit, rather than have the damage dealt to each individual unit. Can anyone show me what this trigger would look like? :confused: Thanks for the help!
 

kaboo

New Member
Reaction score
45
Code:
-pick every unit in (units in range 400 of casting unit) and do
  -unit deal 4xcasting unit agility damage to picked unit
try this


if you want to add some special effect to the targets then this will be better
Code:
-set targets = units in 400 range from casting unit matching condition ((owner of matching unit) is not an ally of (owner of casting unit))
-for each integer A = 1 to number of units in "targets" do
  -pick 1 random unit from targets
    -unit deal 4xcasting unit agility damage to picked unit
    -create your desired special effect
    -remove picked unit from targets
targets is a unit group variable
 

Tru_Power22

You can change this now in User CP.
Reaction score
144
Trigger:
  • Your Spell
    • Events
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units within 400.00 of (Casting Unit)) and do (Actions)
        • Loop - Actions
    • Comment - Actions Here
 

LightChaosma

New Member
Reaction score
60
you can use damage-area, but this will damage yourself too, so we choose to pick all units within 400 and damage them individually, gimme a few mins

Trigger:
  • urtrigger
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Animate Dead
    • Actions
      • Set temppoint[1] = (Position of (Triggering unit))
      • Set tempunitgroup[1] = (Units within 400.00 of temppoint[1] matching (((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit))) Equal to True))
      • Unit Group - Pick every unit in tempunitgroup[1] and do (Actions)
        • Loop - Actions
          • Unit - Cause (Triggering unit) to damage (Picked unit), dealing (4.00 x (Real((Agility of (Triggering unit) (Include bonuses))))) damage of attack type Spells and damage type Normal
      • Custom script: call DestroyGroup (udg_tempunitgroup[1])
      • Custom script: call RemoveLocation (udg_temppoint[1])
 

Ph[o]bia

New Member
Reaction score
7
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Your Spells
    • Actions
      • Set Group = (Units within 400.00 of CasterPoint matching (((target is A structure) Not equal to True) and (((target belongs to an enemy of (Owner of Caster)) Equal to True) and ((target is Magic Immune) Not equal to True))))
      • Set Caster = (Triggering unit)
      • Set CasterPoint = (Position of Caster)
      • Unit Group - Pick every unit in Group and do (Actions)
        • Loop - Actions
          • Set target = (Picked unit)
          • Unit - Cause Caster to damage target, dealing (4.00 x (Real((Agility of Caster (Include bonuses))))) damage of attack type Spells and damage type Normal
      • Custom script: call DestroyGroup(udg_Group)
      • Custom script: call RemoveLocation(udg_CasterPoint)

this is suppose to be leakless , its not MUI
 

kaboo

New Member
Reaction score
45
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Your Spells
    • Actions
      • Set Group = (Units within 400.00 of CasterPoint matching (((target is A structure) Not equal to True) and (((target belongs to an enemy of (Owner of Caster)) Equal to True) and ((target is Magic Immune) Not equal to True))))
      • Set Caster = (Triggering unit)
      • Set CasterPoint = (Position of Caster)
      • Unit Group - Pick every unit in Group and do (Actions)
        • Loop - Actions
          • Set target = (Picked unit)
          • Unit - Cause Caster to damage target, dealing (4.00 x (Real((Agility of Caster (Include bonuses))))) damage of attack type Spells and damage type Normal
      • Custom script: call DestroyGroup(udg_Group)
      • Custom script: call RemoveLocation(udg_CasterPoint)

this is suppose to be leakless , its not MUI

imo it is MUI since it does not use any other triggers and no waits
 

LightChaosma

New Member
Reaction score
60
why would that not be MUI if the damage is instant? (nice how we both got the same thing :p)


EDIT:
and yet agian some1 jumps to the smae conclusion as me.... THIS TOPIC IS CURSED I TELL YA MATE!! ARRR!! :p
 
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