extends "res://scripts/load.gd"
func _load():
global._print("Hooked Load Start")
var apclient = global.get_node("Archipelago")
# Override the YOU panel with the AP slot name.
if self.get_node_or_null("Panels/Color Arrow Room/Panel_you") != null:
self.get_node("Panels/Color Arrow Room/Panel_you").answer = apclient.ap_user
for node in get_tree().get_nodes_in_group("text_you"):
if "text" in node:
node.text = apclient.ap_user
elif "value" in node:
node.value = apclient.ap_user
for node in get_tree().get_nodes_in_group("answer_you"):
if "answer" in node:
node.answer = apclient.ap_user
# This is the best time to create the location nodes, since the map is now
# loaded but the panels haven't been solved from the save file yet.
var panels_parent = self.get_node("Panels")
var location_script = ResourceLoader.load("user://maps/Archipelago/location.gd")
for location_name in apclient._location_name_to_id:
var location = location_script.new()
location.ap_name = location_name
location.ap_id = apclient._location_name_to_id[location_name]
location.name = "AP_location_" + location.ap_id
self.add_child(location)
var panels = apclient._panel_ids_by_location[String(location.ap_id)]
location.total = panels.size()
for panel in panels:
var that_panel = panels_parent.get_node(panel)
that_panel.get_node("Viewport/GUI/Panel/TextEdit").connect(
"answer_correct", location, "handle_correct"
)
# Hardcode THE END as the goal for now.
var the_end = self.get_node("Decorations/EndPanel/Panel_end_end")
the_end.get_node("Viewport/GUI/Panel/TextEdit").connect(
"answer_correct", apclient, "completedGoal"
)
# Create the messages node.
var messages_script = ResourceLoader.load("user://maps/Archipelago/messages.gd")
var messages = messages_script.new()
messages.set_name("AP_Messages")
self.add_child(messages)
# Proceed with the rest of the load.
global._print("Hooked Load End")
._load()
# Process any items received while the map was loading, and send the checks
# from the save load.
apclient.mapFinishedLoading()
xtpb?h=v7.0.0'>stats
blob: dd1e627b4988e65c752d6fb5adbf7a472435614e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
display_name: "The Hinterlands"
# I'm not currently planning on shuffling anything in here.
excluded_nodes: "Components/Paintings/C"
excluded_nodes: "Components/Paintings/E"
excluded_nodes: "Components/Paintings/F/F_0"
excluded_nodes: "Components/Paintings/F/F_1"
excluded_nodes: "Components/Paintings/U"
excluded_nodes: "Components/Paintings/U_1"
excluded_nodes: "Components/Paintings/X"
excluded_nodes: "Components/Paintings/z2_1"
excluded_nodes: "Components/Paintings/z2_2"
excluded_nodes: "Components/Warps/worldport3_deco"
excluded_nodes: "Components/Warps/worldport3_deco2"
excluded_nodes: "Components/Warps/worldport3_deco3"
excluded_nodes: "Components/Warps/worldport3_deco4"
excluded_nodes: "Components/Warps/worldport3_deco5"
excluded_nodes: "Panels/G/court"
excluded_nodes: "Panels/J/red"
excluded_nodes: "Panels/K/no"
excluded_nodes: "Panels/L/trick"
excluded_nodes: "Panels/Misc/hi"
excluded_nodes: "Panels/Misc/hint"
excluded_nodes: "Panels/O/oh"
excluded_nodes: "Panels/P/hint"
excluded_nodes: "Panels/Q/gray"
excluded_nodes: "Panels/V/grin"
excluded_nodes: "Panels/Z/art"
excluded_nodes: "Panels/k2/place"
excluded_nodes: "Panels/m2/green"
excluded_nodes: "Panels/o2/orange2"
excluded_nodes: "Panels/p2/foxes"
excluded_nodes: "Panels/u2/open"
excluded_nodes: "Panels/v2/snipe"
|