Difference between revisions of "SetNthIngredient - ConstructibleObject"
Jump to navigation
Jump to search
imported>Seigneur Voland |
imported>Seigneur Voland |
||
Line 21: | Line 21: | ||
== Examples == | == Examples == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Replaces in RecipeArmorIronCuirass LeatherStrips by DaedraHeart & IngotIron by | ; Replaces in RecipeArmorIronCuirass LeatherStrips by DaedraHeart & IngotIron by IngotSteel | ||
ConstructibleObject Recipe = RecipeArmorIronCuirass | ConstructibleObject Recipe = RecipeArmorIronCuirass | ||
Recipe.SetNthIngredient(DaedraHeart, 0) | Recipe.SetNthIngredient(DaedraHeart, 0) | ||
RecipeArmorIronCuirass.SetNthIngredient( | RecipeArmorIronCuirass.SetNthIngredient(IngotSteel, 1) | ||
; Replaces the n Ingredient of a recipe by a corresponding Form from a FormList | ; Replaces the n Ingredient of a recipe by a corresponding Form from a FormList |
Revision as of 06:08, 5 August 2012
SKSE Member of: ConstructibleObject Script
Sets the Nth Ingredient of a ConstructibleObject to the specified Form. (This function requires SKSE)
Syntax
Function SetNthIngredient(Form Ing, Int n) native
Parameters
- Ing : the new Form of the Ingredient
- n : the Nth Ingredient of the ContructibleObject
Return Value
None
Examples
; Replaces in RecipeArmorIronCuirass LeatherStrips by DaedraHeart & IngotIron by IngotSteel
ConstructibleObject Recipe = RecipeArmorIronCuirass
Recipe.SetNthIngredient(DaedraHeart, 0)
RecipeArmorIronCuirass.SetNthIngredient(IngotSteel, 1)
; Replaces the n Ingredient of a recipe by a corresponding Form from a FormList
(ConstructibleObjectList.GetAt(i) as ConstructibleObject).SetNthIngredient(IngotList.GetAt(i), n)
Notes
None