How to make Encounter Event move at random?

Hey there,
RPG Maker-Noobie here,

So, I am using RPG Maker MV. I can make an event move at random and I can also create an event that will progress into a battle sequence upon touching/interacting with the event.

But how exactly do I combine these two?

For example: I want a bunch of rats that move around randomly, but if you interact with them (prefferably by the player touch trigger) then you initiate combat. When I tried this, they will always default to one of two things; Standing still and waiting for you to interact with them, or moving randomly but then the entire interaction page is ignored.

Here are some screenshots to give you an idea:

Interaction

1645320408562.png


Movement

1645320451602.png


Is there a way to combine these two into one? I have tried many variations with triggers / switches but nothing really seems to work. It defaults to 'playing' the second event page and ignoring the contents of the first event page.
Don't use the Set Movement Route to make the event move. Use the Autonomous Movement instead. The battle processing stuff should be the only commands.

1645340535279.png



Set it to Event Touch, which means the event will trigger whether the player moves into the event, or the event moves into the player. Player Touch will not trigger unless the player moves into the event.
To elaborate a bit further, The way you set it up it's only 1 step. 1 step in a random direction. It's on parallel so it would repeat the action, but you can't actually fight it. The "Autonomous Movement" section automatically loops.
Don't use the Set Movement Route to make the event move. Use the Autonomous Movement instead. The battle processing stuff should be the only commands.

View attachment 216838


Set it to Event Touch, which means the event will trigger whether the player moves into the event, or the event moves into the player. Player Touch will not trigger unless the player moves into the event.

Ah thanks! Yeah that's exactly what I was looking for! Works like a charm.
To elaborate a bit further, The way you set it up it's only 1 step. 1 step in a random direction. It's on parallel so it would repeat the action, but you can't actually fight it. The "Autonomous Movement" section automatically loops.

Yeah I see, thanks for the elaboration. It was a bit mind-boggling to me to figure out the triggers on something like this but that autonomous movement did the trick yeah. Didn't realize that's what it meant.
Yeah I see, thanks for the elaboration. It was a bit mind-boggling to me to figure out the triggers on something like this but that autonomous movement did the trick yeah. Didn't realize that's what it meant.
We all started somewhere 😀

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-encounter-event-move-at-random.145084/