- Joined
- May 18, 2012
- Messages
- 114
- Reaction score
- 6
- First Language
- English
- Primarily Uses
I'm working on a game where I generate about 5-8 NPCs up front (on creating a new game). I also have a known set of maps. I need to distribute my NPCs to different maps.
I can't do this through the visual editor, because the NPCs don't exist until the game runs (each new-game creates a random/different set of NPCs).
I'm using Archeia's spawn-event script here, if that matters. Fundamentally, though, I don't see a way to load a game map (other than the current one in $game_map) and spawn the event there. Even if I did, would it persist (when the player goes to that map, the event is there)?
How can I solve this problem, other than a script on every map that says "when the player enters this map, spawn any NPCs that are on this map?" -- I don't like duplicating stuff everywhere :/
I can't do this through the visual editor, because the NPCs don't exist until the game runs (each new-game creates a random/different set of NPCs).
I'm using Archeia's spawn-event script here, if that matters. Fundamentally, though, I don't see a way to load a game map (other than the current one in $game_map) and spawn the event there. Even if I did, would it persist (when the player goes to that map, the event is there)?
How can I solve this problem, other than a script on every map that says "when the player enters this map, spawn any NPCs that are on this map?" -- I don't like duplicating stuff everywhere :/
