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


Joined: 22 Apr 2009
Posts: 2

PostPosted: Mon Jul 13, 2009 2:26 pm   

Alias question
 
I'm trying to create an alias for the look action, l e for l east, l ne for l northeast etc.
The following is a draft only, but should be enough to demonstrate my problem.
#ALIAS l {#IF ("%1" = "e") {l east} {l %-1}}

The problem is that, the l command I'm going to send is the alias itself.
Obviously it will be an infinite loop.
Is there a way to prevent zMUD from treating it as alias for that statement?
Reply with quote
Troublemag
Wanderer


Joined: 14 Jul 2004
Posts: 83

PostPosted: Mon Jul 13, 2009 2:35 pm   
 
put a tilde in front of the l in the conditional.

Code:
#ALIAS l {#if (%1="e") {~l east} {~l %-1}
_________________
CMUDPro 3.22
Reply with quote
teperi
Newbie


Joined: 22 Apr 2009
Posts: 2

PostPosted: Mon Jul 13, 2009 2:51 pm   
 
Great, It works!
Thanks for your quick response.
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