extends "res://scripts/nodes/player.gd" func _ready(): var ap = global.get_node("Archipelago") var gamedata = global.get_node("Gamedata") var map_id = gamedata.map_id_by_name.get(global.map) for door in gamedata.objects.get_doors(): if door.get_map_id() != map_id: continue if not door.has_ap_id(): continue if door.get_type() == gamedata.SCRIPT_proto.DoorType.ITEM_ONLY: continue var locationListener = ap.SCRIPT_locationListener.new() locationListener.location_id = door.get_ap_id() locationListener.name = "locationListener_%d" % door.get_ap_id() for panel_ref in door.get_panels(): var panel_data = gamedata.objects.get_panels()[panel_ref.get_panel()] var panel_path = panel_data.get_path() if panel_ref.has_answer(): for proxy in panel_data.get_proxies(): if proxy.get_answer() == panel_ref.get_answer(): panel_path = proxy.get_path() break locationListener.senders.append(NodePath("/root/scene/" + panel_path)) get_parent().add_child.call_deferred(locationListener) for letter in gamedata.objects.get_letters(): var room = gamedata.objects.get_rooms()[letter.get_room_id()] if room.get_map_id() != map_id: continue var locationListener = ap.SCRIPT_locationListener.new() locationListener.location_id = letter.get_ap_id() locationListener.name = "locationListener_%d" % letter.get_ap_id() locationListener.senders.append(NodePath("/root/scene/" + letter.get_path())) get_parent().add_child.call_deferred(locationListener) for mastery in gamedata.objects.get_masteries(): var room = gamedata.objects.get_rooms()[mastery.get_room_id()] if room.get_map_id() != map_id: continue var locationListener = ap.SCRIPT_locationListener.new() locationListener.location_id = mastery.get_ap_id() locationListener.name = "locationListener_%d" % mastery.get_ap_id() locationListener.senders.append(NodePath("/root/scene/" + mastery.get_path())) get_parent().add_child.call_deferred(locationListener) for ending in gamedata.objects.get_endings(): var room = gamedata.objects.get_rooms()[ending.get_room_id()] if room.get_map_id() != map_id: continue var locationListener = ap.SCRIPT_locationListener.new() locationListener.location_id = ending.get_ap_id() locationListener.name = "locationListener_%d" % ending.get_ap_id() locationListener.senders.append(NodePath("/root/scene/" + ending.get_path())) get_parent().add_child.call_deferred(locationListener) super._ready() elect name='qt'>
path: root/data/maps/daedalus/rooms/F2 Room.txtpb
blob: 96b609ecbcf8240f5a25944d2d705a22c8d0669b (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: "F2 Room"
panel_display_name: "F2 Room"
panels {
  name: "DULLS"
  path: "Panels/The Big F/o_1"
  clue: "dulls"
  answer: "fades"
  symbols: SUN
}
panels {
  name: "GRIME"
  path: "Panels/The Big F/o_2"
  clue: "grime"
  answer: "filth"
  symbols: SUN
}
panels {
  name: "CRAFT"
  path: "Panels/The Big F/o_3"
  clue: "craft"
  answer: "forge"
  symbols: SUN
}
panels {
  name: "CAST"
  path: "Panels/The Big F/o_4"
  clue: "cast"
  answer: "forge"
  symbols: SUN
}
panels {
  name: "WANES"
  path: "Panels/The Big F/o_5"
  clue: "wanes"
  answer: "fades"
  symbols: SUN
}
panels {
  name: "DECAY"
  path: "Panels/The Big F/o_9"
  clue: "decay"
  answer: "filth"
  symbols: SUN
}
panels {
  name: "MAKE"
  path: "Panels/The Big F/o_10"
  clue: "make"
  answer: "forge"
  symbols: SUN
}
panels {
  name: "WEAKENS"
  path: "Panels/The Big F/o_11"
  clue: "weakens"
  answer: "fades"
  symbols: SUN
}
panels {
  name: "TRASH"
  path: "Panels/The Big F/o_12"
  clue: "trash"
  answer: "filth"
  symbols: SUN
}
panels {
  name: "SHAPE"
  path: "Panels/The Big F/o_13"
  clue: "shape"
  answer: "forge"
  symbols: SUN
}
panels {
  name: "DEADLY"
  path: "Panels/The Big F Not/o_6"
  clue: "deadly"
  answer: "fatal"
  symbols: SUN
}
panels {
  name: "DIMS"
  path: "Panels/The Big F Not/o_7"
  clue: "dims"
  answer: "fades"
  symbols: SUN
}
panels {
  name: "LETHAL"
  path: "Panels/The Big F Not/o_8"
  clue: "lethal"
  answer: "fatal"
  symbols: SUN
}
panels {
  name: "GRAVE"
  path: "Panels/The Big F Not/o_14"
  clue: "grave"
  answer: "fatal"
  symbols: SUN
}
panels {
  name: "DIRT"
  path: "Panels/The Big F Not/o_15"
  clue: "dirt"
  answer: "filth"
  symbols: SUN
}
panels {
  name: "RISKY"
  path: "Panels/The Big F Not/o_16"
  clue: "risky"
  answer: "fatal"
  symbols: SUN
}