So I want to capture/modify output from my MUD which looks like:
What I'm trying to do is a simple highlight of the name when hitpoints are below a cetrain level, so:
Code: Select all
Your group consists of ( 5/30): ( Head) 1206/906 hit, 234/236 move Fongpi (Front) 6441/3402 hit, 472/484 move a shadow dracolich (Front) 2810/1911 hit, 486/486 move a blue dracolich (Front) 886/886 hit, 274/276 move Beltorin (Front) 1339/1339 hit, 234/236 move Jumosaman
When hitpoints are < 75% highlight the name in Green, when hitpoints are < 50% highlight the name in Yellow, when hitpoints are < 25% highlight the name in Red.
I know from other triggers how to change the highlight, it's the multi-linedness of the trigger that confuses me. I know I need a Group where I have a trigger activating on "Your group consists of", it's the rest of the script that I'm unsure of the structure of.
Any assistance is much appreciated!