OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Wert112 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)
<!---------------------------------------------------->
<!-- 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 ;)
-
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:
"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 (http://www.ofpec.com/ed_depot/index.php?action=details&id=325&page=1&cat=xyz) for more advanced usage.
-
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
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
not (alive r1) (r=russian 1=soldier 1)
If i try to write
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
not (alive r1); not (alive r2)
but doesnt work.
-
Try:
(not (alive r1)) and (not (alive r2)) and ........etc
Or some variation thereof, the brackets might be off ::)
Planck
-
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