THIS IS A TWINE 2 QUESTION!!
I've written a custom twine 2 Macro that mostly works but when I try to write to a twine variable using something like:
state.history[0].variables["customvariables"] = 1;
or
Script.environ(this.top).evalStatement(...)
I get an error message: "state is not defined" or "Script is not defined"
How do I get round this problem?