Java script in Storyline to set the Results.ScorePoints variable?
Seriously, this seems so simple, but I just can't seem to find the magic scripting or sequence to make this work.
All I want to do is execute a java script when clicking a button. The java script I'm trying to formulate has to do one thing: set the "Results.ScorePoints" variable equal to my "NumberRight" variable. Is there an easy way to do this?
Or is there an easier way to accomplish this: I have one slide with 10 draggable items which need to be dropped on 1 of 2 drop targets. To pass this 'quiz', I require that at least 8 out of 10 of the items be dropped correctly. They don't ALL have to be correct (which is what the default Storyline Drag and drop interaction scoring wants). I've got the interaction working perfectly using states/triggers/layers, but my problem is the Results slide...keeps sending me to the Fail layer if I have 8 or 9 correct due to the "Results.ScorePoints" variable = 0 ; it should go to the Success layer and that's why I'm trying the java script idea to set that Results.ScorePoints variable (if 10 out of 10 are correct, everything works fine).