Home   Help Search Login Register  

Author Topic: trigger activate through script  (Read 484 times)

0 Members and 1 Guest are viewing this topic.

illmatic

  • Guest
trigger activate through script
« on: 18 Apr 2004, 15:41:57 »
(triggername) == true

something like that, can someone remind me please, thx  ;D

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:trigger activate through script
« Reply #1 on: 18 Apr 2004, 15:59:47 »
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
« Last Edit: 18 Apr 2004, 16:00:45 by myke13021 »

illmatic

  • Guest
Re:trigger activate through script
« Reply #2 on: 18 Apr 2004, 16:36:26 »
thx

illmatic

  • Guest
Re:trigger activate through script
« Reply #3 on: 18 Apr 2004, 16:37:47 »
~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.......



Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:trigger activate through script
« Reply #4 on: 18 Apr 2004, 16:46:52 »
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

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:trigger activate through script
« Reply #5 on: 18 Apr 2004, 16:50:28 »
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
I know a little about a lot, and a lot about a little.

illmatic

  • Guest
Re:trigger activate through script
« Reply #6 on: 18 Apr 2004, 16:54:59 »
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 :(

illmatic

  • Guest
Re:trigger activate through script
« Reply #7 on: 18 Apr 2004, 16:59:06 »
your solution one got this working, thanks guys