Small update on the 24/7 script.
I changed the structure of the Interrupt 24-7 because it was wrong. So I changed from this:
Code: Select all
(Monday)
@NullResponse @RapidCodeOn
@NullResponse @NotFlag(24-7_number_of_sessions_set) @SetFlag(24-7_number_of_sessions_set) @SetVar[24-7_number_of_sessions]=[#Random(#Var[24-7_min_number_of_sessions], #Var[24-7_max_number_of_sessions])]
@NullResponse @Flag(24-7_work_on_Tuesday, 24-7_NO_sessions_during_sleep) @CheckDate(24-7_go_to_sleep_working_day, Stop session) @SetVar[24-7_time_before_going_to_sleep]=[#DateDifference(24-7_go_to_sleep_working_day, minutes)]
@NullResponse @Flag(24-7_work_on_Tuesday, 24-7_NO_sessions_during_sleep) @Variable[24-7_time_before_going_to_sleep]<[0] @ChangeVar[24-7_time_before_going_to_sleep]=[24-7_time_before_going_to_sleep]*[-1]
@NullResponse @Flag(24-7_work_on_Tuesday, 24-7_NO_sessions_during_sleep) @If[24-7_time_before_going_to_sleep]>[24-7_max_session_length]Then(Start session)
@NullResponse @NotFlag(24-7_work_on_Tuesday) @Flag(24-7_NO_sessions_during_sleep) @CheckDate(24-7_go_to_sleep_not_working_day, Stop session) @SetVar[24-7_time_before_going_to_sleep]=[#DateDifference(24-7_go_to_sleep_not_working_day, minutes)]
@NullResponse @NotFlag(24-7_work_on_Tuesday) @Flag(24-7_NO_sessions_during_sleep) @Variable[24-7_time_before_going_to_sleep]<[0] @ChangeVar[24-7_time_before_going_to_sleep]=[24-7_time_before_going_to_sleep]*[-1]
@NullResponse @NotFlag(24-7_work_on_Tuesday) @Flag(24-7_NO_sessions_during_sleep) @If[24-7_time_before_going_to_sleep]>[24-7_max_session_length]Then(Start session)
@NullResponse @Goto(Start session)
@NullResponse @RapidCodeOff
to this:
Code: Select all
(Monday)
@NullResponse @RapidCodeOn
@NullResponse @Flag(24-7_different_range, 24-7_work_on_monday) @NotFlag(24-7_monday_number_of_sessions_set) @SetFlag(24-7_monday_number_of_sessions_set) @DeleteFlag(24-7_tuesday_number_of_sessions_set) @SetVar[24-7_number_of_sessions]=[#Random(#Var[24-7_min_number_of_sessions_working_day], #Var[24-7_max_number_of_sessions_working_day])]
@NullResponse @Flag(24-7_different_range) @NotFlag(24-7_monday_number_of_sessions_set, 24-7_work_on_monday) @SetFlag(24-7_monday_number_of_sessions_set) @DeleteFlag(24-7_tuesday_number_of_sessions_set) @SetVar[24-7_number_of_sessions]=[#Random(#Var[24-7_min_number_of_sessions_not_working_day], #Var[24-7_max_number_of_sessions_not_working_day])]
@NullResponse @NotFlag(24-7_different_range, 24-7_monday_number_of_sessions_set) @SetFlag(24-7_monday_number_of_sessions_set) @DeleteFlag(24-7_tuesday_number_of_sessions_set) @SetVar[24-7_number_of_sessions]=[#Random(#Var[24-7_min_number_of_sessions], #Var[24-7_max_number_of_sessions])]
@NullResponse @Flag(24-7_work_on_monday) @If[#DateDifference(24-7_go_to_work,minutes)]>=[0]And[#DateDifference(24-7_come_home,minutes)]<=[0]Then(Monday_Sub is at work)
@NullResponse @Flag(24-7_work_on_monday) @If[#DateDifference(24-7_go_to_work,minutes)]<[0]Or[#DateDifference(24-7_come_home,minutes)]>[0]Then(Monday_Sub is at home)
@NullResponse @NotFlag(24-7_work_on_monday) @Goto(Monday_Sub is at home)
@NullResponse @RapidCodeOff
(Monday_Sub is at work)
@NullResponse @RapidCodeOn
@NullResponse @SetVar[24-7_time_until_sub_gets_home]=[#DateDifference(24-7_come_home,minutes)]
@NullResponse @Variable[24-7_time_until_sub_gets_home]<[0] @ChangeVar[24-7_time_until_sub_gets_home]=[24-7_time_until_sub_gets_home]*[-1]
@NullResponse @Wait(#Var[24-7_time_until_sub_gets_home] minutes)
@NullResponse @DeleteVar[24-7_time_until_sub_gets_home] @Goto(Find day of the week)
@NullResponse @RapidCodeOff
(Monday_Sub is at home)
@NullResponse @RapidCodeOn
@NullResponse @Flag(24-7_work_on_monday, 24-7_work_on_tuesday) @If[#DateDifference(24-7_wake_up_working_day,minutes)]<=[0]Or[#DateDifference(24-7_go_to_sleep_working_day,minutes)]>=[0]Then(Monday_Sub is sleeping)
@NullResponse @NotFlag(24-7_work_on_monday, 24-7_work_on_tuesday) @If[#DateDifference(24-7_wake_up_not_working_day,minutes)]<=[0]Or[#DateDifference(24-7_go_to_sleep_not_working_day,minutes)]>=[0]Then(Monday_Sub is sleeping)
@NullResponse @Flag(24-7_work_on_monday) @NotFlag(24-7_work_on_tuesday) @If[#DateDifference(24-7_wake_up_working_day,minutes)]<=[0]Or[24-7_go_to_sleep_not_working_day,minutes]>=[0]Then(Monday_Sub is sleeping)
@NullResponse @Flag(24-7_work_on_tuesday) @NotFlag(24-7_work_on_monday) @If[#DateDifference(24-7_wake_up_not_working_day,minutes)]<=[0]Or[#DateDifference(24-7_go_to_sleep_working_day,minutes)]>=[0]Then(Monday_Sub is sleeping)
@NullResponse @Goto(Monday_Sub is awake)
@NullResponse @RapidCodeOff
(Monday_Sub is sleeping)
@NullResponse @RapidCodeOn
@NullResponse @NotFlag(24-7_NO_sessions_during_sleep) @Goto(Start session)
@NullResponse @Flag(24-7_work_on_tuesday) @SetVar[24-7_time_until_sub_awakes]=[#DateDifference(24-7_wake_up_working_day,minutes)]
@NullResponse @NotFlag(24-7_work_on_tuesday) @SetVar[24-7_time_until_sub_awakes]=[#DateDifference(24-7_wake_up_not_working_day,minutes)]
@NullResponse @Variable[24-7_time_until_sub_awakes]<[0] @ChangeVar[24-7_time_until_sub_awakes]=[24-7_time_until_sub_awakes]*[-1]
@NullResponse @Wait(#Var[24-7_time_until_sub_awakes] minutes)
@NullResponse @DeleteVar[24-7_time_until_sub_awakes] @Goto(Find day of the week)
@NullResponse @RapidCodeOff
(Monday_Sub is awake)
@NullResponse @RapidCodeOn
@NullResponse @NotFlag(24-7_NO_sessions_during_sleep) @Goto(Start session)
@NullResponse @Flag(24-7_work_on_monday) @Variable[#DateDifference(24-7_go_to_work,minutes)]<=[0] @SetVar[24-7_time_before_going_to_work]=[#DateDifference(24-7_go_to_work,minutes)]
@NullResponse @Flag(24-7_work_on_monday) @Variable[#DateDifference(24-7_go_to_work,minutes)]<=[0] @ChangeVar[24-7_time_before_going_to_work]=[24-7_time_before_going_to_work]*[-1]
@NullResponse @Flag(24-7_work_on_monday) @If[24-7_time_before_going_to_work]>=[24-7_max_session_length]Then(Start session)
@NullResponse @Flag(24-7_work_on_monday) @Variable[24-7_time_before_going_to_work]>=[24-7_min_session_length]And[24-7_time_before_going_to_work]<=[24-7_maximum_interval] @SetFlag(Reduced session) @Goto(Start session)
@NullResponse @Flag(24-7_work_on_tuesday, 24-7_NO_sessions_during_sleep) @If[#DateDifference(24-7_go_to_sleep_working_day,minutes)]>=[24-7_maximum_interval]Then(Start session)
@NullResponse @NotFlag(24-7_work_on_tuesday) @Flag(24-7_NO_sessions_during_sleep) @If[#DateDifference(24-7_go_to_sleep_not_working_day,minutes)]>=[24-7_maximum_interval]Then(Start session)
@NullResponse @Flag(24-7_work_on_tuesday, 24-7_NO_sessions_during_sleep) @Variable[#DateDifference(24-7_go_to_sleep_working_day,minutes)]>=[24-7_min_session_length]And[#DateDifference(24-7_go_to_sleep_working_day,minutes)]<=[24-7_max_session_length] @SetFlag(Reduced session) @Goto(Start session)
@NullResponse @NotFlag(24-7_work_on_tuesday) @Flag(24-7_NO_sessions_during_sleep) @If[#DateDifference(24-7_go_to_sleep_not_working_day,minutes)]>=[24-7_min_session_length]And[#DateDifference(24-7_go_to_sleep_working_day,minutes)]<=[24-7_max_session_length] @SetFlag(Reduced session) @Goto(Start session)
@NullResponse @RapidCodeOff
The difference in the new version is that now your Mistress will now if you're at work or at home, if you're sleeping or if you're awake and if you're going to work or to sleep, while previously this didn't happen.
I also added the possibility to set a different range for the number of sessions per day depending on if you have to work on that day or you're at home all day. This way you can play more sessions on weekend for example.
Since with this version of the script I'm working
against the logic of TeaseAI(you have to leave your pc on 24/7 with TeaseAI Always on, TeaseAI will never end the session forcing you to delete the temporary flags manually to avoid bugs) I'm thinking to create another version to work
with TeaseAI. The difference is that with this new version will be that you don't have to leave your pc on all the time and TeaseAI will be able to end the session and you won't have to delete the temporary flags at the "end" of the session. With this version you will have to check if it's time to start a new session while previously your Mistress called you when it was time to start a new session.
Bye!
