|
Ian Newbie
Joined: 06 Feb 2003 Posts: 7 Location: USA
|
Posted: 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?
|
|
|
|
joebeta Newbie
Joined: 12 Mar 2003 Posts: 4
|
Posted: 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 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
Ian Newbie
Joined: 06 Feb 2003 Posts: 7 Location: USA
|
Posted: 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.
|
|
|
|
|
|