
Which will turn the filter triggers back off when the prompt is reached. Make another trigger called 'Undo on prompt', with the 'Lua function' patternĭisableTrigger("Start filtering group list")
SETTING GROUP FOLDERS MUDLET FULL
Since this makes use of the startsWith function we defined earlier, you don't need to type out full names. Give it the following 'perl regex' patternįor i, name in ipairs(oupWatch) do First, one called 'Player in group list' that fires on each line of the group command output. Now, inside the group with the filter pattern on it, add two triggers. Note that the group enclosing this inner group does nothing, but in my experience a 'top level' group won't work as a filter trigger. It will now act like a trigger that enables the child triggers inside it when it fires. #| Level Name Pos HitPoints ManaPoints MovePoints TNL Align

Set its fire length to 999 lines, and give it an 'exact match' pattern of: Set it to start disabled the alias we defined above will enable it when it's time to filter the group list. Now create another trigger group inside it named "Start filtering group list".

Step 1, create a new trigger group to hold the filter trigs. The alias will now respond to "check tanks", "check playername", etc. It's up to you to fill 'oupTanks', '.groupFirepower', or '.groupHealers' as you see fit. Enable a trigger that will do the filtering.As you can see, it takes either the keywords "tanks", "fp", or "healers", or the name of a player. Give it whatever name you feel is appropriate, and give it a pattern ofĪoupWatch = oupFirepowerĪoupWatch = oupHealersĮnableTrigger("Start filtering group list") You don't have to have anything inside this table, but the script will make use of it existing.įirst make a new alias. default values of handy variables contained here

In one of my script files, I have a block of code that goes The second dependency is a table called 'avgroup'. The first is a startsWith functionĭrop that into a script file.
