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
➜ General
➜ Help creating an infobar.
|
Help creating an infobar.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Wslatter
(2 posts) Bio
|
| Date
| Fri 13 Sep 2013 11:54 PM (UTC) |
| Message
| Hey all. I've been banging my head trying to make a simple trigger or script to pull the prompt from the output of this game to my infobar. Currently there is no code to just hide the health prompt from my screen and it is -super- annoyng to see it spam every line of text that comes through the game.
This is the prompt.
<****** / ^^^^^^ / ||||||>
The * ^ and | are counters for your health, stam and stun. I don't need the infobar to change color or anything for any of these, I just want them pulled from my screen.
Thanks! | | Top |
|
| Posted by
| Fiendish
USA (2,558 posts) Bio
Global Moderator |
| Date
| Reply #1 on Sat 14 Sep 2013 05:50 PM (UTC) Amended on Sat 14 Sep 2013 05:55 PM (UTC) by Fiendish
|
| Message
| Per http://www.gammon.com.au/mushclient/funwithtriggers.htm a normal trigger pattern can't match on the * symbol, because that is treated specially. You'll need to use a regular expression pattern, probably like this...
It means:
match <, then any number (including 0) of *, then a space, then /, then a space, then any number (including 0) of ^, then a space, then /, then a space, then any number (including 0) of |, then >
If you want this to only grab if the pattern starts at the beginning of a line, begin your pattern with a ^ too. |
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
| Posted by
| Wslatter
(2 posts) Bio
|
| Date
| Reply #2 on Sun 15 Sep 2013 05:39 PM (UTC) |
| Message
| | Hey, thanks for the response. So it is now grabbing the line appropriately. How would I send this info to be displayed in the infobar? | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Sun 15 Sep 2013 10:29 PM (UTC) |
| Message
| |
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.
16,631 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top