|
demingm Beginner
Joined: 27 May 2005 Posts: 23
|
Posted: 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. |
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: 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. |
|
|
|
demingm Beginner
Joined: 27 May 2005 Posts: 23
|
Posted: 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?
|
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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", " ", "")} |
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: Mon Jun 06, 2005 4:49 am |
heh, nod nexala. Shoulda seen that
|
|
_________________ Everyone is entitled to their beliefs - until they die. Then only the truth matters. |
|
|
|
morgair Beginner
Joined: 10 Nov 2000 Posts: 24 Location: USA
|
Posted: Mon Jun 06, 2005 5:04 am |
have you tried using concat?
|
|
_________________ Morgair, Master of the Obvious |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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
|
|
|
|
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: Tue Jun 07, 2005 3:21 am |
Heh! Visit Genesis, and use 'rsay'.
|
|
|
|
|
|