This is for the YEP Attachable Augments plugin. I'm trying to add a specific augment slot at certain points in the game for specific armor ids with script calls.
I tried following the code snippet from this thread on the rpgmaker subreddit, but it doesn't seem to work.
I tried following the code snippet from this thread on the rpgmaker subreddit, but it doesn't seem to work.
JavaScript:
// Array of item IDs you want to modify
var itemIds = [500, 501, 502];
for (var i = 0; i < itemIds.length; i++) { var item = $dataArmors[itemIds[i]]; // Replace 'itemIds[i]' with the desired item ID
if (item !== undefined) {
if (item.meta.attachAugmentSlots !== undefined) {
var slots = Number(item.meta.attachAugmentSlots); item.attachAugmentSlots += 1; item.slots += 1;
if (slots > 0 && item.augmentSlots === undefined){
item.augmentSlots = []; }
for (var j = 0; j < slots; j++) {
item.augmentSlots.push("Glyph"); }
}
}
}