Can you confirm that you created the %stype variable as a *global* variable not local? This should return a 1 or 2 instead of a blank:
//echo -a stype value is: %stype
you create a local variable with /var and a global variable with /set. And with /set you don't use the = unless you want the = to be part of the value. With /var the = is optional. like:
/set %stype 1
If you don't have %stype defined, nothing is going to happen other than removing leading/trailing/consecutive spaces from the string
--
You never answered my post about what you meant by my alias not working. If you put my aliases into that remote script, does this color to match the nicklist:
//var %text test Meta, hello Meta test Eric test $me test | echo -a $replace_nick_with_colors( %text )
Also in Epic's script, it depends on the nick being the entire word, so if there is anything else touching it, there will be no color. So in my example it colors both "Meta" if that nick is in the active window, even though the 1st one has a comma touching it.
However Epic's script colors only the 2nd Meta that doesn't have punctuation touching it.
My alias only worked as a //command, because I was waiting to get your confirmation of exactly what you were wanting, before I tried to include it in the TEXT or INPUT events. Mine is only coloring to match how it shows in the nicklist, so mine doesn't support the "2" definition of %stype