Registering if functions have happened

Registering if functions have happened

Please help me! I am super frustrated right now.

I have been online for hours looking through forums but nothing works.

I have checked my code 50 times and I have no faults except for some variables not yet used.

I am trying to make a multimedia story where I want to make a path through the story using jquery. I have set up functions stating where divs should be on the page when that function is called.

The problem is that I have to check which parts of the story have been visited and stupid code wont change my variables like I want them.

I have set up booleans that go from false to true when a function is called. The problem is (at least I think it is) that as soon as the next function is called the boolean is changed back to its original and my if statement doesnt get a true.

I have tried using function.called but that does nothing either and I am desperate now cause this stupid thing wont work since friday.

If you have any idea or code that would permanently change the value of the boolean, or know how to register if multiple functions have been called please respond, cause I am going mad with the feeling that something this simple is not working.