# Branching Dialogues

**URL:** <https://forums.unrealengine.com/t/branching-dialogues/1326520>\
**Category:** Programming & Scripting\
**Tags:** dialogue, unreal-engine, question\
**Created:** [October 8, 2023, 7:57pm UTC](https://forums.unrealengine.com/t/branching-dialogues/1326520 "2023-10-08T19:57:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blagic23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@blagic23](https://forums.unrealengine.com/u/blagic23)\
**Post date:** [October 8, 2023, 7:57pm UTC](https://forums.unrealengine.com/t/branching-dialogues/1326520/1 "2023-10-08T19:57:08Z")

</div>

Our next project is going to be a story-focused adventure game. We want to branch out different scenario paths and dialogues for our game. For an example, if the player helps someone, later on that character will show up to help the player.

But, the problem is, the only way to code this as far as I can think, is to have bazilions of booleans for each scenario. And check for an “if” for every single thing.

Is there a more optimal way of coding this? This is so ineffective and could cause so many bugs.

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [October 9, 2023, 9:25am UTC](https://forums.unrealengine.com/t/branching-dialogues/1326520/2 "2023-10-09T09:25:51Z")

</div>

Hey @blagic23!

If you don’t want to use branching checks, you can use behavior trees. Check out the non-Epic affiliated example below:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/8/8d8ae5f3b6ca153ca4d114ba1be12cb569250f5a.jpeg "Unreal Engine 4 Tutorial - Advanced Dialogue Pt.1 - Interaction") ](https://www.youtube.com/watch?v=3uW7CgmrKAo)

---

<div class="post-metadata">

**Author:** ![tanis2000](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tanis2000/32/758783_2.png) [@tanis2000](https://forums.unrealengine.com/u/tanis2000)\
**Post date:** [October 9, 2023, 10:57am UTC](https://forums.unrealengine.com/t/branching-dialogues/1326520/3 "2023-10-09T10:57:48Z")

</div>

What about this plugin from Steve Streeting? [GitHub - sinbad/SUDS: Steve's Unreal Dialogue System](https://github.com/sinbad/SUDS)

It seems to fit your exact scenario.
