Change portrait based on class

What I want to do is make a normal message window with a character's portrait, but have that portrait automatically change in-game based on what the character's class is.  I had done something simple myself in VXA but MV is a whole nother animal and I have no clue how to do it.


Basically, I went to the part of the code that draws the portrait in the message window, and inserted a bit like:


If portrait == XYZ


 if a particular character's class == N


  portrait = ABC


 if their class == M


  portrait = DEF
I think I could whip up something for you.


I'll give it a whirl


EDIT: Try this, @yumemirai


ContinuumFaceByClass


Didn't get a chance to test; have to run.


Should work
It's possible even with plugin YEP 32 Class Change Core.


http://yanfly.moe/2015/11/27/yep-32-class-change-core/
Found an error in mine. Corrected

Original thread: https://forums.rpgmakerweb.com/threads/change-portrait-based-on-class.72331/