intranetusa
03-06-2008, 10:17 AM
Conditions
1. You require a condition for the spawn, usually an existing building
2. (Optional) Have a condition that prevents spawn blocking, such as player brings at most # of units
Action
1. Create the unit at a location x, for player #
2. Have a wait trigger in milliseconds
3. Preserve Trigger
4. (Optional) Minimap ping or display text on the spawn location so the player knows where they are and when they've arrived
5. (Optional) Comment on your trigger for easy access/editing
Example:
Bring(P1, AtLeast, 1, Buildings, Main Armory); ---> If the player has this building, troops will spawn
Bring(P1, AtMost, 30, Foot Soldier, Main Armory Reinforcements); --> I use this to prevent AFK spawn blocking
Command(P1, AtMost, 200, Men); --> I use this to limit units so the map doesn't CCMU
CreateUnit(10, Foot Soldier, Main Armory Reinforcements, P1);
CreateUnit(5, Archer, Main Armory Reinforcements Archers Red, P1); ---> Units are created at a location
DisplayText("Foot soldiers and archers have been equipped at the Trojan armory.", 4); ---> Lets players know about the spawned troops
MinimapPing(Main Armory Reinforcements); ----> Lets players know where the troops are
Wait(35000);---> Timed delay for troop spawn
PreserveTrigger(); ---> Repeats trigger until the conditions are null
Comment("Player 1 Armory Spawn"); ---> Comment so I can quickly access the trigger for easy editing
1. You require a condition for the spawn, usually an existing building
2. (Optional) Have a condition that prevents spawn blocking, such as player brings at most # of units
Action
1. Create the unit at a location x, for player #
2. Have a wait trigger in milliseconds
3. Preserve Trigger
4. (Optional) Minimap ping or display text on the spawn location so the player knows where they are and when they've arrived
5. (Optional) Comment on your trigger for easy access/editing
Example:
Bring(P1, AtLeast, 1, Buildings, Main Armory); ---> If the player has this building, troops will spawn
Bring(P1, AtMost, 30, Foot Soldier, Main Armory Reinforcements); --> I use this to prevent AFK spawn blocking
Command(P1, AtMost, 200, Men); --> I use this to limit units so the map doesn't CCMU
CreateUnit(10, Foot Soldier, Main Armory Reinforcements, P1);
CreateUnit(5, Archer, Main Armory Reinforcements Archers Red, P1); ---> Units are created at a location
DisplayText("Foot soldiers and archers have been equipped at the Trojan armory.", 4); ---> Lets players know about the spawned troops
MinimapPing(Main Armory Reinforcements); ----> Lets players know where the troops are
Wait(35000);---> Timed delay for troop spawn
PreserveTrigger(); ---> Repeats trigger until the conditions are null
Comment("Player 1 Armory Spawn"); ---> Comment so I can quickly access the trigger for easy editing