Equipment Durability

The scope of this script is to give equipment durability ratings that determine the effectiveness of the equipment until it is repaired.

A simple approach would be a straight percentage. At 100 durability, the equipment's stats are 100% effective. At 1% durability, it would be wise to use items to repair the equipment. This would require an item, or perhaps a service capable of restoring durability.

Weapons would lose durability when used to attack. Armors would lose durability when the player was attacked.

From a personal perspective, I feel that 1% should be the lowest durability rating available, as 0% would make the equipment too useless to the player.

There are options we can add, of course, although I feel the above is simple enough. One option is to have equipment break at 0%, for more punishing games. Another option is to have durability able to rise above 100%, as though the equipment has been slightly improved beyond its basic design.

I expect this script might require a dependency on another script controlling equipment. Keeping this limitation in mind, we should always strive to make feature scripts as modular and compatible as possible to stay true to the intent of RPG Maker to allow people of all skill levels to design games. As such, this script should be made freely available to the entire RPG Maker community.

Thank you for your time.
Would this fit your request?
https://forums.rpgmakerweb.com/index.php?threads/equipment-durability.22011/
Unfortunately not. What I'm hoping people will gain is a more self-contained, unified script where breaking or unequipping gear would be optional outcomes of bottoming out on durability, and where there's an explicit loss in the effectiveness of the weapon and armor in order to coincide with the drop in durability. Thanks, though!
Unfortunately not. What I'm hoping people will gain is a more self-contained, unified script where breaking or unequipping gear would be optional outcomes of bottoming out on durability, and where there's an explicit loss in the effectiveness of the weapon and armor in order to coincide with the drop in durability. Thanks, though!
Might not be able to help code you something for this. This one doesn't require external scripts:
https://www.rpgmakercentral.com/topic/34178-tidlocs-equipment-durability/

I think by default (could be wrong here), all database info for things like Weapon properties, Item properties, etc is meant to be static. It might be hard, without making weak and strong variants of one item, to pull this off.
https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/equip-dynamic-stats/
Just search for scripts that adjust armor values, rather than looking for terms like "durability".
A makeshift option might be to give weapons by default no properties, and add their values through something like yanfly's, which could decrease to 0? Not sure.
Thank you very much for these sources, though I admit they're a bit beyond me. Still, I don't want to sound discouraging, so I'd still like to invite anyone to share any and all scripts meeting the specifications in the title post with the community for a simple solution available to hobbyists of all skill levels.
Thank you very much for these sources, though I admit they're a bit beyond me. Still, I don't want to sound discouraging, so I'd still like to invite anyone to share any and all scripts meeting the specifications in the title post with the community for a simple solution available to hobbyists of all skill levels.
There's only so much scripts can do in that regard.
"Simple solutions" can still seem complex to people who have little understanding of the material they're given; all the scripts above are of relative simplicity; I'd argue Tidloc's script is easier just because it's self-contained, but both have proper documentation and demos to work with.

