How can make a charm with durability?
Moderators: Nefarius, Havvoric
How can make a charm with durability?
I want to make some charms like equipments can broken.
How to do that?
How to do that?
Re: How can make a charm with durability?
There are examples on the keep how to do this softcoded, no code editing required. True Mage posted info.
Use the site search function ... or search google ->
site:d2mods.info search terms
Use the site search function ... or search google ->
site:d2mods.info search terms
Assembly Reference | 1.13d Code Edits | UVLoD | BaseMod Plugin
Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..
Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..
Re: How can make a charm with durability?
Not entirely, IIRC the durability check is for equipped items only, and charms don't fall under that category.
Plus the only example I could find about charms with durability were for an unrepairable charged scroll like effect.
Plus the only example I could find about charms with durability were for an unrepairable charged scroll like effect.
Re: How can make a charm with durability?
Yes, but the example was for ethereal charms.Black_Eternity" wrote: Plus the only example I could find about charms with durability were for an unrepairable charged scroll like effect.
Assembly Reference | 1.13d Code Edits | UVLoD | BaseMod Plugin
Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..
Fiat paper money is the most elaborate and well devised form of slavery the world has ever seen..
Re: How can make a charm with durability?
Which is done by giving the charm an itype such as armor.
Doable to give the charm durability, but still does not diminish the durability over time, which is the goal in question.
Doable to give the charm durability, but still does not diminish the durability over time, which is the goal in question.
Re: How can make a charm with durability?
Giving a charm durability is easy, but the question is really related to how you want it to lose durability. Standard D2 rolls a chance to diminish durability during the attack/defense routines, but charms are really used there, but can be easily added.
Netiquette, Do you USE it?!?! | Nefarius' Fixed TXT Files | Terms Of Service
Blackened | Day of Death | D2GFEx
"What was yours is mine. Your land, your people, and now your life." - Lim-Dul, the Necromancer
Judgement is Final, Death is Eternal
Re: How can make a charm with durability?
Well that's a different answer than what Nefarius stated, but hey thats cool. I'll be testing that soon to see how it goes.
Re: How can make a charm with durability?
Someone has succeeded in making it.
His mod use death to lose durability for charms.
But i know i can't get the answer from him.
His mod use death to lose durability for charms.
But i know i can't get the answer from him.
Re: How can make a charm with durability?
Durability is nothing but a stat, and when the durability check reduces it to 0, it sets the ITEM_BROKEN flag, which tells the item requirements handler that you can't use the item. We are talking CE here, so easy is a relative term.Black_Eternity" wrote:Well that's a different answer than what Nefarius stated, but hey thats cool. I'll be testing that soon to see how it goes.
In this case, all you do is hook the player death routine (the same one that spawns corpses, costs you exp and gold), iterate the inventory items, check for itemtype of charm, its identified and if its durability is >0 (or that it isn't broken already, the latter is faster), then you can roll your chance to decrement the durability, if it reaches 0, you set the ITEM_BROKEN flag.huohuowu2" wrote:Someone has succeeded in making it.
His mod use death to lose durability for charms.
But i know i can't get the answer from him.
Netiquette, Do you USE it?!?! | Nefarius' Fixed TXT Files | Terms Of Service
Blackened | Day of Death | D2GFEx
"What was yours is mine. Your land, your people, and now your life." - Lim-Dul, the Necromancer
Judgement is Final, Death is Eternal
-
- Posts: 6
- Joined: Tue Nov 21, 2017 9:05 am
Re: How can make a charm with durability?
is still unsolved? @huohuowu2 ?