Do events only proc based on how close you are?

Heya, I'm trying to work on a town, with random passerby walking down the road. I'd like them to walk from one end to the other, then basically randomize a variable to make a different person appear at the same time, or later, basically. 

The main problem I'm having is that it seems that in game, if I walk too far away from this prop NPC, it stops walking it's movement path. So then it gets stuck, until I walk close enough for it to keep going to the end of it's path (where it should then vanish, and randomize a variable to make a new one appear). 

Do event NPC's not process unless you're close to them in a relatively big map? 
Most probably that is because you have an anti-lag-script installed.

By default, all events on the map are processed - which can create a lot of lag if you go to several hundred simple or a few badly written parallel events.

To reduce lag, the anti-lag-scripts stop events from being processed if those events are farther away from the player position.

The better anti-lag-scripts have exception-options where you can tell them which events to process even if they are on the other side of the map.
I belieeeeve that Custom Routes temporally stop if the event leaves the screen.  You would need to use a Move Route command through a Autorun or Parallel Process.
I belieeeeve that Custom Routes temporally stop if the event leaves the map.  You would need to use a Move Route command through a Autorun or Parallel Process.
all event processing on a map stops if the player leaves the map.

@OP:

Upon entering a map, all event positions and all moveroutes are set back to the original position - to prevent that, you'll need a script to remember event position.
I meant the screen.
I meant the screen.
In that case you're wrong, see my original answer. As long as you don't mess with scripts, all events and all moveroutes on the entire map are automatically processed in default - that's the reason why the game is often lagging on slower machines.
I believe Espon is correct that Autonomous movement by default isn't processed if the event is a certain distance off screen in Ace.
Event processing always occurs no matter where you are.

Autonomous movement only occurs when the event is "near the screen"

Code:
class Game_Event < Game_Character  def update_self_movement    if near_the_screen? && @stop_count > stop_count_threshold      case @move_type      when 1;  move_type_random      when 2;  move_type_toward_player      when 3;  move_type_custom      end    end  endend
Just take out the `near_the_screen?` condition.
In that case you're wrong, see my original answer. As long as you don't mess with scripts, all events and all moveroutes on the entire map are automatically processed in default - that's the reason why the game is often lagging on slower machines.
Actually, they're correct. Events do stop moving if you're out of their range, even in a brand new project. So if they had a custom move route, they'll stop until you're close enough again, in which case they start up.


Using another event (like a parallel process one) that forces the event to move circumvents this issue.
So why would you need to use an anti-lag script if event movement only happens when near the screen by default? What do the antilag scripts do that's missing from the engine?
Add extra bugs.

I think it's more for if you have a lot of events that do nothing but display a tile (like a tree over a box) or are meaningless when you can't see them (a door). Even having 70+ blank events on a large map will begin showing a considerable FPS drop even on the best PCs.  I'm guessing events still do something to slow down the game even when they do nothing, so the script disables those events when you can't see them (don't quote me on that, it's just my assumption).
Yes, the event will be updated every frame even if it does nothing.


And an event involves a lot of things, such as its corresponding sprite on the map even if it has no bitmap.


Lots of updates for no real reason, though preventing autonomous movement when an event is outside of the screen is a questionable decision.
So it's just the movement that bothers to look at the event's location?
Tsukihime's script suggestion was splendid. +1
Great, but don't necro post.


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/do-events-only-proc-based-on-how-close-you-are.17675/