Manually setting score (Results.ScorePercent)

May 16, 2012

Hi,  I have a project where I need to set the score manually, but the javascript to set Results.ScorePercent is not working. Is this possible?

There were a few discussions in the beta about using javascript to manually set system variables such as Results.ScorePercent, but I can't find the details. I know there was a bug in one RC that caused problems with this.

Thanks,

Vispi.

25 Replies
Vispi Baria

BTW, the reason I want to set the score manually is because I need to implement a custom activity with custom scoring. I can then calculate the end percentage and set Results.ScorePercent to this value. Opens up so many possibilities!!

Anyone manage to do this? Or is this a read-only variable (hope not!!)?..

Question for the Articulate team I guess.....

Vispi.

Tim Buteyn

I don't know if access to this variable has been granted, but during the beta, I was not able to manipulate any of the built-in score variables. I too was trying to do some custom scoring manipulations (reduced point values if the user requests a hint - this can be seen in the Sales Orientation course). I was unable to accomplish this by modifying the native score variables. As a result, I had to ignore the built-in scoring and create a fully custom scoring structure for the entire course. I'm not sure if this access restriction was a bug or by design, but access to those variables would be great!

Tim Buteyn

Yeah Phil, I understand if they are restricting access by design (although I'd still like to manipulate those variables) but if that is the case, they should then be removed from the appropriate trigger drop-down boxes. It was the fact that I could select those variables as I could any other variable that made it seem like a bug.

Steve Flowers

I was able to manipulate these values in an early RC. I might still be able to open the project and copy / paste the trigger. You can, however, grab a value FROM that built-in variable to push into your own variable. I'm pretty sure it would also be trivial to force the score through a Javascript trigger.

I'd love to have control over this variable as well. This would allow folks to average quiz scores for an aggregate value using other results slides.

Sasha Scott

Thanks Steve, it's heartening that I'm not just missing something that everyone else already knows but hasn't told anyone...

I think my next project should be to hire someone to create a Macromedia Director Xtra to publish all sprites, sprite properties and associated lingo code to HTML5 - it might be a case of going 10 years backwards to get 1 year ahead of everyone lol

Steve Flowers

Ha! I've got some really old Lingo around here somewhere. More Flash stuff than anything else but haven't been happy with the conversions.

Have been increasingly looking at HTML5 native outputs and tools, including hand coded stuff. I really like this animation library for compatibility with older browsers as well as HTML5 stack properties:

http://www.greensock.com/gsap-js/

Berno van Soest

Steve,

Is SL still in your toolkit or are you considering other authoring environments?

One of my main concerns with authoring tools through the decades (Toolbook, Authoware, SL) that they are closed.

WYSIWYG environments are great but I love it when you can just Notepad an html, js or css file.

That being said I still think SL is one of the best tools I've worked with. 

Regards, Berno.

Steve Flowers

Yeah, SL is still in my toolkit I use it almost every day but, like you, I think the route of closed tools and compiled / obfuscated outputs is mostly not as convenient as it could be. Even tools like Lectora that output HTML aren't necessarily that clean and editable after publish. I get that some kind of player framework needs to be in place to make things consistent but I think that player framework should work on top of the markup, not underneath it.

We're also kind of stuck in the single pattern of output most folks expect in an eLearning package. The PowerPoint style canvas area wrapped in a c-shell navigation template is the most common. I want to have a bit more flexibility to build things like single-page scrollable layouts that can shift or expand based on user actions. No tools support this right now so I'm starting to build stuff from scratch (or near scratch using frameworks). This accommodates a broader array of output targets including task support or other isolated topic support that isn't as helpful when divided into separate screen views.

I'm hoping once we start to see more adaptive / responsive packages, a tool will appear to make these easier to build for folks that don't want to monkey with markup, css, and javascript to get it done. Can't hurt to have another tool in the toolkit:)

Steve Flowers

Hi Vispi, 

When included as a Web object, you can include the library but the timeline of the animations doesn't interact with the SL player timeline. Cool thing about the library is it will work pretty well on both Flash based and HTML5 based outputs. Takes a bit more know-how to get working but I think it's a cool option to have

Leslie McKerchie

Hello J!

We want every feature in our software to work well. With that goal in mind, we've decided not to document Storyline system variables that could be accessed via JavaScript triggers. 

Storyline isn't currently designed to expose system variables for user interaction. As a result, JavaScript triggers that reference them could interfere with course playback. 

We value your feedback and want to better understand your needs so we can build even better software. Help us plan for the future by sending us your feature requests with specific system variables you'd like to see and examples of how they could be used.

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