OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Werewolf on 19 Sep 2006, 01:16:28
-
excuse me for my question, but i'm new in creating missions for operation flashpoint, new in creating missions in general, i might add.
the thing is that i create a scenario, waypoints, everything, and all works just fine, i did the html file for briefing, everything is great, except that i don't know how to set the objectives for the mission. i mean, i made a multiplayer cooperative mission with an atack over a city, i kill all the defence, but nothing happens, because i don't know how to set the victory conditions. pls explain to me how can i set those, i've read some tutorials, but nothing is named about this. :dunno:
-
"1" objStatus "DONE"; hint "You have a new objective. \n\nWait for evac."
the "1" objStatus "DONE" part will tick of the objective provided its named 1 in your briefing
the hint "blah blah" will make the ding noise
the \n\n just puts a space in the sentences
ps that all goes in the trigger!!!
someone alse here will have more info , a tute or something, cheers
-
"1" objStatus "DONE"; hint "You have a new objective. \n\nWait for evac."
a good thing is to add in this line:
"1" objStatus "DONE"; hint "You have a new objective. \n\nWait for evac."; ob1 = true
make an end trigger if you have only one objective and in its conditionfield put:
ob1
In the first part you see that when the objective is reached, a variable ob1 is set to true; in the second (end-)trigger you see you need a condition (a variable in this case) called ob1
in the activation field:
ForceEnd
This is a good thing if ur putting more than objective to achieve; let's say a 2nd trigger(objective) would be:
"2" objStatus "DONE"; hint "We got the hind!\nLet's get out of here"; ob2 = true
Then in the condition of your end trigger you would put:
ob1 AND ob2in the activation:
ForceEnd
-
Conceptually, victory conditions are usually associated with triggers. You decide on what victory conditions you want; use a trigger to detect them and end the mission.
-
there's also a new tutorial here (http://www.ofpec.com/forum/index.php?topic=28085.0). it might help.