Is there a way to access an int from another script purely from code (without have to drag 1 script into 2nd script in the editor)?
Yes. There are many ways to do that and choosing one depends on what you need this for exactly.
GetComponent<T>
is first that comes to mind
var comp = GetComponent<ComponentName>();`
int number = comp.myPublicIntField;
But there is also
var comp = GetComponentInChildren<ComponentName>();`
int number = comp.myPublicIntField;
for hierarchy-dependent setups.
And
var comp = FindObjectOfType<ComponentName>();
int number = comp.myPublicIntField;
is widely used as well, but mostly beginners use it (as it is slow).
There are better ways of doing this but, in the end, you will return to filling fields manually.