#TRIGGER {[[ ](%d) (%w)[ ~]] (%w)(%s)(%d)[/ ](%d) hp(%s)(%d)[/ ](%d) mana(%s)(%d)[/ ](%d) mv} {#add count 1;#var groupslot %additem(%3,@groupslot);#var hps %additem(%5,@hps);#var maxhps %additem(%6,@maxhps);#var mana %additem(%8,@mana);#var maxmana %additem(%9,@maxmana);#var moves %additem(%11,@moves);#var maxmoves %additem(%12,@maxmoves)} {group2} #TRIGGER {'s group:} {#var count 0;#var groupmem "";#var groupslot "";#var grouplist "";#var hps "";#var maxhps "";#var mana "";#var maxmana "";#var moves "";#var maxmoves "";#var tnl ""} {group2} #TRIGGER {(%d) TNL Position - (%w)} {#var tnl %additem(%1,@tnl)} {group2} #ALIAS grouplist {#var grouplist1 "";#var grouplist2 "";#var grouplist3 "";#var how_many %numitems(@groupslot);#loop 1,%min(@how_many,20) {#var grouplist1 {@grouplist1 %{i}-%item(@groupslot,%{i}) }};gt @grouplist1;#if (@how_many>20) {#loop 21,%min(@how_many,40) {#var grouplist2 {@grouplist2 %{i}-%item(@groupslot,%{i}) }};gt @grouplist2} {#no};#if (@how_many>40) {#loop 41,%min(@how_many,60) {#var grouplist3 {@grouplist3 %{i}-%item(@groupslot,%{i}) }};gt @grouplist3} {#no}} #ALIAS slot {get_color;gtell |@bclr|%1 |@clr|- |@bclr|%item(@groupslot,%1) %item(@hps,%1)|@clr|/|@bclr|%item(@maxhps,%1) |@clr|hps, |@bclr|%item(@mana,%1)|@clr|/|@bclr|%item(@maxmana,%1) |@clr|mana, |@bclr|%item(@tnl,%1) |@clr|TNL} #ALIAS get_color {#var colors {y|g|b|r|c|p};#var bright_colors {by|bg|bb|br|bc|bp};#ad ccc 1;#if (@ccc>%numitems(@colors)) {#var ccc 1};#var clr %item(@colors,@ccc);#var bclr %item(@bright_colors,@ccc)}