OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BHD Mod on 17 Jun 2004, 18:52:35

Title: Trigger Variables
Post by: BHD Mod on 17 Jun 2004, 18:52:35
Ok so i have 2 triggers, alpha and bravo, and the player.  The player can only activate alpha if bravo has been activated. I have in my init.sqs

alk = false

and in bravo trigger i have
alk = true

and in alphas CONDITION field i have
alk = true

I heard that this what your supposed to do somewhere, and i dont' know what i'm doing wrong. Can someone please help me? I've been struggling with this variable thing for a while now. Thanks!
Title: Re:Trigger Variables
Post by: Planck on 17 Jun 2004, 19:10:31
Let me see now.

You have :

alk = false ......in init.sqs

and

alk = true ...............in the 'On Activation' field of trigger Bravo

and

alk = true ...............in the 'Condition' field of trigger Alpha

and it isn't working?


I would change Alphas 'Condition' field to:

alk

I think   ::)


Planck
Title: Re:Trigger Variables
Post by: macguba on 17 Jun 2004, 19:55:57
Actually, assuming you want something like "trigger beta fired and also west detected by east in the alpha trigger area" then in alpha you should have

Condition:   this and alk

Obviously with west detected by east in the Activation box.


Title: Re:Trigger Variables
Post by: BHD Mod on 17 Jun 2004, 20:43:51
hey thanks everyone! it worked
Title: Re:Trigger Variables
Post by: Chris Death on 18 Jun 2004, 02:29:28
hmm - i really believe - these strange  tutorials in the ed-depot
could hav cleared out some issues before running into
such a big problem  ;)

~S~ CD
Title: Re:Trigger Variables
Post by: BHD Mod on 18 Jun 2004, 02:48:55
chris,

       i did look in the tutes section first, i just couldn't find it. I especially looked at john gustaffsons tute and the open source guide but i really didn't understand. They had tables of a and b and numbers and it didn't make sense.