Removing lag from spells =/

Klein~

TH.net Regular
Reaction score
0
Trigger:
  • Frost Immolation
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Frost Immolation
    • Actions
      • For each (Integer A) from 1 to 25, do (Actions)
        • Loop - Actions
          • Set FrostImmoAngle = (14.40 x (Real((Integer A))))
          • Unit - Create 1 DummyFrostBolt for (Triggering player) at (Position of (Casting unit)) facing FrostImmoAngle degrees
          • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
          • Unit Group - Add (Last created unit) to FrostBoltGroup


Trigger:
  • Frost Immolation1
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in FrostBoltGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in (Units within 90.00 of (Position of (Picked unit)) matching ((((Matching unit) is dead) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True) and (((Matching unit) is A structure) Equal to F Greater than 0
            • Then - Actions
              • Unit Group - Pick every unit in (Units within 90.00 of (Position of (Picked unit)) matching (((Matching unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True)) and do (Actions)
                • Loop - Actions
                  • Unit - Cause (Picked unit) to damage circular area after 0.00 seconds of radius 90.00 at (Position of (Picked unit)), dealing 85.00 damage of attack type Chaos and damage type Cold
              • Unit - Kill (Picked unit)
            • Else - Actions
              • Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 11.00 towards (Facing of (Picked unit)) degrees)



This spell is laging a lot when cast. Also when the dummy is near a enemy unit it keep damaging 85 for like 0.5 seconds... Idk why since it's a 0.01 period time trigger, or is it cuz of the dying animation of FrostMissile? Help me removing lag :/
 

Slapshot136

Divide et impera
Reaction score
471
your making a lot of dummies, which is inherently slow - try lowering the count to like 10 or 15

also, try lowering the time of the periodic trigger down to every 0.05 seconds or so of game time

last, go remove all the position and unit group leaks from your triggers
 

Klein~

TH.net Regular
Reaction score
0
your making a lot of dummies, which is inherently slow - try lowering the count to like 10 or 15

also, try lowering the time of the periodic trigger down to every 0.05 seconds or so of game time

last, go remove all the position and unit group leaks from your triggers

Can you write the trigget with the remove scripts please? I'm not sure when to use them since I'll need them until all the dummies dies. I'll try doing that.
 
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