Randon Scene Selection?
Jul 19, 2017
By
Brian Cook
Hi all,
I am looking to see if there is a way that Storyline can randomly choose scenes, rather than the scenes being in a pre determined sequence.
For example, I have included a file that has 3 interactive scenes. The scenes them selves operate in a linear flow, but what I want is for storyline to randomly pick the next scene at the end of the current one. Like instead of the assigned green, blue, red sequence, it could start red, then green, the blue or any other sequence. This is for gaming and quizzing purposes.
So I guess I want to know if storyline can randomize entire scenes like it can randomize individual slides.
Hope that makes sense!
6 Replies
A numeric variable called NextScene that is set to Jump to Scene #2 if the variable equals 2 might work. The variable would need be set via scripting using the Math.random() call. The catch - scripting is unavailable in the AMP mobile player. And you'd need a bit of scripting knowledge. The forum has some great threads on scripting, and Articulate's own article on variables is pretty good.
Hi Brian (and Brian!)
I did it just by layers and showing a new layer when the timeline ends which puts it in an endless loop. When 1 ends show 2, when 2 ends show 3, when 3 ends show 1 ....
I think this is what you are after!
Thanks Gents!! the random layer selection is good. Now I just need it to play all three scenes, every time. Surely there are some gaming scenarios that could do that
Hmmmm, well how about a variable (for example): at the end of last Green screen, change Green from False to True
Then on the first screen with the button, change the trigger:
When 1 ends, show 2 if Green if False
That way, if Green is True (ie Green section visited), it won't show that layer and therefore the learner wont have the option to click it again. Recreate for Red and for Blue.
Also, add an extra layer: if Green is True AND Red is True AND Blue is True, show layer 4. The button on that layer will then jump to another scene / slide / final screen / etc. whatever you need it to do. I hope that makes sense!
Give it a try and let me know how you go. Fingers crossed :)
Here's what I came up with.
Russell, this could work, although I don't pretend to understand it! LOL!
This discussion is closed. You can start a new discussion or contact Articulate Support.