- Joined
- Dec 25, 2018
- Messages
- 110
So this part works properly, when I use this spell and there are already 3 units summoned, then first unit summoned is killed and another one is summoned.
But it messes up everything, I can summon more then 4 units.
Any idea how to fix it or how to make this system is simpler way?
-
Serpents limit Copy
-

Events
-


Unit - A unit Spawns a summoned unit
-
-

Conditions
-


(Unit-type of (Summoning unit)) Equal to Witch Doctor
-
-

Actions
-


Set SerpentLimit = (Player number of (Owner of (Summoning unit)))
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Level of Serpents Limit for (Summoning unit)) Equal to 0
-
-



Then - Actions
-




Set Serpent[SerpentLimit] = (Summoned unit)
-




Unit - Add Serpents Limit to (Summoning unit)
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Level of Serpents Limit for (Summoning unit)) Equal to 1
-
-





Then - Actions
-






Set Serpent2[SerpentLimit] = (Summoned unit)
-






Unit - Increase level of Serpents Limit for (Summoning unit)
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Level of Serpents Limit for (Summoning unit)) Equal to 2
-
-







Then - Actions
-








Set Serpent3[SerpentLimit] = (Summoned unit)
-








Unit - Increase level of Serpents Limit for (Summoning unit)
-
-







Else - Actions
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










(Level of Serpents Limit for (Summoning unit)) Equal to 3
-
-









Then - Actions
-










Unit - Kill Serpent[SerpentLimit]
-










Special Effect - Create a special effect at (Position of Serpent[SerpentLimit]) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-










Set Serpent[SerpentLimit] = Serpent2[SerpentLimit]
-










Set Serpent2[SerpentLimit] = Serpent3[SerpentLimit]
-










Set Serpent3[SerpentLimit] = (Summoned unit)
-
-









Else - Actions
-
-
-
-
-
-
-
-
-
-
Serpents dies
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


(Unit-type of (Dying unit)) Equal to Serpent Ward (Level 1)
-
-

Actions
-


Unit Group - Pick every unit in (Units owned by (Owner of (Dying unit)) of type Witch Doctor) and do (Actions)
-



Loop - Actions
-




Unit - Decrease level of Serpents Limit for (Picked unit)
-
-
-
-
But it messes up everything, I can summon more then 4 units.
Any idea how to fix it or how to make this system is simpler way?



