Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Trigger 018

Events


Unit - A unit Finishes research

Conditions


(Researched tech-type) Equal to Iron Forged Swords

Actions


Trigger - Turn on Spawn <gen>
Spawn

Events


Time - Every 10.00 seconds of game time

Conditions

Actions


Set Temp_Loc_1 = Center of Region something


Unit - Create 1 Footman for Player 1 (Red) at Temp_Loc_1 facing Default building facing degrees


Custom script: call RemoveLocation(udg_Temp_Loc_1)
Red OrcRed

Events


Unit - A unit Finishes an upgrade

Conditions

Actions


If ((Researched tech-type) Equal to Fel Orc Summon ) then do (Player Group - Add (Owner of (Triggering unit)) to FelOrcGrunt) else do (Do nothing)
RedOrcSRed

Events


Time - Every 2.00 seconds of game time

Conditions

Actions


Set Temp_Loc = Red Spawn <gen>


Player Group - Pick every player in FelOrcGrunt and do (Unit - Create 1 Footman for (Picked player) at (Center of Red Spawn <gen>) facing (Position of (Triggering unit)))
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
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
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
Player Group - Pick every player in SpawnGroup[0] and do (Actions)

Loop - Actions


Unit - Create 1 UnitType[0] for (Picked player) at SpawnLoc[(Player number of (Picked player))] facing Default building facing degrees
SetVars
Events

Time - Elapsed game time is 0.50 seconds
Conditions
Actions

Set UnitType[0] = Footman
