Check quitting the game

I have this check for quitting the game, which follows the formula from Example 111 in the documentation.

[QUITTING]
Check quitting the game:
	say "Are you absolutely certain you want to quit?";
	if the player consents, say "[line break]Quitter![line break]";
	otherwise stop the action.

But then, after the player says YES, the parser asks again “Are you sure you want to quit?” and waits for a second response.

I’ve tried changing the CHECK to CARRY OUT or REPORT, and those don’t work right. I’ve tried the recommendations in this thread, and they won’t even compile. I found the command “stop game abruptly” in the Basic Screen Effects extension documentation, it stops the game without displaying the “Quitter!” text.

What am I missing?

1 Like
Check quitting the game:
	say "Are you absolutely certain you want to quit?";
	if the player consents:
		say "[line break]Quitter![line break]";
		end the story finally;
	otherwise:
		stop the action.

2 Likes

I’ve tried this, but it still asks the player if they want to RESTART/RESTORE/QUIT/UNDO again. Doesn’t seem very final.

Does this do what you want?

Check quitting the game:
	say "Are you absolutely certain you want to quit?";
	if the player consents:
		say "[line break]Quitter![line break]";
		follow the immediately quit rule;
	otherwise:
		stop the action.
5 Likes

Although I have to ask, why?

2 Likes

I’m just trying to customize the quit text so it’s not the default. Not necessary, just trying to add some personality to the interface.

4 Likes