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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
WayharenMudding
Newbie


Joined: 05 Dec 2002
Posts: 9
Location: USA

PostPosted: Thu Nov 06, 2003 7:29 pm   

A little question about say/tell/gt/whisper/etc.
 
Is there an easy, foolproof way to replace a word or two out of a line of text? For instance, I want to make a bunch of words that will change to something different since I am a decently slow typer.

Example:

say Hello there, could I interest you in some learning?

(will change to)

say H'lo der, could meh interest yas in some learnin'?

Is there a simple way to do this? I've tried #ONINPUT, but that didn't work for me, if someone could show me how. Thanks.
Reply with quote
hatespyware
Apprentice


Joined: 16 Dec 2002
Posts: 103

PostPosted: Thu Nov 06, 2003 8:29 pm   
 
I'd probably make an alias that just repeatadly calls %replace. As a possible alternative, you could look into my translation routines... maybe the drawl or jive would be suitable for you.
Code:

#ALIAS drawl {#var SOAPClient %comcreate( "MSSOAP.SOAPClient");#com @SOAPClient.mssoapinit(http://ww6.borland.com/webservices/BorlandBabel/BorlandBabel.exe/wsdl/IBorlandBabel);say @SOAPClient.BabelFish("Drawl", %-1)}


drawl "Hello there, could I interest you in some learning?"
You say 'Hello thare, could Ah interest yawl in sum learning?'
Reply with quote
seamer
Magician


Joined: 26 Feb 2001
Posts: 358
Location: Australia

PostPosted: Fri Nov 07, 2003 1:56 am   
 
If you place "" around the %-1, you no longer need to use drawl "hello", siply using drawl blahblahblah will work just the same (and is less hassle).

#ALIAS drawl {#var SOAPClient %comcreate( "MSSOAP.SOAPClient");#com @SOAPClient.mssoapinit(http://ww6.borland.com/webservices/BorlandBabel/BorlandBabel.exe/wsdl/IBorlandBabel);say @SOAPClient.BabelFish("Drawl", "%-1")}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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