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


Joined: 28 Oct 2000
Posts: 24
Location: USA

PostPosted: 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.
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: 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}}
Reply with quote
Rexxon
Beginner


Joined: 28 Oct 2000
Posts: 24
Location: USA

PostPosted: 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.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: 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}
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