waynee95's Storage System

● ARCHIVED · READ-ONLY
Started by waynee95 271 posts Page 4 of 14 View original ↗
  1. What's the limit on the separate systems we can set up? I've been using various system to represent chests by adding things to it via commands.

    Also, how's the new version coming along? Is there any new features?
  2. Hi Way.

    I've found an incompatibility with VE - Materia System. Here are the SS: WAY.png WAY2.png

    I was thinking if its possible that if there are no items to add it doesn't bring up the quantity window.
    The error only occurs when I'm trying to store an "nonexistent item" -- but when adding items that actually exist
    the game works fun and there are no errors.

    Something like in Yanfly's Shop Core, that when there is actually no item to choose, it just plays an "invalid input" SE but doesn't actually do something.
  3. @HintonR
    You did not add the items that would cause the error. But I think I know why it happened, I updated the plugin. Try it out, maybe I got the issue.
  4. Hmm... Did it not error? I added the plugins and when I talked to the guy. The same way, it broke. I will test the new version, nonetheless. Thank you
  5. @waynee95 The one thing that I would like to see added is the option to count each item in a stack as an individual item or the whole stack as one item. For example: You have 3 potions. Currently they always takes up 3 slots, but it would be nice to have it only take up 1 slot since they're the same type of item.
  6. @Randy
    There is already something like this available, if I understand you correctly.

    From the help file:
    Item Stack Size - If this paramter is not equal to none, a stack will count as
    one item in regards of the max capacity. For example if the stack size is 8 and
    the max capacity is 20, the same item can be stored 8 times but it will only
    subtract 1 from the max capacity. This means you can store 8x20 items in the
    storage system.

    In the storage system parameter settings, you can choose the Stack Size.
  7. Ah, my bad. Love the plugin by the way!
  8. Hey Way!

    Just got around to testing the update :) And I'm excited to say it works without breaking!

    Thank you a lot and wonderful work on plugin :D
  9. Hey Way.

    Depositing Functions fine now,

    But Withdrawing an empty item still also crashes.
  10. Hi Way!

    I was twiddling around with your code and here is how I fixed the crash.

    On Line 880:

    return (this._mode === 'add' || this._mode === 'remove') is what I added and it fixed the crashes

    EDIT: It stops it from crash, but the numbers are messed up. I'll check the formula. :p
    EDIT2: Yeah I forgot I modified the function for removeItem.

    code
    win.Window_StorageItemList.prototype.isEnabled = function (item) {
    if (item && item.cannotStore) {
    return false;
    } else {
    if (this._mode == 'add')
    return (this._mode === 'add') ? this._storage.maxItems(item) > 0 : win.$gameParty.maxItems(item) - win.$gameParty.numItems(item) > 0;
    if (this._mode == 'remove')
    return (this._mode === 'remove') ? win.$gameParty.maxItems(item) > 0 : this._storage.maxItems(item) - this._storage.numItems(item) > 0;
    }
    };

    This is the modified code I ended up using. Not sure if its redundant... but yeah, I suppose since they are if statements already, they don't need to be ternary statements too...
  11. Love your plugin.

    Any chance it could be made compatible with the limited inventory plugin?
  12. @Bazzz
    Thanks. :)

    Limited Inventory from MrTrivel?
  13. @waynee95 Can I make a Storage system to access from multiple location (event)

    Like Pokemon Storage
  14. @Rishi Raj Jain
    You mean accessing the same storage system but on different maps? Sure.
  15. @waynee95
    waynee95 said:
    Limited Inventory from MrTrivel?
    Yes.
    If I only have 2 spots left in my personal inventory and take 4 items from your storage system, 2 items disappear.
    Thank you.
  16. Hi,
    Is it possible to get the stored items count?
    Not the capacity one, but the actual items(all) for example
    Potion x1
    Antidote x3

    And it says 4 items instead
    Not 2 items

    Or did I miss something in readme?
    I tried "allItems()" command though, but it doesn't really show the number of stored items.
  17. @uglywolf
    So you want the number of individual items?

    $gameStorageSystems.storage(id).allItems().length
  18. @waynee95

    That I do, like how many is it an "Iron Sword" currently stored, yes.

    I did try the provided script, but it still shows the capacity instead. If this requires Advanced JS knowledge, I think it might need to take a bit of a long time to understand that script though.