Skip to content

GetRecipeInfo

A recipe’s key, kind, name, document and what it makes.

recipe is its key, its English name, the class name of the document that teaches it or one of its perks’ GUIDs. The table holds key, kind ("alchemy" or "smithing"), id (the game’s own recipe id), name (English), document (the class name of the recipe document; "" for a recipe no document teaches), perks (the GUIDs of the perks that teach it) and products (the item class GUIDs it makes - an alchemy recipe’s by quality, the weakest first).

GetRecipeInfo(recipe)
Parameter Type
recipe string a recipe’s key, name or document

table or nil - {key, kind, id, name, document, perks = {guid, ...}, products = {guid, ...}}; nil for no such recipe

local r = GetRecipeInfo("Hair o' the Dog")
Log(r.key, r.kind, r.document) -- alchemy:1 alchemy recipe_hairodogPotion

GetRecipes · GivePlayerRecipe · the Recipes group of the index