I personally like using location variables
The last page is not used but you could change the conditions so that once the object is on the switch that the object does not move again and then the switch can be set to the last page so that it does not run in parallel.
The self switch command for event 5 is the door that opens.
Then when you pass the door, you could do this