|
Enchanter85 Newbie
Joined: 16 Nov 2010 Posts: 3
|
Posted: Tue Nov 16, 2010 12:12 pm
#walk in zmud and cmud |
Hello cMud users,
I have recently looked in to using cMud after a long, long stint with zMud. Everything has converted over but 2 aliases. Each are stored in cMud and not the actual game.
go - #walk
tel - #teleport
Each of these work in zMud but not cMud. I can type them without being in a stored alias and they work just fine. Is there a setting that I need to change?
I am typing this from my phone so sorry for any misspellings.
Thanks,
Enchanter85 |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Tue Nov 16, 2010 2:08 pm |
You'll need to show us the actual code for the aliases that aren't working.
|
|
|
|
Enchanter85 Newbie
Joined: 16 Nov 2010 Posts: 3
|
Posted: Tue Nov 16, 2010 2:24 pm |
They are #ALIAS go {#walk %0} and #ALIAS tel {#teleport %0}. Work in zmud but won't move the map at all.
Thanks,
Enchanter85 |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Nov 16, 2010 6:01 pm |
You shouldn't be using %0. That was really old syntax that even zMUD didn't support properly. You should use %params to return all of the parameters sent to the alias:
#ALIAS go {#WALK %params}
or use %1 to refer to the first parameter, or %-1 to refer to the first parameter and all of the parameters after it (%-1 is the same as %params) |
|
|
|
Enchanter85 Newbie
Joined: 16 Nov 2010 Posts: 3
|
Posted: Wed Nov 17, 2010 10:30 am |
Thank you! I finally got home and added the %1 and it worked on the first try.
Thanks again!
Enchanter85 |
|
|
|
|
|