Party members acknowledging interaction once

Sorry for the vague title, couldn't think of a better one 😀

I'm in the middle of a maze-like dungeon, where the player and party is meant to follow an NPC who shows them the right way through. However I wanted to reward players who decided to explore instead, so scattered in the many dead-ends in the maze there are chests and other containers stocked with goodies.
It's all done, except for one thing that I don't really know how to do.

This is a big place, and the whole reason why the NPC is leading the player in the first place is that it's kinda tough to find the way out on your own. I want the player's party members to acknowledge this, saying something like "Oh great, he's gone. Now we'll have to find the way out ourselves." The best moment, that I can think of, for them to say this is when the player interacts with the first container, since that will most likely take long enough for the NPC to speed through the maze on his own.

However, I only want the party members to say this after interaction with the very first container. I don't want them to repeat it every single time. How do I restrict this line of dialogue to the first container the player interacts with, regardless of which one they happen to come across? After all, considering the nature of the dungeon it could technically be any of them.
Does it have something to do with switches?

Any help would be appreciated!
A switch, or the way I do it: via a common event arranged just for that purpose. It would be within the first container's event.

Edit: Make a common event and title it whatever you want, I'd title it Text, or Character Talk. Create the event via clicking on the little diamond thingy. It should be what the character will say. If you are satisfied with the text, save your common event.

In your first container's event data, right before it self switches, create an event and insert your common event there via using the common event option in the flow control area. It should work. Hope it helps you.
Eternas way will work fine but if you have multiple chests which can be looted in any order, sounded like you do, you may have an issue then with each chest that can set it off ,setting it off every time. In that case you would probably want a switch and a condition branch. Make a condition branch in each chest, can copy past it, that is say,

if chest switch is off do this.

Then in the condition put your text, then turn the chest switch on in the same part of the branch. That way further checks will see the switch is on and skip that part.

Original thread: https://forums.rpgmakerweb.com/threads/party-members-acknowledging-interaction-once.88634/