MV Yanfly Class Change Core Extension

Good morning RPG Makers,

After failed attempts to find an existing plugin online, I hope to have a plugin written as an extension for Yanfly's Class Change Core plugin, but I lack the coding expertise.

Background:
I am also using Yanfly’s Subclass Extension for awareness but only for the “require class” and “restrict class” features. Given my game's vast number of character classes available for its four main actors (14 x 4), creating cutscenes is challenging, to say the least, so I am hoping to automate it by doing the following:

Assign an image/character actor damage sprite sheet (0-31) to the actor just like Yanfly's Class Change Core does with an character sprite sheet (0-7):

<Class 13 Character: Brandon ninja 0>

My proposed plugin would look like this for the damage sprite sheet to be assigned to the actor, similar to the Yanfly Class Change Core plugin:

<Class 13 Damage: Brandon ninja dmg 0> (Actor 5 Class 13)

2. Modify a "character" event with an actor note tag to overwrite an irrelevant placeholder event, meaning the current image would be overwritten by the plugin with this note tag:

<ActorClassSprite: 5>

3. Modify a "character damage" event with an actor note tag leveraging the changes discussed to overwrite the irrelevant damage sprite placeholder event:

<ActorClassDamage: 5>

End State:
This plugin extension would replace the events shown with the actor's assigned character or character damage sprites depending on their class, simplifying eventing for cutscenes.

Thank you for your time and consideration.
It seems like you should be able to use the existing tags to change the actor sprites, then use a follower command plugin (like Tyruswoo's) to move those around the map directly instead of going through all this and asking for custom code to put stuff into events.

Is there a reason that solution isn't viable?
It seems like you should be able to use the existing tags to change the actor sprites, then use a follower command plugin (like Tyruswoo's) to move those around the map directly instead of going through all this and asking for custom code to put stuff into events.

Is there a reason that solution isn't viable?
The reason is that we only know what we know. I did not know about this option until you mentioned it.

However, moving actor sprites is great, but does the plugin you suggested allow actors to appear as if they have been knocked down (damage sprites)?

Thank you for the suggestion.

Edit:
Unless I misread something on Tyruswoo's page, the answer to my question regarding damaged sprites is no, so that it won't solve my problem. Also, I just had another thought: my game is 75% complete (five years in) with the main story being 95%+ complete, meaning even if Tyruswoo's plugin worked, that is a lot of overhead trying to go back and redo the eventing for every cutscene in my game. The suggested method is one day's worth of work, and I have a 40+ hour work week and a 9-to-5. 🙂

Even if it meant paying someone to do it, money, in this situation, is worth less than time.
does the plugin you suggested allow actors to appear as if they have been knocked down (damage sprites)?
In combination with JavaScript, you can.

The plugin gives you a script call to select which follower you're controlling in a move route, then you can put in other script calls using this to refer to that follower's character object.

So you could look up the script call for changing an event's image and use that in the move route.

You can make life easier on yourself with logical naming schemes, e.g. HaroldNinja, HaroldNinjaDown, HaroldCleric, HaroldClericDown, etc.

That will allow you to use some efficient JavaScript string manipulation to set the correct filename for whatever actor and class you're referencing.
Ah, okay. That is a way. Though, I am still not looking forward to learning a new plugin and redoing every cutscene in my game. I would also require custom scripting to achieve it (though I acknowledge less than my request).

I will leave this thread and see if anyone will accept the request. If not, I will do it the way you suggested.

Your no-nonsense way of providing input is valued as always, Turan. I recognize that as a coder, you understand that there are far too many plugin requests for things that do not require new plugins or a plugin at all. I solve most issues without them by researching or leveraging existing ones. 🙂
In combination with JavaScript, you can.

The plugin gives you a script call to select which follower you're controlling in a move route, then you can put in other script calls using this to refer to that follower's character object.

So you could look up the script call for changing an event's image and use that in the move route.

You can make life easier on yourself with logical naming schemes, e.g. HaroldNinja, HaroldNinjaDown, HaroldCleric, HaroldClericDown, etc.

That will allow you to use some efficient JavaScript string manipulation to set the correct filename for whatever actor and class you're referencing.
It seems like the only custom scripting you would need is to turn from the character sprite to the downed sprite and back, presuming you can't figure that out on your own from the pinned Script Call thread (which I'd hardly even call "custom scripting," it's two similar lines of code).

Is there something else that's not apparent?

And the redoing of cutscenes should be pretty easy, all you have to do is wherever you have a move route that refers to the event with an actor's graphics, you change the top of it to refer to whichever actor you want it to refer to.
It seems like the only custom scripting you would need is to turn from the character sprite to the downed sprite and back, presuming you can't figure that out on your own from the pinned Script Call thread (which I'd hardly even call "custom scripting," it's two similar lines of code).

Is there something else that's not apparent?

And the redoing of cutscenes should be pretty easy, all you have to do is wherever you have a move route that refers to the event with an actor's graphics, you change the top of it to refer to whichever actor you want it to refer to.
The part that needed to be apparent was reading the RPG Maker web thread in the first place. I went to the author's page to read the plugin description, instead:


I trust your judgment, so I will look up the thread; thanks!

Edit:
@ATT_Turan , I looked for the thread, but I could not find the lines of code you were referring to for associating damage sprites with an actor's current class.
Bump
The plugin gives you a script call to select which follower you're controlling in a move route, then you can put in other script calls using this to refer to that follower's character object.
I looked for the thread, but I could not find the lines of code you were referring to for associating damage sprites with an actor's current class.
the naming scheme is the association. using the previous example, if you had that naming scheme of the actor's name + their class, then youd be able to run a command like
Code:
this.setImage($gameParty.members()[1].name() + $gameParty.members()[1].className(), 0)
and it would change its map image to index 0 of actor 2's class sprite sheet. So if Harold is a ninja and is party member 2, then it would pull up HaroldNinja, Harold's ninja sprite sheet inside the characters folder, and use the first set of sprites there.

youd do the same for the downed image. if its a separate image file named HaroldNinjaDown, then you can fetch it like this
Code:
this.setImage($gameParty.members()[1].name() + $gameParty.members()[1].className() + "Down", 0)

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-class-change-core-extension.167877/