Home   Help Search Login Register  

Author Topic: Help with objectives to finish mission  (Read 1092 times)

0 Members and 1 Guest are viewing this topic.

Offline Wert112

  • Members
  • *
Help with objectives to finish mission
« on: 28 Aug 2008, 17:38:09 »
Hi, i read several tutorial and i looked for topic which can help me to finish my mission.

I found this interesting.

http://www.ofpec.com/forum/index.php?topic=18563.0

My objectives respect this three conditions

- is something the player must do to complete the mission

- normally has a line in the Briefing which gets a green tick when the player has done it

- is normally associated with one or more triggers in the mission that must be fired for the Objective to be completed


I don't understand how i put an objective done.

In my mission (http://www.ofpec.com/forum/index.php?topic=32080.0) i have to kill all russians soldiers in their base camp and i must destroy their HQ with explosive.

Objectives setted are three (Look directly to code of my briefing)

Code: [Select]
<!---------------------------------------------------->
<!-- Objectives                                     -->
<!---------------------------------------------------->
<!-- Objective 1 -->
<p><a name="obj_1"></a>
<!-- [OBJ_1] -->
Kill all enemy soldiers in their <a href="marker:marker1">Base camp</a>
<!-- [END] -->
</p><hr>

<!-- Objective 2 -->
<p><a name="obj_2"></a>
<!-- [OBJ_2] -->
Destroy <a href="marker:marker4">Weapons chace</a>
<!-- [END] -->
</p><hr>

<!-- Objective 3 -->
<p><a name="obj_3"></a>
<!-- [OBJ_3] -->
Destroy <a href="marker:marker1">enemy camp.</a>
<!-- [END] -->
</p><hr>

So, kill all soldiers (How to set it done?Now i'm using a trigger when all russians are all dead (not present), mission finish)
Destroy weapons chace (I think code is similitar to the one used to set done "kill all soldiers", i know is something which "alive" "not alive")
Destroy all camp

Maybe i'm a bit confusing so ask me everything you need to help me  ;)
« Last Edit: 28 Aug 2008, 19:20:28 by bedges »

Walter_E_Kurtz

  • Guest
Re: Help with objectives to finish mission
« Reply #1 on: 28 Aug 2008, 18:50:50 »
Did you do the mission tutorial that comes with OFP? Go to the root directory of your Flashpoint installation and double-click on Readme.chm (also available in Italian as Readme.Italian.chm). Click on the top right box "Editor", and then on the tank "Editor Tutorial".

The command you want is objStatus, used in the format:
Code: [Select]
"1" objStatus "Done"where 1 is the number of the objective. I can see you have the briefing correctly defined (obj_1, obj_2, obj_3), but this instruction only requires the number (1, 2, 3).


I suggest you might also want to read bedges' Objectives Tutorial for more advanced usage.

Offline Wert112

  • Members
  • *
Re: Help with objectives to finish mission
« Reply #2 on: 29 Aug 2008, 12:25:03 »
Really thanks a lot man  :good: :clap:

I made 2 obj on 3.

For third obj, i still need help.

I have to set when all russians in the camp are not alive, obj done.

So i use the same trigger but i change condition

Code: [Select]
not (alive wc)
Wc is weapons chace obj...now i change it with the name of soldiers but i can add just a soldier, what about syntax?

For example i can write just

Code: [Select]
not (alive r1) (r=russian 1=soldier 1)

If i try to write

Code: [Select]
not (alive r1;r2;r3;r4)
I have a syntax error. How can i write more than one soldier in condition field?

I tried this code too

Code: [Select]
not (alive r1); not (alive r2)
but doesnt work.
« Last Edit: 29 Aug 2008, 12:30:25 by Wert112 »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Help with objectives to finish mission
« Reply #3 on: 29 Aug 2008, 12:46:17 »
Try:

(not (alive r1)) and (not (alive r2)) and ........etc

Or some variation thereof, the brackets might be off   ::)


Planck
I know a little about a lot, and a lot about a little.

Offline Wert112

  • Members
  • *
Re: Help with objectives to finish mission
« Reply #4 on: 29 Aug 2008, 12:59:45 »
It works very well, thanks a lot Planck and thanks a lot OFPEC, you are all very patient and kind people.  :good: :yes:

EDIT: I need help  :confused:

I have the last obj, reach the extraction point.

Activated by NATO final # 1

I want this: when player enter into trigger's area he can see debriefing. At the moment mission finish without opening debriefing which is already setted in briefing.html
« Last Edit: 29 Aug 2008, 18:29:55 by Wert112 »