I need help

I made a new icon set for a game I'm making, I want to know how to change the buff and debuff Icons. I checked the forum but haven't found an answer. Can someone help?

I haven't been using plugins (at least not yet).
Moderator note: Please edit your title into something that tells us what you want help with
Because everyone here needs help, and you'll get it faster by telling people what you need help with...


That said, you have a problem.
Icons are identified by their index, that is their position on the icon sheet. And the icons for the buffs are hard-coded into the engine.

So not only you would have to use a plugin for changing the engine, that plugin would have to be written specifically for the iconsheet you want if you wish to use different positions for the icons.

Basically it would be less work to use GIMP or any other image program to place your buff icons into the correct positions as needed by the default engine...
Thank you
Um, actually, the buff/debuff icons are not hardcoded into the engine. Their starting icon index is in the rpg_objects.js file, line 2120:

Code:
Game_BattlerBase.ICON_BUFF_START      = 32;
Game_BattlerBase.ICON_DEBUFF_START    = 48;
@Naveed
That is what I call hardcoded, especially since you can only set the starting index (the rest of the icons need to follow in the parameter sequence) and you need to use a plugin to comfortably change it (if you edit the core file directly, the change would be overwritten at each engine update)
@Andar Yes, you would need a plugin, obviously.

However, you can set more than just the starting index.

Code:
Game_BattlerBase.prototype.buffIconIndex = function(buffLevel, paramId) {
    if (buffLevel > 0) {
        return Game_BattlerBase.ICON_BUFF_START + (buffLevel - 1) * 8 + paramId;
    } else if (buffLevel < 0) {
        return Game_BattlerBase.ICON_DEBUFF_START + (-buffLevel - 1) * 8 + paramId;
    } else {
        return 0;
    }
};

Since this is the function that controls the buff/debuff icons, someone decent in js can easily edit this function in a new js file and use any icon they want for any buff level (I myself made it 4 rows instead of 2 in my project). They don't have to rely on the Game_BattlerBase.ICON_BUFF_START at all. The default is set in a sequence for obvious ease of usage.

Although I agree, it's much easier to simply use the default positions of the engine. Also, assuming the OP is new to the program, I would not recommend handling js files before becoming more accustomed to the built in features.

Original thread: https://forums.rpgmakerweb.com/threads/i-need-help.81430/