Complex sentence: Legend has it that he had four eyes and eight pupils, and that when he invented the characters, the deities and ghosts cried and the sky rained millets.
Split into simpler sentences: Legend has it that he had four eyes and eight pupils. When he invented the characters, the deities and ghosts cried and the sky rained millets.