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)
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