Home   Help Search Login Register  

Author Topic: Briefing not working?  (Read 2249 times)

0 Members and 1 Guest are viewing this topic.

Offline Blacknite

  • Members
  • *
  • Chiefs runs the navy!
Briefing not working?
« on: 18 Oct 2010, 00:38:27 »
I dont know whats wrong, why isnt this briefing not showing up?

init.sqf
Code: [Select]
execVM "briefing.sqf";
briefing.sqf
Code: [Select]
waitUntil {!(isNull player)};
waitUntil {player==player};
switch (side player) do
{
    case WEST:
    {
player createDiaryRecord ["Diary",["BLUEFOR","Tier 1 Operators will be inserted by halo in two seperate teams, Team 1 will be a solo consisting the Team leader.  Team 2 will be inserted down south."]];

player createDiaryRecord ["Diary",["OPFOR","We do know that the Taliban is present in this area, however, we do not recognize these uniform soldiers.  It is possible that another country may be involved, and extra care of identifying them is needed.  We suspect they have no armor vehicles, but they do have road vehicles and air support in this area."]];

player createDiaryRecord ["Diary",["SITREP","Captain Timothy Jones, USA, was shot down yesterday morning.  We suspect the Taliban and this unknown force to be involved.  Tier 1 Operators will be sent into the area for a rescue operation, codenamed Black Thorn."]];

MAG_tskObj3=player createSimpleTask ["Extract"];
MAG_tskObj3 setSimpleTaskDescription ["Once you have spoken with the informant, regroup with the rest of your team at this <marker name='regroup'>location</marker>.  They should be finished with their objectives upon your arrival.","Extract","Extract"];

MAG_tskObj2=player createSimpleTask ["Regroup"];
MAG_tskObj2 setSimpleTaskDescription ["Make contact with the <marker name='Info'>informant</marker>, so that he may reveal the position of the POW.","Regroup","Regroup"];

MAG_tskObj1=player createSimpleTask ["Contact the Informer"];
MAG_tskObj1 setSimpleTaskDescription ["Once you have freed the POW, quickly move down south for <marker name='extract'>extraction</marker>.","Contact the Informer","Contact the Informer"];

MAG_tskObj0=player createSimpleTask ["Rescue the POW"];
MAG_tskObj0 setSimpleTaskDescription ["After the location of the POW has been revealed, wait until you are under the cover of darkness before making any attempts to rescue him.","Rescue the POW","Rescue the POW"];
    };

    case EAST:
    {
    };
    case RESISTANCE:
    {
    };
    case CIVILIAN:
    {
    };
};
« Last Edit: 18 Oct 2010, 00:42:33 by Blacknite »

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: Briefing not working?
« Reply #1 on: 18 Oct 2010, 09:00:55 »
IIRC, for the briefing to work you still have to have an old-school briefing.html with your mission, even though all it does is provide you with the 'end screen' text (e.g. "You win! Well done Gastovski!"). Just to make sure, though, add a hint after case west: {, just to make sure those lines of code are actually being run. :)

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"