A quick question about Yanfly's Attachable Augments plugin

Hi everyone! I'm new to the forums and RPG Maker MV so forgive me if I don't understand something or if this thread is in the wrong section.

I have Yanfly's Attachable Augments plugin installed and I was wondering if it is possible to make it so equipping augments can only be equipped by, say, a blacksmith instead of the player while in the player's inventory. Any help would be highly appreciated!
Would you please edit your post to include a link to the plugin so that people who might help you don't have to go hunting for it.

Moved to: JavaScript/Plugin Support
My apologies, I'll make sure I post threads in the correct forum next time. I've edited my post with a link to the plugin.
Yes, this is possible.
However, it requires the use of scriptcalls.

The scriptcall to add an augment to an item is:
PHP:
ItemManager.applyAugmentEffects(item, effectItem, slotId, gain)

item - refers to the item to be augmented
effectItem - refers to the augment
slotId - refers to the augment slot id
gain - does it consume the augment item

An example:
PHP:
ItemManager.applyAugmentEffects($gameActors.actor(1).equips()[0], $dataItems[1], 0, false);
This would add an augment to the weapon in slot 0 of actor 1. The augment is the item with id 1. The augment will be inserted in augment slot 0 and it will consume the augment item.

If you are a beginner on using scriptcalls, this might be not that easy to implement. If you have any questions, just ask.
Yes, this is possible.
However, it requires the use of scriptcalls.

The scriptcall to add an augment to an item is:
PHP:
ItemManager.applyAugmentEffects(item, effectItem, slotId, gain)

item - refers to the item to be augmented
effectItem - refers to the augment
slotId - refers to the augment slot id
gain - does it consume the augment item

An example:
PHP:
ItemManager.applyAugmentEffects($gameActors.actor(1).equips()[0], $dataItems[1], 0, false);
This would add an augment to the weapon in slot 0 of actor 1. The augment is the item with id 1. The augment will be inserted in augment slot 0 and it will consume the augment item.

If you are a beginner on using scriptcalls, this might be not that easy to implement. If you have any questions, just ask.

I've never done scripting before so I'm going to have to ask some questions lol. How could I make it so the player is unable to equip augments but still allow the blacksmith to equip them? Also how can I make it so it adds the effect of dual wielding? One more question for this post, could you recommend a good tutorial on scripting?
The player can augment items through the item menu. So you would have to get rid of that command which enables you to add augments. But that would require you to edit the plugin because normally that's the only way to augment items so there no option by default to turn that off.

What do you mean with adding the effect of dual wielding? That that item does the same as the actor trait dual wield?

Check out SRDude on YouTube. He has some scripting stuff. Also check out the second last link in my signature.
The player can augment items through the item menu. So you would have to get rid of that command which enables you to add augments. But that would require you to edit the plugin because normally that's the only way to augment items so there no option by default to turn that off.

Guess I'm going to have to learn JavaScripting then. Do you know which command it is exactly?

What do you mean with adding the effect of dual wielding? That that item does the same as the actor trait dual wield?

Yes, the actor trait. I managed to get it working with an item before but I thought adding it to an augment would be cool. With the item, I was able to get it so the player could only dual wield while equipped with said item.

Check out SRDude on YouTube. He has some scripting stuff. Also check out the second last link in my signature.

I'll have to check them out. Thanks for the recommendations!
This function adds the option to modify the augment slots in the item menu.
PHP:
Window_ItemActionCommand.prototype.addCustomCommandsF = function() {
  Yanfly.Augment.Window_ItemActionCommand_addCustomCommandsF.call(this);
  if (this.isAugmentable()) this.addAugmentSlots();
};

In order to remove that, we can just comment that line out.
PHP:
Window_ItemActionCommand.prototype.addCustomCommandsF = function() {
  Yanfly.Augment.Window_ItemActionCommand_addCustomCommandsF.call(this);
  //if (this.isAugmentable()) this.addAugmentSlots();
};

Just open the plugin and look for that line.

Original thread: https://forums.rpgmakerweb.com/threads/a-quick-question-about-yanflys-attachable-augments-plugin.82595/