• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Automated Casting Problem

Status
Not open for further replies.
Level 1
Joined
Oct 28, 2004
Messages
5
I don't know how many other people have witnessed this problem, but here goes.

I'm creating a spell called Searing Light, in which 8 beams of light are called down around the targeted area and use the Shockwave ability on the center of the targeted area. It's based off of Healing Ward, but I've already determined that that isn't causing the problem.

The problem is that only one of the beams of light is casting Shockwave, which is the first beam created by the spell's trigger. I'm not even sure the rest of the invisible casting units are being created. Here's part of the trigger.

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Searing Light for (Casting unit)) Equal to 1
Then - Actions
Special Effect - Create a special effect at ((Target point of ability being cast) offset by 400.00 towards 0.00 degrees) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Special Effect - Create a special effect at ((Target point of ability being cast) offset by 400.00 towards 45.00 degrees) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Special Effect - Create a special effect at ((Target point of ability being cast) offset by 400.00 towards 90.00 degrees) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Special Effect - Create a special effect at ((Target point of ability being cast) offset by 400.00 towards 135.00 degrees) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Special Effect - Create a special effect at ((Target point of ability being cast) offset by 400.00 towards 180.00 degrees) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Special Effect - Create a special effect at ((Target point of ability being cast) offset by 400.00 towards 225.00 degrees) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Special Effect - Create a special effect at ((Target point of ability being cast) offset by 400.00 towards 270.00 degrees) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Special Effect - Create a special effect at ((Target point of ability being cast) offset by 400.00 towards 315.00 degrees) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Wait 0.50 seconds
Unit - Create 1 Searing Light Caster (Level 1) for (Owner of (Casting unit)) at ((Target point of ability being cast) offset by 400.00 towards 0.00 degrees) facing (Target point of ability being cast)
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Target point of ability being cast)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Wait 0.10 seconds
Unit - Create 1 Searing Light Caster (Level 1) for (Owner of (Casting unit)) at ((Target point of ability being cast) offset by 400.00 towards 45.00 degrees) facing (Target point of ability being cast)
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Target point of ability being cast)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Wait 0.10 seconds
Unit - Create 1 Searing Light Caster (Level 1) for (Owner of (Casting unit)) at ((Target point of ability being cast) offset by 400.00 towards 90.00 degrees) facing (Target point of ability being cast)
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Target point of ability being cast)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Wait 0.10 seconds
Unit - Create 1 Searing Light Caster (Level 1) for (Owner of (Casting unit)) at ((Target point of ability being cast) offset by 400.00 towards 135.00 degrees) facing (Target point of ability being cast)
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Target point of ability being cast)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Wait 0.10 seconds
Unit - Create 1 Searing Light Caster (Level 1) for (Owner of (Casting unit)) at ((Target point of ability being cast) offset by 400.00 towards 180.00 degrees) facing (Target point of ability being cast)
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Target point of ability being cast)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Wait 0.10 seconds
Unit - Create 1 Searing Light Caster (Level 1) for (Owner of (Casting unit)) at ((Target point of ability being cast) offset by 400.00 towards 225.00 degrees) facing (Target point of ability being cast)
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Target point of ability being cast)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Wait 0.10 seconds
Unit - Create 1 Searing Light Caster (Level 1) for (Owner of (Casting unit)) at ((Target point of ability being cast) offset by 400.00 towards 270.00 degrees) facing (Target point of ability being cast)
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Target point of ability being cast)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Wait 0.10 seconds
Unit - Create 1 Searing Light Caster (Level 1) for (Owner of (Casting unit)) at ((Target point of ability being cast) offset by 400.00 towards 315.00 degrees) facing (Target point of ability being cast)
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Target point of ability being cast)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Else - Actions
Do nothing

Please tell me if you can help.
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
First of all, use a loop for all those effects. It will be much easier to not have such a big trigger. Secondly, what did you base your spell off? You mentioned some (target point of ability being cast) and if you don't target a point then there is a problem. In such confusion cases, you can get strange errors you know.

~Daelin
 
Level 1
Joined
Oct 28, 2004
Messages
5
I've gotten a similar spell to work before, but it was based on a different ability. This one is based off of Healing Ward, just turned into a Hero ability. I'll try changing the base ability, it should most likely work.[/u]
 
Status
Not open for further replies.
Top