You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: