
Basically, something I have in my game is an NPC that changes text over time (Both name and dialougue) and even the sprite of a portrait.
Because this NPC is meant to represent two characters having a conversation between each other (As if the player is overhearing their conversation).
In my first game, I already had this "NPC Convo" scene where the player would play this animation that changes character texts to simulate a conversation then hear from other characters.
But it was an animation that changed stuff over time and you weren't able to press a button to change to the next line.
But in my current game, I wanted to allow the player to press something to get the next line, instead of waiting for the line to change (Specially if some lines seemingly last a bit too long, or the opposite problem where they may not last long enough for players that aren't quick readers).
And I also wanted to make sure that what I get from that is a format that could be used in different conversations, if I kept using the same script for duplicated scenes of this NPC type.
(And of course, the player also being able to "replay" the conversation so they can see it anytime they want).
Basically, think of any game with NPC's where you see their text box and press a button to see the next lines until the text box closes (And with the context of "2 characters having a talk and the player overhears their conversation", also changing the name boxes and face portraits).
This scene and its script are related to what I mean:
Any help is appreciated.