Change attack icon to the character's equipped weapon

(Im using BattleEngineCore from Yanfly, which displays the icons when you use an action)

I had an idea for the game im working on, that when you attack with a character, the attack icon instead of being the normal one, becomes the character's weapon they have equipped. But i have no idea on how i could do it.

If the only way is buying a plugin that can do that, im gonna have to give up on this idea, because i would rather not use money to make this project im working on.
There's a plugin that comes with the engine called WeaponSkill.js. It replaces the attack skill to that assigned to the currently equipped weapon. This may work as a simple solution, and opens up opportunities to make weapons more unique. But if you have too may weapons with unique icons it may not be a viable solution.
I had an idea for the game im working on, that when you attack with a character, the attack icon instead of being the normal one, becomes the character's weapon they have equipped. But i have no idea on how i could do it.
i gave someone a notetag a little while back that does that. it required Yanfly's skill core, but it does what you asked
Code:
<Cost Display Eval>
item.iconIndex = user.weapons()[0] ? user.weapons()[0].iconIndex : 0
</Cost Display Eval>
i gave someone a notetag a little while back that does that. it required Yanfly's skill core, but it does what you asked
Code:
<Cost Display Eval>
item.iconIndex = user.weapons()[0] ? user.weapons()[0].iconIndex : 0
</Cost Display Eval>
Wouldn't that display it as a cost rather than in the battle log?
Wouldn't that display it as a cost rather than in the battle log?
youre thinking of the <Custom Cost Display> notetag.

The <Cost Display Eval> is *intended* to be used to set up variables to be used in a <Custom Cost Display>, but its a place that I knew I can run JS from that precedes the skill icon's icon being drawn in menus.
So i just hijacked and used it to set the icon instead of doing anything with costs. Back when i gave it to the other person i gave it a few tests to make sure it worked as intended and they havent responded with any issues since then.
I tried using the WeaponSkill plugin and it worked like i wanted to. Only issue is that i need to make a bunch of new skills for each weapon, but its not too much of a big deal, because the game will only have 16 different weapons.

That also gave me an idea for something to another project i may work on in the future...

But anyways, Thanks for the help.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/change-attack-icon-to-the-characters-equipped-weapon.178391/