|
TiberSeptim Beginner
Joined: 20 Jun 2006 Posts: 24
|
Posted: 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. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
|
|