|
Ruderion Novice
Joined: 12 Jan 2003 Posts: 33 Location: Netherlands
|
Posted: Tue Jul 06, 2004 1:09 pm
? about using zone/room scripts |
i want to make a script that searches every room i enter. I tried entering the following script for the always active zone script:
#TRIGGER {*} {
#IF (@search="ON") {search}
}
or even this:
#IF (@search="ON") {search}
Both don't work as i thought it would. Any idea how i should do this? Also, the trigger probably has to inactivate itself otherwise it would fire multiple time in the room. How do i do that?
Thanks |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Jul 06, 2004 6:18 pm |
I would just use the builtin alias.
#AL onroomenter {search}
A variable can be used to provide control, if desired. I usually set control variables to 1 or 0, but ON (or any other string) will work.
#VAR search ON
#AL onroomenter {#IF (@search = "ON") {search}} |
|
|
|
Ruderion Novice
Joined: 12 Jan 2003 Posts: 33 Location: Netherlands
|
Posted: Tue Jul 06, 2004 7:27 pm |
thanks, didn't know about the alias. It works now.
|
|
|
|
|
|