Heres how I set up mine:
_briefing =
[
[
"Command and Signals",
[
"Order of Seniority",
"Call signs (C/S)",
"Location of HQ"
]
],
[
"Administration and Logistics",
[
"Weapons and Ammunition",
"Equipment and Special Equipment",
"Equipment (Maps, watches and radios etc), Special Equipment (Laser Markers, Satchel Charges etc)",
"Medical"
]
],
[
"Execution",
[
...
]
],
[
"Mission",
[
...
]
],
[
"Situation",
[
...
"Neutral Forces",
...
"Friendly Forces",
...
"Enemy Forces"
]
]
];
{
_title = _x select 0;
_messages = _x select 1;
{
player createDiaryRecord ["Diary", [_title, _x]];
}foreach _messages;
} foreach _briefing;
tasksInMission = [];
tasksInMission set [1, player createSimpleTask ["taskRTB"]];
(tasksInMission select 1) setSimpleTaskDescription ["1st Platoon must return to C.HQ NLT 070000h July 2009", "Return to C.HQ", "RTB"];
(tasksInMission select 1) setSimpleTaskDestination (getMarkerPos "respawn_west");
tasksInMission set [0, player createSimpleTask ["taskClearTAOR"]];
(tasksInMission select 0) setSimpleTaskDescription ["TAOR must be clear NLT 062200h July 2009", "Patrol TAOR Alpha", "TAOR"];
(tasksInMission select 0) setSimpleTaskDestination (getMarkerPos "taskMkrTAOR");
"tasksPublicVariable" addPublicVariableEventHandler {
{
_state = "SUCCEEDED";
if (count _x > 1) then {
_state = (_x select 1);
};
(_x select 0) setTaskState _state;
if (count _x > 2) then {
_color = "ColorGreen";
if (count _x > 3) then {
_color = (_x select 3);
};
(_x select 2) setMarkerColorLocal _color;
};
} foreach (_this select 0);
};