miniwindow chat capture

Posted by Jaksynrender on Tue 20 Dec 2022 04:16 PM — 6 posts, 15,522 views.

#0
i am unable to capture gossip in the miniwindow im new to mushclient here is my current triggers

<trigger
enabled="y"
match="* \(gossip\) '*'"
script="chats"
omit_from_output="y"
sequence="100"
></trigger>

<trigger
enabled="y"
match="You [gossip] '*'"
script="chats"
omit_from_output="y"
sequence="100"
></trigger>

here is an example of the gossip in game one is from me one is from someone else would like to capture both

You [gossip] 'uhh test.
Someone (gossip) [ uhh test ]


I know its the brackets and parenthesis but im not a coder
USA Global Moderator #1
Quote:
the miniwindow

Please link to the miniwindow you're talking about.
Australia Forum Administrator #2
In the first one:


 match="* \(gossip\) '*'"


You have backslashes there but it is not a regular expression. Try removing the backslashes.




In the second one:


 match="You [gossip] '*'"


You have a closing quote but your test data does not:


 You [gossip] 'uhh test.
#3
sorry its your chat window Fiendish

name="Chat_Capture_Miniwindow"
author="Fiendish"

here is exact from my window and 2nd char window from prompt sorry cut off earlier.

You [gossip] 'test :)'.

Someone (gossip) [ test :) ]

i changed the triggers here is all my current triggers the rest are working but gossip doesnot:
the match="* **tells you '*'"
catches both direct tells and group tells





<triggers>
    <trigger
    enabled="y"
    match="You say '*'"
    script="chats"
    omit_from_output="y"
    sequence="100"
    ></trigger>

    <trigger
    enabled="y"
    match="* **tells you '*'"
    script="chats"
    omit_from_output="y"
    sequence="100"
    ></trigger>

    <trigger
    enabled="y"
    match="* says '*'"
    script="chats"
    omit_from_output="y"
    sequence="100"
    ></trigger>

    <trigger
    enabled="y"
    match="You tell * '*'"
    script="chats"
    omit_from_output="y"
    sequence="100"
    ></trigger>


    <trigger
    enabled="y"
    match="* (gossip) '*'"
    script="chats"
    omit_from_output="y"
    sequence="100"
    ></trigger>

    <trigger
    enabled="y"
    match="You [gossip] '*'"
    script="chats"
    omit_from_output="y"
    sequence="100"
    ></trigger>
</triggers>
Amended on Tue 20 Dec 2022 09:44 PM by Jaksynrender
USA Global Moderator #4
Quote:

You [gossip] 'test :)'.

This ends in a period that your pattern doesn't include.

Quote:

Someone (gossip) [ test :) ]

This has square brackets where your pattern has single quotes.
#5
so simple TY TY TY very much.
<--- not a programmer but im learning :) ty again