Creating an NPC Monologue that can switch lines

Hello,

I am trying to create a simple system in which the player can trigger an NPC conversation. However, I do not need to have any dialogue options: only the NPC needs to speak. I have already completed this tutorial:

Here are what the blueprints look like (the widget tool, the macro inside the widget, and my thirdpersoncharacter):

This works nicely for one line of text. However, I would like to have longer conversations with my NPCs, like in any game containing simple monologues (Legend of Zelda), which the player can access the next part of the text by clicking a button on his keyboard or controller.

I am unsure of how to approach this, since I know some basics of blueprint but am not a pro by any means.

Thank you for any advice!

There’s no quick way about it, but I’ll try to adapt a solution based off of what you’ve displayed here.

Create a function in your blueprint and call it “DisplayText” with a String Variable for input of “NewMessage”. Copy what you have after your “Event Construct” into this new “DisplayText” function, but replace the “Message” string variable with the “NewMessage” input.

Now, whenever you want to “add more” to the conversation, simply call your “Dialogue” widget and use the “DisplayText” function and pass it your new message. The widget will update with the new string instead.

That makes a lot of sense! Thank you.