  | 
	
	
	
		bothkill Apprentice
  
  Joined: 13 Mar 2005 Posts: 125 Location: Bucharest
  | 
		
		  
			
			   Posted: Mon Feb 16, 2009 10:16 pm   
  capital direction letters "N,E,S,W"   | 
			 
			
				Is it possible for capital "S" not to count as "s" (south) direction?
 
 
The same goes for the other English directions: N,E,W,NE etc.
 
 
In the MUD I play sometimes I need to enter "S" but the mapper moves to the south room which is not what I need.
 
I need it just to send "S" to the MUD. | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		shalimar GURU
  
  Joined: 04 Aug 2002 Posts: 4774 Location: Pensacola, FL, USA
  | 
		
		  
			
			   Posted: Mon Feb 16, 2009 11:23 pm      | 
			 
			
				Does: ~S
 
manage to get around the predefined directions? | 
			 
		  | 
	
	
	  
		  
		    
			  _________________ Discord: Shalimarwildcat | 
			       | 
			 
		   
		 | 
	
	
		  | 
	
	
		bothkill Apprentice
  
  Joined: 13 Mar 2005 Posts: 125 Location: Bucharest
  | 
		
		  
			
			   Posted: Mon Feb 16, 2009 11:29 pm      | 
			 
			
				"~S" still moves me one room south.
 
"S" is also sent to the MUD.
 
 
Even if "~S" would have worked, I wouldn't be satisfied with it because I don't think this kind of solution is an elegant one.
 
I need to disable capital direction from working as directions. | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		shalimar GURU
  
  Joined: 04 Aug 2002 Posts: 4774 Location: Pensacola, FL, USA
  | 
		
		  
			
			   Posted: Mon Feb 16, 2009 11:40 pm      | 
			 
			
				Well the only elegant method I can think of is to somehow disable the default directions package to input the one command... but I'm not sure if that is even currently possible.
  | 
			 
		  | 
	
	
	  
		  
		    
			  _________________ Discord: Shalimarwildcat | 
			       | 
			 
		   
		 | 
	
	
		  | 
	
	
		Fang Xianfu GURU
  
  Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
  | 
		
		  
			
			   Posted: Tue Feb 17, 2009 2:38 am      | 
			 
			
				#sendraw "S" might work.
  | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		MattLofton GURU
 
  Joined: 23 Dec 2000 Posts: 4834 Location: USA
  | 
		
		  
			
			   Posted: Tue Feb 17, 2009 2:50 am      | 
			 
			
				Do quotes not work for this ("S")?  I guess that would be the same as ~, though, and the same for ` at the beginning of the line.
 
 
What about #SENDRAW?
 
 
After that, about the only thing left to do is to remove the EnglishDirections package and create your own that removes "s"/"S" from the macro definition.  Can't just do this to EnglishDirections because the next update will just overwrite that (plus it's read-only as well). | 
			 
		  | 
	
	
	  
		  
		    
			  _________________ EDIT: I didn't like my old signature | 
			       | 
			 
		   
		 | 
	
	
		  | 
	
	
		bothkill Apprentice
  
  Joined: 13 Mar 2005 Posts: 125 Location: Bucharest
  | 
		
		  
			
			   Posted: Tue Feb 17, 2009 7:28 am      | 
			 
			
				I've looked into "English Directions.pkg" SQLite database and further into the 'settings' table.
 
 
Couldn't find any uppercase directions. All directions were lowercase.
 
 
So, I don't think making a new directions package will solve the problem.
 
I presume that CMUD internally deals with this, accepting uppercase exits as valid exits.
 
 
 
P.S.
 
#SENDRAW "S" works ofc, but I would prefer CMUD not to take "S" the same as "s". | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		gamma_ray Magician
 
  Joined: 17 Apr 2005 Posts: 496
 
  | 
		
		  
			
			   Posted: Tue Feb 17, 2009 11:52 am      | 
			 
			
				Create a trigger of type oninput/Command Input, with the pattern
 
 
and commands
 
 
	  | Code: | 
	 
	
	  #noinput
 
#sendraw S | 
	 
 
 | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		shalimar GURU
  
  Joined: 04 Aug 2002 Posts: 4774 Location: Pensacola, FL, USA
  | 
		
		  
			
			   Posted: Tue Feb 17, 2009 12:28 pm      | 
			 
			
				best make it case sensative too
  | 
			 
		  | 
	
	
	  
		  
		    
			  _________________ Discord: Shalimarwildcat | 
			       | 
			 
		   
		 | 
	
	
		  | 
	
	
		gamma_ray Magician
 
  Joined: 17 Apr 2005 Posts: 496
 
  | 
		
		  
			
			   Posted: Tue Feb 17, 2009 12:51 pm      | 
			 
			
				Whoops, yeah, I thought I mentioned that, but apparently only in my head.
  | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		Rahab Wizard
 
  Joined: 22 Mar 2007 Posts: 2320
 
  | 
		
		  
			
			   Posted: Tue Feb 17, 2009 2:04 pm      | 
			 
			
				Unfortunately, you are correct that cmud automatically accepts both uppercase and lowercase versions of the directions.  I had tried for a while to make a new set of directions using capital letters as the short name, e.g. J as "swim ne", but it would count both 'j' and 'J' as the same direction (whichever direction it found first in its list).
  | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		gamma_ray Magician
 
  Joined: 17 Apr 2005 Posts: 496
 
  | 
		
		  
			
			   Posted: Tue Feb 17, 2009 5:22 pm      | 
			 
			
				Rahab, you should be able to use an oninput trigger for that one, too, as long as you add "swim <whatever>" to the list of commands for the actual direction, and don't use sendraw in your trigger. It's kind of a clunky hack-around, but I think it's better than being case sensitive by default.
  | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		Rahab Wizard
 
  Joined: 22 Mar 2007 Posts: 2320
 
  | 
		
		  
			
			   Posted: Tue Feb 17, 2009 9:35 pm      | 
			 
			
				well, actually, I didn't want to put 'swim ne' to the directions list for 'ne', because there are locations where I need to use the 'swim ne' command, and 'ne' won't work.  so a path with 'j' won't work.  I haven't worried about it for a while, but I'm poking at it some more now.  An oninput trigger is probably part of the solution.
  | 
			 
		  | 
	
	
	  | 
		  
		 | 
	
	
		  | 
	
	
		| 
		
		 | 
	
	
		 |