Teach me Senpai (changing sprite via plugin)

I've been tryng to read plugins about character generator to have an idea how this stuff work, but my brain always fails me

if there is someone who knows how to change the image of event/ character sprites with multiple bitmaps, i am greatly pleading for a tutorial, im not here to compete for your plugin making, nor willing to be a competition. im just asking to learn new stuff and in some time share it to those in need.

also, i dont have anything to pay you, nor anything i make that you would like to trade, but let this be a "regarded gratitude" (there is no english translation for utang na loob, so i find it hard explaining)
Spoiler
I'm just a poor boy, nobody loves me.
He's just a poor boy from a poor family,
Spare him his life from this monstrosity

maybe i could repay you at latter times... or maybe not
but one thing's sure, it would be a great help to me that needeth it now, and to the once who will need it
This is a basic command in the RM engine.
In Move event (2nd page of commands) there is this command "Change graphic".
As for character, there is a command "Change actor graphic" (or something like that).

I don't understand why you need a plugin for that.

Edit: Nevermind, I misread the original thread. If it's for learning purposes.
I'm not sure what you want to reach, but you can change the sprite of the player character or events, using this script command:
Code:
$gamePlayer.setImage('FileName', index);
$gameMap.event(id).setImage('FileName', index);

Ex.
$gamePlayer.setImage('Actor1', 2);
$gameMap.event(3).setImage('Actor1', 0);

About the indexes, in a character sheet you have 8 spriteset, so the indexes will be from 0 to 7:
Spoiler
Actor1.png
as i said at the prior message, what i want to learn is changing the graphic by multiple bitmaps.

im not that dumb to not know the set image function:headshake:

but yeah,.... thanks for responding👍
@johanes
what you want is anything but simple. there are only two possible ways, both of them require massive programming knowlegde.

The first way is to place not one sprite, but every partial sprite whereever the actor is displayed - that will require a massive rewrite of the sprite display to enable multiple sprites on a character, and a new data structure to store which parts are used where.

The second way is to have the engine dynamically create new sprites on actor creating by combining the selected parts into a new picture file. That will require knowledge on how to write picture files from data, also something not everybody can program. And it has a number of problems due to the sandbox limis of HTML5-games.
@johanes I'm sorry man, i misunderstood the question, I'm sure you're not a dumb and I'm sure that people that haven't any knowledge in programming are not dumbs 🙂
Well, understanding the question now, Andar has said all, a dynamic knowledge in programming is necessary.

Original thread: https://forums.rpgmakerweb.com/threads/teach-me-senpai-changing-sprite-via-plugin.79418/