Multiline script with the same pattern 7 times
Posted: Fri Sep 16, 2022 10:33 am
Hello!
I'm new to LUA and to Mudlet but I was able to get some first results. I'm trying to map the Wilderness of an Italian MUD, but I can't get the trigger right.
This mud changes the wilderness size, but it is ALWAYS a set of 7 lines of 13 characters each. When the visibility is blocked, empty spaces are displayed, but always of len 13.
I managed to find strings of exactly 13 characters like this: \W{13}\n|.{6}X.{6}\n
My question is: how should I set the multiline trigger so that it fires only when this is recognized in 7 consecutive lines?
I attach a couple of screenshots of the wilderness for more clarity...
Thanks!
Corben
I'm new to LUA and to Mudlet but I was able to get some first results. I'm trying to map the Wilderness of an Italian MUD, but I can't get the trigger right.
This mud changes the wilderness size, but it is ALWAYS a set of 7 lines of 13 characters each. When the visibility is blocked, empty spaces are displayed, but always of len 13.
I managed to find strings of exactly 13 characters like this: \W{13}\n|.{6}X.{6}\n
My question is: how should I set the multiline trigger so that it fires only when this is recognized in 7 consecutive lines?
I attach a couple of screenshots of the wilderness for more clarity...
Thanks!
Corben