NPC walks through wall that is solid for the player

Hello everyone,
so I've come across a curious problem. After creating a map I added some NPC characters that were moving randomly across the map. They did, however, also cross the tiles that were set on impassible. Also, the player-character couldn't enter those tiles either. So for testing, I created a very basic map. The bottom layer is only grass (of course all passable). The second layer has only mountain-tiles that are not passable. The third layer is empty. The test-NPC has a set move-route that moves the NPC upwards (seven tiles).
Upon entering the map, the NPC starts moving and is passing over the mountain-tiles. The player character cannot follow as the tiles are set on impassible. The question is, why does the NPC ignore the passability of the tiles?

The event is not set on "always through".
The event has no other purpose than moving the NPC.
All tiles have a priority of 0 (although the NPC did pass behind tiles with a higher priority in earlies testings but still ignored the passability).
The terrain-tags are all empty (set on 0).
There are no empty tiles anywhere on the map. I know, often the problem is that transparent were used to delete stuff, and not the tile at the top left. But this is a testing map so I made sure there were definitely no transparent tiles anywhere.

I have barely touched the script and what I changed had nothing to do with the movement or passability-check. Also, the player-character can't move through the walls...

Maybe one of you can help me.

sebivomeis
Erm, see about making a minor 1-map demo... absolutely NOTHING else. No custom scripts, nothing And use the conditions you set forward in this map. Without the scripts at all, this would be a baseline test project. See if the same issue crops up.

If it doesn't, make a copy of your project and then STRIP it of all your maps, custom database stuff.... everything but your scripts. Then create a single map. This 'copy' should then only be of one map and your custom scripts alone. Again, draw your map with the conditions you mentioned and see if the issue crops up.

If it does with the project with your custom scripts, but not with the 'baseline', something in the scripts would be causing the problem. At that point, you can start deleting one custom script after another within this 'copy' test project until you find the culprit.

We do not provide support to people using Pokémon Essentials, as it contains many rips. Therefore, I'm closing this topic.

Original thread: https://forums.rpgmakerweb.com/threads/npc-walks-through-wall-that-is-solid-for-the-player.107773/