MZ Trying to alter just the first character's battle window, bit confused

Basically, doing a monster capture style game where the "Conjurer" can fight alongside their monsters. But doing a look through of the windows script, I see it's just a general window script for all the characters. I'm not even sure what to look up to figure out on my own how to overwrite JUST the party leader's window in the battles

Really just need to be pointed in the right direction unless there is a specific function I am clueless about
Basically, doing a monster capture style game where the "Conjurer" can fight alongside their monsters. But doing a look through of the windows script, I see it's just a general window script for all the characters. I'm not even sure what to look up to figure out on my own how to overwrite JUST the party leader's window in the battles

Really just need to be pointed in the right direction unless there is a specific function I am clueless about

This is something I also need to know about. ill take a look and let you know what i find ok? It really shouldn't be too hard to cook up a (dirty) solution. For now though do you have an understanding of how windows work? Basic or otherwise?
Do you have scripting experience? If so, could you try making a simple plugin that changes the window based on conditions? So you'd take all the relevant functions involved in making the window work/look how you want, and just put if-else branches in. I mean you'd have to either find a script call to directly check which battler's turn it is, or a round-about way to "mark" when it's that character's turn, to put as the condition. But that's how I'd try to start going about it.

If you don't have scripting knowledge/experience then I can maybe help you look into exactly what would need to be done with the code (and make sure this method could work).
Do you have scripting experience? If so, could you try making a simple plugin that changes the window based on conditions? So you'd take all the relevant functions involved in making the window work/look how you want, and just put if-else branches in. I mean you'd have to either find a script call to directly check which battler's turn it is, or a round-about way to "mark" when it's that character's turn, to put as the condition. But that's how I'd try to start going about it.

If you don't have scripting knowledge/experience then I can maybe help you look into exactly what would need to be done with the code (and make sure this method could work).

No Javascript experience, but some coding experience (had made a partial rpg engine on a TI-84, done CSS and the like, and figured out Lua to an extent. Lua is pure ass btw only thing I couldn't figure out somewhat easily)
had made a partial rpg engine on a TI-84
Woah, impressive!!
No Javascript experience
So would you like me to try to figure it out this weekend?
In case it helps as a starting point (source - rmmz_windows.js):
Spoiler: tips
  • Window_BattleStatus is a selectable window (inherits from Window_Selectable).
  • Each party member is represented by a single selectable "item" in that window.
  • Each item is drawn via the window's drawItem(index) method.
So I imagine you can just patch drawIndex (or one of the methods it calls) to do something different for index 0 (first item), e.g.
JavaScript:
(alias => {
  Window_BattleStatus.prototype.drawItem = function(index) {
    if (index === 0) {
      // your code here
    } else
      alias.apply(this, arguments);  // invoke original method
  };
})(Window_BattleStatus.prototype.drawItem);
Woah, impressive!!

So would you like me to try to figure it out this weekend?
Sorry, Friday through to now ended up busy so I forgot to check here. If you have time, that would be nice

In case it helps as a starting point (source - rmmz_windows.js):
Spoiler: tips
  • Window_BattleStatus is a selectable window (inherits from Window_Selectable).
  • Each party member is represented by a single selectable "item" in that window.
  • Each item is drawn via the window's drawItem(index) method.
So I imagine you can just patch drawIndex (or one of the methods it calls) to do something different for index 0 (first item), e.g.
JavaScript:
(alias => {
  Window_BattleStatus.prototype.drawItem = function(index) {
    if (index === 0) {
      // your code here
    } else
      alias.apply(this, arguments);  // invoke original method
  };
})(Window_BattleStatus.prototype.drawItem);

My team and I will try that out, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-alter-just-the-first-characters-battle-window-bit-confused.147513/