Variables Criss-Crossed

May 13, 2015

Hi!  I am working to learn how to use variables to create more engaging interactions.  So I have attached the file below and will now try to explain my issue.  So, in scene 2, I have decided to give my learner some very basic true/false questions to answer.  I they answer correctly, my character, Alice, will begin to sit up from her slouched position, Pain-O-Meter score will lower, and the visual pain-o-meter will decrease.  I also have triggers set to provide feedback when they select their answer.  My focus is learning to use variables and not really on the content at the moment.

My Pain-O-Meter variable is working just fine, but I tried to set conditions for Alice to move and the red can to decrease because a learner might get the first answer wrong and the second answer correct.  It's not working properly and I am not sure what I have done or need to do.  

I would be deeply grateful if someone could look it over and help me make all of this work at the same time. :)

Niki

3 Replies
Gary Collins

Niki,

You were sort of on the right track. I have modified your file and will explain what I have done below.

The way you have it setup you need to check for all the possible values that the pain meter can be for when they get it correct or incorrect.

For example:

Lets say they get to Q2.

  • If Q1 was correct the pain meter will be 7 (subtracted 2 for correct)
  • If Q1 incorrect the pain meter will be 9 still

You did this correctly, but moving onto further questions these values will increase. See chart.

For your 4th question you only subtract 1 from the pain meter. So, in doing so the possible values doubles because we don't know what they may have gotten wrong before that.

On the last question we need to subtract 2 so that the pain meter will get down to 0 if they get them all correct.

So, for each possible value of the pain meter we need to setup a trigger to change 'Alice' and the 'Red Cylinder' to show the pain. So, there are 2 triggers needed for each value.

I have also modified the Congrats layer that shows at the end. Originally you had that layer showing Alice in a 0 pain state. But if the user got some or all the questions wrong Alice would still be in pain. 

So for that I made sure the pain meter was still showing on that screen and added another text box and set them both to an initial state of hidden.

Now when the user gets to the Congrats screen there are 2 triggers:

  • If pain meter > 5 show 'Nice Try' text
  • If pain meter <= 5 show 'Congrats' text

Hope this helps.

Feel free to ask if you have any questions.

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