Expected : and 'setStartingStatsClone'


#1

I’m trying to set up my choicescript and I keep getting :

Expected :

and

Unable to get property ‘setStartingStatsClone’ of undefined or null reference

I unblocked the file before use and i’m using IE, please help.

I assumed the problem is with the mygame.js so this is whats in it so far.

nav = new SceneNavigator([
“startup”
]);

stats = {
first_name:“none”
,last_name:“none”
,gender:“none”
,age:“none”
,language:“Place Holder”
,paci-roman: 0
,vrolondian: 0
,aleykran: 0
,vulkaniyan: 0
,nationality: “undetermined”
,country: “Place Holder”
,the_republic_of_pacistien: 0
,the_draconic_kingdom_of_vulkaniya: 0
,the_olden_pact_of_alyekra: 0
,the_united_provinces_of_vrolondia: 0
,partners: “Place Holder”
,stats: “Place Holder”
,leadership: 0
,strength: 0
,speed: 0
,intellegence: 0
,stealth: 0
,persuasion: 0
,pious: 0
,magic: “Place Holder”
,dark_magic: 0
,white_magic: 0
,proffession: “Place Holder”
,cleric_type: 0
,cleric_type_name: “none”
,knight_type: 0
,knight_type_name: “none”
,assassin_type: 0
,assassin_type_name:“none”
,military ranks: “Place Holder”
,army_type: 0
,army_type_name: “none”
,honorary_titles_type: 0
,honorary_titles_name: “none”
};

debugStats ={
first_name:“none”
,last_name:“none”
,gender:“none”
,age:“none”
,language:“Place Holder”
,paci-roman: 0
,vrolondian: 0
,aleykran: 0
,vulkaniyan: 0
,nationality: “undetermined”
,country: “Place Holder”
,the_republic_of_pacistien: 0
,the_draconic_kingdom_of_vulkaniya: 0
,the_olden_pact_of_alyekra: 0
,the_united_provinces_of_vrolondia: 0
,partners: “Place Holder”
,stats: “Place Holder”
,leadership: 0
,strength: 0
,speed: 0
,intellegence: 0
,stealth: 0
,persuasion: 0
,pious: 0
,magic: “Place Holder”
,dark_magic: 0
,white_magic: 0
,proffession: “Place Holder”
,cleric_type: 0
,cleric_type_name: “none”
,knight_type: 0
,knight_type_name: “none”
,assassin_type: 0
,assassin_type_name:“none”
,military ranks: “Place Holder”
,army_type: 0
,army_type_name: “none”
,honorary_titles_type: 0
,honorary_titles_name: “none”
};


#2

I would download a new copy, writing vars to the mygame.js is at times a headace if you miss code. It is recommended you write you vars at the top of the startup page.
*comment boolean
*create var_name false

*comment numeric
*create var_name 0

*comment string
*create var_name “Something”