Using Yanfly's Item Upgrades

Still cannot figure out how to check if a weapon has acquired a trait like an additional attack or a chance of poison damage. How do I check with a script call? I can finally call the stats and boost count just not the special traits.


This is what I'm using to give additional attacks:


<Upgrade Effect>


Eval: item.traits.push({"code": 34, "dataId": 0, "value": 1})


</Upgrade Effect>


so I want something like "if actor 1 weapon has an additional attack" Thanks to anybody willing to help! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/using-yanflys-item-upgrades.59504/