じ☆ve冰风 发表于 2026-7-27 15:15:34

GDT Item Durability

GDT Item Durability (v0.9)
by Gilles (Gamedev Tutorials)

Let Items expire after some Steps, Fights or Time based. You can make these Item disappear from your Inventory or even change it to another Item (for example Egg to Hatching Egg)

Dependencies:

[*]RPG Maker MV 1.5​
[*]No other dependency​
How to Install:

[*]Download the Plugin (https://gitlab.com/gamedevtuts/mixed-plugins/raw/master/js/plugins/GDT_ItemDurability.js)
[*]Copy the plugin into the "js/plugins" folder of your Project
[*]Include the the Plugin in your Plugin Manager
[*]Configure your Items with Notetags inside the Item which should disappear/change into another item
Notetags for Item Section:
<durability-steps:NUMBER_OF_STEPS> - The item will disappear when you go the number of steps
<durability-fight:NUMBER_OF_FIGHTS> - The item will disappear when fight the number of fights
<durability-time:TIME_IN_SECONDS> - The item will disappear when the time has passed and you move at least one step
<durability-changeto:ID_OF_ITEM> - Needs to be combined with one of the upper Notetags! Instead of disappearing, the items changes into the Item with the given ID.

Notetag Configuration Examples:
Make Item disappear after 15 steps
                Code:       
<durability-steps:15>


Change Item (Apple) into Item with Id 11 (Bad Apple) after 2 fights
                Code:       
<durability-fight:2>
<durability-changeto:11>


Make Item disappear after 60 Seconds (but at least 1 step)
                Code:       
<durability-time:60>


IMPORTANT!: steps, time and fight are not combineable in 1 Item.
If you use items or throw them away, it will always use the once which are near to expire.

Terms of use:
The plugin is licensed under the MIT license.
Would be nice to mention me in the Credits
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7


本贴来自国际rpgmaker官方论坛作者:Gilles处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/gdt-item-durability.117825/
页: [1]
查看完整版本: GDT Item Durability