OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Xsi9mm on 17 Feb 2007, 00:04:27
-
Please someone make an example mission on the steps on making a an objective and different kind of objectives. please respond as soon as possible, thanks!
-
Inside your briefing file:
<hr>
<p><a name = "OBJ_1"></a>Go straight South and discover enemy troops.</p>
<hr>
<hr>
<p><a name = "OBJ_2"></a>Destroy enemies.</p>
<hr>
As an example.
Then, to check an objetive as done
"1" objStatus "DONE"
To check an objetive as failded
"1" objStatus "FAILED"
You may execute objStatus inside activation fields of triggers or scripts.
-
uh how does it know what my objective is the briefing is just text how do i designate my objective?
-
OBJ_1 = "1"
OBJ_2 = "2"
etc.
<p><a name = "OBJ_1"></a>Go straight South and discover enemy troops.</p>
the OBJ_1 is the first objective the text following it is the text.
-
Aaand, just to confuse:
The objective in the briefing html code does not have to be OBJ_1..
Sometimes when you are building a large or a complex mission (with multiple hidden objectives etc.) it can be easier to name the objectives with a more descriptive name, so you can use for example
<p><a name = "OBJ_HeadSouthAndReconForNME"></a>Go straight South and discover enemy troops.</p>And then you would tick that objective done with
"HeadSouthAndReconForNME" objStatus "done"
how does it know what my objective is the briefing is just text
I have no clue if this is even close, but:
The game has instructions to 'read' the html file and weed out certain things flagged with some special tag, in this case the tag is OBJ_
Whenever the html reading thingy (yes, very professionally put :P ) finds such a tag it will then read what is written after OBJ_ until it reaches html code again. At that point the game 'memorizes' the text and it can be used with certain commands, in this case objStatus..
-
Ah ok thanks! :D