Description:
Storage boxes allows you to set up containers (barrels, chests, banks, whatever you want) that can hold items. You can specifiy a limit for how many items a container can hold, and a name for a container. This script also includes a scene whereby you can move items between a container and the party. You can specify an item to be unstorable in its notebox, and set it so all key items are unstorable.
Screenshot(s):
Spoiler
(Forgive the funky windowscreen)
Instructions:
Copy the script from the link and paste it into a new script in your project, above Main Process, and below Materials
Credit:
IMP1
Add-ons:
vFoggy has written some scripts to better allow gold withdrawals from boxes, as requested by
tomkomaster,
here.
Roninator2 has written an edit to set the sizes of the boxes to use game variables, as requested by
Lionheart123. That edit can be found
here. I think this was previously doable by using the manual setup, but I guess this is easier for some people.
Previously, saving and loading a game would introduce a bug where the more than one of the same item would sometimes be split across different slots in a box. This is fixed in v1.12, but changes the way boxes work in a probably-not-backwards-compatible way. So for anyone wanting backwards, compatibility,
Roninator2 has kinda provided a hotfix, which I hear works, so I'm linking in under Add-ons above. But this version is also deprecated, so for any new projects, use the latest version.
I'm almost completely inactive on these forums. I do get emails about new posts, so I'm happy to reply, but I don't use RMVXAce any more, so don't expect any major additions to this by me.
本贴来自国际rpgmaker官方论坛作者:IMP1处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/storage-boxes.27727/