Hello Guys,
Maybe you ever had the same problem like me. At first I only want my inventory has a limit (weight).
So just give items a notetag of their weight and make a window to show inventory limit.
Then another problem arises related to controlling item flow (goes in goes out) :
1. Must control how treasure chest's item get into inventory
2. Must prevent player from buying item that will exceed inventory limit (Scene_Shop)
3. Must prevent battle's item drop from automatically enter inventory (Scene_Battle)
4. Must make enough inventory space before NPC give player a key item
5. Must prevent player from unequipping item that will exceed inventory limit (Scene_Equip)
So consider this plugin a solution
Spoiler: Scene Barter
CAUTION !
This plugin affect :
1. Scene_Equip
2. Scene_Item
3. Scene_Shop
4. Scene_Message (select item event)
5. Scene_Battle (will skip item drop)
this plugin most likely ruin other plugin that affect the same Scenes.
so start new project to test it.
---------------------------------
| item, weapon, armor notetag : |
---------------------------------
<weight:2>
########################
# Available Plugin Command : #
########################
1. Loot Chest
Use this to define loot chest (and its content).
Loot id 0 is reserved for battle loot and item drop zone
(don't define loot id 0 ).
Spoiler: Loot Chest - Plugin Command
* Loot Limit 0 will make this chest has no limit
* Allow Key Item false will restrict player from putting key item on this chest
2. Loot Open
open defined loot chest (don't open loot id 0).
Spoiler: Loot Open - Plugin Command
[/quote]
3. Check Space
use this before npc give player an item.
if player inventory doesn't have enough space for
that item, scene barter (drop)
will triggered.
Spoiler: Check Space - Plugin Command[quote]
Player inventory limit, icon, and the weight unit defined at parameters
Spoiler: Parameters
Terms of Use :
This plugin are free to use for non commercial game.
Don't repost this plugin elsewhere.
Credits goes to Savroheim.
Thank You
本贴来自国际rpgmaker官方论坛作者:Savroheim处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/rmmz-inventory-barter-system.141098/