Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPC routines need ability to continue on a different map #3

Open
wrightmat opened this issue Jan 2, 2018 · 0 comments
Open

NPC routines need ability to continue on a different map #3

wrightmat opened this issue Jan 2, 2018 · 0 comments

Comments

@wrightmat
Copy link
Owner

NPC routines should be able to continue on a different map without much trouble. For example, if an NPC leaves their home in the morning, walks around outside, and then returns home. This should be possible (with a little modification) with the current script. Once NPC routines are registered, they remain registered even if they are not on the current map - the script checks that and ignores that routine. All we should have to do is create the NPC on the map that they need to appear it.

We might be able to register one of the map events from the NPC routine script when another map is registered - a special call such as "*map:B4_inside". Then register a create:npc() function to map:on_opening_transition_finished(destination). That way once the hero enters that map, the NPC should be created and their normal routine should commence (depending on timing).

The other issue is that the create:npc() function would have to be removed if the hero does not enter the map before the NPC leaves (another special call to a different map such as "*map:B4") so the NPC doesn't seem to be on two maps if the hero enters that one later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant