MZ I want to show all states at once during battle

So I am trying to make a plugin with Chat GPT, and I thought it was simple, but I have tried over 10 times with no results at all. Except one of the versions squished the battle status window. ANYWAY, what I am trying to do is make it so that all state icons appear at once during battle, like if an actor has 3 states, the status window shows all 3 states at once instead of them flashing between each other. This is the code the AI spat out:

//=============================================================================
// DS_MultipleStatusIcons.js
//=============================================================================

/*:
* @plugindesc Displays multiple status icons for RPG Maker MZ
* @Author ChatGPT
*
* @param X Position
* @desc The X position of the icons
* @Default 6
*
* @param Y Position
* @desc The Y position of the icons
* @Default 64
*
* @param Max Columns
* @desc The maximum number of columns of status icons before a new row is started
* @Default 3
*
* @Help DS_MultipleStatusIcons.js
*
* This plugin displays multiple status icons for each actor in the battle status window during battle.
*
* Compatibility:
* - This plugin should be compatible with most VisuStella MZ plugins
*
*/

var Imported = Imported || {};
Imported.DS_MultipleStatusIcons = true;

(function() {
var parameters = PluginManager.parameters('DS_MultipleStatusIcons');
var xPos = Number(parameters['X Position']) || 6;
var yPos = Number(parameters['Y Position']) || 64;
var maxColumns = Number(parameters['Max Columns']) || 3;

// Override VisuStella MZ Library Engine's drawActorIcons method
if (typeof Window_BattleStatus !== 'undefined') {
var _alias_Window_BattleStatus_drawActorIcons = Window_BattleStatus.prototype.drawActorIcons;
Window_BattleStatus.prototype.drawActorIcons = function(actor, x, y, width) {
width = width || 144;
var icons = actor.allIcons();
var rows = Math.ceil(icons.length / maxColumns);
for (var i = 0; i < icons.length; i++) {
var row = Math.floor(i / maxColumns);
var col = i % maxColumns;
this.drawIcon(icons, x + col * Window_Base._iconWidth, y + row * Window_Base._iconHeight);
}
};
}

// Override VisuStella MZ Library Engine's drawActorSimpleStatus method
if (typeof Window_BattleStatus !== 'undefined') {
var _alias_Window_BattleStatus_drawActorSimpleStatus = Window_BattleStatus.prototype.drawActorSimpleStatus;
Window_BattleStatus.prototype.drawActorSimpleStatus = function(actor, x, y, width) {
_alias_Window_BattleStatus_drawActorSimpleStatus.call(this, actor, x, y, width);
this.drawActorIcons(actor, x + 162, y);
};
}
})();

----THAT'S IT----

I know like 0.000001% of Javascript. Is this even in the ballpark? Or maybe there is a small fix? Help!!!!
what I am trying to do is make it so that all state icons appear at once during battle, like if an actor has 3 states, the status window shows all 3 states at once
and what do you want to happen if the actor has 25 states applied? How do you want them to fit on the screen?
ChatGPT is an AI, not a god in plugin making.

if you dont have JS knowledge, how would you know what the plugin does?
you need to understand the code and fix or write your own, it isn't magic
what an AI does.

it mostly guesses it, but you need to debug yourself to fix it, not other people
to fix your code that chatGPT make.
What is the output of that code on the screen and what errors is it showing in the console log?
What is the output of that code on the screen and what errors is it showing in the console log?
It just does nothing. No changes.
and what do you want to happen if the actor has 25 states applied? How do you want them to fit on the screen?
Hm, I think at that point I'd want them to cover the entire screen! XPP
There's nothing in the console log? Really?
It just does nothing. No changes.
and that is because most of its programs never work.
If you followed any of the discussions about the chatbot here on the forum, you would know that it takes some knowledge and dozens to hundreds of tries to get one of the rare functioning results from that.

There is no true AI anywhere on earth, because no one managed to build one yet, not even the biggest companies.
What is called AI by the non-educated people are expert systems that basically guess with statistics.
And you cannot guess a program functional with random changes.
There's nothing in the console log? Really?
No :\
ChatGPT seems to understand Javascript fine since it's open source and it has an abundance of data and examples of Javascript implementation but when you start asking it to work within the framework of RPG Maker MZ or a blackbox like Visustella it struggles, because it doesn't have access to Visustella's source code and I'm not sure how much access it has to RPG Maker MZ's source code. It also has a much smaller pool of data to draw on for RPG Maker MZ feature implementation than Javascript in general.

I don't know what VisuStella plugin you're using and I don't have MZ. You're telling it to overwrite the functions (drawActorIcons and drawActorSimpleStatus) in the Window_BattleStatus class in rpg_windows.js. Those functions don't exist in the Window_BattleStatus class in default rpg_windows.js, they exist in other window classes.

It's going to be a reference error trying to do this:
var _alias_Window_BattleStatus_drawActorIcons = Window_BattleStatus.prototype.drawActorIcons;

or this:
var _alias_Window_BattleStatus_drawActorSimpleStatus = Window_BattleStatus.prototype.drawActorSimpleStatus;

because the function on the right side of the = sign doesn't exist.

Original thread: https://forums.rpgmakerweb.com/threads/i-want-to-show-all-states-at-once-during-battle.156733/