Dialogue System - Best practices regarding examining world items.
Posted: Fri Sep 26, 2014 4:15 am
I have a situation where I need to be able to inspect world items and have a conversation flow. I then need to be able to send a signal that states which conversation items have been selected.
For example, the game character goes to examine a motor and the following dialogue might occur.
-Examine barrings?
-Examine shaft?
-Examine windings?
-----------------------------
--Examine Barrings -
----Barrings are worn, replace barrings
------Response: YES
------Response: NO
I hope that makes some sense. So the way I've been handling writing the dialogue is to make each type of interactive object an NPC and have every actor and conversant in the dialogue tree be the player. This seems sub-optimal but I'm not sure I understand the system well enough to know how to do it better.
In addition I need to log each response so that I can send what the players have done to a central server. I was thinking of using the ConversationLogger Class so that I would log an onConversationStart() to open the logging then log each line the close with onConversationEnd().
For example, the game character goes to examine a motor and the following dialogue might occur.
-Examine barrings?
-Examine shaft?
-Examine windings?
-----------------------------
--Examine Barrings -
----Barrings are worn, replace barrings
------Response: YES
------Response: NO
I hope that makes some sense. So the way I've been handling writing the dialogue is to make each type of interactive object an NPC and have every actor and conversant in the dialogue tree be the player. This seems sub-optimal but I'm not sure I understand the system well enough to know how to do it better.
In addition I need to log each response so that I can send what the players have done to a central server. I was thinking of using the ConversationLogger Class so that I would log an onConversationStart() to open the logging then log each line the close with onConversationEnd().