-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinjection-tyluric-temple.rb
More file actions
57 lines (53 loc) · 1.65 KB
/
injection-tyluric-temple.rb
File metadata and controls
57 lines (53 loc) · 1.65 KB
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
InjectionHelper.defineMapPatch(179, 63) { |event|
event.patch(:whirlwindskip) { |page|
page.insertBeforeEnd(
[:ShowText, "Would you like to skip the whirlwind puzzle?"],
[:ShowChoices, ["Yes", "No"], 2],
[:When, 0, "Yes"],
[:ControlVariable, 719, :[]=, :Constant, 6],
:Done,
[:When, 1, "No"],
:Done)
}
event.newPage { |page|
page.requiresVariable(719, 6)
}
}
InjectionHelper.defineMapPatch(179, 14, 0) { |page|
page.patch(:mirrorskip) {
page.insertAtStart(
[:ShowText, "Do you want to skip the mirror puzzle?"],
[:ShowChoices, ["Yes", "No"], 2],
[:When, 0, "Yes"],
[:ControlVariable, 502, :[]=, :Constant, 1],
[:ControlVariable, 503, :[]=, :Constant, 1],
[:ControlVariable, 504, :[]=, :Constant, 1],
[:ControlVariable, 505, :[]=, :Constant, 0],
[:ControlVariable, 506, :[]=, :Constant, 1],
:Done,
[:When, 1, "No"],
:Done)
}
}
InjectionHelper.defineMapPatch(181) { |map|
map.createSinglePageEvent(98, 9, "Accessibility Warp Past Tornadoes") { |page|
page.interact(
[:ShowText, "Would you like to warp past the tornadoes?"],
[:ShowChoices, ["Yes", "No"], 2],
[:When, 0, "Yes"],
[:PlaySoundEvent, 'SFX- GBC Teleport'],
[:TransferPlayer, :Constant, 181, 116, 9, :Right, true],
:Done,
[:When, 1, "No"],
:Done)
}
}
InjectionHelper.defineMapPatch(181, 54, 1) { |page|
page.patch(:whirlwindinfo) {
matched = page.lookForSequence([:PlaySoundEvent, nil])
if matched
page.insertAfter(matched,
[:ShowText, "A whirlwind on the temple surface activated!"])
end
}
}