-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinjection-heracross-woods.rb
More file actions
55 lines (54 loc) · 1.9 KB
/
injection-heracross-woods.rb
File metadata and controls
55 lines (54 loc) · 1.9 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
[0, 1].each { |i|
InjectionHelper.defineMapPatch(244, 10, i) { |page|
page.patch(:heracrossskip) {
page.insertBeforeEnd(
[:ShowText, "Ask her to corral the Heracross for you?"],
[:ShowChoices, ["Yes", "No"], 2],
[:When, 0, "Yes"],
[:ShowAnimation, :This, 4], # Question
[:Wait, 20],
[:ShowText, "MELIA: What is it?"],
[:CallCommonEvent, 97], # Player talk
[:ShowText, "MELIA: Sure, I can do that. Just give me a bit..."],
[:ChangeScreenColorTone, Tone.new(-255,-255,-255,0), 10],
[:Wait, 40],
[:PlaySoundEvent, 'PRSFX- Trainer', 80, 100],
[:Wait, 20],
[:PlaySoundEvent, 'escape'],
[:Wait, 20],
[:ShowText, "The Red Heracross ran towards the back of the forest!"],
[:ControlVariable, 694, :[]=, :Constant, 7],
[:ChangeScreenColorTone, Tone.new(0,0,0,0), 10],
[:Wait, 10],
:Done,
[:When, 1, "No"],
:Done)
}
}
}
InjectionHelper.defineMapPatch(244, 21, 0) { |page|
page.patch(:heracrossskip) {
page.insertBeforeEnd(
[:ShowText, "Ask her to corral the Heracross for you?"],
[:ShowChoices, ["Yes", "No"], 2],
[:When, 0, "Yes"],
[:ShowAnimation, :This, 4], # Question
[:Wait, 20],
[:ShowText, "AELITA: What is it?"],
[:CallCommonEvent, 97], # Player talk
[:ShowText, "AELITA: Ugh, fine."],
[:ChangeScreenColorTone, Tone.new(-255,-255,-255,0), 10],
[:Wait, 40],
[:PlaySoundEvent, 'PRSFX- Trainer', 80, 100],
[:Wait, 20],
[:PlaySoundEvent, 'escape'],
[:Wait, 20],
[:ShowText, "The Red Heracross ran towards the back of the forest!"],
[:ControlVariable, 694, :[]=, :Constant, 7],
[:ChangeScreenColorTone, Tone.new(0,0,0,0), 10],
[:Wait, 10],
:Done,
[:When, 1, "No"],
:Done)
}
}