Briefing.html – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
Line 10: Line 10:
What folder do you actually put the Briefing.HTML file into?
What folder do you actually put the Briefing.HTML file into?
[[User:Chrisg9999|Chrisg9999]] 17:32, 22 July 2008 (CEST)
[[User:Chrisg9999|Chrisg9999]] 17:32, 22 July 2008 (CEST)
== Briefing file format ==
If somebody translate this text from (awful) english to english, and will complement the text, I'll be very grateful:
This is a minimal example, well showing format of the briefing:
<pre>
<html>
<body>
<p><a name="plan"></a>Section "plan", here describes the mission plan. <br>It link on <a href="#user_section_2">user section (2)</a> of briefing.</p><hr>
<p><a name="main"></a>Section "main", here are the diary entries. <br>It link on <a href="#user_section_1">user section (1)</a> of briefing.</p><hr>
<p><a name = "obj_first"></a>First objective.</p><hr>
<p><a name = "obj_second"></a>Second objective</p><hr>
<p><a name = "obj_third"></a>Third objective</p><hr>
<p><a name = "obj_fourth"></a>Fourth objective</p><hr>
<p><a name="debriefing:end1"></a>Debriefing end 1</p><hr>
<p><a name="debriefing:end2"></a>Debriefing end 2</p><hr>
<h2><a name="user_section_1"></a>User section 1</h2>
<p>Text of own section 1</p><hr>
<h2><a name="user_section_2"></a>User section 2</h2>
<p>Text of own section 2</p><hr>
</body>
</html>
</pre>
Here removed all ignored by the game and littering tags (such as head, title, meta).
Also shows a little known fact that the objectives isn't required to have a name format "obj_<SOME_NUMBER>", so you can give them meaningful, characterizes the task name, such as:
    <nowiki><p><a name = "obj_destroy_enemy_snipers"></a>Destroy enemy snipers</p><hr></nowiki>
Herewith, script code, which changes the status of the objective will look like this:
    "destroy_enemy_snipers" objStatus "DONE"
Which certainly improves the readability of the script.
And now a brief description of:
*The contents of the file should be framed by tags <nowiki><html> and <body></nowiki>.
*The file contains several sections.
*Sections should be enclosed in a container <nowiki><body></nowiki>
*Game recognize sections by the tag <a name="section_name">, which must be nested in one of the following containers: <nowiki><p>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6></nowiki>.
*Section ends with the tag <nowiki><hr></nowiki>.
*Tags <nowiki><p>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6></nowiki> used to change the font:
**<nowiki><p></nowiki>  - Normal font;
**<nowiki><h1></nowiki> - Large font used for big headers;
**<nowiki><h2></nowiki> - Slightly smaller font to be used for smaller headers;
**<nowiki><h3></nowiki> - Normal font;
**<nowiki><h4></nowiki> - Small text size;
**<nowiki><h5></nowiki> - Book font style;
**<nowiki><h6></nowiki> - Handwritten font.
*Nesting these tags aren't allowed.
*The standard section names:
**plan - mission plan;
**main - diary entries.
*Section names that fall under the format (PCRE) /obj_(\w+)/ are recognized as sections of objectives, herewith command objStatus uses $1 as name of objective.
*Section names that fall under the format (PCRE) /debriefing:(end\d+)/ are recognized as debriefing section, herewith "$1" correspond to the type of the mission end trigger.

Latest revision as of 06:41, 25 November 2011

Briefing Sounds

Sorry, but that last edit is not correct; the Sounds have to be defined in CfgSounds, but the onBriefingX stand "free" (in no CfgX) there as for example respawnDelay or disableAI. :)

--Raedor 12:48, 6 June 2006 (CEST)

sorted ;)

Folder

What folder do you actually put the Briefing.HTML file into? Chrisg9999 17:32, 22 July 2008 (CEST)

Briefing file format

If somebody translate this text from (awful) english to english, and will complement the text, I'll be very grateful:

This is a minimal example, well showing format of the briefing:

<html>
<body>

<p><a name="plan"></a>Section "plan", here describes the mission plan. <br>It link on <a href="#user_section_2">user section (2)</a> of briefing.</p><hr>

<p><a name="main"></a>Section "main", here are the diary entries. <br>It link on <a href="#user_section_1">user section (1)</a> of briefing.</p><hr>

<p><a name = "obj_first"></a>First objective.</p><hr>

<p><a name = "obj_second"></a>Second objective</p><hr>

<p><a name = "obj_third"></a>Third objective</p><hr>

<p><a name = "obj_fourth"></a>Fourth objective</p><hr>

<p><a name="debriefing:end1"></a>Debriefing end 1</p><hr>

<p><a name="debriefing:end2"></a>Debriefing end 2</p><hr>


<h2><a name="user_section_1"></a>User section 1</h2>
<p>Text of own section 1</p><hr>

<h2><a name="user_section_2"></a>User section 2</h2>
<p>Text of own section 2</p><hr>


</body>
</html>

Here removed all ignored by the game and littering tags (such as head, title, meta). Also shows a little known fact that the objectives isn't required to have a name format "obj_<SOME_NUMBER>", so you can give them meaningful, characterizes the task name, such as:

   <p><a name = "obj_destroy_enemy_snipers"></a>Destroy enemy snipers</p><hr>

Herewith, script code, which changes the status of the objective will look like this:

   "destroy_enemy_snipers" objStatus "DONE"

Which certainly improves the readability of the script.

And now a brief description of:

  • The contents of the file should be framed by tags <html> and <body>.
  • The file contains several sections.
  • Sections should be enclosed in a container <body>
  • Game recognize sections by the tag <a name="section_name">, which must be nested in one of the following containers: <p>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>.
  • Section ends with the tag <hr>.
  • Tags <p>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6> used to change the font:
    • <p> - Normal font;
    • <h1> - Large font used for big headers;
    • <h2> - Slightly smaller font to be used for smaller headers;
    • <h3> - Normal font;
    • <h4> - Small text size;
    • <h5> - Book font style;
    • <h6> - Handwritten font.
  • Nesting these tags aren't allowed.
  • The standard section names:
    • plan - mission plan;
    • main - diary entries.
  • Section names that fall under the format (PCRE) /obj_(\w+)/ are recognized as sections of objectives, herewith command objStatus uses $1 as name of objective.
  • Section names that fall under the format (PCRE) /debriefing:(end\d+)/ are recognized as debriefing section, herewith "$1" correspond to the type of the mission end trigger.