Hello,
I hope that I am posting this in the correct location. This is for RPG Maker MV. So I'll get right to it!
I am having trouble with events interacting with other events. In short, I need one NPC to wake up another NPC by hitting him/her. I have an "Autorun Event" with dialog and movement routes setup up all the way to the point I need. I have one NPC hit the other NPC but now I need the sleeping NPC to change from laying down to standing up. Not sure how to accomplish this. Maybe via switches of some sort or a conditional branch? I'm Lost, please help.
Have you done a few tutorials? There's one built into the engine, and you should try to work your way through at least one series on YouTube - there's stuff by Echo607, SumRndmDde, DriftWood Gaming off the top of my head. They should all cover how pages on events work.
The only thing you need on the second NPC is a page 2 tab with a switch condition, and set the image to the regular standing up character. (I like to use a self-switch to save on clutter in the global switch list, but that requires a script command to toggle it - it can be easily Googled if you want to try that route)
Then the entirety of the cutscene code is in your first event. At the appropriate point you set the switch to make the other event change pages, then just keep going - you can control both/all events from one place.
You can change character graphics via change graphic command or move route command.
If the scene is completely scripted, you don't need any switch at all, just a well organized event commands would do the trick.
also dont bother putting any event contents in the other event. when making cutscenes its best to just have the 1 event control all the other event's.
at most you'd only ever need 1 switch (or variable if these events end up having multiple different cutscenes later on) at the very end of the cutscene if the NPC has a different interaction or sprite from that point on.
excessive info because you dont always need regular switches at the end of cutscenes:
normally self switches can only be changed by the event that it is in (ie. event B self switch commands dont effect event A's self switches) but there is a script call that can change self switches on different events (even on different maps). $gameSelfSwitches.setValue([MapID, eventID, 'A'], true/false)
example:
$gameSelfSwitches.setValue([2, 7, 'A'], true)
turns on self switch A for event (uses the default name) EV007 on map 2
the script call i mentioned earlier can control self switches for other events.