 |
rkubiak Beginner
Joined: 27 May 2001 Posts: 22 Location: USA
|
Posted: 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? |
|
|
 |
Kjata GURU

Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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? |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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. |
|
|
 |
rkubiak Beginner
Joined: 27 May 2001 Posts: 22 Location: USA
|
Posted: 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.
|
|
|
 |
|
|