Feedback depening on reaction time. Time estimation task

Hello,
im beginner and i would like to create experiment where participant estimate time of 1200 ms following a visual stimulus (white square) and press a key at correct time (CNV paradigm). Responses between 1000 and 1400 ms will be accepted as correct. Between 400 and 1000 ms after cue - early responses. Between 1400 and 2000 ms - late answers. In the case of correct trials, a green happy smiley and the word “correct” were presented. In the case of early/late trial a red sad smiley and the word “too early”/“too late” will be presented. The words “did not react” display if no response within 3000 ms after stimulus onset. Addiionally the intertrial interval randomize between 800 and 2200 ms. I got all pics. I dont know how to write feedback code which depend on reaction time. Example in attachment :slight_smile:


Thank you much in advance.
OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): v3.2.4