Skip to content

Target Highlighting in Mudlet

I have a base target alias, but I am trying to get mudlet to highlight every instance of that variable in red, or anything really.

How would that look?

My target alias coding looks like:
target = matches[2]:title()
send("rt Targeting: "..target.."")

Just trying to make the 'target' noticeable amongst room description and other mobs.

thanks in advance!

Comments

  • Try this one:

    if id then killTrigger(id) end
    id = tempTrigger(target, function() selectString(target, 1) fg("red") deselect() resetFormat() end)
  • edited August 2018
    Or this case-insensitive version:

    <div>if targethighlight then killTrigger(targethighlight) end
    <span style="background-color: transparent; color: inherit; font-size: inherit; font-family: "lucida grande", "lucida sans unicode", tahoma, sans-serif;">targethighlight = tempRegexTrigger("(?i)("..target..")", [[selectString(matches[2], 1) fg("red") resetFormat()]])</span></div>
    Like what we're doing? Why not take a second to vote? Vote for Imperian at http://www.imperian.com/vote
Sign In or Register to comment.