summaryrefslogtreecommitdiff
path: root/data/scripts/maps/BattleTower_BattleRoom.inc
blob: d991b88534994ccf07f491a7d1a167986590b13e (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
BattleTower_BattleRoom_MapScripts:: @ 81608DB
	map_script 2, BattleTower_BattleRoom_MapScript2_1608E1
	.byte 0

BattleTower_BattleRoom_MapScript2_1608E1:: @ 81608E1
	map_script_2 0x4000, 0, BattleTower_BattleRoom_EventScript_1608EB
	.2byte 0

BattleTower_BattleRoom_EventScript_1608EB:: @ 81608EB
	setvar 0x4000, 1
	move 255, BattleTower_BattleRoom_Movement_160AB7
	waitmove 0

BattleTower_BattleRoom_EventScript_1608FA:: @ 81608FA
	special 232
	reappear 1
	move 1, BattleTower_BattleRoom_Movement_160AC0
	waitmove 0
	special 234
	msgbox 0x20234cc, 4
	waittext
	closebutton
	special 0
	setvar 0x8004, 0
	setvar 0x8005, 0
	special 236
	waitstate
	switch RESULT
	case 1, BattleTower_BattleRoom_EventScript_160961
	special 40
	setvar 0x8004, 0
	setvar 0x8005, 5
	special 237
	setvar 0x8004, 14
	special 237
	setvar 0x8004, 3
	special 170
	warp BattleTower_Lobby, 255, 6, 6
	waitstate

BattleTower_BattleRoom_EventScript_160961:: @ 8160961
	setvar 0x8004, 6
	special 237
	switch RESULT
	case 8, BattleTower_BattleRoom_EventScript_160A56
	move 1, BattleTower_BattleRoom_Movement_160AC6
	waitmove 0
	disappear 1
	move 2, BattleTower_BattleRoom_Movement_160ACB
	waitmove 0
	move 255, BattleTower_BattleRoom_Movement_160ABC
	waitmove 0
	msgbox BattleTower_BattleRoom_Text_19ACDC, 4
	special 40
	special 39
	special 239
	fanfare 368
	waitfanfare
	special 0

BattleTower_BattleRoom_EventScript_1609B2:: @ 81609B2
	msgbox BattleTower_BattleRoom_Text_19AD09, 5
	switch RESULT
	case 0, BattleTower_BattleRoom_EventScript_1609E0
	case 1, BattleTower_BattleRoom_EventScript_160A3C
	case 127, BattleTower_BattleRoom_EventScript_1609E0

BattleTower_BattleRoom_EventScript_1609E0:: @ 81609E0
	msgbox BattleTower_BattleRoom_Text_19AD3C, 5
	switch RESULT
	case 0, BattleTower_BattleRoom_EventScript_160A0E
	case 1, BattleTower_BattleRoom_EventScript_160A94
	case 127, BattleTower_BattleRoom_EventScript_160A0E

BattleTower_BattleRoom_EventScript_160A0E:: @ 8160A0E
	msgbox BattleTower_BattleRoom_Text_19AD66, 5
	switch RESULT
	case 0, BattleTower_BattleRoom_EventScript_1609B2
	case 1, BattleTower_BattleRoom_EventScript_160AB1
	case 127, BattleTower_BattleRoom_EventScript_1609B2

BattleTower_BattleRoom_EventScript_160A3C:: @ 8160A3C
	closebutton
	move 255, BattleTower_BattleRoom_Movement_160ABE
	waitmove 0
	move 2, BattleTower_BattleRoom_Movement_160AD0
	waitmove 0
	jump BattleTower_BattleRoom_EventScript_1608FA

BattleTower_BattleRoom_EventScript_160A56:: @ 8160A56
	special 40
	setvar 0x8004, 0
	setvar 0x8005, 4
	special 237
	setvar 0x8004, 2
	setvar 0x8005, 1
	special 237
	setvar 0x8004, 7
	special 237
	setvar 0x8004, 14
	special 237
	setvar 0x8004, 3
	special 170
	warp BattleTower_Lobby, 255, 6, 6
	waitstate

BattleTower_BattleRoom_EventScript_160A94:: @ 8160A94
	setvar 0x8004, 2
	special 240
	message BattleTower_BattleRoom_Text_1C6CE1
	pause 60
	waittext
	playsfx 55
	checksound
	msgbox BattleTower_BattleRoom_Text_1C6D05, 4

BattleTower_BattleRoom_EventScript_160AB1:: @ 8160AB1
	fadescreen 1
	special 241
	end

BattleTower_BattleRoom_Movement_160AB7:: @ 8160AB7
	step_up
	step_up
	step_up
	step_03
	step_end

BattleTower_BattleRoom_Movement_160ABC:: @ 8160ABC
	step_00
	step_end

BattleTower_BattleRoom_Movement_160ABE:: @ 8160ABE
	step_03
	step_end

BattleTower_BattleRoom_Movement_160AC0:: @ 8160AC0
	step_down
	step_down
	step_down
	step_down
	step_02
	step_end

BattleTower_BattleRoom_Movement_160AC6:: @ 8160AC6
	step_up
	step_up
	step_up
	step_up
	step_end

BattleTower_BattleRoom_Movement_160ACB:: @ 8160ACB
	step_right
	step_right
	step_right
	step_up
	step_end

BattleTower_BattleRoom_Movement_160AD0:: @ 8160AD0
	step_down
	step_left
	step_left
	step_left
	step_03
	step_end