  | 
	
	
	
		zorra Beginner
 
  Joined: 13 Oct 2006 Posts: 10
 
  | 
		
		  
			
			   Posted: 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? | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		Danlo Magician
  
  Joined: 28 Nov 2003 Posts: 313 Location: Australia
  | 
		
		  
			
			   Posted: 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. | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		zorra Beginner
 
  Joined: 13 Oct 2006 Posts: 10
 
  | 
		
		  
			
			   Posted: Sun Mar 04, 2007 11:28 am      | 
			 
			
				thx, I'll try it out
  | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		| 
		
		 | 
	
	
		 |