Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Hello! Im implementing this plugin in my latest game Look Outside - and in working on it I found a few issues you might want to fix on your end- 

  • in addShopStock, line 1262 - misnamed variable, it should be defaultStockMax, not defaultRestockMax
  • in the resetStock function, add a check to see if _shopstock is undefined, and if it is, initialize the 3 variables of the plugin - that way, old saves from before the plugin was implementing should work with the post-plugin version

will add to this in replies if I find more stuff!

Also - im not sure Im setting up the shops properly - it seems like, in order for the stocks to not reset every time the shop is launched, and to not break after loading the game, I need to use two Set Stock calls for each shop:

The first one is only called once per game and sets up the initial shop inventory

The second one just before the shop processing call, that doesnt have any inventory set up in it.

If I only do the first call, the shop works fine initially, but it breaks if I load the game.

if I only have that second call just before the shop processing event, and put the full shop inventory in that one call, the shop works but it resets the shop stock inventory every time the shop is called.

If that is the intended usage, I think it needs to be explained better in the plugin files - if its not the intended usage, I think I'm either doing something wrong, or it might not be working properly.

Thank you for choosing my plugin! Sorry for the delay in getting back to you, I've been crazy busy lately. I'll take a look at these issues as soon as I can, will hopefully have an update for you by end of next week at the latest (along with a fix for re3troo's issue below)

Thanks for making it, its very useful!