Welcome to the Builder Academy

Question %echo% capitlization

More
11 Aug 2012 06:16 #637 by Halenbane
I noticed %echo% likes to capitalize the first letter, is there a way to make this not so.

Example.

%echo% Hey this is just
%echo% a test line to give
%echo% an example

currently outputs

Hey this is just
A test line to give
An example

Please Log in or Create an account to join the conversation.

More
11 Aug 2012 07:36 #638 by bakarus
Replied by bakarus on topic Re: %echo% capitlization
There is probably a better way, but if you want a fast/dirty way use something like this


set lowercaseString "a small snail"

if %speech% == test
%echo% %lowercaseString%


that will echo "a small snail" if you say test,


not sure if that will work for your application but maybe rumble or fizban will give a better solution :P

Please Log in or Create an account to join the conversation.

More
11 Aug 2012 15:07 #643 by Vatiken
Replied by Vatiken on topic Re: %echo% capitlization
sub_write_to_char() in dg_comm.c capitalizes the first character before it outputs.

tbaMUD developer/programmer
The following user(s) said Thank You: Halenbane

Please Log in or Create an account to join the conversation.

Time to create page: 0.212 seconds