Want realistic style item breakage? This is it!
Original idea: Lateo.
* Fully persistent, saves Local ints on items. Note: Might not be persistent on Local Vault servers.
* Very easy to install.
* With included repair script.
* Contains Demo Module.
* Builder set how much it should affect.
* Contains tool to check how damaged your items are.
Updated: 15/5/2006
Changed a lot of code and added new options.
Updated: 20/7/2006
Corrected a bug that made the repair function not take any gold.
This system is aimed for roleplaying modules that want to add some realism to item use.
When this system is installed, players will experience that their items will slowly break, if not repaired.
Installation can be found in the ReadMe included.
There is an included "Repair all Items script", in the .erf which can be used as an ActionsTaken script through a conversation.
Attachment | Size |
---|---|
![]() | 50.84 KB |
Just a hint, if someone's trying to simulate Diablo's durability system. If you want to make an indestructible equipment, change the following line from "wbs_ondeath" script:
if (GetIsObjectValid(oItem) )
to
if (GetIsObjectValid(oItem) && GetLocalInt(oItem, "INDESTRUCTIBLE") != 1)
And set the item's variable to "INDESTRUCTIBLE int 1"
And for Etheral items, change the following line from "wbs_repair_all" script:
if (GetIsObjectValid(oItem))
to
if (GetIsObjectValid(oItem) && GetLocalInt(oItem, "ETHEREAL") != 1)
And set the item's variable to "ETHEREAL int 1"
Now, all items with INDESTRUCTIBLE variable set to 1 will never wear off nor be destroyed and items with ETHEREAL variable set to 1 will never be repairable wich will make them break eventually.