So what I'm trying to accomplish is essentially a very surface level AI for my enemies using chrono engine. I just want them to be able to detect when the player is occupying a tile beside them before executing their next action as opposed to approaching the player by a random amount and then acting, possibly tiles away from the player.
What I first tried was Yanfly's move route core but I ran into multiple issues. You can enter script commands to either move to X and Y variables, or you can just direct the event directly towards the player. The first issue I ran into was "gettargetelevation" error popping up upon boot up, I figured this was because I was using mv3d with tiles of varying height and move route core did not have a method to compensate for height. So I tried again with and entirely flat map still using mv3d but I then hit 2 more problems... the first is that the game slows SIGNIFIGNATLY upon spawning an enemy using this method of movement, and the second is that the event in question is trying to move to the actual space the player is occupying as opposed to a space BESIDE the player which of course it can never accomplish so the next action just never happens. All these things apply to both methods of setting the movement route, using an X and Y variable to track the player and then directing the enemy towards those variables AND directing it directly to the player.
So... after that I looked around a bit to try and find alternative solutions and I was able to find one that seemed somewhat promising: https://www.rpgmakerweb.com/blog/making-interesting-npc-move-routes-with-script-calls
using the "one event following another" I used the script call stated to have the enemy move to the variables I had tracking the players coordinates and again... I just get an error upon boot up.
So I'm reaching out hoping someone else out there may have another idea to solve this problem, I suppose keeping in mind that this project also uses mv3d also seems important as it introduces the whole height element that seems to cause some issues. Thanks in advance.
What I first tried was Yanfly's move route core but I ran into multiple issues. You can enter script commands to either move to X and Y variables, or you can just direct the event directly towards the player. The first issue I ran into was "gettargetelevation" error popping up upon boot up, I figured this was because I was using mv3d with tiles of varying height and move route core did not have a method to compensate for height. So I tried again with and entirely flat map still using mv3d but I then hit 2 more problems... the first is that the game slows SIGNIFIGNATLY upon spawning an enemy using this method of movement, and the second is that the event in question is trying to move to the actual space the player is occupying as opposed to a space BESIDE the player which of course it can never accomplish so the next action just never happens. All these things apply to both methods of setting the movement route, using an X and Y variable to track the player and then directing the enemy towards those variables AND directing it directly to the player.
So... after that I looked around a bit to try and find alternative solutions and I was able to find one that seemed somewhat promising: https://www.rpgmakerweb.com/blog/making-interesting-npc-move-routes-with-script-calls
using the "one event following another" I used the script call stated to have the enemy move to the variables I had tracking the players coordinates and again... I just get an error upon boot up.
So I'm reaching out hoping someone else out there may have another idea to solve this problem, I suppose keeping in mind that this project also uses mv3d also seems important as it introduces the whole height element that seems to cause some issues. Thanks in advance.