Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Twine 2: Using Twine variables

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?
Sign In or Register to comment.