In order to create the same in Storyline 2, you'll need to use some Javascript.
Although I wrote this blog article for SL360 (before Articulate added the random element into the product) it will work in Storyline 2. Keeping in mind that when using Javascript, you'll need to publish to make it work. A simple preview won't suffice.
There are also tons of discussions on this board about using javascript with Storyline. I'm not an expert, by any means, with Javascript but there are many others here who are! :)
6 Replies
Coral,
If you are working in SL 360...
Use a combination of a random variable and layers. If you are working in earlier versions of Storyline, you'll need to use javascript.
In Storyline 360:
1. Create a random variable
(See here): https://articulate.com/support/article/storyline-360-random-number-variables
2. Create a layer for each roll value (e.g., 1-6)
Based on the variable value, take them to the appropriate layer where the applicable text message can be shown.
See attached for an example created in SL360.
Thanks for the reply. I neglected to mention I am using Storyline 2
In order to create the same in Storyline 2, you'll need to use some Javascript.
Although I wrote this blog article for SL360 (before Articulate added the random element into the product) it will work in Storyline 2. Keeping in mind that when using Javascript, you'll need to publish to make it work. A simple preview won't suffice.
http://bridgehillls.com/exploring-javascript-and-storyline-360-randomness-5/
There are also tons of discussions on this board about using javascript with Storyline. I'm not an expert, by any means, with Javascript but there are many others here who are! :)
Richard
I edited the DICE GAme to my own, but I was wondering if anyone could help me in figuring out a way to only be able to select a number one time.
Kristen - did anyone ever reply to your question? I have the same problem. I don't want the same number rolled. It happens too often.
Hey Cristina!
Check out this random number dice game that Russell shared with the community. And don't miss this tutorial on using random number variables in Storyline. I hope that helps to spark some ideas!
This discussion is closed. You can start a new discussion or contact Articulate Support.