MZ canEquip & canEquipWeapon & canEquipArmor

Okay, I'm stumped. I'm pretty sure canEquipWeapon(id) is supposed to return true/false if the actor is able to equip the item.

$gameActors._data[1].canEquipWeapon($dataWeapons[1].id) $gameActors._data[1].canEquipWeapon($dataWeapons[1].wTypeId) $gameActors._data[1].canEquipWeapon($dataWeapons[1].eTypeId) $gameActors._data[1].canEquipWeapon($dataWeapons[1].name) $gameParty.leader()...variants
These are all returning false for me, and I don't understand why. In both situations, Actor 1 is the leader is Reid (as is default in RMMZ. And weapon ID # 1 is Short Sword (again as is default in RMMZ).

Shouldn't this be saying 'True' he can equip the Short Sword? I've changed nothing about the item, the actor, the class. Have tried to run it with both a short sword in the inventory while he has one equipped, and one in the inventory when he doesn't have it equipped. I've tried just checking with 1 equipped and none in inventory, and none equipped, none in inventory.

Am I just checking against the wrong bit of information / mismatched comparisons?
The reason I need this, is I'm using visustella's visual text windows, for a shop, that when walking near the equipment shelves, will display equipment currently equippable by the user selected or leader. Kind of like a live browse without actually talking to anyone, you know? Just literal window shopping.

But as it is now, it always says unequippable because it's returning false, despite me being able to manually equip them through the equipment menu.

So again, I'm stumped. I ask that those in the know please help me out.
Okay, I'm stumped. I'm pretty sure canEquipWeapon(id) is supposed to return true/false if the actor is able to equip the item.
Yes, but you have the wrong argument syntax. It doesn't take an ID, it takes an object of the EquipItem type. So the syntax would be, for example, $gameActors.actor(1).canEquipWeapon($dataWeapons[1])
$gameActors._data[1].canEquipWeapon($dataWeapons[1].id)
If it were working off of IDs, why would you ever do that instead of canEquipWeapon(1) ? 😉
Omg. That worked. And you're right I was curious on that too and also tried to do that and failed, which is why I was so stumped. Thanks again.

Original thread: https://forums.rpgmakerweb.com/threads/canequip-canequipweapon-canequiparmor.144270/