New to Twine, started with Twine 2 and SugarCube 2.
I want to experiment with custom macros, but every time I try to play my Story with any macros I get an error. The alert dialog is partially cut off, but I think it reads: "Error [tw-user-script-0]: undefined is not a function". The macro in question is:
Help?
I want to experiment with custom macros, but every time I try to play my Story with any macros I get an error. The alert dialog is partially cut off, but I think it reads: "Error [tw-user-script-0]: undefined is not a function". The macro in question is:
macros.add("mytest", { handler: function () { try { console.log("This is a test."); } catch (e) { return this.error("Yay, you broke it! " + e.message); } } });
Help?