Character only speaking a line of dialogue once.

How do you make it so that a character only says a line of dialogue once? For example, a shopkeeper who says things when you first encounter them, but they don't speak the next time, they just let you open the shop. I've tried using switches but none of them start as on, and I can't toggle them on manually.
As of now I solved the issue. Feel free to take it down
Why can't you toggle them on manually? That's exactly how they're meant to be turned on.

Give your shopkeeper 2 events pages. The first page will have no conditions, and will have the once-only dialogue, the shop processing, and will then turn self switch A on.

The second page will have self switch A as the condition and will only have the shop processing - no dialogue, no changing the self switch.


Edit - you figured it out while I was posting. We don't "take down" threads here, so the best thing for you to do is to post your solution so it can benefit others who might have a similar question in the future. And if you don't need any more help, just report your first post and let the mods know the issue has been solved, and they'll close your thread.
@Shaz you don't need to go full page for that alone. The self switch is also usable in conditional branch lol.
@TheoAllen Yes, that's true.

Original thread: https://forums.rpgmakerweb.com/threads/character-only-speaking-a-line-of-dialogue-once.120611/