- Joined
- Feb 18, 2016
- Messages
- 96
I made a spell that every time casted spawns a unit and its limited to 3 units
Every time it is used when number of units equal to 3 the first dies, the second becomes the first, the third the second and the new spawned unit the third
The main issue is that some times works perfectly but sometimes, with no apparent reason, it does not despawn the first unit and the trigger stop working correctly (or completely)
Every time it is used when number of units equal to 3 the first dies, the second becomes the first, the third the second and the new spawned unit the third
The main issue is that some times works perfectly but sometimes, with no apparent reason, it does not despawn the first unit and the trigger stop working correctly (or completely)
-
Orbes
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to CustomAbility
-
-
Actions
-
Set P = (Casting unit)
-
Unit - Create 1 CustomUnit for (Owner of P) at (Target point of ability being cast) facing (Position of P)
-
Set PUnit[(Number of units in (Units of type CustomUnit))] = (Last created unit)
-
Unit - Change color of PUnit[(Number of units in (Units of type CustomUnit))] to Light Blue
-
-
-
Orbes 3
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Ability being cast) Equal to CustomAbility
-
(Number of living CustomUnit units owned by (Owner of P)) Greater than 3
-
-
-
-
Actions
-
Unit - Kill PUnit[1]
-
Set PUnit[1] = PUnit[2]
-
Set PUnit[2] = PUnit[3]
-
Set PUnit[3] = PUnit[4]
-
-