• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
Resource icon

v21.1 [v20\v21] Item Crafter UI Plus 3.0.0

This resource pertains to version 21.1 of Pokémon Essentials.
Pokémon Essentials Version
v21.1 ✅
Also compatible with
  1. v20.1
  2. v20
An updated version of Simple item crafting system + interface (v20.1) for both ease of use and added functionality.
Mikyi6x.png

aOoY7Uo.png

What's New:
  • A new PBS file, recipes.txt, allowing for the definition of new recipes in one place.
  • Recipes that yield more than 1 units of the crafted item.
  • Recipes that can take ingredients with a specific flag, instead of hardcoded items.
    • Generic ingredients now have icons based off their flag.
  • Recipes sorted by flags.
  • Locking and Unlocking recipes.
Installation:
Just drag and drop in all the folders in the downloaded zip into your root folder so they merge with the folders already there.

Usage:
Defining a Recipe
A recipes.txt entry consists of several components
Example Recipe:
Expand Collapse Copy
[BreakMaxRevive]
Item=REVIVE
Yield=5
Ingredients=MAXREVIVE,1
Flags=Crafting
A recipe consists of its internal name (BreakMaxRevive), the Item that is produced (REVIVE), the number of items produced from 1 set of ingredients (defaults to 1 if not included), the ingredients (Item ID or flag and quantity), and a set of flags.
If the Ingredient is a valid Item ID, then it is treated as an item, otherwise it is considered an item flag (from items.txt)
Example Generic Recipe:
Expand Collapse Copy
[BerryJuice]
Item=BERRYJUICE
Ingredients=Berry,1
Flags=Cooking
A generic ingredient is consumed in order of cheapest price, and if two potential items share the same price, it is consumed in the order defined in items.txt (with ones defined earlier consumed first).

Unlocking & Locking Recipes
Recipes can be unlocked with pbUnlockRecipe(recipe_id), where recipe_id is the internal name from recipes.txt.
pbUnlockRecipe(:BerryJuice) unlocks the BerryJuice recipe
Recipes can be locked using pbLockRecipe(recipe_id). pbLockRecipe(:BerryJuice) locks the BerryJuice Recipe.

Using the Item Crafter
The easiest form of calling the item crafter is pbItemCrafter(pbGetRecipes). pbGetRecipes returns an array of all the unlocked Recipe IDs. It can also be called with a flag string pbGetRecipes("Cooking"), to filter for only Recipes with the Cooking flag.

Generic Ingredients
Generic ingredients use an item flag instead of a regular item. To faciliate this, a new self.flag_icon_filename method is added to GameData::Item, which pulls an image named the respective flag (in lowercase) from Graphics\Items\Category. So the generic Berry ingredient will use the filename Graphics\Items\Category\berry.

Generic ingredients by default use the flag as the name of the ingredient. If this isn't fitting, you can add the flag (in lowercase) to FLAG_TO_TEXT in 001_UI_ItemCrafting.rb, to define a different user facing name, like "Any Berry" for Berry.
Credits
ThatWelshOne_ for the original script
Vendily
Author
Vendily
Downloads
1,304
Views
5,598
First release
Last update

Ratings

4.88 star(s) 8 ratings

More resources from Vendily

Latest updates

  1. v21 Update

    It's on v21 now. It's not really any different than it was before beyond that.
  2. Minor correction to sorting of items

    Sorry if you downloaded the script between when it was released yesterday and now. The sort...

Latest reviews

Amazing job! Everything works just fine :) Love it :)
If I could give it 4.9 I would. Not perfect because there's no option to give all recipes with a certain flag like there is to select them but that's literally the only flaw I can see.
V
Vendily
[code]GameData::Recipe.each do |r|
next unless r.has_flag?(flag)
pbUnlockRecipe(r.id)
end[/code]
I love everything about this! Thank you so much for making this!
Works perfectly, easy to use, specially on the PBS file instead of modifying an script.
Works great and easy to use. Checked Discussion for a way to make it a Key Item and doing so was found to be easy as well!
Having a PBS file is so easy. Less annoying then typing the script every time.
Back
Top