|
Rexxon Beginner
Joined: 28 Oct 2000 Posts: 24 Location: USA
|
Posted: Sun Jan 18, 2004 9:18 pm
Need help with an alias. |
Trying to get an alias/trigger set up. To be able to wield a weapon when I get disarmed.
I copied a trigger from a website, But whenever I tried the wield alias it wouldn't copy the weapon. The trigger part works fine.
What I need to be able to do is just type 'wield mace', which would cause mace to be the variable, Thus when I got disarmed I would wield mace.
Can anyone help me with the alias? Thank you. |
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: Sun Jan 18, 2004 9:30 pm |
Parameters supplied to aliases can be accessed using %1-%99. If you want a single parameter to be more than 1 word, you use: %-1.
%-1 takes everything supplied to the alias from the first word onwards, %-2 from the second word onwards, etc.
#alias wield {wiel %-1;#var wield {%-1}} |
|
|
|
Rexxon Beginner
Joined: 28 Oct 2000 Posts: 24 Location: USA
|
Posted: Sun Jan 18, 2004 9:50 pm |
Cool, All I had to do was change the alias command to ready instead of wield, I guess it conflicted with the mud command. But it works! Thank you.
|
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Mon Jan 19, 2004 12:19 am |
Your alias was wield and your mud command for it is weild so when you do
#al wield {wield whatever}
your just gonna run the alias wield over and over and over to fix that you need
#al wield {~wield whatever} |
|
|
|
|
|