slide activity log?
Jan 12, 2017
By
Bruce French
I'm not sure how to explain this properly so bear with me a moment. This question page I have has a whole ton of triggers and variables and and/ifs in it. It's behaving mostly properly but one part is showing correct answers when it should be showing as incorrect.
So is there like some kind of log I can look at to see what it's going through and what has triggered what changes? If that makes sense. I've inspected the triggers a few times and as far as I can tell its ok(its obviously not) It seems like the state is changing to correct as long as something is in the box, kind of.
If needed I'll try and isolate the question so you fine folks can have a look.
/edit issue isolated on attached file
11 Replies
A really powerful troubleshooting tool is the reference tool. Create a textbox, click on Insert, then Reference. It will allow you to choose a variable name. In design, it looks like %VariableName%, but in play or preview, it shows the contents of the variable. You can use it to observe the contents and changes of variables. If you are concerned about states, copy the trigger in question, paste it right after itself, and change the copy to change a variable instead of changing the state. That way you can trace the logic and activity. If the variable changes, the activity is happening, but something is wrong with the state. If it doesn't change, the logic is faulty, or the activity doesn't happen.
BTW, you can just type the name of the variable (surrounded by %), if you know it.
I tried that and all it does is replicate what i put in text box (they're text box variable rather than counters if that matters). It doesnt tell me specifically what is triggering the state change, which is what has got me scratching my head.
ok, heres the issue isolated. Basically put anything in the boxes and it tell you its right. leave them blank it'll tell you they're wrong and put numbers in all boxes and it'll say wrong
It's on pressing the check button (named check2) I've gone through the triggers to make sure there's no != where it should be == and all seems well with that. Nothing else that I can see should be effecting those boxes. (the state change is on a regular shape behind the no fill text entry btw)
Storyline is not set up to handle a combination of OR with AND. You will have to break this trigger up two triggers. Write one to set a variable if any of the ORs is true, then a second trigger to change the shape for the ANDs, if all of them are True.
Im not quite sure I know what you mean.
So if i split them and do a trigger that changes the number box if its one of the right numbers using OR, and then a separate trigger to do the letter boxes if they're all right using ANDs? leaving both aspects independent of each other really
Something like:
Adjust TempVariable to True when user clicks check2
Adjust TempVariable to False when user clicks check2 if Q10CNumber != 16 OR Q10CNumber != 36 OR Q10CNumber != 64
Change state of 10Cnumback to incorrect when user clicks check2 if TempVariable = False AND Q10Cprop1 != A, etc
They aren't independent because the two triggers are executed together. The second trigger merely does all the OR checking and passes its results to the AND checking in a form it can use as as AND. Only the final trigger is allowed to change the state.
Right, i was trying something else which almost, but not quite fixed it. Ill give that a go tomorrow and see how it goes. Ill let you know.
I've tried that and its still strange. It seems to be flatout ignoring the conditions for some reason.
I've played with the triggers a bit but no matter what i put in %Q10number% it changes the state of the tempvar to false! Is there a problem inside this version of storyline or something or am i missing something really obvious.
I put a reference to it on the page too so I can see it start true and change to false if the number entered is 16 or AAA.
/edit- anyone know if any on the pre baked quizzing solutions can pull off what I'm trying to do?
<Slaps forehead> Don't know what I was thinking.
If Q10Cnumber is 16, it is not equal to 36, so will be false. Try using AND instead of OR.
/edit General rule of thumb: OR can only work with = (is equal) ; by its nature it can never work with != (not equal).
Oh me, oh my, I think you might have cracked it. You might not have a hero tag but you're my hero. Here, have a cookie (::), actually, have two (::)(::), Now to expand this across all the possible answers. Thanks again.
Looking back on it now, you can probably use all AND's and put everything back into one trigger. Sorry I sent you down a blind alley, but I'm glad you are back on track now.
Pass it on when you have a chance.
This discussion is closed. You can start a new discussion or contact Articulate Support.