Batch Equipment Given/Taken

Is there a way to do this? Possibly with script but unsure if there's an easy way in base program.

Basically what I'm trying to do is rather than have several lines of "Change Item/Weapon" that each adds only 1 item, I'd rather have a list of "Here are the items the player is getting or losing".

Not sure if that's possible though but even a "No this isn't possible" would help out.
Hi!
I don't know if I understand you correctly. DO you mean to give and take an item from the party?
Or do you mean remove and equip weapons/armors from the party?
The program itself doesn't have a batch function for this. But you could use a scriptcall to do that.
JavaScript:
$gameParty.gainItem($dataItems[itemId], amount);
Hi!
I don't know if I understand you correctly. DO you mean to give and take an item from the party?
Or do you mean remove and equip weapons/armors from the party?

Okay so say I have the Player open up a treasure chest. It had 5 Pieces of gear, different pieces. The event would look like;
Change Weapon +1
Change Armor +1
Change Armor +1
Change Armor +
Change Accessory +1

And if I wanted to force equip players, it would be the same. Several lines of "Change Equipment". Rather than having several lines taking up the event, is there an easier and faster way to do this.

I believe Mewgles might be onto it and will have to check.
Oh yes, I get. Yes it has a way, You can a script call:
JavaScript:
const newItems = [ 3, 4, 5, 5, 1 ] // List
for(let i = 0, l = newItems.length; i < l; i++){
    $gameParty.gainItem($dataItems[ newItems[i] ], 1);
}

This code will loop into the list "newItems" that contains the Id of the items you want.
The only problem is that you have to make different script calls for items, weapons, and armors:
JavaScript:
$gameParty.gainItem($dataWeapons[i], 1);

$gameParty.gainItem($dataArmors[i], 1);

So in that case, you can simply copy and paste what I wrote there and only change the List and/or the script call you want.
Oh if I have to do that script command for each 'batch' of items, that's still better than just a bunch of items tossed out. I'll give it a shot and and see how it does tomorrow(Late for me).

Thanks for helping.

Original thread: https://forums.rpgmakerweb.com/threads/batch-equipment-given-taken.125356/