Is there a way to make a plugin that matches based on a table within the plugin?
I know I can do it by using '*' to match everything and then have the script check if it matches, the problem is if it does I want to omit it from output, and it doesn't seem right to have the script catching everything then putting it back in with a ColourNote if it did not match.
I know I can also do a regex that includes all of them, but I want to be able to simply add to the table later and have it start matching that as well.
Thanks.
(Meaning it should match a table
matchtable = { "There is a chair here", "You have a pot", Why are there no flowers?" }
I know I can do it by using '*' to match everything and then have the script check if it matches, the problem is if it does I want to omit it from output, and it doesn't seem right to have the script catching everything then putting it back in with a ColourNote if it did not match.
I know I can also do a regex that includes all of them, but I want to be able to simply add to the table later and have it start matching that as well.
Thanks.
(Meaning it should match a table
matchtable = { "There is a chair here", "You have a pot", Why are there no flowers?" }