Hi I am making a spell that looks like it calls lightning bolts down from the sky at random points around the caster, with each bolt damaging an AoE around where it strikes. Here is my trigger in GUI so far:
Unit "Dummy_WH_Ground" is a dummy unit with 0 movement height that serves as a marker of where the bolt will hit
Unit "Dummy_WH_Air" is a dummy unit with 1000 movement height that casts a chain lightning spell that bounces 0 times and does 0 damage on the Dummy_WH_Ground, it just is a visiaul effect of a lightning bolt coming from above because I don't like how the "Monsoon" bolt looks
Ability "Writhing Hate Bolt (Dummy)" is the bolt mentioned above
Unit "Dummy_WH_AOE" is a dummy unit that has a thunderclap spell which does the actual AoE damage of the bolt
Ability "Writhing Hate AOE" is the AoE mentioned above
Questions:
I have a lighting effect and a target effect for the bolt, but only the lighting effect (finger of death - a red bolt of lightning connecting caster and target) is shown. There is also no sound when the bolt fires (even though there is sound and a target effect for normal chain lightning). Is this because the dummy unit has no model?
Although the "Wait" between executions is 0.01 seconds, this does not happen. I know there is a problem with triggered waits, can you direct me to a tutorial on making exact waits?
The thunderclap spell also has its visual effect but no sound playing, how do I fix this?
IMPORTANT: If the triggering unit gains a level during the spell, the bolts all stop! What's causing this?
-
Events
-
Unit - A unit starts the effect of an ability
-
Conditions
-
(Ability being cast) Equal to Writhing Hate
-
Actions
-
Set WrithingHatePos = (Position of (Triggering unit))
-
For each (Integer A) from 1 to 25, do (Actions)
-
Loop - Actions
-
Unit - Create 1 Dummy_WH_Ground for (Triggering Player) at (WrithingHatePos offset by (Random real number between 0.00 and 500.00) towards (Random real number between 0.00 and 360.00) facing Default building facing degrees
-
Unit - Add a 1.00 Generic expiration timer to (Last created unit)
-
Set WrithingHateBolt = (Last Created Unit)
-
Unit - Create 1 Dummy_WH_Air for (Triggering player) at (Position of WrithingHateBolt) facing Default building facing degrees
-
Unit - Hide (Last created unit)
-
Unit - Add a 1.00 Generic expiration timer to (Last created unit)
-
Unit - Set level of Writhing Hate Bolt (Dummy) for (Last created unit) to 1
-
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning WrithingHateBolt
-
Unit - Create 1 Dummy_WH_AOE for (Triggering player) at (Position of WrithingHateBolt) facing Default building facing degrees
-
Unit - Hide (Last created unit)
-
Unit - Add 1.00 a second Generic expiration timer to (Last created unit)
-
Unit - Set level of Writhing Hate AOE (Dummy) for (Last created unit) to (Level of (Ability being cast) for (Triggering unit))
-
Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
-
Wait 0.01 seconds
-
-
Unit "Dummy_WH_Ground" is a dummy unit with 0 movement height that serves as a marker of where the bolt will hit
Unit "Dummy_WH_Air" is a dummy unit with 1000 movement height that casts a chain lightning spell that bounces 0 times and does 0 damage on the Dummy_WH_Ground, it just is a visiaul effect of a lightning bolt coming from above because I don't like how the "Monsoon" bolt looks
Ability "Writhing Hate Bolt (Dummy)" is the bolt mentioned above
Unit "Dummy_WH_AOE" is a dummy unit that has a thunderclap spell which does the actual AoE damage of the bolt
Ability "Writhing Hate AOE" is the AoE mentioned above
Questions:
I have a lighting effect and a target effect for the bolt, but only the lighting effect (finger of death - a red bolt of lightning connecting caster and target) is shown. There is also no sound when the bolt fires (even though there is sound and a target effect for normal chain lightning). Is this because the dummy unit has no model?
Although the "Wait" between executions is 0.01 seconds, this does not happen. I know there is a problem with triggered waits, can you direct me to a tutorial on making exact waits?
The thunderclap spell also has its visual effect but no sound playing, how do I fix this?
IMPORTANT: If the triggering unit gains a level during the spell, the bolts all stop! What's causing this?