... that lets me see where exactly it's getting called from?
It's not getting called from anywhere.
default
is one of a list of commands that, in effect, are executed when the game starts.
The
label
has nothing at all to do with them and is likely just the author copy/pasting code from someone who didn't understand it either.
Things like
default
,
define
and
image
are NOT executed at runtime.
When you hit the
[START]
button on almost every game, those default values are loaded - regardless of where the statements are located within the code.
For much the same reason, those same statements are treated as comments while the script is running (since they've already been executed).
As with all programming languages, there are some caveats with all that. But that's the basics of it.
I wrote this example for a
another thread which highlights the point...
Python:
label start:
"*** START ***"
$ myvar1 += 1
"value is [myvar1]."
default myvar1 = 5
"new value is [myvar1]."
"*** THE END ***"
Will display
6
and
6
, not
6
and
5
(or even
1
and
5
).
Most developers will put statements like these at the top of the scripts, or create separate scripts to hold them. It's purely for organizing things, RenPy doesn't care. But it makes sense to the programmer and will make their lives easier in the future, if they know where to find things that are initialized.
Edit: (for a bit of clarity)...
default
should be used for variables where the value will be (or is likely to be in the future) changed by the script.
define
should be used for variables that will remain unchanged while the script is running.