note: You didn't include a link to the game so I'm assuming you mean
You must be registered to see the links
Based on the image you includes the
startChoices
Story Variable references a JavaScript
You must be registered to see the links
.
There are a number of ways to update multiple properties of an Object at the same time, which you use depends on whether you're updating
ALL the properties or only
SOME of the them.
If you are updating
ALL of the properties then you could just assign a new Object instance to the
startChoices
Story Variable.
Code:
SugarCube.State.variables.startChoices = {charasmatic: true, good_in_school: true, quick: true, rich: true, smart: true, strong: false}
If you only want to update
SOME of the properties then you can do that using the
You must be registered to see the links
function.
Code:
SugarCube.State.variables.startChoices = Object.assign(SugarCube.State.variables.startChoices, {charasmatic: true, good_in_school: true})