Selchar's Clock/Calendar HUD

So, in my game, I have a needs system implemented. I have all the common events set up for the different need's decay. Some will outright cause a game over but I wanted that when sleep is depleted, you literally pass out, fade to a black screen for a few seconds, and then you wake up in the same spot at say, 10AM the next day. I set most of it up and I have it set to do a script call for "next_day", but it doesn't come out right. How would I go about fixing it so that it runs properly? Below is the common event for sleep decay.

Spoiler
w2gg4WX.jpg

 

Also, how can I change the trigger key (currently SHIFT) to the letter "T"? I figured I would just ask both questions at once to avoid posting rapid-fire. I had looked for a setting in the script somewhere, but nothing I altered made it work correctly in that regard.
Iam not sure but i beliefe to have read somewhere that after Player Teleport the Common Event will start again from beginning.

Insert 2 Textboxes, one at the beginning and one after the first Teleport. Each must have written something different on it.

Than Test if its restarting or not.
What is not working?

Common event is not happening?

Maybe add some debug-purpose Show Texts to see was the loop entered and was the conditional branch entered.

And did you make the next_day method, or it has come with the script?

About the T problem, you would need a custom script for it, because by default there are no keyboard trigger buttons other than:

CTRL, Shift, A, S, Q, W, Z, X, C, V, Enter, Space and arrows.

Maybe Zalerinian's Keyboard Manager can help you?

Original thread: https://forums.rpgmakerweb.com/threads/selchars-clock-calendar-hud.45190/