Makes lots of new screens

This commit is contained in:
2024-07-01 08:24:25 -07:00
parent 559f479db4
commit 8b5841e861
40 changed files with 944 additions and 222 deletions

View File

@@ -11,18 +11,6 @@ func _ready():
#func _process(delta):
# pass
var healers = load("res://scenes/healers/healers.tscn")
func _on_pasture_exit_interacted():
var path = NavigationServer2D.map_get_path(self.map, self.pathfind.to_local(self.ego.global_position), pathfind.to_local($"healers-exit-point".global_position), true)
start_main_script(ScriptBuilder.init(ScriptBuilder.walk_path(self.ego, path))
.and_then(ScriptBuilder.transition(self, healers, "pasture-exit-point"))
.and_then(ScriptBuilder.walk_to_deferred("pasture-exit-point", "pasture-entrance-point"))
.can_interrupt().build(self, "_on_script_complete"))
func _on_entered_from_pasture():
print("HERRREERERE")
func _on_entranceexit_interacted():
start_main_script(ScriptBuilder.init(
@@ -31,3 +19,8 @@ func _on_entranceexit_interacted():
.and_then(ScriptBuilder.say(self.ego, "Just like gramps' one."))
.build(self, "_on_script_complete"))
pass # Replace with function body.
func _on_healers_interacted():
$healers.default_script(self)