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
adamwalker
Apprentice


Joined: 12 Mar 2005
Posts: 195

PostPosted: Mon May 23, 2005 7:15 pm   

Direction question
 
Quick question...

How can I issue a command after each direction...

eg.

n;get gold
s;get gold
etc

but only when i enter the direction (n,s,e,w). Not manually like above
Reply with quote
minish1
Beginner


Joined: 24 Feb 2005
Posts: 23

PostPosted: Mon May 23, 2005 8:20 pm   
 
well, you could do a very simple alias for each direction:

#AL n {n; get gold}
#AL s {s; get gold}
#AL e {e; get gold}
#AL w {w; get gold}

then, everytime you enter the command 'n' it will send the command n; get gold to the mud. hope this helps
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Mon May 23, 2005 9:23 pm   
 
That's gonna infinite loop as you have it atm... since it's calling the alias within the alias.

#AL n {~n; get gold}
#AL s {~s; get gold}
#AL e {~e; get gold}
#AL w {~w; get gold}

This should work
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
adamwalker
Apprentice


Joined: 12 Mar 2005
Posts: 195

PostPosted: Mon May 23, 2005 10:12 pm   simple!
 
chears you two. I always think too complicated. that worked a treat.
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