Hello once again everyone,
Using Waynee95's Equip Eval plugin, I am trying to have a 2handed weapon, on equip, toggle the actor's slot type from Dual Wield to Normal (and also seal the off hand slot), and on unequip, toggle it back to dual wield. Here are my notetags:
<Custom On Equip Eval>
user.traits.push({code: 55, dataId: 0, value: 1})
</Custom On Equip Eval>
<Custom Remove Equip eval>
user.traits.splice({code: 55, dataId: 0, value: 1})
</custom remove equip eval>
However, this is causing a "CUSTOM ON EQUIP ERROR" error when I equip the weapon. My assumption is that it's because "user" is not defined as $gameActors.actor(x).
My workaround would be to have another line defining user as whatever actor is currently using the "equip" scene (since items can only be equipped/unequipped from the equip scene). Something like:
<Custom On Equip Eval>
var user = <whatever script call checks which actor is using the equip scene>
user.traits.push({code: 55, dataId: 0, value: 1})
</Custom On Equip Eval>
My problem is I don't actually know (and am having trouble finding out) how to check which actor is in the equip scene currently.
Using Waynee95's Equip Eval plugin, I am trying to have a 2handed weapon, on equip, toggle the actor's slot type from Dual Wield to Normal (and also seal the off hand slot), and on unequip, toggle it back to dual wield. Here are my notetags:
<Custom On Equip Eval>
user.traits.push({code: 55, dataId: 0, value: 1})
</Custom On Equip Eval>
<Custom Remove Equip eval>
user.traits.splice({code: 55, dataId: 0, value: 1})
</custom remove equip eval>
However, this is causing a "CUSTOM ON EQUIP ERROR" error when I equip the weapon. My assumption is that it's because "user" is not defined as $gameActors.actor(x).
My workaround would be to have another line defining user as whatever actor is currently using the "equip" scene (since items can only be equipped/unequipped from the equip scene). Something like:
<Custom On Equip Eval>
var user = <whatever script call checks which actor is using the equip scene>
user.traits.push({code: 55, dataId: 0, value: 1})
</Custom On Equip Eval>
My problem is I don't actually know (and am having trouble finding out) how to check which actor is in the equip scene currently.