When I open index.html in IE, it gives me the errors " ‘first_name’ is undefined" and " ‘stats’ is undefined", but when I looked in the mygame.js file, I couldn’t find what I did wrong.
Here it is:
// Specify the list of scenes here, separated by commas, with no final comma
nav = new SceneNavigator([
"intro"
]);
// Specify the default starting stats here
stats = {
first_name: "Unknown"
,last_name: "Unknown"
,full_name: (first_name&" ")&last_name
,gender: "Unknown"
,title: "None"
,greeting: "None"
,strength: 0
,wisdom: 0
,magic: 50
,physical: 50
};
// Specify the stats to use in debug mode
debugStats = stats;
// or just use defaults
// debugStats = stats
I’ve checked my indenting and all of them are one-tab indents, and the “stats = { };” part is the same as the original mygame.js, which does work. What did I do wrong?