Generic_Chat_Miniwindow

Posted by Kessen on Wed 03 Jun 2020 05:40 PM — 6 posts, 25,323 views.

#0
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?
USA Global Moderator #1
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:"
#2
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>
USA Global Moderator #3
Template:pasting
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.
Amended on Thu 04 Jun 2020 04:37 AM by Fiendish
#4
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'
USA Global Moderator #5
I can't help you if you don't show what you did.