Skip to main content

Tagged Dialogue

Tagged Dialogue is specific sections of dialogue that can be activated at sections via gameplay tags.

For example, when greeting someone or taunting, you can check if they have any tagged dialogue and execute it.

It makes a very generic framework with specific lines.

tagged-dialogue.webp

Setup

To create a new Tagged Dialogue Set data asset by right-clicking in the content drawer -> miscellaneous -> data asset.

Select Tagged Dialogue Set.

tagged-dialogue-setup.png

Populate the Tagged Dialogue then assign the asset into the NPC Definition.

tagged-dialogue-npc.png

Properties

NameTypeDescription
TagFGameplayTagThe tag that will kick off this dialogue.
DialogueUDialogueThe dialogue to begin.
CooldownfloatThe amount of time we should cooldown before playing this dialogue again.
MaxDistancefloatTagged dialogue wont play unless we're within this range from it
RequiredTagsFGameplayTagContainerTags that will be required for the NPC to begin this tagged dialogue
BlockedTagsFGameplayTagContainerTags that if owned by the NPC, will prevent this dialogue beginning. For example, we wouldn't want to greet a player if we were fighting someone.
LastPlayTimefloatDefines how long ago the last dialogue was played