|
teperi Newbie
Joined: 22 Apr 2009 Posts: 2
|
Posted: 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? |
|
|
|
Troublemag Wanderer
Joined: 14 Jul 2004 Posts: 83
|
Posted: 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 |
|
|
|
teperi Newbie
Joined: 22 Apr 2009 Posts: 2
|
Posted: Mon Jul 13, 2009 2:51 pm |
Great, It works!
Thanks for your quick response. |
|
|
|
|
|