Once, I decided to take a look at how the mage patrols were implemented in the first mission for Markel... and I haven't opened the original scripts since. In the end, I implemented it differently, not without help. And yes, this was for the patrols in "Dark Facets." The developers wrote the scripts in a very complicated way. It's better to learn from the masters in the community.
As for the scripts of other mapmakers... it varies greatly. Some have everything beautifully done, while with others, you wonder how they managed to create a map with such a coding style. Specifically, RedHeavenHero writes scripts very professionally; I've already had the opportunity to evaluate this (although I haven't played the maps themselves). Like me, he follows an approach where he creates his own library so that it's easier to solve specific tasks in the future.