Re: Lower case?

will guaraldi <[email protected]> Wed, 27 Apr 2005 09:02:24 -0500 (CDT)
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
Fiddlesticks.  I know this issue has come up before, but I can't remember 
what we said.

You could definitely create a variable, run the #math command (which seems 
weird, but all it does is a Python eval) on it, and then use that for 
wave.  Something like this (and my Lyntin macro stuff is really rusty):

#action {^%1 waves at you.} {#math {wavetarget} {"%1".lower()};wave 
$wavetarget}

Or something along those lines.

Another possibility is to write a command that handles the lower casing. 
That would be more portable in the long run should:

   1) another version of Lyntin come out, and
   2) it has a different implementation of #math

Hope that helps--
/will


On Tue, 26 Apr 2005, Malachi Clark wrote:
>
> Anyone know a good way to get a variable to lowercase?
>
> Say for example:
>
> #action {^%1 waves at you.} {wave %1}
>
> But I want %1 to be forced to lowercase before being sent to the mud. 
> Any thoughts?


-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix