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
Add trigger on each slide when timeline starts to assign a number instead of add 1
- ChrisWebmaxCommunity Member
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.
- ChrisWebmaxCommunity Member
Thank you Mike. Yes, this is really helpful.
Best regards,
Chris
- CynthiaKuni-be1Community Member
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
- CynthiaKuni-be1Community Member
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.
- CynthiaKuni-be1Community Member
Thank you so much I found it! thanks for the other shares as well.
Hi Cynthia,
I think this one might be the video you're searching for! (https://player.vimeo.com/video/149071860)
Mike
- CynthiaKuni-be1Community Member
It is, thank you so much :-)
- EricStavney-cb1Community Member
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/ .
- I've got a variable (varGlblScreensVisitedCount) that is incremented by 1 every time a new slide is visted.
- The counter is not supposed to increment if a radio button called VistedFlagRadioBtn is selected. The button, which is supposed to start unselected, signals that the user has been on this slide previously (meaning they backed up to previous slides). The button is changed to selected just after the incrementing of varGlblScreensVisitedCount.
- The triggers, progress meter, and radio button are all on a Master slide, to which all slides in the show are set.
- I've set all slides to Resume Saved State on revisiting so the radio button remains selected on revist.
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.
- PhilMayorSuper Hero
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.
- EricStavney-cb1Community Member
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.
Related Content
- 9 months ago
- 9 months ago
- 9 months ago
- 9 months ago