Considering that you're asking for a script that's 1. flexible and 2. self-contained (doesn't rely on modules), you might have to sacrifice the "easy to use" part. + Working with scripts will require some knowledge of the engine anyways, so it can't work for just any/all users.
The best thing you can do in the meantime is look at those script documentations, see what fits your request, .

If you look at tidloc's code, you can see this:
upload_2019-4-7_17-51-17.png

Wouldn't that at least be somewhat close to what you're asking for? You could also just keep researching to point a scripter who might want to help you in the right direction. Good luck.
for a simple solution
we should always strive to make feature scripts as modular and compatible as possible to stay true to the intent of RPG Maker to allow people of all skill levels to design games. As such, this script should be made freely available to the entire RPG Maker community.
The request can be much better without all of these additional sentences, to be honest.

Let me tell you about the technical difficulty of this.
First thing off, the base code does not allow the modularity of this function. The feature is still possible to do, however, it can only be used in a specific situation where some other script just stops working. The actual problem lies on the base code itself.

The system tracks the quantity of the item by numbers, not the instance of the individual item. For example:
How many items do you have for the item id 1?
How many items do you have for the item id 2?

And the system stored it like.
Code:
{item_id => number_of_item, item_id => number_of_item}
Code:
{1 => 10, 2 => 30}
And thus why you see the item stacked like potion x10, elixir x5.
There is no such as individual instance for each item.

This is why Tidloc/Hime had to make a custom instance item to break with the traditional item tracker. They make an individual item instance on its own so that it can be used to track the individual item instance. HOWEVER, this comes with the price. Because instance item is basically altering the engine on how it does stuff, you can not expect it to have high compatibility. Some script just stays true to the RM base code, which the root of all the problem.

What tv.ghost posted is very close to what you want, if that doesn't meet your requirement, then idk. There is always an option to pay someone to make it specifically for your need though. But that's when you have enough post count to open a topic in classified section, i.e, commission for the script.
I'm sorry, but I don't see how either of those posts add to the conversation. This topic is about sharing scripts which perform the outlined functionality, and not about complaining about how difficult it would be. I would like to heartily request that we stay on track and not derail this thread, but I appreciate your wanting to contribute in some way.
This topic is about sharing scripts
https://forums.rpgmakerweb.com/index.php?forums/rgss3-scripts-rmvx-ace.35/
We already have a forum to share the script, I'm not sure why do you want to have another one. You outlined the functionality, means "this is your topic". You have to say why it doesn't meet your requirement. Or are you trying to make a topic about "Share script that does this, here"? If so, it isn't really worth my time. Because you don't specifically really need help.

Also I'm sorry I don't think I'm derailing.
I'm sorry, but I don't see how either of those posts add to the conversation. This topic is about sharing scripts which perform the outlined functionality, and not about complaining about how difficult it would be. I would like to heartily request that we stay on track and not derail this thread, but I appreciate your wanting to contribute in some way.
Moderator note: @GreenBanana don't backseat moderate on this forum please.
You can find a list with our forum rules here:
https://forums.rpgmakerweb.com/index.php?threads/forum-rules.90/
The purpose of a thread to share the script is because the script doesn't exist yet. Thank you.
You're missing the point. In script request threads others can ask for more details, or point out issues with the details. Refusal to consider those means your script will probably not get made by anyone, as all details need to be very clear and all issues discussed too.

So no, those posts are not off topic at all. They are relevant to the issue with the request as stated. Either address them or don't address them, but don't waste time saying they are off topic when they are not. Thank you.

Do not abuse the report system either just because you don't like the answer given. The posts are NOT off topic, as stated above.

The purpose of a thread to share the script is because the script doesn't exist yet. Thank you.
I don't believe we need/want a thread about "post any script that does this here".
And I sorta believe that you might do this for another script request (EDIT: Oh well, you totally did)

Let me being blunt. You started off as "giving us the idea" so that more people will get the benefit from the idea you've just thrown off. Unfortunately, that is not how you do help people. You help people by doing the following:
  • Actually write the script.
  • Collecting people's script and put it in a single place/link back to the relevant script.
  • Fix any compatibility between the clashing scripts.
  • Help me address the issue I listed on the reply above.
That's right, not by giving us the idea. Upon knowing that you're like "Oh, no. It's not for me. It's for the good for other people". It really diminishes the value. We're making/sharing to someone with unknown requirements, and unable to confirm if it's really meet the requirement. i.e, if we're not making it specifically for you, then there's little to no point.

The good thing is, someone who read this thread may also found the link to the durability system that tv.ghost linked above. It's just shame that you didn't respond to it well.
Second what Theo said. Scriptwriters here are really friendly, but yeah just saying the work that'd need to be done would be "simple" isn't going to make a lot of resource providers happy. If Tidloc's script or anything I sent before this post was beyond your comprehension, your goal should probably be to accustom yourself to either Ruby scripting/script editing or the Ace engine in general.

Possibly useful links:
Instance items might be a bit of a pain to be honest. Especially if you consider the fact that you might want to do super minor changes for equipment parameters, that doesn't seem worth it.

But say you pair a script like Tidloc's with Kread's Static parameters: https://rpgmaker.net/scripts/191/
I'm not sure if this idea would work, but maybe you can edit Tidloc's script so that whenever a decrease in durability in your armor/weapon happens, you change notetag properties for that specific item.

So say by default an Axe does -20 HP damage; if you use it 10 times, the Axe will change from doing -20 HP (like it's specified in the database originally) to -10 HP, and then by 20 uses, it'll reach 0. At that point you could force-dispose of the item through eventing.

You'd have to do this for every weapon and armor item you want to have this feature with. (You could probably make it a bit shorter by grouping armor/weapons with the same type of durability value...but it would be a lot of code regardless.) I also don't know if Kread's script is buggy, so be aware that it might not work 100%. You can always look for other scripts like it.

Original thread: https://forums.rpgmakerweb.com/threads/equipment-durability.107663/