Closed KVonGit closed 3 years ago
Never mind.
I'm silly. It just preSaves everything every time something changes. That's how it should be, I believe.
(See? I had a feeling I shouldn't post this one on the forum. This way, I can just close the issue.)
Hello.
I don't know if this is a bug, or if I have something messed up.
This also involves
this
. So, I was afraid to post it on the forum. (Any misinformation I may inadvertently post should be less apt to confuse people here.) (Also note that I've replacedthis
withw.TV
, and it works fine.)The
preSave
andpostLoad
on my TV object:The following is from the console on game startup. I do not save during this process, but
preSave
runs when the game loads.Also,
this
seems to be targeting the window object rather than the item in this scenario. (I promise I didn't find this bit out purposefully.)In fact, I just messed with it some more, and
preSave
seems to run every time I interact with the TV.I am probably misunderstanding this.
EDIT
Now I get it. It preSaves every time the item is messed with during play to make sure all the attributes are up to date (I think).
The entire TV object: