OA Briefing Template
From F2 EN
Contents |
Description
A major configuration task is to create the briefing for the mission. In ArmA2: Operation Arrowhead the briefing is created using a combination of a script and an HTML file. F2 contains a set of template files that supports both coop and multi-side briefings.
Required files
All the code associated with this component is found in:
- briefing.html
- briefing.sqf
- init.sqf
- f\common\f_briefing_civ_special.sqf
- f\common\f_briefing_cz.sqf
- f\common\f_briefing_ger.sqf
- f\common\f_briefing_tk.sqf
- f\common\f_briefing_tk_civ.sqf
- f\common\f_briefing_tk_gue.sqf
- f\common\f_briefing_tk_ins.sqf
- f\common\f_briefing_un.sqf
- f\common\f_briefing_us.sqf
How to use
How the briefing is generated
The script briefing.sqf is executed at the start of the mission, on the server and every client machine (it is triggered by a line in the file init.sqf). In the F2 template the briefing.sqf file peforms a check to see what faction the player's slot belongs to, then calls the appropriate include file, which in turn generates the following sections of the briefing:
- Notes
- Tasks
Finally, the file briefing.html contains the debriefing texts which may be displayed at the end of the mission.
Default include files
By default the following include files are used for each faction:
| Faction | Include File |
|---|---|
| US | f\common\f_briefing_us.sqf |
| Takistani Army | f\common\f_briefing_tk.sqf |
| Takistani Militia | f\common\f_briefing_tk_ins.sqf |
| Takistani Locals (Independent) | f\common\f_briefing_tk_gue.sqf |
| UN | f\common\f_briefing_un.sqf |
| Czech Republic | f\common\f_briefing_cz.sqf |
| German | f\common\f_briefing_ger.sqf |
| Civilian (Takistani) | f\common\f_briefing_tk_civ.sqf |
| Civilian (Special) | f\common\f_briefing_civ_special.sqf |
This means every faction gets its own separate briefing for Notes and Tasks (although debriefings held in the file briefing.html are common to all factions).
How the Tasks section is generated
In the include file look for the code segment entitled:
// TASKS
The following commands used to create and control tasks (each is linked to the Bohemia Interactive Wiki):
By default the include files in F2 do not generate any tasks, but one commented-out example is included.
How the Notes section is generated
The Notes section is sub-divided into a number of sub-sections, each of which may include 2 or more text sub-headings:
| Sub-section | Sub-headings | Notes |
|---|---|---|
| SITUATION | ENEMY FORCES | Size, activity, location, uniform, time seen and equipment |
| FRIENDLY FORCES | Higher units (including mission and intent), adjacent units, supporting units and security | |
| MISSION | What must be accomplised by the mission team, not how | |
| EXECUTION | COMMANDER'S INTENT | A short summary of plan |
| MOVEMENT PLAN | Movement instructions | |
| FIRE SUPPORT PLAN | Fire support instructions | |
| SPECIAL TASKS | Instructions for specific units | |
| ADMINISTRATION | Information on administration and logistics | |
| CREDITS | Mission credits |
Throughout the include file the sections which you should edit have been labelled:
*** Insert [specific information] here. ***
Replace the text starting and ending with *** using your own content (delete the *** as well).
Giving some or all factions the same briefing
If you want to give two or more factions the same briefing, simply enter your data into one of the include files (e.g. f_briefing_usmc.sqf). Then open the file briefing.sqf and, for each faction, change the line which calls the include file.
For example, if you wanted players in UN slots to see the same briefing as those in US slots, you would open the file briefing.sqf and look for the code segment entitled:
// BRIEFING: UN
In the same code segment find the line below:
#include "f\common\f_briefing_un.sqf"
Change the line to read:
#include "f\common\f_briefing_us.sqf"
Editing debriefings
Open the file briefing.html. Throughout the file the sections which you should edit have been labelled:
*** Insert [specific information] here. ***
Replace the text starting and ending with *** using your own content (delete the *** as well).
Tips
Adding links to map markers
The following code will create a link that, when clicked, will automatically centre the map over the marker named mkrName (be sure to name the marker in the ArmA2 editor):
<marker name = 'mkrName'>Text</marker>
Formatting tips
The format of the briefing.html file is similar to HTML, although it is not exactly the same. Only a few HTML tags will work. For example, the following code will give a carriage return (new line):
<br>
The following code will give a blank line between paragraphs:
<br><br>
How to disable
Open the file init.sqf and look for the code segment entitled:
// F2 - OA Briefing
Edit the line below, adding // to the start:
[] execVM "briefing.sqf";
Credits
- kevb0
- Fer
