Su Niannian, a modern social animal, accidentally traveled through time and was bound to the harem strategy system. She must defeat the sick and weak emperor Xiao Yan within thirty days. If she fails, she will be wiped out by the system. After entering the palace, she was shocked to find that the entire harem was obsessed with a novel "My Royal Highness", and even the emperor was secretly following it.
With further investigation, she discovered that the emperor was actually a thousand-year time traveler. The system and the novel were all designed by him, just to find similar successors. When the system is about to collapse and the emperor's life is counting down, Su Niannian breaks the situation by writing a novel, reveals the truth about the system, rewrites the fate of the harem, and finally reaches the most tender ending with the programmer who has been lonely all his life in a two-way time travel.