eatbeaver
New Member
- Reaction score
- 7
Why does this trigger refuse to work?
This trigger is supposed to create one multicellular at the point of one removed units but nothing happens.
Code:
Copy
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Split
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of living Small Cell units owned by Player 1 (Red)) Equal to 3
Then - Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Small Cell) and do (Actions)
Loop - Actions
Set Pointvariabel = (Position of unitvariable[(Count structures controlled by Player 1 (Red) (Exclude incomplete structures))])
Unit - Remove (Picked unit) from the game
Unit - Create 1 Multicellular for Player 1 (Red) at Pointvariabel facing Default building facing degrees
Quest - Display to (All players controlled by a User player) the Quest Update message: When the cells are ...
Else - Actions
Set unitvariable[(Number of units in (Units owned by (Owner of (Triggering unit)) of type (Unit-type of (Triggering unit))))] = (Triggering unit)
This trigger is supposed to create one multicellular at the point of one removed units but nothing happens.