This is the codes about Balloon Analogue Risk Task which can be deployed in Qualtrics.
What you need to do:
-
Adding the html codes into Qualtrics. You can do this clicking the "HTML View" when you edit questions in Qualtrics.
-
Adding Javascript codes in Qualtrics. You can refer to the Qualtrics Support to know how to add javascript, here is the link: https://www.qualtrics.com/support/survey-platform/survey-module/question-options/add-javascript/
3.Upload the Balloon image to your Qualtrics library, and change the link address of the picture. After you upload the image successfully, you could find the link in your library.
4.In the "survey flow", add "Set Embedded Data" to save the data. The codes are as below:
exploded =
5.Run the game and check the data.
6.Please notice that this task in not completeley the same as the seminal work, which was published by Lejuez and Read et al. in 2002, because when the balloon will burst in this task is set randomly, but in the seminal paper, the time when balloon is exploded is probabilistic. So this version is not perfect yet. If you are intertesd, you can work on this version to make a probabilistic one.