Home   Help Search Login Register  

Author Topic: I've seen the answer to this...  (Read 464 times)

0 Members and 1 Guest are viewing this topic.

Black Fox

  • Guest
I've seen the answer to this...
« on: 03 Sep 2003, 03:46:02 »
...but I can't find it now that I need it. This is a very easy question, and believe me, I've RTFM, but I can't quite work it out...

I want a trigger to activate the SECOND time I enter it. How do I make this work?

All apologies for asking such a basic question. I promise that my next question will be far more worthwhile and challenging.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:I've seen the answer to this...
« Reply #1 on: 03 Sep 2003, 05:31:44 »
There are more than one ways to do this.

Here's one of them:

trigger 1 - the trigger you mentioned above

let's say:

size: 50/50
activation: anybody/present/once

name: triggerA
condition: gogo AND player in thislist

onActivation: whatever you want here


trigger 2 - the trigger which checks your presence in trigger 1

size: 0/0

activation: none/repeatedly

condition: player in list triggerA

onDeActivation: gogo = true


Now if you enter trigger 1 the first time, trigger 2 will become
active, but doesn't do anything until you leave trigger 1.
Once you leave trigger 1, gogo will become true.
Now if you enter trigger 1 again, all conditions for trigger 1
do match and it becomes active.

hope this helps

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Zaitsev

  • Guest
Re:I've seen the answer to this...
« Reply #2 on: 03 Sep 2003, 10:59:38 »
y cant u just change the trigger to reapeatdly instead of once

SheepOnMintSauce

  • Guest
Re:I've seen the answer to this...
« Reply #3 on: 03 Sep 2003, 19:56:46 »
I think 'repeatedly' means that the trigger is activated by all the specified units, but not the same one more than once.
« Last Edit: 03 Sep 2003, 19:57:14 by SheepOnMintSauce »

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:I've seen the answer to this...
« Reply #4 on: 03 Sep 2003, 23:09:52 »
@ chrisy :wave:

Quote
size: 50/50
activation: anybody/present/once

name: triggerA
condition: gogo AND player in thislist

size: 0/0
------------------------------------
activation: none/repeatedly

condition: player in list triggerA

onDeActivation: gogo = true

im not sure if dis 1 realy works (but i gotta check it ;))

cuz wen it checks 4 list of trigerits only after it activates nd da 1st triger wont activate cuz gogo is not true @ start :P

but if u 2 trigs like dat

trig1 (grouped w/ player)
size: watever u need
activation: vehicle/present/repeatedly
condition: this
onActivation: playerindere = playerindere +1

trig 2
size: doesnt matter
activation: doesnt matter
condition: playerindere == 2
onActivation: watever u need

nd in units init put

playerindere = 0

dat wil work ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta