Hi I have been trying to get my mygame.js file working for days now. I have come up against countless errors, very few of which I have solved, and most of which have mysteriously disappeared (probably to reappear later). The current one I have is an error saying:
Expected “}”
After an option to send an email about my error, another comes up saying:
Unable to get value of the property ‘setStartingStatsClone’: object is null or undefined.
I think the second message is as a result of the first one.
This is my mygame.js file without the disclaimer:
nav = new SceneNavigator([
“Setup”
,“A Villiage Burning”
,“Prisoner”
,“A Chance to Prove Yourself”
,“Training”
,“Ascension”
,“Trouble”
,“Hope”
,“A Series of Encounters”
,“The Emperor”
]);
stats = {
name: “Unknown”
,gender: “Unknown”
.age: 18
,leadership: 20
,intelligence: 20
,attractiveness: 20
,strength: 20
,dexterity: 20
,magic: 20
,cunning: 20
,constitution: 20
,luck: 20
,likability: 20
,spontaneity: 20
,valour: 20
,pride: 20
,disdain: 20
,wounds_text: 0
,rank: 50
,style_text: 7
,ally_name: “Unknown”
,ally_loyalty: 0
,heart_text: 0
,rebellion_text: 3
,vengance_text: 0
};
debugStats = stats
Thanks. Please bear in my I have had numerous other errors but for whatever reason they are no longer appearing.
I am pretty sure the error is to do with the 3 variables that are set to “Unknown” as when i remove these it loads up fine.
Don’t get me started on the stats screen.
Thanks again.
EDIT: I don’t know if this is the same for you but when I view this discussion, the spaces needed in the mygame.js file, like before “Setup”, do not show. Please imagine they are there.