summaryrefslogtreecommitdiff
path: root/data/maps/CinnabarIsland_PokemonCenter_1F/scripts.inc
blob: 554dd69439a9c48e7d10525d2268957e3248f1ad (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
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 9
    end

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

CinnabarIsland_PokemonCenter_1F_EventScript_16E8EF:: @ 816E8EF
    loadword 0, gUnknown_819A5BE
    callstd 2
    end

CinnabarIsland_PokemonCenter_1F_EventScript_16E8F8:: @ 816E8F8
    loadword 0, gUnknown_819A4F8
    callstd 2
    end

CinnabarIsland_PokemonCenter_1F_EventScript_16E901:: @ 816E901
    loadword 0, gUnknown_819A6B1
    callstd 2
    end

CinnabarIsland_PokemonCenter_1F_EventScript_16E90A:: @ 816E90A
    lock
    faceplayer
    loadword 0, gUnknown_819A725
    callstd 5
    compare_var_to_value VAR_RESULT, 0
    goto_if 1, EventScript_16E9A5
    loadword 0, gUnknown_819A785
    callstd 4
    closemessage
    playbgm BGM_FRLG_FOLLOW_ME, 1
    savebgm BGM_FRLG_FOLLOW_ME
    setflag FLAG_SPECIAL_FLAG_0x4001
    setflag FLAG_0x0A2
    delay 20
    compare_var_to_value VAR_FACING, 1
    call_if 1, EventScript_16E96F
    compare_var_to_value VAR_FACING, 4
    call_if 1, EventScript_16E981
    compare_var_to_value VAR_FACING, 3
    call_if 1, EventScript_16E993
    removeobject 7
    setvar VAR_0x408A, 1
    clearflag FLAG_0x062
    warp MAP_CINNABARISLAND, 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
    loadword 0, gUnknown_819A766
    callstd 4
    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