RNGeusEX,
Maybe I found a bug.
It happens when they choose the path of Yasuka's corruption. If you come to Yasuka's room at night, turn on (or turn off and on) the lamp, and then click on Yasuka, the plot will jump to the script when you need to come to her room and do actions with the lamp to check Yasuka's health. Thus, you can hang in a time loop, even after the plot is completely completed.
At the same time, running this script ahead of time will not allow opening in the Video Gallery with the arrival of Yasuka in the room to the Main character, because the triggered event will not be enough when Yasuka comes to the sleeping hero. Will be "available" only the part where the hero does not sleep.