|
towel Beginner
Joined: 27 May 2002 Posts: 13
|
Posted: Mon May 27, 2002 8:44 pm
Please help me with this alias..---> |
I have this alias..
say
me whisper '%1' evilly.
It works if I only use 1 word.. Like this.
say blabla
Pelle whispers 'blabla' evilly.
if I use more than 1 word though it will show like this.
say bla bla
Pelle whispers 'bla' evilly. bla
What should I do to make it work properly? Please help!
towel |
|
|
|
NiteTrip Novice
Joined: 21 May 2002 Posts: 40 Location: Canada
|
Posted: Mon May 27, 2002 9:16 pm |
Use %0 instead
Like this:
#alias {say} {me whispers '%0' evilly.} |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue May 28, 2002 5:30 am |
Use %-1. This is documented in the helpfile for #ALIAS
quote: Special parameters %-1 through %-99 are also defined which represent the parameter plus all text following it. Thus, %-1 contains all text following the alias.
%0 might work (I have no idea one way or the other) but it is NOT documented and therefore should NOT be counted on.
LightBulb
Vague questions get vague answers |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue May 28, 2002 5:33 am |
quote:
Use %0 instead
Like this:
#alias {say} {me whispers '%0' evilly.}
%0 is undocumented, and thus not a very good thing to use. The CORRECT syntax is to use %-n, where n = 1 to 99. You can also use quotes ("%1") or, I think, curly braces ({%1}).
li'l shmoe of Dragon's Gate MUD |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Tue May 28, 2002 11:35 am |
I have done some testing with %0 in the past and it does some strange things when you use it with another %n in the same alias. It really should not be used, and I'm guessing that Zugg never intended it to work.
Kjata |
|
|
|
NiteTrip Novice
Joined: 21 May 2002 Posts: 40 Location: Canada
|
Posted: Thu May 30, 2002 1:04 am |
quote:
I have done some testing with %0 in the past and it does some strange things when you use it with another %n in the same alias. It really should not be used, and I'm guessing that Zugg never intended it to work.
Kjata
Thanks for the info, and my apologies for advising a non documented command, it's left over knowledge from my 4.62 days before i read help files :) |
|
|
|
|
|