Hello, I am trying to make a system where items (like pickaxes) can be used for a limited number of times (Like 25) and then it breaks, so a durability system like Yanfly's. However Yanfly's plugin only applies to weapons and armor. I don't know how to work around this. I figured maybe I had to make items independent (Which is what I wanted in the first place) but that doesn't seem to work either. I don't think making the pickaxe a weapon works because then it can't be used on the field, which is where I intend it to be used. I figured maybe I could try maybe just doing the whole thing with an event and variables but variables are global so I predict that means the durability number would go down for all pickaxes if I use one. Is there any plugin or simpler method to give a durability attribute to items like this? Thanks in advance.
MV Item durability plugin that's actually for items?
JS Plugin RequestsMaliki's Item Durability EX ver 1.9
Maliki's Item Durability EX ver 1.9 Features: This plugin gives extra functionality to YanFly's ItemDurability Plugin allowing durability to affect item's stats and changing the default behavior of the plugin to delete items upon break. HowTo: Required Yanfly's...
forums.rpgmakerweb.com
Would I have to call the plugin commands via the item's common event, or write it in the notetag?
I dunno. I assume it's in the instructions.
I apologize, before I posted this thread I did search online and found that plugin in an earlier thread. I tried using it and it still didn't work. Now reading the description more in depth, it still appears to only be for equipable items with the only time it references inventory being for scrapping equipment.
Yep, you seem correct. I've downloaded it to check as well. Man that is poorly worded....
You could of course just event it too...
At the start of your game, have an event set the base durability for a tool in a variable. (Let's say pickaxe has 5 durability)
Make a common event that is called whenever you touch a ore node. In that common event check whether or not player has pickaxe (duh) and if so reduce the pickaxe durability variable by one.
Below that put a condition to check if the variable is 0 or lower and if so, remove 1 pickaxe.
Below that, put yet another condition and check if player still has pickaxe items and if so, put the variable back to 5. That way, you can have durability per pickaxe.
Now this gets very complex very fast if you have stuff like pickaxe upgrades or stonger pickaxes, because now you'll have to make a bunch of conditions based on that, but it's not impossible to do.
Alternatively, you can always commission a custom plugin for that. I could not find a plugin that does item durability outside of equipment, and I didn't see a script call or other way to damage an item's durability directly in yanfly's. If that were the case, you could just make an extra equipment slot for tools and go with that.
edit: If you want to be extra fancy, you could make the mining process a battle. In combination with action sequencing, this might actually be fun and should proc the durability decrease? Just an idea lol.
You could of course just event it too...
At the start of your game, have an event set the base durability for a tool in a variable. (Let's say pickaxe has 5 durability)
Make a common event that is called whenever you touch a ore node. In that common event check whether or not player has pickaxe (duh) and if so reduce the pickaxe durability variable by one.
Below that put a condition to check if the variable is 0 or lower and if so, remove 1 pickaxe.
Below that, put yet another condition and check if player still has pickaxe items and if so, put the variable back to 5. That way, you can have durability per pickaxe.
Now this gets very complex very fast if you have stuff like pickaxe upgrades or stonger pickaxes, because now you'll have to make a bunch of conditions based on that, but it's not impossible to do.
Alternatively, you can always commission a custom plugin for that. I could not find a plugin that does item durability outside of equipment, and I didn't see a script call or other way to damage an item's durability directly in yanfly's. If that were the case, you could just make an extra equipment slot for tools and go with that.
edit: If you want to be extra fancy, you could make the mining process a battle. In combination with action sequencing, this might actually be fun and should proc the durability decrease? Just an idea lol.
For Items specifically, you can do this with Events pretty easily. I have experimented with using number of uses or durability for things like lock picks and repair hammers.
Here are a couple of my tutorials that cover this concept, if it helps.
As you can see, in both these videos, the player has multiple of the same item, but the use is still being tracked to determine when one item is used up. I'm sure there are ways to modify this if it doesn't do exactly what you are looking for.
Since MV and MZ are pretty much the same when using Events, this should work as one way to approach durability or limited use items.
I hope this helps!
Here are a couple of my tutorials that cover this concept, if it helps.
As you can see, in both these videos, the player has multiple of the same item, but the use is still being tracked to determine when one item is used up. I'm sure there are ways to modify this if it doesn't do exactly what you are looking for.
Since MV and MZ are pretty much the same when using Events, this should work as one way to approach durability or limited use items.
I hope this helps!
Original thread: https://forums.rpgmakerweb.com/threads/item-durability-plugin-thats-actually-for-items.180297/