Aura Problem

turondo

New Member
Reaction score
1
Well I have a triggered aura called Elusion Aura (basically adds evasion to units in range)

but for some reason when i've tested it it only gave the buff to like 2 diff unit types in the area (my hero and an archer unit) and i dont think it even gives an evasion effect to the units (when attacking them there wasnt any evasion..)

HTML:
Elusion Aura
    Events
        Time - Every 0.25 seconds of game time
    Conditions
    Actions
        Set Leak_UnitGroup = (Units in (Playable map area) matching (((Matching unit) has buff Elusion Aura ) Equal to True))
        Unit Group - Pick every unit in Leak_UnitGroup and do (Actions)
            Loop - Actions
                Unit - Add Elusion  to (Picked unit)
        Set Leak_UnitGroup2 = (Units in (Entire map) matching (((Matching unit) has buff Elusion Aura ) Equal to False))
        Unit Group - Pick every unit in Leak_UnitGroup and do (Actions)
            Loop - Actions
                Unit - Remove Elusion  from (Picked unit)
        Custom script:   call DestroyGroup(udg_Leak_UnitGroup)
        Custom script:   call DestroyGroup(udg_Leak_UnitGroup2)

please tell me what i've done wrong in this trigger >_<
 
N

no0by

Guest
The only thing I can see is that you have refrenced "Leak_UnitGroup" twice in both loops, so it will add it then remove the evasion ability straight away.

Code:
Elusion Aura
    Events
        Time - Every 0.25 seconds of game time
    Conditions
    Actions
        Set Leak_UnitGroup = (Units in (Playable map area) matching (((Matching unit) has buff Elusion Aura ) Equal to True))
        Unit Group - Pick every unit in Leak_UnitGroup and do (Actions)
            Loop - Actions
                Unit - Add Elusion  to (Picked unit)
        Set Leak_UnitGroup2 = (Units in (Entire map) matching (((Matching unit) has buff Elusion Aura ) Equal to False))
        Unit Group - Pick every unit in [COLOR="Red"]Leak_UnitGroup[/COLOR] and do (Actions)
            Loop - Actions
                Unit - Remove Elusion  from (Picked unit)
        Custom script:   call DestroyGroup(udg_Leak_UnitGroup)
        Custom script:   call DestroyGroup(udg_Leak_UnitGroup2)

Just change that to "Leak_UnitGroup2" and it should work correctly
 
N

no0by

Guest
Also i've just noticed that you're destroying the groups wich could cause problems if the trigger runs again.
Just change that to "Unit Group - Clear" or the WE equvelent function.
 

turondo

New Member
Reaction score
1
new problem.. sorta..

this kinda lags a bit when its running.. so how exactly can i make it less laggy.. will making it into JASS make it less laggy?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top