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


Joined: 21 Dec 2006
Posts: 2

PostPosted: Thu Dec 21, 2006 2:27 pm   

[1.24] Executing an alias from the command buffer
 
From the documentation I'm under the impression that aliases can be executed by typing the name of the alias as the first word of a command in the command buffer.

However, for me it doesn't work. I've got an alias called get_material inside a class. The class and the alias are enabled. When I type get_material into the command buffer, this gets sent directly to the MUD instead of executing the alias.

I have tried to move the alias out of the class into the root of the package, but that didn't change anything. I can execute it by right clicking on it in the list and selecting "execute alias" from the popup menu.

Probably I'm making some blatant and embarassing error since nobody else seems to have mentioned this, but I don't see what I'm doing wrong.
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Thu Dec 21, 2006 2:43 pm   
 
Sounds like you're doing things right...

try creating a new alias at the command line
#ALIAS test {#say blah blah blah}

then type 'test' in the command line (without quotes)

and see if it works

If that works fine then just check that the get_material alias is in the same place as the newly created test alias. If it's still not working try recreating it in a new package (just incase your pkg file is corrupt)
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Ranger
Newbie


Joined: 21 Dec 2006
Posts: 2

PostPosted: Thu Dec 21, 2006 6:49 pm   
 
Didn't I say it was a stupid mistake? Parsing was off Embarassed
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