Calculating the accuracy of a guess.
Jul 14, 2017
By
Danny McGee
Hello all.
I'm working on an eLearning project and I just want to check something is possible in Storyline 2 before I ask my designer to set about figuring out how to do it.
What I'd like is to be able to set a value. For example how many sweets in the jar. And ask the learner to type a guess. Then I'd like to be able to tell them how close they were.
So if the correct answer is 100 and they guess 75 the feedback will tell them they are 25 away from the correct answer.
It seems simple enough on the face of it but I don't want to get into figuring out if it's possible if it's just not.
Thanks
Danny
8 Replies
This can be done in Storyline
Yep, it can be done by subtracting a variable that holds the learner's guess from the right answer. If you don't want to have a negative number (if they guessed 125, for instance), you'd need to have two different triggers: answer-guess if guess is less than 100, guess-answer if guess is over 100.
This should do what you are after http://test.elearninglaboratory.co.uk/SweetJar/story_html5.html
It uses javascript to pull a random number between 1 and 200
To not get a negative number just multiply the answer by -1
Fantastic thanks for your help.
That's brilliant I really like it
If I don't need a random number can you give me an idea how I set the correct value?
DElete the execute JavaScript trigger to create the random number and then set the variable to the value you want
Could a slider approach work if a developer was not knowledgeable on the coding side? Could you have a slider with point scales every 10 count, show the jelly jar and change its states to see the beans in color or dimmed as the point scale changes. Then provide a hint as to how far away the count is? Then the learner adjusts the slider. I understand the coding way is more efficient and effective (and forces all of us to better understand js & variables) but a non-code approach has value also.
This discussion is closed. You can start a new discussion or contact Articulate Support.