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
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