weisluke / WoTMUD

WoTMUD scripts/triggers/aliases/maps
15 stars 2 forks source link

Melee colors do not always trigger #26

Closed jason-johnson closed 2 years ago

jason-johnson commented 3 years ago

Any melee trigger which uses the capture will not currently work because multi-line capture is turned on which trashes the match variables. If the multiline is turned off you don't actually need "very hard" and "extremely hard" because "hard" already catches all 3 cases.

weisluke commented 2 years ago

Good eye on things not highlighting because the color function doesn't work with multimatches. TIL. Also, those triggers were written probably 5 years ago and 100% could be done better. I've slightly edited them to be better now, though there's still a couple spots for improvement (e.g. the duplication for very/extremely/hard messages as you pointed out). I'll fix those when I can confirm I've got the regex right that I need :p