Trigger Question

Posted by DavdD on Sun 26 Aug 2001 12:19 AM — 7 posts, 21,995 views.

#0
I'm trying to get my channel messsages to pop up in a different window and I followed what is in the FAQ on the website and nothing is working.. What can I do?
Australia Forum Administrator #1
The question is, what have you done? The quickest method of letting us know is:

  1. Go into World Configuration -> Scripting and check "Enable Script", with the language set to VBscript.
  2. Type into the command window:

    /world.debug "triggers"
  3. Copy the resulting text from the screen and paste into another message here. This will show what your trigger is exactly, and what flags you have set.
#2
I followed what it said to do in the Faq...


Match on: <whatever matches the clan talk>
Send: %0
Send to: Notepad (append)
Omit from output: checked
Label: clan_messages


and nothing happened

clicked regular expression and it opened the new window.. but only ould put in 1 letter lines.. a bunch of p's and u's etc
Australia Forum Administrator #3
You are going to have to give me more information than that.

If you really typed in:


Match on: <whatever matches the clan talk>


Then I can imagine it wouldn't work. If not, you need to tell me what you typed as:


<whatever matches the clan talk>


Otherwise it will only match on "<whatever matches the clan talk>" (literally).

To help me, copy and paste a line or two of channel messages so I know what they look like.



#4
heh.. forgive me.. lol..


I typed in
[Public]



here is an example of the channel text


[Public] Servantes has joined this channel.
Australia Forum Administrator #5
Ah OK.

If you checked "regular expression" then the square brackets have a special meaning. It will match on a single character, that character being:

"P" or "u" or "b" or "l" or "i" or "c"


The simplest solution is to *uncheck* "regular expression" and make it match on:


[Public]*


That means [Public] followed by anything.

Alternatively, keep it as a regular expression but make it read:


^\[Public\].*



The backslashes say to treat the brackets as normal characters. The "^" means "start of line".
Amended on Sun 26 Aug 2001 08:33 AM by Nick Gammon
#6
That worked.. thank you.