Hi! I'm developing a game that keeps score. It adds 1 when they get the answer correct, and subtracts 1 if they get answer wrong. However, I would like the game to stop, show the fail layer, when they have missed 5. There are 18 questions all together.
Would you be able to share your file so we can see the set up? You may be able to add an additional variable to count the Wrong variable and show a layer when it hits 5.
Thank you! I'm now thinking since I have 18 acronyms they click on in this game, that if they answer 12 correctly they should pass. Thoughts? Thank you!
You could add a new variable right/wrong as numbers default to 0. Have them add 1 to each based on the selection box they choose. Then have the failure layer appear when Wrong = 5 or Right = 12 when they click the continue buttons on each layer.
I will put something together in a your file and post it on here in a bit.
Attached is a file. I added 2 variables, RightAnswer, and WrongAnswer. For each answer check box, it is triggered to add 1 to one of these variables based on whether it is right or wrong. then added a trigger on the continue button to show Failure layer if WrongAnswer is =3, and show Congrats layer if RightAnswer is equal to 3, (I only added these variable triggers to the first 3, so you could change these numbers accordingly:)
With this file, If you get STK, CUV and ARC wrong the failure will appear, if you get them all right, the congrats will appear.
If you need them to get at least 5 wrong, you should be able to only add the trigger to show the layers on the continue button on the 5th question and beyond, since it seems they have to go in order with this game.
Hope this helps!
i am sure there are other ways to achieve this, and others may jump in with additional ideas.
You definitely could use the TotalScore Variable = 12 to show the Congrats layer. Just make sure in the trigger panel, the Adjust variable triggers are at the top of the list for each check box it is assigned to.
HI! another question.... Can I add a trigger so an email is sent to someone if the user does not score 12 or higher? This game will be added into a course which will have a test at the end so I don't think I can have the game score and the test results both submitted to the LMS.
You can add a trigger to send an email, but you would not be able to customize the email. There may be a way using Javascript, but I will have to defer to the community for that.
You would need to set each question layer to "reset to initial state" upon revisiting in the layer properties. This will remove the check mark and answer. Attached is a new file, I only updated the first 2 question layers.
22 Replies
Hello Debbie!
Would you be able to share your file so we can see the set up? You may be able to add an additional variable to count the Wrong variable and show a layer when it hits 5.
Thank you! I'm now thinking since I have 18 acronyms they click on in this game, that if they answer 12 correctly they should pass. Thoughts? Thank you!
Hello Debbie!
You could add a new variable right/wrong as numbers default to 0. Have them add 1 to each based on the selection box they choose. Then have the failure layer appear when Wrong = 5 or Right = 12 when they click the continue buttons on each layer.
I will put something together in a your file and post it on here in a bit.
Hi Debbie!
Attached is a file. I added 2 variables, RightAnswer, and WrongAnswer. For each answer check box, it is triggered to add 1 to one of these variables based on whether it is right or wrong. then added a trigger on the continue button to show Failure layer if WrongAnswer is =3, and show Congrats layer if RightAnswer is equal to 3, (I only added these variable triggers to the first 3, so you could change these numbers accordingly:)
With this file, If you get STK, CUV and ARC wrong the failure will appear, if you get them all right, the congrats will appear.
If you need them to get at least 5 wrong, you should be able to only add the trigger to show the layers on the continue button on the 5th question and beyond, since it seems they have to go in order with this game.
Hope this helps!
i am sure there are other ways to achieve this, and others may jump in with additional ideas.
Thank you! I will give it a try.
Hi! Can I add a trigger to say if TotalScore = 12 go to Congratulations layer?
Thanks!
Hi Debbie,
You definitely could use the TotalScore Variable = 12 to show the Congrats layer. Just make sure in the trigger panel, the Adjust variable triggers are at the top of the list for each check box it is assigned to.
HI! another question.... Can I add a trigger so an email is sent to someone if the user does not score 12 or higher? This game will be added into a course which will have a test at the end so I don't think I can have the game score and the test results both submitted to the LMS.
Thanks!
Oops sorry I just saw the trigger for this. Thanks!
Can I customize this email that is sent?
Hello Debbie,
You can add a trigger to send an email, but you would not be able to customize the email. There may be a way using Javascript, but I will have to defer to the community for that.
Do you know if the email is generic or do I need to publish to HTML to test?
Using the send email trigger will pop up a blank email.
Do you know where I would find the area to use code to customize the email?
Hello Debbie,
I am not familiar with JavaScript, and it is also not supported, so I will have to leave this one open for other community members :)
thank you.
I was able to reset the totalscore variable if the user starts the game over, but the checkboxes still retain the checkmark. How do I reset this?
Hello Debbie,
Are these checkboxes in states? Can you re attach the current version of your file?
Yes. I was hoping I could add a trigger on the "replay" button on the fail page that would reset all.
Hello Debbie!
You would need to set each question layer to "reset to initial state" upon revisiting in the layer properties. This will remove the check mark and answer. Attached is a new file, I only updated the first 2 question layers.
Thank you again!!
No problem Debbie!
Glad to help.
This discussion is closed. You can start a new discussion or contact Articulate Support.