Forum Discussion
Course Paths/Branching
There are probably a number of ways you can do what you're describing. I think the easiest (for me) would be to create a variable, let's call it RoleNumber. I used a Text type variable. On your first slide create a button for each role. For the first role button set a trigger to "Set RoleNumber equal to 1". For the second role button set a trigger to "Set RoleNumber equal to 2". Continue with however many roles you have. Then wherever you get to a slide where you want the next slide to depend on the role, create multiple triggers for the Next button. So your Next button triggers would be "Jump to [slide x] When user clicks, If RoleNumber is equal to 1", add another trigger to the Next button that says "Jump to [slide y] When user clicks, If RoleNumber is equal to 2". And so on. If you organzie your SL file into multiple scenes it's sometimes easier than by slide but it essentially works the same.
Hope this makes sense.
Hi Brett
Not sure you still come to this forum since it's been a while. If not, can anyone help me with his suggestion.
I created 3 Role btns on a beginning slide but I don't know how they will work. I set the Next btn on a page to direct the respective Roles (3 Next btn triggers).
I just don't know how this will work. Does the user click on their Role btn on the first slide, then what?
Please help.
Thanks,
Dani
- BrettRockwood5 years agoCommunity Member
Hi Dani, I do browse the forum from time to time and still pick up a few tricks even now.
I think what you need to do is create a number variable, call it Role. Then on your first slide with your three buttons have a trigger on the first button that sets that variable to equal 1, set a trigger on the second button to change it to 2, and finally set a trigger on the third button to change it to 3. Now, you need to set triggers on the Next button of the slide preceding where your branches are.
If you structure you course using scenes I find it much easier to work with.So, at the end of each scene your Next button has three triggers attached to it. First trigger says if the variable Role = 1 to jump to scene (x), second trigger says if variable Role = 2 jump to scene (y) and the third trigger says, if variable Role = 3 jump to scene (z).
Once you've created your Role variable and the user has selected one you can continue to direct your branching at the end of each scene to each role however you like.
Hope that helps.
Brett
Related Content
- 7 months ago
- 11 months ago
- 12 months ago
- 11 months ago