Thanx kiriseo... However, I'm not sure I want to override it. Overriding something typically means replacing it, which I don;t want to do. I still want it to run normally, I'd just like to run an additional regex after (or before) the Yanfly.Message.Window_Base_convertEscapeCharacters runs. In C#, one would inherit from the object, then override the method but inside of the method, either at the beginning or the end you'd call base.methodName(); So I guess I need to figure out how to do it this way... Inherit his objects (assuming they're objects) and override the method, but also call his specific method as well...
Plugin authoring tutorials?
Learning JavascriptI see.
if I'm not mistaken, you have to put this in your method:
_your_override_method.call(this, arguments);
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call
/EDIT:
I was still half asleep as I wrote this. 😀
The "s" in "arguments" was indeed not intended.
Thx lavra for pointing it out.
if I'm not mistaken, you have to put this in your method:
_your_override_method.call(this, arguments);
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call
/EDIT:
I was still half asleep as I wrote this. 😀
The "s" in "arguments" was indeed not intended.
Thx lavra for pointing it out.
You should probably use "apply()" instead if "call()". The differences is, that apply() takes an array-like parameter (like "arguments" is), while call() takes a comma-separated list of parameters. For functions with 0 or 1 (not sure) parameters, both should behave the same.
Thanx to both kiriseo & Iavra... I now have a place to start...
Original thread: https://forums.rpgmakerweb.com/threads/plugin-authoring-tutorials.47036/