Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Sin86 on November 13, 2018, 12:45:25 am

Title: Weapon and armor durability script for Blizz ABS?
Post by: Sin86 on November 13, 2018, 12:45:25 am
Hi, I was wondering on if there is a way you can have durability for specific weapons and armors in a game.

Let's say I have a steel sword. I then get another steel sword. I use Steel Sword A until it is about to break and move to Steel Sword B, which has never been used.

How would I be able to do that?
Title: Re: Weapon and armor durability script for Blizz ABS?
Post by: KK20 on November 13, 2018, 01:02:32 am
That would require a separate script that handles each weapon/armor as its own object. A couple do exist out there, though I have never tried them myself nor do I remember who made them. I did, at one point, try creating my own while being compatible with other equipment-focused scripts. Which therein lies the potential problem: they might not be compatible with Blizz-ABS.
Title: Re: Weapon and armor durability script for Blizz ABS?
Post by: Blizzard on November 13, 2018, 03:59:11 am
If decrease of durability and potentially unequipping is handled through Game_Battler#attack_effect, it will work with Blizz-ABS.
Title: Re: Weapon and armor durability script for Blizz ABS?
Post by: Sin86 on November 13, 2018, 04:08:56 pm
Quote from: KK20 on November 13, 2018, 01:02:32 am
That would require a separate script that handles each weapon/armor as its own object. A couple do exist out there, though I have never tried them myself nor do I remember who made them. I did, at one point, try creating my own while being compatible with other equipment-focused scripts. Which therein lies the potential problem: they might not be compatible with Blizz-ABS.


Well, the closest I can think of to what you are talking about might be game guy's item storage script as I believe that allows items, armors and weapons to be their own objects. I could be wrong though. I did however try out his script, didn't see any issues when used with Blizz ABS.
Title: Re: Weapon and armor durability script for Blizz ABS?
Post by: KK20 on November 13, 2018, 04:36:24 pm
Nah, that's not what I mean. In default RM, similar items are stacked together (i.e. Bronze Sword x5). What I mean are things like "instanced items" (i.e. Bronze Sword is displayed 5 times in the menu, signifying each sword is unique). This is what you need so that each weapon can have a durability attribute attached to them.

I remember trying one script with Blizz-ABS before that was not entirely compatible. Bronze Sword has an index of 1 in the database. You configure the weapon in Blizz-ABS (editing part 1 of the scripts). Then when you obtain a Bronze Sword in-game, its ID was not perceived as 1, so it was not using the configurations set in Blizz-ABS.

Unique items are also pretty nasty to make compatible with custom shop-like systems such as crafting scripts.
Title: Re: Weapon and armor durability script for Blizz ABS?
Post by: Blizzard on November 13, 2018, 04:41:06 pm
Oh, you meant items. Yeah, those won't work outside the box with hotkeys.