A12. Controller source: lines 386-415
Room travel and the post-restore display refresh.
reply("You aren't carrying the fuse.")
else:
Runtime.remove_inventory("fuse")
Runtime.variables.ta_fuse_room = "fitted"
award("ta_fuse_fitted", 3)
reply("The fuse clips into place. Try TURN ON RADIO.")
else:
reply("Those two things don't work together.")func travel(command: String) -> void:
var north: bool = command in ["north", "n", "go north"]
if north and Runtime.scene_id == "lab":
if not bool(Runtime.variables.ta_door_open):
reply("The cabin door is closed.")
return
await Runtime.change_scene("cabin", "entry")
elif not north and Runtime.scene_id == "cabin":
await Runtime.change_scene("lab", "entry")
else:
reply("There is no exit that way.")
return
reply(describe_room())func on_save_loaded(_event: Dictionary = {}) -> void:
pending_reply = false
screen_signature = ""
world_signature = ""
sync_view()
reply("Restored slot 1.")
Runtime.state_changed()End of the complete Adventure Controller. Apply the script and test with Play / Restart.
