MZ VS Quest System Text Color Issue

Hey all,

I'm using VS Quest System, and I would like to highlight some words using \C codes. However, when a quest is completed, it breaks the "quest is green" style as seen on this screenshot:

1735295877888.png


Any ideas?
It is hard to fix becaue there's no 'default color' logic as far as I know.
And since it is VS there's little you can do to patch the code (maybe rewrite the original \C logic?).

Edit*

I made a small patch that allow you go back to previous color using \C[255]
I wonder if it works in the quest log, but I have tested it in a message window and it works just fine.
JavaScript:
//message color patch, use \C[255] to go back to previous color
(function(alias){
Window_Base.prototype.processColorChange = function(colorIndex) {
  this.colorStack = this.colorStack||[];
  if(colorIndex==255){
    this.colorStack.pop();
    colorIndex = this.colorStack.pop()||0;
  }
  this.colorStack.push(colorIndex);
  alias.call(this,colorIndex);
};
})(Window_Base.prototype.processColorChange);
(function(alias){
Window_Message.prototype.processNewPage = function(textState) {
  this.colorStack = [];
  alias.call(this,textState);
};
})(Window_Message.prototype.processNewPage);

Original thread: https://forums.rpgmakerweb.com/threads/vs-quest-system-text-color-issue.174205/