-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinjection-blacksteeple-stealth.rb
More file actions
71 lines (65 loc) · 2.58 KB
/
injection-blacksteeple-stealth.rb
File metadata and controls
71 lines (65 loc) · 2.58 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
InjectionHelper.defineMapPatch(438) { |map| # Blacksteeple Stealth
map.createNewEvent(22, 49, "Accessibility Option") { |event|
event.newPage { |page|
page.requiresVariable(232, 64) # Blacksteeple Story
page.requiresSwitch(1291) # Force Night
page.playerTouch(
[:ShowAnimation, :Player, EXCLAMATION_ANIMATION_ID],
[:ShowText, "EMMA: Oh, right!"],
[:ShowText, "I wanted to prepare in case I brought \\v[12] along, so I planted a bomb..."],
[:ShowText, "Wait, that sounds bad. It's just noise and light. I think."],
[:ShowText, "I just need it to distract the guards."],
[:ShowAnimation, :Player, 16], # Ellipsis
[:Wait, 30],
[:ShowText, "EMMA: Should I activate it anyway?"],
[:ShowChoices, ["Yes", "No"], 2],
[:When, 0, "Yes"],
[:ScreenFlash, Color.new(255,255,255,255), 10],
[:PlaySoundEvent, 'Explosion2', 80, 70],
[:ScreenShake, 8, 8, 20],
[:Wait, 30],
[:ControlSelfSwitch, 'B', true],
[:Script, "(73..77).each { |i| pbSetSelfSwitch(i,'A',true) }"],
[:ShowAnimation, :Player, 16], # Ellipsis
[:Wait, 30],
[:ShowText, "EMMA: Most of the guards should have run away to see what that was."],
:Done,
[:When, 1, "No"],
[:ShowText, "EMMA: ... I might be fine. If it gets hard, though..."],
[:ControlSelfSwitch, 'A', true],
:EraseEvent,
:Done)
}
event.newPage { |page|
page.requiresVariable(232, 64) # Blacksteeple Story
page.requiresSwitch(1291) # Force Night
page.requiresSelfSwitch('A')
page.playerTouch(
[:ShowText, "EMMA: Should I activate the bomb to distract the guards?"],
[:ShowChoices, ["Yes", "No"], 2],
[:When, 0, "Yes"],
[:ScreenFlash, Color.new(255,255,255,255), 10],
[:PlaySoundEvent, 'Explosion2', 80, 70],
[:ScreenShake, 8, 8, 20],
[:Wait, 30],
[:ControlSelfSwitch, 'B', true],
[:Script, "(73..77).each { |i| pbSetSelfSwitch(i,'A',true) }"],
[:ShowAnimation, :Player, 16], # Ellipsis
[:Wait, 30],
[:ShowText, "EMMA: Most of the guards should have run away to see what that was."],
:Done,
[:When, 1, "No"],
[:ShowText, "EMMA: ... I might be fine. If it gets hard, though..."],
:EraseEvent,
:Done)
}
event.newPage { |page|
page.requiresSelfSwitch('B')
}
}
for eventid in 73..77
map.events[eventid].newPage { |page|
page.requiresSelfSwitch('A')
}
end
}