Copy link to clipboard
Copied
Good morning, everyone-
I'm working on an unguided simulation assessment. In this assessment, I have a highlight box and click box over the correct answer, but I only want the highlight box to show after 2 attempts.
I have written a script that isn't working (attached) and I'm hoping that someone can tell me how to fix any mistakes. Let me define some of the items first:
Hint_1: highlight box
v_attempt: variable set at 0 initially
Additionally, the slide is currently set to infinite attempts, but I also tried the same with 3 attempts with no success.
If possible, I would also like to have more than 2 attempts be marked as incorrect. This would mean, when the highlight box appears the user is also wrong.
Any help you be appreciated!
Another solution is the scenario 2 which I explained in this blog post:
Replay (slide) Button - Captivate blog
For a larger project that could be a better solution.
Copy link to clipboard
Copied
You are not on CP2017, which version do you use?
Which event is used to trigger this action? You have a click box over the correct answer, with how many attempts?
BTW: It is much easier to show the complete action by using the Preview butotn (first button, like an arrow, in the control panel top right).
Copy link to clipboard
Copied
Hi, Lilybiri-
Thank you for your response. I'm in Captivate 8. I have the slide set to execute the advance action script on slide entry.
Currently, the click box is set to infinite attempts because I would like the user to select the correct answer before continuing.
-Lauren
Copy link to clipboard
Copied
That will not work, that action is only executed when entering the slide, not when you have clicked outside of the click box.
Do you have multiple click boxes on that slide or only one? You need the event when they click outside of the click box. Although you have a Last Attempt event, that will only fire after the last attempt and is unusable. You could try this approacgh:
Copy link to clipboard
Copied
Thank you, Lilybiri-
I see where I was making a mistake. This seems like it would be a solution, but it is still not working for me. The issue is that my highlight box never appears. I've attached screenshots for your reference. The advanced actions are unchanged.
Copy link to clipboard
Copied
How did you test? I am always reluctant to have two interactive objects on top of each other which is the case here over the correct answer. Will you publish to HTML5 or to SWF? Did you test with Preview in Browser (F12 - SWF) or Preview HTML in Browser (F11)?
When testing add a text container with your user variable to see if it increments correctly.
Copy link to clipboard
Copied
I will publish to SWF and HTML5. I test in both and it doesn't work. I linked my variable to a text caption as you suggested and the issue is with the increment. The variable increments from 0 to 1, but does not go past 1. Any thoughts on why this could be happening?
Thank you- I appreciate it
Copy link to clipboard
Copied
That is the problem with having different images for one action (hence my suggestion for Preview button).
I thought you had a single decision, which would have been fine, but you seem to have two decisions. Try this one:
IF v_attempt is greater or equal to 2
Show Hint_1
ELSE
Increment v_attempt by 1
Copy link to clipboard
Copied
Great, I'm nearly there.
The fix you provided for my script is now having the highlight box appear after two incorrect clicks, so that is resolved. Now there's a new issue where the correct answer cannot be clicked to let the user advance to the next slide. The click box for the correct answer is located above all other objects, so it shouldn't be an issue with overlap.
Copy link to clipboard
Copied
That is what I feared... especially HMTL5 output is very sensitive to having interactive objects stacked. It may work after publishing but not sure. For WF it should work.
Another workaround is to have only the correct click box, with 1 attempt. Use the Last Attempt event to trigger the same action. But you'll have to re-enter the slide, to offer another attempt. Add a short dummy slide (0,1sec) before this slide. Add this command to the ELSE part:
Go to Previous Slide
Copy link to clipboard
Copied
Thank you. I see what you mean about output files. In my experience if it can break on publishing, it will. The fact that it isn't functioning properly on the preview isn't giving me much comfort haha
I also appreciate you offering other solutions. I'm sure that could work, but I'm worried about efficiency since I'm testing this on one part of what is a larger project.
Are there any other solutions/workarounds that you are aware of? I'm flexible when it comes to the solution's requirements or complexity.
Any suggestions would be appreciated. If not, then I'll implement your last solution. Thanks!
Copy link to clipboard
Copied
Another solution is the scenario 2 which I explained in this blog post:
Replay (slide) Button - Captivate blog
For a larger project that could be a better solution.
Copy link to clipboard
Copied
I'll look into this. Thanks for all of your help!
Copy link to clipboard
Copied
Is there an easier way to do this in Captivate 2017?
Copy link to clipboard
Copied
No, sorry.