Totals Variable Issues

May 06, 2021

I have created a Jeopardy like game and I am almost complete with it, but have three things I would help with please.

1.  Based on the total score accumulated, I would like for the learners that reach 1200 points or better to be directed to one slide, and those that do not, to another slide once all of the questions have been answered.  

For fail I have a trigger that accounts for all of the answers being complete and at the end.

I have added to a trigger - 'and Total < value 1200'

For pass

'and Total >= value 1200'  (sorry, don't have a key for the symbol for >=)

 

2. For those that do not achieve 1200 points, they are given the option to try the course again.  I would like to be able to post a high-score for them based on their attempts.  How do I set up a variable that will show a score, provided that it is higher than the current total score?

 

3. Lastly, I have the question boxes on the gameboard set to be disabled once they have been selected, however, the hover state continues to show.  Is there a way to completely disable the other states when the disabled state is set?

Thanks in advance!

9 Replies
Andrew Hoskins

Update:  I have tested my variables for the first two issues listed in a different Articulate file and they work as expected.  However, the other file is a very simplistic one.  I am hoping someone can explain to me why they are not working in the attached story.file.   I have tried moving the variable to the top of the list of triggers and at the bottom - neither will send the user to either of the final two slides.  

Variable being used for highscore is = hs_total - set to number value=0

trigger:  Set hs_total to variable total when the user clicks submit if total > variable hs_total

 

I also have still not figured out about the disabled issue.  

Thanks again in advance for any help.

Maria Costa-Stienstra

Hi, A.H.

Thank you for sharing your .story file and for providing me with a fun Thursday challenge! 😊

I made a couple of changes to your file, and I'll recap them here:

  • You had your state change triggers set to When the timeline starts on the object. You want it to change when the timeline starts on the slide, instead, so it checks for the variable once the question is answered and you're back on the game board. 

Windows 10 (1) 2021-05-06 at 3.25.05 PM

  • Because the states were not changing to disabled, you could still see the hover state working. 
  • The triggers that check for all the states being disabled and send the user to one of the final slides were correctly set, but they needed to be moved down. The reason is, once the last category is played, the jump to trigger needs to happen after the button is disabled.

Your edited file is attached.

Let me know if this works and if my explanation makes sense!

Maria Costa-Stienstra

Hi, A.H.,

I'm happy my explanation was able to help you!

The file I attached above had the triggers that send the player to the pass/fail slides working as well. Did it not work for you?

Take a look at the screen recordings below for what I see when previewing.

Fail (less than 1200 points):

Screen Recording 2021-05-06 at 10.55.24 PM

Pass (more than 1200 points):

Screen Recording 2021-05-06 at 10.51.52 PM

Let me know if you're not experiencing the same behavior.

Andrew Hoskins

It did work, thank you so much.  I had misread the original response and missed where you addressed the issue of not going to the pass / fail slides.  Thank you again.  It's still a bit tricky for me to recognize the based placement for triggers on top of making them logically sound.  Thank you again!

 

Andrew Hoskins

Sorry - one last question on this.  I added the variables to account for the high-score tally - but when the user clicks 'Retake' - the high score is lost as Articulate is truly restarting the course.  How do I allow the user to restart the course to try and get a better score and still retain the last highest score?

Reattached with the updates.  Thanks again in advance.

Maria Costa-Stienstra

Hi, A.H.,

Unfortunately, the way you have the quiz set up, I can't think of an easy way to achieve this. The problem is that when you restart the course, all variables are reset, including the score. 

I'm hoping others in the community can offer some creative workarounds, possibly involving Javascript (which I am not very familiar with).

I'll keep looking as well, and if I find something that might be useful here, I'll come back and update the discussion. 

Andrew Hoskins

I thought that I had found a solution and still think it may work - but I am obviously missing something as it seems to have disrupted other items.  

I created a new variable called 'resetvar' and set its default to False

I then set the 'Retake' buttons at the end of the game to change that variable to True when clicked.

On the first slide of the game I set a trigger to reset all of the variables (except hs_total) to their original states when the timeline starts if resetvar = true  

Then when the user clicks the start button on that slide, the resetvar variable would be switched back to false.  

Unfortunately, I have not been able to test this, because the triggers that would have sent the user to one of the final slides has stopped working.  I cannot figure out where the break is happening.  Updated story attached.