I know this is a stupid question, but how would I print a variable to the console?
Hope this helps - not sure if you're asking for more. See here for details, and other print functions that you may find useful:
Doesn't help, thank tho
The print statement will have to be inside a function and that function will need to be called at some point. You can put it inside the _ready() function to have it trigger when the program loads, inside _process(delta) to have it trigger on every game process update, etc.
It's the answer to your question. If you explain a little more what you're trying to do, perhaps you can get a more complete answer.