Maybe I missed something, but I couldn't find a way to define which scripts in a package have to be executed in a given order. This would be necessary if a script depends on functions or other objects declared in another script.
I would suggest a function dependsOn ("Group/Script") which checks whether the given script was already marked as loaded and in case it wasn't loaded already, it should mark it as loaded and run it.
script dependencies
Re: script dependencies
That's a great idea. I'm in favour.
I think Lua can use a 'requires' and 'module' functions for this though, yes?
I think Lua can use a 'requires' and 'module' functions for this though, yes?
Re: script dependencies
Oh, for now though - just a fyi that Mudlet loads the script in the order they show up in the script editor.