Regardie wrote:Chrome hates the One Drive link, says it is harmful. The Google Drive link it doesn't complain about.
Problems: You don't initialize your variables at the start of a second game. Some hang around after the first playthrough. I still get the hookup dialog from Celine even if I did not meet and hook up with the guy the first night. I need to close the page and lose my saves to clear the hookup variable.
Edit: I actually looked through the data.js initial variable list and I found some confusing things that might lead to problems. You have several variables that are the same except for capitalization ie celinaSuspect and celinasuspect. You have a defined variable named variable. I haven't searched through the code to see if both instances of defined variables get used interchangably or if the extras are unused.
Regardie
Thanks for the feedback
I thought I reset all of the variables in the ending page onclick I might have missed that one.
I just found that the reset varible for knowHookedUp on the ending card had the wrong capitalisation for the k that is why it is not clearing.
Here is the patch to fix that.
https://drive.google.com/file/d/0Bync7t ... sp=sharingSorry.
The other weird variables is a limit of the Engine.
When you are creating the pages if you accidentily type the wrong variable it will store it in the variables list even if all instances of that variable have been removed from other pages.
So you end up with a list of variables some of which are not used.
The only way to fix that is to remove them.
Hopefully Super can take a look and fix them while I'm asleep.
I didn't write all of the code Super did so I have just tried to fix what I could find.
I am going to bed now.
Cheers
Sy