Every x seconds
Pick every unit in region x matching unit-type of matching unit is a unit of type y and do:
- If picked unit = Tier Lv 1 then do create 1 footman for owner of picked unit at pos. of picked unit else do if picked unit = Tier Lv 2 then do create 1 knight for owner of picked unit at pos. of picked unit else do blah..
should go like this