I’m picking up a project I had started working on, and gotten fantastic help here some years back. I haven’t touched it due to life getting in the way, but I’m brushing the dust off of it. I updated my installed versions of Twine; Sugarcube is version 2.36.1.
The below variable, ‘reqdays’, is what’s throwing the “Bad evaluation: unexpected string”. If I comment it out, everything else works.
I think I’ve figured out what I’m trying to do here (track the career paths a player can choose), but not sure what the issue is with it. I ran the file through SugarValidator and it found no errors. The two comments were added by me for this and are not part of the actual file. Eventually other careers will be added such as barrista, personal trainer, mechanic, and whatnot.
<<set $career to {
waitstaff: {
reqdays: { /* required work days */
'Tuesday',
'Friday',
'Saturday',
'Sunday'
},
optdays: {}, /* optional work days, empty for now */
starttime: 16,
endtime: 23
}
}>>
I know it has to be stupidly obvious, but what is wrong?