Need help with a spell, Slowing effects stay active

turok255

New Member
Reaction score
30
So I got this spell that slows enemy movement / attack speed. It works exactly how I want it to but after the spell is over the units are still slow. Heres the trigger.

Code:
Vine Trap
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Sprout |cffffcc00V|rines 
    Actions
        Set LastPoint = (Target point of ability being cast)
        Special Effect - Create a special effect at LastPoint using Abilities\Spells\NightElf\Tranquility\Tranquility.mdl
        Set specialeffect = (Last created special effect)
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Unit - Create 1 dummy vine for (Owner of (Casting unit)) at (Random point in (Region centered at LastPoint with size (500.00, 500.00))) facing Default building facing degrees
                Set dummyunit = (Last created unit)
                Unit - Add a 15.00 second Generic expiration timer to dummyunit
        Wait 14.00 seconds
        Custom script:   set udg_LastPoint = null
        Special Effect - Destroy specialeffect

The dummy units with the ability to slow units are gone though.
 

turok255

New Member
Reaction score
30
Yeah its duration was set at 0. If I change it to 0.01 will that work? and i'll fix the trigger

EDIT: How can I fix the random point leak?
 

Larcenist

REP: Respect, Envy, Prosperity?
Reaction score
211
set TempLoc = Random point in <region>...

Add that just above your current line, then refer to TempLoc rather than random point...

Also add "call RemoveLocation (udg_TempLoc)" below.
 
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