SetNthIngredientQuantity - ConstructibleObject

From the CreationKit Wiki
Jump to navigation Jump to search

SKSE Member of: ConstructibleObject Script

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

Syntax[edit | edit source]

Function GetNthIngredientQuantity(Int Value, Int n) native

Parameters[edit | edit source]

  • Value : the new quantity needed
  • n : the Nth Ingredient of the ConstructibleObject

Return Value[edit | edit source]

None

Examples[edit | edit source]

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

Notes[edit | edit source]

None

See Also[edit | edit source]