Difference between revisions of "Mission Making Toolbox"

From TMTM Wiki
Jump to navigation Jump to search
(Created page with "== TMTM Mission Making Toolbox == If you prefer to see the google docs version go [https://docs.google.com/document/d/1rqJerKfuw5BWhS9rh1e9PwrBd_XY_o4_i5hMsQnRZHU/edit#headin...")
 
Line 1: Line 1:
== TMTM Mission Making Toolbox ==
 
 
 
If you prefer to see the google docs version go [https://docs.google.com/document/d/1rqJerKfuw5BWhS9rh1e9PwrBd_XY_o4_i5hMsQnRZHU/edit#heading=h.9jb8dwp15gpd here]
 
If you prefer to see the google docs version go [https://docs.google.com/document/d/1rqJerKfuw5BWhS9rh1e9PwrBd_XY_o4_i5hMsQnRZHU/edit#heading=h.9jb8dwp15gpd here]
  
=== 1.Introduction ===
+
== 1.Introduction ==
  
==== 1.1 Overview ====
+
=== 1.1 Overview ===
 
The purpose of this guide is to give you the skills and knowledge to make a basic operation for TMTM. There will be some basic scripting, but it will not cover advanced scripting topics. This will give you the tools to create an op that is playable and works properly. Additionally, this is not a tutorial to create the missions to the preference of any one person. The few sections where mission design is brought up is meant to encourage mindfulness and critical thought when designing your own op.
 
The purpose of this guide is to give you the skills and knowledge to make a basic operation for TMTM. There will be some basic scripting, but it will not cover advanced scripting topics. This will give you the tools to create an op that is playable and works properly. Additionally, this is not a tutorial to create the missions to the preference of any one person. The few sections where mission design is brought up is meant to encourage mindfulness and critical thought when designing your own op.
  
Line 15: Line 13:
  
  
==== 1.2 Setting Up the Editor ====
+
=== 1.2 Setting Up the Editor ===
 
The first thing you’ll want to do is open up the editor and select what map you’d like to make a mission on. Click '''Scenario>Save As''' (or Ctrl+Shift+S) and save your mission.
 
The first thing you’ll want to do is open up the editor and select what map you’d like to make a mission on. Click '''Scenario>Save As''' (or Ctrl+Shift+S) and save your mission.
  
Line 39: Line 37:
  
  
==== 1.3 Setting Up the XP Template ====
+
=== 1.3 Setting Up the XP Template ===
 
To set up the XP Template in your mission, navigate to the template repository and download the latest release as a zip file, then copy the contents into your mission directory. Your mission directory can be found in either '''Documents/Arma 3/missions or Documents/Arma 3 - Other Profiles/your username/missions'''. Take a minute or two to snoop around the files if you like, but we will be returning to the important parts later.
 
To set up the XP Template in your mission, navigate to the template repository and download the latest release as a zip file, then copy the contents into your mission directory. Your mission directory can be found in either '''Documents/Arma 3/missions or Documents/Arma 3 - Other Profiles/your username/missions'''. Take a minute or two to snoop around the files if you like, but we will be returning to the important parts later.
  
Line 50: Line 48:
  
  
==== 1.4 Description.ext ====
+
=== 1.4 Description.ext ===
 
The ''description.ext'' file can be found in your mission root. This is the core of the information and settings of your mission. You are encouraged to explore it on your own, but for now we will only worry about several sections.
 
The ''description.ext'' file can be found in your mission root. This is the core of the information and settings of your mission. You are encouraged to explore it on your own, but for now we will only worry about several sections.
  
  
===== 1.4.1 Mission Information =====
+
==== 1.4.1 Mission Information ====
 
This section should be almost completely filled out (it doesn’t have to be when you start on your mission, but it most certainly has to be before submitting it for audit).
 
This section should be almost completely filled out (it doesn’t have to be when you start on your mission, but it most certainly has to be before submitting it for audit).
  
Line 64: Line 62:
  
  
===== 1.4.2 Enable XPT Loadouts =====
+
==== 1.4.2 Enable XPT Loadouts ====
 
Around line 35 is the line:
 
Around line 35 is the line:
 
  //#define XPT_DEFINE_CUSTOMLOADOUTS 1
 
  //#define XPT_DEFINE_CUSTOMLOADOUTS 1
Line 70: Line 68:
  
  
 
+
==== 1.4.3 Respawn Setup ====
===== 1.4.3 Respawn Setup =====
 
 
Around line 95 is the Respawn section. Respawn should be set to 3, which will allow players to respawn at a point you specify in section '''2.6 Respawns'''.
 
Around line 95 is the Respawn section. Respawn should be set to 3, which will allow players to respawn at a point you specify in section '''2.6 Respawns'''.
  
Line 78: Line 75:
  
  
=== 2.Friendly Forces ===
+
== 2.Friendly Forces ==
  
==== 2.1 Overview ====
+
=== 2.1 Overview ===
 
When setting up the force composition for players you will need to form squads out of various roles, creating different types of squads by varying those squads. You will need to have a Command squad, infantry squads, and any sort of support or force multiplier squads.
 
When setting up the force composition for players you will need to form squads out of various roles, creating different types of squads by varying those squads. You will need to have a Command squad, infantry squads, and any sort of support or force multiplier squads.
  
Line 90: Line 87:
  
  
==== 2.2 Squad Composition ====
+
=== 2.2 Squad Composition ===
 
 
  
 
When using the XP Template, the easiest way to set up a squad is by placing down vanilla BLUFOR (Nato), OPFOR (CSAT), or INDEPENDENT (AAF) units and changing their loadouts via the arsenal, then exporting them to the XPTLoadouts format. [https://imgur.com/a/GrDaJNZ Ghost of Officer O’Mally] has a very good tutorial on how to do this.
 
When using the XP Template, the easiest way to set up a squad is by placing down vanilla BLUFOR (Nato), OPFOR (CSAT), or INDEPENDENT (AAF) units and changing their loadouts via the arsenal, then exporting them to the XPTLoadouts format. [https://imgur.com/a/GrDaJNZ Ghost of Officer O’Mally] has a very good tutorial on how to do this.
Line 140: Line 136:
  
  
==== 2.3 Essential ====
+
=== 2.3 Essential ===
 
While the equipment and weapons you give players is entirely dependent on your mission and player roles, there is some gear that will be necessary across the board. For this section, I will use "infantry" to describe the average infantryman and what gear they should have. If a specific unit should have specific gear, I will refer to that unit by name.
 
While the equipment and weapons you give players is entirely dependent on your mission and player roles, there is some gear that will be necessary across the board. For this section, I will use "infantry" to describe the average infantryman and what gear they should have. If a specific unit should have specific gear, I will refer to that unit by name.
  
  
===== 2.3.1 Medical =====
+
==== 2.3.1 Medical ====
 
Every unit should get a selection of ''Personal Aid items'' (usually in their uniform) and Medics should get medical supplies in their backpack in addition to their own ''Personal Aid items''. The following is recommended, but ultimately the medical supply distribution is dependent on your mission.
 
Every unit should get a selection of ''Personal Aid items'' (usually in their uniform) and Medics should get medical supplies in their backpack in addition to their own ''Personal Aid items''. The following is recommended, but ultimately the medical supply distribution is dependent on your mission.
  
Line 153: Line 149:
 
| 10-12 bandages (basic)<br/>1-2 morphine<br/>2-4 epinephrine<br/>2-4 adenosine (optional)<br/>4 tourniquets (optional, recommended) || 30-40 bandages (basic)<br/>10-12 morphine<br/>20-24 epinephrine<br/>15-10 adenosine (optional)<br/>1 PAK<br/>4-5 250mL blood (or saline/plasma)<br/>4-5 500mL blood (or saline/plasma)<br/>4-5 1000mL blood (or saline/plasma)
 
| 10-12 bandages (basic)<br/>1-2 morphine<br/>2-4 epinephrine<br/>2-4 adenosine (optional)<br/>4 tourniquets (optional, recommended) || 30-40 bandages (basic)<br/>10-12 morphine<br/>20-24 epinephrine<br/>15-10 adenosine (optional)<br/>1 PAK<br/>4-5 250mL blood (or saline/plasma)<br/>4-5 500mL blood (or saline/plasma)<br/>4-5 1000mL blood (or saline/plasma)
 
|}
 
|}
 +
 +
 +
==== 2.3.2 Radios ====
 +
Typically, every unit will have a radio of some kind. Generally, Squad Leads will get a TFAR long range radio backpack to communicate with other squads, assets, and command, and a short range radio to communicate with their squad. The short range radios are as follows:
 +
 +
{| class="wikitable"
 +
|-
 +
! BLUFOR !! INDEPENDENT !! OPFOR
 +
|-
 +
| RF-7800S-TR (2km)<br/>AN/PRC-152 (5km) || AN/PRC-154 (2km)<br/>AN/PRC-148 JEM (5km) || PNR-1000A (2km)<br/>FADAK (5km)
 +
|}
 +
 +
The 2 km radios are your go-to for the average infantryman. The 5 km radios are ''technically'' long ranges, just not manpacks. The 2 km radios, however, cannot set themselves to custom frequencies, only change between preset channels. If you plan to equip players with 2 km radios, be sure to give them the MicroDAGR Radio Programmer (watch slot) so that they can change frequencies. You CANNOT set alternates on 2 km radios, so I recommend either giving everyone 5 km radios, or give Squad Leads, Team Leads, and Medics 5 km radios and all other infantry 2 km ones.
 +
 +
 +
You do not ''need'' to give radios to anyone but Squad Leads or RTOs, but Arma 3 is a video game and TFAR is a mod. It is harder to communicate as effectively online without radios than it is in real life. It is ''highly'' recommended to give all players radios. Making a limited radios mission takes a much higher degree of design knowledge, and the mission must be constructed from the ground up with limited radios in mind.
 +
 +
 +
==== 2.3.3 GPS ====
 +
For the majority of TMTM ops, every unit has a GPS of some kind. We use devices from the addon ''cTab''. Squad Leaders (and sometimes Team Leaders) should get Android devices, infantry should get MicroDAGRs, and the commander should get the Commander Tablet.
 +
 +
 +
Much like with Radios, no-GPS ops have a caveat. They require the mission to be built from the ground up with no-GPS in mind. It is ''highly'' recommended to give all players GPS until you have more mission making experience.
 +
 +
 +
==== 2.3.4 Weapons and Ammo ====
 +
For most missions, it’s a good idea to have roles use the same type of ammunition for ease of resupply and ammo sharing. Giving Autoriflemen or Machinegunners tracer ammunition is highly recommended. Tracers for Squad and Team Leaders can also be a good idea, or at least giving them half and half.
 +
 +
'''Design Opinions'''
 +
 +
'''Trenchgun:''' “Magnified optics should be given out sparingly. They are a massive force multiplier, greatly increasing the effective range of infantry. An Autorifleman becomes a monster. No magnified optics makes an Autorifleman rely on an Asst. Autorifleman with binoculars to reliably engage long range targets. This will also boost the usefulness of your Marksmen.”
 +
 +
'''Superxpdude:''' “Personally I like to give everyone pure Tracer mags (unless the op is intended to be a stealth mission). CUP optics and attachments generally perform better than their RHS counterparts (since they generally employ standard Arma/CBA functionality for keybinds and such). The MRCO is always a solid choice for a lightly magnified optic.”
 +
 +
'''Keth:''' “Be sure to test out the players equipment vs the enemies, including AT and vehicles. Friendly weapons vs enemy vests/helmets and whatnot.”
 +
 +
 +
=== 2.4 CBA Role Descriptions ===
 +
By default, the mission slotting screen will display group names in the format Alpha 1-1. You can make this display whatever name you want by changing the role description of a group’s leader to "Role Name@Group Name". You should also write role descriptions for all of your slots to remove the numbers next to names on the slot screen.
 +
 +
[[File:Slots with no CBA roles.png]][[File:Group leader CBA role.png]][[File:Group and squad CBA role.png]]
 +
 +
''Left: slot screen with no CBA role description.''
 +
 +
''Center: group leader role set to "Squad Leader@Bravo"''
 +
 +
''Right: group leader role set to "Squad Leader@Charlie" and squad role descriptions set.''
 +
 +
 +
=== 2.5 Force Multipliers ===
 +
You should carefully consider all assets you give to players. Giving too powerful or too many force multipliers can cause an imbalance of enjoyment between assets and infantry. This balance can be hard to achieve and is more dependent on both the enemies you place down and your mission making experience. Try to create dependencies between ground troops and armored or air assets.
 +
 +
 +
Additionally, keep in mind logistics for your assets. Is there a logistics team that can handle rearming, repairing, and refueling assets? Could this vehicle be sling loaded by logistics helicopters if necessary? Is there transport for squads?
 +
 +
'''Design Opinions'''
 +
 +
'''Trenchgun:''' “I find it is a good idea to have your assets pulling double duty as much as possible. Logistics helicopters should be able to provide transport as well as resupply. APCs/IFVs can support infantry and transport them as well (but make sure squads can fit in them if you plan a mechanized op).”
 +
 +
'''Superxpdude:''' “While it might be exciting to add a bunch of assets (particularly aircraft) to your mission. It is vastly more difficult to balance a mission around powerful assets (such as tanks, attack helicopters, or fixed-wing aircraft). I recommend making a few missions without these assets to get a better idea of mission balancing in general before using any heavy force multipliers.”
 +
 +
 +
=== 2.6 Respawns ===
 +
Respawns can be set up by placing a marker and naming it <code>respawn_west</code> (BLUFOR), <code>respawn_east</code> (OPFOR), or <code>respawn_guerrila</code> (Independent). You can use any marker you like and place it where you would like players to respawn.
 +
 +
 +
If you would not like the respawn location to be visible on the map, you can use the Empty marker (found at ''Markers>System>Empty'').
 +
 +
[[File:Empty marker for respawn.png]]
 +
 +
''An <code>Empty</code> map marker that will let BLUFOR units respawn on it.''
 +
 +
 +
=== 2.7 Vehicle Respawns ===
 +
Vehicle respawns can be set up with the Vehicle Respawn module from the editor, found under ''Systems>Modules>Multiplayer>Vehicle Respawn''. Place one of the modules and open up its properties.
 +
 +
 +
The important sections are: Delay, which controls how many seconds it will take for the vehicle to respawn after being destroyed (This time is up to you, make sure you keep in mind how many seconds it takes for a player to respawn). <code>Position</code>, which will determine where the vehicle will respawn at (for almost all cases, <code>Starting position</code> should be selected). <code>Notification</code>, if enabled, will show a popup notification for all players when the vehicle has respawned (this is up to you). All other options are more advanced and you may activate, deactivate, or test on your own. Some provide advanced functionality.
 +
 +
[[File:Vehicle respawn module.png]]
 +
 +
 +
Lastly, you should right click on the <code>Vehicle Respawn</code> module and select <code>Sync to</code> and then click on a vehicle you want to enable respawn on. Repeat this and sync all the vehicles you want to respawn to the module.
 +
 +
 +
== 3. Objectives and Tasks ==
 +
 +
=== 3.1 Mission Flow ===
 +
There are two general ways to structure your mission’s objectives. One way is to have all objectives presented at the beginning of the mission and let players choose the order in which they are accomplished. The other way is to have a handful of initial objectives and dynamically reveal more over the course of the op.
 +
 +
 +
==== 3.1.1 All Objectives at Start ====
 +
This is the easier structure to implement. You only need to write triggers that check for the completion of objectives. These also allow for the operation commander to develop a more concrete plan with multiple stages.
 +
 +
 +
==== 3.1.2 Dynamic Objectives ====
 +
This option is a little more difficult. You must write triggers that check for the completion of objectives and then also create new objectives at the same time. This method keeps operation commanders on their toes, causing them to adapt and overcome the changing conditions of the op.
 +
 +
 +
==== 3.1.3 Thoughts ====
 +
These methods are two ends of a spectrum. Using dynamic objectives allows you to leave twists or surprises for your op. At the same time, it can be frustrating for a commander when your plans are constantly disrupted. Like all things, a good op should have a balance between these styles.
 +
 +
 +
All objectives at start is the recommended method for new mission makers. It is the easiest to implement and unlikely to have errors that affect the whole mission.
 +
 +
 +
=== 3.2 Creating Tasks ===
 +
Navigate to ''mission_name/scripts/tasks.sqf'' and open it. Here you will find some commented out example code for using the function <code>BIS_fnc_taskCreate</code>. We will be adding tasks underneath the final line that says <code>// Place tasks here</code>. Add the following block of code:
 +
 +
<nowiki>[
 +
    true,
 +
    ["task name", "parent task name"],
 +
    ["description", "title", ""],
 +
    [0,0,0],
 +
    "CREATED",
 +
    10,
 +
    true,
 +
    "attack",
 +
    true
 +
] call BIS_fnc_taskCreate</nowiki>
 +
 +
I will walk through each of these parameters and what they do. Reading the comments in the example code at the top of tasks.sqf will also be helpful, but I will go more in-depth here. The parameters are listed below in order. Keep in mind that tasks display on the map screen in the order they were created.
 +
 +
 +
'''Parameters:'''
 +
 +
'''owner:''' the sides, groups, or units that can see the task on their map screen and on their HUD.
 +
''options:''
 +
* true - this task will be visible to every playable unit.
 +
* blufor, opfor, independent, civilian - this task will be visible only to units on the side specified.
 +
* group - you can use the variable name of a group to make a task visible to them only (advanced).
 +
* unit - you can also make a task visible to a specific unit using that unit’s variable name (advanced).
 +
* The final option is an array of multiple types of the above. Since Zeus’s are excluded from the "true" parameter, you can give tasks to all units and Zeuses by referencing their variable names like so:
 +
[true, “zeus_1”, “zeus_2”],
 +
You can also use this method to give tasks to BLUFOR and Independent, but not OPFOR.
 +
 +
 +
'''taskID:''' the internal ID for referencing the task. Players won’t ever see this name, but you will need to know it in order to mark tasks as completed or check for their completion. You can set this to either a single string (i.e. <code>"task_name"</code>) or an array of two strings (i.e. <code>["task_name", "parent_task_name"]</code>) to indicate that this task is a subtask of the parent. The task will appear nested under its parent.
 +
 +
Your taskIDs should be descriptive, but not too verbose that you can’t remember it. You also ''must'' use underscores rather than spaces in the name.
 +
 +
 +
'''description:''' This array of strings is the task description and title visible to players on the map screen. The first string is your description, the second is the title. The third is unused and can be left blank.
 +
You may be tempted to write detailed descriptions of your tasks here. This is not the place. Players rarely read task descriptions. You should make these brief summaries (or leave them blank) they should not contain any information not already present in the briefing.
 +
 +
 +
'''destination:''' This is the position that the task will appear on the map.
 +
''options:''
 +
* [x,y,z] - an array of coordinates specifying the position. Somewhat clunky to use.
 +
* Object - you can give an object as well. The task will appear at the exact location of the target. If you give the variable name for a unit, the task location will follow that unit throughout the mission.
 +
* ObjNull - using this value will cause the task to not have a location. This is primarily used for parent tasks (i.e. a larger task of "secure a town" with smaller subtasks of "take out the FOB", "destroy the ammo cache", etc.). You can use this if you want to use tasks for mission flow, but use your own map markers to indicate objective locations.
 +
A tip if you would not like to indicate the exact location of an objective via the task: Search "helipad" in the empty units section of the editor and place down an Invisible Helipad. Set the variable name of this helipad to something descriptive (I usually use the format "taskname_pos") and set the task destination to the invisible helipad. This method is useful for objectives where players must search a predefined zone for a target. You want players to have to search the zone, not be given a global waypoint to the target. Place the task location at the center of the search zone to better indicate where players should search.
 +
 +
 +
'''state:''' This is the task state, if it has been created, is assigned, failed, or succeeded. Most are self-explanatory.
 +
''options:''
 +
*"CREATED" - the task is created but unassigned. This is what you will typically use.
 +
*"ASSIGNED" - the task starts already having been assigned to the units that are its owner.
 +
*"AUTOASSIGNED" - will be assigned when no task has yet been assigned.
 +
*"SUCCEEDED" - the task was successfully completed. Usually, you won’t create a task in this state but will change to it later.
 +
*"FAILED" - the task was not completed. Same circumstance as the previous.
 +
*"CANCELLED" - the task is no longer relevant. Use it the same as the previous two states.
 +
 +
 +
'''priority:''' The priority is simply a number that helps determine what order the tasks will be auto-assigned in. A higher number has greater priority. If you would like the task to not be auto-assigned, use the value -1.
 +
 +
 +
'''showNotification:'''
 +
''options:''
 +
* true - a popup notification will play every time the task state changes.
 +
* false - no popup will display.
 +
 +
 +
'''type:''' This is the task icon. Icons can be found at the bottom of this [https://community.bistudio.com/wiki/Arma_3:_Task_Framework#Task_icons page].
 +
 +
 +
'''visibleIn3D:'''
 +
''options:''
 +
* true - the task will be visible on a player’s 3D HUD, displaying the distance and position to the player at all times.
 +
* false - the task position will only be visible in the map screen and no distance will be shown.
 +
(NOTE: This has not been thoroughly tested, but is what the BI documentation states. Players may still see the 3D marker if they have the task assigned)
 +
 +
 +
 +
=== 3.3 Check Task Complete: Not Alive Triggers ===
 +
Many new mission makers have a little difficulty in finding objective ways to check for the completion of a relatively abstract task. For example, "capture the town" could be seen as "remove all the enemies", but that is a little more difficult to test for. Without writing a complex trigger to check for ratios of forces in a town, you would have to track down every single enemy and kill them. Instead, it is much easier to break a task like "capture the town" into "kill the rebel commander", "destroy the weapon cache", and "destroy the radio tower". It is very easy to check if something is destroyed or killed in Arma, and our example objective of capturing a town is now only a single line of code:
 +
 +
<code>!alive rebel_officer && !alive weapon_cache && !alive radio_tower</code>
 +
 +
Let’s work through the officer objective as an example.
 +
 +
[[File:Officer and trigger.png]]
 +
 +
Place down an officer and a trigger with no radius.
 +
 +
 +
[[File:Officer varaible name.png]]
 +
 +
I will make the unit’s variable name "enemy_officer".
 +
 +
 +
Next, open up the trigger. For the majority of these types of triggers, they should have the <code>Repeatable</code> box unchecked and the <code>Server Only</code> box checked. This will make sure the task only executes once, and that the conditions are only checked on the server, reducing the chance of locality issues. Now, in the <code>Condition</code> box, write:
 +
 +
<code>!alive enemy_officer</code>
 +
 +
In order to test, in the <code>On Activation</code> box write:
 +
 +
<code>hint "officer killed"</code>
 +
 +
Now place a player unit, test the mission, and kill the officer. You should get a hint popup that the officer has been killed. Congratulations! That is the basis for completing an objective. Now we must make the trigger update our tasks on activation.
 +
 +
 +
In order to change the state of a task, we use the following line of code:
 +
 +
<code>["task_name", "SUCCEEDED"] call BIS_fnc_taskSetState;</code>
 +
 +
<code>"task_name"</code> is the taskID you set when creating the task in ''tasks.sqf''. Remove the line displaying the hint and test the mission again. If your task was initialized properly, it will change to completed upon the death of the officer.
 +
 +
 +
This type of trigger is not limited to only human units. By checking if a unit is not alive, you are essentially checking if an object is destroyed or killed. You can use this on vehicles or destructible objects as well.

Revision as of 11:28, 18 January 2021

If you prefer to see the google docs version go here

1.Introduction

1.1 Overview

The purpose of this guide is to give you the skills and knowledge to make a basic operation for TMTM. There will be some basic scripting, but it will not cover advanced scripting topics. This will give you the tools to create an op that is playable and works properly. Additionally, this is not a tutorial to create the missions to the preference of any one person. The few sections where mission design is brought up is meant to encourage mindfulness and critical thought when designing your own op.


Look out for Design Opinion blurbs where mission makers offer design input about certain topics. These sections are neither right nor wrong, but simply advice from experienced mission makers.


There is a list on the top of this wiki that will let you jump to any section. If you are already familiar with making missions but are looking for something specific, feel free to jump to the relative sections. However, if you are making your first mission, it is strongly recommended that you go through this document section by section.


1.2 Setting Up the Editor

The first thing you’ll want to do is open up the editor and select what map you’d like to make a mission on. Click Scenario>Save As (or Ctrl+Shift+S) and save your mission.


Editor save as.png


Before even typing a name, make sure the box labeled Binarize the Scenario File is left unchecked. Leaving it checked will encrypt parts of your mission file and prevent either auditors or yourself from editing your mission.sqm should addon issues arise (while you are at it, go to Settings>Preferences in the editor and make sure that Binarize New Scenario Files is unchecked).


Its name doesn’t have to be final, but I typically prefix it with the type of mission I’m making and then give it a descriptive working title. Arma cannot read many special characters, most notably spaces (it replaces them with `%20`), so be sure to use underscores. Stick to standard letters, numbers, underscores, and dashes.


coop_zargabad_defense

coop_stratis_invasion

tvt_russian_rebels

cotvt_rogue_nato


Once you’ve done this, you can set up Superxpdude’s XP Template.


1.3 Setting Up the XP Template

To set up the XP Template in your mission, navigate to the template repository and download the latest release as a zip file, then copy the contents into your mission directory. Your mission directory can be found in either Documents/Arma 3/missions or Documents/Arma 3 - Other Profiles/your username/missions. Take a minute or two to snoop around the files if you like, but we will be returning to the important parts later.


Mission folder before.pngMission folder after.png

Left: Your mission folder just after its initial save

Right: Your mission folder after adding the XP Template


1.4 Description.ext

The description.ext file can be found in your mission root. This is the core of the information and settings of your mission. You are encouraged to explore it on your own, but for now we will only worry about several sections.


1.4.1 Mission Information

This section should be almost completely filled out (it doesn’t have to be when you start on your mission, but it most certainly has to be before submitting it for audit).


Mission naming procedures can be found in section 6.2 Naming Format. The onLoadName and onLoadMission entries can be much more informal.


minPlayers should always be 1, but maxPlayers should be equal to the number of playable units in the mission plus the number of Zeuses and headless clients (usually 3-6 extra slots). It is a good idea to future proof ops by having 50-60 slots available. It is always better to have too many slots than to have not enough on op night because If the number of players that show up for an op exceeds the number of slots in the mission, an alternative backup mission will be played instead.


1.4.2 Enable XPT Loadouts

Around line 35 is the line:

//#define XPT_DEFINE_CUSTOMLOADOUTS 1

Uncomment this line (remove the leading "//") to enable XPT Loadouts. You will get errors when you launch your mission if you try playing it as a unit that does not have a loadout defined in XPTLoadouts.hpp, so it might be worth doing this after setting up your loadouts.


1.4.3 Respawn Setup

Around line 95 is the Respawn section. Respawn should be set to 3, which will allow players to respawn at a point you specify in section 2.6 Respawns.


respawnDelay can be anything, but it is recommended NOT to go over 3 minutes. Keep in mind that this is the time spent at the respawn screen, not unconscious bleeding out, nor being transported back to the front.


2.Friendly Forces

2.1 Overview

When setting up the force composition for players you will need to form squads out of various roles, creating different types of squads by varying those squads. You will need to have a Command squad, infantry squads, and any sort of support or force multiplier squads.


Each unit you intend to be controlled by a player needs to have the "playable" box checked in its ‘unit attributes’ menu (this can also be done via the group’s attribute menu to avoid opening the attributes menu on each unit). You can group units together by clicking a unit once to select it, then ctrl+click and drag to the unit you want the selected unit to follow. Keep in mind that each group can only have 1 actual leader, fire team members must be grouped to the squad leader, even if they will be directly following their team lead.


Another "feature" you should be aware of is that the first units placed down will be the first displayed on the slotting screen. Groups are ordered based on the order their leaders were put down. Slots within groups will also be ordered based on when each unit was placed. In order for the CBA Group Names feature to work properly, the Squad Leader MUST be the first unit placed down in a squad.


2.2 Squad Composition

When using the XP Template, the easiest way to set up a squad is by placing down vanilla BLUFOR (Nato), OPFOR (CSAT), or INDEPENDENT (AAF) units and changing their loadouts via the arsenal, then exporting them to the XPTLoadouts format. Ghost of Officer O’Mally has a very good tutorial on how to do this.


Because of the awkward unit ordering addressed in the overview, I recommend starting by placing down a Commander (usually an Officer) first, just to make the copy and paste re-ordering that you will almost certainly do later easier.


Good squad size is usually 8 to 12 units (I strongly recommend not going above 13). You should keep in mind what transport options you are giving the players. For example, a mechanized force will have squad size limited to how many infantry can fit as passengers in their APCs. It is almost always a logistical pain in the ass to not be able to transport a full squad.


For what roles you should have in your squad, the key roles are:

  • Squad Leader
  • Medic
  • Team Leader(s)

This is the skeleton from which all squads are built. Keep in mind that fire teams are 3-4 people (including Team Leads) and TMTM usually has 2 teams in a squad. For a 12 man squad, a third team is recommended. 10 people is a good squad size for most ops. Fill up the rest of the squad with roles that will be useful for your op.


It is also important to keep in mind how these roles will be broken down into teams. Many Squad Leaders like to break their squads into three parts: The "Command" element, consisting of the Squad Leader and Medic, the "Support" element, consisting of autoriflemen and marksmen, and the "Maneuver" element, consisting of anti-tank weapons, riflemen, and grenadiers.


This is not a hard and fast rule, but keep in mind how a Squad Leader might distribute roles across their teams when deciding on squad composition.


The following 10 man squad is a good framework to work off of. Try to keep the Squad and Team Lead structure in mind, but swap out roles as you see fit.

Squad Leader Team Leader Team Leader
Medic Role Role
Role Role
Role Role


Design Opinions
Superxpdude: "There’s no such thing as a "perfect team composition" for all missions. Your team composition should be based on the mission itself. As an example, if you’re going to be in towns the whole time, clearing out buildings, you might not want to have roles dedicated to long-range fighting (such as marksmen or long-range AT)."
Trenchgun: "I like to make teams identical when I can. I feel this lets the Squad Leader alternate which team is the maneuver team and which is the support. It can give Squad Leaders more flexibility when making plans."


The final step is to make sure that every friendly unit has its Playable box checked. You will know that a unit is Playable when it has a pink/purple circle around its icon. A Player unit (what you play as in a single player scenario) counts as a playable unit but is denoted by a red circle.


2.3 Essential

While the equipment and weapons you give players is entirely dependent on your mission and player roles, there is some gear that will be necessary across the board. For this section, I will use "infantry" to describe the average infantryman and what gear they should have. If a specific unit should have specific gear, I will refer to that unit by name.


2.3.1 Medical

Every unit should get a selection of Personal Aid items (usually in their uniform) and Medics should get medical supplies in their backpack in addition to their own Personal Aid items. The following is recommended, but ultimately the medical supply distribution is dependent on your mission.

Personal Aid Medic Backpack
10-12 bandages (basic)
1-2 morphine
2-4 epinephrine
2-4 adenosine (optional)
4 tourniquets (optional, recommended)
30-40 bandages (basic)
10-12 morphine
20-24 epinephrine
15-10 adenosine (optional)
1 PAK
4-5 250mL blood (or saline/plasma)
4-5 500mL blood (or saline/plasma)
4-5 1000mL blood (or saline/plasma)


2.3.2 Radios

Typically, every unit will have a radio of some kind. Generally, Squad Leads will get a TFAR long range radio backpack to communicate with other squads, assets, and command, and a short range radio to communicate with their squad. The short range radios are as follows:

BLUFOR INDEPENDENT OPFOR
RF-7800S-TR (2km)
AN/PRC-152 (5km)
AN/PRC-154 (2km)
AN/PRC-148 JEM (5km)
PNR-1000A (2km)
FADAK (5km)

The 2 km radios are your go-to for the average infantryman. The 5 km radios are technically long ranges, just not manpacks. The 2 km radios, however, cannot set themselves to custom frequencies, only change between preset channels. If you plan to equip players with 2 km radios, be sure to give them the MicroDAGR Radio Programmer (watch slot) so that they can change frequencies. You CANNOT set alternates on 2 km radios, so I recommend either giving everyone 5 km radios, or give Squad Leads, Team Leads, and Medics 5 km radios and all other infantry 2 km ones.


You do not need to give radios to anyone but Squad Leads or RTOs, but Arma 3 is a video game and TFAR is a mod. It is harder to communicate as effectively online without radios than it is in real life. It is highly recommended to give all players radios. Making a limited radios mission takes a much higher degree of design knowledge, and the mission must be constructed from the ground up with limited radios in mind.


2.3.3 GPS

For the majority of TMTM ops, every unit has a GPS of some kind. We use devices from the addon cTab. Squad Leaders (and sometimes Team Leaders) should get Android devices, infantry should get MicroDAGRs, and the commander should get the Commander Tablet.


Much like with Radios, no-GPS ops have a caveat. They require the mission to be built from the ground up with no-GPS in mind. It is highly recommended to give all players GPS until you have more mission making experience.


2.3.4 Weapons and Ammo

For most missions, it’s a good idea to have roles use the same type of ammunition for ease of resupply and ammo sharing. Giving Autoriflemen or Machinegunners tracer ammunition is highly recommended. Tracers for Squad and Team Leaders can also be a good idea, or at least giving them half and half.

Design Opinions
Trenchgun: “Magnified optics should be given out sparingly. They are a massive force multiplier, greatly increasing the effective range of infantry. An Autorifleman becomes a monster. No magnified optics makes an Autorifleman rely on an Asst. Autorifleman with binoculars to reliably engage long range targets. This will also boost the usefulness of your Marksmen.”
Superxpdude: “Personally I like to give everyone pure Tracer mags (unless the op is intended to be a stealth mission). CUP optics and attachments generally perform better than their RHS counterparts (since they generally employ standard Arma/CBA functionality for keybinds and such). The MRCO is always a solid choice for a lightly magnified optic.”
Keth: “Be sure to test out the players equipment vs the enemies, including AT and vehicles. Friendly weapons vs enemy vests/helmets and whatnot.”


2.4 CBA Role Descriptions

By default, the mission slotting screen will display group names in the format Alpha 1-1. You can make this display whatever name you want by changing the role description of a group’s leader to "Role Name@Group Name". You should also write role descriptions for all of your slots to remove the numbers next to names on the slot screen.

Slots with no CBA roles.pngGroup leader CBA role.pngGroup and squad CBA role.png

Left: slot screen with no CBA role description.

Center: group leader role set to "Squad Leader@Bravo"

Right: group leader role set to "Squad Leader@Charlie" and squad role descriptions set.


2.5 Force Multipliers

You should carefully consider all assets you give to players. Giving too powerful or too many force multipliers can cause an imbalance of enjoyment between assets and infantry. This balance can be hard to achieve and is more dependent on both the enemies you place down and your mission making experience. Try to create dependencies between ground troops and armored or air assets.


Additionally, keep in mind logistics for your assets. Is there a logistics team that can handle rearming, repairing, and refueling assets? Could this vehicle be sling loaded by logistics helicopters if necessary? Is there transport for squads?

Design Opinions
Trenchgun: “I find it is a good idea to have your assets pulling double duty as much as possible. Logistics helicopters should be able to provide transport as well as resupply. APCs/IFVs can support infantry and transport them as well (but make sure squads can fit in them if you plan a mechanized op).”
Superxpdude: “While it might be exciting to add a bunch of assets (particularly aircraft) to your mission. It is vastly more difficult to balance a mission around powerful assets (such as tanks, attack helicopters, or fixed-wing aircraft). I recommend making a few missions without these assets to get a better idea of mission balancing in general before using any heavy force multipliers.”


2.6 Respawns

Respawns can be set up by placing a marker and naming it respawn_west (BLUFOR), respawn_east (OPFOR), or respawn_guerrila (Independent). You can use any marker you like and place it where you would like players to respawn.


If you would not like the respawn location to be visible on the map, you can use the Empty marker (found at Markers>System>Empty).

Empty marker for respawn.png

An Empty map marker that will let BLUFOR units respawn on it.


2.7 Vehicle Respawns

Vehicle respawns can be set up with the Vehicle Respawn module from the editor, found under Systems>Modules>Multiplayer>Vehicle Respawn. Place one of the modules and open up its properties.


The important sections are: Delay, which controls how many seconds it will take for the vehicle to respawn after being destroyed (This time is up to you, make sure you keep in mind how many seconds it takes for a player to respawn). Position, which will determine where the vehicle will respawn at (for almost all cases, Starting position should be selected). Notification, if enabled, will show a popup notification for all players when the vehicle has respawned (this is up to you). All other options are more advanced and you may activate, deactivate, or test on your own. Some provide advanced functionality.

Vehicle respawn module.png


Lastly, you should right click on the Vehicle Respawn module and select Sync to and then click on a vehicle you want to enable respawn on. Repeat this and sync all the vehicles you want to respawn to the module.


3. Objectives and Tasks

3.1 Mission Flow

There are two general ways to structure your mission’s objectives. One way is to have all objectives presented at the beginning of the mission and let players choose the order in which they are accomplished. The other way is to have a handful of initial objectives and dynamically reveal more over the course of the op.


3.1.1 All Objectives at Start

This is the easier structure to implement. You only need to write triggers that check for the completion of objectives. These also allow for the operation commander to develop a more concrete plan with multiple stages.


3.1.2 Dynamic Objectives

This option is a little more difficult. You must write triggers that check for the completion of objectives and then also create new objectives at the same time. This method keeps operation commanders on their toes, causing them to adapt and overcome the changing conditions of the op.


3.1.3 Thoughts

These methods are two ends of a spectrum. Using dynamic objectives allows you to leave twists or surprises for your op. At the same time, it can be frustrating for a commander when your plans are constantly disrupted. Like all things, a good op should have a balance between these styles.


All objectives at start is the recommended method for new mission makers. It is the easiest to implement and unlikely to have errors that affect the whole mission.


3.2 Creating Tasks

Navigate to mission_name/scripts/tasks.sqf and open it. Here you will find some commented out example code for using the function BIS_fnc_taskCreate. We will be adding tasks underneath the final line that says // Place tasks here. Add the following block of code:

[
    true,
    ["task name", "parent task name"],
    ["description", "title", ""],
    [0,0,0],
    "CREATED",
    10,
    true,
    "attack",
    true
] call BIS_fnc_taskCreate

I will walk through each of these parameters and what they do. Reading the comments in the example code at the top of tasks.sqf will also be helpful, but I will go more in-depth here. The parameters are listed below in order. Keep in mind that tasks display on the map screen in the order they were created.


Parameters:

owner: the sides, groups, or units that can see the task on their map screen and on their HUD.

options:
* true - this task will be visible to every playable unit.
* blufor, opfor, independent, civilian - this task will be visible only to units on the side specified.
* group - you can use the variable name of a group to make a task visible to them only (advanced).
* unit - you can also make a task visible to a specific unit using that unit’s variable name (advanced).
* The final option is an array of multiple types of the above. Since Zeus’s are excluded from the "true" parameter, you can give tasks to all units and Zeuses by referencing their variable names like so:
[true, “zeus_1”, “zeus_2”],
You can also use this method to give tasks to BLUFOR and Independent, but not OPFOR.


taskID: the internal ID for referencing the task. Players won’t ever see this name, but you will need to know it in order to mark tasks as completed or check for their completion. You can set this to either a single string (i.e. "task_name") or an array of two strings (i.e. ["task_name", "parent_task_name"]) to indicate that this task is a subtask of the parent. The task will appear nested under its parent.

Your taskIDs should be descriptive, but not too verbose that you can’t remember it. You also must use underscores rather than spaces in the name.


description: This array of strings is the task description and title visible to players on the map screen. The first string is your description, the second is the title. The third is unused and can be left blank. You may be tempted to write detailed descriptions of your tasks here. This is not the place. Players rarely read task descriptions. You should make these brief summaries (or leave them blank) they should not contain any information not already present in the briefing.


destination: This is the position that the task will appear on the map.

options:
* [x,y,z] - an array of coordinates specifying the position. Somewhat clunky to use.
* Object - you can give an object as well. The task will appear at the exact location of the target. If you give the variable name for a unit, the task location will follow that unit throughout the mission.
* ObjNull - using this value will cause the task to not have a location. This is primarily used for parent tasks (i.e. a larger task of "secure a town" with smaller subtasks of "take out the FOB", "destroy the ammo cache", etc.). You can use this if you want to use tasks for mission flow, but use your own map markers to indicate objective locations.
A tip if you would not like to indicate the exact location of an objective via the task: Search "helipad" in the empty units section of the editor and place down an Invisible Helipad. Set the variable name of this helipad to something descriptive (I usually use the format "taskname_pos") and set the task destination to the invisible helipad. This method is useful for objectives where players must search a predefined zone for a target. You want players to have to search the zone, not be given a global waypoint to the target. Place the task location at the center of the search zone to better indicate where players should search.


state: This is the task state, if it has been created, is assigned, failed, or succeeded. Most are self-explanatory.

options:
*"CREATED" - the task is created but unassigned. This is what you will typically use.
*"ASSIGNED" - the task starts already having been assigned to the units that are its owner.
*"AUTOASSIGNED" - will be assigned when no task has yet been assigned.
*"SUCCEEDED" - the task was successfully completed. Usually, you won’t create a task in this state but will change to it later.
*"FAILED" - the task was not completed. Same circumstance as the previous.
*"CANCELLED" - the task is no longer relevant. Use it the same as the previous two states.


priority: The priority is simply a number that helps determine what order the tasks will be auto-assigned in. A higher number has greater priority. If you would like the task to not be auto-assigned, use the value -1.


showNotification:

options:
* true - a popup notification will play every time the task state changes.
* false - no popup will display.


type: This is the task icon. Icons can be found at the bottom of this page.


visibleIn3D:

options:
* true - the task will be visible on a player’s 3D HUD, displaying the distance and position to the player at all times.
* false - the task position will only be visible in the map screen and no distance will be shown.
(NOTE: This has not been thoroughly tested, but is what the BI documentation states. Players may still see the 3D marker if they have the task assigned)


3.3 Check Task Complete: Not Alive Triggers

Many new mission makers have a little difficulty in finding objective ways to check for the completion of a relatively abstract task. For example, "capture the town" could be seen as "remove all the enemies", but that is a little more difficult to test for. Without writing a complex trigger to check for ratios of forces in a town, you would have to track down every single enemy and kill them. Instead, it is much easier to break a task like "capture the town" into "kill the rebel commander", "destroy the weapon cache", and "destroy the radio tower". It is very easy to check if something is destroyed or killed in Arma, and our example objective of capturing a town is now only a single line of code:

!alive rebel_officer && !alive weapon_cache && !alive radio_tower

Let’s work through the officer objective as an example.

Officer and trigger.png

Place down an officer and a trigger with no radius.


Officer varaible name.png

I will make the unit’s variable name "enemy_officer".


Next, open up the trigger. For the majority of these types of triggers, they should have the Repeatable box unchecked and the Server Only box checked. This will make sure the task only executes once, and that the conditions are only checked on the server, reducing the chance of locality issues. Now, in the Condition box, write:

!alive enemy_officer

In order to test, in the On Activation box write:

hint "officer killed"

Now place a player unit, test the mission, and kill the officer. You should get a hint popup that the officer has been killed. Congratulations! That is the basis for completing an objective. Now we must make the trigger update our tasks on activation.


In order to change the state of a task, we use the following line of code:

["task_name", "SUCCEEDED"] call BIS_fnc_taskSetState;

"task_name" is the taskID you set when creating the task in tasks.sqf. Remove the line displaying the hint and test the mission again. If your task was initialized properly, it will change to completed upon the death of the officer.


This type of trigger is not limited to only human units. By checking if a unit is not alive, you are essentially checking if an object is destroyed or killed. You can use this on vehicles or destructible objects as well.