|
Kheri_ Wanderer
Joined: 11 Oct 2005 Posts: 58
|
Posted: Wed Jun 21, 2006 12:54 am
Room Name Changes wow! sheesh (some more help) |
#trigger {^[*] ~(dark~)} {#tag name %1}
How come this don't work for when i go into a room that's not dark?
Note: sometimes it would work.. for certain rooms, not sure if i had originally mapped them without the dark.
PLease help, in some way form shape pleasee |
|
|
|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: Wed Jun 21, 2006 11:30 am |
You could use a regular expression to make the (dark) optional. You should have the escape character (default, ~, or use \ for a regex pattern) in front of your square brackets. Also, if you want the trigger to capture something into %1, you should surround it with parentheses.
Code: |
#REGEX {^\[(*)\](?: \(dark\))?} {#tag name {%1}} |
|
|
|
|
Kheri_ Wanderer
Joined: 11 Oct 2005 Posts: 58
|
Posted: Sat Jun 24, 2006 1:38 am |
thank you larkin
|
|
|
|
|
|