Shared Storage V 2.40

Bloodmorphed

Dungeon Fanatic
Veteran
Joined
Sep 17, 2012
Messages
1,466
Reaction score
144
First Language
English
Primarily Uses
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
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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.
 
Last edited by a moderator:

Bloodmorphed

Dungeon Fanatic
Veteran
Joined
Sep 17, 2012
Messages
1,466
Reaction score
144
First Language
English
Primarily Uses
no problem. ttheres pros and cons to that. nothing to worry about it was just a thought on my part
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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.
 
Last edited by a moderator:

Kuro Neko

Veteran
Veteran
Joined
Sep 26, 2013
Messages
173
Reaction score
15
First Language
English
Primarily Uses
@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:

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.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Oops. wrong hash enumeration. change the .keys to .each_key and it should now work fine.


@Blood - I'm working on it. XD
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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.
 
Last edited by a moderator:

Kuro Neko

Veteran
Veteran
Joined
Sep 26, 2013
Messages
173
Reaction score
15
First Language
English
Primarily Uses
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?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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?
 
Last edited by a moderator:

Kuro Neko

Veteran
Veteran
Joined
Sep 26, 2013
Messages
173
Reaction score
15
First Language
English
Primarily Uses
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 :D (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 :D
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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. :)
 
Last edited by a moderator:

Kuro Neko

Veteran
Veteran
Joined
Sep 26, 2013
Messages
173
Reaction score
15
First Language
English
Primarily Uses
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 :D ) 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 :D

StorageWindow.png
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Wow, that's so nice of you! Thanks!
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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. :)
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Updated to Version 2.20 - You can now open multiple storages that can be browsed via buttons


Also modified the screenshots.
 

Kuro Neko

Veteran
Veteran
Joined
Sep 26, 2013
Messages
173
Reaction score
15
First Language
English
Primarily Uses
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?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,864
Messages
1,017,056
Members
137,573
Latest member
nikisknight
Top