|
crawln45 Newbie
Joined: 08 May 2007 Posts: 4
|
Posted: 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? |
|
|
|
Toxic Adept
Joined: 27 May 2008 Posts: 299
|
Posted: Thu Jun 19, 2008 4:32 pm |
you have to escape the ' as well I believe, cant test right now tho.
|
|
|
|
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: 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 |
|
|
|
crawln45 Newbie
Joined: 08 May 2007 Posts: 4
|
Posted: 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" |
|
|
|
crawln45 Newbie
Joined: 08 May 2007 Posts: 4
|
Posted: 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?
|
|
|
|
Toxic Adept
Joined: 27 May 2008 Posts: 299
|
Posted: 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 |
|
|
|
crawln45 Newbie
Joined: 08 May 2007 Posts: 4
|
Posted: 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.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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. |
|
|
|
|
|