Home   Help Search Login Register  

Author Topic: Endings!  (Read 577 times)

0 Members and 1 Guest are viewing this topic.

CptBravo

  • Guest
Endings!
« on: 29 Dec 2002, 18:34:11 »
Hi,

I am fairly new to OFP editing. I know how to end missions with one objective using a Triggor. Now how do I end it with 2 or 3 objectives. Such as A) rescue prisoners B) Destroy Tank and C) make it to evacuation point ? Is there an EASY way to combine several triggors?

Any help is grrrrrrrrreatly appreciated!!

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:Endings!
« Reply #1 on: 29 Dec 2002, 19:52:30 »
There is indeed.  It requires just a couple of extra lines into your objective triggers to make it all work.

If for example your objective A trigger is activated when your prisoner is rescued, and you have a trigger that detects this and has the activation field as

"1" ObjStatus "DONE"

Then add into this trigger a simple extra boolean variable;

"1" ObjStatus "DONE"; OBJ1 = TRUE

So when your first objective is complete, it also sets a varible to true.  You can use this variable to check if a number of objectives are complete and end the mission.  In each objective complete trigger put a seperate variable and set it to true (I use OBJnumber for simplicity).  Then you can make an end trigger with the condition;

OBJ1 and OBJ2 and OBJ3

and this will activate your trigger and end the game (assuming its an end trigger.)  Note you can also use the && shortcut instead of using the word "and".

CptBravo

  • Guest
Re:Endings!
« Reply #2 on: 30 Dec 2002, 02:10:58 »
Thank you very much!! I have just tried it and it worked perfectly!!

Thanks again!! :)