summaryrefslogtreecommitdiff
path: root/data/maps/Route12_FishingHouse/scripts.inc
blob: 0f0aa4f6870c8a6a16b86282f75257a4a16546eb (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
Route12_FishingHouse_MapScripts:: @ 816FF0B
	.byte 0

Route12_FishingHouse_EventScript_16FF0C:: @ 816FF0C
	lock
	faceplayer
	checkflag FLAG_GOT_SUPER_ROD
	goto_if TRUE, EventScript_16FF7F
	msgbox gUnknown_819EFE0, MSGBOX_YESNO
	compare_var_to_value VAR_RESULT, 1
	goto_if eq, EventScript_16FF34
	msgbox gUnknown_819F1FA
	release
	end

EventScript_16FF34:: @ 816FF34
	checkitemspace ITEM_SUPER_ROD, 1
	compare_var_to_value VAR_RESULT, 0
	goto_if eq, EventScript_16FF75
	additem ITEM_SUPER_ROD, 1
	msgbox gUnknown_819F05B
	giveitemfanfaremsg gUnknown_819F0B2, ITEM_SUPER_ROD
	setflag FLAG_GOT_SUPER_ROD
	msgbox gUnknown_819F0EB
	release
	end

EventScript_16FF75:: @ 816FF75
	msgbox gUnknown_819F494
	release
	end

EventScript_16FF7F:: @ 816FF7F
	special sub_8110AB4
	compare_var_to_value VAR_RESULT, 2
	goto_if eq, EventScript_1A7AE0
	special sub_8112364
	setvar VAR_0x8004, SPECIES_MAGIKARP
	specialvar VAR_RESULT, Special_PlayerPartyContainsSpecies
	compare_var_to_value VAR_RESULT, 0
	goto_if eq, EventScript_16FFF5
	special GetMagikarpSizeRecordInfo
	msgbox gUnknown_819F2DB
	special Special_ChooseMonFromParty
	waitstate
	copyvar VAR_RESULT, VAR_0x8004
	compare_var_to_value VAR_RESULT, 6
	goto_if ge, EventScript_16FFFF
	special CompareMagikarpSize
	compare_var_to_value VAR_RESULT, 1
	goto_if eq, EventScript_170001
	compare_var_to_value VAR_RESULT, 2
	goto_if eq, EventScript_17000B
	compare_var_to_value VAR_RESULT, 3
	goto_if eq, EventScript_170031
	compare_var_to_value VAR_RESULT, 4
	goto_if eq, EventScript_17001E
	release
	end

EventScript_16FFF5:: @ 816FFF5
	msgbox gUnknown_819F217
	release
	end

EventScript_16FFFF:: @ 816FFFF
	release
	end

EventScript_170001:: @ 8170001
	msgbox gUnknown_819F468
	release
	end

EventScript_17000B:: @ 817000B
	checkflag FLAG_GOT_RECORD_SETTING_MAGIKARP
	goto_if FALSE, EventScript_170031
	msgbox gUnknown_819F40A
	release
	end

EventScript_17001E:: @ 817001E
	checkflag FLAG_GOT_RECORD_SETTING_MAGIKARP
	goto_if FALSE, EventScript_170031
	msgbox gUnknown_819F3CB
	release
	end

EventScript_170031:: @ 8170031
	setflag FLAG_GOT_RECORD_SETTING_MAGIKARP
	msgbox gUnknown_819F31B
	giveitem ITEM_NET_BALL
	compare_var_to_value VAR_RESULT, 0
	goto_if eq, EventScript_17005D
	msgbox gUnknown_819F395
	release
	end

EventScript_17005D:: @ 817005D
	msgbox gUnknown_819F494
	release
	end

Route12_FishingHouse_EventScript_170067:: @ 8170067
	lockall
	checkflag FLAG_GOT_RECORD_SETTING_MAGIKARP
	goto_if TRUE, EventScript_17007B
	msgbox gUnknown_819F50C
	releaseall
	end

EventScript_17007B:: @ 817007B
	special GetMagikarpSizeRecordInfo
	msgbox gUnknown_819F4CF
	releaseall
	end