Variable counters
Aug 15, 2013
Hi all, I'm new to storyline and learning variables. I have the following scenario I'm trying to figure out:
A slide that has 3 items the learner can interact with, with a counter at the bottom stating '0 of 3 items clicked' which counts as they click on each item. The problem I'm facing is that a learner can click on the same hotspot, ie hotspot 1, multiple times and the counter will continue to count to 3.
Each hotspot goes into either another slide, or lightbox, before returning to the main slide.
Is there any way I can make it so that once an item is clicked, the counter will adjust for example to 1 of 3, but then if they interact with that item again it won't count it again, and only count additional items clicked?
At the moment, each hotspot states 'add 1.00 to itemsclicked if value is less than 3.00'
Thanks in advance!
Roxy
9 Replies
One option is to increase the counter only when the state of a clicked item is not "visited" (aka 'has not been clicked'). Have a look at the attached file and see if that works for you; and here is the published version.
Nice example Michael. Well done.
Hi Roxy! I wanted to welcome you to E-Learning Heroes! Looks like you are already being taken care of by Michael, so just let us know if you need anything further!
Thanks Michael!
That's great! Thanks Michael, that's exactly what I'm trying to achieve I'll give that a go and reply if any further issues.
Thanks for the warm welcome everyone :) Great community!
Hi everyone. Ok Michael that counter variable works perfectly as long as the item is on another layer in the same slide. Now is there any way to apply that to a lightbox or additional slide which then returns you to the original slide? I've tried applying the same variable using the relating shape to the lightbox but haven't had any luck, it still continues to count that same item multiple times. User error perhaps? Not sure what I'm doing wrong.
Oh, I should add, the reason I can't just put the item on another slide is because the item is part of the background image used, hence the hotspots to additional info in a lightbox.
Roxy, to show lightboxed slides instead of layers, simply change the Show Layer triggers to Lightbox slide xyz triggers, as in the attached example. Clicking items 1 and 3 shows lightboxed slides, clicking item 2 jumps to another slide.
Ok I've solved it! I simply provided some 'items' with no fill or line which I could then change the state to, over the images on the background that needed to be clicked
Thanks for the update Roxy! Glad you got it working!
This discussion is closed. You can start a new discussion or contact Articulate Support.