I am trying to call and change a variable from another script in the same scene.
In one script for my NPC I have:
var needs_ale = true
Then in another script for my player, I am trying to change this value to "False" when my player interacts with this NPC:
if(canInteract and event.is_action_pressed("action")):
get_node("World/NPCs/NPC").needs_ale = false
However, I get the error "Invalid set index 'needs_ale' (on base: 'null instance') with value of type 'bool'.
I have tried everything I can find. I think my get_node part is not finding the script variable but I'm not sure.
I would appreciate any support!