Unit - A unit Finishes an upgrade
Change to Unit - A unit Finishes research
Also make TempLoc a point not a region and set it to the center of the region u want
Using a unit group is wrong did u even read what hes trying to do?
Here are the 3 triggers you will need:
- SetVars
- Events
- Time - Elapsed game time is 0.50 seconds
- Conditions
- Actions
- Set UnitType[0] = Footman
- Set UnitType[1] = Knight
- Set UnitType[2] = Rifleman
- Set UnitType[3] = Mortar Team
- Set UnitType[4] = Flying Machine
- Set UnitType[5] = Gryphon Rider
- Set UnitType[6] = Priest
- Set TechType[0] = Footman Summon
- Set TechType[1] = Knight Summon
- Set TechType[2] = Rifleman Summon
- Set TechType[3] = Mortar Team Summon
- Set TechType[4] = Flying Machine Summon
- Set TechType[5] = Gryphon Rider Summon
- Set TechType[6] = Priest Summon
- For each (Integer A) from 1 to 12, do (Actions)
- Loop - Actions
- Set SpawnLoc[(Integer A)] = ((Player((Integer A))) start location)
- Research
- Events
- Unit - A unit Finishes research
- Conditions
- Actions
- For each (Integer A) from 0 to 6, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Researched tech-type) Equal to TechType[(Integer A)]
- Then - Actions
- Player Group - Add (Owner of (Triggering unit)) to SpawnGroup[(Integer A)]
- Else - Actions
- Spawn
- Events
- Time - Every 2.00 seconds of game time
- Conditions
- Actions
- For each (Integer A) from 0 to 6, do (Actions)
- Loop - Actions
- Player Group - Pick every player in SpawnGroup[(Integer A)] and do (Actions)
- Loop - Actions
- Unit - Create 1 UnitType[(Integer A)] for (Picked player) at SpawnLoc[(Player number of (Picked player))] facing Default building facing degrees