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
kizmet
Newbie


Joined: 20 Jan 2004
Posts: 3
Location: USA

PostPosted: Wed Jan 21, 2004 1:17 am   

stupid trigger question
 

I want to set triggers to open doors for me so I dont have to take the time ...

The mud i play shows a closed door with brackets:

[Exits: north [east] south west [up] down]

In that situation east and up are closed.

When I try to do it I get a recursive trigger cause the system doesn't recognize the [] and when it tries to open east it starts the trigger all over again ...

anyway to get the program to recognize charaters like ~ and [] ?
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Wed Jan 21, 2004 1:30 am   
 
#TR {[(%w)]} {unlock %1;open %1}
Reply with quote
kizmet
Newbie


Joined: 20 Jan 2004
Posts: 3
Location: USA

PostPosted: Wed Jan 21, 2004 1:42 am   
 
That still give me a trigger loop

is it ecause I am using 6.66 and it is a beta version?
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Wed Jan 21, 2004 1:57 am   
 
The ~ symbol is used to indicate that the following should not be parsed as a special character:

#trigger {~[({east|north|west|south|up|down})~]} {unlock %1;open %1}

This trigger will only run once every time you receive the exits line, so if you have 2 or more doors in a single exit line, you'll need to receive the exits line again for it to open the second door etc.
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Wed Jan 21, 2004 2:07 am   
 
Do exits show in your prompt or something?
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