- Joined
- Jul 19, 2007
- Messages
- 855
Well I got some spells in my map which uses triggers to make some spelleffects before the spell is cast but the problem is if there is more than one of that unit which casts the same spell at the same time, the spelleffect isn't gone... It's a bit hard to explain but I hope you get it.
Here is the triggers...
Here is the triggers...
-
Star Spells
-
Events
-
Unit - A unit Begins channeling an ability
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Ability being cast) Equal to Star Serious Laser
-
(Ability being cast) Equal to Star Sensitive Inferno
-
(Ability being cast) Equal to Star Gentle Uterus
-
-
-
-
Actions
-
Set VariableSet StarIndex = (StarIndex + 1)
-
Set VariableSet StarCount[StarIndex] = 0
-
Special Effect - Create a special effect attached to the left hand of (Triggering unit) using war3mapImported\WaterAurora.mdx
-
Set VariableSet StarEffect[StarIndex] = (Last created special effect)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
StarIndex Equal to 1
-
-
Then - Actions
-
Trigger - Turn on Star Spells periodic <gen>
-
-
Else - Actions
-
-
-
-
Star Spells periodic
-
Events
-
Time - Every 0.50 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer LoopInteger) from 1 to StarIndex, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
StarCount[LoopInteger] Greater than or equal to 3
-
-
Then - Actions
-
Special Effect - Destroy StarEffect[LoopInteger]
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
StarIndex Not equal to LoopInteger
-
-
Then - Actions
-
Set VariableSet StarCount[LoopInteger] = StarCount[StarIndex]
-
Set VariableSet StarEffect[LoopInteger] = StarEffect[StarIndex]
-
Set VariableSet LoopInteger = (LoopInteger - 1)
-
-
Else - Actions
-
-
Set VariableSet StarIndex = (StarIndex - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
StarIndex Equal to 0
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
Else - Actions
-
Set VariableSet StarCount[LoopInteger] = (StarCount[LoopInteger] + 1)
-
-
-
-
-
-