How do you turn non-material edits into material-pasteable scripts?

Pretty much just what the title says.

I know how to edit things in there but I don't totally get the rules of material-paste scripts...
There is no special magic to make edited code work under the 'material' section. In fact, there is nothing special about the 'material' section. The area is simply a place to organize add-on scripts, nothing more. The 'materials' section is one of the last areas to be loaded when you start your game because it is near the end of the scripts database. So, any default classes, methods and so on which were introduced before are either overwritten, aliased or such at that point by the add-on scripts, thus changing default functionality.


If you are looking into tinkering with the default code, I would highly suggest copying and pasting the entire section instead of simply editing 'in place'.

Spoiler
Let's say you wanted to change the default font size of the game name on the title screen ...

copy-paste-code-a.png

Copy the entire Scene_Title section ...


copy-paste-code-b.png



Paste the section underneath the 'materials' area ...


copy-paste-code-c.png



Erase all of the methods you do not need, then edit the method. This is a simple 'overwrite'. Easy-peasy.
Oh okay, thank you.

I didn't know you could just paste it there, I figured there might end up being some kind of conflict between the second paste and original version in the non-materials section.

I thought there was some other way to re-write it or that you would at least have to put some kind of command for it to be read separately, but I guess not.

Very helpful to know it's easy as that.
There can end up being issues once you start introducing other outside scripts. The most blunt method of editing is an 'overwrite', and sometimes that is the only way or the easiest way to get something done. But if you are going to start doing a lot of personal edits, I would look into aliasing methods as that can increase compatibility and lower the chance of things blowing up.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-turn-non-material-edits-into-material-pasteable-scripts.41893/