I'm wanting to set up a course that offers several scenarios for the learner - but will randomize the scenarios when the selection button is clicked. Has anyone done something like this before, and if so would you be able to share with me how?
If you wanted to avoid duplicates, you could go the question bank route I suggested. Here is some info on drawing from question banks. You should also be able to use additional variables (e.g. a completion variable for each scenario) to check if a scenario has already been picked and, if needed, redraw.
Thank you, I think I would need to take the variable approach as the random choices are scenes not individual questions. I'll give it a try...appreciate your feedback!
Actually, you wouldn`t use the questions in a bank as questions per se. They would be used as placeholders for a slide trigger that jumps to slide xyz in scene abc. When you randomly draw a question, it will immediately jump to that scene/slide.
Hi Michael, I've build the scene to pull from an randomized question bank that then jumps to a certain scene. It seems to work for the 1st of the 4 selection buttons but doesn't seem to randomize after the 1st selection. Eg: When I play the scene, I have a choice of four scenario buttons to click. When I click the 1st I get a random pull of the question bank....but when I click the 2nd, 3rd or 4th buttons it keeps pulling the same selection, it seems to get stuck on the first pull. Do I need to make 4 question banks with the same questions for each button or can I keep pulling from the same bank?
Now that I had a look at your actual file my original idea didn`t seem to make sense in this case. I slightly reorganized. Have a look at the attached and see if that`s what you wanted. You can easily add more slides to the question bank to account for each possible variation of the four variables (I only added a few for testing).
Hi Michael, sorry to bother you again. I've been asked to see if we are able to ensure that out of the random draw, that there is always one type of each scenario in the draw. I've hit a bit of a wall in what that coding would look like.
For example, there are a total of 6 scenarios - 2 Safety, 2 security and 2 environmental. Currently the course takes a random pull of these 6 but sometimes it pulls only 2 categories and leaves out one. The ask is to ensure that out of the 6 options that one of each is always in the random draw... I think this might be a simple solution to this but I just can't seem to nail it.
16 Replies
Thanks Matt, I'll give this a try
Doug Dewan | Technical Training Specialist | ENMAX Energy
See attached a non-JS option, using a random number variable. You could also use a random question bank with "blank" slides that jump to a scenario.
Thanks Michael!
Michael, if we wanted to not show the same scenario twice, how would we approach that with your solution?
If you wanted to avoid duplicates, you could go the question bank route I suggested. Here is some info on drawing from question banks. You should also be able to use additional variables (e.g. a completion variable for each scenario) to check if a scenario has already been picked and, if needed, redraw.
Thank you, I think I would need to take the variable approach as the random choices are scenes not individual questions. I'll give it a try...appreciate your feedback!
Actually, you wouldn`t use the questions in a bank as questions per se. They would be used as placeholders for a slide trigger that jumps to slide xyz in scene abc. When you randomly draw a question, it will immediately jump to that scene/slide.
Oh ok, I see what you mean - I'll give that a try! Thanks again!
Hi Michael, I've build the scene to pull from an randomized question bank that then jumps to a certain scene. It seems to work for the 1st of the 4 selection buttons but doesn't seem to randomize after the 1st selection. Eg: When I play the scene, I have a choice of four scenario buttons to click. When I click the 1st I get a random pull of the question bank....but when I click the 2nd, 3rd or 4th buttons it keeps pulling the same selection, it seems to get stuck on the first pull. Do I need to make 4 question banks with the same questions for each button or can I keep pulling from the same bank?
Can you share your .story file here so that someone can have a closer look?
Sure, see attached.
Now that I had a look at your actual file my original idea didn`t seem to make sense in this case. I slightly reorganized. Have a look at the attached and see if that`s what you wanted. You can easily add more slides to the question bank to account for each possible variation of the four variables (I only added a few for testing).
Michael, I think this does the trick! Thank you so much for all your help!
Hi Michael, sorry to bother you again. I've been asked to see if we are able to ensure that out of the random draw, that there is always one type of each scenario in the draw. I've hit a bit of a wall in what that coding would look like.
For example, there are a total of 6 scenarios - 2 Safety, 2 security and 2 environmental. Currently the course takes a random pull of these 6 but sometimes it pulls only 2 categories and leaves out one. The ask is to ensure that out of the 6 options that one of each is always in the random draw... I think this might be a simple solution to this but I just can't seem to nail it.
Hi Michael, figured it out finally. No need to respond. Thanks again for getting me this far!
Doug, sorry for not responding. I wasn't subscribed to this thread. Great to hear that you figured it out on your own!
This discussion is closed. You can start a new discussion or contact Articulate Support.