Hello,
I have a small interactive presentation which draws 4 slides from a pool of 7.
Then on a last closing slide I have a restart button.
It seems that if I use the restart button the 4 selected slides stay the same.
Only if I refresh the page do I get a new random set of 4.
Is there a way to force a new random set of slides when hitting the restart button?
If you run on LMS, there should be an option for users that they can choose a new attempt or just resume a previous section. Users must close and restart it.
Hello,
Ideally I would like to have it work inside the SCORM itself as it autoplays and the users do not see the course page where you select start new attempt.
Interestingly enough - location.reload() works in the LMS… it comes up with a new random set of slides… but it also indicates and error -
“GetValue(cmi.entry) failed
Retrieve data after termination”.
This error doesn’t prevent it from working as should. Is there a way to prevent the error or prevent it from popping up ?
Thanks,
Michael
Hi,
Well noted.
Any other idea how to force a new attempt and slide reloads from inside the SCORM?
Can I initialize it again or something like that?
Thanks,
Michael
I didn’t use pool and place all my slides in the main presentation and used a random list of numbers to move from one to another.
On my first slide - on load - I have this script
var slideNumbers = [3,4,5,6,7,8,9];
var obj = prez.object(“Scenarios”);
var draw = 0;
var num = 0;
for (i = 0; i < 4; i++)
{
draw = getRandomInt(0,slideNumbers.length-1)
num = i + 1;
prez.variable(“slide”+num,slideNumbers[draw]); //window.alert(prez.variable(“slide”+num))
slideNumbers.splice(draw,1) //window.alert(slideNumbers)
}
function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min;
}
Then on my start button I have
prez.showSlideAt(prez.variable(“slide1”),0)
Then on my continue button on each slide
I have prez.showSlideAt(prez.variable(“slide”+prez.variable(“slideViewCount”))
and I add one to the variable slideviewcount before this
Then once I have viewed enough - the button goes to the last slide.
Hi Michael,
thanks for your reply.
Could you also have a script solution to randomize also a time range when this questions appears?
For example, if a video is long 2min, the questions appears random in a range from 1.45 to 1.55?
Hi,
I guess, theoretically, you could randomized your start times like I did the slide numbers and use “showSlideAt(index,
time)” but hard to say.
I cannot help more - I believe this is a different situation from mine and I don’t have any experience working with videos. The ActivePresenter team may be able to be better assist you.
Regards,
Michael
Hi,
I build a quiz with the work around of Michael (Thanks a lot for that!).
I just don’t know how to reset the quiz result after restarting the quiz.
I suppose the correct answers are saved in the variable apQuizCorrectInteractions.
At the end of the quiz the “try again”-Button brings the user back to the start slide of the quiz. Because apQuizCorrectInteractions is a system variable I don’t know how to set it back to 0.