Can someone help me fix this? It's meant to play the naga birth animation for a structure that normally doesn't have one. It works fine up until the constructing structure is canceled or destroyed, the special effect won't disappear and just sits there. What should I change? I am a beginner in triggering.
-
Fakebirth
-
Events
-
Unit - A unit Begins construction
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to War Levy
-
-
Actions
-
Set Levyconstruct = (Triggering unit)
-
Animation - Change Levyconstruct's vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
-
Special Effect - Create a special effect at (Position of Levyconstruct) using NagaBirth.MDX
-
Set birtheffect = (Last created special effect)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Levyconstruct Equal to (Dying unit)) or (Levyconstruct Equal to (Cancelled structure))
-
-
Then - Actions
-
Special Effect - Destroy birtheffect
-
Skip remaining actions
-
-
Else - Actions
-
Wait 58.00 seconds
-
Special Effect - Destroy birtheffect
-
Animation - Change Levyconstruct's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-
-
-
-