'Freezing' a variable in a branching scenario

May 16, 2018

Hi All,

I am building a course which has multiple chapters which use branching - each screen has a score which is added to a variable depending on which pages you land on and on the last page of each chapter you get your  score for the chapter, this score is also displayed on the menu page along with a 'total score' for all chapters which adds up every chapter and is only displayed when the learner has gone through all the chapters.

The problem I am having is that the client wants the learner to be able to go back into the chapter and revisit it as many times as they want but for the score to retain the value of their first attempt. If it was linear I would simply make sure each page resumes to saved state when revisiting but as it is branching and there are multiple paths they could take then on their subsequent visits to the chapter, the scores are adding for the pages that they land on second or third time round and affecting the scoring.

Is there a way to 'freeze' a variable at a certain point so that the scores only are calculated the first time they go through the chapter and then stop updating after that?

Thanks, any help would be appreciated 

1 Reply
Nancy Woinoski

you could try adding a true/false variable to each slide in the branch and set the inital value for each variable to false. then add a trigger to change it to true at start of timeline.

next, put a condition on the variable that adjusts the score to increment only if the other variable is false.

this might be a lot of setup depending on the number of pages in your branching, but it should work.

This discussion is closed. You can start a new discussion or contact Articulate Support.