Help with something so simple

I'm blocked with 2 problems:

1) I want to reset an event to it's original state after an ingame day has passed. I have set up a time system with minutes, hours and days (thanks to SRDude). So there's a shower in the bathroom. I want the event to go like this:
Take shower? Yes, no choices. When Yes apply "Clean" State. Self switch A ON, if you trigger the shower again it goes, "I already showered today". But when I go to sleep and trigger the shower again, it is still with the SelfSwith A ON so I can't go back to the other option. Can I make an event reset to original after a day has passed? I have tried

2) I want to change the character's walking speed via Status (Status: Sleepy, Broken Leg, etc) but I can't find a way and the only answers I have found were using scripts that I don't understand because Im very novice at this. Please help

For example items can activate a common event when you use them but states can't activate common events? Is there a way to activate common events using states?
You could start off with a condition branch. If hours = 0, self switch off for instance. You could also make a shower switch and switch it off when going to bed.

You could set a parallel that checks for if your status is one of the ones that'll change the speed. I believe you can have states affect common events on the second page.
You could start off with a condition branch. If hours = 0, self switch off for instance.

I have tried using a conditional branch. If hours=6 (the time when "player wakes up") then turn self switch off, but the thing it won't happen unless I trigger it, and if I set it to parallel, it wont run until I enter the bathroom at exactly hour 6. If I enter at hour 7, it wont deactivate self switch A.

make a shower switch and switch it off when going to bed.

This looks like my only solution, but the thing is I want to make several events reset when you go to sleep, so that would mean that I would have to add each switch to OFF to my "rest" event, and in future "rest" places I would have to add ALL the events that reset again, wouldn't that consume resources? I honestly don't know but if that's the only option I guess that will be it.

You could set a parallel that checks for if your status is one of the ones that'll change the speed. I believe you can have states affect common events on the second page.

I managed to solve this by adding a parallel check "If Hour=23, Give "Sleepy" state (which is an empty state) and Set Movement Route: Change speed to 2. And when it goes to bed, I added a "If Player has Sleepy state show message "You are no longer Sleepy" and "set movement route back to 4") It works so far, I hope it continues to work so as I progress with the game

Thank you so much for your help fluffy
(...)

For example items can activate a common event when you use them but states can't activate common events? Is there a way to activate common events using states?
sry i cant give u solution for the 2 problems,but atleast im sure that u can use a Common Event in order to make Conditions like:
"if Actor(X) is StateAffected(Y) turn Switch(Z) true"
and with those Switches u can control other Common Events..
You could also use this code ,instead of a Switch, to call the CommonEvent:
(example with Common Event Nr20)
Code:
$gameTemp.reserveCommonEvent(20);
This Hime Plugin could also be helpfull..
..here is a Usefull Scriptcalls List,and another alternative Scriptcall List .. (Pages are not made by me)
sry i cant give u solution for the 2 problems,but atleast im sure that u can use a Common Event in order to make Conditions like:
"if Actor(X) is StateAffected(Y) turn Switch(Z) true"
and with those Switches u can control other Common Events..
You could also use this code ,instead of a Switch, to call the CommonEvent:
(example with Common Event Nr20)
Code:
$gameTemp.reserveCommonEvent(20);
This Hime Plugin could also be helpfull..
..here is a Usefull Scriptcalls List,and another alternative Scriptcall List .. (Pages are not made by me)

Thank you for your input! You are right I forgot about conditionals checking your own status, im dumb. I will look into the links your provided, like I said, I dont understand scripts, all I see are walls of text and I cant make heads or tails of it but I guess I have to learn one way or another Thank you 🙂
This looks like my only solution, but the thing is I want to make several events reset when you go to sleep, so that would mean that I would have to add each switch to OFF to my "rest" event, and in future "rest" places I would have to add ALL the events that reset again, wouldn't that consume resources? I honestly don't know but if that's the only option I guess that will be it.
The easiest way to pull off what you want would be to make a switch and turn it off for each one. You could also have a switch for "sleep" or wake" that'll activate the last page of the events you want affected. In those pages, you could have it set to autorun (or parallel) and disable the self switch and either end the event with disabling the "sleep"/"wake" or have a separate event that will do so. You may have to mess around with that on a test map to iron out the events. If you're concerned with too many lines making it messy, you could always dump the switches activating into a common event, too.
Thank you so much for your help fluffy
No problem. 😍 I'm glad I could help.
you could always dump the switches activating into a common event

FFFFFFFFFFFFFFF WHY DID I FORGET THAT I OWE YOU A BEER

Original thread: https://forums.rpgmakerweb.com/threads/help-with-something-so-simple.126874/