# Custom Dialogue Script & Triggers overlap

**URL:** <https://forums.unrealengine.com/t/custom-dialogue-script-triggers-overlap/742355>\
**Category:** Audio\
**Tags:** unreal-engine\
**Created:** [January 4, 2023, 10:35pm UTC](https://forums.unrealengine.com/t/custom-dialogue-script-triggers-overlap/742355 "2023-01-04T22:35:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeneralSoundwave](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GeneralSoundwave](https://forums.unrealengine.com/u/GeneralSoundwave)\
**Post date:** [January 4, 2023, 10:35pm UTC](https://forums.unrealengine.com/t/custom-dialogue-script-triggers-overlap/742355/1 "2023-01-04T22:35:29Z")

</div>

I feel like im 90% there…

I am not a programmer… I’m just an artist trying to use logic to fill a need on the team.

1. I wrote this script that when the player enters into a triggerable area, an audio file plays.
2. The Audio is Dialogue and the sentences of conversation between characters is not created as a whole, but broken out into specific sentences so that i can place them around the map in a more organic fashion.
3. so each Triggerable area has? up to 5 lines of Dialogue.
4. Steps 1-4 are all created in 1 Master BP
5. I then created children of that BP to pepper them throughout the map.

The issue is that I am having is if the player crosses over more than 1 barrier at a time, all the audio will begin to play at once… in other words they’re not queueing up.

The Logic to me is simple:

- If barrier is crossed, play audio in THIS trigger.
- If player crosses 2md barrier, check to see if the previous one is complete.  
– If not complete, wait.  
– if complete, play this 2nd barrier.

This means, each child needs to check the previous barrier.

- in the Master BP, i have code that says, 'if duration is incomplete, do nothing, but check to see when its done."

Am I going in the right direction?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/7/a17352beef1dfa201b133bb324b520247a130b4a.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/1/a/51a7487bf8617045795619649a6eb580c902bb3c.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/7/22789098ac75caf382648a7fd02c6fdabd92e921.png)

All the Collapsed nodes reflect this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/4/cb4f5f26b1b6d749fb237395fd6e77e2db8cbc82.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/4/9c443649c3746ff3c3826cef8b656a2a7ee810e7.png)

This is the last collapsed node that checks to see the grand totals of the audio. Its like one last check to make sure this doesnt play:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/1/2612ed0ce800295bfbf670e53df52c709fa51b89.png)

Each Child BP reflects this. I have 8 children total:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/b/c6b1b3a6b4c4edaa6cb82b7a933b01cb85998ada.png)
