Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Multiple correct responses

edited October 2017 in OpenSesame

Hi

Is it possible to use multiple values as correct responses for each cycle? I am building an experiment with touch screen but I could not find a way to do that.

Thanks.

Comments

  • Thank you Sebastiaan for your reply.
    In my case I need to collect the touch screen response rather than keyboard response right ? but I alrealy do not have any experience with that, could you tell please how to get this data?

    Thanks

  • Hi,

    The touch_response item does quite a few things, so re-implementing it completely in an inline_script is inconvenient. However, what you can do is change the correct value of the last-recorded response. The following script, which should be in the Run phase of an inline_script that immediately follows the touch_response, does that. (Note: This is a hack that directly accesses the internals of OpenSesame. But it does work.)

    # Define a list of correct responses
    correct_responses = 2, 3
    # And then alter the correct value of the last response. This is a hack!
    last_response = responses._responses[0]
    last_response.correct = last_response.response in correct_responses
    

    You can also define your correct responses in the loop table, in which case you would do something like:

    # Define a list of correct responses based on the loop table
    correct_responses = var.correct_response_1, var.correct_response_2
    

    Cheers!
    Sebastiaan

  • Thank you for your reply. I tried your suggested solutions but it is not working with my experiment, I checked the log file many variables such as correct, correct_new_touch_response and correct_response are "undefined". Do you know why?
    I am using OpenSesame 3.1.9 in Windows 10

    Thanks

  • Hi,

    Could you upload your experiment? Then I'll have a quick look at can check what is going on there.

    Thanks,

    Eduard

    Buy Me A Coffee

  • Thanks eduard for your reply. I have attached my experiment.

  • Hi,

    To get a working var.correctvariable. You have to change the line:

    correct_response = 2,3 to correct_response = [2,3]

    and add the line var.correct = last_response.correct at the end of the inline_script.

    Hope this helps,

    Eduard

    Buy Me A Coffee

  • Many thanks eduard, it is working fine now.

    I have a small issue, I could not find user's responses for each cycle. It was recorded under correct_new_touch_response column but now it shows "undefined" value. Do you know how can I fix that?

    Thanks

  • Hi,

    Does the variable response have the information yo need? I bet the data is somewhere, just look through your file and see whether you can find it.

    Eduard

    Buy Me A Coffee

  • Thanks eduard.

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games