[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  trigger sends command twice

trigger sends command twice

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Jedhi   (37 posts)  [Biography] bio
Date Thu 08 Mar 2012 09:39 PM (UTC)
Message
hi,

i'm trying to create a trigger when someone sends me a tell, i reply to it automessage. somehow it sends my reply twice. option is set to World.

any thoughts?
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Thu 08 Mar 2012 10:26 PM (UTC)
Message
Show please?

Template:copying For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Jedhi   (37 posts)  [Biography] bio
Date Reply #2 on Thu 08 Mar 2012 10:32 PM (UTC)

Amended on Thu 08 Mar 2012 10:39 PM (UTC) by Jedhi

Message
trigger: http://dl.dropbox.com/u/60672885/trigger_bug.jpg

mud aardwolf. on the tech channel i recieved no help. on player only told, that he has the same problem and hasn't found a solution to fix it

<triggers>
<trigger
lines_to_match="3"
match="^(.+)tells you \'(.+)\'$"
omit_from_log="y"
regexp="y"
sequence="100"
>
<send>reply I think i'm AFK at the moment.</send>
</trigger>
</triggers>
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Fri 09 Mar 2012 02:09 AM (UTC)
Message
That trigger won't reply twice. Someone else had a similar issue recently and it turned out they had two such triggers. So each one replies.

Try turning on Game menu -> Trace, and then watch what happens. That tells you about each matching trigger.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Jedhi   (37 posts)  [Biography] bio
Date Reply #4 on Fri 09 Mar 2012 08:14 AM (UTC)
Message
don't have 2 triggers. with trace:

TRACE: Matched trigger "^{tell}(?<msg>.*)"
TRACE: Executing trigger script "chats"
You tell Melviant 'I think i'm AFK at the moment.'

and this is done twice. maybe it has something to do with aardwolf client mod?
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #5 on Fri 09 Mar 2012 09:02 PM (UTC)
Message
Quote:

TRACE: Executing trigger script "chats"


What script "chats"?

Quote:

...and this is done twice.


What is done twice? Can you post the whole thing please?

Are you copying/pasting? Or retyping?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (2,514 posts)  [Biography] bio   Global Moderator
Date Reply #6 on Sat 10 Mar 2012 01:36 AM (UTC)

Amended on Sat 10 Mar 2012 02:17 AM (UTC) by Fiendish

Message
Change your trigger pattern to

match="^{tell}(.+)tells you \'(.+)\'$"


This is an unfortunate, though in this case solvable, side effect of only having partial line substitution capability in mushclient and the apparent inability to have keep_evaluating="n" halt extra-plugin triggering (has this always been the case? I can't remember).

The very short version of a rather long story here is that the aard_chat_echo.xml plugin triggers on tagged tells and re-displays them sans tags in a way that causes coarsely defined triggers to fire again. This is unintentional, but not easily solved given the above.

For history see:
http://mushclient.com/forum/bbshowpost.php?id=11073&page=1
and uh...probably this...
http://mushclient.com/forum/bbshowpost.php?bbsubject_id=6356

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Jedhi   (37 posts)  [Biography] bio
Date Reply #7 on Sat 10 Mar 2012 08:36 AM (UTC)
Message
thanx fiendish!
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


19,558 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]