Difference between revisions of "My first: Recipe"
(Created page with "== Description == Item combinations in the Divinity Engine 2 are used for a wide range of crafting possibilities, and whether you want to brew a deadly potion or craft a power...") |
|||
Line 41: | Line 41: | ||
|Name | |Name | ||
|RecipeCategory | |RecipeCategory | ||
− | | | + | |Result 1 |
|PreviewStatsID | |PreviewStatsID | ||
|- | |- | ||
Line 53: | Line 53: | ||
|CON_Potion_Fire_Res_Large_A | |CON_Potion_Fire_Res_Large_A | ||
|CON_Potion_Fire_Res_Large_A | |CON_Potion_Fire_Res_Large_A | ||
+ | |} | ||
+ | |||
+ | |||
+ | These properties define the type of item combination, the crafting result and the crafting result preview. | ||
+ | |||
+ | Next, we will configure the ingredients for the item combination: | ||
+ | {| class="wikitable" | ||
+ | !colspan="3"|Ingredient 1 | ||
+ | |- | ||
+ | |Name | ||
+ | |Type 1 | ||
+ | |Object 1 | ||
+ | |Transform 1 | ||
+ | |- | ||
+ | |01 | ||
+ | |Object | ||
+ | |CON_Food_Pepper_A | ||
+ | |Transform | ||
+ | |- | ||
+ | |02 | ||
+ | |Object | ||
+ | |CON_Food_Pepper_A | ||
+ | |Transform | ||
+ | |} | ||
+ | |||
+ | <br /> | ||
+ | {| class="wikitable" | ||
+ | !colspan="3"|Ingredient 2 | ||
+ | |- | ||
+ | |Name | ||
+ | |Type 2 | ||
+ | |Object 2 | ||
+ | |Transform 2 | ||
+ | |- | ||
+ | |01 | ||
+ | |Object | ||
+ | |CON_Herb_Whisperwood_A | ||
+ | |Consume | ||
+ | |- | ||
+ | |02 | ||
+ | |Object | ||
+ | |CON_Herb_Whisperwood_A | ||
+ | |Consume | ||
+ | |} | ||
+ | |||
+ | <br /> | ||
+ | {| class="wikitable" | ||
+ | !colspan="3"|Ingredient 3 | ||
+ | |- | ||
+ | |Name | ||
+ | |Type 1 | ||
+ | |Object 1 | ||
+ | |Transform 1 | ||
+ | |- | ||
+ | |01 | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | |02 | ||
+ | |Object | ||
+ | |LOOT_Skull_Human_A | ||
+ | |None | ||
|} | |} |
Revision as of 14:01, 21 September 2017
Contents
Description
Item combinations in the Divinity Engine 2 are used for a wide range of crafting possibilities, and whether you want to brew a deadly potion or craft a powerful weapon, it's all done via the Stats Editor.
In this guide we will be creating 2 new recipes:
- Combining a red pepper and whisperwood to create a fire resistance potion
- Combining a red pepper, whisperwood and augmenting it with a human skull
What this guide will not be covering is crafting custom objects or crafting using custom ingredients. For this you would first need a new stats object and a new root template.
Creating a new recipe
Step 1: setting up your level
Setting up a test scene
The first thing we will need to do is to set up a test scene. I placed the following templates:
- LOOT_Skull_Human_A (1)
- 2x CON_Food_Pepper_A (2)
- 2x CON_Herb_Whisperwood_A (3)
To reference these object types we will need the name of the stats object, not the name of the root template! You can find the name of the stats object in the template's properties (Ctrl+B to open the sidebar) under the property named "Stats".
Step 2: the stats editor =
2 ItemCombination stats entries for our 2 new recipes
Next, open the Stats editor. The Stats editor is where we will be defining our recipes.
In the stats editor, locate the "ItemCombos" document in your project. If it does not yet exist, click the + icon next to ItemCombos and create it.
I added 2 new entries to the ItemCombos document: CON_Herb_Whisperwood_A_CON_Food_Pepper_A_01 (1) and CON_Herb_Whisperwood_A_CON_Food_Pepper_A_02 (2). The former will be our base recipe and the former will be the augmented version (with the skull).
First, let's set the base properties:
Name | RecipeCategory | Result 1 | PreviewStatsID |
01 | Potions | CON_Potion_Fire_Res_Medium_A | CON_Potion_Fire_Res_Medium_A |
02 | Potions | CON_Potion_Fire_Res_Large_A | CON_Potion_Fire_Res_Large_A |
These properties define the type of item combination, the crafting result and the crafting result preview.
Next, we will configure the ingredients for the item combination:
Ingredient 1 | |||
---|---|---|---|
Name | Type 1 | Object 1 | Transform 1 |
01 | Object | CON_Food_Pepper_A | Transform |
02 | Object | CON_Food_Pepper_A | Transform |
Ingredient 2 | |||
---|---|---|---|
Name | Type 2 | Object 2 | Transform 2 |
01 | Object | CON_Herb_Whisperwood_A | Consume |
02 | Object | CON_Herb_Whisperwood_A | Consume |
Ingredient 3 | |||
---|---|---|---|
Name | Type 1 | Object 1 | Transform 1 |
01 | |||
02 | Object | LOOT_Skull_Human_A | None |