Displaying a negative score.

Mar 07, 2013

Hi,

I'm creating a course that asks questions throughout. The answers either add to, do nothing, or subtract from your score. This all seems to be working fine with variables, but I'm unable to display a negative score when I have a total below zero. Rather than -1000, it simply displays 1000 even though the variable recognizes that it's a negative score (evidenced by triggers I have on the slide).

Any suggestions?

Thanks,

Nathan

7 Replies
Alexandros Anoyatis

Hi Nathan and welcome to Heroes.

A quick fix would be to add an extra state to your %variable% (say minus), This state should involve a - (inserted by you) before the %variable% reference. Then add a trigger like : Change state of If variable to minus if variable is less than 0.

However, please note that I could not reproduce that on my end (i.e. negative score was displayed as expected).

Hope this helps,
Alex

Garth Yorko

I did a quick mock up for you it is attached.

I have one variable, %Score%.  There are two buttons that either add to the variable or subtract from it.  One button does nothing.  If the user selects one of the button, then all button become disabled for that slide.

I added a text box with %score% in it so that you can see the results.  It does work as you want it to.

Take a look.

Cheng Li

Hi Nathan,

When you subtracted a number from the variable, did you fill in a negative number in the trigger panel instead of a positive one? Because if you did fill in a negative number, Storyline treated the equation like this "-(-10)", which is equal to "+10". That's why negative numbers are not displayed. In one word, in the subtraction trigger, you have to fill in a positive number in order to make the equation work.

Cheng 

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