From 3f0254f031f26774044331c6d028cfeecb7fa46d Mon Sep 17 00:00:00 2001 From: William Moore Date: Wed, 11 Jan 2023 15:26:31 -0600 Subject: [PATCH] Update to prevent multiple points given out for Cheese Shop --- ButteredToast4.inform/Source/story.ni | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ButteredToast4.inform/Source/story.ni b/ButteredToast4.inform/Source/story.ni index 17409a3..44a27b8 100644 --- a/ButteredToast4.inform/Source/story.ni +++ b/ButteredToast4.inform/Source/story.ni @@ -240,6 +240,7 @@ Carry out talking when the noun is Cheese Shop Dancer: GAME PROGRESSING ACTIONS ] +Cheese Shop Solved is a truth state that varies. Cheese Shop Solved is false. Instead of asking when the noun is Cheese Shopkeep: if the second noun is cheddar: say "Cheese Shopkeep frowns slightly but returns to their vapid smile and says 'Well, we don't get much call for it around here, sir!'"; @@ -255,7 +256,9 @@ Instead of asking when the noun is Cheese Shopkeep: say "[paragraph break](A short, awkward pause.)"; say "[paragraph break]Cheese Shopkeep says 'No, not really. Not a scrap.'"; say "(You hear the unlocking of the Cheese Shop Door)"; - increase the score of the player by 10; + if Cheese Shop Solved is false: + increase the score of the player by 10; + now Cheese Shop Solved is true; now the Cheese Shop Door is unlocked; otherwise: say "Cheese Shopkeep looks at you, smiles, and politely says 'I'm sorry, but we don't carry [the second noun].'";