ImportScriptsExample
<<script>>
var lockID = LoadScreen.lock();
var promise = importScripts([
"./module.js",
"./extentsion.js"
]);
promise.then(function() {
// At this point, the scripts have been loaded
// and we can unlock safely
LoadScreen.unlock(lockID);
// Now that everything is loaded,
// go to the "Beginning" passage
Engine.play("Beginning");
});
<</script>>
We can call the imported objects now!
<<print MODULE.moduleMethod() >>