My previous blog showed you how to create a basic trigger. Before taking a step ahead towards creating advanced triggers, you need to understand the very important concept of variables as these help us a lot in adding conditions to your interactivity.
What is a variable?
Variable is a way to store and remember information, for example, the name of a learner or a numeric value, and then based on the given information you can present dynamic content. A variable can store only single information at a time, like only one name or only one numeric value.
You need not write any kind of codes to create a variable in Storyline. A variable wizard is available to create your own variable.
Create a new variable wizard:
You can create 3 types of variables in Articulate Storyline. They are:
- True/False: If you are familiar with programming, you would understand if I say that this type of variable is similar to Boolean variables, which can be assigned with only one of two values that are true or false.
- Text: This type of variable stores text values like the name of the learner.
- Number: This type of variable stores numeric values like the score, number of attempts, number of attempts and more.
Creating a new variable:
This involves three easy steps:
- Give a name.
- Select a type (True/False or Text or Number).
- Give a value that you want your variable should start with. (numeric value for Number variable; name or a word for text variable or True/False)
As I said earlier, these variables help us a lot in adding conditions to your interactivity. So while you create triggers to your interactive slide you can add conditions to it and make your interaction more complex. For example, I’ll create a variable named Variable1 of type True/False and set value False because I want the initial value to be false when the slide starts. Now with the help of the trigger wizard I’ll adjust the variable so that it becomes true in a given condition. I’ll adjust it as:
Since I want my variable to change its value to True when the timeline ends, I’ve adjusted it the above way. So now, as soon as my timeline ends, my Variable1 would change from False to True. And now it’s time to add a condition to the trigger.
I would like to restrict the learner from navigating to the next slide unless he watches the complete slide. So the trigger that I would create with the condition is:
Click on the Show Conditions that you see in the trigger wizard. The window expands as shown below:
Click on the Green Plus mark to add a condition. The Add Trigger Condition wizard would appear. Now add the condition as shown and click OK.
This is how your Trigger wizard looks after adding a condition. You can add more conditions as per your requirements and click OK.
Your trigger is now ready with a condition. Now this slide would not navigate to the next screen unless Variable1 becomes true.
This is how one can create advanced triggers in articulate storyline. To learn about more such interesting features in articulate storyline, stay tuned.
Subscribe to Our Blogs
Get CommLab's latest eLearning articles straight to your inbox. Enter your email address below: