Home   Help Search Login Register  

Author Topic: How to make an objective? Ive never been able to make one  (Read 2554 times)

0 Members and 1 Guest are viewing this topic.

Offline Xsi9mm

  • Members
  • *
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!

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: How to make an objective? Ive never been able to make one
« Reply #1 on: 17 Feb 2007, 00:34:49 »
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
Code: [Select]
"1" objStatus "DONE"
To check an objetive as failded
Code: [Select]
"1" objStatus "FAILED"
You may execute objStatus inside activation fields of triggers or scripts.

Offline Xsi9mm

  • Members
  • *
Re: How to make an objective? Ive never been able to make one
« Reply #2 on: 17 Feb 2007, 00:46:12 »
uh how does it know what my objective is the briefing is just text how do i designate my objective?

Offline hoz

  • OFPEC Site
  • Administrator
  • *****
Re: How to make an objective? Ive never been able to make one
« Reply #3 on: 17 Feb 2007, 02:06:15 »
OBJ_1 = "1"
OBJ_2 = "2"
etc.

Code: [Select]
<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.

Xbox Rocks

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: How to make an objective? Ive never been able to make one
« Reply #4 on: 17 Feb 2007, 11:36:11 »
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
Code: [Select]
<p><a name = "OBJ_HeadSouthAndReconForNME"></a>Go straight South and discover enemy troops.</p>And then you would tick that objective done with
Code: [Select]
"HeadSouthAndReconForNME" objStatus "done"
Quote
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..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Xsi9mm

  • Members
  • *
Re: How to make an objective? Ive never been able to make one
« Reply #5 on: 17 Feb 2007, 17:32:01 »
Ah ok thanks!  :D