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


Joined: 27 May 2002
Posts: 13

PostPosted: 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
Reply with quote
NiteTrip
Novice


Joined: 21 May 2002
Posts: 40
Location: Canada

PostPosted: Mon May 27, 2002 9:16 pm   
 
Use %0 instead

Like this:

#alias {say} {me whispers '%0' evilly.}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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
Reply with quote
NiteTrip
Novice


Joined: 21 May 2002
Posts: 40
Location: Canada

PostPosted: 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 :)
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