summaryrefslogtreecommitdiff
path: root/data/maps/CinnabarIsland_PokemonCenter_1F/scripts.inc
blob: 640446bf09990895a95e79f22607244cae9674b3 (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
CinnabarIsland_PokemonCenter_1F_MapScripts:: @ 816E8D7
	map_script 3, CinnabarIsland_PokemonCenter_1F_MapScript1_16E8E2
	map_script 5, CinnabarIsland_PokemonCenter_1F_MapScript2_1BC05C
	.byte 0

CinnabarIsland_PokemonCenter_1F_MapScript1_16E8E2:: @ 816E8E2
	setrespawn SPAWN_CINNABAR_ISLAND
	end

CinnabarIsland_PokemonCenter_1F_EventScript_16E8E6:: @ 816E8E6
	lock
	faceplayer
	call EventScript_1A6578
	release
	end

CinnabarIsland_PokemonCenter_1F_EventScript_16E8EF:: @ 816E8EF
	msgbox gUnknown_819A5BE, 2
	end

CinnabarIsland_PokemonCenter_1F_EventScript_16E8F8:: @ 816E8F8
	msgbox gUnknown_819A4F8, 2
	end

CinnabarIsland_PokemonCenter_1F_EventScript_16E901:: @ 816E901
	msgbox gUnknown_819A6B1, 2
	end

CinnabarIsland_PokemonCenter_1F_EventScript_16E90A:: @ 816E90A
	lock
	faceplayer
	msgbox gUnknown_819A725, MSGBOX_YESNO
	compare_var_to_value VAR_RESULT, 0
	goto_if eq, EventScript_16E9A5
	msgbox gUnknown_819A785
	closemessage
	playbgm MUS_ANNAI, 1
	savebgm MUS_ANNAI
	setflag FLAG_SPECIAL_FLAG_0x4001
	setflag FLAG_HIDE_CINNABAR_POKECENTER_BILL
	delay 20
	compare_var_to_value VAR_FACING, 1
	call_if eq, EventScript_16E96F
	compare_var_to_value VAR_FACING, 4
	call_if eq, EventScript_16E981
	compare_var_to_value VAR_FACING, 3
	call_if eq, EventScript_16E993
	removeobject 7
	setvar VAR_MAP_SCENE_CINNABAR_ISLAND_2, 1
	clearflag FLAG_HIDE_CINNABAR_BILL
	warp MAP_CINNABAR_ISLAND, 255, 14, 11
	waitstate
	release
	end

EventScript_16E96F:: @ 816E96F
	applymovement 7, Movement_16E9AF
	applymovement 255, Movement_16E9B9
	waitmovement 0
	return

EventScript_16E981:: @ 816E981
	applymovement 7, Movement_16E9C3
	applymovement 255, Movement_16E9CF
	waitmovement 0
	return

EventScript_16E993:: @ 816E993
	applymovement 7, Movement_16E9AF
	applymovement 255, Movement_16E9DE
	waitmovement 0
	return

EventScript_16E9A5:: @ 816E9A5
	msgbox gUnknown_819A766
	release
	end

Movement_16E9AF:: @ 816E9AF
	step_12
	step_12
	step_12
	step_12
	step_10
	step_10
	step_10
	step_1b
	step_60
	step_end

Movement_16E9B9:: @ 816E9B9
	step_10
	step_12
	step_12
	step_12
	step_12
	step_10
	step_10
	step_1c
	step_10
	step_end

Movement_16E9C3:: @ 816E9C3
	step_11
	step_12
	step_12
	step_10
	step_12
	step_12
	step_10
	step_10
	step_10
	step_1b
	step_60
	step_end

Movement_16E9CF:: @ 816E9CF
	step_1c
	step_1c
	step_1c
	step_02
	step_1c
	step_12
	step_12
	step_12
	step_10
	step_10
	step_1b
	step_10
	step_1b
	step_60
	step_end

Movement_16E9DE:: @ 816E9DE
	step_12
	step_12
	step_12
	step_12
	step_12
	step_10
	step_10
	step_1c
	step_10
	step_end