Hey folks, had a quick question about string.format. I blatantly ripped off some code from
http://www.lusternia.com/node/30027, specifically the bit that Vadi had posted towards the bottom. I'm curious if it's possible to change color dynamically in there based on the wounds state of your target when you assess them. For example, if it comes back that someone is at heavy head wounds, I'd like for either the entire line or just the bit where it displays headwounds to be orange, while the rest of the display is normal "no wounds here boss!" colors. Pretty sure I could just write a function to echo/cecho the lines in what colors I want based on the value of xwounds, but I do like the elegance that is the one big string.format.
Comments