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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Auren
Newbie


Joined: 12 Jan 2003
Posts: 7

PostPosted: Tue Feb 04, 2003 12:51 am   

Weird Alias Problem
 
I have 2 aliases, that except for a couple of minor details, are identical. One will happily fire as intended, the other, not. Here's the code for them:

add_eat:
#IF (@awake and @herb and %item( @eatq, 1) = "") {
%1
#VAR herb 0
} {#additem eatq %1}

add_salve:
#IF (@awake and @salve and %item( @salveq, 1) = "") {
%1
#VAR salve 0
} {#additem salveq %1}

The only differences (this is for Achaea, btw): the balance it checks (herb, or salve balance) and the queue the affliction gets stuck in (eating versus salve). add_eat goes off normally. add_salve gets sent to the mud as a command, and I get the "I don't understand" type message back from the mud as if I had typed gibberish at the command line. What am I missing here?
Reply with quote
Auren
Newbie


Joined: 12 Jan 2003
Posts: 7

PostPosted: Tue Feb 04, 2003 12:53 am   
 
oh, side note, the argument passed in is the name of another alias that actually cures the affliction
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Tue Feb 04, 2003 2:30 am   
 
sounds like you have a syntax error somehow in the second alias, but for the life of me i can't see one. if you select the alias in the settings editor, choose the menu File|export text... and save it in a text file, then paste it here, maybe something will be revealed.

--------

moon.icebound.net:9000
Reply with quote
Auren
Newbie


Joined: 12 Jan 2003
Posts: 7

PostPosted: Tue Feb 04, 2003 4:36 am   
 
I tried changing the name of the second alias, and it seems to work now. Is it because of the similarity between the names, I wonder?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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