Overriding

can someone help me,.
to tell simple conclusion about RPG MV plugin,


it's that right,..?
almost plugin is using overriding method to the default system game,.?
example,..
Default Menu = > plugin (overriding) => New Menu


thanks be4 🙂
It depends on how the plugin is written.  It could be made to override the existing method, or to alias the existing method and add to it.
It depends on how the plugin is written.  It could be made to override the existing method, or to alias the existing method and add to it

oooowh,.. so basically we rewrite them all right,..
If you want to completely change what a function does, you rewrite/override it.  If you just want to add a little more logic to what it does, without changing what it does, you would probably alias it.  That lets you call the original function, as well as do your extra stuff before and/or after.


Best way to see is to have a look at some of the existing plugins that modify the default behaviour.
If you want to completely change what a function does, you rewrite/override it.  If you just want to add a little more logic to what it does, without changing what it does, you would probably alias it.  That lets you call the original function, as well as do your extra stuff before and/or after.


Best way to see is to have a look at some of the existing plugins that modify the default behaviour.

maybe then conclusion is we call the default method in the game to the plugin script then rewrite or edit,.


Finally my head going brighter now hahaha


thanks for answer Shaz

Original thread: https://forums.rpgmakerweb.com/threads/overriding.59362/