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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
TiberSeptim
Beginner


Joined: 20 Jun 2006
Posts: 24

PostPosted: Sat Jan 12, 2008 3:39 am   

Door Commands, Close Behind Me?
 
When using #WALK the command to open doors is sent automatically. This is a good thing.

On PK MUDs, open doors tell the enemy where you're at. This is a bad thing.

Is there any way to teach #WALK to close doors as you walk through? Namely I want to issue close %doorname(opposite of %lastdir) every time I pass through a door.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Jan 12, 2008 5:06 am   
 
This should work as long as you are using slow mode for the walks.
Code:
#EVENT onRoomEnter {$door=%doorname(%reversedir(%lastdir));#IF ($door) {#SEND {close $door}}}

_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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