SpasMaster
Hosted Project: SC
- Joined
- Jan 29, 2010
- Messages
- 1,994
Hello, Hive
I've recently run into an issue with a triggered spell. It's an instant lightning strike that deals damage immediately when cast and spawns 6 Lightning Globes in a circle around the target. The globes then immediately move towards the cast point and upon reaching it begin to attack nearby enemies. When testing the spell it worked properly. When given to enemy controlled creeps (which automatically cast the spell) one of its actions was not executed - the movement towards the center part. Let me repeat: it works when testing it with a unit of my own, it doesn't when an enemy casts it. And again, when an enemy casts the spell every single part of the trigger is executed correctly except the movement part. I am going to post the trigger below including 2 screenshots.
Screenshot 1: My hero has casted the ability, the dummy lightning globes have spawned in a circle and moved towards the center.
Screenshot 2: An enemy unit has casted the ability, the dummy lightning globes have spawned in a circle but have not moved towards the center.
Note: The spell is not a subjected of any other triggers, it's fresh and new, so nothing else is messing with it.
[trigger=""]
Lightning Circle
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to (CREEP) Lightning Circle
Actions
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (40.00 x (Real(AIAbilities_Level))) damage of attack type Spells and damage type Magic
Set Generic_Point = (Position of (Target unit of ability being cast))
Special Effect - Create a special effect at Generic_Point using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
Set Degree = 0
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Set Degree = (Degree + 60)
Set DummySpawnLoc = (Generic_Point offset by 175.00 towards (Real(Degree)) degrees)
Unit - Create 1 Dummy Lightning Globe for (Owner of (Triggering unit)) at DummySpawnLoc facing Generic_Point
Unit - Order (Last created unit) to Move To Generic_Point
Unit - Add a 9.50 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_DummySpawnLoc)
Custom script: call RemoveLocation(udg_Generic_Point)
[/trigger]
Thanks.
I've recently run into an issue with a triggered spell. It's an instant lightning strike that deals damage immediately when cast and spawns 6 Lightning Globes in a circle around the target. The globes then immediately move towards the cast point and upon reaching it begin to attack nearby enemies. When testing the spell it worked properly. When given to enemy controlled creeps (which automatically cast the spell) one of its actions was not executed - the movement towards the center part. Let me repeat: it works when testing it with a unit of my own, it doesn't when an enemy casts it. And again, when an enemy casts the spell every single part of the trigger is executed correctly except the movement part. I am going to post the trigger below including 2 screenshots.
Screenshot 1: My hero has casted the ability, the dummy lightning globes have spawned in a circle and moved towards the center.
Screenshot 2: An enemy unit has casted the ability, the dummy lightning globes have spawned in a circle but have not moved towards the center.
Note: The spell is not a subjected of any other triggers, it's fresh and new, so nothing else is messing with it.
[trigger=""]
Lightning Circle
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to (CREEP) Lightning Circle
Actions
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (40.00 x (Real(AIAbilities_Level))) damage of attack type Spells and damage type Magic
Set Generic_Point = (Position of (Target unit of ability being cast))
Special Effect - Create a special effect at Generic_Point using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
Set Degree = 0
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Set Degree = (Degree + 60)
Set DummySpawnLoc = (Generic_Point offset by 175.00 towards (Real(Degree)) degrees)
Unit - Create 1 Dummy Lightning Globe for (Owner of (Triggering unit)) at DummySpawnLoc facing Generic_Point
Unit - Order (Last created unit) to Move To Generic_Point
Unit - Add a 9.50 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation(udg_DummySpawnLoc)
Custom script: call RemoveLocation(udg_Generic_Point)
[/trigger]
Thanks.