Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Greetings.

Version 1.10 of this plugin added the ability to disable and enable specific recipes. This was different than locking or unlocking them.

  • By default, all recipes are locked, and enabled.
  • When a recipe is crafted the first time, it is unlocked.
    • This allows it to show on the preview window if it is enabled, and allows the player to craft it directly from the recipe list menu if you have that.
  • There was already a plugin command to unlock a recipe, which you could use in a common event, or something, to allow the player to preview some items, or see them in the recipe list by default. You could also use this to teach the player recipes via an event.
  • Version 1.10 added a command to 'lock' recipes again. This was technically possible to do already by messing with some script calls, but the plugin command allows you to 'hide' an unlocked recipe again. Why you'd want that, I'm not sure, but there it is.
  • Disabling a recipe prevents the player from making it at all. It will not show up on the preview window, and crafting it, even if the correct ingredients are given will result in a hard failure (as if the recipe doesn't exist).
    • There is no way to have a recipe start as disabled, but you can run the plugin command from a common event at the beginning of the game to disable recipes you don't want the player to be able to make right away.
  • Enabling a recipe simply un-disables it, allowing the player to make it again.

Basically you'd make the recipe like normal, and then in the game, before unlocking the crafting system, you'd run a plugin command to disable that recipe, preventing the player from making it. Then when you want them to be able to make it again, you can enable it using the plugin command.

You could also do something like requiring a 'recipe' item as part of the craft, which the player wouldn't acquire until they should know about it, and making that recipe not consumed on failure, so if the player jams it randomly into a craft it doesn't disappear forever.

Hope this clears it up for you.

~Ramza