Forum

Please note that you can subscribe to the individual forums. A subscription for news only covers the news.

How do you punish a delayed response if the computer is placed in sleep mode  

   RSS

0

Hi Everyone.. 

Thank you soo much for all your continued hard work Sven. You're amazing!!

I'm having a problem with programming a punishment for a delayed response by the sub. I want to tell them that they must report in 30 seconds for example. Once that time is up if they don't respond within 30 seconds they are punished. If they do they are not.  The below script works well except when the computer is placed in sleep mode once the initial flag has been set. Any suggestions would be greatly appreciated. 

[report-set flag-determinenextcheck]
setflag=determinenextcheck
message=set flag -determinenextcheck

;set flag and call in 30 sec
[flag-determinenextcheck]
mintime=00:00:30
mintimeprocedure=timeupmessage

[procedure-timeupmessage]
setflag=checktimeup30sec
message=Are you wearing it??
procedure=checktimeupstatus

[procedure-checktimeupstatus]
select=first
procedure=checktimeupstatus-OK
procedure=checktimeupstatus-late

[procedure-checktimeupstatus-OK]
removeflag=checktimeup30sec
procedure=returnhomecheckdone
if=checktimeup30sec

[flag-checktimeup30sec]
duration=00:00:30

[procedure-checktimeupstatus-late]
removeflag=checktimeup10min
select=random
message=Your late with your response!!

[procedure-returnhomecheckdone]
message= Well done!!

 

1 Answer
0

Thank you. Not much is happening at the moment, which can be seen in the response time for this reply.  😉 

The easiest way to do it is this: 

;set flag to check for max 30 sec
[flag-checkfor30sec]
maxtime=00:00:30
slowpenalty1=10
slowpenalty2=1

[procedure-timeupmessage]
setflag=checkfor30sec
message=Are you wearing it??
removeflag=checkfor30sec

If flag-checkfor30sec is on for more than 30 seconds, you will get punished with 10 points + an extra minute for each minute late. 

Sven

Share: