So I just started with twine, and I went ahead and installed (I think the latest) v2.
Deciding "Okay, let's keep this simple", I tested a few variables to get the hang of it. Stuff like
<<set $timeOfDay to 1>>
They worked and it seemed easy enough.
Which brings me to my current issue: Try as I might, I simply can't get sugarcube to define a twine story object.
Every piece of information I've seen suggests that I simply type
<<set $person to {
name:"John Smith",
age:27,
gender:"Male"
}>>
and then after that I can modify it by writing stuff like
<<set $person.name to "Joe Smith">>
but any time I attempt to do that, even immediately below the original definition, results in a bad expression: Cannot read property name of undefined.
I feel like I've tried everything at this point, but obviously I haven't because even after an hour of searching here and on google and replicating the exact syntax of other people's solutions, there's still something stupid I'm doing.
Edit: Forgot to mention I'm using Sugarcube 1.0.34.
Comments
You should mark this question as answered so it stops appearing in the Unanswered category.
Sorry, it didn't give me the option to mark my own reply as an answer.