Is there supposed to be an Inform 7 Reference Book? I feel a bit foolish asking, but if there is, I don’t know how to find it.
I based this attempt on two examples, #138 “Big Sky Country,” and #370, Jamaica 1688.
Tale is a room.
achievement is a truth state that varies.
Winning is an action applying to nothing. Understand “win” as winning.
Carry out winning: now achievement is true.
say “You made it!”;
Losing is an action applying to nothing. Understand “lose” as losing.
Carry out losing: end the game in death.
Table of Final Question Options (continued)
final question wording only if victorious topic final response rule final response activity
“REPLAY [the current episode]” false “replay” restart the current episode rule –
This is the restart the current episode rule:
resume the story;
reset the current episode;
The current episode is a scene that varies.
Every turn: say “The current episode is [the current episode].”
When a scene (called the moment) begins:
say “[the moment] is beginning.”;
reset the moment;
To reset (the installment - a scene):
Now achievement is false;
Now the current episode is the installment;
Prologue is a scene. Prologue begins when play begins. Prologue ends when achievement is true.
Middle is a scene. Middle begins when Prologue ends. Middle ends when achievement is true.
Epilogue is a scene. Epilogue begins when Middle ends. Epilogue ends when achievement is true.
When Epilogue ends: end the game in victory.
test me with “lose/replay”[/code]