User Tools

Site Tools


tasks:camdiff_section_for_testing
Title:camdiff section for testing
Sex: Female T Male T Trans T
Require:
Limits:
;trying to get camdiff section of detention task to work...
;Code shamelessly stolen and adapted from Snippet_Movement_Detection by Chissoku
;
image:taskimg/teacher7.jpg
show:You're going to kneel on the floor and hold your arms high above your head. You can stay there and think about what a naughty student you have been.
button:Yes, Miss.
show:As before, the punishment will start and stop at the sound of the bell. I will give you some time to get into position, but once the first bell sounds, you are not to move a muscle until you hear the second bell. Is that clear?
button:Yes, Miss.
show:Good. Now get on your knees. And make sure I get a good view of you. I want to see those arms raised up as high as you can.
button:Kneeling now, Miss.
show:<Kneel on the floor with your hands raised high above your head.>
wait:20
sound:bell.wav
setupdiff:
settemp2:0
loop:12
  ;How long should the script wait before starting the next loop
  wait:10
  camdiff:
  if:(TEMP1 > TEMP2)
    settemp2:TEMP1
  fi:
  ;
  if:(LOOPVAR==4)
    ;*** CAM ***
    show:No moving!
  fi:
  ;
  if:(LOOPVAR==8)
    ;*** CAM ***
    show:Keep those hands up!
  fi:
  ;
  ;
endloop:
;
if:(TEMP2>5)
  show:You moved! It looks as though I will have to punish you further...
  button:Yes, Miss. Sorry, Miss.
fi:
;
if:(TEMP2<=5)
  show:Ok, that's enough. I hope you have learnt your lesson.
  button:Yes, Miss.
fi:
;
;
tasks/camdiff_section_for_testing.txt · Last modified: 2018/04/11 21:52 (external edit)