enderalse/source/scripts/_00E_AutolearnEffectsAlias.psc

28 lines
482 B
Plaintext
Raw Normal View History

Scriptname _00E_AutolearnEffectsAlias extends ReferenceAlias Hidden
FormList Property _00E_AutolearnEffectsList Auto
int iProcessedItemsNum
Event OnInit()
OnPlayerLoadGame()
EndEvent
Event OnPlayerLoadGame()
Int nItems = _00E_AutolearnEffectsList.GetSize()
if iProcessedItemsNum == nItems
return
endif
Int i = 0
While i < nItems
(_00E_AutolearnEffectsList.GetAt(i) as Ingredient).LearnAllEffects()
i += 1
EndWhile
iProcessedItemsNum = nItems
EndEvent