I have interaction in the course. Users can choose between 3 options (there is no true or false answer). I have 3 variables (value). If a user clicks the first option Storyline adds value +2 to variable A. Substract -1 to variable B and add 0 to variable C.
The thing is, if the user clicks on the button twice or more times Storyline adds +4 or +6 instead of +2, and subtract -2 or -3 instead of -1.
My question is how to restrict the user to choose the option only 1 time or how to restrict the storyline to change variables more than 1 time.
I'm looking forward to the suggestions our talented community members might be able to offer for what you're looking to accomplish, but here's what I'd do if the design allows:
Make the three options a button set (select all the options, right-click, and choose Add to button set)
Add another button to submit the interaction (we'll call it Calculate for the example below).
Depending on which option is selected, the triggers that calculate the results will be attached to the Calculate button. Since they're either selected or unselected, the calculation will only be done once.
Are you able to share your .story file here so I can look at how you have it set up?
When you have the triggers assigned to a button, the action should only happen once (when the button is clicked), regardless of how many times the user selects the option.
Maria's suggestion is good, but maybe didn't go far enough. What is needed is that the other buttons may be pressed as often as the learner likes, but the calculate button can only be pressed once. Once the calculate button has done the addition or subtraction, it needs another trigger to turn itself to Hidden, or move to the next slide. That allows the learner to change their mind and choose any of the operations, but once they choose calculate, they are locked into the selected option.
5 Replies
Any ideas?
Hi, Maryna, and welcome to E-Learning Heroes! ✨
I'm looking forward to the suggestions our talented community members might be able to offer for what you're looking to accomplish, but here's what I'd do if the design allows:
This is what it will look like:
Dear Maria Costa-Stienstra,
Thank you for your reply.
Your example is exactly what I have already done.
The thing is when you pressed "add 10 to the number" twice - Storyline added 10 and then 10 again so Storyline added 20 instead of 10.
My question is How to make Storilyne to add 10 only one time?
Is there any option to restrict Storyline to count the number twice?
Thank you in advance!
Hi, Maryna.
Are you able to share your .story file here so I can look at how you have it set up?
When you have the triggers assigned to a button, the action should only happen once (when the button is clicked), regardless of how many times the user selects the option.
Maria's suggestion is good, but maybe didn't go far enough. What is needed is that the other buttons may be pressed as often as the learner likes, but the calculate button can only be pressed once. Once the calculate button has done the addition or subtraction, it needs another trigger to turn itself to Hidden, or move to the next slide. That allows the learner to change their mind and choose any of the operations, but once they choose calculate, they are locked into the selected option.