Oh, where to start…?
These, friends, are gen-yoo-ine run-on sentences, with not so much as a comma to direct the flow. Kinda ugly, ain’t they?
Turns out becoming a ghost after you die is a real thing. However, it takes years of practicing before you can actually communicate with the living world. By the time you have it figured out, it has been several generations, and you decide to try to contact one of your descendants.
Kudos, though, to the person who came up with this one for writing try to contact rather than try and contact.
I do think the last sentence would work better this way: By the time you have it figured out, several generations have come and gone, and you decide to try to contact one of your descendants. The original wording isn’t wrong, but it is awkward.