Zevia

Veteran
Veteran
Joined
Aug 4, 2012
Messages
649
Reaction score
361
First Language
English
Primarily Uses
RMMV
I haven't looked at Galv's Plugin, but typically Plugin writers will cache the old version of a method before overwriting it for just such occasions. Something like:
JavaScript:
Zevia.command101 = Game_Interpreter.prototype.command101;
Game_Interpreter.prototype.command101 = function() {
    // Do something besides the default
}

Such that if I wanted to call the original command101, I could do:
JavaScript:
Zevia.command101.call(interpreter); // interpreter being whatever the current
                                    // instance of Game_Interpreter is

Maybe take a look in Galv's Plugin and see if he's cached it somewhere?

If not, you could make your own modification somewhere in your own Plugin file and just make sure it loads before Galv's:
JavaScript:
Game_Interpreter.prototype.originalCommand101 = Game_Interpreter.prototype.command101;

That'll ensure that you have a reference to the original function before Galv's Plugin overwrites it, then you could call originalCommand101 instead.
 

Latest Threads

Latest Posts

Latest Profile Posts

Gotta love when RM just decides it's done with existence and closes when you're in an event.
Good grief am I ever so dusty on music creation. Never move, gentleman and ladies!
After waiting for several months to observe the results of vaccines, I finally decided to go for Comirnaty, because now my job needs me to either be vaccinated or take a regular testing every 2 weeks(240 HKD per test), and it seems to me that Comirnaty is safe enough in my case :)
So, to create multiple faces one needs to first export, then import, over and over... who came up with this weird mechanism...
Away from home now since it reduce COVID spread

Forum statistics

Threads
112,314
Messages
1,067,279
Members
145,939
Latest member
fooples
Top