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
Ian
Newbie


Joined: 06 Feb 2003
Posts: 7
Location: USA

PostPosted: Wed Mar 12, 2003 4:33 am   

Aliases and variables
 
Is it possible to use a variable to invoke an alias? Say @att=sdk and sdk is an alias. Is there a way to invoke the sdk alias using @att?
Reply with quote
joebeta
Newbie


Joined: 12 Mar 2003
Posts: 4

PostPosted: Wed Mar 12, 2003 5:50 am   
 
you can do this (i think)

@att=sdk
%alias(@att)

It's a built in function... therefore there's a mini help file on it.

Hehehehehehehe Bopalopia
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Mar 12, 2003 6:51 am   
 
It only takes a minute or two to test this. It seems to work. Just do it.

att = sdk
#TR {(%w) hits you} {@att %1}

LightBulb
Advanced Member
Reply with quote
Ian
Newbie


Joined: 06 Feb 2003
Posts: 7
Location: USA

PostPosted: Wed Mar 12, 2003 12:35 pm   
 
Ah. Thanks, that answers a few questions I had. I had an alias #alias {sdk} {~sdk @player}, and three variables: @att1=sdk, @player=george, and @lr=left. And another alias: #alias {attack} {@att1 @player @lr}. When I use attack, it would always produce sdk george george left. Thanks for clearing that up LightBulb. And Joe, I'll look into that %alias() Thanks to both of you.
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