@autophagy It seems that the snippet you added as the replacement is already in the plugin code. Maybe you had an older version?
PH - Warehouse/Storage
● ARCHIVED · READ-ONLY
-
-
@JGreene Oh, that's possible!
-
Hey there, I am using this plugin in my project along with the new game + plugin from yanfly I was wondering if there was something that could be done to make the stored loot be carried over with a new game. This would be very useful for me if it is possible. Other than that I love the plugin it's super handy.
-
I didn't see an answer for similar questions to the same problem I'm having with this plugin. Aside from this one question... this is a great plugin and is working fantastically for me :)
My Issue: It has to do with the Rules and Comment commands. For some reason... they're not working for me. I have a storage box and all I want is to have three Key Items that you are not able to Deposit. I'm doing the following:
- Created my Common Event called... PHWarehouse (do I need the parenthesis around PHWarehouse? i.e. "PHWarehouse")
- In the Common Event I put the following single comment (do they need to be separate comments)?
- {KeyItem Restriction} // I'm under the impression this can be named anything you want, and has to be inside the { }
- keyItem-n: 2 // This should restrict my Key Item under that item # in the data base from being stored
-
- keyItem-n: 1 (Allows the storage of any key item except the one with id 1)
(If you don't specify the command "keyItem" in the rule, all key items will be allowed to be stored)
- keyItem-n: 1 (Allows the storage of any key item except the one with id 1)
-
Just tried what you suggested and put keyItem in the rule, but it's still not working. I've tried multiple combinations, I've put the brackets around the comment commands, without the brackets... I've even tried the rule without the { }. I've also tried making the rule and command two separate comments... that doesn't work.
*EDIT* Also--as you can see... I even tried a new rule. Instead of specifying certain keyItems not allowed with the keyItem-n: 2... I'm testing the restriction of NO key items with keyItem: no... neither of them work which makes me concerned that maybe I just have the format wrong? I've even tested Items (instead of key items). None of them seem to work for me.
Here's how I currently have it set up, after I added the word keyItem to the rule name:
-
PrimeHover, there's a minor bug regarding the rules. It does not recognize "," as a separator and in turn, all items become disabled.
{hhq}
item: 13, 14
weapon: no
armor: no
keyItem: no
I've tried:
item: 13 , 14
item: 13 ,14
item: 13,14
Has no one figured this out yet? I've tried everything and more to get this feature to work but still cannot get it to recognize items in the list. This question has been asked several times with no answer, would really appreciate an answer since this is an important aspect of the plugin, thanks! -
This looks like a great plugin. Too bad the developer is mia. I will try to implement this in my project.
-
I am bad at scripting but I still tried to solve my problem which was to just remove the category "Key objects" on simple chests (without restriction) and after several hours I found a solution:
In paragraph:
paragraph to modify/ * Checks if key items are enabled * /
PHWarehouseManager.prototype.isKeyItemEnabled = function () {
if (this._wares [this._lastActive] .rule == null || (this._rules.hasOwnProperty (this._wares [this._lastActive] .rule) && Array.isArray (this._rules [this._wares [this. _lastActive] .rule] .enabledItems.keyItem))) {
return true;
}
return false;
};
Change the first "true" to "false" and voila! : The "Key Items" category has disappeared from the chests menu. I do not know if it is viable and if it does not pose a major problem. I specify that for whether to allow or not certain objects, I do not know how to proceed.
If you want the remaining 3 categories to be visually equitably distributed, you can use the SumRndmDde "Super Tools Engine" plugin, just go to "Menu Editor" mode and change the column value in the "Window_WarehouseCategory" window.
I hope this will help some of you. If you encounter problems with after proceeding with this solution, thank you to warn us here, it would be nice for others. -
i have request..
maybe you can add (identity / whatever) in front of the storage title. to replace the storage title so that it can make the same title with the contents of the storage that doesn't change.
example :identity = 1,2,3, ....
PHWarehouse create <identity: title: capacity>
PHWarehouse create <1: Storage: 10>
PHWarehouse show <1>
PHWarehouse create <2: Storage: 10>
PHWarehouse show <2>
PHWarehouse create <3: Storage: 10>
PHWarehouse show <3>
so don't use the title to mark it
I hope you understand
and maybe you can collaborate with EST - Build And Decor EX (here)
both of these plugins are very helpful.. :rock-left::ehappy::rock-right: -
I don't understand how to set a rule. Can you give me an example?
I think examples are missing in the plugin help. -
@Angelus The author of this plugin hasn't been active since 2018. I would suggest looking up the storage plugin by @waynee95
Waynee95's Storage System -
[USER = 110560] @Angelus [/ USER] El autor de este complemento no ha estado activo desde 2018. Sugeriría buscar el complemento de almacenamiento por [USER = 88436] @ waynee95 [/ USER]
Sistema de almacenamiento de Waynee95
I already have the add-on, but I don't understand how the rules work. Because I could get a lot of value out of it. -
Hi all, I was making a Simulation game with your plugin, essentially I want to make it as a storage area and I want the stored item to decrease each day pass by. Is there a script where I can decrease the item let's say food in the Warehouse if any?
-
You can do that with a common event, every time you sleep -1 in such a variable or object of such a place. Otherwise you have to have a time system, otherwise how does the system know that a day passes?Hola a todos, estaba creando un juego de simulación con su complemento, esencialmente quiero hacerlo como un área de almacenamiento y quiero que el elemento almacenado disminuya cada día que pasa. ¿Existe un script en el que pueda disminuir el artículo, digamos comida, en el almacén, si corresponde?
-
You can do that with a common event, every time you sleep -1 in such a variable or object of such a place. Otherwise you have to have a time system, otherwise how does the system know that a day passes?
Oh, I figured it out thank you -
I finally figured this out. In case anyone having trouble making rulesHas no one figured this out yet? I've tried everything and more to get this feature to work but still cannot get it to recognize items in the list. This question has been asked several times with no answer, would really appreciate an answer since this is an important aspect of the plugin, thanks!
"item: 1, 2, 3, 4 (Allows the storage of items with id 1, 2, 3 and 4)"
just open the file using notepad++ or just rename the file extension to "text" or "txt" locate :
/* Separate ids and make it an array */
just add ".length"
/* Separate ids and make it an array */
PHWarehouseManager.prototype.getItemsId = function(str) {
var arr = str.split(",");
for (var i = 0; i < arr.length; i++) {
arr = parseInt(arr, 10);
}
return arr;
}; -
Thank you very much for the plugin, it is very useful to me.
Could you help me with a small modification?
Is it possible to replace the "Title of the Warehouse" with the eventID of this same event?
Something like that;
-
can someone show an example of the rules restrictions actually working and how to format it?
-
PHWarehouseManager.prototype.verifyItem = function(item) {
// Obtener la lista de IDs permitidos para la categoría del ítem
var allowedItems = this.getItemsId(this._rules[this._warehouses[this._lastActive].rule].enabledItems[this._lastCategory]);
// Verificar si el item.id está en la lista de allowedItems
if (allowedItems.indexOf(item.id) !== -1) {
console.log("Item " + item.id + " can be stored.");
return true; // El item puede ser almacenado
} else {
console.log("Item " + item.id + " cannot be stored.");
return false; // El item no puede ser almacenado
}
};
a mi no me iba el otro codigo q habia para solucionar el tema del reconocimiento de los id de multiples items y he creado este codigo para sustituir