I have a very rudimentary affection system I use to slightly tweak dialogue. (e.g. some events have conditional branches what will have one character speak instead of another based on the variable being checked)
I was thinking it might be fun to do little cutscene events that can play if the affection of one or more characters are high enough when resting at inns, but my issue is I would want the inn to check all eligible variables for any events I have set up in there. If I don't have the event move to a new page with a self switch, it seems like the affection cutscenes already done will just repeat every time the inn is utilized, but using a self switch will close off use of the unused cutscenes. I thought about using a regular switch but that's a lot of switches if I want there to be multiple scenes viewable across multiple inns across the project.
So basically, if I write up an affection scene for characters A, B and C based on their affection variable being high enough, how can I have character A's event play out, remove itself from the lineup, and leave B and C eligible to be viewed?
You answered your question already. It's a lot of switches, yeah, but so what?
If switch lovey dovey scene A = OFF
play lovey dovey scene A
turn on switch lovey dovey scene A
done
Btw you don't have to use a new event page to use a self switch either, you can perfectly utilize self switches just like you would regular ones in this scenario. Although you'd be limited to A-D without using script calls.
If I understand what you want correctly, you could accomplish this with quest staging and maybe - for your consideration - just one switch, and for slightly more clean up, one more variable.
You can assign a variable as a "quest" value to each party member. This variable is specifically for the progress in their "affection quest".
At it's most basic, when you activate your inn event, you can check the stage of the affection quest, run the scene appropriate for the current stage of the quest, then at the end of the event +1 the quest stage variable.
The limitation here is that if you have multiple party members, then each party member will be run simultaneously, which is where you can add in 1 more variable which will roll a random number, and pick a party member to show the scene. I hesitate to recommend randomness for something like this, however, simply because randomness is...well...random...and while extremely rare, it is possible that a player may have such bad luck that they might never experience an event with another character.
So maybe using a choice menu for which character the player wants to interact with would be better.
The other consideration here is that it could easily be repeated if players want. So after they activate the inn, they progress the affection quest, wake up, then the player can just activate the inn again and rapidly go through the progression quest. If you are fine with that, nothing needs to be done.
However, you can put brakes on it a few different ways. Again if you use quest staging for something such as the main quest, you could use a conditional to limit how far the player can progress the affection quest based on how far they have progressed in the main story.
Alternatively you can use a switch.
At the start of the affection stage, check if the switch is off. If so, do the event. If it's on, it will just skip it.
At the end of the affection stage, turn on the switch.
This prevents spamming the event.
When you turn the switch back off is up to you. In my own game I have a game-tick common event that checks and sets various game data once every second. So in my own game, I might put it on a timer "after x number of game ticks, turn switch off"
So, to put it all together in psuedo code, it might look like this:
If "InnAffectionEvent" is OFF:
-Set "random variable" to random 0 - [number of party members]
-if "random variable" is 0 (this would be your first party member)
--if "A-san AffectionQuest" is 0
--Do affection stage 0
--If "A-san AffectionQuest" is 1
--Do affection stage 1
--If "A-san AffectionQuest" is 2
--Do affection stage 2
-Add +1 to "A-san AffectionQuest"
-Turn ON "InnAffectionEvent"
Bonus tip: I recommend not using quest stages in +1 increments. It's better to make each stage +10 or more units apart. This is because if you ever decide to add a stage between (for example) stage 1 and 2, you'd have to go back through every stage and increment the stage by 1. If it's +10 per stage, you can just make your new 1.5 quest stage 15.
Anyways, that was a lot, and not sure if that's exactly what you are looking for, but hopefully it gave you some ideas, if not for this situation, maybe a situation in the future.