Mudlet: highlighter questions
Posted: Sun Nov 30, 2014 3:39 am
So i can not for the life of me figure out how to highlight battle damage. For example:
A drunk sasquatch swings a flaming rubber-chicken at you.
The attack is a glancing blow (33).
All i want to do is change the color of the (33) but i don't know how to use Regex to capture parentheses.
I know i wont get hit for the same damage every time which is why i thought using a capture group like (.+) would work best. but I can't figure out how to assign a color to a specific matches[] group.
I don't want anything but the damage/numbers highlighted.
Can anyone help?
A drunk sasquatch swings a flaming rubber-chicken at you.
The attack is a glancing blow (33).
All i want to do is change the color of the (33) but i don't know how to use Regex to capture parentheses.
I know i wont get hit for the same damage every time which is why i thought using a capture group like (.+) would work best. but I can't figure out how to assign a color to a specific matches[] group.
I don't want anything but the damage/numbers highlighted.
Can anyone help?