======================================================
Overview
======================================================
This script allows you to have shared storages
where you can put/take items. The storage is accessible
to all save files of your game or even another game as
long as you set them to use the same storage file.
You can modify most of the properties of each window
involved in the scene, and also where to put the
storage file.
You could also set a different max item limit for the
storage than that of the normal limit for the party
inventory
All window settings and limitations can now be set
separately for each storage. Any storage opened
that doesn't have it's own settings will use
the default.
Allows multiple storages in one file
======================================================
Screenshots
======================================================
From my under devevelopment game (isn't final: windowskin is an edit of the one Kuro Neko used, as shown on the next sub section of this post)
Spoiler
======================================================
Samples from RMWeb members
======================================================
Kuro Neko (edited it to have icons)
Spoiler
======================================================
Changelog
======================================================
Version 1.10 - Added a custom window where you can show text that you want.
Version 2.00 - Added capability to set the settings per storage instead of having
just one global setting for all storages in the file.
Version 2.10 - Selecting a blank item now sends a buzzer sound
- Disables items from being selected if limit is already hit
- Items on storage window is disabled when on deposit mode and vice versa
Version 2.20 - You can now open multiple storages which can be switched via buttons
Version 2.30 – You can now deposit/withdraw gold
Version 2.40 - Fixed an error in which the script shows an error when you select a blank slot
======================================================
Download
======================================================
Get it here:
http://lescripts.wordpress.com/rgss3/shared-storage-single-v1-00/
======================================================
Add-Ons Download
-> Put them below the original script if you use them
======================================================
Total Item Limit v1.00
http://pastebin.com/raw.php?i=jx5rRszs
======================================================
Compatibility Fixes
-> Put them below the original script if you use them
======================================================
For those using Vlue's Randomization script, get this so that the items won't re-randomize when you start a new game
USE AT YOUR OWN RISK. Once you place it and it's active, any database edits to your weapons and armors won't reflect. Only place the script right before you ship out the game.
Spoilermodule DataManager class << self; alias save_game_without_rescue_persist_adik save_game_without_rescue ; end def self.save_game_without_rescue(index) File.open("PersistItems.rvdata2", "wb") do |file| Marshal.dump($data_weapons, file) Marshal.dump($data_armors, file) end return save_game_without_rescue_persist_adik(index) end class << self; alias load_normal_database_persist_adik load_normal_database ; end def self.load_normal_database load_normal_database_persist_adik begin File.open("PersistItems.rvdata2", "rb") do |file| $data_weapons = Marshal.load(file) $data_armors = Marshal.load(file) end rescue end end endclass Scene_Load alias rig_on_load_success_adik on_load_success def on_load_success rig_on_load_success_adik begin File.open("PersistItems.rvdata2", "rb") do |file| $data_weapons = Marshal.load(file) $data_armors = Marshal.load(file) end rescue end endend
For those using Yanfly's Adjust Limits
Spoiler Code:
- class Game_Party < Game_Unit def max_item_number(item) item.nil? ? return 0 : return item.max_limit end end # Game_Party
复制代码
本贴来自国际rpgmaker官方论坛作者:Engr. Adiktuzmiko处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/shared-storage-v-2-40.32333/