PrintC "UserFunc - Prefix [%g]", SRQuest.svPrefixset SRQuest.svPrefix to sv_Construct "%e"PrintC "UserFunc - Prefix [%g]", SRQuest.svPrefixEach time the line runs svPrefix gets a new ID. But the old ID never gets sv_Destruct'd (cause I assumed svPrefix kept its ID). When I change the line to this the problem goes away.
let SRQuest.svPrefix := ""-or just-let SRQuest.svPrefix := sv_Construct "%e"A problem with sv_Construct?? :unsure:
if (dummyPotion == 0) ; Should only be true on first run let dummyPotion := tejonArsDummyPotion ; Has no effects let dummyPotion := CloneForm dummyPotionendif...CopyAllEffectItems thing dummyPotionCopyIconPath thing dummyPotionCopyModelPath thing dummyPotionCopyName thing dummyPotion...(some operations are performed on certain MGEFs in dummyPotion, if present)...let index := player.GetItemCount thingplayer.RemoveItemNS thing index ; Out with the oldlet thing := 0 ; Just in case? Tried with and without thislet thing := MatchPotion dummyPotionif (thing == dummyPotion) || (thing == 0) ; Zero check just in case too let thing := CloneForm dummyPotionendifplayer.AddItemNS thing index ; In with the new; re-empty dummyPotion for next time --let index := (GetMagicItemEffectCount dummyPotion)while (index > 0) let index -= 1 RemoveNthEffectItem dummyPotion indexLoop...(price and weight of thing are adjusted)