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
XonDK
Apprentice


Joined: 01 Dec 2006
Posts: 178

PostPosted: 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?
Reply with quote
adamwalker
Apprentice


Joined: 12 Mar 2005
Posts: 195

PostPosted: Tue Jan 02, 2007 9:38 pm   
 
yes. ive been getting the same. cant work out why yet.

See http://forums.zuggsoft.com/phpbb/viewtopic.php?t=25426&highlight=
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: 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... ;)
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: 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.
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: 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.
Reply with quote
Panpardus
Beginner


Joined: 27 Feb 2005
Posts: 11

PostPosted: 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
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Sun Jan 14, 2007 12:53 am   
 
adamwalker wrote:
yes. ive been getting the same. cant work out why yet.

See http://forums.zuggsoft.com/phpbb/viewtopic.php?t=25426&highlight=


If you are talking about the 1 after the command, it is because you have "auto append" checked on that alias.
Reply with quote
XonDK
Apprentice


Joined: 01 Dec 2006
Posts: 178

PostPosted: 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.
Reply with quote
XonDK
Apprentice


Joined: 01 Dec 2006
Posts: 178

PostPosted: Mon Jan 15, 2007 11:55 am   
 
to Nexela:

Its a standalone trigger it does it when i simply fires it on its own.
Reply with quote
XonDK
Apprentice


Joined: 01 Dec 2006
Posts: 178

PostPosted: Mon Jan 15, 2007 12:48 pm   
 
Slight update. even this does it.

#IF (1) {dance}

gives
dance 1
?! Shocked
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: 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... ;)
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
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