Organizing character specific dialogue
Posted: Wed Aug 26, 2020 3:10 pm
Looking for suggestions on the most efficient way to manage dialogue that needs to have different responses depending on the actor.
I'm assuming I can do this utilizing Conditions on conversation nodes, but...
An example conversation is a doctor talking to patients.
The doctor could one of several NPCs, the patient could one of several random NPCs, or a unique NPC that has unique dialog, or the player that then has responses.
Using a simple call and answer conversation:
Random Doctor: How are you?
Random Response: Fine.
But, for each unique NPC, the response may be different:
Bob would say: Great, how are you?
Ann would say: Terrible, life sucks.
And if it was the player, there would be several responses to choose from:
Player: 1) I'm fine - 2)Could be worse - 3) morphine, Doc... morphine.
So would all that be done in a complex conversation tree with conditional branches depending on who the actor is?
For a simple conversation like the example that's fine, but what about when there are 20 or more unique NPC response sets, or when different unique responses trigger new unique branches?
And will any of that make sense when exported for language localization?
For example, this isn't functional, but shows how I'm visualizing the conversation nodes being structured. I'm not sure how else it could be organized except by making entire unique conversations for each unique NPC in each unique situation, and another set for the player, then calling the conversation that matches the unique actor right from the start. That would mean loads of duplicated text because the Random Doctor NPC is always the same (in this example, the Doctor would likely also be a unique NPC further complicating the possible conversation combinations).
Any suggestions or pointers to relevant examples are appreciated.
I'm assuming I can do this utilizing Conditions on conversation nodes, but...
An example conversation is a doctor talking to patients.
The doctor could one of several NPCs, the patient could one of several random NPCs, or a unique NPC that has unique dialog, or the player that then has responses.
Using a simple call and answer conversation:
Random Doctor: How are you?
Random Response: Fine.
But, for each unique NPC, the response may be different:
Bob would say: Great, how are you?
Ann would say: Terrible, life sucks.
And if it was the player, there would be several responses to choose from:
Player: 1) I'm fine - 2)Could be worse - 3) morphine, Doc... morphine.
So would all that be done in a complex conversation tree with conditional branches depending on who the actor is?
For a simple conversation like the example that's fine, but what about when there are 20 or more unique NPC response sets, or when different unique responses trigger new unique branches?
And will any of that make sense when exported for language localization?
For example, this isn't functional, but shows how I'm visualizing the conversation nodes being structured. I'm not sure how else it could be organized except by making entire unique conversations for each unique NPC in each unique situation, and another set for the player, then calling the conversation that matches the unique actor right from the start. That would mean loads of duplicated text because the Random Doctor NPC is always the same (in this example, the Doctor would likely also be a unique NPC further complicating the possible conversation combinations).
Any suggestions or pointers to relevant examples are appreciated.