Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Lua ➜ A couple of questions about display

A couple of questions about display

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


Posted by Rollanz   (26 posts)  Bio
Date Sun 06 Jul 2014 01:43 PM (UTC)
Message
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.
Top

Posted by Nick Gammon   Australia  (23,163 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 06 Jul 2014 08:25 PM (UTC)
Message
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:

http://www.gammon.com.au/forum/?id=12464

- Nick Gammon

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


11,490 views.

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

Go to topic:           Search the forum


[Go to top] top

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