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).
Syntax
Section titled “Syntax”GetRecipeInfo(recipe)| Parameter | Type | |
|---|---|---|
recipe |
string | a recipe’s key, name or document |
Returns
Section titled “Returns”table or nil - {key, kind, id, name, document, perks = {guid, ...}, products = {guid, ...}}; nil for no such recipe
Example
Section titled “Example”local r = GetRecipeInfo("Hair o' the Dog")Log(r.key, r.kind, r.document) -- alchemy:1 alchemy recipe_hairodogPotionSee also
Section titled “See also”GetRecipes · GivePlayerRecipe · the Recipes group of the index
