Possible to set a fixed variable?

Jan 25, 2016

Hi all

Not sure if I am putting this right, but here it goes.

Currently, I am doing a percentage completed sample made on Articulate Storyline 2. The file I made is as such:

- There are 6 slides in the file, with the 1st slide as cover and the remaining 5 pages as slides.

- The file has a percentage variable at the cover slide, which means each time when a person progresses a page, the percentage will increase by 20.

- So by the time the user has reached all 5 slides, when the user goes back to coverpage, the user will see a 100%. If he read 3 pages and goes back to the cover page, it will show as 60%.

Now here is the thing, if I were to add 1 more slide (i.e page 6), means the variable cannot be +20 in every page. I will have to change the value to +16.6 instead. I cannot be changing the value in every page each time I add a slide and this will become a problem when I handle huge project files. So is there any standard variable or value anyone knows so that I don't have to change the value each time a new slide is added?

I have attached my sample working project. You guys can try it out. :)

Regards,
N

1 Reply
David Jordan

I dont know of a way to retrieve from SL how many slides there are, however  i came up with a solution that takes very little maintenance. 

To you current system, add:

2 variables: slideCount (number), Increment (number) (default = 100)

1 trigger, at cover slide: adjust variable: Increment to Divide by "slideCount"

then on each slide instead of adding 20, you tell it to add "increment"

all you have to do is, before publishing or testing, adjust the default value of slideCount to = how many slides you have. 

 

edit: You could also just do the math yourself, 100/# of slides. And set the increment variable default to that value. 

This discussion is closed. You can start a new discussion or contact Articulate Support.