I started with a filter chain 'compass' that uses a substring to match
That filter leads into the secondary filter 'exit filter chain' using RegEx
which sets the direction values to 0 just like in the Achaea version
then it feeds into the next filter 'direction filter' which should capture the viable directions from the Visible Exits line using RegEx:
I used [\s] for a space, because one always follows Visible Exits:
Directions show as N E S W Ne Se Nw Sw U D if they are available. (\w+) should capture those correct?
Then I have triggers for each direction to set the direction to 1 and showWindow("direction")
Here is a screenshot of the mud output:
What am I doing wrong?