You could first make a menu (
http://quest5.net/wiki/Show_menu) as shown in the wiki, with choices for restart/try again/finish. I've seen that people do the following in the
try again situation: just move the player to a particular room before whatever happened that causes the decision. For
restart I can't find a command in the wiki, but I'm sure there must be a way? (possibly a loop calling
undo 200000 times - erm.. joke?) And for
finish then you can use
finish.
Is there a variable that counts the number of valid commands one has typed? Then you could record the command number when you say enter a particular room, and when the
unfortunate accident occurs, just
undo a certain number of commands.
Maybe better would be to have a record gamestate and reload gamestate commands?