Spawn foories
Events
Unit - A unit Begins training a unit
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Trained unit)) Equal to Footman
(Unit-type of (Trained unit)) Equal to Knight
(Unit-type of (Trained unit)) Equal to Rifleman
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units owned by (Owner of (Trained unit)))) Not equal to 3
Then - Actions
Do nothing
Else - Actions