From b330a3f06f38d645d29ec06e7efcc830369121d4 Mon Sep 17 00:00:00 2001 From: Eddoursul Date: Wed, 16 Oct 2024 15:18:59 +0200 Subject: [PATCH] Moved autolearning ingredient effects to a quest --- Autolearn effects of unique ingredients.esp | Bin 2159 -> 0 bytes Autolearn quest.esp | Bin 0 -> 581 bytes scripts/_00E_AutolearnEffectsAlias.pex | Bin 0 -> 1028 bytes scripts/_00e_learnalleffects.pex | Bin 772 -> 0 bytes scripts/scriptarchiveorder.txt | 3 +- source/scripts/_00E_AutolearnEffectsAlias.psc | 27 ++++++++++++++++++ source/scripts/_00e_learnalleffects.psc | 9 ------ 7 files changed, 29 insertions(+), 10 deletions(-) delete mode 100644 Autolearn effects of unique ingredients.esp create mode 100644 Autolearn quest.esp create mode 100644 scripts/_00E_AutolearnEffectsAlias.pex delete mode 100644 scripts/_00e_learnalleffects.pex create mode 100644 source/scripts/_00E_AutolearnEffectsAlias.psc delete mode 100644 source/scripts/_00e_learnalleffects.psc diff --git a/Autolearn effects of unique ingredients.esp b/Autolearn effects of unique ingredients.esp deleted file mode 100644 index 4815f0d9b47ce8c68686b6989652f4fbafec3af0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2159 zcmbtVNpI6Y6n;rt+Cn9eT0krU3lNJaRe>T7EJ+&MG-{HTIAv2&G$fP6suNdZLzNo` z{sEgGO_}}E`WGCmI?u+Vp?_;Xj3(&R|cq60Xde9ao8OQOQ2K>lo3PPC#fbY znYK-&v7p`OH{p=yGa5zg3=a@Vf9;aK_$=hSd8BU= zgsNIDeKIq6Fqfv5MatF)C)jqFf8a15hP5pVofTRf+Ib>**66xkzxTWkx{<&dWf@u& zlYRUw{$6oTuFTBogiR|c+_6N(vYj8op^Ys&H6KZ=!XSQ=35)fw^~HJ{tbjJaOjr%V z%`Qt4v9-#N(l7LNJMwRbxN(tZIGapVON`oH?1nqbTtUABqhP(zd*=R3rcL`{aDHDU(L@AY) z)nMzlRco{FVmxrKwIYJD6Xm%}PCNQR-N; z!swEhicsT}tH#w=;eZ-$19YqDP);$XQj~}?{Kp2k3DSC=_DgZ5ThldZT&H;|nMKL* z+gbweums!=xU*3Ls%aJ`<7L8lA!t*SUZM=Gf7uNKKaYrD8^gp)uziik?XfNL6sZ%~ z^<}Ud%V0N`#4z`hF55dk2HEayS5T2wJ3l_W-L{B+*RH@LrEZvQUrllsE;;jU`Ex|O=Bt7)%D|k|TAn^@6 ziLc;Y>rA#4g?3B&JA z45T>sg8nW#mw_*dv45(0DSp>3OdC)koNf`^;d|h!FiV0Yx|=B{nPg%-R@X%igD&Gk z*a8y^>6Hvn_7iBp0Suc>F=VqMjcLTPk;PG%V|ssm+KuwUz#SKh1UKQRT^%r95Cd6H zT;c8vaeWhWeMw3q<~n>E`f)f{8Q5ikhHbA3_zy6U?ar!Ha4p9@;x>+;%9R`xdjz1- k5`X2`a1?C~ZpqncRhHh@t6^&F<$L8le3(n@@Y6JZ0Gp(EZvX%Q literal 0 HcmV?d00001 diff --git a/scripts/_00E_AutolearnEffectsAlias.pex b/scripts/_00E_AutolearnEffectsAlias.pex new file mode 100644 index 0000000000000000000000000000000000000000..a5d1bda13d79d618bdea5a72c154b9e711eefe2f GIT binary patch literal 1028 zcmZ`%-A)rh6#j;`^oPm@0V0WBl6CjAjM>gKJF_nt@{5}-j#{d6H!fS2e#UCj+D=VWheXbIJGZFR1$U#SZvEm~LVItjl~ zI@V!)9?l3Gkyf#^QmZh*`kjnpQfPdj38kbW@-tyuUZ*-DV<^6`G&7gk42272aXc9O zcbKs>_V#O-qB7CxEMW@=PbQ*xsTJYf`%Fb{kig!BHZTimqdPKeNfYSLUwB1<)ofB= z<`l_^q&P61X+_cEk?4(0rJABT7&y?6JVH&Yk&5$h(NHo$c`(S$x>jd2l`6N`&E)2N z7kA2Q6wkEgttd|#LM|h3P;|VO=3CUbXG*ao-bvYAfc#DzFF#P^dlgu7@5d>HrNVxJiuaX(7B*R$EG?EDv{^b{cH!iJ z5!MCDuE^EQxzuTbWeru-oEO+YJy!&y)$`mkdtF+QdpEd&KZ3h#v2&YUg*|~Cfi_!y zx=n!&$Jx8P;zfy5eRBs;#vb?F=efH4@9}qtXE?&KM|8D;z=puy60ysAQ(#}9D$r%% zeHSTo(RP2qJ$pX2<#T!~Ib{Yr@nDBOl`|UxM*@c&c(^b literal 0 HcmV?d00001 diff --git a/scripts/_00e_learnalleffects.pex b/scripts/_00e_learnalleffects.pex deleted file mode 100644 index c409ce996721dbfaccc774e12d1272c8d07517db..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 772 zcmZ8f&2G~`5dJoCoS(K1grrURk$mG;1#aXPHDT=+B37?&(5y@e*X2l-GTs*Ecp2Y)75OYSbd<#sP}okNK=Y!akedD z3>HbEOH-72h=BI-*-okuuP|mFt#ZeU@|YTt95}(tH1;L=sb9Q_zdg-zNr5N{6V*g zDnX8&LJK|S-VO0wV8G=A9M&~~BSr`WTxy>P3zoR(`wM|d)u(%n8N>1;c4a6>lbST$liZeG-ZLLp F)PJ1^p^5+i diff --git a/scripts/scriptarchiveorder.txt b/scripts/scriptarchiveorder.txt index bda12b61..34bb4b71 100644 --- a/scripts/scriptarchiveorder.txt +++ b/scripts/scriptarchiveorder.txt @@ -4794,4 +4794,5 @@ scripts\prkf__00e_se_dismantleperk_03009d21.pex scripts\prkf__00e_fs_nq07_craftpotio_0300146e.pex scripts\prkf__00e_craftquestpotionpe_0300146d.pex scripts\pf_mq14_sc06_toriusstandstil_0003c597.pex -scripts\_00E_UpdateSpeedmult.pex \ No newline at end of file +scripts\_00E_UpdateSpeedmult.pex +scripts\_00E_AutolearnEffectsAlias.pex \ No newline at end of file diff --git a/source/scripts/_00E_AutolearnEffectsAlias.psc b/source/scripts/_00E_AutolearnEffectsAlias.psc new file mode 100644 index 00000000..f6cd8758 --- /dev/null +++ b/source/scripts/_00E_AutolearnEffectsAlias.psc @@ -0,0 +1,27 @@ +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 diff --git a/source/scripts/_00e_learnalleffects.psc b/source/scripts/_00e_learnalleffects.psc deleted file mode 100644 index 9fe53eb6..00000000 --- a/source/scripts/_00e_learnalleffects.psc +++ /dev/null @@ -1,9 +0,0 @@ -Scriptname _00E_LearnAllEffects extends Ingredient - -Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer) - - If akNewContainer && akNewContainer == Game.GetForm(0x14) - LearnAllEffects() - EndIf - -EndEvent