Shared Storage V 2.40

so the player can label the pages the way they want... like armor weapons materials. this system would only be feasible if the item system was like diablo or path of exile. there is numerous uses for having pages with restrictions. unfortunately it would be useless for a small game
Nope you cannot do that even if I allow you to swap storages on the fly. Why? Because the window set-up is the same for all storages, only the items (and the limits if you set it up that way) inside the storages change. Since as I said, the idea of multiple storages when I made this was simply so that you can have different storage events.


I could possibly allow that in the future though, but there's no guarantee.
no problem. ttheres pros and cons to that. nothing to worry about it was just a thought on my part
I could easily and effectively add that, I just really don't need it when I made this. So...


Anyway, it's actually a useful thing if I think about it (the storage specific set-ups). And I could just make it load the default set-up in case the developer opens a storage that doesn't have a specific set-up.
@Bloodmorphed - The central text box and all other boxes/windows are configurable, so it's up to you to modify that. As for pages, no. And I don't plan on having them.

@KuroNeko - which line was it when you open your script editor? Because line 935 on me was the if number > 0, so it's weird that it gives that error as there's no + in there.

Edit: I think the problem was on the eval line, I forgot to add a safety factor to the added script that is possibly causing the + error (it shows the SS script since the line was run via eval)

try this edited one:

Spoiler
module ADIK module SHARED_STORAGE ITEM_TOTAL_LIMIT = 100 endendclass Scene_SharedStorage def get_remaining_slots total = 0 $shared_storage.keys do |key| if key[0] == @storage_number total += $shared_storage[key] end end return ADIK::SHARED_STORAGE::ITEM_TOTAL_LIMIT - total end def get_item_limit item = get_item #because it would error if the item isn't yet on storage begin return $shared_storage[[@storage_number,item.class.to_s,item.id]] + get_remaining_slots rescue get_remaining_slots end end endOr this one if you want the total limit count to be a formula too

Code:
module ADIK  module SHARED_STORAGE    #can be a formula too    ITEM_TOTAL_LIMIT = "100"  endendclass Scene_SharedStorage    def get_remaining_slots    total = 0    $shared_storage.keys do |key|      if key[0] == @storage_number        total += $shared_storage[key]      end    end    return eval(ADIK::SHARED_STORAGE::ITEM_TOTAL_LIMIT) - total  end    def get_item_limit    item = get_item    begin      return $shared_storage[[@storage_number,item.class.to_s,item.id]] + get_remaining_slots    rescue      get_remaining_slots    end  end  end
tested it. this time, it's really not crash. but, no matter how much item i put in, the number "100" won't change, and i can put even more than 100 item.
Oops. wrong hash enumeration. change the .keys to .each_key and it should now work fine.


@Blood - I'm working on it. XD
Oops. wrong hash enumeration. change the .keys to .each_key and it should now work fine.@Blood - I'm working on it. XD
i'm in my class right now, maybe i should test it later.
I see. I tested this one though and it works fine (I didn't test the previous ones. XD)


EDIT: Updated to version 2.00


Version 2.00 - Added capability to set the settings per storage instead of having


just one global setting for all storages in the file.


Haven't added the capability to switch storages with a button press coz I don't have time right now.
I see. I tested this one though and it works fine (I didn't test the previous ones. XD)

EDIT: Updated to version 2.00

Version 2.00 - Added capability to set the settings per storage instead of having

just one global setting for all storages in the file.

Haven't added the capability to switch storages with a button press coz I don't have time right now.
Now it work perfectly. Guess i just have to find out how to make it "buzzer" instead of show digits when there's no item to pick and make the item darken and buzzer if player tried to store an item while storage was full, huh?
Updated to Version 2.10


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


Also added the Total Item Limit Add-on, if you are using the old item limit snippet I gave you, replace it with the new one.
[IMG]http://i1147.photobucket.com/albums/o560/zabakapro/storage_zps9ac446f9.jpg[/IMG]

after some edit, and... perfect!
after some edit, and... perfect!
That's a lot of TEST... and you have a nice windowskin 🙂


Btw, was that Korewa Zombie Desuka?


PS: I'll share that pic on the OP and on the blog, is that fine?


PS 2: Will people find it helpful if I add capability to put icons into the ss category, category, and the header windows?
That's a lot of TEST... and you have a nice windowskin 🙂

Btw, was that Korewa Zombie Desuka?

PS: I'll share that pic on the OP and on the blog, is that fine?

PS 2: Will people find it helpful if I add capability to put icons into the ss category, category, and the header windows?
Those TEST line is to test if the item description fit the help window or not. That window skin is my custom made 😀 (just draw some blue line, and... done).

And, sure, it's Yuu-chan in KoreZombie.

Feel free to use this pic (with or without my name is fine, it's your script after all). It just like my thanks to you since i've looking for a script like this for a long time!

About the icon, i'm not sure if it's helpful or not, i just put it in since it's will be more beautiful that way 😀
I really like how the windowskin looked, it's simple yet it looks so elegant. XD


I wonder if it will look as elegant if it's gray. I might try making a windowskin like that. 🙂
I really like how the windowskin looked, it's simple yet it looks so elegant. XD

I wonder if it will look as elegant if it's gray. I might try making a windowskin like that. 🙂
Here's my window skin. I make it only for the storagewindow (i'm using another one for game's window 😀 ) so it doesn't have any unecessary things like the arrow icon or background, etc... But if you like it, i don't mind since it just took me 5 mins to draw 😀

StorageWindow.png
Wow, that's so nice of you! Thanks!
Wow, that's so nice of you! Thanks!
It's alright. I'm happy if my creation pleased someone (and even happier if they find any use of it for their project).
I'd probably be using it on the gunner game that I'm working on. It looks good on gray too, though not as galant as the blue one. 🙂
Updated to Version 2.20 - You can now open multiple storages that can be browsed via buttons


Also modified the screenshots.
Updated to Version 2.20 - You can now open multiple storages that can be browsed via buttons

Also modified the screenshots.
erm... Seriously, what's the use of multiple storage that can switch via button anyway?

Original thread: https://forums.rpgmakerweb.com/threads/shared-storage-v-2-40.32333/