|
XonDK Apprentice
Joined: 01 Dec 2006 Posts: 178
|
Posted: Tue Jan 02, 2007 9:37 pm
[1.24] Strange alias actions. |
I use the following alias on aetolia very basic yet...with cmud
#IF (!@aeon && !@bhd && !@behead && @caneatherb) {
outc lobelia
eat lobelia
caneatherb=0
curherb=lobelia
} {}
hwait
outputs:
outc lobelia
eat lobelia 1
*is confused*
why's it doing that? |
|
|
|
adamwalker Apprentice
Joined: 12 Mar 2005 Posts: 195
|
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Wed Jan 03, 2007 1:27 am |
I can't replicate it, works fine for me (I don't get the 1 that is).
I just set up the variables using:
aeon=0
bhd=0
behead=0
caneatherb=1
and the alias returns:
outc lobelia
eat lobelia
hwait |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Wed Jan 03, 2007 8:22 am |
Could you give us a little more info on this one?
Name of the alias, any options you have set for it, do you have an "eat" alias?
Does this happen when you call the alias from the command line? or does it happen when you call it from a trigger? If it only happens when called from something else post the alias/trigger that calls it. |
|
|
|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: Wed Jan 03, 2007 2:13 pm |
If it's actually coded in CMUD as a multi-line script the way you've posted it here, you may want to indent the lines inside the #IF block.
|
|
|
|
Panpardus Beginner
Joined: 27 Feb 2005 Posts: 11
|
Posted: Fri Jan 05, 2007 12:04 pm |
I got this aswell, but it was when i didnt have some variables defined in the If statement
as soon as they were all there it worked fine for me
as in make sure bhd,aeon,behead and caneat herb are all there with values, like Guinn put in |
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Sun Jan 14, 2007 12:53 am |
If you are talking about the 1 after the command, it is because you have "auto append" checked on that alias. |
|
|
|
XonDK Apprentice
Joined: 01 Dec 2006 Posts: 178
|
Posted: Mon Jan 15, 2007 11:44 am |
ok i've doublechecked everything
variables are set right and everything should work normally but it still gives me that 1
running dry on ideas.
Edit: have done the suggested things here nothing fixed it. |
|
|
|
XonDK Apprentice
Joined: 01 Dec 2006 Posts: 178
|
Posted: Mon Jan 15, 2007 11:55 am |
to Nexela:
Its a standalone trigger it does it when i simply fires it on its own. |
|
|
|
XonDK Apprentice
Joined: 01 Dec 2006 Posts: 178
|
Posted: Mon Jan 15, 2007 12:48 pm |
Slight update. even this does it.
#IF (1) {dance}
gives
dance 1
?! |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Mon Jan 15, 2007 3:55 pm |
Can't replicate that
#alias test {#if (1) {dance}}
then typing 'test' just does 'dance' |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Jan 15, 2007 4:19 pm |
It's auto append. If you check the Auto Append box, it'll give you dance 1 every time. Just turn it off, like oldguy2 said. It's a checkbox, next to the params and priority fields.
|
|
|
|
|
|