summaryrefslogtreecommitdiff
path: root/data/scripts/maps/RustboroCity_DevonCorp_2F.inc
blob: e35015b3e890a15358e1ae319e20a15d03b8d5d6 (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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
RustboroCity_DevonCorp_2F_MapScripts:: @ 81574CA
	map_script 3, RustboroCity_DevonCorp_2F_MapScript1_1574D0
	.byte 0

RustboroCity_DevonCorp_2F_MapScript1_1574D0:: @ 81574D0
	compare 0x40c4, 1
	callif 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
	end

RustboroCity_DevonCorp_2F_EventScript_1574DC:: @ 81574DC
	setvar 0x40c4, 2
	return

RustboroCity_DevonCorp_2F_EventScript_1574E2:: @ 81574E2
	lock
	faceplayer
	compare 0x40c4, 1
	callif 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
	msgbox RustboroCity_DevonCorp_2F_Text_182B81, 4
	release
	end

RustboroCity_DevonCorp_2F_EventScript_1574F9:: @ 81574F9
	lock
	faceplayer
	compare 0x40c4, 1
	callif 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
	checkflag 287
	jumpeq RustboroCity_DevonCorp_2F_EventScript_157519
	msgbox RustboroCity_DevonCorp_2F_Text_182BD8, 4
	release
	end

RustboroCity_DevonCorp_2F_EventScript_157519:: @ 8157519
	msgbox RustboroCity_DevonCorp_2F_Text_182C25, 4
	release
	end

RustboroCity_DevonCorp_2F_EventScript_157523:: @ 8157523
	lock
	faceplayer
	compare 0x40c4, 1
	callif 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
	checkflag 188
	jumpeq RustboroCity_DevonCorp_2F_EventScript_157543
	msgbox RustboroCity_DevonCorp_2F_Text_182D2A, 4
	release
	end

RustboroCity_DevonCorp_2F_EventScript_157543:: @ 8157543
	msgbox RustboroCity_DevonCorp_2F_Text_182D7E, 4
	release
	end

RustboroCity_DevonCorp_2F_EventScript_15754D:: @ 815754D
	lock
	faceplayer
	compare 0x40c4, 1
	callif 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
	msgbox RustboroCity_DevonCorp_2F_Text_182E6B, 4
	release
	end

RustboroCity_DevonCorp_2F_EventScript_157564:: @ 8157564
	lock
	faceplayer
	compare 0x40c4, 2
	jumpeq RustboroCity_DevonCorp_2F_EventScript_15764A
	compare 0x40c4, 1
	jumpeq RustboroCity_DevonCorp_2F_EventScript_157640
	msgbox RustboroCity_DevonCorp_2F_Text_182ED5, 4
	checkitem ITEM_ROOT_FOSSIL, 1
	compare RESULT, 1
	jumpeq RustboroCity_DevonCorp_2F_EventScript_1575A6
	checkitem ITEM_CLAW_FOSSIL, 1
	compare RESULT, 1
	jumpeq RustboroCity_DevonCorp_2F_EventScript_1575EE
	release
	end

RustboroCity_DevonCorp_2F_EventScript_1575A6:: @ 81575A6
	closebutton
	playsfx 21
	move 5, RustboroCity_DevonCorp_2F_Movement_1A0833
	waitmove 0
	move 5, RustboroCity_DevonCorp_2F_Movement_1A0835
	waitmove 0
	msgbox RustboroCity_DevonCorp_2F_Text_182F35, 5
	compare RESULT, 0
	jumpeq RustboroCity_DevonCorp_2F_EventScript_157636
	bufferitem 0, ITEM_ROOT_FOSSIL
	msgbox RustboroCity_DevonCorp_2F_Text_183023, 4
	removeitem ITEM_ROOT_FOSSIL, 1
	setvar 0x40c4, 1
	setvar 0x40c5, 1
	release
	end

RustboroCity_DevonCorp_2F_EventScript_1575EE:: @ 81575EE
	closebutton
	playsfx 21
	move 5, RustboroCity_DevonCorp_2F_Movement_1A0833
	waitmove 0
	move 5, RustboroCity_DevonCorp_2F_Movement_1A0835
	waitmove 0
	msgbox RustboroCity_DevonCorp_2F_Text_182F35, 5
	compare RESULT, 0
	jumpeq RustboroCity_DevonCorp_2F_EventScript_157636
	bufferitem 0, ITEM_CLAW_FOSSIL
	msgbox RustboroCity_DevonCorp_2F_Text_183023, 4
	removeitem ITEM_CLAW_FOSSIL, 1
	setvar 0x40c4, 1
	setvar 0x40c5, 2
	release
	end

RustboroCity_DevonCorp_2F_EventScript_157636:: @ 8157636
	msgbox RustboroCity_DevonCorp_2F_Text_182FD7, 4
	release
	end

RustboroCity_DevonCorp_2F_EventScript_157640:: @ 8157640
	msgbox RustboroCity_DevonCorp_2F_Text_183072, 4
	release
	end

RustboroCity_DevonCorp_2F_EventScript_15764A:: @ 815764A
	compare 0x40c5, 1
	jumpeq RustboroCity_DevonCorp_2F_EventScript_157661
	compare 0x40c5, 2
	jumpeq RustboroCity_DevonCorp_2F_EventScript_1576B4
	end

RustboroCity_DevonCorp_2F_EventScript_157661:: @ 8157661
	bufferpoke 1, SPECIES_LILEEP
	msgbox RustboroCity_DevonCorp_2F_Text_183124, 4
	countpokemon
	compare RESULT, 6
	jumpeq RustboroCity_DevonCorp_2F_EventScript_157707
	copyvar 0x8004, RESULT
	setvar 0x40c4, 0
	setflag 267
	fanfare 370
	message RustboroCity_DevonCorp_2F_Text_18319E
	waitfanfare
	waittext
	givepokemon SPECIES_LILEEP, 20, ITEM_NONE, 0x0, 0x0, 0
	msgbox RustboroCity_DevonCorp_2F_Text_1A1102, 5
	compare RESULT, 1
	callif 1, RustboroCity_DevonCorp_2F_EventScript_1A0678
	release
	end

RustboroCity_DevonCorp_2F_EventScript_1576B4:: @ 81576B4
	bufferpoke 1, SPECIES_ANORITH
	msgbox RustboroCity_DevonCorp_2F_Text_183124, 4
	countpokemon
	compare RESULT, 6
	jumpeq RustboroCity_DevonCorp_2F_EventScript_157707
	copyvar 0x8004, RESULT
	setvar 0x40c4, 0
	setflag 267
	fanfare 370
	message RustboroCity_DevonCorp_2F_Text_18319E
	waitfanfare
	waittext
	givepokemon SPECIES_ANORITH, 20, ITEM_NONE, 0x0, 0x0, 0
	msgbox RustboroCity_DevonCorp_2F_Text_1A1102, 5
	compare RESULT, 1
	callif 1, RustboroCity_DevonCorp_2F_EventScript_1A0678
	release
	end

RustboroCity_DevonCorp_2F_EventScript_157707:: @ 8157707
	msgbox RustboroCity_DevonCorp_2F_Text_1831C8, 4
	release
	end