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

Log on
Register forum user name Search FAQ

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  Generic_Chat_Miniwindow

Generic_Chat_Miniwindow

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


Posted by Kessen   (3 posts)  [Biography] bio
Date Wed 03 Jun 2020 05:40 PM (UTC)
Message
Hi,

Im trying to get this plugin to work.

https://github.com/nickgammon/plugins/blob/master/Generic_Chat_Miniwindow.xml

I am afraid I do not understand what its asking me to do.

""
Call this plugin by making as many triggers as you want in your main
world file (or other plugins) and then passing the style runs to this
plugin like this:

function chattrigger (name, line, wildcards, styles)
require "serialize"
check (CallPlugin ("10778718503f0c91106745f5",
"display", serialize.save_simple (styles)))
end -- chattrigger

""

Could someome please give me an example of a trigger it is asking for?
[Go to top] top

Posted by Fiendish   USA  (2,315 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Thu 04 Jun 2020 02:01 AM (UTC)
Message
The thread where Nick put that together will probably help you.
See the end of reply 4 in https://www.gammon.com.au/forum/?id=12855&reply=4#reply4

Or search on that page for "Now, make whatever triggers you want in your main world file, for example like this:"

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

Posted by Kessen   (3 posts)  [Biography] bio
Date Reply #2 on Thu 04 Jun 2020 02:50 AM (UTC)
Message
Thanks for the link.


Do I put this inside the "trigger" options or do i need to make a script file and put that somewhere?
<triggers>
  <trigger
   enabled="y"
   match="You say '*'"
   omit_from_output="y"
   script="chattrigger"
   sequence="100"
  >
  </trigger>
</triggers>
[Go to top] top

Posted by Fiendish   USA  (2,315 posts)  [Biography] bio   Global Moderator
Date Reply #3 on Thu 04 Jun 2020 04:36 AM (UTC)

Amended on Thu 04 Jun 2020 04:37 AM (UTC) by Fiendish

Message
Template:pasting For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.

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

Posted by Kessen   (3 posts)  [Biography] bio
Date Reply #4 on Thu 04 Jun 2020 01:20 PM (UTC)
Message
I got in to send chats to the miniwindow, but am now getting this error every time.


Compile error
World: Haven of the Embraced
Immediate execution
[string "Trigger: "]:1: '=' expected near 'say'
[Go to top] top

Posted by Fiendish   USA  (2,315 posts)  [Biography] bio   Global Moderator
Date Reply #5 on Thu 04 Jun 2020 04:07 PM (UTC)

Amended on Thu 04 Jun 2020 04:08 PM (UTC) by Fiendish

Message
I can't help you if you don't show what you did.

https://github.com/fiendish/aardwolfclientpackage
[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.


2,041 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 FutureQuest]