Complex sentence: He thought he might never be able to return home, so when he got his leave to Scotland with Guarnere, he got his tattoos.
Split into simpler sentences: He thought he might never be able to return home. So when he got his leave to Scotland with Guarnere, he got his tattoos.