Horizons: Empire of Istaria Peek #9
-
Category: News ArchiveHits: 1000
The one hurdle left was how to make sure that two NPCs that were supposed to be having a conversation stay in sync. You wouldn't want to rely on their individual timers - external factors might make one NPC get farther ahead or behind the other, and their conversation would be broken. This was resolved by adding the ability for an NPC to trigger the execution of a persistent action state on a different NPC. That way, they would literally be having a conversation - where one NPC would say something and send a directive to the other NPC to say its response after a few seconds, which would then in turn trigger the first NPC to say the next line after the proper delay.