look for posts if you need to find something, for example there is many examples how to make a briefing.sqs =).
But to save your time for now, make a new text file (with notepad etc) and name it briefing.sqf
then copy past this inside of it
Code:
/*
* Unofficial Zeus Briefing Template v0.01
*
*
* Notes:
* - Use the tsk prefix for any tasks you add. This way you know what the varname is for by just looking at it, and
* aids you in preventing using duplicate varnames.
* - To add a newline: <br/>
* - To add a marker link: <marker name='mkrObj1'>attack this area!</marker>
* - To add an image: <img image='somePic.jpg'/>
*
* Required briefing commands:
* - Create Note: player createDiaryRecord ["Diary", ["*The Note Title*", "*The Note Message*"]];
* - Create Task: tskExample = player createSimpleTask ["*The Task Title*"];
* - Set Task Description: tskExample setSimpleTaskDescription ["*Task Message*", "*Task Title*", "*Task HUD Title*"];
*
* Optional briefing commands:
* - Set Task Destination: tskExample setSimpleTaskDestination (getMarkerPos "obj1"); // use existing "empty marker"
* - Set the Current Task: player setCurrentTask tskExample;
*
* Commands to use in-game:
* - Set Task State: tskExample setTaskState "SUCCEEDED"; // states: "SUCCEEDED" "FAILED" "CANCELED"
* - Get Task State: taskState tskExample;
* - Get Task Description: taskDescription tskExample; // returns the *task title* as a string
* - Show Task Hint: [tskExample] call mk_fTaskHint; // make sure you've set the taskState before using this function
*
*
* Authors: Jinef & mikey
*/
// since we're working with the player object here, make sure it exists
waitUntil { !isNil {player} };
waitUntil { player == player };
switch (side player) do
{
case WEST: // BLUFOR briefing goes here
{
player createDiaryRecord["Diary", ["intel", "Intel about enemy or something else can be put here,or you can name the INTEL with something else and it will show in in the DIARY section."]];
player createDiaryRecord["Diary", ["Briefing", "Mission briefing can be put here,or you can name the BRIEFING with something else and it will show in in the DIARY section. If you want to make that fancy green link that points to the mission, use this <marker name='obj1'>texthere</marker>,for this to work you need a marker named obj1 on map, and pressing the link will move the map above that marker."]];
//>---------------------------------------------------------<
// Secondary Objective
task2 = player createsimpletask["taskname here"];
task2 setSimpleTaskDescription["Task description here.", "ThisWillShowTheTaskNameOnTheTaskList", "thiswillshowonyourHUD"]; task2 setSimpleTaskDestination (getMarkerPos "markernamehere");
//>---------------------------------------------------------<
// Primary Objective
task1 = player createsimpletask["taskname here"];
task1 setSimpleTaskDescription["Task description here.", "thiswillshowasthetasknameonthetasklist", "thiswillshowonyourHUD"]; task1 setSimpleTaskDestination (getMarkerPos "markernamehere");
};
case EAST: // OPFOR briefing goes here
{
};
case RESISTANCE: // RESISTANCE/INDEPENDENT briefing goes here
{
};
case CIVILIAN: // CIVILIAN briefing goes here
{
};
};
// run this file again when respawning (only setup the killed EH once though)
if ( isNil{player getVariable "mk_killedEHadded"} ) then
{
player addEventHandler ["killed",
{
[] spawn {
waitUntil { alive player }; // waitUntil player has respawned
execVM "briefing.sqf";
};
}];
player setVariable ["mk_killedEHadded", true];
};
Note! That the 1st tasks goes at the bottom,and second above it etc, this way the tasks will show in right order ingame (task1 at the top of the list)