How exactly would I trigger an event after a seperate event has been triggered?

Hello!


I have an issue that I was hoping one of you could help with. I am having a hard time getting event 1 (chest opening) to trigger a seperate event (screen shake and flash color). This seperate event is placed at the entrance of the room, however, I would like it to only occur when the player is leaving after the chest is open. Would anyone know how to do this? I would appreciate any help that you could possibly give me!
Tutorials is for tutorials you wrote for others, not for asking questions.


I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.


To answer your question: you don't.


Theoretically it's possible but it has been proven hundreds of times that to have a chain of events triggering other events will cause you a lot of problems with timing and bughunting.


Instead, if you want to make something a sequence, then you make one event containing all the commands, and remote control empty placeholders for NPCs from that same event.


Then you don't have to trigger other events for a sequence
Assuming I read this correctly, you should be able to do this with switches.


You need to make opening the chest activate a switch, and have the other event only run when that switch is on.


I've attached a picture explaining what I mean.


Tutorial.png
@J13 As I said above - while that would work theoretically, doing that in more than a few special cases will cause you a lot of trouble in later bughunts and use up your switches very fast.


So it's better not to use triggered different events, but to include the commands in the original event.
Actually in this case, using switches on separate events is the more appropriate answer, as the OP wants the screen shake to happen when they leave the room, not immediately after opening the chest.  So it's just a matter of setting a switch to say the chest is opened, then have the room exit event react to that switch.


It COULD be included in the original event, as long as that original event also made the player walk out of the room after opening the chest.

Original thread: https://forums.rpgmakerweb.com/threads/how-exactly-would-i-trigger-an-event-after-a-seperate-event-has-been-triggered.58155/