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
demingm
Beginner


Joined: 27 May 2005
Posts: 23

PostPosted: Mon Jun 06, 2005 3:02 am   

Tinker Gnome speech
 
Ok, this is quite simple, and I should be able to get this to work but I can't. I want to create a simple alias, that when my character talks, all of the words are squished together in one long word/sentence like how tinker gnomes talk in some fantasy novels. See example below:

Normal speech:
I want to talk like a gnome!

Would turn into this:
Iwanttotalklikeagnome!

I tried using a simple %replace to switch all spaces with no spaces, but I couldn't get it to work. Any help would be appreciated.
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Mon Jun 06, 2005 3:15 am   
 
#ALIAS gnomesay {say %replace( %-1, " ", "")}

This works for me at least, what problem were you having with it?
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
demingm
Beginner


Joined: 27 May 2005
Posts: 23

PostPosted: Mon Jun 06, 2005 3:26 am   
 
Ok, that works actually, but commas seem to mess it up. Is the comma used for something else?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Mon Jun 06, 2005 3:39 am   
 
Aarlot Skydiving without a parachute is dangerous its best to always quote when you can

#ALIAS gnomesay {say %replace( "%-1", " ", "")}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Mon Jun 06, 2005 4:49 am   
 
heh, nod nexala. Shoulda seen that Embarassed
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
morgair
Beginner


Joined: 10 Nov 2000
Posts: 24
Location: USA

PostPosted: Mon Jun 06, 2005 5:04 am   
 
have you tried using concat?
_________________
Morgair, Master of the Obvious
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Mon Jun 06, 2005 5:19 am   
 
Why concat? Quoteing it just keeps the part of the comma in the string as being interpreted as a value for the function
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Tue Jun 07, 2005 3:21 am   
 
Heh! Visit Genesis, and use 'rsay'.
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