MV Checking for Attach Augments

Is there a way to check if an actor has a specific attachable augment item slotted into any piece of their active equipment without using passive states?
I made a set of augment items to upgrade skills that the player can use. The plan was to have a passive for each and use those states as the trigger for the extra effects (they exist as conditionals within the skills themselves using yanfly skill core tags), but with the amount of augments that i drafted and the remaining number of state slots i currently have left for the project, id rather avoid using states for this.
It'd be extra helpful for you to say and link and stuff, but I presume you're talking about Yanfly's Attachable Augments 😉 😛

Looks like you should be able to do:
Code:
equipment.augmentSlotItems.some(augment => augment=="item 69");
where
- "equipment" is a reference to the item you're checking

- "item" is the type of database object the augment is (item/weapon/armor)

- "69" is the augment's ID
your assumption was correct. Ill be sure to choose an obscure one in the future to shake things up
equipment.augmentSlotItems.some(augment => augment=="item 69");
works like a charm! I got it to do what i needed and then some. some of the effects can even stack now, which was a thought i had to kill earlier when i was still thinking about having it work with passives
Thank you

Original thread: https://forums.rpgmakerweb.com/threads/checking-for-attach-augments.162211/