summaryrefslogtreecommitdiff
path: root/data/scripts/maps/Route115.inc
blob: 69edd5830678061205395489a93162c68f1d8878 (plain)
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
Route115_MapScripts:: @ 81F2920
	map_script 1, Route115_MapScript1_1F2930
	map_script 3, Route115_MapScript1_1F2947
	map_script 2, Route115_MapScript2_1F2969
	.byte 0

Route115_MapScript1_1F2930: @ 81F2930
	compare VAR_0x4037, 3
	call_if 1, Route115_EventScript_273939
	compare VAR_0x4037, 4
	call_if 1, Route115_EventScript_27394C
	end

Route115_MapScript1_1F2947: @ 81F2947
	compare VAR_0x4039, 1
	call_if 1, Route115_EventScript_273D13
	compare VAR_0x4037, 3
	call_if 1, Route115_EventScript_273D1B
	compare VAR_0x4037, 4
	call_if 1, Route115_EventScript_273D1B
	end

Route115_MapScript2_1F2969: @ 81F2969
	map_script_2 VAR_0x4039, 1, gUnknown_08273D1F
	.2byte 0

Route115_EventScript_1F2973:: @ 81F2973
	msgbox Route115_Text_1F2B55, 2
	end

Route115_EventScript_1F297C:: @ 81F297C
	msgbox Route115_Text_1F2BC9, 3
	end

Route115_EventScript_1F2985:: @ 81F2985
	msgbox Route115_Text_1F2BE3, 3
	end

Route115_EventScript_1F298E:: @ 81F298E
	trainerbattle 2, TRAINER_TIMOTHY_1, 0, Route115_Text_29B1FA, Route115_Text_29B230, Route115_EventScript_1F29BA
	specialvar VAR_RESULT, ShouldTryRematchBattle
	compare VAR_RESULT, 1
	goto_eq Route115_EventScript_1F29D9
	msgbox Route115_Text_29B258, 4
	release
	end

Route115_EventScript_1F29BA:: @ 81F29BA
	special sub_80B4808
	waitmovement 0
	msgbox Route115_Text_29B2B3, 4
	setvar VAR_0x8004, 307
	special sub_81D1C20
	setorcopyvar VAR_0x8000, 307
	callstd 8
	release
	end

Route115_EventScript_1F29D9:: @ 81F29D9
	trainerbattle 5, TRAINER_TIMOTHY_1, 0, Route115_Text_29B32C, Route115_Text_29B372
	msgbox Route115_Text_29B385, 6
	end

Route115_EventScript_1F29F0:: @ 81F29F0
	trainerbattle 0, TRAINER_KOICHI, 0, Route115_Text_29B3CC, Route115_Text_29B3ED
	msgbox Route115_Text_29B3FF, 6
	end

Route115_EventScript_1F2A07:: @ 81F2A07
	trainerbattle 2, TRAINER_NOB_1, 0, Route115_Text_29B449, Route115_Text_29B480, Route115_EventScript_1F2A33
	specialvar VAR_RESULT, ShouldTryRematchBattle
	compare VAR_RESULT, 1
	goto_eq Route115_EventScript_1F2A52
	msgbox Route115_Text_29B49D, 4
	release
	end

Route115_EventScript_1F2A33:: @ 81F2A33
	special sub_80B4808
	waitmovement 0
	msgbox Route115_Text_29B50B, 4
	setvar VAR_0x8004, 183
	special sub_81D1C20
	setorcopyvar VAR_0x8000, 183
	callstd 8
	release
	end

Route115_EventScript_1F2A52:: @ 81F2A52
	trainerbattle 5, TRAINER_NOB_1, 0, Route115_Text_29B547, Route115_Text_29B59D
	msgbox Route115_Text_29B5B5, 6
	end

Route115_EventScript_1F2A69:: @ 81F2A69
	trainerbattle 2, TRAINER_CYNDY_1, 0, Route115_Text_29B5EF, Route115_Text_29B62D, Route115_EventScript_1F2A95
	specialvar VAR_RESULT, ShouldTryRematchBattle
	compare VAR_RESULT, 1
	goto_eq Route115_EventScript_1F2AB4
	msgbox Route115_Text_29B647, 4
	release
	end

Route115_EventScript_1F2A95:: @ 81F2A95
	special sub_80B4808
	waitmovement 0
	msgbox Route115_Text_29B6AB, 4
	setvar VAR_0x8004, 427
	special sub_81D1C20
	setorcopyvar VAR_0x8000, 427
	callstd 8
	release
	end

Route115_EventScript_1F2AB4:: @ 81F2AB4
	trainerbattle 5, TRAINER_CYNDY_1, 0, Route115_Text_29B6FA, Route115_Text_29B71A
	msgbox Route115_Text_29B737, 6
	end

Route115_EventScript_1F2ACB:: @ 81F2ACB
	trainerbattle 0, TRAINER_HECTOR, 0, Route115_Text_29B78F, Route115_Text_29B7C5
	msgbox Route115_Text_29B7EA, 6
	end

Route115_EventScript_1F2AE2:: @ 81F2AE2
	trainerbattle 0, TRAINER_KYRA, 0, Route115_Text_29B826, Route115_Text_29B85D
	msgbox Route115_Text_29B869, 6
	end

Route115_EventScript_1F2AF9:: @ 81F2AF9
	trainerbattle 0, TRAINER_JAIDEN, 0, Route115_Text_29B8C1, Route115_Text_29B8E8
	msgbox Route115_Text_29B904, 6
	end

Route115_EventScript_1F2B10:: @ 81F2B10
	trainerbattle 0, TRAINER_ALIX, 0, Route115_Text_29B9CB, Route115_Text_29B9F6
	msgbox Route115_Text_29BA04, 6
	end

Route115_EventScript_1F2B27:: @ 81F2B27
	trainerbattle 0, TRAINER_HELENE, 0, Route115_Text_29B92D, Route115_Text_29B958
	msgbox Route115_Text_29B971, 6
	end

Route115_EventScript_1F2B3E:: @ 81F2B3E
	trainerbattle 0, TRAINER_MARLENE, 0, Route115_Text_29BA2C, Route115_Text_29BA67
	msgbox Route115_Text_29BA87, 6
	end

Route115_Text_1F2B55: @ 81F2B55
	.string "Exploring a cave isn’t like walking\n"
	.string "on a road.\p"
	.string "You never know when wild POKéMON will\n"
	.string "appear. It’s full of suspense.$"

Route115_Text_1F2BC9: @ 81F2BC9
	.string "ROUTE 115\n"
	.string "{0x7A} RUSTBORO CITY$"

Route115_Text_1F2BE3: @ 81F2BE3
	.string "METEOR FALLS\n"
	.string "FALLARBOR TOWN THROUGH HERE$"