OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BrAinOfJ on 07 May 2003, 17:49:18

Title: Trigger....
Post by: BrAinOfJ on 07 May 2003, 17:49:18
I have a condition i need to be met in a mission. The objective is a village must be taken. The mission runs smoothly, BUT, i have added a "end" trigger that activates when there is "east not present", so its possible for a player not to be in the village when all the eastern soldiers are dead, and therefore the village isnt really "taken". Now, im about to go and try adding another trigger that is smaller, and activated when "west=present" and syncronising it to the "east not present" trigger. Will that mean that both conditions have to be met for the trigger to activate?
Title: Re:Trigger....
Post by: SimonRussi on 07 May 2003, 17:57:22
create 2 triggers as you said. in the onAct fields put:

eastDead=true and WestPresent=true

then create the End trigger and in the condition field put

eastDead && WestPresent

this will sure work

simon
Title: Re:Trigger....
Post by: BrAinOfJ on 07 May 2003, 18:07:14
Thanks again :)
Title: Re:Trigger....
Post by: Tomb on 07 May 2003, 21:21:28

  :hmm: Whatcha need is ONE trigger, m8  :o  :D

 Hence this :


I have a condition .... The objective is a village must be taken.

... i have added a "end" trigger that activates when there is "east not present"...


==================

SO, as I get this, YOU wanna win the mission when the town has been captured ?!

(you there & east dead, right)  ??? :)


Well, if that's the case, simply create ONE trigger, and make it look a bit like this, matey  :-*

***********************************************************

Axis   a & b   =  340 / 340    ( - or whatever it takes to cover the town.)

Activated by VEHICLE   (read info below)

Condition Field = This && EAST countside ThisList < 1 :thumbsup:

***********************************************************


See, just hit the F2 button and drag a grouping line from trigger to YOU (player).
 :) That's what will make the trigger get activated by YOU and only you
(or select "whole group" from the trigger menu if ya like.)

...and the code in the condition field will make sure that it won't fire even if you're inside the radius unless all eastern units are dead/out of radius AND (&&) you are ÍNside the trigger.  8)

Just be sure to blow up all enemy tanks, as "0.999 %  damaged" tanks will be counted as "ALIVE" units  ::)