Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Target Highlighting in Mudlet

EdonEdon Member Posts: 23
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: """)

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

thanks in advance!


  • AxrothAxroth Member Posts: 1
    Try this one:

    if id then killTrigger(id) end
    id = tempTrigger(target, function() selectString(target, 1) fg("red") deselect() resetFormat() end)
  • EoghanEoghan Member, Immortal Posts: 1,073 mod
    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)("")", [[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
Sign In or Register to comment.