Another VisuStella Equip Core question

Last post: https://forums.rpgmakerweb.com/inde...-item-and-equip-question.151857/#post-1305260
I have another question regarding the VisuStella Equip Core. Last time I ask:
Spoiler: Last Post
I was wondering if there is a method to disable certain armor to be equipped if you have another equipped.
For example, if you have the "Light Sword" (Weapon) equipped you can't equip the "Dark Gauntlets". (Armor) and vice-versa.
This time I was wondering how would I do the opposite. For example, In order to equip the "Shirt" you need to have a "Jacket" equipped. ( Red Jacket, Blue Jacket, Green Jacket)
Using the same plugin I gave you last time, and pretending that the Light Jacket has an ID of 102, you could put this in the note tag of the Light Shirt:

Code:
<JS Equip Enable>
 enabled = user.hasArmor($dataArmors[102]);
</JS Equip Enable>
Using the same plugin I gave you last time, and pretending that the Light Jacket has an ID of 102, you could put this in the note tag of the Light Shirt:

Code:
<JS Equip Enable>
 enabled = user.hasArmor($dataArmors[102]);
</JS Equip Enable>
This code works, however, how would make I make it so it so I can multiple jackets be worn over the shirt.
Sorry, I didn't clarify I will update the thread's description.
Just to verify, are you wanting it so that you need to have the shirt equipped in order to equip one of the jackets? Or you need to have one of the jackets equipped in order to equip the shirt? The edited version of the first post suggests the latter, but the former seems more intuitive to me, so I just want to make sure that you meant it the way you wrote it.
Just to verify, are you wanting it so that you need to have the shirt equipped in order to equip one of the jackets? Or you need to have one of the jackets equipped in order to equip the shirt? The edited version of the first post suggests the latter, but the former seems more intuitive to me, so I just want to make sure that you meant it the way you wrote it.
I want one of the jackets equipped in order to wear the shirt.
Supposing that the jackets have IDs of 102, 103, and 104, try putting this in the note box of the shirt:

Code:
<JS Equip Enable>
 const jacketIds = [102, 103, 104];
 enabled = false;
 
 for (const id of jacketIds) {
     if (user.hasArmor($dataArmors[id])) {
         enabled = true;
         break;
     }
 }
</JS Equip Enable>

Just change the jacketIds array to contain the actual IDs of the jackets.
I was able to make it work. Thanks again for helping me out.

Original thread: https://forums.rpgmakerweb.com/threads/another-visustella-equip-core-question.152128/