MV Yanfly Weapon Unleash "Item" Addon

Hello, I'm trying to make an addon for changing "item" command to a skill in the battle for Yanfly's Weapon Unleash.
I've no idea what I'm doing wrong but I can't change the item command to a skill in the battle no matter what.
The actor notetags like that, can change Attack and Guard skill as intended but can't do that on Item.
1636234277717.png

Can anyone check out the edited script?

removed by mod
I haven't taken the time to try to read through your code, but I will suggest you remove the attachment.

I know it will be more difficult to get help troubleshooting, but Yanfly's Terms of Use prohibit distributing any YEP plugins or code thereof, and especially the Weapon Unleash is a paid plugin.
Hello, I've solved my issue with using AES_CommandControl. So that when I equip an item I lose the ability to use Items but in exchange, I'll learn a new command.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-weapon-unleash-item-addon.141907/