Need help with interaction
Jul 16, 2015
I am pretty new at building the logic for interactions and am stumped by this one. I am trying to create logic for the following.
On a single slide:
- There is a text entry field for which the correct response is a full stop.
- When they type the full stop in the text entry field they go to a layer telling them they have it right with a Continue button to go to the next slide.
- There is also a Next button in the player which is the wrong response. If they hit Next they go to a layer telling them they have it wrong and to try again. They return to the base layer.
- If they type any other key except the full stop in text entry field they go to the same layer as step 3 a layer telling them they have it wrong and to try again. They return to the base layer. Is there a variable for "any other key except the full stop" ?
Then I want the next slide to do the reverse, with the Next button correct and anything in the text field including the full stop, wrong.
Can anyone help?
8 Replies
Use a variable to help you:
Adjust variable IsCorrect to TRUE if user presses .
Set trigger: jump to layer Correct if IsCorrect = TRUE
Set next trigger: jump to layer Incorrect
The first trigger sets a variable if they press the right key.
The second jumps to one layer if the variable indicates they pressed the right key.
The third jumps to different layer if they press any other key
Sorry, you'll need to be more specific about how and where I make these entries. Baby steps please. Is there any more detailed training written on it?
I presume I am doing this on the base layer.
So far I have as follows. I've guessed most of it and, needless to say, I'm not getting the Incorrect layer displaying as soon as the wrong button is pressed.
No, you've done this well; just one small change, and I think it will work.
Move the TextEntry trigger above the show layer Nah trigger. The actual button press doesn't change TextEntry, so the Nah trigger doesn't notice it. When the Set trigger fires, then TextEntry is changed.
I don't seem to be able to change the order of the triggers. The up/down buttons are not live. The order of Slide Triggers, Text Entry triggers and Player triggers seems to be fixed. The only moves I can make are within the groups.
Christine,
Sorry, but it looks like I shot off my mouth before I completely understood the press key trigger. Storyline does not provide any method of using a keypress for a trigger, unless the right key is pressed. If the wrong key is pressed, the text box has to lose focus before anything is done.
So it looks like your options are:
1. Have the user type in the text box, and press TAB when they finish. Then you can assign the result to a variable and show layer Good if they press . or else show layer Nah.
2. Write a trigger for every possible keypress.
3. Give the user the choice to click an icon of the . key, or Next button, or something similar.
Sorry. Maybe it is worth a feature request.
OK, thanks for trying. It is workable as it is because the system does nothing if they do not type the full stop, so eventually they will press the Next button which which give them the Incorrect response and tell them to type the full stop. Pity though. I'm still experimenting to see how I can make any interaction competency based, and this structure seemed to be one option - at least for something simple.
Hi Christine,
I'm glad Walt was able to walk through this with you. In regards to your initial question about a trigger or variable for "any other key except the.." its not currently possible unless you were to set up a trigger for any other possible combination. It sounds like a good idea to share in the form of a feature request.
This discussion is closed. You can start a new discussion or contact Articulate Support.