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.
Setup
To create a new Tagged Dialogue Set data asset by right-clicking in the content drawer -> miscellaneous -> data asset.
Select Tagged Dialogue Set.
Populate the Tagged Dialogue then assign the asset into the NPC Definition.
Properties
Name | Type | Description |
---|---|---|
Tag | FGameplayTag | The tag that will kick off this dialogue. |
Dialogue | UDialogue | The dialogue to begin. |
Cooldown | float | The amount of time we should cooldown before playing this dialogue again. |
MaxDistance | float | Tagged dialogue wont play unless we're within this range from it |
RequiredTags | FGameplayTagContainer | Tags that will be required for the NPC to begin this tagged dialogue |
BlockedTags | FGameplayTagContainer | Tags 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. |
LastPlayTime | float | Defines how long ago the last dialogue was played |