Scriptname AllIngredients extends ObjectReferenceFormList Property everyingredient Auto{all default ingredients}Event OnActivate(ObjectReference akActionRef)self.removeallitems()Ingredient ingredInt iwhile i< everyingredient.getSize() ingred = everyingredient.getAt(i) as Ingredient self.additem(ingred, 10) i+=1 endwhileendEvent
'everyingredient' is an correctly associated to a formlist with all of the default ingredients, and the script compiles successfully. My problem is that it doesn't actually do anything. I suspect, but am not sure, the problem is that 'self.additem' is not the correct way to insert an item into a container, but to be honest I'm at something of a loss.
Any help would be appreciated.