Create room 042 (Fisherman's Shack Inside) and wire to room 007
- Added kq4_042_fishermans_shack_inside scene with south exit to room 007 - Updated room 007 to add transition to room 042 (bidirectional connection) - Fixed corrupted room 007 script file - Both transitions validated with exit checker
This commit is contained in:
@@ -1,5 +1,36 @@
|
||||
extends Scene
|
||||
|
||||
|
||||
func _on_beach_interacted() -> void:
|
||||
$kq4_001_beach.default_script(self)
|
||||
|
||||
|
||||
func _on_back_of_fishermans_shack_interacted() -> void:
|
||||
$kq4_008_back_of_fishermans_shack.default_script(self)
|
||||
|
||||
|
||||
func _on_beach_2_interacted() -> void:
|
||||
$kq4_013_beach.default_script(self)
|
||||
|
||||
|
||||
func _on_fishermans_shack_inside_interacted() -> void:
|
||||
$kq4_042_fishermans_shack_inside.default_script(self)
|
||||
|
||||
|
||||
func _on_fishermans_house_looked() -> void:
|
||||
start_main_script(ScriptBuilder.init(
|
||||
ScriptBuilder.narrate("It's a small, shabby shack.")
|
||||
).build(self, "_on_script_complete"))
|
||||
|
||||
|
||||
func _on_door_interacted() -> void:
|
||||
$kq4_042_fishermans_shack_inside.default_script(self)
|
||||
|
||||
|
||||
func _on_window_looked() -> void:
|
||||
start_main_script(ScriptBuilder.init(
|
||||
ScriptBuilder.narrate("You peek through the window, but can make out no details.")
|
||||
).build(self, "_on_script_complete")
|
||||
).build(self, "_on_script_complete"))
|
||||
|
||||
|
||||
func _on_pier_looked() -> void:
|
||||
@@ -11,4 +42,4 @@ func _on_pier_looked() -> void:
|
||||
func _on_room_looked() -> void:
|
||||
start_main_script(ScriptBuilder.init(
|
||||
ScriptBuilder.narrate("You stand at the fisherman's shack.")
|
||||
).build(self, "_on_script_complete")
|
||||
).build(self, "_on_script_complete"))
|
||||
|
||||
@@ -81,14 +81,16 @@ position = Vector2(118, 514)
|
||||
[node name="exit" parent="kq4_013_beach" index="1"]
|
||||
position = Vector2(151, 615)
|
||||
|
||||
[node name="west_exit" parent="." unique_id=1117747814 instance=ExtResource("4_abc")]
|
||||
[node name="kq4_042_fishermans_shack_inside" parent="." unique_id=1117747814 instance=ExtResource("4_abc")]
|
||||
polygon = PackedVector2Array(-108, 454, -87, 649, 376, 658, 348, 381)
|
||||
label = "West Exit"
|
||||
appear_at_node = "kq4_007_fishermans_shack"
|
||||
target = "uid://2tduhvnjo0iko"
|
||||
label = "Fisherman's Shack (Inside)"
|
||||
|
||||
[node name="entrance" parent="west_exit" index="0"]
|
||||
[node name="entrance" parent="kq4_042_fishermans_shack_inside" index="0"]
|
||||
position = Vector2(506, 555)
|
||||
|
||||
[node name="exit" parent="west_exit" index="1"]
|
||||
[node name="exit" parent="kq4_042_fishermans_shack_inside" index="1"]
|
||||
position = Vector2(-64, 534)
|
||||
|
||||
[node name="fishermans_house" type="Polygon2D" parent="." unique_id=1687430893 groups=["set-piece"]]
|
||||
@@ -126,6 +128,7 @@ points_resource = ExtResource("9_pier")
|
||||
[connection signal="interacted" from="kq4_001_beach" to="." method="_on_beach_interacted"]
|
||||
[connection signal="interacted" from="kq4_008_back_of_fishermans_shack" to="." method="_on_back_of_fishermans_shack_interacted"]
|
||||
[connection signal="interacted" from="kq4_013_beach" to="." method="_on_beach_2_interacted"]
|
||||
[connection signal="interacted" from="kq4_042_fishermans_shack_inside" to="." method="_on_fishermans_shack_inside_interacted"]
|
||||
[connection signal="looked" from="fishermans_house" to="." method="_on_fishermans_house_looked"]
|
||||
[connection signal="interacted" from="door" to="." method="_on_door_interacted"]
|
||||
[connection signal="looked" from="window" to="." method="_on_window_looked"]
|
||||
@@ -134,4 +137,4 @@ points_resource = ExtResource("9_pier")
|
||||
[editable path="kq4_001_beach"]
|
||||
[editable path="kq4_008_back_of_fishermans_shack"]
|
||||
[editable path="kq4_013_beach"]
|
||||
[editable path="west_exit"]
|
||||
[editable path="kq4_042_fishermans_shack_inside"]
|
||||
|
||||
Reference in New Issue
Block a user