OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: urias03 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?
-
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)
-
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.
-
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..
-
Put the following into the waypoint's On Act. field:
nul = [objNull, ObjNull, nameOfTask, "SUCCEEDED"] execVM "CA\Modules\MP\data\scriptCommands\taskHint.sqf";
-
it doesn't work..the massage says "task complete any"(I wrote the name of the task without space
"ReachPointAlpha")
-
You need to write nameOfTask without "".
Also add this (so task would be marked as succeeded in briefing):
nameOfTask settaskstate "Succeeded";
Edit: You have named tasks as tskObj0,tskObj1,tskObj2 so it should look like this:
tskObj0 settaskstate "Succeeded";
nul = [objNull, ObjNull, tskObj0, "SUCCEEDED"] execVM "CA\Modules\MP\data\scriptCommands\taskHint.sqf";
-
thanks it worked now