can i request a change in your Message Core plugin?
this
Spoiler
Window_Message.prototype.convertEscapeCharacters = function(text) { text = Window_Base.prototype.convertEscapeCharacters.call(this, text); text = this.convertNameBox(text); text = this.convertMessageCharacters(text); return text;};Window_Message.prototype.convertNameBox = function(text) { text = text.replace(/\x1bN\<(.*?)\>/gi, function() { return Yanfly.nameWindow.refresh(arguments[1], 1); }, this); text = text.replace(/\x1bN1\<(.*?)\>/gi, function() { return Yanfly.nameWindow.refresh(arguments[1], 1); }, this); text = text.replace(/\x1bN2\<(.*?)\>/gi, function() { return Yanfly.nameWindow.refresh(arguments[1], 2); }, this); text = text.replace(/\x1bN3\<(.*?)\>/gi, function() { return Yanfly.nameWindow.refresh(arguments[1], 3); }, this); text = text.replace(/\x1bNC\<(.*?)\>/gi, function() { return Yanfly.nameWindow.refresh(arguments[1], 3); }, this); text = text.replace(/\x1bN4\<(.*?)\>/gi, function() { return Yanfly.nameWindow.refresh(arguments[1], 4); }, this); text = text.replace(/\x1bN5\<(.*?)\>/gi, function() { return Yanfly.nameWindow.refresh(arguments[1], 5); }, this); text = text.replace(/\x1bNR\<(.*?)\>/gi, function() { return Yanfly.nameWindow.refresh(arguments[1], 5); }, this); return text;};
to this:
Spoiler
Window_Message.prototype.convertEscapeCharacters = function(text) { text = this.convertNameBox(text); text = Window_Base.prototype.convertEscapeCharacters.call(this, text); text = this.convertMessageCharacters(text); return text; }; Window_Message.prototype.convertNameBox = function(text) { text = text.replace(/\\N\<(.*?)\>/gi, function() { return Yanfly.nameWindow.refresh(arguments[1], 1); }, this); text = text.replace(/\\N1\<(.*?)\>/gi, function() { return Yanfly.nameWindow.refresh(arguments[1], 1); }, this); text = text.replace(/\\N2\<(.*?)\>/gi, function() { return Yanfly.nameWindow.refresh(arguments[1], 2); }, this); text = text.replace(/\\N3\<(.*?)\>/gi, function() { return Yanfly.nameWindow.refresh(arguments[1], 3); }, this); text = text.replace(/\\NC\<(.*?)\>/gi, function() { return Yanfly.nameWindow.refresh(arguments[1], 3); }, this); text = text.replace(/\\N4\<(.*?)\>/gi, function() { return Yanfly.nameWindow.refresh(arguments[1], 4); }, this); text = text.replace(/\\N5\<(.*?)\>/gi, function() { return Yanfly.nameWindow.refresh(arguments[1], 5); }, this); text = text.replace(/\\NR\<(.*?)\>/gi, function() { return Yanfly.nameWindow.refresh(arguments[1], 5); }, this); return text; };
basically make the name box text to be updated 'before' window base convert escape character executed...
to maintain the original text when passed to name box (since name box is executing convert escape character too)
i ask this because i made auto color plugin here:
http://forums.rpgmakerweb.com/index.php?/topic/49350-est-auto-text-color-plus/
it can color certain text... or certain escape code... to certain color.
the text you pass to Window_NameBox is already convert all \n[x] to actor x name...
so when i have this:
color actor 1 (\n[3]) to color 3
color text "Doraemon" to color 4
actor 1 name is Doraemon Zero
when using:
\n<\n[3]>
it will be auto colored only the doraemon part with color 4.
because it will become like this:
\c[3]\c[4]Doraemon\c[0] Zero\c[0]
the step why it become like that is like this
because by window base convert escape character... it transform:
\n<\n[3]>
to:
\n<\c[3]Doraemon Zero\c[0]>
then that text passed to name box and because it contain Doraemon Text... it transform to:
\n<\c[3]\c[4]Doraemon\c[0] Zero\c[0]>
this is not happening in message box... just in name box...
with above changes... it fix that behaviour. i could add that code as patch in my plugin... but since it's overwritting... it mean that when there's a change in your plugin... i will have to redo the patch... if it's ok for you... could you implement those change.
😀
sorry if above is not clear enough >.<. it's quite hard to explain this.
edit: for now i updated my plugin to include those overwrite code as patch but with plugin parameter to turn it on/off.