Team(types) tutorial

Written by: Thalassicus
Modified by Matze


Creating & Using Teams
Team(types) is the name RAII designers created for groups of units that move around the map and share similar properties. A team can be created that patrols around a base, or that represents reinforcements for any given player on the map. Teams are comprised of taskforces and scripts. Taskforces are a representation of all the different types of units in the team, and the amount of each type of unit. A script for a team is the list of commands for the team to follow, such as moving to a designated location or attacking a structure. The process of setting up a team combines many different skills into one inherently simple (although a bit long) task.

To reinforce the Americans with 5 GI soldiers from off the map:
1) In the iso view, Create a waypoint with just inside the red line edge of the map. This waypoint will be where the reinforcements are created. Give it an ID using some naming scheme, such as using waypoints 60-69 only for team creation.
2) Under the Edit menu, select Taskforces. A dialog box pops up.
3) Click on the top "Add" button. Defaults the name to "New task force"
4) Change the name to "5 GI" [can be anything descriptive of the units in the taskforce]
5) Click on the left "Add" button. Defaults an item in the center list to "1 GI"
6) At the bottom list box, you would select the first type unit in your taskforce. Leave it at "E1 (GI)".
7) Change the "Number of units" for this unit type to 5. The list now has an item reading "5 GI"
8) You would repeat steps 5-7 for any other types of units you wish to include in the taskforce. For now, close the taskforces window.
9) In the iso view, create another waypoint '61' for the destination of the reinforcements. For now, place it about 20 tiles or so from the origional waypoint.
10) Under the Edit menu, select Scripts. Click on the top "Add" button.
11) Change the name of the script to "American reinforce 1 move in"
12) Click on the bottom "Add" button. Adds an item '0' in the center list.
13) From the "Type of Action" list box, select "3-Move to Waypoint"
14) From the bottom "Waypoint" list box, select '61' (the destination the reinforcements will move to). Close the Scripts dialog box.
15) Under the Edit menu, select Teams. Click on the top "New" button.
16) Change the name property to "American Reinforcements 1"
17) Select the veterancy level of '2'
18) Select 'Americans' as the house of the team.
19) Priority and Max are used by a computer if the team can be created by the AI. Change Max to 0 so the AI cannot build this team.
20) Tech Level is uneeded, group is if you want the units to give themselves the Group 1 slot or any other. Leave both of these alone for now.
21) Waypoint is the place the units magically appear. Set this to '60', your first waypoint.
22) Select your new script.
23) Select your new taskforce.
24) Tag is used to attach all units in this team to a tag (see Creating & Using Triggers and Tags (advanced level)). Leave the tag alone for now.
25) The flags at the bottom are different properties the team can exhibit, and most of them are unused. For now, uncheck all of them except "TransportsReturnUpon Unload" and "AreTeamMembersRecruitable". Check these.
26) Create a new trigger with the following properties:
a. Name: "American Reinforce 1"
b. House: "Americans"
c. Repeating: No
d. Disabled: No
e. Event: "13 Time elapsed", parameter "30" (is in sec)
f. Action: "80 Reinforce ground troops", teamtype '01000006 American Reinforcements 1'. It is also recommended that you set the waypoint parameter to the WP where the team will be created (60 in this case).

The team will now appear on the map after 30 seconds have elapsed at Waypoint 60. The five GI soldiers will then move to waypoint 61. After the team has been created, it will act just like any other units, and can be selected and controlled. The only difference will be that a team might have an attached tag to it, or might have some of those special flags set from the Teams dialog box.