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
annex187
Beginner


Joined: 16 Mar 2003
Posts: 16
Location: USA

PostPosted: Thu Apr 29, 2004 9:10 am   

Can't understand why trigger isn't working
 
I have the following alias to check the value of a variable:

#ALIAS {flamecheck} {#IF (@fire<>"none") {belch}}

I keep track of the value of that variable in my status bar, so I know it's being changed correctly. If the value is "building" "yellow" "blue" or "white" it should belch. Now when I run the alias on its own, it belches when it should. But incorporated into another alias:

#ALIAS {wyrm} {flamecheck;morph icewyrm}

It doesn't belch when it should (I catch on fire and take severe damage). I thought maybe the alias wasn't evaluating the variable as quickly as it should, so I changed the alias to this:

#ALIAS {wyrm} {#IF (@fire<>"none") {belch;morph icewyrm} {morph icewyrm}}

The result is the same. Can anyone see a problem here?
Reply with quote
annex187
Beginner


Joined: 16 Mar 2003
Posts: 16
Location: USA

PostPosted: Thu Apr 29, 2004 9:37 am   
 
Ok, so subject should say alias not trigger. Forgive me, I'm tired.
Reply with quote
annex187
Beginner


Joined: 16 Mar 2003
Posts: 16
Location: USA

PostPosted: Fri Apr 30, 2004 7:29 am   
 
The problem was a duplicate alias. I didn't even know you could have two aliases with the same name.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Apr 30, 2004 10:17 am   
 
Thanks for updating us. I couldn't see any problem with your aliases so I was quite puzzled. It might have taken quite awhile for someone to think of checking for duplicate aliases.
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