Forum Discussion
Modify variables managed by storyline
Good morning I have a questionnaire with random questions to create. If the construction does not pose a problem my questions are a little complicated to know that we can for example ask a question which expects a yes or no answer and if the answer is good we ask why. I therefore added a layer which asks why and which allows you to add an additional number of points to the Quiz1.ScorePoints variable. except in the end this addition is ignored. I therefore created a bonus variable which accumulates the points of a possible additional question and before moving on to the result slide I add bonus with Quiz1.ScorePoints so that the bonus is taken into consideration in the success or not of the test. And to my surprise I noticed that for example 10 + 10 = 10 !! can you confirm that Quiz1.ScorePoints cannot be modified by such a process? and is there a solution to achieve this. THANKS
- PhilMayorSuper Hero
You cannot modify the quiz variables
- JeanMarcLaumondCommunity Member
thank you and is it possible in the result slide to change the Quiz1 variable to another variable?
- PhilMayorSuper Hero
You can change to whichever variable yo want but that will not be the value sent to the LMS. You can send your own variable to the LMS there are posts on here with code to be able to achieve that
- AndrewHanleyCommunity Member
Hi Jean
A possible way to achieve this might be to BRANCH to another question slide for your "Why" answer.
You can make this new slide look identical to the existing question slide, except it also will have a Why field.
On this new question slide, simply set up a question that is already answered correctly for them, but off the slide (Ie. Hidden).
You can apply any score you want to this in the Form view.
Now when your users answer the Why part, and click Submit, they will be awarded the extra points, and Storyline will accept this because it's a proper question slide (just remember to include this slide in your Results as well)
- JeanMarcLaumondCommunity Member
Thank you Yes it will be very complicated. I think it will be better to review the questions.
- JeanMarcLaumondCommunity Member
Hello Andrew I tried something like this, I added a scene with additional slides and if the answer is good we change the scene and we come across a complementary slide. but when you return to the random questions slide it no longer works. if I refer to the question slide why? I'm afraid that in the random generation this question will come out without the previous question. we can therefore find ourselves in a comic style of question such as: what is the difference between a pigeon, which can be disorienting for the trainee.
- PhilMayorSuper Hero
Andrew's idea would work on a single slide if you have the real answers off slide and set to score by choice
No sets the no to selected and submits
Yes shows an answer and then selects whichever option has the score you want and then submits
- JeanMarcLaumondCommunity Member
Ah okay in fact I put it as a slide which cannot be drawn and if the answer is good the score will be counted as good and will switch to the slide which could not be drawn and then we will continue as if nothing happened then. Did I understand well ?
- AndrewHanleyCommunity Member
That's it Jean, a slide not in the main draw, but you manually call only when needed.
...as always Mr.Mayor explains it better and quicker than I can! XD
- JeanMarcLaumondCommunity Member
So I'm going to try. It seems interesting to me and as they say in French, it's a real thorn in my side. It's faster but the idea came from you. And with you two I hope to have understood everything and put this into practice and that it works. I'm trying this and testing. Thank you very much, that's an idea that I probably wouldn't have had.