Page 1 of 1

Highlight first line

Posted: Sat Jun 02, 2018 8:32 pm
by ajx
Hi,
I'm trying to create a trigger to highlight the first line with a color after inputs: look, n, w, s, e, nw... etc. Can anyone help out?

Re: Highlight first line

Posted: Mon Jun 04, 2018 11:32 am
by Jor'Mox
The first part is super easy. Just make a trigger that highlights the line with that color, and then disables itself. The code would just be this: disableTrigger("TRIGGER NAME HERE")

For the second part, you need to make an alias that matches all of the possible commands you are looking to have it trigger after, and then have it enable that trigger. Your alias pattern might look something like this: ^(look|[ns][ew]?|[ew]|[ud])$
And the code would look like this: enableTrigger("TRIGGER NAME HERE")
send(matches[2],false)