I would like to know how to restrict an Augment so only one character can attach it. So, I want my MC to attach a special augment, but I don't want to be available to any other characters in my game. I've looked at Maliki Augment Restrict plugin, but it doesn't seem to have this particular feature. Yanfly didn't add this feature to the original script as far as I can see - Though they do have a Lunatic Mode that I feel could be utilized for this, if only I knew what I was doing there.
Help, please
But isn't that stuff attached in the item scene and not by any specific actor? So you can attach it to weapons/armor that no one has equipped. And even if you attach it to weapons/armor that a certain character has equipped, you can just remove that equipment and give someone else, right? So even if you code attach restrictions, you can get around them, unless you build other kinds of restrictions too. What's the system you were planning on? (The JS code in that plugin is stuff that runs when you've already attached/removed augments.)
Well, I only have two playable characters and they are unable to equip each others weapons and armor. But they can use any augment for their weapons and armor... So what I want is an augment that can only be attached to a specific character... or is it's easier to do, a specific weapon. One main character uses guns... the other wands.
Maybe make it so that the augment can only be attached to a gun? or Wand?
If you want it just for one item, I think you can add a check into the function that lists the items (change wtypeId to whatever weapon type id and item id to the augment item id). You can also alias the function if you want:
Window_AugmentItemList.prototype.includes = function(item) {
if (!item) return false;
if (DataManager.isIndependent(item)) return false;
if (SceneManager._scene.item().etypeId === 1 && SceneManager._scene.item().wtypeId === 4 && item.id === 1) return false; // EXTRA LINE
if (!this.containsType(item)) return false;
return true;
};
Nah, copy paste into notepad, save as .js file and add to your plugin folder and add as a plugin in the manager, below Yanfly's plugin.