MV Galv's Move Route Extra's Plugin

When a variable in my game hits 100 it sets the move route for an event to a location on the map and resets the variable to 0 but for some reason that NPC keeps running into any walls in their way and gets stuck. I am using the proper script call to make the NPC walk to the destination I even tried without the plugin and the same issue occurs. Help Please!!
If your NPC is getting stuck on walls on the way, then clearly your route is not correct.

Aside from that, no one can help you just from this description - all we can say is your route must be going into those walls.

If you're sure something is actually going wrong, you need to show us - post screenshots of the route and your map. And just a tip for next time, the whole beginning portion about your variable getting to 100 and resetting to 0 can be deleted - it has nothing to do with your move route working or not, and it is more information that we have to read and then ignore to focus on answering your actual question.

A way you can troubleshoot on your own is at the beginning of the route, turn Through ON - then you can see where the character is trying to go, and that will show you how you miscalculated.
It's kinda hard to post exactly where she is hitting a wall because she has full run of the
map in the screenshot but I did notice a pattern in my game where the region 255 is marked is all the points she has gotten stuck 1 is where she starts and 83 is where she has to go I just marked them temporarily to show her start and stuck points there are no actual region markers in the map I will test it with through on and see what happens
My understanding is Galv's plugin just allows for the functionality to turn and move toward a point without knowing where you're starting from - I'm not sure it has any kind of advanced pathfinding to navigate around obstacles like those passages you've formed from the walls.

What you might want to try is have the script navigate to a more central area, then use a typical move route from there.

My other suggestion would be to restrict where your event can move - for example, if you block off all of those little side wings in each room, any potential route will be much simpler with a couple of straight lines. I use Yanfly's Region Restrictions for this. You could also experiment with Yanfly's Move Route Core, which does have some pathfinding built into it, just to see if it gives any different results than Galv's. Those are both free plugins.

Is there a particular reason the character needs to have free reign of the map? It would make your life much simpler to restrict it to one room, and it's not like the player would know any difference.
How I managed it with Galv's was to move 1 step towards the location that I marked in the screenshot from before as 83 and if her location is not that location it would repeat till she is there it was kinda a pain to write it but sometimes simpler is better. The NPC has different stats like hunger, thirst, and energy which dictate where she is supposed to path find to I was still working on thirst which would make her walk to the fridge, hunger in my original plan is to make her go to the fridge then the stove and if the NPC is "Tired" she will go lay in the bed I will look for the plugins you mentioned
Is Yanfly's Region Restrictions plugin compatible with the SimpleLandVehicle plugin because I currently have that plugin and have made it so the boat vehicle which is now a car can't go to region 1 though if it is not compatible I can remove the whole car part
How I managed it with Galv's was to move 1 step towards the location that I marked in the screenshot from before as 83 and if her location is not that location it would repeat till she is there
That will never be successful with any walls on the map, it doesn't matter which plugin you use. The only way pathfinding can work is by scanning ahead to see if a course will result in being stuck - what you wrote will guarantee getting stuck in walls unless the event just happens to be in approximately straight lines from the destination. Think about it - moving 1 step toward the location on the other side of the wall takes you toward the wall. Moving 1 step toward it takes you against the wall. Then you're stuck there forever because the closest 1 step is always in the direction of the wall.

Something like that is why I asked you to post the code from your event in my first response - if anyone had seen that, they would've told you right away it couldn't work.

You need to be telling your move plugin the actual destination to let it navigate (you can try this with Galv's since you have it installed, but you might need to grab Yanfly's).
I was still working on thirst which would make her walk to the fridge, hunger in my original plan is to make her go to the fridge then the stove and if the NPC is "Tired" she will go lay in the bed
This is simple to implement, you just make a conditional branch in your event where you check those variables, then based on their levels you give a different destination to your move route.
Is Yanfly's Region Restrictions plugin compatible with the SimpleLandVehicle plugin
I have no idea. Off the top of my head, it shouldn't conflict because the Region Restrictions only interacts with events, not the player...but try it.

You should also test using the move routes properly before you bother adding Region Restrictions, it might not be necessary.
I tried replacing the Galv's Move Route Extras plugin with the Yanfly Move Route core plugin the first screenshot is where she needs to go for whatever her "Needs" are I temporarily marked the areas again to show where the needs can be met

The second screenshot is the event herself the first event page is just if she is in the party she doesn't exist

The third is the common event that is being a problem I haven't even started the other "Needs" yet because they would be essentially the same as the Thirst variable

