Forum Discussion

PaulineCanlas's avatar
PaulineCanlas
Community Member
8 months ago

Random Object Selection Storyline

Is there a way to select a random object when clicking on a trigger? 

The set up: There is an icon that will select a random number between x and x when clicked on. 

What I'd like to happen: Once the learner clicks on the icon, I would like the randomized number variable to show the image attached with it and not just the random number. I've created number variables and grouped them in with the proper image but I can't seem to figure out how the trigger should be set up.

The basic trigger without the image is: set variable "1" to random number between 0 and 20 when the user clicks image "2." 

Is this possible to do? 

  • The next trigger is "Change state of [image] to State2 when Variable1 changes if Variable1 = 2", and etc.