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
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Thu Apr 03, 2008 8:39 am   

Broken
 
My auto quit trigger has broken again, for some reason.

Code:

#TRIGGER auto_quit {@void_count>=5} {quit;#disconnect} {General Triggers} {exp}


Worked fine for awhile, and I haven't changed a thing except other, unrelated triggers and now it won't fire. Sad
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Thu Apr 03, 2008 11:32 am   
 
Not sure if it's still true, but I always had to put the expression itself in parentheses rather than curly brackets for an expression trigger to fire correctly.
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Thu Apr 03, 2008 11:32 am   
 
Create an alias in the same class that does #show @void_count to see if the trigger is aware of the variable. You could also put @void_count in the body of the trigger and then double-click it to be taken to the variable that the trigger is using (if it can find one). The most likely culprit is that you've accidentally made another void_count variable so the trigger isn't seeing the one that's being updated, or that something's become disabled that's stopping either the trigger from firing or the variable from being seen.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Thu Apr 03, 2008 12:02 pm   
 
I already have that. I even have one to increase the account. IT goes up past the number and won't work. The frustrating part is that it DID work, and now, for no apparent reason, it doesn't.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Fri Apr 04, 2008 2:33 am   
 
Can no one else tell me why it's broken? None of the suggestions are true. No new variables, etc...
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Fri Apr 04, 2008 12:08 pm   
 
Weird. I thought I posted a reply to this, but apparently it didn't go through. Anyway...

Have you deleted the trigger and recreated it to see if the problem continues? Has your trigger been inadvertently changed to a different scripting language (i.e. Lua, Perl, VBScript)? Have you tried disabling all folders minus this group to see if that fixes the problem? A daunting task, I know, but still... it's how I found out where my bugs were.

Personally, I wasn't aware you could use a conditional statement as a trigger. I always thought it had to fire off a line from the MUD output screen. If I'd know this, I probably would have done a few more triggers. ;)

Charneus
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Fri Apr 04, 2008 12:42 pm   
 
Fang was the one that told me I could, and it has worked. So yes. I guess I can try those things.
_________________
Listen to my Guitar - If you like it, listen to more
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