Szyu's Recycling System
Introduction
This script allows you to define items, weapons and armors which can be recycled. This means they can be broken into other items, weapons or armors. For example you can recycle them to regain materials.
How to Use
To define an item as recycable, you first have to define an recycle area in the notes by surrounding your "materials" with <recycling> and </recycling>.
The interior of this region can be filled by those 3 formulas:
i: id, chance, amount # 'i' for item
w: id, chance, amount # 'w' for weapon
a: id, chance, amount # 'a' for armor
For example like this:
Code:
- <recycling>i: 3, 50%, 4w: 1, 20, 1</recycling>
复制代码
So what does this block do?
First I define the recycling area by <recycling> and </recycling>.
Withing this area, I tell the game, that when I recycle the actual item, there is a 50% chance, that I gain 1 - 4 items of id 3
and that there is a 20% chance (note that you don't need the "%") to gain 1 weapon of id 1.
So I can control the chance the item will be recycled and what is the maximum amount of items that can be obtained in this process.
Screenshots
Note of a recycable item, weapon or armor
Recycling menu
Result message
Links
Pastebin
Credits
Credits to Szyu if you plan to use this script.
本贴来自国际rpgmaker官方论坛作者:Szyu处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/recycling-system.31465/