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


Joined: 05 Jan 2009
Posts: 7

PostPosted: Mon Jan 05, 2009 9:23 pm   

Detect state of doors?
 
Hi!

Would it be possible to tell mapper when to try to open doors, and when not to? Or else every time I walk through a door and back, CMUD sends "open" command, regardless of whether it's needed.

Thanks.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Mon Jan 05, 2009 9:42 pm   
 
Does it matter if it sends one that's not needed, though? Generally, trying to open something that's shut just gives an error and the map can keep on going.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Mon Jan 05, 2009 10:12 pm   
 
Well, it's spammy, especially if most doors are usually open. I believe you can do this using ZMapper, if you're willing to deal with all of the other bugs.
Reply with quote
yvu
Newbie


Joined: 05 Jan 2009
Posts: 7

PostPosted: Mon Jan 05, 2009 10:46 pm   
 
gamma_ray wrote:
Well, it's spammy, especially if most doors are usually open. I believe you can do this using ZMapper, if you're willing to deal with all of the other bugs.


Would it be possible solely with cmud?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Jan 05, 2009 11:24 pm   
 
Yes. The way to do it is to first set up a trigger that detects the state of the doors. If the mud isn't telling whether they are opened or closed then there is nothing you can do. Once your are properly recording the open/closed state into a variable you can then set up an alias that takes parameters of direction and doorName. It should send the appropiate command based on the contents of the variable. Finally adjust the Strings and Doors section of your mapper configuration, by replacing the "open" with the name of your alias.
_________________
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