Making dialogue happen during a battle?

I would love to make dialogue happen in a specific battle, but I don't know how to do this. For example, after 3 attacks from the enemy, an ally comes in (in the dialogue) and destroys the enemy. Does someone know how to make this idea work?
show text in troop events is all you need

and then make the condition for the troop event fit to what you want as the trigger
show text in troop events is all you need

and then make the condition for the troop event fit to what you want as the trigger
Thank you a lot! I don't know why I didn't think of this, but I'm grateful for your explanations

Original thread: https://forums.rpgmakerweb.com/threads/making-dialogue-happen-during-a-battle.132139/