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

Gammon Forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  A couple of questions about display
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

A couple of questions about display

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

Posted by Rollanz   (8 posts)  [Biography] bio
Date Sun 06 Jul 2014 01:43 PM (UTC)
I have been playing Achaea for a while, and I'm force dto mess around with the display to avoid getting overwhelmed by the information. A couple of questions came up in the process:

1) Is there a way to gag lines using scripts? For example, I want to parse the status prompt for changes in health and mana, and gag the line only if there has been no interesting changes.

2) Is there a way to add a comment to the end of a trigger line? In this case, I'm trying to append the change in health to the end of the status line for easier viewing, etc.

Thanks in advance.
[Go to top] top

Posted by Nick Gammon   Australia  (21,607 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 06 Jul 2014 08:25 PM (UTC)
You could achieve both of these things by making a trigger that matches the prompt, and then omitting the output (so the line is suppressed). Then compare the trigger to the previous one and display it if it changed. You could also append the differences.

This post will give you some hints about doing that:


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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.


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.


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]