Game lagging when my spell is used=(

Panda

New Member
Reaction score
3
I have recently created a spell that marks the target and then moves the dummy to the caster to hunt down the marked target... however the problem is that whenever I use this spell my game laggs the next 30 seconds making the game unplayable laggy. I have really tried to find the solution but I can't =(
anyways here is my trigger(s) for the spell.

Events
Unit - Warlock 0000 <gen> Starts the effect of an ability
Unit - Warlock 0013 <gen> Starts the effect of an ability
Conditions
(Ability being cast) Equal to Death Coil
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Casting unit)) Equal to Player 1 (Red)
Then - Actions
Unit - Move dummy - death coil 0061 <gen> instantly to (Position of (Casting unit))
Unit - Order dummy - death coil 0061 <gen> to Attack-Move To (Position of (Target unit of ability being cast))
Wait 10.00 seconds
Unit - Move dummy - death coil 0061 <gen> instantly to (Center of ggcrt <gen>)
Else - Actions
Do nothing

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Casting unit)) Equal to Player 2 (Blue)
Then - Actions
Unit - Move dummy - death coil 0073 <gen> instantly to (Position of (Casting unit))
Unit - Order dummy - death coil 0073 <gen> to Attack-Move To (Position of (Target unit of ability being cast))
Wait 10.00 seconds
Unit - Move dummy - death coil 0073 <gen> instantly to (Center of ggcrt <gen>)
Else - Actions
Do nothing

Events
Unit - A unit comes within 100.00 of dummy - death coil 0061 <gen>
Conditions
((Triggering unit) has buff Mark of the damned ) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) belongs to an enemy of Player 1 (Red)) Equal to True
Then - Actions
Unit - Move dummy - death coil 0061 <gen> instantly to (Center of ggcrt <gen>)
Unit - Order dummy - death coil 0061 <gen> to Stop
Special Effect - Create a special effect at (Position of (Triggering unit)) using Objects\Spawnmodels\Undead\UndeadDissipate\UndeadDissipate.mdl
Unit - Cause dummy - death coil 0061 <gen> to damage (Triggering unit), dealing 12.00 damage of attack type Spells and damage type Normal
Special Effect - Destroy (Last created special effect)
Else - Actions
Do nothing

Events
Unit - A unit comes within 100.00 of dummy - death coil 0073 <gen>
Conditions
((Triggering unit) has buff Mark of the damned ) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) belongs to an enemy of Player 2 (Blue)) Equal to True
Then - Actions
Unit - Move dummy - death coil 0073 <gen> instantly to (Center of ggcrt <gen>)
Unit - Order dummy - death coil 0073 <gen> to Stop
Special Effect - Create a special effect at (Position of (Triggering unit)) using Objects\Spawnmodels\Undead\UndeadDissipate\UndeadDissipate.mdl
Unit - Cause dummy - death coil 0073 <gen> to damage (Triggering unit), dealing 12.00 damage of attack type Spells and damage type Normal
Special Effect - Destroy (Last created special effect)
Else - Actions
Do nothing

Okay thats my triggers. The wierd thing about this is that it only happens when Im against another player (or computer) with a color. It works perfectly when I use it against a neutral hostile enemy.
Anyways I really hope you can help me since this is getting very annoying for me...

Appreciate all answers - Panda
 

linamus

I r bak!
Reaction score
57
Your triggers seems strange and dumb
Why do you move theese dummy units instead of creting them at position of casting unit? then we would replace Wait action with expiration timer
and also instead of If Then Else we could use unit-type variable with array, and use action: unit - order to attack/deal damage/move/remove UnitVariable [player number owner of casing unit]

If you want, send map to me, I'll polish this trigger and remove laggs, who are caused most likely by wait action and too much move orders
 
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