Randomly-moving NPC battle won't trigger unless I touch them

Hi all,

I've been working on my first game on RMMZ for the past couple months and have run into an issue I haven't been able to find with a lot of searching (maybe I'm searching for the wrong thing!). I have enemies depicted as NPCs/events moving around randomly but they won't walk into my party/trigger the battle, the battle is only triggered when I walk into them.

Attached is a screenshot of one of these cases; I've played around with priority, when set "Below characters" then the enemy walks under my sprite but doesn't trigger the battle; when set "Above characters", the enemy walks over my sprite but doesn't trigger the battle; when set "Same as characters", they just don't "touch" my sprite.

I'm pretty sure it's something simple. Any suggestions?
Player Touch = player walks into event.

Event Touch = player walks into event OR event walks into player.

Change your trigger.


You might want to do something in the If Lose section, otherwise when the player loses, the event will still be right there and another battle will start straight away.
Thanks for the response! But even with Trigger set to Event Touch, my enemy doesn't walk into me when priority is Same as characters, same situation with the other priorities.

I'm still undecided what to do if battle lost, I will probably just relocate the party to the start of the dungeon so they can escape if need be.
Thanks for the response! But even with Trigger set to Event Touch, my enemy doesn't walk into me when priority is Same as characters, same situation with the other priorities.

I'm still undecided what to do if battle lost, I will probably just relocate the party to the start of the dungeon so they can escape if need be.
Your move route is set to random = random moving. ^^
1645918264152.png

put it on approach instead:
1645918287073.png



then chose the speed and frequency you want it to move and it will follow you...

EDIT: dunno if its what you want but when you kill that enemy it will be gone forever, if you want it just gone till you exit and reenter the map, you can just use the "erase event" instead of self switch command. then the event will respanw after reentering the map. There are ofc more complicated ways to do a respawn but this is the simplest i could think of. Simple but effective if i may say so. ^^
If you want it like that, gone forever then just forget what i wrote here. 😀
Aha! Resolved, thank you very much 🙂
I also really like the idea of erase event as well - excellent tip!

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/randomly-moving-npc-battle-wont-trigger-unless-i-touch-them.145265/