Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: Thu Jun 03, 2010 12:44 am   

[3.17+] Suggestion: Short/long direction name conversion function.
 
Just a function that would convert a single or series of directions between their full/long name (ie: north) and short name (ie: n).

Something like:

%dir( "east", "short")

%dir( "east|north", "short")

%dir( "e", "full")

%dir( "e|n", "full)

Obviously this is something that can already be done using a user-defined function, but I thought it'd be useful.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Jun 03, 2010 2:45 am   
 
you mean like %pathexpand() and %pathcompress()?

For simple suggestions like this, the Command/Function/Scripting References can be your friend--and you're likely to learn a few things along the way, too. Very Happy
_________________
EDIT: I didn't like my old signature
Reply with quote
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: Thu Jun 03, 2010 2:50 am   
 
Those commands are not at all what I'm looking for.

What I'm suggesting is a simple command that would turn "e|n" into "east|north." and vice-versa.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Thu Jun 03, 2010 1:49 pm   
 
There's one problem with your suggestion, General. Currently, directions do not have an "official" long name. Zugg would have to add a new parameter for directions to fill that function. Is there a specific reason you want to do this?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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