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
) 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..