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
zorra
Beginner


Joined: 13 Oct 2006
Posts: 10

PostPosted: Sun Mar 04, 2007 6:04 am   

room prohibit commands question
 
How can I prohibit some certain commands in a specific room?
For example, I don't want to move east in room A, even when room A DOES have a east direction. So I want to like filter the direction, how can I do that?
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Sun Mar 04, 2007 10:10 am   
 
You would add this in the roomscript: #oninput {(*)} {}. You would then check what the command was, before allowing it through or not. Ie: #oninput {(*)} {#if {%1="e"} {#gag} {%1}}
Play around with it.
Reply with quote
zorra
Beginner


Joined: 13 Oct 2006
Posts: 10

PostPosted: Sun Mar 04, 2007 11:28 am   
 
thx, I'll try it out
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