- Aug 26, 2016
- 164
- 804
If you prefer, you can keep the macros in a separate .js file. And instead of pointing tweego to the .twee file you can point it to a folder and it will add all the .js files it finds to the Story JavaScript passage and all the .css files to the Story Stylesheet passageI will move the macros now to use that properly, just didn't like having them all in the same place since it gets pretty overfilled and hard to find stuff.
Alternatively, you can keep the .js files out of the .html file and use importScripts instead, but you would need to add "SugarCube." to every function call/variable access.
And then you need to make sure the scripts are loaded before you let Sugarcube start rendering passages.
You would need to add something like this to the Story JavaScript passage, where "ScriptLoadError" is the name of the passage to go to if scripts fail to load (e.g. the game wasn't extracted properly)
You don't have permission to view the spoiler content.
Log in or register now.
Last edited: