Forum Discussion

amandarauscher5's avatar
amandarauscher5
Community Member
3 months ago
Solved

Badge not appearing

Hello. I am creating a course with 3 modules (I refer to them as Scenarios in this course) that bubble up to a single dashboard that displays the learner's progress by way of the Scenario button appearing visited and also displaying the badge they earned from that scenario over top of it. I have been able to get the module icon to appear visited but I cannot get the appropriate badge to display properly. I've tried using variables centered around points earned from each module (ScenarioOnePts, ScenarioTwoPts, and ScenarioThreePts) and for whether the module slide was visited (Scenario1Visited = False until visited, etc).

The initial state for each badge on the dashboard is Hidden. My thoughts were to create triggers on the base layer of the dashboard so that when the learner returns to the dashboard, they would see the corresponding badge on the scenario they had already completed.

The image provided of the dashboard is showing only that the scenario looks visited. There should be a badge populating overtop of it.

 

Any and all guidance is appreciated!

  • amandarauscher5​: These are the triggers on the last slide in Scenario 1:

    Triggers run in order. So when the user clicks the button, the program jumps to the Dashboard slide. However, a trigger can't run if the program has already left the slide where the trigger is. That means the Scenario1Visited variable stays False. Thus, when the user returns to the Dashboard, the trigger condition that the variable = True isn't met. That's why the badge didn't show.

    FYI: Whenever you're using variables, especially across multiple slides, it's a good idea to insert temporary variable references. This lets you see whether each variable is changing as expected. When I did this in the attached file, I could see right away that the Scenario1Visited variable was still False after I finished the scenario. So I knew to look at the trigger that changes it to True.

    BTW, here's another trigger in your file: 

    The Resilience badge will never be changed to Normal using that trigger. When trigger conditions are connected with "and," the trigger will only run if all of the conditions are met. There's simply no way a variable can be multiple values at the same time. Conditions should be connected with "or" to indicate that the trigger should run if any of those conditions is met.

    And, in this case, it would be easier to use the condition "ScenarioOnePts 10" (instead of listing all of the potential scores that don't earn the regular badge). 

    There's another issue with that trigger: it's set to run when the timeline starts on the badge. It needs to run when the timeline starts on the slide.

    One more thing: You'll see in the attached file that I gave meaningful names to the badge pictures. I highly recommend giving meaningful names to all objects, variables, motion paths, and layers involved in interactions. That makes programming and troubleshooting much easier. That's why I mentioned in my previous reply that one should do this before uploading a .story file. 

7 Replies

  • The trigger is set to run when a variable changes. That would only work if the variable change occurs on that slide. If the variable changes on another slide (for example, at the end of a scenario), that trigger doesn't "see" it happen. 

    Instead, have the trigger run when the timeline starts on the slide, with the appropriate conditions. A "when timeline starts on this slide" trigger always runs (assuming any conditions are met), even if the Slide Properties are set to Resume saved state. 

  • Thank you, Judy! That definitely helps to know. So I adjusted my trigger to the attached. There are two different badges that could display depending on the score the learner earns.

    When I tried the scene again, I'm still not seeing the badge appear.

  • At this point, troubleshooting is just guessing without seeing all the programming. Someone might be able to solve the issue if you upload the .story file. Here are the best practices for doing that:  

    • Only include slides that are related to the problem. 
    • Be sure objects, layers, motion paths, and variables have meaningful names.
    • If there is proprietary content, replace or delete it. For example, replace proprietary text with “ipsum lorem” text. 
  • Thanks! I uploaded the applicable file here. 

    Also here is a little more context. For each scenario the learner can either earn the a specific badge to the theme of that scenario (scenario 1 is "Conflict Diffuser" scenario 2 is "Team Player" and scenario 3 is "Active Listener") or the badge titled "Resilience Pro" if they didn't guess all the correct responses throughout the scenario.

    In addition to the number variable "TotalPoints" which is tallied on the Dashboard 1.1 slide, each scenario's points are tallied individually with the number variable "ScenarioOnePts" and then so on and so forth for the other two scenarios. I was trying to use the individual scenario variable to help determine which badge would appear on the dashboard's scenario based off their earned badge. Both badges are on the dashboard with the initial state of "Hidden" and based on the value of that scenario's variable, one or the other badge should appear. I tried to add another T/F variable to indicate if the slide was visited, but that may extraneous.

    I'm very new to variable so I'm sure I may have made some things more complicated than they need to be.

  • amandarauscher5​: These are the triggers on the last slide in Scenario 1:

    Triggers run in order. So when the user clicks the button, the program jumps to the Dashboard slide. However, a trigger can't run if the program has already left the slide where the trigger is. That means the Scenario1Visited variable stays False. Thus, when the user returns to the Dashboard, the trigger condition that the variable = True isn't met. That's why the badge didn't show.

    FYI: Whenever you're using variables, especially across multiple slides, it's a good idea to insert temporary variable references. This lets you see whether each variable is changing as expected. When I did this in the attached file, I could see right away that the Scenario1Visited variable was still False after I finished the scenario. So I knew to look at the trigger that changes it to True.

    BTW, here's another trigger in your file: 

    The Resilience badge will never be changed to Normal using that trigger. When trigger conditions are connected with "and," the trigger will only run if all of the conditions are met. There's simply no way a variable can be multiple values at the same time. Conditions should be connected with "or" to indicate that the trigger should run if any of those conditions is met.

    And, in this case, it would be easier to use the condition "ScenarioOnePts 10" (instead of listing all of the potential scores that don't earn the regular badge). 

    There's another issue with that trigger: it's set to run when the timeline starts on the badge. It needs to run when the timeline starts on the slide.

    One more thing: You'll see in the attached file that I gave meaningful names to the badge pictures. I highly recommend giving meaningful names to all objects, variables, motion paths, and layers involved in interactions. That makes programming and troubleshooting much easier. That's why I mentioned in my previous reply that one should do this before uploading a .story file. 

    • JudyNollet's avatar
      JudyNollet
      Super Hero

      You're welcome! Pay it forward when you can. 😊