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 ➜ Tips and tricks ➜ Infobar Colour, keeping it the original colour and having it go stright to the i

Infobar Colour, keeping it the original colour and having it go stright to the i

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


Posted by Natasi   (79 posts)  Bio
Date Mon 15 Nov 2004 04:36 AM (UTC)
Message
I would like the colour that comes up on the prompt to be the direct colour shown in the infobar. I looked using the google search and found no other threads that were just for such.

This is what I have so far, I want the background to stay black...but the font colour to be as it shows on the normal prompt.

<triggers>
<trigger
match="*h, *m, *e, *p *-"
omit_from_output="y"
send_to="12"
sequence="100"
>
<send>world.infoClear
world.InfoFont &quot;FixedSys&quot;, 12, 0
world.infocolour &quot;green&quot;
world.infobackfont &quot;black&quot;
world.info &quot;%1h, %2m, %3e, %4p, %5-&quot;</send>
</trigger>
</triggers>


Thanks for the help
Top

Posted by Tsunami   USA  (204 posts)  Bio
Date Reply #1 on Mon 15 Nov 2004 07:16 PM (UTC)
Message
I'm not sure if that is possible. I believe that an incoming string is stripped of all ansi color indicators before it is sent to triggers for evaluation.

I also haven't seen anyway to match of colors besides the first character. I guess you could use three different triggers, with a foreground color of green, yellow and red to set the color of the health bar, but as for mana, ego, and power *shrug*...
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #2 on Mon 15 Nov 2004 10:20 PM (UTC)
Message
You can use GetLineInfo and GetStyleInfo to reassemble the line with colors. Except you wont be able to omit it from the output.

What sort of colors are we talking about? Are certain things always the same? Different colors for different numbers?

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Natasi   (79 posts)  Bio
Date Reply #3 on Fri 19 Nov 2004 12:55 AM (UTC)
Message
It's as Tsunami described, but the colors change based upon damage percent taken
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #4 on Fri 19 Nov 2004 01:59 AM (UTC)
Message
Then cant you just figure out what percentages are what, and change the color accordingly? Much like the Healthbar plugin's two colored bars. Youd just have more than one color/condition (go look for an example).

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
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.


17,189 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.