Optimizing Cutscenes: How to handle a large number of events?

Every character in my game has recurring cutscenes, and I need to find a way for the game to recognize when the player has read these scenes so that they can skip them the next time they interact with the character. I know you might think: just use a switch or a variable, but the problem is that each character has 10 cutscenes, and I have 12 characters. This would mean I'd have to waste 120 switch or variable slots, which I don't intend to do. Do you have any ideas on how I can accomplish this?

Let me explain a bit more about how the game works: In the central HUB, the game is divided into a variable: day (1) and day (2), representing day and night. During the day, you can go out to explore, while at night, you have to stay home and can talk to your party members.

When it is day (2), you can go to the party members, and if the variable (affection points [character name]) is high enough, you can unlock a cutscene. The cutscenes are at the thresholds of 5, 10, 20, 30, and 40 points. This is one reason why I need to check when a player has read a dialogue because if the player reaches 20 affection points, I want them to first have the opportunity to read the 5-point dialogue and then the 10-point one. These dialogues are all to be done by interacting with the dormitory door, no matter which character you want to talk to, so it's not possible for me to use self-switches (at least, I can't find a smart way to do it!).

When you go out and explore the world, it's a whole different story: there's a common event that sets a one-minute timer, after which a variable is randomly generated from 1 to 4. If the result is 1, a dialogue will occur, then there's another roll to decide which of your party members will talk to you. I know it might seem like an unnecessary feature, but it's an NSFW game, so the player will be happy to receive these events. In any case, the type of dialogue depends on the affection points, just like in the nighttime hub; there are dialogues for 5, 10, 20, 30, and 40 points. I would like to give the player the option to skip the scenes if they have already seen them at least once.

As you can see, since there are 12 characters, there will be a total of 120 scenes, so I would like to use as few switches as possible... do you have any ideas or advice? I hope I explained it well.
Sorry if I am misunderstanding, but it sounds like something that can be solved with quest staging.
Using a single variable to represent that specific characters "quest", the affection cutscenes can only unlock if the quest has proceeded forward.
So at the end of each cutscenes just +1 to that characters quest.
If the quest = x
Play the appropriate cutscene.
...huh. That should definitely work, thanks lol.
Probably will ask me a bit of thinking anyway but yeah thank you!
Well, this did not work at all, unless my brain is REALLY small.
Basically the event needs to go like this:
affection 5:
DIALOGUE A > DIALOGUE B
after you read Dialogue A, the next day, the event is:
DIALOGUE C > DIALOGUE B
then
affection 10:
DIALOGUE A > DIALOGUE B
after you read Dialogue A, the next day, the event is:
DIALOGUE C > DIALOGUE B


My problem is mainly how to manage THIS. Because when the next cutscene will come, I need to revert DIALOGUE C to DIALOGUE A and I don't know how to let the game know when it's time to go back to DIALOGUE A

edit: probably I should just discard this idea and have DIALOGUE A, +1 progress variable, and then DIALOGUE C, then when the condition will be met, will give +1 progress variable and go back with dialogue A
... IN ANY CASE, this won't work with outdoor dialogues. This solution will require 2 variables for each character anyways.... and thus, 24 variables 🙁

Original thread: https://forums.rpgmakerweb.com/threads/optimizing-cutscenes-how-to-handle-a-large-number-of-events.163827/