MV Yanfly Class Change Core Add-On

Hello!

Would someone be able to help me out with creating a small add-on to Yanfly's Class Change Core?

In particular, I'm looking to add an optional extra parameter to the actor notetags:
<Class x Face: filename y>
<Class x Character: filename y>
<Class x Battler: filename>

These are notetags that, when given to an actor, will automatically change their face/character sprite/battle sprite (index of y) if they are a specific class (x).

I would like to add an additional parameter, that also checks if the actor has a specific skill. That way, for example, I could have the following notetag set up:
<Class 1 Face: Actor1 0>
<Class 1 Face: Actor1 1 75>

In this example, if the actor was of class 1, their face would be from Actor1 index 0. But, if they then learned skill 75, their face would change to Actor1 index 1.

Let me know if you have any questions.

Thank you!
I took the liberty to change your request a bit.

Usage:
The following notetags can be given to actors.
- <Class X Skill Y Face: filename index> If the actor has the class with the ID X and the skill with the ID Y, their face will be changed to the given index of the given file.
- <Class X Skill Y Character: filename index> or <Class X Skill Y Sprite: filename index> If the actor has the class with the ID X and the skill with the ID Y, their walking sprite will be changed to the given index of the given file.
- <Class X Skill Y Face: filename> If the actor has the class with the ID X and the skill with the ID Y, their SV battler will be changed to the given file.

The given filenames MUST NOT contain whitespaces or the filetype (.png).
These notetags will take precedence over the ones for Yanfly's plugin, but will fall back on those if the actor doesn't have the specified skill.
In theory this plugin should be able to handle multiple notetags with different skills for the same class. In this case the notetag with the smallest line number inside the notebox with fitting class and skill IDs should take precedence. However I didn't test this case, because I am already running late for something.

Words of warning:
- this requires Yanfly's Class Change Core, but performs no sanity check whether the plugin is actually installed.
- there are no sanity checks whether the given classes, skills, files, etc actually exist
- contrary to Yanfly's plugin this will ONLY work with the actual IDs, not the names of the classes/skills

Terms of use:
non-commercial: free, but credits are required
commercial: free, but credits are required (a free copy of your game as a token fee will be appreciated but is not required)
edits for use in your projects are allowed
redistribution in any form (edited or otherwise) is NOT allowed (please link back to this thread instead)
As this is an Extension for Yanfly's Class Change Core Plugin, you also need to have the rights to use it in order to use my plugin.

I should really, really get around to make a thread for my plugins 😅
I took the liberty to change your request a bit.

Thank you very much for helping me out with my request! 🙏

From a little bit of testing, everything seems to be working great!

One quick question that only came to mind while testing, would allowing for the notetag to check for multiple skills be a fairly simple tweak? No worries if it wouldn't, although if it's a quick edit, it would be pretty handy.
Could you please clarify what you mean by:
the notetag to check for multiple skills
Would the specified image be used only if the actor knows ALL skills provided in the notetag or if they know ANY of the skills provided in the notetag?
Would the specified image be used only if the actor knows ALL skills provided in the notetag or if they know ANY of the skills provided in the notetag?
Oh, sorry for not specifying. I meant checking if they had all skills provided in the notetag.
I looked a bit into it, but it seems like extracting an arbitrary number of skill IDs from the notetag would require a complete rewriting of the current notetag processing. (And spontaneously I don't even know how exactly I would need to do it) This amount of effort I'd rather invest in further developing my own project.
Sorry, but maybe someone else can help you out?
Ah, no worries. I just figured I'd ask in case it was a quick couple line edit. I should be able to accomplish what I'm hoping to do as is though alongside a little clever eventing.

Thank you very much! 🙏

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-class-change-core-add-on.143432/