Forum Discussion
Zustand in Abhängigkeit des Quizergebnisses
- 8 months ago
The default value of a variable is listed in Variables window. You can also check the current value of a variable by inserting a variable reference.
Storyline 360: Working with Variables | Articulate - Community
Google translation of the original post:
I have a quiz slide in the form of 12 tiles in the storyline. Behind each tile is a question (jumping to the other slide works). If the question is answered correctly or incorrectly, the user is taken back to the overview slide with the tiles. Now I want the state on the slide with the tiles to change to green (correct) or red (incorrect).
To do this, I created a variable on the quiz slide that is linked to the "correct" level. In my overview with the tiles, I assigned the state change to the respective rectangle depending on the result, but it doesn't work.
Does anyone have another suggestion for me?
As I understand it, you adjust a variable on each question to track whether the response was correct or incorrect. You want to use that variable to change the state of the corresponding tile when the user returns to main slide. But that's not working.
What's the "when" in the triggers that change the state?
A common problem is using "when variable changes" in a trigger. That only works when the change happens on the same slide as the trigger. Thus, if your variable changes on the question slide, the main slide doesn't "see" that happen. So "when the variable changes" triggers won't run.
Instead, use triggers that change the state to "correct" or "incorrect" when the timeline of the main slide starts, with the condition based on the variable.
If that's not the problem, I suggest you upload the Storyline 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.
Google translation of reply:
So wie ich es verstehe, passen Sie bei jeder Frage eine Variable an, um zu verfolgen, ob die Antwort richtig oder falsch war. Sie möchten diese Variable verwenden, um den Status der entsprechenden Kachel zu ändern, wenn der Benutzer zur Hauptfolie zurückkehrt. Aber das funktioniert nicht.
Was ist das „Wann“ in den Triggern, die den Status ändern?
Ein häufiges Problem ist die Verwendung von „Wenn sich die Variable ändert“ in einem Trigger. Das funktioniert nur, wenn die Änderung auf derselben Folie wie der Trigger erfolgt. Wenn sich also Ihre Variable auf der Fragenfolie ändert, „sieht“ die Hauptfolie das nicht. Trigger vom Typ „Wenn sich die Variable ändert“ werden also nicht ausgeführt.
Verwenden Sie stattdessen Trigger, die den Status in „Richtig“ oder „Falsch“ ändern, wenn die Zeitleiste der Hauptfolie startet, wobei die Bedingung auf der Variable basiert.
Wenn das nicht das Problem ist, schlage ich vor, dass Sie die Storyline-Datei hochladen. Hier sind die Best Practices dafür:
- Fügen Sie nur Folien ein, die mit dem Problem in Zusammenhang stehen.
- Stellen Sie sicher, dass Objekte, Ebenen, Bewegungspfade und Variablen aussagekräftige Namen haben.
- Wenn proprietärer Inhalt vorhanden ist, ersetzen oder löschen Sie ihn. Ersetzen Sie beispielsweise proprietären Text durch den Text „ipsum lorem“.