I've mad a few mods, mainly (read only) scripting since that's the only thing which interests me.
Now I wonder a bit about the persistence, garbage collection and all that.
It says that if I have properties it'll always be loaded into memory. Now if I attach a script to something like a magic effect and then put that magic effect on a potion, will the same instance of my script be used multiple times or will multiple instances be created?
So will there be 400 instances of my script after X hours or will there still only be 1?
Say that I have a script attached to every single food item (including potions), and this script has properties so it will be persistent. If the player eats 500 pieces of venison stew, will there be a bunch of unnecessary data loaded into memory or will it use the same script for every 500 times the player eats the venison?
