The problem with changing the whole sprite is that you then need a separate variant of the character for every possible combination of equipment they can have visible upon them. So the more slots you're adding distinct appearances for, the more exponentially your image requirements rise.
@doller554 I feel I should address some inaccuracies with things you've said. I'm not getting into whatever you have going on with other people here beyond pointing out that everyone who answers questions on these forums is an unpaid volunteer, we do it of our own volition, and there isn't some insidious plugin-plugging conspiracy you've unravelled. I don't disagree that often things can be solved with eventing, but you're starting to sound unhinged.
Here's the thing: every event command runs code under the hood; it's literally no different from what a plugin does. It's possible to inefficiently structure event commands, and it's possible to inefficiently code a plugin. Neither method is inherently superior to any other; the "correct" way to do something is the way that accomplishes what you want and doesn't introduce any side effects you don't want.
The pushback you're getting on your method stems, I believe, from three main potential issues:
1. A parallel process event runs every frame. If you're checking what equipment an actor has every frame, that's a huge number of frames on which you're performing a check that isn't actually needed, because equipment can only change when you change it. This might work, but it is not
the most efficient method.
2. As I said above, it introduces an exponential requirements increase where if you want to visually represent an additional item, you then have to create a new image for every possible combination of equipment that can also be equipped along with that item. Your method works, but it isn't
easily expandable.
3. It might not lag
now, but if you also end up with a lot of other parallel process events doing various things, that won't necessarily always be the case. And you can't guarantee it won't lag on another player's machine if they have older or less powerful hardware than you're using to test your project.
I'm really confused as to what you mean when you say "their plugin is checking EVERY SINGLE ITEM ATTACHED TO THE PLUGIN". If you're referring to waynee95's CustomOnEquipEval, it runs the code in the associated notetag only when the equipment item with that notetag is equipped. That's it. It literally
can't run at any other time, because it's part of an alias of Game_Actor's changeEquip function, which is only ever called when equipment changes. It's not checking every item, at all, ever, anywhere.
It's possible you've gotten confused by the part of the plugin that parses the notetags on weapons and armors, because that does process every item in the database,
but only at the very beginning of the game when data is created. The overhead of this is so minor as to be completely negligible, and it doesn't introduce something happening every frame that you have to keep track of as you add more things to your game in case it
does become an issue.
Using a plugin over eventing tends to become the more attractive solution, at least in my opinion, when directly editing the engine code allows you to eliminate repetitive or complex tasks that events simply cannot do on their own, and in which the part of the engine you need to execute them from isn't exposed enough to events to use the "script" command. (imagine for a second that someone wants to do this exact same thing, but has 6 characters with visual equipment and 6 equipment slots in which the item they have on is visible; can you tell me how many conditional branches your event would need for that?)
But I'm glad your suggestion seems to have worked for OP's needs at this time. I really hope that continues to be the case, but the idea that a plugin
can't solve this problem is as mental as the arguments you're saying other people in the thread are making. There's literally nothing events can do that a plugin is incapable of, because they end up routed through the same back-end codebase in the end.