You are here: start » scripts » briefing_diary

Menu

Setup Briefing / Diary

In Arma 3, the briefing (called diary internally) screen is the text on the top left-hand side of a player's map. It can be edited to include mission information.

This article will go over the scripts used to setup these briefing entries and how to efficiently write them.

Scripts

diaryRecords.sqf
////////////////////////////////////////////////////////////////////////////////////////
// Set Diary
player setDiarySubjectPicture ["Diary", "a3\ui_f\data\igui\cfg\simpletasks\types\whiteboard_ca.paa"];
// Intel
_intelText = player createDiaryRecord ["Diary", ["Intel",
"
Time: 2001/11/16 1200
<br/>
Weather: Overcast
<br/>
Fog: Light
<br/><br/>
Enemy forces are the Bantus. Independent forces are the Mawties, who are supporting in the siege of Bolabongo.
<br/><br/>
Bantu forces are heavily armed with all types of equipment. They are outfitted with infantry, statics, armed technicals, armour, and even air assets. Expect this to be at their most powerful.
<br/><br/>
The Mawties are attacking Bolabongo with their finest of mechanized infantry and air assets. While they will engage enemy forces, they have no knowledge of our true mission.
<br/><br/>
Hotel 1 will provide their helicopter for Bravo. Hotel 2 will be available but will be out of the AO since it is within the PUB's anti-drone range. A technical armed with an M2 machine gun and a technical armed with an SPG launcher are available in the garage. They may be slingloaded with Hotel 1.
<br/><br/>
Aeroporto Swonto Pinley also contains 3 BRDM-2 APCs. The 6 fuel truck payload from the previous engagement are available to self-destruct into massive explosions near targets. They are equipped with UAV technology, allowing remote control from the deployment zone.
<br/><br/>
"
]];
// Execution
_executionText = player createDiaryRecord ["Diary", ["Execution",
"
1. Secure each block point around Bolabongo
<br/><br/>
2. Build a blockade at each point with the fortify tool and/or with surrounding vehicles
<br/><br/>
3. Connect to the fuel trucks wirelessly
<br/><br/>
4. For each fuel truck, drive towards targets Alpha through Foxtrot
<br/><br/>
5. When nearby a target, exit remote control to demolish the target
<br/><br/>
6. At each target, confirm President Imbangala is neutralized
<br/><br/>
7. Otherwise, find and neutralize him
<br/><br/>
8. Return to S.E.S.O. HQ
"
]];
// Mission
_missionText = player createDiaryRecord ["Diary", ["Mission",
"Neutralize President Imbangala"
]];
// Situation
_situationText = player createDiaryRecord ["Diary", ["Situation",
"
The time has come to end Operation Angola. OPSCOM has published documents regarding the classified attack maneuver. President Imbangala of Bantustan has been spotted in the city of Bolabongo. His fall will start a domino effect against the weakening nation, guaranteeing completion of our contract with Ramon Rodriguez. This is exclusive intel we have held classified to prevent leaks to the Mawties or any other third party, to avoid competition. According to common knowledge, this will look like a standard siege of Bolabongo, similar to Kinsella’s siege, where the Mawties will attack the city while SESO captures specific objectives. While they have informed us of important military objectives to capture, we shall be ignoring their requests. As per the formally classified attack maneuver, we will be targeting civilian objectives that will likely house the president during the siege. Since the airspace above the city is protected by enemy AA, we cannot rely on Angel squad or own pilots to destroy these objectives. Instead, we will be conducting ground attacks by blockading major road then ramming our 6 fuel trucks into these objectives and causing devastating explosions throughout the city. If done correctly, this would catch the president off his guard and with no change of recourse. Either these explosions will take Imbangala as well or he will be exposed from urban cover.
<br/><br/>
Civilian casualties are highly likely but exceptional for this maneuver. You may cross civilians out of their ROE. You will not be penalized for excessive force, civilian losses, or destruction of civilian property. Such crimes are inevitable when the enemy chooses to mix their civilian population, government, and military in a highly concentrated capital.
<br/><br/>
You will deploy from Aeroporto Swonto Pinley, where you have stayed since the previous engagement. While we have enough equipment to cause the explosions, we lack enough junk to block the exit roads. You will need to requisition vehicles, civilian or other, to establish blockades at specific “Block” points. This is to be done before the attacks on civilian objectives, partially to hinder the enemy advance, and partially to prevent the president’s easy escape.
<br/><br/>
Once President Imbangala is confirmed to be neutralized, you may evacuate Isla Duala.
"
]];
 
////////////////////////////////////////////////////////////////////////////////////////
// Intro Text
[  
	[  
		["Operation Angola",
		"<t align = 'left' shadow = '2' size = '1.2' color = '#1BFF12' font='PuristaBold'>%1</t><br/>", 15], 
 
		["Aeroporto Swonto Pinley",
		"<t align = 'left' shadow = '2' size = '1' color = '#1BFF12' font='PuristaBold'>%1</t><br/>", 10], 
 
		[(str (date select 0) + "/") + (str (date select 1) + "/") + (str (date select 2)),
		"<t align = 'left' shadow = '2' size = '1' color = '#1BFF12' font='PuristaBold'>%1</t><br/><br/>", 10],
 
		["Mission: " + str(_missionText),
		"<t align = 'left' shadow = '2' size = '1' color = '#1BFF12' font='PuristaBold'>%1</t>", 30]
	],
	-0.6,
	-0.3
 
] spawn BIS_fnc_typeText;
initPlayerLocal.sqf
player execVM "diaryRecords.sqf";

Explanation

Notice that the briefing is in reverse. Entries are read from the top of the code and added to the bottom of the briefing in a stack. For example, Intel is the first entry in the diary so it will appear at the bottom of the briefing. Execution is second and will appear above the Intel briefing.

<br/> is a special element that lets one add a page break. To add a space between two paragraphs, use two <br/> elements like <br/><br/>

At the bottom of the diaryRecords.sqf is the Intro Text which dynamically generates based off the Mission diary entry and the mission date.

Back to top