Triggering an event once another event moves over it.

I am having problem with an event to get my game really started storywise.

The setting basically is the villain attacks the village after the main character has completed his training. A guard runs through the hallway before getting struck by a thunder bolt and killed. The protagonist escapes and flees only to return after the villain has left. and so on.

EDIT: The problem is that once it begins the music changes the guard rushes out till his spot and just stops nothing else happens.

Anyway the events I need triggered are when the npcs walk over them, How do I set their events touching them to make them activate.

I will explain them all briefly and arrange them in order.

Here are the screenshots so anybody can point out if I am doing something wrong.

danger part 1.png

This starts everything running for the guard to begin his fleeing scene

guard fleeing part 1.png

The guard moves over this event on his path

moveover event 1.png

boss scene 1.jpg

this makes the boss appear and rush towards him.

moveover event 2.jpg

This is the spot the boss must move over for the guard to be struck.

guard fleeing part 2.jpg

Making the guard fall to the ground dead.

danger part 2.jpg
It is not possible (in default) for an event to trigger another event. Only the player can trigger an event.


That said, it's not neccessary to trigger other events in a cutscene - on the contrary, that would be proof of a bad design of the cutscene and cause you a lot more problems than anything else.


In a cutscene, there should be only one event on autorun containing all controlling code for all events in that cutscene - all other events should be nothing more than pictures, containing exactly zero event commands (and therefore there is no need to trigger those empty events)


If the (empty) event standing for the NPC, its moveroute controlled by the autorun event controlling the cutscene, reaches the point of the other events, then the controlling event simply adds another command to control that "triggered" event without need for a real trigger.


A short version of your plans (I didn't check your events for everything):


1)The controlling event moves the NPC guard to the point where the boss is supposed to appear.


Instead of the boss appearing by an event trigger at that position, the controlling event simply activates the boss event and controlls its moves as well as the guard moves


When the boss and the guard reach each other, the controlling event commands the guard event to change the graphic to simulate the fallen guard
Yeah, you're making it way more complicated than it needs to be. And are misunderstanding triggers a bit.


Autorun means the player can't move. You should have ONE controlling event that's set to autorun, that tells ALL of the others what to do. Events can't trigger other events - only the player can. But one event can tell another event to do things, so you don't need to have the commands distributed to all of them. Autorun and parallel process also shouldn't be used as a trigger if an event has no commands. I suggest you read up on event triggers to see just what they're for - using autorun when you shouldn't will freeze the game.


Event 10: Get rid of the event command on tab 2 and set it to Action Button. I can't see the trigger, but I'm assuming you've got it set to autorun or parallel process. In that case, Exit Event Processing does absolutely nothing. That command makes the interpreter skip right to the bottom of the event commands, but if it's autorun or parallel process, by default when it gets to the bottom, it'll go straight to the top again and start over. So instead of NOT running anything, it will repeatedly run Exit Event Processing. If you want an NPC to disappear or an event to stop processing, you just give it a blank page with conditions that will evaluate to true at the right time, and don't change ANY other defaults. In this case, you could also have ignored the self switch on page 1, and just used variable 8 as the condition on page 2.


Event 11: get rid of the autorun trigger on page 1 and get rid of all the commands. Why monitor for a variable only to turn on a self switch, when you can condition the second page by the variable anyway? Leave the condition on page 1, and replace the self switch condition on page 2 with Variable is 6 or more. Also, what's the move route on page 1? When you set a move route as autonomous movement, it is going to repeat, whether the trigger is autorun, parallel process or anything else. And since you've got it set to autorun, it COULD be attempting to start the move route over again, but is bumping into something it can't go through, and freezing. THIS is probably what's causing your issue.


I'm not going to look at any others, because they're probably more of the same.


Take a look at this blog article that shows you another way to control a cutscene which is MUCH easier than you've done, and you can probably remove many of the issues.
Thank you both of you for the help I will try changing it around to see how it works and read that article for tips. 

Thank you again it helped and mostly working perfectly now, the only trouble is changing the characters graphic, it does not change to the one specific sprite I want for  damage instead to a sprite set.

Here is an example of the scene once it has finished. (still need to move the villain forward a lot more I know)

after scene sprite.png

This is the sprite I would like to appear.

ideal sprite.png

This is the line of code used to change the graphic, all still run from one event spot.

changing character graphic.png

Character graphic

choosing graphic.png
Yeah, silly Change Graphic doesn't let you select an actual cell from the whole group - just a group of 12. Look for Galv's Move Route Extras script - that'll let you select the individual sprite you want to use. The only other way I've been able to overcome this issue, without resorting to scripts, is to have an additional page on the event with that sprite, and use switches/self switches to change to the correct page.
I agree it is a bit frustrating. I will go  with the extra script thrown in too help. Since the script holding that sprite now only activates with the action button that wouldn't switch on cue.

Edit: Problem solved with a switch
Solved then, I assume.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/triggering-an-event-once-another-event-moves-over-it.20797/