Equipment Durability

I was using the scripts, and I ran into a bit of an issue. You see, before I equipped a weapon, it appears in the repair menu just fine. However, after equipping it, the weapon disappears in the repair menu. Any way to fix this?

P.S. Is there a way to make an item that repairs weapon durability?
I was using the scripts, and I ran into a bit of an issue. You see, before I equipped a weapon, it appears in the repair menu just fine. However, after equipping it, the weapon disappears in the repair menu. Any way to fix this?

P.S. Is there a way to make an item that repairs weapon durability?
Please ignore this, I'm asking in the Scripting section.
Hello, I've got a question about your script. Can there be a skill (used by enemies) that will decrease durability of actor weapon and armor? I want to create enemy skill that will "disintegrate" equipment used by actor, I just want to use durability just for this purpose without all this repair and keeping stuff durable.

Can this be done?
Hello, I've got a question about your script. Can there be a skill (used by enemies) that will decrease durability of actor weapon and armor? I want to create enemy skill that will "disintegrate" equipment used by actor, I just want to use durability just for this purpose without all this repair and keeping stuff durable.


Can this be done?
When the skill is successfully used on an actor, how much durability would be decreased? Which weapons/armors?
For now I plan to set durability to 1, one succesfull attack is enough to destroy armor/weapon(I won't set equipment to lose durability any other way). Only selected weapons/armors, meaning early/middle game mostly and armor that goes under Shield/Head equip type.
So basically


1. Enemy uses skill on actor


2. Enemy successfully hits actor


3. All of actors' eligible equips durability are decreased to 1


"Eligible" would refer any equips that you have determined is vulnerable to this skill.


How do you plan to determine equip eligibility?
First I would like to know If this can be done. If yes then I would try to make/ask about skill that would target only one equipment type (weapon, armor head or shield). My first question was badly constructed, not descrese durability of every item that has durability but selected type.
Looking at the script, you will probably need an add-on to allow you to change equip durability directly via items/skills.
Hi,

You script seem really great! Is it possible to have it working with the new version of Rpg Maker MV? 

thx ! 
This script is awesome! Thank you for sharing this!

However, I do have one confusion about this script: how can I decrease the durability of a weapon or an armor outside a battle?

I tried to use 

  1. equip = $game_actors[1].equips[0]
  2. equip.durability -= 1
and directly

$game_actors[1].equips[0].durability -= 1

But neither works.

I can't seem to figure out how now...

Any help is appreciated!
Would it be possible to modify this script to make it work with Chalkdust battle system?
Hi,  Selchar, I have a question for you: Is there a way to set the repair cost to 0? My idea is that the player can repair the weapons by himself and not depend on a blacksmith npc or something.
EDIT: okay I got it working. I had just misunderstood a function in the script. These are really great scripts!
hey, where's Instance Items Base? my game can't run without it. It seems that i can't actually get to it.
where's Instance Items Base
The links work fine for me.On the main post, click on >Required<
It will take you to Hime's page and download it from there.
I'm using this script with Falcao's Pearl ABS Script and wanted to know how get the weapon break messages on the map screen.
upload_2019-11-8_0-39-23.png
How do I make weapon durability decrease even if the skill misses? I know its this box but I don't know how to modify it.

1676159171696.png
I know its this box but I don't know how to modify it.
I would think you could just put a # after the user.actor?
That will void out the @result.hit?
So any action for make damage value will process weapon durability for the actor
I would think you could just put a # after the user.actor?
That will void out the @result.hit?
So any action for make damage value will process weapon durability for the actor
I tried that and it didn't change anything. Misses still don't decrease durability.
1676164465815.png
Misses still don't decrease durability.
Ok so looking at the code, it will not process make damage unless it is a hit.
So we need to add in that result for misses which I think can be done under def item_apply(user, item)

So try this
Ruby:
class Game_Battler < Game_BattlerBase
  alias :process_weapon_durability_miss :item_apply
  def item_apply(user, item)
    process_weapon_durability_miss(user, item)
    user.process_weapon_durability(item) if user.actor? && @result.missed
  end
end

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