Whats Wrong With this Trigger?

X.Terror.X

New Member
Reaction score
10
Its not working


Trigger:
  • Events
    • Time - Every 0.15 seconds of game time
    • Conditions
    • Actions
      • For each (Integer Pudgy_combo[1]) from 1 to 10, do (Actions)
        • Loop - Actions
          • Set Pudgy_Point_Left = ((Center of CL1 <gen>) offset by (((Distance between (Position of Pudgy_unit[1]) and Lightning_target[1]) x (Real(Pudgy_combo[1]))) / 10.00) towards (Angle from (Center of CL1 <gen>) to Lightning_target[1]) degrees)
          • Unit Group - Pick every unit in (Units within 70.00 of Pudgy_Point_Left) and do (Actions)
            • Loop - Actions
              • Unit Group - Add (Picked unit) to Pudgy_Damage_Able_Unit
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Number of units in Pudgy_Damage_Able_Unit) Not equal to 0
              • (Unit-type of (Matching unit)) Equal to Demon Hunter
        • Then - Actions
          • Unit - Cause none.mdl 0010 <gen> to damage (Picked unit), dealing 10.00 damage of attack type Spells and damage type Normal
        • Else - Actions
 

X.Terror.X

New Member
Reaction score
10
deal damage in a line
this picks 10 aeo's from point A to point B that whould be point A region and point B Lightning Target

it adds the unit that is in the aeo and deals damage to it
and i still have to remove the unit from the unit group
but the porblem now is it doesnt deal damage at all

the trigger should work when i did damage in aeo it worked fine but i dont want that it deals damage to allied units or serval type units
 

Ayanami

칼리
Reaction score
288
This line is wrong.

Trigger:
  • Unit - Cause none.mdl 0010 <gen> to damage (Picked unit), dealing 10.00 damage of attack type Spells and damage type Normal


This line is not in any unit group loop action. Thus, there is no picked unit. I think it should be like this?

Trigger:
  • Unit Group - Pick every unit in Pudgy_Damage_Able_Unit and do (Actions)
    • Loop - Actions
      • Unit - Cause none.mdl 0010 <gen> to damage (Picked unit), dealing 10.00 damage of attack type Spells and damage type Normal


Glenphir
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top