I recently had to manually redo a bunch of my scripts because I changed how a scene was structured.
Many of my scripts refer to other nodes so I use a variable like this example
@onready var player = $"/root/game/combat/player_controller/player"
@onready var combat_manager= $"/root/game/combat/combat_manager"
Then later I might call player.position or something similar. Is there a way to stucture my code so I don't rely on this as much? It was really tedious to change a million different scripts.
I know signals can help, but only if the scene is instantiated in the editor, because otherwise you need to conntect the signal through targeting the node anyway.