Thanks so much for this! I've needed exactly this plugin. I'm wondering if it can also serve another purpose I'm in need of something for. One mechanic in my game is sort of a passive restaurant management game where the player is only responsible for proving ingredients for the restaurant by growing crops, catching fish, foraging, etc. My idea is to have the player store items in the fridge and at the end of the in-game day, the player is given gold based on how many ingredients were placed in the fridge that day.
It's huge this plugin allows me to set which items can be stored and which ones can't so that'll allow me to limit the user from only storing ingredients for the restaurant. The two things I wonder if this can do is:
1: Calculate how many of each item is stored, store that number in a variable so that I can use it in a calculation on how much gold to add to the player when the new day common event runs. I've tried using the PHPlugins.PHWarehouse.hasItem("Title of the Warehouse", id) script call by using Control Variables command like this:
◆Control Variables:#0015 LettuceAmount = PHPlugins.PHWarehouse.prototype.hasItem("Ingredients", 75)
But it doesn't seem to change the variable at all so I gotta be doing something incorrectly.
2: Is there a way to, at the end of each game day, completely remove all items stored in the storage and start fresh the next day? The idea being that the restaurant used up all of the ingredients. The only way I can think of is to using the remove plugin command and then recreating the storage every day, but not sure if that would actually achieve what I want it to or not, or if there's an easier way.