Forum Discussion
numeric variable
Hello there,
I saw this video about numeric variables:
http://learn.articulate.com/numeric-variables/
(of Feb 2013)
Very interesting!
I applied it to my project. What I did is adding a trigger (+1 value when click on next) not only on the last slide of a chapter but on each and every slide (to be more precise).
the problem I see when using it is that if I take 5 times the same chapter, it keeps on adding a 1 value to my variable (which could give a result of 100% before I actually watched the whole module).
Is there a way I could tell the trigger to add the value only once? (or is there another way to go about it?)
Thanks for your help.
Chris
30 Replies
- PhilMayorSuper Hero
I had a look at the slides and moving onto the slide does fix it, I did change the triggers to timeline start of the slide rather than the object.
I checked the tutorial as well and you did nothing wrong, I just think th tutorial is wrong, slide masters do not save state.
- EricStavney-cb1Community Member
OK, that does make sense. I'm not quite sure how to set the the triggers to the timeline start of the slide; thought they were set that way. Do you mean I should move the triggers associated with the radio button to each slide, rather than on the Master slide?
Maybe you're talking about the Object of triggers on the Master, which should be changed to:
That what you mean?
e
- PhilMayorSuper Hero
At the moment all the triggers are on the radio button they should ideally be on the slide which is available as an object in the dropdown. It doesnt make it easy to cut and paste them, but often state based triggers do not fire when on an object rather than the slide.
- EricStavney-cb1Community Member
Thanks. I really appreciate you helping me solve this. :)
- LaurenParker-53Community Member
Hi! I'm trying to achieve a similar effect, but it's not functioning as I anticipate it should. I have a trigger set on my slide to add a count when the timeline starts if a variable is false. When the learner clicks an object on the slide, it's set to change the variable to true before it advances to the next slide. However, when the learner revisits the slide, it's still adding a count. I'm not sure what I'm doing wrong. I've tried setting the slide to reset to initial state and resume saved state in case that was the issue, but it adds a count again regardless. I've included a screenshot of my trigger panel. Any assistance anyone can offer will be much appreciated!
Hi Lauren,
I'd have to see the file to diagnose (feel free to post it here if you're able to). The way the triggers look, it seems like it should work.
My first thought is...that "FirstMove" variable. Is that only being used for this slide? So it's not being set back to "False" for some reason on a subsequent slide? Because if it were being set to "False" on the next slide then a return to this slide would cause the count to continue. Ultimately, in this setup, you'd need a unique True False variable for each slide.
If that's not the issue, it might help to set up a variable reference on the slide to make sure that the variable is, indeed, changing. To do so, add a text box to this slide. And then via the insert tab, click "reference" and select the FirstMove variable. This will create a %FirstMove% within the text box (note: you can also just type that into a text box). I'd also create this same exact reference %FirstMove% on the next slide that you're traveling to. So now when you preview your project, you'll see what's going on with that variable. Does it flip to "True" when you advance to that next slide? And when you return, does it stay "True"? This will help you to diagnose the situation in more detail.
I hope this helps! And please feel free to post your file.
Mike
- LaurenParker-53Community Member
- IlanaPrusock-88Community Member
Hi there, I'm trying to use numeric variables to set up an interaction where the answer will register as correct if the student selects any 4 of the items. I've been able to create this if the user selects 4 items right away, but not if they select, deselect, and then reselect items. I've tried it a whole bunch of different ways (they each have a slide in the attached). I'm wondering if anyone has found a way to achieve this. Thanks!
- MariaCSStaff
Hi, Ilana, and welcome to E-Learning Heroes! ✨
Thank you for sharing your .story file! I see you also opened a case with our support engineers, and you're working with Lianne. While there are different ways to achieve what you're looking for (and Lianne will probably offer you a great suggestion!), here's my recommendation:
- Connect the variable change (Add value 1 to CountCircles) to the submit button (Button 3), and add a condition to check if the oval is checked (If the state of Oval 1 = Selected). You should do that for each of your ovals.
- Keep the triggers that submit the interaction and change the correct and incorrect selections at the bottom of your list.
You currently have one attempt allowed, but if you decide to change it to more than one, you should also add a trigger to set CountCircles to 0 on your Try Again layer.
I am attaching my suggestion here.
Let me know if this works!
- IlanaPrusock-88Community Member
Thank you! This works great.
I'm wondering how I could apply a similar concept to a drag and drop....
I've set up the drag and drop, but I'm struggling with how to establish
that it should validate correct if there are four items in the drop target?
- IlanaPrusock-88Community Member
Hi there,
The suggestion above worked really well. Thank you! I'm wondering if you can help me take it a step farther. I am trying to apply the same concept to a drag and drop item.... I've applied the principle of counting when the items are dropped on the target, but I'm having a difficult time figuring out how to set up the validation because it cannot be both a drag and drop and a pick one. Is this possible?
Thank you!
- MariaCSStaff
Hi, Ilana.
I'm happy the suggestion worked for you! You can apply the same idea to a drag-and-drop slide but still using the Pick One freeform question.
I created a short 4-minute Peek 360 recording showing you how it would work, and I'm also attaching the edited file here.
Let me know if you have questions!
- IlanaPrusock-88Community Member
Hi Maria,
This is great. I have one follow up question for this.
I'm having trouble changing the settings so that the dropped items don't
stack. I need the user to be able to see them all. I know how to do that in
a drag and drop item, but since this is a pick one item, I'm not able to
access those settings. Is there a way around that that I'm not finding?Thank you!!
- MariaCSStaff
Hi, Ilana.
Nice to hear from you again!
If you right-click the target, you should have access to those drag-and-drop options as well:
Let me know if this works!
Related Content
- 10 months ago
- 10 months ago
- 10 months ago
- 10 months ago
- 10 months ago