Always Update Autonomous Movement Script

Just like the title says i want a script that can always update the autonomous movement portion of events. The reason being is that i need NPCs to be able to walk while also having the ability to talk to them with the action button. The normal action button triggered events that are set to autonomous movement work, but only until the events leave the visible portion of the game screen. The events then freeze up until i see them again, and then the events continue to move.

This happens constantly do the default way Ace works with autonomous movement in events. By default, events only process movement when they are visible by the player. I wish to change that. I have tried other scripts such as Victor's Anti Lag script as well as many others but none of them actually worked the way that i wanted them to. Victor's script only updates anything inside of an event's commands through the process of adding comments into event pages that update events. I need this script for events that keep moving through their move routes until they reach the end of them, even when they move off the screen. That way, events can continue to move while off screen.

I am just letting you guys know ahead of time that i have already done autonomous movement before in events and i have done self switches, switches, and having events control other events etc. So, none of the default options work. The only flagging script that I am using in my project is Victor's Anti Lag script so far. Also, action button triggered events can only trigger when the player presses the action button. Which is C in the default Ace. There are going to be a lot more walking NPCs that have this function in my game. A few dozen in total.

I wouldn't be asking for a script like this to be made if there was another way to accomplish this goal. I have tried everything. This is why i need such a script. Let me know what you guys think and whether making a script like this would be possible. Also, for anyone that does make this script, let me know how you want to be credited and payed for your work. I don't have a lot of money but i can try to help in any way that i can. It would be great if the script were made for free but i don't know how else i can pay scripters other than money. I am well aware how difficult it is to script, since i have done it myself. I have a lot of respect for scripters. So, take your time. Thanks in advance!
This might help you:
http://www.rpgmakercentral.com/topic/36334-process-events-offscreen-code-snippet/

And there are many other scripts known as "Anti-Lag" scripts. They usually have a feature which lets you tag events which will always update themselves.
Does autonomous movement work for the script that you posted or does it only work for event movement routes through event commands and or comments. I hope that it works for autonomous movement as well because it would lower the amount of events that I will need in my game plus it would would fix the problem that i have with action button events. The problem that i have is that none of the triggeres work for what i need in my game due to each of them having their own problems. Parallel process always loops, autorun stops player motion and other events, and the action button trigger can only work when you press the action button.

This is why I need the ability to use the action button trigger while having the ever move on its own at the same time. That way when I talk to the event the event will stop, turn towards me, and then talk to me. Once it finishes it's talk it will continue to walk through it's movement route until you either talk to it again with the press of the action button or the event finishes it's movement route. In which case the event will disappear through the process of a self switch.

Some npc events might reappear when it becomes day time in my game since there is a day and night cycle. This is the main reason why I need a script that does what is mentioned on this thread. If I could accomplish this feat then my dream game can become a reality. Towns full if npcs walking, shopping, and talking. Thanks for trying to help. I hope that I can get this issue solved eventually. Let me know if you understand what I am talking about else I can be a little more descriptive.
looks like it works with autonomous movement
I tried the script and it really does work for autonomous movement as you have described. Thank you so much for the help, both of you. I am now bouncing with excitement with this script. I will certainly credit both you Sixth and Kread in a special thanks section in the ending credits of my game. I tried it with more events and set them each to different switches and they all worked. That's one big problem solved. I can now close this forum and create a new one to solve my last problem with angled collisions. I am sure many people are going to benefit from the link that you posted in this thread. Thanks so much!😀
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/always-update-autonomous-movement-script.85947/