Background for Skyrim SE
Member of the ConstructibleObject script
voidfunctionSetNthIngredientQuantity(intvalue, intn)Native

Description

Wiki Description

Changes the quantity needed of the Nth Ingredient for a ConstructibleObject. (This function requires SKSE)


Caveats

CK Wiki - Notes

None


Parameters

intvalue

CK Wiki Description

the new quantity needed

intn

CK Wiki Description

the Nth Ingredient of the ConstructibleObject


Examples

RecipeArmorIronCuirass.SetNthIngredientQuantity(10, 0) ; Player now needs 10 LeatherStrips to craft
RecipeArmorIronCuirass.SetNthIngredientQuantity((RecipeArmorIronCuirass.GetNthIngredientQuantity(0)*2 + 4), 1) ; Player now needs 10 IngotIron to craft

Auto-Generated Example

int myInt__value
int myInt__n

myConstructibleObject__toCallFunctionOn.SetNthIngredientQuantity(myInt__value, myInt__n)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.