Aura buff durations

yunusowic

New Member
Reaction score
7
hi, i need help on a spell i'm making. It's basically a blink which leaves a trail between the casters point and target point for x seconds. Any allied unit who walk through the trail will have increased AS and MS.

I create dummy units which have Slow Aura (Tornado) (75 AoE) but there is a problem. The buff off the aura lasts even though im out of aura range (for a few more seconds). I try to give a duration to the aura skill but it does not work. I found a few topics in forum but couldn't find any useful info.

I need to know if there is a way to make an aura skill give/remove the buff instantly when I enter/leave the area of effect.
 

Curo

Why am I still playing this game...?
Reaction score
109
The residual aura duration is hardcoded, so it can't be modified. I encountered a similar problem once.

Since the trail is made of dummy units, you can check to see if there are any units NOT in range of the trail, but DO have the buff. Then remove the buff via a trigger. It would be a periodic trigger, running every half second or so (or more frequently, if you want to be more accurate).

It would be something like:
- pick every unit matching (matching unit) has buff xxx = true
- set TempGroup = units of type trail within 75 range of (picked unit)
- if number of units in TempGroup = 0, then remove buff xxx from (picked unit)

With leak removal for the 2 groups created, of course...

Edit: I just remembered that you can't pick units with locust in a range/region. I'm guessing your trail has locust, so you'll have to do it backwards. Pick all units of type "trail" first, then compare the distance to units that have the buff. Not quite as easy, but there are a few ways you can do it still.
 

yunusowic

New Member
Reaction score
7
There's a problem with my computer, it wont start. I will try your idea when I get my PC fixed. How about a permanent immolation on dummies? When a unit takes damage and the damage source is dummy I will cast speed spell on them for 1 second. Like you said dummies have locust on them and I'm not sure how to code your idea.

Pick every unit of type trail
Then pick every unit in range of position of picked unit matching unit has buff x equal to true?

Will this work?
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Make your speed skill near-infinite duration, then periodically cast it on allies that don't have the buff. Have another periodic check for units without any dummies within range, yet still have the buff. Remove the buff from those units.

Locust units can be selected through Units Owned By Player and Units of Type functions, I think.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top