Question about dialogue systems
Dialogue is essential for the players experience in many games, and making sure that the player is getting the information they need is vital.
What I find tricky is making a proper dialogue queue system. Let’s say that we have one line of dialogue triggering once you walk into a room (Dia 1), and another triggering when you inspect a plant (Dia 2).
The first problem you can experience is that while Dia 1 is playing you trigger Dia 2 and they both play at the same time.
The other is when you make it only possible for one dialogue at a time and when you trigger Dia 2 it interrupts Dia 1. This also makes Dia 1 completely disappear and if you missed important info: too bad.
I have seen both big games do it well and not so well. A good example is from God of War Ragnarok where when you are in the boat and you stop at a dock, it logs where you stopped in the dialogue and when you return to the boat it starts up again where it left off. A bad example is from 007 First Light where if dialogue is interrupted it cuts off forever (loved the game though, almost played it in one sitting).
How can you create a robust system for this problem? I am curious if this is something that can be set up on the middleware side or if this is purely a programming problem.