name: "Question Room Who" panel_display_name: "Question Room" panels { name: "QUESTION" path: "Panels/Questions/question_2" clue: "question" answer: "who" symbols: EXAMPLE proxies { answer: "why" path: "Panels/Question Proxies/question_2_proxied" } proxies { answer: "who" path: "Panels/Question Proxies/question_2_proxied2" } proxies { answer: "where" path: "Panels/Question Proxies/question_2_proxied3" } proxies { answer: "how" path: "Panels/Question Proxies/question_2_proxied4" } proxies { answer: "what" path: "Panels/Question Proxies/question_2_proxied5" } proxies { answer: "when" path: "Panels/Question Proxies/question_2_proxied6" } display_name: "QUESTION (Who)" } orm'>
Randomizer for LINGO 2 using Archipelago Multiworld
about summary refs log tree commit diff stats
path: root/apworld/client/keyHolderChecker.gd
blob: a75a9e455d3447ac1332493e3a5303cf7c0bf259 (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
extends "res://scripts/nodes/listeners/keyHolderChecker.gd"


func check():
	var ap = global.get_node("Archipelago")
	var matches = []
	for map in ap.keyboard.keyholder_state.keys():
		var nodes = ap.keyboard.keyholder_state[map]
		for node in nodes.keys():
			matches.append([nodes[node], 1, map, "/root/scene/%s" % node])

	var count = 0
	for key_match in matches:
		var active = (
			key_match[2] + String(key_match[3]).replace("/root/scene/Components/KeyHolders/", ".")
		)
		if map[active] == key_match[0]:
			emit_signal("trigger_letter", key_match[0], true)
			count += 1
		else:
			emit_signal("trigger_letter", key_match[0], false)

	if count > 25:
		emit_signal("trigger")