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


Joined: 03 Nov 2002
Posts: 21

PostPosted: Sun Nov 03, 2002 5:56 am   

need help with %param -?
 
not sure if its %param in any form, but i would like to know how to do this.

Lasha tells you '-[L]- you'll inevitably use the alias for pure evil :( -[L]-'

undoubtably she doesn't know me very well. but yes i figured out how to spam somebody pretty good, but what shes doing for her alias there is beyond me.
HELP!
#ALIAS {ct} {???????}


Niax Rhasu
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Nov 03, 2002 5:51 pm   
 
You can access the parameters passed to an alias in the %1..%n form to access the first, second, third, etc. parameter. You may also use %-1..%-n form to access all of the parameters passed, all of the parameters passed after the first one, etc. Finally, any parameters passed to an alias that are not used, are appended to the end of the commands sent to the MUD.

Here are some examples to illustrate all of this:
#ALIAS test1 {say}
#ALIAS test2 {greet %1;kick %2}
#ALIAS test3 {chat %-1}
#ALIAS test4 {look %1;say %-2}
test1 Hello everybody!
test2 Zugg Kjata
test3 I'm back.
test4 Niax Hey, look at what I'm seeing.

All of this sends to the MUD:
say Hello everybody!
greet Zugg;kick Kjata
chat I'm back.
look Niax;say Hey, look at what I'm seeing.

Kjata
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Nov 03, 2002 6:09 pm   
 
Finally figured out what the question is:
How does Lasha put those -[L]- things around what she says?

#AL fancytell {tell %1 -~[L~]- %-2 -~[L~]-}

LightBulb
Senior Member
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sun Nov 03, 2002 6:22 pm   
 
quote:
Finally figured out what the question is


Heh, I didn't have the patience to sit looking at the post for more time while trying to find out what the question was, so I responded with some general alias information.

Kjata
Reply with quote
Niax
Beginner


Joined: 03 Nov 2002
Posts: 21

PostPosted: Sun Nov 03, 2002 7:01 pm   
 
my apologies for not being more specific. i had spent about 3 hours playing with %param trying to figure out how she was doing that. i got some wierd echo affects but nothing close to what she was doing. (say boom chica boom - you say boom boom chica boom chica boom)

her alias is something like say Niax is great!. and it would do "You say '[e] Niax is great!. [e]

or say <statement>.

You say [e] <statement> [e]

any clues how to do this?

Niax Rhasu
Reply with quote
Niax
Beginner


Joined: 03 Nov 2002
Posts: 21

PostPosted: Sun Nov 03, 2002 7:08 pm   
 
oi. thanks lightbulb. i tried you alias. it worked. so it wasn't %param after all? or can you do it both ways?

Niax Rhasu
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Nov 03, 2002 7:41 pm   
 
There is almost always more than one way of doing things. I'm sure you could find some way of using %param for this, but I don't see any need to.

LightBulb
Senior Member
Reply with quote
Niax
Beginner


Joined: 03 Nov 2002
Posts: 21

PostPosted: Sun Nov 03, 2002 8:57 pm   
 
>:) again thanks. what exactly does the "-1%" do? *curious*

Niax Rhasu
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Nov 04, 2002 12:00 am   
 
That's %-1

Anyway, this just tells the alias to put in its place all of the words you typed after the name of the alias itself.

Kjata
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