Yeah the idea, is to create something similar to Skyrim, I read that you could create fake simulations and activate those events when the player is near.... the idea is to trick the player that the world they are currently in... is always evolving but one of my main problemas are...
Problem 1: How do I design the engine to be able to run the AI scripts of all the hundreds of NPCs in the game at once? I know that some open world games, like GTA, only update the NPCs that are in the player's close area. However I cannot do this, I need my world to work independently on where the player is, the events need to be happening even when the player isn't around, like in Skyrim. So I need to run every NPCs AI script plus I need to compute all the interactions of the NPCs with their environment, such as detecting colissions, have them fighting each other etc. But I have a feeling that this would be very bad for performance - I would like to know how games like Skyrim deal with this. My guess is that they use real-time detailed simulation for NPCs that are in the player's close area and they handle all other NPCs in the world only once in a while, i.e. once every nth "game frames", plus they may use some simplifications of the "NPC - environment" interactions (like teleporting NPCs instantly instead of having them really travel step by step with colission detections etc.). These are only my guesses and I don't really know how to make the simplifications, or whether I can use them. I would love to know how this is actually done.
Problem 2: Do I need to have the whole world plus all the interior instances loaded in memory at once? I would like to only load one small part of the world where the player currently is in order to save memory, as having 2000 x 2000 tiles plus all the NPCs, objects and items loaded can take a lot of space. However I cannot do this, because, as I mentioned above, I need to be simulating the whole world constantly, so I am forced to have it all loaded in memory. Again, I would like to know how Skyrim does it, because it obviously cannot be all loaded at one time, at least not with all the details.
I've been searching for answers to these questions for a few days now and I cannot find them, so I would be very glad if any game developer or anyone who might know the solutions would give me at least the basic ideas of how these problems could be dealt with. Thank you very much.
If we're going to talk global NPC control, this could be done with normal switches(IE a single switch controlling a bunch of NPCs at specific time or whatnot), the problem is, events only exist in the game, if a player is on said map, so it wont be as seemless as Shenmue or even Skyrim.
However don't bother using normal switched, It's a extra step, and clumsy as hell.
Better off use Hime's page condition script for this, because then you could use play time as the condition. You can use different pages to handle all the NPC's different move routes, so changing the movement routes of all the NPCs at a single time Isn't a issue.
I'm pretty sure you can do that as well, but It's going to require some fancy eventing, and it will be very tricky to pull off, because events sadly can't trigger off of touching other events. What you want could probally be done some way, but It's going to take a lot of work, that could have been easy otherwise(unless someone has a script that allows events to trigger other events on "touch" ).. The engine doesn't like running a lot of different Parallel Proc at the same time, so don't bother trying it that way.
To your 2nd question, if you want everything to be always moving, yea you do, because the engine wont count something as existing, unless you're on a map with said events. There pmight be a script that could beable to change this, but the engine wont be running things on another map, that the player Isn't on(this is why autorun/parallel common events don't work in battle, because technically the player is no longer on a map).