Changing yanfly's mini label in the event?

I am using the http://yanfly.moe/2015/12/08/yep-40-event-mini-label/ plugin and absolutely loving how simple it is. There's one thing that I'm struggling with however.

I have an NPC whose name we learn in the dialogue. And I want to change the mini label above its head as soon as that happens. How do I do that? I tried conditional branches, but the plugin seems to just use the first label that's on the latest event page, disregarding the conditions of pages or conditional branches within pages.

Any ideas?
Could make two copies of the exact same map and transfer the player to the copy.
That is a huge overkill, isn't it?
An entire map is probably overkill. In the same spirit, you could have a copy of the event off in an unseen corner of the map (new mini label but retaining appearance and anything else you want to keep, like more dialogue.) In the original event, use the command:

Set Event Location... >Exchange with another event

The original event should still carry out whatever cycle it had. You could put Erase Event at the end. It's not much, but hope this helps.
That is much more like it, Alchemancy. Still, if someone knows a more elegant solution, like how to fix it within the plugin or how to use the plugin itself to account for conditions, that would be highly appreciated.

Problem with swapping approach is that the whole map is a pub. There are people inside and you get to know them. I already have 2 events per person to control the flow of dialogues better. Having 3 events per NPC just to change the overhead name sounds a bit excessive 🙂
Yanfly's mini labels are in comments, so different pages of the event can yield different mini labels (you can see the plugin help for more info). You can try making a new page in the event (of the guy whose name you learn), with the new mini label, and set a switch for that page (let's say switch 1). After you learn the name, turn on switch 1.

I haven't tested this out, but if the mini label is still showing the old one after doing the above, try the plugin command RefreshMiniLabel after you turn on switch 1.
The refresh + new page worked. Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/changing-yanflys-mini-label-in-the-event.89339/