Sentries

What Im trying to do is put a town guard, so to speak, in each of the red boxes.  What i want them to do is walk in front of the stairs and prevent the player from waking up the stairs.  I would like them to say something along the lines of "Stop!  Youre not permitted to go any further!", and block the player from going any further.  How would I go about doing that?

Untitled game.png
you place guards there, but make 2 event boxes between them ...make event on touch event that says that
you place guards there, but make 2 event boxes between them ...make event on touch event that says that


Detailing a bit more upon what Balako said, you can put 2 events between them that triggers on "Player Touch". In the commands section, place your message and a "Set Movement Route...", moving the player one step down so you can't pass.

If you want to elaborate more, you can set more complex move routes moving the guards in front of the character before the message and only then moving the character back, for example.
This is unbelieveably frustrating.  Ive set all kinds of events to make the guards move in front of the player, and have the player step back, but nothing happens.  They sit there motionless, or move into position as soon as I enter the map, and do nothing.  Apparently Im too stupid to make this work.....  Any other help out there?
You need to have the guards stay motionless until the player is close to the stairs, as nothing else is going to work that I can see. Name the guard events too (you'll see why in a minute).


Now, decide what square is the closest you want the player to get to those stairs. In those squares (and yes, squares. You'll need to duplicate this event in every such square), make an event that activates on player touch. In the event, set the move route of the guards to move them in front of the player (and this is why you need to name them, else you will have to figure out which event they are in event 001 - xxx). Check the 2nd move route event as wait for completion (not the first). Have them say their line, have the player take one step backwards (via a set move route), then move the guards back to where they were.


Note this is a pretty advanced event honestly. If it proves difficult, put the guards directly in the path instead as a stop gap measure, then come back to making this better later on after you've practiced more with eventing.
Just in case you need a visual, I made the event for you here. This assumes you want the player to walk even up to the guards, and they make him step back. If you want a pre-emptive halt, just move the event squares down by one tile each. Note that the event contents are in the blank squares, NOT the guards. The Guard events are empty, and are being controlled by the other event via movement routes. Below characters and Player touch are important here.

guards.png
Just in case you need a visual, I made the event for you here. This assumes you want the player to walk even up to the guards, and they make him step back. If you want a pre-emptive halt, just move the event squares down by one tile each. Note that the event contents are in the blank squares, NOT the guards. The Guard events are empty, and are being controlled by the other event via movement routes. Below characters and Player touch are important here.


View attachment 37137



THANK YOU!!! THANK YOU!!! THANK YOU!!! THANK YOU!!!  This was EXACTLY what I was looking for!  

Original thread: https://forums.rpgmakerweb.com/threads/sentries.60921/