Help with this trigger

ReDruMMurDeR

Member
Reaction score
0
Trigger:
  • Events
    • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Forked Lightning (a dummy target ability)
    • Actions
      • Unit Group - Add (Target unit of ability being cast) to tempunitgroup
      • For each (Integer A) from 1 to 3, do (Actions)
        • o Loop - Actions
          • Set temppoint = (Position of (Target unit of ability being cast))
          • Set tempunitgroup2 = (Units within 400.00 of temppoint matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and (((Matching unit) is in tempunitgroup) Equal to False)))
          • Unit Group - Add (Random unit from tempunitgroup2) to tempunitgroup
          • Custom script: call DestroyGroup (udg_tempgroup2)
          • Custom script: call RemoveLocation (udg_temppoint)
      • Unit Group - Pick every unit in tempunitgroup and do (Actions)
        • Loop - Actions
          • Set temppoint = (Position of (Casting unit))
          • Set temppoint2 = (Position of (Picked unit))
          • Lightning - Create a Forked Lightning lightning effect from source temppoint to target temppoint2
          • Unit - Cause (Casting unit) to damage (Picked unit), dealing (2.00 x ((Real((Intelligence of (Casting unit) (Include bonuses)))) x (Real((Level of Forked Lightning for (Casting unit)))))) damage of attack type Spells and damage type Normal
          • Custom script: call DestroyGroup (udg_tempgroup)
          • Custom script: call RemoveLocation (udg_temppoint)
          • Custom script: call RemoveLocation (udg_temppoint2
          • Custom script: call DestroyLightning(udg_TempLightningEffect)


that is the trigger i use but the lightning dosnt get removed AND the point of attack dosnt remove so it attacks 2 places at once
 

soulmaka

New Member
Reaction score
2
you should set your variables after actions and before the unit group action.. not within the loop
 

soulmaka

New Member
Reaction score
2
dont you have the
Trigger:
  • Lightning - Destroy (Last created lightning effect)
 

ReDruMMurDeR

Member
Reaction score
0
hm fixes one problem but it still attacks 2 places at once

wait dosnt fix lightning because it makes no effect at all
 
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