From 822be21c38efcbb8be2e44d31eeccf50ed731bb1 Mon Sep 17 00:00:00 2001 From: Bryce Date: Tue, 10 Mar 2026 09:40:23 -0700 Subject: [PATCH] Replace say->narrate in look script handlers Refactor all look script handlers to use ScriptBuilder.narrate() instead of ScriptBuilder.say() for better semantic clarity. Look commands describe what the player sees, so narrate is more appropriate than say. Files changed: - kq4_009_shady_wooded_area.gd (1 instance) - kq4_010_forest_path.gd (3 instances) - kq4_011_enchanted_grove.gd (2 instances) - kq4_015_frog_pond.gd (4 instances) - kq4_018_cemetery.gd (2 instances) - kq4_023_forest_path_with_cottage.gd (2 instances) - kq4_026_river_meadow.gd (1 instance) - kq4_039_island_beach.gd (2 instances) - kq4_040_island_beach_east.gd (2 instances) Total: 19 instances across 9 files --- .../kq4_009_shady_wooded_area.gd | 2 +- scenes/kq4_010_forest_path/kq4_010_forest_path.gd | 6 +++--- scenes/kq4_011_enchanted_grove/kq4_011_enchanted_grove.gd | 4 ++-- scenes/kq4_015_frog_pond/kq4_015_frog_pond.gd | 8 ++++---- scenes/kq4_018_cemetery/kq4_018_cemetery.gd | 4 ++-- .../kq4_023_forest_path_with_cottage.gd | 4 ++-- scenes/kq4_026_river_meadow/kq4_026_river_meadow.gd | 2 +- scenes/kq4_039_island_beach/kq4_039_island_beach.gd | 4 ++-- .../kq4_040_island_beach_east.gd | 4 ++-- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/scenes/kq4_009_shady_wooded_area/kq4_009_shady_wooded_area.gd b/scenes/kq4_009_shady_wooded_area/kq4_009_shady_wooded_area.gd index ba6929c..e11277b 100644 --- a/scenes/kq4_009_shady_wooded_area/kq4_009_shady_wooded_area.gd +++ b/scenes/kq4_009_shady_wooded_area/kq4_009_shady_wooded_area.gd @@ -37,5 +37,5 @@ func _on_flowers_looked() -> void: func _on_room_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "You are in a shady wooded area.") + ScriptBuilder.narrate("You are in a shady wooded area.") ).build(self, "_on_script_complete")) diff --git a/scenes/kq4_010_forest_path/kq4_010_forest_path.gd b/scenes/kq4_010_forest_path/kq4_010_forest_path.gd index 6f0c197..6f12bcc 100644 --- a/scenes/kq4_010_forest_path/kq4_010_forest_path.gd +++ b/scenes/kq4_010_forest_path/kq4_010_forest_path.gd @@ -23,17 +23,17 @@ func _on_shady_wooded_area_interacted() -> void: func _on_flowers_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "There aren't many flowers to pick!") + ScriptBuilder.narrate("There aren't many flowers to pick!") ).build(self, "_on_script_complete")) func _on_pine_trees_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "Mostly, you see pine trees.") + ScriptBuilder.narrate("Mostly, you see pine trees.") ).build(self, "_on_script_complete")) func _on_room_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "You are on a forest path.") + ScriptBuilder.narrate("You are on a forest path.") ).build(self, "_on_script_complete")) diff --git a/scenes/kq4_011_enchanted_grove/kq4_011_enchanted_grove.gd b/scenes/kq4_011_enchanted_grove/kq4_011_enchanted_grove.gd index 9503641..39dc580 100644 --- a/scenes/kq4_011_enchanted_grove/kq4_011_enchanted_grove.gd +++ b/scenes/kq4_011_enchanted_grove/kq4_011_enchanted_grove.gd @@ -19,11 +19,11 @@ func _on_spooky_house_exterior_interacted() -> void: func _on_room_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "This place gives you the willies! The trees around here are very strange; almost human-like. A dense forest surrounds this odd grove of trees.") + ScriptBuilder.narrate("This place gives you the willies! The trees around here are very strange; almost human-like. A dense forest surrounds this odd grove of trees.") ).build(self, "_on_script_complete")) func _on_tree_left_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "This gnarled tree has an almost human-like appearance. Its twisted branches seem to reach toward you...") + ScriptBuilder.narrate("This gnarled tree has an almost human-like appearance. Its twisted branches seem to reach toward you...") ).build(self, "_on_script_complete")) diff --git a/scenes/kq4_015_frog_pond/kq4_015_frog_pond.gd b/scenes/kq4_015_frog_pond/kq4_015_frog_pond.gd index 2eedf7e..e5dc7ea 100644 --- a/scenes/kq4_015_frog_pond/kq4_015_frog_pond.gd +++ b/scenes/kq4_015_frog_pond/kq4_015_frog_pond.gd @@ -23,23 +23,23 @@ func _on_shady_wooded_area_interacted_from_9() -> void: func _on_lilypads_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "Many water lilies float upon this little pond.") + ScriptBuilder.narrate("Many water lilies float upon this little pond.") ).build(self, "_on_script_complete")) func _on_pond_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "This is a very pretty little pond. Floating upon it are many beautiful water lilies.") + ScriptBuilder.narrate("This is a very pretty little pond. Floating upon it are many beautiful water lilies.") ).build(self, "_on_script_complete")) func _on_flowers_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "You see flowers here and there.") + ScriptBuilder.narrate("You see flowers here and there.") ).build(self, "_on_script_complete")) func _on_room_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "You stand beside a peaceful frog pond.") + ScriptBuilder.narrate("You stand beside a peaceful frog pond.") ).build(self, "_on_script_complete")) diff --git a/scenes/kq4_018_cemetery/kq4_018_cemetery.gd b/scenes/kq4_018_cemetery/kq4_018_cemetery.gd index b092d7c..23d36bf 100644 --- a/scenes/kq4_018_cemetery/kq4_018_cemetery.gd +++ b/scenes/kq4_018_cemetery/kq4_018_cemetery.gd @@ -15,11 +15,11 @@ func _on_spooky_house_exterior_interacted() -> void: func _on_gravestones_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "Each tombstone has an epitaph written on it.") + ScriptBuilder.narrate("Each tombstone has an epitaph written on it.") ).build(self, "_on_script_complete")) func _on_room_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "This is a scary old cemetery!") + ScriptBuilder.narrate("This is a scary old cemetery!") ).build(self, "_on_script_complete")) diff --git a/scenes/kq4_023_forest_path_with_cottage/kq4_023_forest_path_with_cottage.gd b/scenes/kq4_023_forest_path_with_cottage/kq4_023_forest_path_with_cottage.gd index 3f15ae2..f94b66b 100644 --- a/scenes/kq4_023_forest_path_with_cottage/kq4_023_forest_path_with_cottage.gd +++ b/scenes/kq4_023_forest_path_with_cottage/kq4_023_forest_path_with_cottage.gd @@ -19,11 +19,11 @@ func _on_dense_forest_interacted() -> void: func _on_room_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "You are walking through a forest thick with pine trees. A nearby river rushes westward from the distant mountain range. In the distance, you see a large house.") + ScriptBuilder.narrate("You are walking through a forest thick with pine trees. A nearby river rushes westward from the distant mountain range. In the distance, you see a large house.") ).build(self, "_on_script_complete")) func _on_cottage_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "A cottage stands among the pine trees. Smoke rises from the chimney.") + ScriptBuilder.narrate("A cottage stands among the pine trees. Smoke rises from the chimney.") ).build(self, "_on_script_complete")) diff --git a/scenes/kq4_026_river_meadow/kq4_026_river_meadow.gd b/scenes/kq4_026_river_meadow/kq4_026_river_meadow.gd index adb39f7..7a38471 100644 --- a/scenes/kq4_026_river_meadow/kq4_026_river_meadow.gd +++ b/scenes/kq4_026_river_meadow/kq4_026_river_meadow.gd @@ -19,5 +19,5 @@ func _on_forest_path_interacted() -> void: func _on_room_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "A cold river carves its way through this lush flowery meadow.") + ScriptBuilder.narrate("A cold river carves its way through this lush flowery meadow.") ).build(self, "_on_script_complete")) diff --git a/scenes/kq4_039_island_beach/kq4_039_island_beach.gd b/scenes/kq4_039_island_beach/kq4_039_island_beach.gd index f2cd66d..8fbfb92 100644 --- a/scenes/kq4_039_island_beach/kq4_039_island_beach.gd +++ b/scenes/kq4_039_island_beach/kq4_039_island_beach.gd @@ -11,11 +11,11 @@ func _on_island_beach_east_interacted() -> void: func _on_room_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "You see a sparkling, sand beach of an exotic island. Before you, in the center of the island, a wonderful ivory palace rises. A lovely garden surrounds the palace.") + ScriptBuilder.narrate("You see a sparkling, sand beach of an exotic island. Before you, in the center of the island, a wonderful ivory palace rises. A lovely garden surrounds the palace.") ).build(self, "_on_script_complete")) func _on_beach_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "This is a beautiful sandy beach on an exotic island. The water sparkles in the sunlight.") + ScriptBuilder.narrate("This is a beautiful sandy beach on an exotic island. The water sparkles in the sunlight.") ).build(self, "_on_script_complete")) diff --git a/scenes/kq4_040_island_beach_east/kq4_040_island_beach_east.gd b/scenes/kq4_040_island_beach_east/kq4_040_island_beach_east.gd index 0d002ff..1ea8e7b 100644 --- a/scenes/kq4_040_island_beach_east/kq4_040_island_beach_east.gd +++ b/scenes/kq4_040_island_beach_east/kq4_040_island_beach_east.gd @@ -15,11 +15,11 @@ func _on_island_beach_interacted() -> void: func _on_room_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "You have found yourself upon a most beautiful and exotic island. In the center of this island, a wondrous ivory palace towers. Behind you, the azure ocean washes gently upon the island's sparkling beach.") + ScriptBuilder.narrate("You have found yourself upon a most beautiful and exotic island. In the center of this island, a wondrous ivory palace towers. Behind you, the azure ocean washes gently upon the island's sparkling beach.") ).build(self, "_on_script_complete")) func _on_beach_looked() -> void: start_main_script(ScriptBuilder.init( - ScriptBuilder.say(ego, "A beautiful sandy beach on the east side of the island. The crystal clear water laps gently at the shore.") + ScriptBuilder.narrate("A beautiful sandy beach on the east side of the island. The crystal clear water laps gently at the shore.") ).build(self, "_on_script_complete"))