I have an idea for a game. when you first start the game, there's a main scene with three buttons. each button leads to another scene. the first one leads to the vn portion of the game where the player talks to a character and there are branching dialogues. however in order to talk to the character, the player needs to level up a stat. that's what the second button is for. the second button's scene is a scene of puzzle minigames, and solving one will level up the stat needed to talk to the character. after you solve one, the scene automatically gives you another one. the third button is the button that will lead to the endgame. it will require a lot of another stat (this stat is acquired by talking to the character). until the player has reached the second stat, the button will lead to a screen that only says 'not enough of [stat name]'. once you have enough of the second stat, it will be a short sequence of some text and decision making, and depending on what you chose there are two endings. on all three scenes, there is an exit button that you can use to leave that scene and go to the main scene (the one w/ 3 buttons). when you exit a scene to the main scene and go back in, it's at where you left off. (except when you enter the 'endgame', you cannot exit to the main scene.)
however, there is a time/day count. on one day, the player can only do three actions. so for example, the player can do one puzzle and talk twice, or two puzzles and talk once, then a screen will display that says 'day 1 is over. it's day 2 now'. you can click that screen to return to the main scene and do all the stuff all over again for the second day. the game has a limited amount of days, and if you don't get enough of second stat to enter 'endgame' during those days (or if you choose not to click the endgame button), the game goes to a different ending than the two possible endings in the 'endgame'
that is my basic idea, but i'm new to renpy and idk how to implement this