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
crawln45
Newbie


Joined: 08 May 2007
Posts: 4

PostPosted: Thu Jun 19, 2008 4:01 pm   

Trigger escape character problems
 
I have a problem with the ~ character. The trigger is :

You tell the group, '~{ f %w %w ~}'

When i run a pattern match it says pattern is not matched. And it show's the ~ characters in the error display.

any hints?
Reply with quote
Toxic
Adept


Joined: 27 May 2008
Posts: 299

PostPosted: Thu Jun 19, 2008 4:32 pm   
 
you have to escape the ' as well I believe, cant test right now tho.
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Thu Jun 19, 2008 4:40 pm   
 
What text you are trying to match?
_________________
My personal bug|wish list:
-Wrong Priority when copy-paste setting
-1 prompt trigger for Mapper, Session and General Options, not 3 different!
-#SECTION can terminate threads
-Buttons can't start threads
Reply with quote
crawln45
Newbie


Joined: 08 May 2007
Posts: 4

PostPosted: Thu Jun 19, 2008 5:42 pm   
 
the text i'm trying to match is

You tell the group, '{ f w w }'

which is suppot to trigger and send out "fire w w"
Reply with quote
crawln45
Newbie


Joined: 08 May 2007
Posts: 4

PostPosted: Thu Jun 19, 2008 5:45 pm   
 
this trigger worked in 1.83-2.25 not sure why it doesn't now though. could it because of colors or something else?
Reply with quote
Toxic
Adept


Joined: 27 May 2008
Posts: 299

PostPosted: Thu Jun 19, 2008 5:46 pm   
 
#TRIGGER {^You tell the group, ~'~{ f (%w) (%w) ~}~'} {fire %1 %2}


Last edited by Toxic on Thu Jun 19, 2008 5:59 pm; edited 1 time in total
Reply with quote
crawln45
Newbie


Joined: 08 May 2007
Posts: 4

PostPosted: Thu Jun 19, 2008 5:57 pm   
 
had to delete and remake the trigger from scratch, along with any other trigger i have the brackets in for some reason.
Reply with quote
Zugg
MASTER


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

PostPosted: Thu Jun 19, 2008 9:15 pm   
 
The ' quotes shouldn't need to be escaped.

In v2.28, I just did this:
Code:
#TRIGGER {^You tell the group, '~{ f (%w) (%w) ~}'} {fire %1 %2}
#show "You tell the group, '{ f w w }'"

and it properly showed "fire w w" on the screen. So it's working fine here.
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