Weekday change simulation. Help needed

Hi everyone! I want to make some common events, that simulate week calendar. So that I can manually change the weekday, when I need. I created global text variable for week day and three common events.
s1.jpg


First one should show current day.
s2.jpg




The second should change the value of "Weekday" variable on call.
S3.jpg




And the third one should remove text and picture.
s4.jpg



The main problem is that text value of Weekday variable isn't changed, when it should be. Or may be it is changed but, when I call Show Weekday common event, there is no text. How should I make these work and keep values between the scenes?
maybe the problem is all the "else if". the manual says this about it:

"This command allows the user to create another set of conditions if the initial requirements aren't met.
This is to avoid the previous condition to trigger if both conditions are triggered for any reason."

i think it means it only triggers when the "condition" and the "else" are true at the same time.

I would do something like this:

-Condition: If variable Weekday equals: Sun
---Set Variable weekday to: Mon
-Else:
---Condition: If variable Weekday equals: Mon
------Set Variable weekday to: Tue
----Else:
----------Condition: If variable Weekday equals: Tue
----------Set Variable weekday to: Wen

and so on... just remember that you can put a condition inside a condition. as it shows in the manual.
maybe the problem is all the "else if". the manual says this about it:

"This command allows the user to create another set of conditions if the initial requirements aren't met.
This is to avoid the previous condition to trigger if both conditions are triggered for any reason."

i think it means it only triggers when the "condition" and the "else" are true at the same time.

I would do something like this:

-Condition: If variable Weekday equals: Sun
---Set Variable weekday to: Mon
-Else:
---Condition: If variable Weekday equals: Mon
------Set Variable weekday to: Tue
----Else:
----------Condition: If variable Weekday equals: Tue
----------Set Variable weekday to: Wen

and so on... just remember that you can put a condition inside a condition. as it shows in the manual.


Thank you for reply. I tried like this:
s5.jpg


But this way common event doesn't change Weekday. It remais the same. No matter what structure I use. This whole thing just doesn't work. The text value isn't changed. Why?
Also I would like to know, shouls I trigger event automatically or by call? Should it run parallel? And should the common event any parameter?
Well, i tried another way using check text variable and labels and the only command that is not working properly is Text variable. it does not set the variable as it should't... i think it is a bug... i tried using in in a scene instead of common events and still don't work.
Okay. I guess I got it.

First. you need refresh tex comand in Show Weekday event. And just call it in the scene begining.
s1.jpg


Second. The daychange common event like this works good:
s2.jpg


One more thing. Day changes works and displays properly only when I don't stop common event in the end of the scene before transit to another scene. Don't know why this happens, but it seems to work.
for me it didn't work, what did you mean by: "Day changes works and displays properly only when I don't stop common event in the end of the scene before transit to another scene."

in my project i'm not using a week cicle but it is good to know this stuff.

Original thread: https://forums.rpgmakerweb.com/threads/weekday-change-simulation-help-needed.106085/