About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
rkubiak
Beginner


Joined: 27 May 2001
Posts: 22
Location: USA

PostPosted: Tue Feb 24, 2004 7:20 am   

Simple trigger not working after upgrade
 
Upgraded to 7.01 today. Having some weird problems with stuff not working, however the main one is my most basic trigger just doesn't work.

#trig {^There were (%d) coins.} {split %1}

This doesn't fire, if you put in the test expression "There were 10 coins." it doesn't match, and I tried the convert to perl but that makes it There were (%d+) coins. which doesn't match when I test it either. Any ideas?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Feb 24, 2004 3:23 pm   
 
I have no problem with it. Here is my test script:
#trig {^There were (%d) coins.} {split %1}
#sh "There were 10 coins."

and it correctly sends the split command to the MUD. Does that not work? Perhaps the trigger is disabled?
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Feb 24, 2004 8:04 pm   
 
If it got converted to (%d) as a regular expression, then there is something wrong somehow with the % character on your computer. zMUD converts (%d) into (d+) and should be getting rid of the %. Perhaps you have some sort of extra control code in there? Or maybe this was just a typo in your post?

In any case, I just tried it also like Kjata did and it worked just fine for me too.

If you are having wierd errors, you might have a corrupted settings file and should try the instructions in the Migration Guide in the Support Library to clean your settings and see if that helps.
Reply with quote
rkubiak
Beginner


Joined: 27 May 2001
Posts: 22
Location: USA

PostPosted: Wed Feb 25, 2004 9:15 am   
 
It worked fine after I deleted it and remade it. Not sure what was going on with it.
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