MV [YEP_X_ItemDisassemble] Is it possible to use weapons as disassembly kits?

I wanted to use hammers and knives as disassembly kits, for smashing metal or cutting cloth into scraps. But it seems only non-independent items can be disassembly kits. How many functions would need to be added or modified in order to allow weapons to be disassembly kits?
probably 2 or 3 or a more modern function a 1.

than using notetag <disable with knife> for example.
so using a hammer would have no effect or gain nothing, using
a knife will get you items.

depends which plugin you use, how its made to give what item(s)
or at random from the pool.

from there, we can check further, but I think there was a plugin
to disassemble items already if you do so.


Edit:
I thought on items to do so, but weapons, for usage (my bad).

it require modifications, so it wouldn't be to hard to modify,
I can check how its read and how to do so (or not) but it need
probably in multiple sections.
Before modifying the main plugin (as forcing independent items to work may break other things), is there a way you could use regular items to take the place of the weapons?
Like in addition to getting the hammer or knife, a version of it is granted to the party ONLY for use in disassembly?

If them being in the party's inventory is an issue, I think a small plugin could be made to temporally grant non-independent items.

Just let us know which way you'd like to go.
Before modifying the main plugin (as forcing independent items to work may break other things), is there a way you could use regular items to take the place of the weapons?
Like in addition to getting the hammer or knife, a version of it is granted to the party ONLY for use in disassembly?

If them being in the party's inventory is an issue, I think a small plugin could be made to temporally grant non-independent items.

Just let us know which way you'd like to go.
Since items would be disassembled from the item menu, it creates an issue unless the dummy items are in a hidden item category. That could be done.
The other issue is quantity. It would likely take the total durability of all applicable items and add based on that. But it also needs to take that durability *away* when the item is used.
Adding the dummy items also needs to trigger on all possible instances of the item meny being opened.
So wait...
Just to make sure I understand, you want the durability of the disassembly items to factor in?
How would you do that since the plugin doesn't currently accept independent items?

As for making the dummy items, I can throw that together in a few hours.
And the idea I had was that the items would be granted when opening the disassemble window only so would not show up in the inventory.
(And there'd only be one per type. So if you had say 15 hammers, it would only show 1 in the disassemble menu.)

EDIT: I forgot that the disassemblers get consumed upon use. And with that, I understand your desire to utilize the durability of the items.

I can still do the extension I mentioned, but I don't think it will help as much.
There's a LOT of changes that would need to be made here.
It's not impossible and would probably be useful for others, so I'll continue brainstorming, but the answer you need is currently beyond what I was working on.

EDIT 2: Ok I made a quick patch for this to allow Independent items to be used.
Also note that I made it so those items are NOT consumed when used to disassemble.
You should use the lunatic code to change durability which could break the item and remove it.

To use: put the attached plugin just below the YF Disassemble one.

Hope this helps.

Edit: Removed script. Adding revised one below.
So wait...
Just to make sure I understand, you want the durability of the disassembly items to factor in?
How would you do that since the plugin doesn't currently accept independent items?

As for making the dummy items, I can throw that together in a few hours.
And the idea I had was that the items would be granted when opening the disassemble window only so would not show up in the inventory.
(And there'd only be one per type. So if you had say 15 hammers, it would only show 1 in the disassemble menu.)

EDIT: I forgot that the disassemblers get consumed upon use. And with that, I understand your desire to utilize the durability of the items.

I can still do the extension I mentioned, but I don't think it will help as much.
There's a LOT of changes that would need to be made here.
It's not impossible and would probably be useful for others, so I'll continue brainstorming, but the answer you need is currently beyond what I was working on.

EDIT 2: Ok I made a quick patch for this to allow Independent items to be used.
Also note that I made it so those items are NOT consumed when used to disassemble.
You should use the lunatic code to change durability which could break the item and remove it.

To use: put the attached plugin just below the YF Disassemble one.

Hope this helps.
Sorry to get back to you late. I tried your patch and the hammers are still turned into non independent items.
You need to start a new game for the plugin to work.

And I thought the point was to use independent items (weapons) as disassemble tools.
Was this not the case?
You need to start a new game for the plugin to work.

And I thought the point was to use independent items (weapons) as disassemble tools.
Was this not the case?
I typed it wrong. I meant it was still turning them into non independent items.
And I was using a new save every time.
I did another test in my test project and have no issue using independent weapons as disassemble tools.

Please double check that the plugin order is correct and that the items are set up right.
Spoiler: Images
Screenshot 2025-07-30 131506.png
Screenshot 2025-07-30 131551.png
Screenshot 2025-07-30 131914.png
Screenshot 2025-07-30 131735.png
I did another test in my test project and have no issue using independent weapons as disassemble tools.

Please double check that the plugin order is correct and that the items are set up right.
Is Core Engine required? I didn't get an error message for that.

Edit: I suspect the reason its not working right is because I used <Disassembler: (Type)> instead of just <Disassembler>.
1753916513897.png
So, a few things.

First, you were right and the core plugin is not needed for this particular issue.
(I use it in my project, due to it being needed in other parts, but it's not needed for the disassemble plugin.)
Next, the plugin I made was incomplete.
I am adding the updated one below.

Give that one a try and see if it works for you.
(I tested it with a <Disassembler: hammer> tag and it worked fine.)

Lastly a bit of code I used to utilize the durability of the item:
JavaScript:
<Custom Disassembler Effect>
if (effectItem.durability && effectItem.durability > 0) {
 effectItem.durability -= 100;
 if (effectItem.durability <= 0) $gameParty.loseItem(effectItem, 1);
}
</Custom Disassembler Effect>
That would go on the disassembly weapon (the hammer in this case.)

Very last thing, do you intend to disassemble the hammer you screenshot above? The disassemble pool is supposed to go on the item being disassembled, no?

EDIT: Removed plugin to add updated code below.
Very last thing, do you intend to disassemble the hammer you screenshot above? The disassemble pool is supposed to go on the item being disassembled, no?
Well, that is another issue. If you try to disassemble a hammer, you don't seem to need another hammer. It can smash itself, seemingly. Any thoughts on how to fix this issue?


I'll try out the updated code when I have time to.
Ah. Good point.

I applied that below.

Original thread: https://forums.rpgmakerweb.com/threads/yep_x_itemdisassemble-is-it-possible-to-use-weapons-as-disassembly-kits.178911/