Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Ruderion
Novice


Joined: 12 Jan 2003
Posts: 33
Location: Netherlands

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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}}
Reply with quote
Ruderion
Novice


Joined: 12 Jan 2003
Posts: 33
Location: Netherlands

PostPosted: Tue Jul 06, 2004 7:27 pm   
 
thanks, didn't know about the alias. It works now.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net