RPG Maker MV: is there a way to show text after a battle when i unlock a class?

I am using Yanfly's class change and i want to show a text at the end of a battle that i unlocked another class after reaching a certain level?
it just automatically add the class and it doesn't show after a battle that i unlocked that class. please help!
can you switch on a switch when the class is unlocked?

if yes, make a parallel common event conditioned to that switch, giving a show text followed by swithcing itself off.
Thanks Andar. but I am still a bit confused. Would you mind to give me an idea how to do it? thank you
I wrote the exact steps
make a common event, set it to parallel, select a switch to activate that parallel.
give it a show text message and a control switch command to switch off the switch that controls it.

result: the message is displayed once on map

and if you control that switch on during battle when the class is unlocked, the message will only appear after battle due to the fact that there is no parallel on battlescreen
I'm not sure of a way to do things like set a switch when a class gets unlocked. If you read through the documentation for the Class Change plugin, classes aren't actually "unlocked" - whenever you try to change class, it looks through the list to see if you meet the conditions for them.

So it's not like something changes in your character when you get to level 7 and "unlock" monk, it just shows you the option for monk in the menu.

Your options, that I can think of, are:
1) Event it, which is pretty complex. You'd run an event turn 0 in every troop that creates a list of every class unlocked for each actor, then turns on a switch indicating you were in a battle. Have a common event triggered by that switch that will run when you get back to the map, and compare that list to a new one to see if there are more classes after the battle, then display the unlocking message.

2) Request/commission a plugin, which is also somewhat complex, because the person would have to do basically the same things as above just in JavaScript (store a list of current classes whenever battle starts, compare it during the aftermath and display messages if appropriate).

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mv-is-there-a-way-to-show-text-after-a-battle-when-i-unlock-a-class.146985/