What's The Ace Equip Engine Change Equip Script Call?

I'm using Yanfly's Ace Equip Engine script, which overwrites the Change Equip script call. I'm not versed enough to know what the new script call would be. Can anyone show me how it'd be written? Thanks in advance.

(Just in case it comes up: I wrote this in the "doesn't deserve its own thread" thread a month back and didn't get a reply, which is why I'm posting a thread)
I believe you didn't get a response because Yanfly Ace Equip Engine does not overwrite the method, it alias's the method.

change_equip(slot_id, item)
which you might use as $game_actors[1].change_equip(slot_id, item)
but you would need 'item' to be an item as required by the original code.

The interpreter method overwrites the original, but that's not a method you call. It's run when you use the change equip command in an event command.
I believe you didn't get a response because Yanfly Ace Equip Engine does not overwrite the method, it alias's the method.

change_equip(slot_id, item)
which you might use as $game_actors[1].change_equip(slot_id, item)
but you would need 'item' to be an item as required by the original code.

The interpreter method overwrites the original, but that's not a method you call. It's run when you use the change equip command in an event command.
I tried $game_actors[1].change_equip(slot_id, item) with the script both on and off in a fresh project with no other scripts.

The result is that the script call without the script goes over fine. But with the script: it disappears the item from my inventory without equipping it to anyone.

What I'm trying to figure out is what the functioning script call is while the script is on.
What I'm trying to figure out is what the functioning script call is while the script is on.
and I'm trying to tell you they are the same. There is no change.
1734569483749.png

1734569505943.png

1734569530405.png


With script
1734569574832.png

1734569505943.png

1734569603512.png


What you are most likely doing is using the wrong slot or equipping an item into a slot that it cannot be put in. In that case the command will work and the item is removed from inventory but not put in the slot.


For instance if I take the example above and change the slot to 1
1734569744656.png


The weapon is gone
1734569772770.png

But instead I now have an extra shield
1734569809056.png


But when it goes in the correct slot I get the old item in my inventory.
1734569860658.png


So if the slot you were trying to put something in was empty then you would get nothing added to your inventory.
Found the problem. I wrote the item id and not $data_weapons[item id]. Thanks for your help.
This thread is closed due to being reported as solved. If you need it reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/whats-the-ace-equip-engine-change-equip-script-call.173980/