Help creating an infobar.

Posted by Wslatter on Fri 13 Sep 2013 11:54 PM — 4 posts, 17,416 views.

#0
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!
USA Global Moderator #1
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.
Amended on Sat 14 Sep 2013 05:55 PM by Fiendish
#2
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?
Australia Forum Administrator #3
Look up the help on the Info function.

Template:function=Info
Info

The documentation for the Info script function is available online. It is also in the MUSHclient help file.



Or make a miniwindow:

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