I've only recently started Godot and it's a bit hard to find the information I'm looking for, I would appreciate any help!
I've been using preload to access other scripts that are not within the tree the current script is in, except sometimes those scripts also need to preload other scripts that aren't in the tree either.
A) print B.x -> can access B
B) x = var C.y -> can't access C, creates error
C) var y
It doesn't break if I, say, preload script C directly inside of B's function as opposed to just writing it out at the top, but it sounds like horrible spaghetti code to do that for every single function that I theoretically need access to.
I'm using the GDQuest Turn Based RPG open source as reference and it doesn't appear to run into this problem at all, but just looking at the code I can't tell how it's being bypassing it. Also I feel like all this preloading stuff is inefficient too, but I don't know any workarounds.