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
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
Thanks Alex!
That's a great suggestion. I was looking at creating a new layer and state change to show that, but this is much better.
Nathan
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.
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
Thanks for your input here Cheng
I've noticed that negative values do not appear in certain typefaces. In my case (Univers..) and that maybe why Nathan can not see.
Try changing your font back to Articulate and test. Thx Alex for letting me know that Storyline math is working, it's just rendering/ presentation.
This discussion is closed. You can start a new discussion or contact Articulate Support.