Actions not adding to variable correctly
April 18, 2013 12:00 AM
Hello,
I have created an activity in which 8 different comments appear and the learner has to either click the “acceptable” or unacceptable” button.
I have a variable called var_game_score. The initial value is 0. If they make the right selection, 2 points are added to the variable. If they make the wrong selection, 1 point is subtracted. They must get a total of 10 points to move on to the next page.
I have a text box called txt-score. After each selection, there is an action to change this text to the value of the variable. So, the score appears on the screen as they go through the activity.
OK, so here’s what’s happening. The score in the text box is adding/subtracting correctly. However, at the end of the activity, you get the “sorry you didn’t get enough points message” even if you get over 10 points. If get them all correct, you get the “you passed” message, but if you get 10-15 points you get the “you didn’t pass” message.
These are the actions on the button to complete the activity:
• On Click – Show – “txt-great-job” – IF var_game_score is greater than or equal to 10 – ELSE – Show group_more_practice.
• On Click – Show – “next_button” – IF var_game_score is greater than or equal to 10
I’m so confused because the score that appears on the screen is adding correctly, yet you get the “you didn’t pass” message even if you get enough points. Any ideas? Thanks!
Discussion (1)
Hello falcon44nkc! I'm guessing there's something going on with the conditions on the action... if you'd be willing to send me a copy of your title, I'd be happy to take a look! You're welcome to e-mail it to me (I believe my e-mail address is public on here), but if you're having trouble sending it to me just PM me and we'll figure something out!
Discussions have been disabled for this post
More From Charity
Completed Status Doesn't retain if return to course after completing
October 7, 2009 Reply 0 UpvotesCompleted Status Doesn't retain if return to course after completing
October 7, 2009 Reply 0 UpvotesCompleted Status Doesn't retain if return to course after completing
October 7, 2009 Reply 0 UpvotesCompleted Status Doesn't retain if return to course after completing
October 7, 2009 Reply 0 UpvotesCompleted Status Doesn't retain if return to course after completing
October 7, 2009 Reply 0 UpvotesCompleted Status Doesn't retain if return to course after completing
October 7, 2009 Reply 0 UpvotesCompleted Status Doesn't retain if return to course after completing
October 7, 2009 Reply 0 Upvotes