summaryrefslogtreecommitdiff
path: root/data/maps/SkyPillar_Outside/scripts.inc
blob: c809130b7b8eadfbe74a73547df1be70524f7a91 (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
SkyPillar_Outside_MapScripts:: @ 82392A8
	map_script 3, SkyPillar_Outside_MapScript1_2392B8
	map_script 1, SkyPillar_Outside_MapScript1_2392DD
	map_script 2, SkyPillar_Outside_MapScript2_2392FA
	.byte 0

SkyPillar_Outside_MapScript1_2392B8: @ 82392B8
	compare VAR_0x405E, 3
	call_if 1, SkyPillar_Outside_EventScript_2392CF
	compare VAR_0x405E, 4
	call_if 4, SkyPillar_Outside_EventScript_2392D3
	end

SkyPillar_Outside_EventScript_2392CF:: @ 82392CF
	setflag FLAG_SPECIAL_FLAG_0x4000
	return

SkyPillar_Outside_EventScript_2392D3:: @ 82392D3
	checkflag FLAG_SYS_WEATHER_CTRL
	call_if 1, SkyPillar_Outside_EventScript_27207A
	return

SkyPillar_Outside_MapScript1_2392DD: @ 82392DD
	checkflag FLAG_0x137
	call_if 1, SkyPillar_Outside_EventScript_2392E7
	end

SkyPillar_Outside_EventScript_2392E7:: @ 82392E7
	setmetatile 14, 4, 682, 0
	setmetatile 14, 5, 690, 0
	return

SkyPillar_Outside_MapScript2_2392FA: @ 82392FA
	map_script_2 VAR_0x405E, 3, SkyPillar_Outside_EventScript_239304
	.2byte 0

SkyPillar_Outside_EventScript_239304:: @ 8239304
	lockall
	applymovement 1, SkyPillar_Outside_Movement_2393D3
	waitmovement 0
	applymovement 255, SkyPillar_Outside_Movement_2725A4
	waitmovement 0
	msgbox SkyPillar_Outside_Text_239416, MSGBOX_DEFAULT
	closemessage
	delay 30
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 1
	setvar VAR_0x8006, 8
	setvar VAR_0x8007, 3
	special sub_8139560
	waitstate
	delay 40
	msgbox SkyPillar_Outside_Text_2394BC, MSGBOX_DEFAULT
	closemessage
	applymovement 255, SkyPillar_Outside_Movement_2393EB
	applymovement 1, SkyPillar_Outside_Movement_2393DE
	waitmovement 0
	setvar VAR_0x8004, 1
	setvar VAR_0x8005, 3
	setvar VAR_0x8006, 20
	setvar VAR_0x8007, 5
	special sub_8139560
	waitstate
	delay 20
	applymovement 1, SkyPillar_Outside_Movement_2725A4
	waitmovement 0
	delay 10
	applymovement 1, SkyPillar_Outside_Movement_2725A8
	waitmovement 0
	delay 20
	applymovement 1, SkyPillar_Outside_Movement_2725AA
	waitmovement 0
	delay 30
	msgbox SkyPillar_Outside_Text_23950C, MSGBOX_DEFAULT
	closemessage
	setflag FLAG_SYS_WEATHER_CTRL
	setweather 15
	doweather
	special WaitWeather
	waitstate
	delay 30
	msgbox SkyPillar_Outside_Text_23953A, MSGBOX_DEFAULT
	closemessage
	playse SE_KAIDAN
	fadescreenswapbuffers 1
	clearflag FLAG_SPECIAL_FLAG_0x4000
	setvar VAR_0x405E, 4
	removeobject 1
	clearflag FLAG_HIDE_SOOTOPOLIS_CITY_WALLACE
	fadescreenswapbuffers 0
	releaseall
	end

SkyPillar_Outside_Movement_2393D3: @ 82393D3
	walk_down
	walk_down
	walk_down
	walk_down
	walk_down
	walk_down
	walk_down
	walk_right
	walk_right
	walk_right
	step_end

SkyPillar_Outside_Movement_2393DE: @ 82393DE
	walk_left
	walk_left
	walk_left
	walk_up
	walk_up
	walk_up
	walk_up
	walk_right
	walk_up
	walk_up
	walk_up
	walk_up
	step_end

SkyPillar_Outside_Movement_2393EB: @ 82393EB
	walk_left
	walk_left
	walk_left
	walk_left
	walk_up
	walk_up
	walk_up
	walk_up
	walk_right
	walk_up
	walk_up
	walk_up
	step_end

SkyPillar_Outside_EventScript_2393F8:: @ 82393F8
	end

SkyPillar_Outside_EventScript_2393F9:: @ 82393F9
	msgbox SkyPillar_Outside_Text_239402, MSGBOX_SIGN
	end

SkyPillar_Outside_Text_239402: @ 8239402
	.string "The door is closed.$"

SkyPillar_Outside_Text_239416: @ 8239416
	.string "WALLACE: Oh, my, I’m terribly sorry!\p"
	.string "In my haste, I didn’t notice that\n"
	.string "I’d left you behind!\p"
	.string "I’ve opened the locked door of\n"
	.string "the SKY PILLAR.\p"
	.string "{PLAYER}{KUN}, let’s be on our way!$"

SkyPillar_Outside_Text_2394BC: @ 82394BC
	.string "WALLACE: It’s an earthquake!\p"
	.string "There’s not a moment to waste!\n"
	.string "We’ve got to hurry!$"

SkyPillar_Outside_Text_23950C: @ 823950C
	.string "WALLACE: Hmm…\n"
	.string "The situation is getting worse…$"

SkyPillar_Outside_Text_23953A: @ 823953A
	.string "WALLACE: This isn’t good…\p"
	.string "The weather distortion is spreading\n"
	.string "even here…\p"
	.string "{PLAYER}{KUN}.\p"
	.string "RAYQUAZA should be farther up\n"
	.string "from here.\p"
	.string "I’m worried about SOOTOPOLIS.\n"
	.string "I’ve got to go back.\p"
	.string "Everything is in your hands now.\n"
	.string "Don’t fail us!$"