Forum Discussion
Need help setting state based on condition statement of multiple variables being true
This is driving me crazy. I have a complex interaction that is a hoverable drag and drop. I am adding scaffolded instructions to tell the learner what to do for each part of the interaction.
1. Hint 1 displays when timeline starts and then hides when user hovers over three different hotspots. This works great.
2. Here is the problem. Hint 2 needs to change its state from Hidden to Normal when the three different variables are all equal to true.
I have reference variables showing on the screen and you can see them turning becoming TRUE after the user hovers over each hotspot. HINT2 will not show though. I have it set to:
Change state of Hint2 to Normal/ When timeline starts on this screen/ When the variables GarretVisited = True, and IrisVisited=True, and DewayneVisited=True.
***Please note that I'm not using the typical built in visited states since the variables is built off whether or not a hotspot is hovered over. I used a hotspot since the hovered area is part of a grouped image.
I've attached the screen. Thanks in advanced for any help someone out there as to offer.
- GarthYorko-TECommunity Member
Your trigger is not working because it is set to take effect when the timeline starts. The easiest option is to change your trigger to:
Change state of Hint 2 to true when variable (GarretVisited) changes
- If GarretVisited = True
- And IrisVisited = True
- And DewayneVsited = True
The copy and paste the trigger and change the variable in the first line to IrisVisisted
Repeat and change variable in the first line to DewatneVisited
See attached: