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


Joined: 14 Apr 2004
Posts: 2

PostPosted: Wed Apr 14, 2004 3:00 am   

Help creating alias with objects
 
Hello. I am quite experienced with making and using basic aliases, but I have come to the point where I want to start making more advanced ones, especially ones that take objects (you'll see what I mean in a moment), but have no clue how to do so. Basically, I want to create the following:

An alias that is set off by entering "dist (exit) (monster)"

cre knife
wield knife
throw knife (exit) at (monster)
end cre
wield axe

What would be the syntax for doing such a thing?

Thank you greatly in advance,
NatNit
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Apr 14, 2004 3:10 am   
 
#ALIAS dist {cre knife;wield knife;throw knife %1 at %2;end cre;wield axe}

EDIT: Fixed typos!
Reply with quote
NatNit
Newbie


Joined: 14 Apr 2004
Posts: 2

PostPosted: Wed Apr 14, 2004 3:20 am   
 
Wow. I appreciate and thank you for the speedy (and more importantly working!) alias. :)

NatNit
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