Problem with tracking visited states on buttons that change the state of a different button
Apr 14, 2018
Hi everyone,
This might be a bit confusing. I'll try to make it clear. I have submitted a case to articulate support but I thought I'd post here in case anyone else has encountered this.
My problem happens in Storyline 3. I have created screens like this many times in Storyline 2 without issue.
Imagine a slide with 2 layers. On each of the two layers, there are 2 buttons (A1 and A2) and another 'button' (X) that has a white square as its normal state, and text in two more custom states. When you click button A1, X changes to state X1, and when you click A2, X changes to state X2. It's basically a custom hotspot screen.
I have 3 variables: 3_6a, 3_6b, visited_3_6.
When the learner has clicked A1 and A2 on Layer 1 (thereby switching their states to 'visited'), 3_6a changes to "True". When the learner has clicked A1 and A2 on Layer 2, 3_6bchanges to "True". When both 3_6a and 3_6b are "True", visited_3_6 changes to "True".
In Storyline 3, the variables update only if I remove the code to change the state of X.
I should also say that this works even without a defined 'visited' state as long as I don't adjust X.
If you want my code, this is it:
Base layer:
Show layer A when user clicks button M.
Show laer B when user clicks button P.
Layer A:
Set 3_6a equal to True when the state of A1 and A2 are Visited.
Set visited_3_6 equal to True when 3_6a changes if 3_6a is equal to True and 3_6b is equal to True.
Layer B:
Set 3_6b equal to True when the state of A1 and A2 are Visited.
Set visited_3_6 equal to True when 3_6b changes if 3_6a is equal to True and 3_6b is equal to True.
Anyone encounter this?
Thanks,
Cyndy
4 Replies
Hi Cyndy
can you see that the variables are changing when the triggers fire?
Might be easier for someone to help if we can see the slide
Hi Wendy,
I have the variables displayed at the top of the screen. They don't change. They DO change if I remove the code to change the state of X. I'm attaching the .story file now.
Hi Cyndy
see if the attached works for you. I've added to offstage objects to manage the variable changes.
Great Wendy - that works! The way I built it should work, but as it doesn't this is a doable workaround. Thanks for your help!
This discussion is closed. You can start a new discussion or contact Articulate Support.