added your scripts to our server and made some minor changes: removed some debugging messages, added some new ones like print(" difficulty=" .. difficulty .. " scale=" .. scale .. " count=" .. count)
Using this as part of eventscheduler.lua and it's nice to be able to tweak everything (on the fly!) for more advanced players seeking more challenge.
All seems to be working well!
Looking forward to what you come up with next