numeric variable
Mar 22, 2013
By
Chris Webmax
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
Add trigger on each slide when timeline starts to assign a number instead of add 1
Thanks Phil for your reply.
But if I take slide 1 (and assign 1), then take slide 2 (and assign 2), then go back to slide 1, I get a 1 in my meter (but it should be marked 2).
And what if I decide to take chapter 1, then 3, then 2 ? (the add a value seemed to be a good solution - only that it adds a value as many times as I visit the same slide).
Any other solution ?
Thanks,
Chris
Chris,
I did a follow up post on that issue.
http://community.articulate.com/forums/t/26391.aspx
For your situation, you can use the next button to increment the variable, but you'll need a way to stop that from happening the next time they hit that same button again. The way to do this would be to create a set of companion variables (true or false variables, one for each slide). So as an example....let's say you have a number variable that's being adjusted each time the user clicks a slides next button (we'll call this "Counter"). Let's say that we're on slide 01 of your presentation.
For this slide we'll create a True False variable called "Slide 1".
So on this slide, your triggers would be...
Adjust variable (counter) +Add Value 1, When user clicks Next button, On Condition: Slide01 == Equal to False
And
Adjust variable (slide1) =Assignment Value True When user clicks Next button
So the first variable is going to add a value only if the T/F variable is False. Once the user clicks the next button, the variable switches to True, so the next button will no longer cause the variable to add a value of 1 on subsequent clicks.
Hope this helps!
Mike
PS. Pay close attention to Trigger order. Make sure these triggers come before the Jump to Next Slide trigger.
Thank you Mike. Yes, this is really helpful.
Best regards,
Chris
Hi Guys,
I am looking for the response to this screenr about the design flaw http://learn.articulate.com/numeric-variables/
Does anyone have the link?
Hi Cynthia,
i think you might want this link: https://community.articulate.com/discussions/articulate-storyline/progress-meter-follow-up
Let me know if that's not the one!
Mike
Thanks Mike, do you have the link to the video?
Hi Cynthia!
Hopefully if there is a video that I'm 'missing' that you're asking about, then Mike will be able to assist.
I wanted to share for others following along, that I've responded to you here as well.
Hi Cynthia,
I think this one might be the video you're searching for! (https://player.vimeo.com/video/149071860)
Mike
It is, thank you so much :-)
Thank you so much I found it! thanks for the other shares as well.
Hi All,
My problem is related to a revisiting variable so I thought it fit in this thread.
I'm looking for some help in proofing a file I made with a progress meter. I built it from the great instructions provided by Pete Brown at https://cooeeproductions.wordpress.com/ .
Can anyone help me resolve why my counter continues to increment (and the progress meter moves forward) even though my user is backing up to a previously viewed slide? Is it a trigger order problem? I'm attaching my file of 5 slides.
Not looked at the file yet but expect it is because your radio button is on the master not the slide itself will test once it downloads.
OK, thank you Phil. That makes sense, that it needs to be on the slide itself, or it will keep resetting to the existing state on the Master slide.
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.
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
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.
Thanks. I really appreciate you helping me solve this. :)
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
Thank you, Mike! My project is attached.
Hi Lauren,
I checked your file and at least that opening slide is working as expected.
I did a quick walkthrough here to show you.
I hope this helps!
Mike
Thank you so much for taking time to look at my file, Mike! I'm having a hard time isolated which slide is functioning incorrectly since I set them all up the same. I'll keep testing to see if I can figure it out! Thank you!
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!
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:
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!