Can You Read "Correct" From a Variable in a Question Section?

Feb 04, 2020

I just basically want to do what the title says. Right now, my Storyline file is reading all of its text data from an XML file and storing it in a text variable to be displayed. I know I can fill in the question, and all of the text fields associated with the question, with a text variable (by using %variable%). But, I have no idea how/if I can make the correct field a variable as well. If anyone can point me in the right direction, it would be greatly appreciated!

(pic to clarify exactly what I'm trying to read in from a variable)

 

3 Replies
Alex MacLeod

The end goal is to read in what answer is correct from an external file. I've already made all of the code to put the data into storyline variables, now I just want to know if there's a way to use a variable to set which answer in a multiple choice question is correct.

And if you can't directly use a variable with the correct field, is there a trigger that can change which answer in a question is correct?

This discussion is closed. You can start a new discussion or contact Articulate Support.