summaryrefslogtreecommitdiff
path: root/data/scripts/maps/Route123_BerryMastersHouse.inc
blob: 9e865ad6a41627147319323cecdcaa67eeeb15ed (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
Route123_BerryMastersHouse_MapScripts:: @ 826F83B
	map_script 3, Route123_BerryMastersHouse_MapScript1_26F841
	.byte 0

Route123_BerryMastersHouse_MapScript1_26F841: @ 826F841
	setflag FLAG_LANDMARK_BERRY_MASTERS_HOUSE
	end

Route123_BerryMastersHouse_EventScript_26F845:: @ 826F845
	lock
	faceplayer
	dodailyevents
	checkflag FLAG_0x92D
	goto_eq Route123_BerryMastersHouse_EventScript_26F8B6
	msgbox Route123_BerryMastersHouse_Text_2A7386, 4
	random 10
	addvar VAR_RESULT, 20
	addvar VAR_RESULT, 133
	giveitem_std VAR_RESULT
	compare VAR_RESULT, 0
	goto_eq Route123_BerryMastersHouse_EventScript_272054
	setflag FLAG_0x92D
	msgbox Route123_BerryMastersHouse_Text_2A7428, 4
	random 10
	addvar VAR_RESULT, 20
	addvar VAR_RESULT, 133
	giveitem_std VAR_RESULT
	compare VAR_RESULT, 0
	goto_eq Route123_BerryMastersHouse_EventScript_272054
	msgbox Route123_BerryMastersHouse_Text_2A7445, 4
	release
	end

Route123_BerryMastersHouse_EventScript_26F8B6:: @ 826F8B6
	msgbox Route123_BerryMastersHouse_Text_2A749E, 4
	release
	end

Route123_BerryMastersHouse_EventScript_26F8C0:: @ 826F8C0
	lock
	faceplayer
	dodailyevents
	checkflag FLAG_0x931
	goto_eq Route123_BerryMastersHouse_EventScript_26FA6F
	msgbox Route123_BerryMastersHouse_Text_2A74E6, 4
	setvar VAR_0x8004, 13
	call Route123_BerryMastersHouse_EventScript_271E7C
	lock
	faceplayer
	compare VAR_RESULT, 1
	goto_eq Route123_BerryMastersHouse_EventScript_26F909
	compare VAR_RESULT, 0
	goto_eq Route123_BerryMastersHouse_EventScript_26F8F7
	end

Route123_BerryMastersHouse_EventScript_26F8F7:: @ 826F8F7
	msgbox Route123_BerryMastersHouse_Text_2A7682, 4
	msgbox Route123_BerryMastersHouse_Text_2A761B, 4
	release
	end

Route123_BerryMastersHouse_EventScript_26F909:: @ 826F909
	compare VAR_0x8004, 0
	goto_eq Route123_BerryMastersHouse_EventScript_26F94C
	compare VAR_0x8004, 1
	goto_eq Route123_BerryMastersHouse_EventScript_26F97A
	compare VAR_0x8004, 2
	goto_eq Route123_BerryMastersHouse_EventScript_26F9AB
	compare VAR_0x8004, 3
	goto_eq Route123_BerryMastersHouse_EventScript_26F9DC
	compare VAR_0x8004, 4
	goto_eq Route123_BerryMastersHouse_EventScript_26FA0D
	compare VAR_0x8004, 5
	goto_eq Route123_BerryMastersHouse_EventScript_26FA3E
	end

Route123_BerryMastersHouse_EventScript_26F94C:: @ 826F94C
	msgbox Route123_BerryMastersHouse_Text_2A75D0, 4
	random 10
	addvar VAR_RESULT, 133
	giveitem_std VAR_RESULT
	compare VAR_RESULT, 0
	goto_eq Route123_BerryMastersHouse_EventScript_272054
	goto Route123_BerryMastersHouse_EventScript_26FA79
	release
	end

Route123_BerryMastersHouse_EventScript_26F97A:: @ 826F97A
	checkflag FLAG_0x0F8
	goto_eq Route123_BerryMastersHouse_EventScript_26F94C
	msgbox Route123_BerryMastersHouse_Text_2A7583, 4
	giveitem_std ITEM_SPELON_BERRY
	compare VAR_RESULT, 0
	goto_eq Route123_BerryMastersHouse_EventScript_272054
	setflag FLAG_0x0F8
	goto Route123_BerryMastersHouse_EventScript_26FA79
	end

Route123_BerryMastersHouse_EventScript_26F9AB:: @ 826F9AB
	checkflag FLAG_0x0F9
	goto_eq Route123_BerryMastersHouse_EventScript_26F94C
	msgbox Route123_BerryMastersHouse_Text_2A7583, 4
	giveitem_std ITEM_PAMTRE_BERRY
	compare VAR_RESULT, 0
	goto_eq Route123_BerryMastersHouse_EventScript_272054
	setflag FLAG_0x0F9
	goto Route123_BerryMastersHouse_EventScript_26FA79
	end

Route123_BerryMastersHouse_EventScript_26F9DC:: @ 826F9DC
	checkflag FLAG_0x0FA
	goto_eq Route123_BerryMastersHouse_EventScript_26F94C
	msgbox Route123_BerryMastersHouse_Text_2A7583, 4
	giveitem_std ITEM_WATMEL_BERRY
	compare VAR_RESULT, 0
	goto_eq Route123_BerryMastersHouse_EventScript_272054
	setflag FLAG_0x0FA
	goto Route123_BerryMastersHouse_EventScript_26FA79
	end

Route123_BerryMastersHouse_EventScript_26FA0D:: @ 826FA0D
	checkflag FLAG_0x0FB
	goto_eq Route123_BerryMastersHouse_EventScript_26F94C
	msgbox Route123_BerryMastersHouse_Text_2A7583, 4
	giveitem_std ITEM_DURIN_BERRY
	compare VAR_RESULT, 0
	goto_eq Route123_BerryMastersHouse_EventScript_272054
	setflag FLAG_0x0FB
	goto Route123_BerryMastersHouse_EventScript_26FA79
	end

Route123_BerryMastersHouse_EventScript_26FA3E:: @ 826FA3E
	checkflag FLAG_0x0FC
	goto_eq Route123_BerryMastersHouse_EventScript_26F94C
	msgbox Route123_BerryMastersHouse_Text_2A7583, 4
	giveitem_std ITEM_BELUE_BERRY
	compare VAR_RESULT, 0
	goto_eq Route123_BerryMastersHouse_EventScript_272054
	setflag FLAG_0x0FC
	goto Route123_BerryMastersHouse_EventScript_26FA79
	end

Route123_BerryMastersHouse_EventScript_26FA6F:: @ 826FA6F
	msgbox Route123_BerryMastersHouse_Text_2A761B, 4
	release
	end

Route123_BerryMastersHouse_EventScript_26FA79:: @ 826FA79
	setflag FLAG_0x931
	msgbox Route123_BerryMastersHouse_Text_2A761B, 4
	release
	end