OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ice Man 3:16 on 30 Apr 2004, 00:23:21

Title: Mission ends when all triggers are tripped
Post by: Ice Man 3:16 on 30 Apr 2004, 00:23:21
I'm working on another mission.  This mission you have to locate a few hidden objects in a town.  Each object has a small trigger above it so when you get close to the object it tripps the trigger.  What i need to know is how to set it up so after all the triggers are tripped it makes a end game trigger active so it can be tripped.  The end game trigger will be back at the base and you will have to trip it for the game to end.

thanks in advance.
Title: Re:Mission ends when all triggers are tripped
Post by: Wadmann on 30 Apr 2004, 01:10:01
I would use variables that are set to true with the activation of each trigger the for the end trigger you would use the condition field and specify that all prior variables are true before activating the last trigger. Something like this:

Name - Trigger1
West (or whatever) Present
Activation - Obj1=true

Name - Trigger2
West (or whatever) Present
Activation - Obj2=true

...and so on for the triggers over objects.

Then for the final trigger:

West (or whatever) Present Group this trigger to the player w/F2
Cond - this and obj1 and obj2 and ...
Act - Whatever

As usual, this is posted from work so check my commands and syntax but this should get you going in the right direction.

                                                                                Wadmann
Title: Re:Mission ends when all triggers are tripped
Post by: Ice Man 3:16 on 30 Apr 2004, 02:51:16
sweet! it works!

thanks so much man

cheers :cheers: