Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Enchanter85
Newbie


Joined: 16 Nov 2010
Posts: 3

PostPosted: 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
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Tue Nov 16, 2010 2:08 pm   
 
You'll need to show us the actual code for the aliases that aren't working.
Reply with quote
Enchanter85
Newbie


Joined: 16 Nov 2010
Posts: 3

PostPosted: 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
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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)
Reply with quote
Enchanter85
Newbie


Joined: 16 Nov 2010
Posts: 3

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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