MV Trying to set some restrictions on Yanfly's Attachable Augments.

Hello everyone,

I hope the festive season is treating you well!

I'm currently working on the various systems in my game and of course; I'm using the wonderful Attachable Augments plugin from Yanfly. I do have a couple of questions regarding it, however.

1. Is it possible to restrict an Augment so that it can only be attached to/by a certain actor?
I really want some augments to only be useable by one character.
Fortunately, each actor in my game has a unique class, and uses a unique weapon type, so restricting the augments that way would work too, if that helps.

I know I could make the Augments in question a particular type: unique to that weapon, but for the most part the weapons share attachment slot types, and it would look weird to have an empty slot visible on the weapon throughout the game, giving away the existence of an epic augment to be found later on!
It would also be weird to be able to attach two different blades to the same sword (as an example).

2. Currently the plugin allows the player to equip augments from the menu screen. Is there any way to change it so this can only be done in a specific place?

Ideally, I'm looking for a system were the player must go to a blacksmith in order to augment their weapons with the parts they've found.
In other words, they would walk up to the blacksmith and talk to him, which would open the augment window.

Any help on either of these points is greatly appreciated!

I spent some time searching the ol' world wide Web and couldn't find anything quite like what I'm trying to do here, but I may have missed something obvious.
I tried scouring the various plugin settings but couldn't find anything there, either.

Merci, Arigato, and Cheers for your time!
1. Is it possible to restrict an Augment so that it can only be attached to/by a certain actor?
Not as asked, because augments aren't attached to/by actors. They're attached by the menu to items.

The JavaScript notetags provided by the plugins only take effect after the augment has been attached or detached, so you can't use them to prevent it from being attached in the menu.

The only ways to do this would be to get someone to write a plugin extension for you that adds a requirement eval for attachments going into an item; or, as you say, use actor-specific items with specific slot types.

It would also be weird to be able to attach two different blades to the same sword (as an example).
I don't see how that's related - in the weapon's list of slots, you'd give it one Blade type.

2. Currently the plugin allows the player to equip augments from the menu screen. Is there any way to change it so this can only be done in a specific place?
You can use the plugin commands provided in the instructions to enable and disable augments.

In other words, they would walk up to the blacksmith and talk to him, which would open the augment window.
If you examine the process, there is no discrete augment window - it's a modification of what comes up when you select an item in the item menu. (to be technical, there is a window for it but you can't just call a window without it being attached to a scene)

So you would have to either:
- code/get someone to code a new scene with the appropriate window (might require you to pay for a commission)
- do it all by events on the blacksmith with the appropriate script calls (this is pretty complex)
- make events when you enter the blacksmith shop/talk to the blacksmith that enables the augments then disables them upon leaving (less immersive but simplest to execute)
I appreciate the guidance, ATT_Turan.

Okay, I'm glad in a way that I wasn't just being dense and these are things that require extra effort to achieve.

I'm going to look into script calls, then. I kinda understand what they do but I think I'll have a hell of a time finding the one to open that part of the menu... Unless I can get it to just open the inventory screen while augments are enabled. Would this work, do you think?

Thanks again for the help 🙂
You could, but I'm not sure how much of a point there is because you wouldn't be able to stop the player from navigating the rest of the menu.

So I think it would make more sense from a player UI perspective for the smith to tell them "this is enabled while you're in my shop" and have them do it through the menu normally.

Or get a custom scene coded for you.
You could, but I'm not sure how much of a point there is because you wouldn't be able to stop the player from navigating the rest of the menu.

So I think it would make more sense from a player UI perspective for the smith to tell them "this is enabled while you're in my shop" and have them do it through the menu normally.

Or get a custom scene coded for you.
I basically did what you suggested but using the script call: SceneManager.push(Scene_Item);

The Blacksmith now enables augments and opens the Inventory menu, then closes it when the player cancels out of the menu and disables the augments again.
This is now close to perfect, so I'm happy 😀 Thanks again for your help on this!

I'll have to ask about for the attachment restrictions, but that can wait for now 🙂

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-set-some-restrictions-on-yanflys-attachable-augments.163624/