Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Data shapeServer APIGenerated

CraftRecipeStepDefinition

Defined in: server/api.d.ts:3601

One step of a custom alchemy recipe, as a row of the game’s AlchemyRecipe.xml has it.

condition: string

Defined in: server/api.d.ts:3615

The game’s own condition syntax, terms joined by AND: PotionBase(), IngredientCount('<item>') == n or >= n, IsMilled('<item>', 0 | 1), WeakBoilingTime('<item>', time), StrongBoilingTime('<item>', time), IsBaseDistilled(0 | 1) and IsResultMilled(0 | 1). Item GUIDs in lower case; a time is in the table’s time units. Anything else is refused.


feedbackPriority: number | undefined

Defined in: server/api.d.ts:3620

The order the recipe book lists failed steps in. Default 0.


id: number

Defined in: server/api.d.ts:3605

1 to 28, distinct within the recipe: the step’s bit in the knowledge mask. The first step listed identifies the recipe: a brew that fails it is not this recipe.


text: string | undefined

Defined in: server/api.d.ts:3625

The step’s line in the recipe book, shown as written. Default none.


type: "Trivial" | "Easy" | "Hard"

Defined in: server/api.d.ts:3610

The step’s XP: 0, 12 or 24, from AlchemyRecipeStepType.xml.