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
bothkill
Apprentice


Joined: 13 Mar 2005
Posts: 125
Location: Bucharest

PostPosted: 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.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4690
Location: Pensacola, FL, USA

PostPosted: Mon Feb 16, 2009 11:23 pm   
 
Does: ~S
manage to get around the predefined directions?
_________________
Discord: Shalimarwildcat
Reply with quote
bothkill
Apprentice


Joined: 13 Mar 2005
Posts: 125
Location: Bucharest

PostPosted: 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.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4690
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Tue Feb 17, 2009 2:38 am   
 
#sendraw "S" might work.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
bothkill
Apprentice


Joined: 13 Mar 2005
Posts: 125
Location: Bucharest

PostPosted: 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".
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Tue Feb 17, 2009 11:52 am   
 
Create a trigger of type oninput/Command Input, with the pattern
Code:
^S$

and commands
Code:
#noinput
#sendraw S
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4690
Location: Pensacola, FL, USA

PostPosted: Tue Feb 17, 2009 12:28 pm   
 
best make it case sensative too
_________________
Discord: Shalimarwildcat
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Tue Feb 17, 2009 12:51 pm   
 
Whoops, yeah, I thought I mentioned that, but apparently only in my head.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: 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).
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: 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.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: 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.
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