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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
abascom
Beginner


Joined: 01 Nov 2006
Posts: 27

PostPosted: Wed Nov 01, 2006 6:14 pm   

Alias Name Issue?
 
Hello,

I just installed CMud and imported my old ZMud settings. My commonly used combat aliases are 1, 2, 3, 4 etc...

For instance, I have an alias defined like this

#ALIAS 2 {shockwave
fireball
swing shield }

Even thought it is enabled when I type '2' in the mud command line the alias is not executed. If I right click the alias and click execute, it works fine.

Is there a preference I need to change somewhere making 2 do something other than the specified alias? Or is 2 an invalid name for an alias in CMud?

Thanks
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Wed Nov 01, 2006 6:41 pm   
 
This is likely a parsing issue. CMUD uses a new parsing engine, that's a lot stricter than zMUD which is likely why those particular aliases don't work. Another forum member posted a similar problem. Unfortunately I can't say whether or not this will be a requirement for the parsing engine going forward or if Zugg will accommodate, I'm sure he will answer the question shortly

In the mean time, be sure to use the Send Feedback feature (if you haven't already) to make Zugg aware of this. Any posts from the Send Feedback feature goes directly to the support database and ensures that it can never be forgotten, and helps Zugg with prioritizing which problems to address.

[Edit]
This link says that it will not change since alias names should begin with letters.

http://forums.zuggsoft.com/phpbb/viewtopic.php?t=24720&highlight=
_________________
Asati di tempari!
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Wed Nov 01, 2006 9:49 pm   
 
I have to say that not being able to have an alias starting with, or just made up of, numbers any more is going to be quite annoying for quite a lot of people... Aliases that use numbers are quite common since often the mud doesn't have commands starting with a number. This makes it ideal for use as an alias, as you don't affect your ability to enter other commands to the mud by using such an alias.
Reply with quote
Zugg
MASTER


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

PostPosted: Wed Nov 01, 2006 10:31 pm   
 
Currently alias names must start with a letter. I've got an item on my support list to investigate allowing numbers and other symbols. It's possible that I'll be able to allow it on the command line, but not in other scripts. When using aliases in other scripts, you should give an alias a better name to make it easier to understand what your script is doing.

But I can understand wanting to use numbers and other characters on the command line, and since the command line has a pre-processor before the command is sent to the script parser, I might be able to support something there.
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Wed Nov 01, 2006 11:47 pm   
 
Yes, I meant executing aliases from the command line. I don't see any need to support executing aliases that look like numbers from within a script. If users want to avoid code duplication, we can always create an alias '1' that calls an alias 'attack1' or something.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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