What she is doing now is following her default random movement and ignoring the variable when I change it to be 100 during testing I am not sure the proper term but I press the F9 key on my windows 10 computer during testing to change the variable to
100 the part in screenshot 3 that changes it from 101 or higher to 100 works fine it is just she now won't even bother following the set move route I can adjust the map itself if need be
1 - It's redundant to put a loop inside a parallel event - by definition, autorun and parallel events repeat until something stops them. I don't know if that's affecting your code, but it's unnecessary.

2 - You don't need to clutter your move route with that huge list of restricted spaces. As I suggested before, get your movement route working using the correct commands first, then if your event is still getting stuck on walls, use the Region Restrictions - that won't clog up your move event. The only thing you want to have in there is avoid move to: player (which, ironically, seems to be the one thing you left out).

3 - You appear to have the move route in the wrong place. It looks like it's still inside the "if x=10" condition, so it will only go off if she happens to be in that specific row. You need to move it outside of that (look at the indentation of the diamonds).
3 - You appear to have the move route in the wrong place. It looks like it's still inside the "if x=10" condition, so it will only go off if she happens to be in that specific row. You need to move it outside of that (look at the indentation of the diamonds).
it isn't under the if x=10 that segment says if x=10 if y=4 turn up wait 120 frame control variable Sara thirst set to 1 else move to x=10 y=4 which unless I am doing something wrong the NPC will walk to x=10 y=4 then turn up and set the variable to 1

I just attempted removing the loop from the event and changing the move route to only move to x=10 y=4 and I used the region restriction plugin you mentioned earlier to block the 2 wing parts in the bathroom and for some reason, the NPC is still just completely ignoring the variable even existing If I move the NPC to the kitchen area she still just follows her default move route random routine. The link is what happens I am only leaving the video on my youtube channel till Monday, March 29th, 2021 7 pm EST
it isn't under the if x=10
It's still set incorrectly inside an Else, then - you're not doing one check to see if the event is at a specific set of coordinates, you're making the move route only happen if the x position is not 10.

Some other things for your consideration:
1 - Because of the huge move route, you don't actually show the bottom of the Sara AI event. Do you correctly increment the hunger variable at the end?

2 - You probably want to add a wait command to the map event. If you don't, the event by default processes every frame, which means the hunger is going to be filled up in just over a second and a half. She won't even have time to walk away from the fridge before she's hungry again.

3 - Is there a reason your map event is on the second page? It doesn't necessarily hurt anything, but written the way it is, if you actually have something on the first event page it will never happen.
3 - Is there a reason your map event is on the second page? It doesn't necessarily hurt anything, but written the way it is, if you actually have something on the first event page it will never happen.
with the part of your response I quoted are you referring to the event that I am having trouble with?
Your map event. The event that is on the map. The one that has the graphics to be your Sara character. It's showing event page 2 with no conditions on the left-hand side, which means anything that might exist on page 1 will never happen.
Page 1 is If party member Sara exists then the event image is blank and stationary so that way she is never in the party and walking around at the same time
the included screenshot is the Sara event's page 1
I don't need a screenshot, I have told you the same thing twice - that page will never happen. RPG Maker's engine checks the highest-numbered event page first, and if its conditions are true, it's run. Since page 2 has no conditions, it will always run. In order to have her not show up when she's in your party, that needs to be on a higher-numbered page than the other event.

Aside from resolving your problem you started the thread about, I recommend you watch/read/do some of the MV eventing tutorials that you can readily find through Google or the tutorials forum on this site.
I noticed that I had the pages backwards I have a reminder note on my desktop to flip them when it is possible for her to join. Right now there is no way to even get her in your party but the Character exists in the database
The Thirst variable is now working perfectly 🙂 Thanks for the help ATT_Turan now I just need to do the same for the other stats that she needs to move to a location the same way you were a huge help I also flipped the pages around so they are in the proper order for her to disappear when she is in the party
The Thirst variable is now working perfectly 🙂 Thanks for the help ATT_Turan now I just need to do the same for the other stats that she needs to move to a location the same way you were a huge help I also flipped the pages around so they are in the proper order for her to disappear when she is in the party
seeing how you are a veteran is there anything I have to do to close this post or anything on here? My Original post was literally the first time I have even used these forums
The mods would ask you click the Report button on your original post and say that your question was answered.
Alright I will click it thanks again for the help

Original thread: https://forums.rpgmakerweb.com/threads/galvs-move-route-extras-plugin.134724/