Variable with three options

Oct 20, 2014

Hi I'm trying to create a project where users can select one of three options. Each option will give them a certain amount of content depending on how much they needed to know. For example, option 1 would show all the slides, 2 would show a smaller selection, and 3 would show the smallest number of all. 

I've used the true false variable a lot, but now I need more than just those two options. What can I do?

Also, is the search function on the forums and blogs websites broken? Nothing comes up when I try to use it - and believe me, I try using pretty basic words!  I have to search using google, and that isn't terribly useful.

Thanks!

11 Replies
Brent deMoville

I wonder if you can build it where each set of slides is in its own scene.  Your button triggers would then branch to the appropriate scene and set a variable value to 1,2, or 3.  At the end of the scene you could have a set of triggers that branch to the next set of slides for the longer sessions based on the value of that variable.

Bobbi Bailey

Lori,

I had a similar situation, where I needed to the course to behave differently based on how they were accessing the course.  To do this, I did the following:

  • Set up 3 T/F variables, setting them all to default to False:  AccessClassroom, AccessLMS, and AccessPC
  • Set up a slide in the course for the user to select the appropriate check box for their situation

  • Create trigger to change the state of each check box to "Normal" on timeline start
  • Create trigger to set the variable to True when the state of the corresponding check box is "Selected"
  • Create trigger to set the variable to False when the state of the corresponding check box is "Normal"

  • Create a trigger to jump to the slide I wanted the user to see, based on their selection choice.

  • On each following slide, I created a trigger to jump to next slide if a particular variable equaled false.  (For example, if I want the user to see slide 5 if variable AccessLM is true, but not if one of the other variables was true, then I had 2 triggers to jump to next slide if the other 2 variables equaled true).

Hopefully this helps you, or at least gives you some ideas to help you get what you need.

Feel free to reach back out to me if you need further help.

Bobbi

Bobbi Bailey

Another thought... If your slides will be grouped (perhaps by scenes) based on the selection, then you may not need the last set of triggers for jumping to next slide if a particular variable is equal to true.  I had to use these triggers on each slide, because all of my content was mixed together (not grouped).

So let's say you have a course with generic information for all users, but then the user selects if they are an engineer, technician or administrative employee. Then you have content set up in a scene for each of these user groups, then you would just set your "jump to" triggers from your selection slide to go to the appropriate scene.  Hope that makes sense.

Bobbi

Bobbi Bailey

Steve,

In my example above, I was just trying to show how 3 different selections can dictate the course behavior, based on using multiple variables and triggers. I don't think Lori's needs are dependent on how the course is launched (as I used in my example), but I am hoping that the multiple variables example will give her a little nudge in the right direction to accomplish what she needs.

However, for me, I really like your idea of using the undefined username variable to determine if launched through the LMS or not. (I actually already have a couple of JS's in my course, to pull student data from the LMS and populate certain areas of the course (ie the certificate at the end) based on the javascripts).  I am thinking I can run your "inLMS" script and if it equals Yes, then completely bypass the selection page (no need to make a user see and click extra stuff when not needed!), but if it equals No, then have the selection page display allowing the user to select if he/she is taking the course independently or if they are a facilitator presenting the course to a classroom.    Love it when new ways are discovered to tweak something and make it better!

Thanks!

Bobbi

This discussion is closed. You can start a new discussion or contact Articulate Support.