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


Joined: 28 Oct 2003
Posts: 164

PostPosted: Thu Nov 06, 2003 6:23 pm   

Bug: pattern tester with non-default quote
 
I sort of alluded to this in another post about special characters. First, I've changed my quote char from ~ to because my mud uses ~ in it's emotes.

I have the following pattern in a trigger:

#TRIGGER {^(*) ([)(%w)(])} {#PCOL $FF0033 %x1; #PCOL $0033FF %x2;#PCOL $0099FF %x3;#PCOL $0033FF %x4}

So the pattern is:
^(*) ([)(%w)(])

This matches Armageddon room names:
Room Name [NEW]

The problem is that if I test this pattern against "Room Name [NEW]", zMUD claims that the pattern doesn't match. However, if I change the pattern to "^(*) (~[)(%w)(~])" and test it against "Room Name [NEW]", it says it matches. This is wrong since I've changed my quote char.

FYI: I can replicate this using a simple trigger that just has the pattern:
[

Yet once I'm actually playing the game, the trigger works fine and I get technicolored room names. It looks like it's just a bug in the tester where it doesn't respect non-default special characters.
Reply with quote
Cuttlefish
Apprentice


Joined: 28 Oct 2003
Posts: 164

PostPosted: Sat Nov 08, 2003 8:05 pm   
 
Can anyone else please confirm this before I fill out a bug report?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Nov 08, 2003 9:52 pm   
 
Since I don't think Zugg ever uses the back-tick character for anything (the un-sifted symbol on the key containing the default quote character, ~), it looks like a bug.
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