Howdy, Stranger!

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

Supported by

Mouse tracking issue

edited November 2016 in OpenSesame

Hi there,

I am currently programming an experiment implementing a modified version of the dictator game and participants are asked to play against the computer. I'm using the Mouse trap plugins to collect responses. So far so good, everything is working as expected with one small (but important) exception:

On each trial, the participant is presented with two response buttons displaying 2 values (e.g., 8 & 10 or 10 & 10). For every value combinations, both buttons are active and working properly. But, when both buttons are displaying the same value (e.g., 10 & 10), the left button is always inactive and it is impossible to click on it. I suspect that I missed something (probably obvious) here.

Any hints ?

All the best,

CL

Comments

  • edited November 2016

    Hi CL,

    sounds like a cool experiment!

    I think I know the source of the problem: when you specify the name of the button that is logged, I assume that you are using the value that is displayed for that button (which is what we usually recommend to do). However, in case that both buttons show exactly the same value, this will lead to problems because mousetrap cannot differentiate between the buttons anymore.

    So, in your special case it might make sense to set name to name=OptionA and name=OptionB and add a little bit of Python code afterwards (using the run phase of an inline_script inserted directly afterwards) to save the values, e.g.:

    if var.response=="OptionA":
        var.responseamount = var.amounta
    else:
        var.responseamount = var.amountb
    

    (assuming that the values you displayed are stored in the variables amounta and amountb)

    Best,

    Pascal

    PS: I will think about whether there is a general solution for that within the mousetrap plugin, so this can be solved differently in the future.

  • Dear Pascal,

    Many thanks for the quick answer ! I just gave it a go and this solved the issue !!Your explanations made a lot of sense and this is a quick and straigthforward solution !

    Also, based on this issue, I might have another question (if you don't mind) for adaptive feedbacks after each trial.

    The idea is as follow:

    1 - The computer has 2 options: 8 & 10. It will always go for pre-specified values (potentially the higher one).
    2- The participant has 2 options: Option 1 that is the same as the computer (i.e., 10) and option 2 that is a different one (if the computer's choice is 10, the second option will range from 5 to 15). The participant is aware of the computer's choice.
    3- If participant choose the same as the computer, they both receive the selected amount. If participant choose Option 2, he will receive the amount and the computer receives 0.

    I'm struggling to create a feedback after the 'get_response' object that can show both players gain on a trial per trial basis. I'm guessing that for this, I'd have to create an 'If' statement using the new variables you created, right ?

    Best,

    Clément

  • Dear Clément,

    glad that it worked!

    Regarding the adaptive feedback: The procedure you proposed sounds good to me and you could indeed extend the code I proposed above, e.g., in this direction:

    if var.response=="OptionA":
        var.responseamount = var.amounta
    else:
        var.responseamount = var.amountb
    
    var.participantpayout = var.responseamount 
    
    if var.responseamount == var.computeramount:
        var.computerpayout = var.computeramount
    else:
        var.computerpayout = 0
    
    

    This would create payout variables in a way you described that you could display on a subsequent feedback item. (Note that the script could be much more parsimonious, but I created an extensive script for clarity.)

    Best,

    Pascal

  • This is great, Pascal ! Thank you very much !

    After creating a 'computeramount' variable in the trial loop and including the newly created variable in a feedback item, the payout feedback seems to work perfectly fine !

    Your help was greatly appreciated !

    Clément

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