OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: PolkovnikSaac on 25 Jul 2008, 23:58:03

Title: objectives how?
Post by: PolkovnikSaac on 25 Jul 2008, 23:58:03
hey all. I would also like to know this..

How do you set objectives in a mission? That one has to complete such inorder to win. Such as, if one enemy man is dead then they may win the game when they get to another trigger point. I know anything is possible in this game. I have been playing it since it came out and still have never got bored.

I'll appreciate any help!

твои полковник,
Саак
Title: Re: objectives how?
Post by: Gcfungus on 26 Jul 2008, 09:02:18
You use triggers of the type, end#1, end#2, lose ect. Using multiple triggers you can create "and" and "or" statements.
I'll give you some examples to make it clearer.
Eg.
Trigger - End#1 - east - not present
Trigger - End#1 - west - present
Trigger - End#2 - west - not present

This would make the game end:
If the east are dead, and the west it alive
or if the west is dead.

That's how to create objectives, if you mean on the breifing then that's completely different. If you do mean the breifing, then it would help if you posted the breifing you're using.
Title: Re: objectives how?
Post by: bedges on 26 Jul 2008, 11:21:10
There's also this (http://www.ofpec.com/ed_depot/index.php?action=details&id=325) tutorial.

Always do a search folks.  :good:
Title: Re: objectives how?
Post by: PolkovnikSaac on 26 Jul 2008, 18:04:18
Very well.
Well what i meant was if a certain unit, like i place an east officer down, and the whole objective is to kill him and only him and get out. I know id have to name him and place that into the on activation maybe?

Id like for it to make that "BONK" sound and say objective complete. Then you would have to go to the end point.

Id also like for the end to not activate unless you have completed the mission.
I know this is all real basic stuff. But i absolutely could not find it anywhere.

I Appreciate the help much!
Title: Re: objectives how?
Post by: Luke on 31 Jul 2008, 06:58:02
Objective names, description (i.e. kill the guy) are defined in the briefing.

if you want the first objective done then do

"1" objstatus "done"

various types include:

"Done"
"failed"
"hidden"
"Active"

Hope that helps!!

Luke