Original: However, Pippi Longstocking, one of her most famous characters, was invented to please her daughter Karin, who was, at the time, ill and bed-ridden.
Simplified: However, Pippi Longstocking, her most famous character, was invented for her daughter Karin, who was, at the time, ill and had to stay in the bed.