|
Unclebeer Newbie
Joined: 27 Apr 2010 Posts: 3
|
Posted: Tue Apr 27, 2010 2:37 pm
capture trigger problems |
I'm trying to capture all public IC channels in a floating window,
and all public OOC channels in a separate window.
Right now it looks a little like this:
#TRIGGER {{auction|gossip|Kingdom|clan}{s: |: |s | }['(]} {#CAP IC_Captures} {Cap}
#TRIGGER {{quest|OOC|oclan|grat}{s: |: |s | }['(]} {#CAP OOC_Captures} {Cap}
However there is an 'OOC Kingdom' channel that shows up in both. How do I get oking to show in in the ooc window and NOT in the IC window?
And another IC channel that I can't get to work, because it has parenthesis in it:
(Thaxanos) Galik: (Dwarvish) 'Hail, Thaxanos'
thax Greetins, Thane
(Thaxanos) 'Greetins, Thane'
Any ideas? |
|
|
|
Martaigne Wanderer
Joined: 05 Jan 2002 Posts: 88 Location: Atlanta, GA
|
Posted: Tue Apr 27, 2010 3:12 pm |
You should set up the triggers exactly as they are, so if each trigger is surrounded by parenthesis, include those.
Escape the special characters with a tilde ~ character.
If they aren't surrounded in parenthesis, then show us the actual game output. |
|
|
|
Unclebeer Newbie
Joined: 27 Apr 2010 Posts: 3
|
Posted: Tue Apr 27, 2010 4:06 pm |
Kingdom channel looks like this when I use it:
Kingdom: 'Lonelae in th'mountain tadae'
This is what it looks like when somebody else talks on it:
Olokia Kingdom: 'Aye this be the way it is'
Then there's oking-
You OOC Kingdom: 'morning'
Olokia OOC Kingdom: 'hello there'
Kingdom is IC, obviously, and oking is OOC, and I like to capture them in seperate windows. Problem is, I'm getting oking in the IC window because it fits the pattern for kingdom. I need kingdom to match {some name Kingdom: 'some text'}
I have a similar problem with You tell somebody 'something', which is usually IC, vs. You tell the group 'something', which is primarily OOC. |
|
|
|
Martaigne Wanderer
Joined: 05 Jan 2002 Posts: 88 Location: Atlanta, GA
|
Posted: Tue Apr 27, 2010 5:06 pm |
You should probably make separate triggers for each event, then, and make use of begin/endline characters. This will make them easier to maintain and easier to debug.
#TRIGGER {^Kingdom: '*'$} {#CAP IC_Captures}
#TRIGGER {^%w Kingdom: '*'$} {#CAP IC_Captures}
#TRIGGER {^%w OOC Kingdom: '*'$} {#CAP OOC_Captures} |
|
|
|
Unclebeer Newbie
Joined: 27 Apr 2010 Posts: 3
|
Posted: Tue Apr 27, 2010 5:33 pm |
There we go, that's what I was looking for. I think I can use that to get the others working now. Thanks.
|
|
|
|
|
|