|
Auren Newbie
Joined: 12 Jan 2003 Posts: 7
|
Posted: 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? |
|
|
|
Auren Newbie
Joined: 12 Jan 2003 Posts: 7
|
Posted: 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
|
|
|
|
Emit Magician
Joined: 24 Feb 2001 Posts: 342 Location: USA
|
Posted: 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 |
|
|
|
Auren Newbie
Joined: 12 Jan 2003 Posts: 7
|
Posted: 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?
|
|
|
|
|
|
|
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
|
|