Author: Mr. Trivel
Name: Limited Inventory
Version: 1.0
Created: 2016-04-04
What does it do?
Limits inventory space by item number or item weight.
Screenshot:
How to use?
Change parameters in Plugin Manager as needed.
Plugin has 2 modes - 'number' and 'weight' mode.
'number' mode limits 1 item to 1 slot.
'weight' mode limits items to slots depending to their weight, e.g. sword might be heavier than a feather so it'd take 5 slots instead of 1.
If using 'weight' mode, use the following tag on items to give them weight:
<Weight: [AMOUNT]>
Example:
<Weight: 100>
Equipment can also be made so it allows to carry more or less items with the following tag:
<InvLimitChange: [AMOUNT]>
Examples:
<InvLimitChange: 50>
<InvLimitChange: -10>
There's a couple of Plugin Commands to manipulate the limits:
InventoryLimit Add [AMOUNT] - permanently increases inventory limit
InventoryLimit Sub [AMOUNT] - permanently decreases inventory limit
InventoryLimit Ignore - ignores the limit while gaining items until next command is called
InventoryLimit StopIgnore - stops ignoring the inventory limit
And last but not least there's script calls to make conditional branches or variables easier to use:
$gameParty.getInventorySpaceLeft() - returns amount of space left
$gameParty.getInventorySpaceTotal() - returns total amount of space
$gameParty.getInventorySpaceUsed() - returns used amount of space
Plugin: <Link: Github>
How to download the Plugin: Click the link above, there will be a button named
Raw, press Right Click -> Save As.
Terms of Use:
Don't remove the header or claim that you wrote this plugin.
Credit Mr. Trivel if using this plugin in your project.
Free for commercial and non-commercial projects.
本贴来自国际rpgmaker官方论坛作者:Mr. Trivel处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/limited-inventory.59965/