The main character of a story dies before the story itself ends. Nothing new here, you can keep a story interesting following their death. But I have an additional requirement: The dead main character has to exert influence to the story world even following their death (diminished capacity acceptable), and I'm wondering about ways to achieve this.
This is for interactive fiction, where the reader gets to make choices on behalf of the main character. I'm exploring death as a possible consequence of those choices, but don't want that to stop further choices down the line completely.
An afterlife of some sort is one possibility; undeath, e.g., becoming a ghost, appearing in other characters' dreams, having their consciousness stored in a computer... What other ways are there?