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


Joined: 28 May 2003
Posts: 21
Location: USA

PostPosted: Mon Jun 02, 2003 9:48 pm   

Unaliasing Concatonated Commands
 
I can't seem to unalias a concatonated command.. like #unalias {%concat(@charname,-kit-,@kitname} {Player Kits}

is there something I need to know?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Jun 02, 2003 10:30 pm   
 
The #UNALIAS command works, just the way you have it. Of course, the alias has to exist and be in the correct class.

I usually find it easier to concatenate directly instead of using the %concat function, although I can't imagine needing an alias with such a complex name in the first place.
#UNAL @charname-kit-@kitname {Player Kits}

LightBulb
Advanced Member
Reply with quote
tacturnal
Beginner


Joined: 28 May 2003
Posts: 21
Location: USA

PostPosted: Wed Jun 04, 2003 5:07 am   
 
I have made a kit switcher that is character sensitive..
Reply with quote
tacturnal
Beginner


Joined: 28 May 2003
Posts: 21
Location: USA

PostPosted: Wed Jun 04, 2003 5:11 am   
 
I can look and plainly see that I have alias called Qu-kit-test
@charname is Qu
@kitname is test
#unalias @charname-kit-@kitname doesn't work
neither does #unalias [@charname]-kit-[@kitname]
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Jun 04, 2003 12:44 pm   
 
I can look and plainly see:
#AL {Qu-kit-test} {#NOOP} {Player Kits}
#VAR charname Qu
#VAR kitname test
#UNAL @charname-kit-@kitname {Player Kits}
Alias Qu-kit-test removed.

It works.
"Of course, the alias has to exist and be in the correct class."

I still don't see any point to it, but it's your script.

LightBulb
Advanced Member
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