A strange problem with variables

May 31, 2013

Sorry! I've managed to find when went wrong.  I guess next time I will need to do the "insert - reference" to keep track with how my variables work!

nai

--------------------------------

Help please! 

This is not the first time I use variables in my storyline project, but this one seems very odd and I just can't figure it out where I made mistakes (if any).

I am making a 14-slide quiz, which the user doesn't need to complete in order to pass. The quiz will stop as soon as the learner has an accumulated score of 8 points (each question = 1 point).   I tried 2 scenarios and both behave the same, which is the game stops (and the student gets redirected to the designated page) when the learner has PRECISELY 2 points fewer than my stated value, which is "8" .   When I change the requirement to a different number, the game stops when the user has "N less 2".   It's systematic with a clear pattern, yet i can't where to fix the problem.

Here are both of the scenarios I tried:

1)

- create variables called "ContCorrectCount"  [properties: number, default valeue = 0)

- create variables called "PassCount" [properties: number, default value = 8)

- add a slide trigger +1 on the value once the "correct answer" layer is shown.   (the trigger is on this slide)

- add a trigger on the "continue button" on the same "correct answer" layer  to check if the "ContCorrectCount" = "PassCount" and if it is, the system sends the user to the ending page (stop the game); if not, continue to the next slide.

2) same as 1 EXCEPT I don't use the variable "PassCount", but rather specify "value" in the trigger properties...so here I check if the "ContCorrectCount" = 8

I couldn't imagine what else I should change, and it's obvious that in either scenario, the behavior of the system appears the same.

I would really appreciate any help with this weird problem! Thank you so much

nai

2 Replies

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