Adding Conditions to a Slide
Dec 08, 2015
Hi All,
I'm very new to Artcitulate and am attempting to create some interactivity in an eLearning that I am developing. What I would like to do is create some conditions that would allow something to change states, depending on what buttons are toggled. In the image below I have a battery, and the states change as the different items are turned on. But what I would like is for it to be more freeform. So if toggles one and 4 are on, then the battery is only slightly impaired. As of now it is only sequential, but I would like my learners to play around with the buttons to affect the battery. How do I go about doing this?
7 Replies
Hi Tracelle,
I also wanted to share that I didn't see an image linked here - if you're still struggling with the issue you may want to post the .story file here as well so that our community and staff can take a look and weigh in on the ideas.
Hi Ashley,
I attempted to add a picture, I guess it didn't work! I understand the fact that we can add conditions, I just do not understand how they make things change. So for example, how do you add conditions and how complex is it when using 5 different states?
Hi Tracelle,
The use of conditions really would depend on what you'd want to accomplish with them. For example, in your set up if the second toggle was in the "selected" state you could set it so that when the user clicks on the second toggle it would change its state to "normal" on the condition that it's in the selected state. Similarly the reverse, change to selected on the condition that it's normal. You could also control other elements on the slide such as the battery power icons, say their initially hidden? Change the state of the hidden power to normal when X happens, on the condition that toggle 1 and 2 are selected. The when element will also be crucial for this set up - as that'll determine when on the slide it happens such on the user click or the timeline reaching a particular point. If you're able to share that slide it may be easier for the community to take a look and offer assistance with this design.
That makes a bit of sense. I've attached my slide so you can see what I've done. At the moment, when you click them all on in order, what I would like to happen occurs. As well as when you turn them all back off from bottom to top. But I would like the states to change based on have any 1, 2, 3, 4 or 5 options selected. So for example if I have 1 and 4 selected then the "Partial Charge State" would show, but also if I have 2 and 5 selected partial charge state would also show.
Basically, what I want exactly is that if I have 1 item selected then Normal State Shows of the Battery.
2 Items selected then Partial Charge State Shows
3 Items Selected then Half Way State Shows.
4 Items Selected then Low Battery State Shows
5 Items Selected then Dead Battery State shows.
I hope i'm not too confusing, I've been playing around with this for a while and just can't figure it out!
Thank you for your help thus far!
*Another comment to make, is that originally I've made this on a Layer, not a slide.
Hi Tracelle
maybe try this
Create a number variable called eg. BattState with a default value of 0.
Set triggers:
Adjust variable BattState Add 1 when toggle button 1 is state on
Adjust variable BattState Subtract 1 when toggle button 1 is state off
Repeat for all toggle buttons.
Then set 5 triggers
1. Change state of Battery indicator to dead state when variable (BattState) changes on condition BattState =5
2.Change state of Battery indicator to low state when variable (BattState_ changes on condidtion BattState=4
Repeat this for the other 3 states
This worked perfectly! Thank you! At first I didn't understand how variables and conditions worked, but this makes perfect sense! I really appreciate your help.
Good one Tracelle glad you got it working
This discussion is closed. You can start a new discussion or contact Articulate Support.