Branching in Storyline / Variables

Mar 15, 2024

Hello!

I hope someome can help me!

I have created a Storyline course with 4 scenes (4 levels) plus a final test. At the beginning of the course, the student has to choose a character. To do tha, what I have done is branching, duplicating scenes (8 in total), one for woman character and the other for male, but the content is the same.  Throughout the course, I have put an "achievements" button and lightbox where the status of each completed or uncompleted level will appears. The problem is that I donĀ“t know how to use the correct variables to link this.  How do I get that achievement lightbox to change when a level has been completed?

I hope I explained myself properly...

Thank you

1 Reply
Judy Nollet

First, you don't have to duplicate scenes to show different characters. That's hard to develop and hard to maintain, since all changes/corrections have to be done in multiple locations. 

Instead, you can use a variable to track which character was chosen. Give the character-object a custom state for each character. And trigger which state to show based on the value of the variable. Details are in this article: 

As for variables to track which levels are completed: For each level, create a T/F variable with a default value of False. At the end of a level, add a trigger that adjusts the associated variable to True. On the status slide, have triggers that show a level as completed (e.g., change to a custom "Completed" state) when the timeline starts with the condition that the associated variable = True. 

This post is about custom menu slides. But those use similar programming, so you might find the demo file useful:  

Here is the User Guide info about conditions and variables: