Remove player touch events copies

So there’s a player walking down a hallway that’s 3 squares wide. Each square in a line has the same player touch cutscene attached to it so no matter which square they step on, the cutscene will play and they can’t avoid it.
How do I make it so that once one of those events are activated, the other copies are disabled or removed so touching it doesn’t repeat the same cutscene?
What I did was make a switch that that event turns on that disables all of the other event triggers tied to that cutscene.

---
Edit: Here's some pictures, basically have this for all of the triggers
1642093389733.png

1642093419347.png

Someone else might have a simpler solution but this is what I've personally found works.
1. During the cutscene turn on a switch
2. Add a blank event page over every player touch event with the condition, that the switch has to be turned on.

If you do have the Yanfly collection, you could have a single event that triggers on all three tiles instead with http://www.yanfly.moe/wiki/Event_Region_Trigger_(YEP)
Then you wouldn't need to use a global switch but rather could easily use a selfswitch (still with the same basic setup). The bigger advantage would however be that if you change anything with the cutscene, you wouldn't need to copy your changes to any other events.
1. During the cutscene turn on a switch
2. Add a blank event page over every player touch event with the condition, that the switch has to be turned on.

If you do have the Yanfly collection, you could have a single event that triggers on all three tiles instead with http://www.yanfly.moe/wiki/Event_Region_Trigger_(YEP)
Then you wouldn't need to use a global switch but rather could easily use a selfswitch (still with the same basic setup). The bigger advantage would however be that if you change anything with the cutscene, you wouldn't need to copy your changes to any other events.

So there’s a player walking down a hallway that’s 3 squares wide. Each square in a line has the same player touch cutscene attached to it so no matter which square they step on, the cutscene will play and they can’t avoid it.
How do I make it so that once one of those events are activated, the other copies are disabled or removed so touching it doesn’t repeat the same cutscene?

If you go with the first option, it's better for the events to only activate a switch to begin with, then the switch's activation start another (automatic) event that do the cutscene. Would be pretty poorly optimized if you had the same long cutscene scene script on duplicated events. Except if the player's location would actually make a difference for how the cutscene should turns out entirely. Anyway when it's just about movements, most gamedev would just fade the screen black and tp the player in the middle (or where the player should be) so that the cutscene can use the same route movement, wherever the player triggered it.

So yes, either use these invisibles events as stuff that ONLY activates a global switch (to then trigger the cutscene) and afterwards, simply erase themselves if the switch is ON, or use Yanfly's Event Region Trigger. Both solve the issue.
I disagree with @Reizod : cutscene instructions are only text, which does not use up much memory, even if lengthy. Duplicating these will not have noticable performance implications. Parallel events on the other hand can have (if handled poorly) very noticeable performance impacts.

Though I do agree that not duplicating code is the better programming practice, as duplicated instructions are very hard to keep consistent. However while writing my first answer, I completely spaced on a base engine way to avoid duplication: put the cutscene instructions in a common event with trigger:none and use the 'call common event' command in each duplicate event to call that common event.
I disagree with @Reizod : cutscene instructions are only text, which does not use up much memory, even if lengthy. Duplicating these will not have noticable performance implications. Parallel events on the other hand can have (if handled poorly) very noticeable performance impacts.

Though I do agree that not duplicating code is the better programming practice, as duplicated instructions are very hard to keep consistent. However while writing my first answer, I completely spaced on a base engine way to avoid duplication: put the cutscene instructions in a common event with trigger:none and use the 'call common event' command in each duplicate event to call that common event.
I was talking about an automatic event, not a parallel one.

By default when you make a cutscene that can be triggered on multiple tiles, you should trigger a global switch, this global switch should be the condition for an automatic event, thus triggering the cutscene. And it should also be the condition for the event-triggerer events (on the tiles) to be erased.

It's true it doesn't have so much performance issue if you copy-paste the same lengthy event script, however not doing so will still be a small RAM optimization, insignificant but still. Also it's good pratice, if you do not optimize your project, when you'll try to modify something later you'll spend countless hours.

The common event option would also work the same. Though an automatic event which requires a global switch on the map will also do just fine. Automatic =/= Parallel

Original thread: https://forums.rpgmakerweb.com/threads/remove-player-touch-events-copies.143927/