OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: illmatic on 18 Apr 2004, 15:41:57
-
(triggername) == true
something like that, can someone remind me please, thx ;D
-
uhm...i guess you have to do it with a variable...could look like this
scripting stuff
.....
.....
.....
myVariable true
.....
.....
.....
more scripting stuff
in the trigger condition field then just put
myVariable
i think this should work
-
thx
-
~5
#start
my1Variable = true
~2
my6Variable = true
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 2], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic]
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 1], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic]
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 0.500], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic]
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 0.250], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic]
drop ["cl_water", "", "Billboard", 5.5, 5.5, [0, 0, 3], [0, 0, -0.10], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic]
drop ["cl_water", "", "Billboard", 6, 6, [0, 0, 3], [0, 0, -0.110], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic]
my2Variable = true
~2
my7Variable = true
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 2], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic2]
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 1], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic2]
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 0.500], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic2]
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 0.250], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic2]
drop ["cl_water", "", "Billboard", 5.5, 5.5, [0, 0, 3], [0, 0, -0.10], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic2]
drop ["cl_water", "", "Billboard", 6, 6, [0, 0, 3], [0, 0, -0.110], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic2]
my3Variable = true
~2
my8Variable = true
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 2], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic3]
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 1], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic3]
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 0.500], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic3]
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 0.250], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic3]
drop ["cl_water", "", "Billboard", 5.5, 5.5, [0, 0, 3], [0, 0, -0.10], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic3]
drop ["cl_water", "", "Billboard", 6, 6, [0, 0, 3], [0, 0, -0.110], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic3]
my4Variable = true
~2
my9Variable = true
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 2], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic4]
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 1], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic4]
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 0.500], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic4]
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 0.250], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic4]
drop ["cl_water", "", "Billboard", 5.5, 5.5, [0, 0, 3], [0, 0, -0.10], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic4]
drop ["cl_water", "", "Billboard", 6, 6, [0, 0, 3], [0, 0, -0.110], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic4]
my5Variable = true
~2
my10Variable = true
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 2], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic5]
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 1], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic5]
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 0.500], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic5]
drop ["cl_water", "", "Billboard", 5, 5, [0, 0, 3], [0, 0, 0.250], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic2]
drop ["cl_water", "", "Billboard", 5.5, 5.5, [0, 0, 3], [0, 0, -0.10], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic5]
drop ["cl_water", "", "Billboard", 6, 6, [0, 0, 3], [0, 0, -0.110], 0, 1.275, 1, 0, [5],[[0.8,0.8,0.9,0],[0.9,0.9,1,0.7],[0.8,0.8,0.9,0],[0.8,0.8,0.9,0]],[0],0,0,"","",logic5]
goto "start"
the trigger doesnt seem to be reactivating.......
-
not sure what you try to do...or what the trigger has to do...there are 2 possible solutions for....here's the first:
you want the trigger to do the same thing every time your variable get's true...so put the trigger on repeatedly and in it's on activation field put:
myvariable false
in the script remove the numbers out from the variables, means not my1variable, my2variable....just myvariable.
this way, the same trigger activates each time your script sets myvariable true, the trigger itself switches the variable back to false and trigger is ready to fire again.
Second possible solution: you want different things being done by trigger....then you'll need a separate trigger for each numbered variable.
If you tell me what you're trying to do, my answer could get a little more precise. ;D
-
How many triggers do you have?
You have many similarly named variables set to true in your script:
myXVariable.......Where X represents a number.
So I presume you have a similar number of triggers to detect when each is true.
Planck
-
theres 10 triggers, each with a sound on voice mode, so its just like heard close, ive put loads of these in so they can be heard from different directions rather one point, i dont no if im explaining this clearly.
each varable is named
my1varable
my2varable
-skip a few
my9varable
my10varable
......ok thats best i can explain it i think....... hope you understand :(
-
your solution one got this working, thanks guys