Home   Help Search Login Register  

Author Topic: problem with briefing  (Read 2940 times)

0 Members and 1 Guest are viewing this topic.

Offline urias03

  • Members
  • *
problem with briefing
« on: 30 Aug 2009, 14:51:03 »
I got problems with briefing..
I downloaded briefing manager and made somthing to see if it works and it did
so I made the real briefing for the mission I made but it doesn't work..
first I thought that maybe I didn't do somthing right in the marker so I wrote it again wihout markers and still it doesn't work
I made init.sqf file and wrote
 "execVM "briefing.sqf";"
and I made HTML debriefing that works(I tried endmission and the debriefing worked)
I can't see reason for that not to work

this is the briefing-can someone see if there's some mistake there?

Offline mikey

  • Former Staff
  • ****
  • Whitespace Whore
Re: problem with briefing
« Reply #1 on: 30 Aug 2009, 18:16:09 »
The double quotes (") that you used for the callsign "Bravo Two" are what is causing this.

Try to write ""Bravo Two"" (here the additional double quotes are used as an escape character I think)

Offline tcp

  • Members
  • *
    • Violator Gaming
Re: problem with briefing
« Reply #2 on: 30 Aug 2009, 19:38:35 »
Use notepad++ with the arma syntax highlight plugin, or a similar program so you can see errors like these.

You could probably submit a bug report since the briefing manager should be able to handle quotes. An alternative is to use single quotes, 'Bravo Two'.

Normally the escape character is a backslash \ but in ArmA double and even quadruple quotes are used to handle nested quotes.

Wrong:
"...callsign "Bravo Two" will get..."

Right:
"...callsign ""Bravo Two"" will get..."
"...callsign 'Bravo Two' will get..."
"1st ""2nd """"3rd"""" 2nd"" 1st"
"1st ""2nd '3rd' 2nd"" 1st"

In other words, you can't use a matching (single) quote by itself because it will end the quotation.

EDIT: Seems you can't use triple quotes. Need to use multiples of 2. So quadruple quotes inside of double quotes.
« Last Edit: 08 Sep 2009, 10:16:57 by tcp »

Offline urias03

  • Members
  • *
Re: problem with briefing
« Reply #3 on: 30 Aug 2009, 20:31:00 »
thanks  :D
it worked
I got another question,I just don't want to open new thread:
I want the task to be complete after I arrive to waypoint,in this mission one of the objectivs is to get to Point Alpha,I want that when my team arrives I'll complete the objective..

Offline Inkompetent

  • Members
  • *
Re: problem with briefing
« Reply #4 on: 30 Aug 2009, 21:35:32 »
Put the following into the waypoint's On Act. field:
Code: [Select]
nul = [objNull, ObjNull, nameOfTask, "SUCCEEDED"] execVM "CA\Modules\MP\data\scriptCommands\taskHint.sqf";

Offline urias03

  • Members
  • *
Re: problem with briefing
« Reply #5 on: 31 Aug 2009, 10:41:00 »
it doesn't work..the massage says "task complete any"(I wrote the name of the task without space
"ReachPointAlpha")

Offline SaOk

  • Missions Depot Staff
  • *****
    • My youtube profile
Re: problem with briefing
« Reply #6 on: 31 Aug 2009, 10:48:46 »
You need to write nameOfTask without "".

Also add this (so task would be marked as succeeded in briefing):
Code: [Select]
nameOfTask settaskstate "Succeeded";
Edit: You have named tasks as tskObj0,tskObj1,tskObj2 so it should look like this:

Code: [Select]
tskObj0 settaskstate "Succeeded";
nul = [objNull, ObjNull, tskObj0, "SUCCEEDED"] execVM "CA\Modules\MP\data\scriptCommands\taskHint.sqf";
« Last Edit: 31 Aug 2009, 10:53:07 by SaOk »

Offline urias03

  • Members
  • *
Re: problem with briefing
« Reply #7 on: 31 Aug 2009, 11:29:18 »
thanks it worked now