I'm fairly inexperienced in Mudlet coding, beyond very simply basics.
How would I set the system to highlight my target in red, so that I can easily track it?
My variable is 'target', and I'm just trying to make it highlight it in every output, for ease of it all.
Also, is there a very simple curing system (that is free) and up to date (mostly) that I could use for bashing in areas like Shallach Ruins and the like?
0
Comments
Edit: Assuming you're targeting players. If you're targeting denizens by something like fink, snake, etc, then you'd want to get rid of the first line. Ideally, run a target alias for pvp, one for pve, that way you can highlight both.
https://pastebin.com/i9uSFcmN
or
target = string.lower(matches[2])
cecho("\n<red>MY TARGET IS: <white>"..string.title(target))
if (colourtarget) then killTrigger(colourtarget) endcolourtarget = tempTrigger(target, [[selectString("]] .. target .. [[", 1) fg("gold") deselect() resetFormat()]])
ALIAS IS AS FOLLOWS:
pattern is: ^t (.*)
Big White Box:
SCRIPT IS AS FOLLOWS:
So I'd add above the function:
valScript = valScript or {}
and replace all instances of tar or id with valScript.tar and valScript.id!
Nice work
So it'd look like this:
valScript = valScript or {}
end
The more you know!