thadunge2 / AIDungeon

Other
51 stars 32 forks source link

/retry for a new story start #80

Closed marktaiwan closed 4 years ago

marktaiwan commented 4 years ago

When at the start of the story, /retry will start a new story with the current context + story_prompt.

To make this work, a new 'story_prompt' property is added to the Story class and stored with the save file, similar to 'context'. When loading older saves lacking 'story_prompt', it will be initialized as an empty string, so this change won't be entirely compatible with previous saves, but otherwise shouldn't affect anything else.