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

Posted by Natasi on Mon 15 Nov 2004 04:36 AM — 5 posts, 22,236 views.

#0
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
USA #1
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*...
USA #2
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?
#3
It's as Tsunami described, but the colors change based upon damage percent taken
USA #4
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).