It looks like you're new here. If you want to get involved, click one of these buttons!
target_upper = tempTrigger(target, [[selectString("]]..target..[[",1) fg("red") deselect() resetFormat()]])
if target_lower then killTrigger(target_lower) end
target_lower = tempTrigger(target:lower(), [[selectString("]]..target:lower()..[[",1) fg("red") deselect() resetFormat()]])
Comments
Pattern: ^t (.+)$
Code:
target = matches[2]:title()
cecho("\n<white>[<red>Target<white>]: <green>set target to: <red>"..target)
if target_upper then killTrigger(target_upper) end
target_upper = tempTrigger(target, [[selectString("]]..target..[[",1) fg("red") deselect() resetFormat()]])
if target_lower then killTrigger(target_lower) end
target_lower = tempTrigger(target:lower(), [[selectString("]]..target:lower()..[[",1) fg("red") deselect() resetFormat()]])