-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinjection-statuepuzzle-skips.rb
More file actions
90 lines (87 loc) · 3.45 KB
/
injection-statuepuzzle-skips.rb
File metadata and controls
90 lines (87 loc) · 3.45 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
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
InjectionHelper.defineMapPatch(250, 38, 3) { |page|
page.patch(:addpuzzleskip) {
matched = page.lookForSequence([:ControlVariable, 246, :[]=, :Constant, 31])
if matched
page.insertBefore(matched,
[:ShowText, "Master Vitus does require me to provide accessibility services, though."],
[:ShowText, "Shall I arrange the statues for you?"],
[:ShowText, "VENAM: Seriously?"],
[:ShowText, "MAID: Quite. Do you wish me to?"],
[:ShowChoices, ["Yes", "No"], 2],
[:When, 0, "Yes"],
[:ScreenFlash, Color.new(255,255,255,255), 10],
[:PlaySoundEvent, 'SFX- GBC Teleport', 80, 100],
[:ControlVariable, 661, :[]=, :Constant, 2],
[:ControlVariable, 662, :[]=, :Constant, 2],
[:ControlVariable, 663, :[]=, :Constant, 4],
[:ControlVariable, 664, :[]=, :Constant, 4],
:Done,
[:When, 1, "No"],
[:ShowText, "MAID: Very well."],
:Done)
end
}
}
InjectionHelper.defineMapPatch(250, 38, 4) { |page|
page.patch(:addpuzzleskip) {
page.insertBeforeEnd(
[:ConditionalBranch, :Variable, 246, :Constant, 32, :<],
[:ShowText, "Master Vitus does require me to provide accessibility services, though."],
[:ShowText, "Shall I arrange the statues for you?"],
[:ShowChoices, ["Yes", "No"], 2],
[:When, 0, "Yes"],
[:ScreenFlash, Color.new(255,255,255,255), 10],
[:PlaySoundEvent, 'SFX- GBC Teleport', 80, 100],
[:ControlVariable, 661, :[]=, :Constant, 2],
[:ControlVariable, 662, :[]=, :Constant, 2],
[:ControlVariable, 663, :[]=, :Constant, 4],
[:ControlVariable, 664, :[]=, :Constant, 4],
:Done,
[:When, 1, "No"],
[:ShowText, "MAID: Very well."],
:Done,
:Done)
}
}
InjectionHelper.defineMapPatch(111, 77, 0) { |page|
page.patch(:addpuzzleskip) {
page.insertBeforeEnd(
[:ConditionalBranch, :SelfSwitch, 'A', false],
[:ShowText, "Actually, I have a note here."],
[:ShowText, "It says \"If \\PN comes through, solve the puzzle like so.\""],
[:ShowText, "When the heck did Saki sneak this onto me?"],
[:ShowText, "I... guess I can do that?"],
[:ControlSelfSwitch, 'A', true],
:Done,
[:ShowText, "Want me to solve it for you?"],
[:ShowChoices, ["Yes", "No"], 2],
[:When, 0, "Yes"],
[:Wait, 10],
[:CallCommonEvent, 36], # Cinematic Scene
[:Wait, 10],
[:ControlVariable, 468, :[]=, :Character, :Player, :x],
[:ControlVariable, 467, :[]=, :Constant, 111],
[:ControlVariable, 469, :[]=, :Character, :Player, :y],
[:ChangeScreenColorTone, Color.new(-34,-34,-34,0), 10],
[:Wait, 10],
[:PlaySoundEvent, 'PRSFX- Fire Punch1'],
[:ShowAnimation, 64, 61],
[:SetMoveRoute, 64, [false,
[:SetCharacter, "object_chest_1", 0, :Down, 0],
:Done]],
:WaitForMovement,
[:Wait, 20],
[:ChangeScreenColorTone, Color.new(-255,-255,-255,0), 10],
[:Wait, 10],
[:ChangeTransparentFlag, 0],
[:CallCommonEvent, 44],
[:ControlVariable, 703, :[]=, :Constant, 6],
[:TransferPlayer, :Variable, :PlayerMapLocation, :PlayerPositionX, :PlayerPositionY, :Up, false],
[:ChangeScreenColorTone, Color.new(-34,-34,-34,0), 10],
[:Wait, 10],
:Done,
[:When, 1, "No"],
[:ShowText, "Well, alright then."],
:Done)
}
}