Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
wstag953.c
Go to the documentation of this file.
1/*
2 * WSTAG953: Kicking Forest, East Sector, in the extra chapter. The European
3 * version's: in its extra chapter (STORY_EXTRA), mode 665 starts it instead of
4 * WSTAG401.
5 */
6
7#include "common.h"
8#include "field/stage.h"
9
11#define STAGE_CHILDREN_SIZE 4
13
14const CVECTOR stageColor = { 0x54, 0x67, 0x96, 0x00 };
15#if VERSION_EU
16#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_09)
17#define STAGE_FILE 0x921
18#define STAGE_FILE_8 0x409
19#elif VERSION_JP
20#define STAGE_TEXT 0x89B
21#define STAGE_FILE 0x8F8
22#define STAGE_FILE_8 0x3F9
23#endif
24/* Sets the stage up: its map, actors, battles and events, playing the ambience ENV05_00 */
46
48 { 0x200, 0x100, 0x21C, 0x1A6, 0x70, 0xA6, 0x230, 0x1FE },
49 { 0x200, 0x100, 0x200, 0x100, 0, 0, 0x220, 0x1FE },
50 { 0x200, 0x100, 0x216, 0x138, 0x58, 0x38, 0x200, 0x1FD },
51 { 0x200, 0x100, 0x208, 0x1BC, 0x20, 0xBC, 0x210, 0x1FD },
52 { 0x200, 0x100, 0x210, 0x1BC, 0x40, 0xBC, 0x220, 0x1FD },
53 { 0x200, 0x100, 0x200, 0x1BC, 0, 0xBC, 0x230, 0x1FD },
54 { 0x180, 0x100, 0x1B0, 0x140, 0x1C0, 0x40, 0x160, 0x1FF },
55 { 0x180, 0x100, 0x1B4, 0x100, 0x1D0, 0, 0x170, 0x1FF },
56 { 0x180, 0x100, 0x1B4, 0x120, 0x1D0, 0x20, 0x140, 0x1FE },
57 { 0x180, 0x100, 0x1A8, 0x125, 0x1A0, 0x25, 0x150, 0x1FE },
58};
80 { NULL, NULL, 0 },
81};
83 { NULL, NULL, 0x45 },
84 { NULL, NULL, 0 },
85};
94 { NULL, NULL, 0x8D },
95 { NULL, NULL, 0 },
96};
98 { NULL, NULL, 0x8E },
99 { NULL, NULL, 0 },
100};
102u16 actor1Conditions[] = { ITEM(0, 0x192), 0, CODES_END };
103u16 actor2Conditions[] = { ITEM(0, 0x192), 1, CODES_END };
105FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x3A, 5, 1156, 1070, 3 };
106FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x3A, 5, 1156, 1070, 3 };
107FieldActorEntry actor3 = { NULL, actor3Talks, 0x16F, 6, 1655, 1299, 7 };
108FieldActorEntry actor4 = { NULL, actor4Talks, 0x171, 7, 368, 288, 7 };
110 &actor0,
111 &actor1,
112 &actor2,
113 &actor3,
114 &actor4,
115 NULL,
116};
118 { 1, 0, 0x78, 2, 0, 0, 0, 0, 0, 0, 432, 785, 0, 0 },
119 { 1, 0, 0x40, 2, 3, 1, 3, 8, 8, 0, 730, 539, 0, 0 },
120 { 1, 0, 0x40, 2, 3, 1, 3, 8, 8, 0, 791, 950, 0, 0 },
121 { 1, 0, 0x40, 2, 3, 1, 3, 8, 8, 0, 792, 87, 0, 0 },
122 { 1, 0, 0x40, 2, 9, 0, 0, 0, 0, 0, 303, 734, 0, 0 },
123 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 351, 829, 0, 0 },
124 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 374, 627, 0, 0 },
125 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 500, 726, 0, 0 },
126 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 571, 414, 0, 0 },
127 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 631, 562, 0, 0 },
128 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 639, 644, 0, 0 },
129 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 862, 571, 0, 0 },
130 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 954, 512, 0, 0 },
131 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 1127, 485, 0, 0 },
132 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 341, 879, 0, 0 },
133 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 374, 929, 0, 0 },
134 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 485, 453, 0, 0 },
135 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 684, 535, 0, 0 },
136 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 784, 488, 0, 0 },
137 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 928, 521, 0, 0 },
138 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 1013, 479, 0, 0 },
139 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 1117, 497, 0, 0 },
140 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 303, 945, 0, 0 },
141 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 329, 932, 0, 0 },
142 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 390, 785, 0, 0 },
143 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 438, 796, 0, 0 },
144 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 445, 512, 0, 0 },
145 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 450, 586, 0, 0 },
146 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 519, 438, 0, 0 },
147 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 620, 642, 0, 0 },
148 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 663, 555, 0, 0 },
149 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 825, 587, 0, 0 },
150 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 986, 492, 0, 0 },
151 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 1456, 664, 0, 0 },
152 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 513, 546, 0, 0 },
153 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 687, 476, 0, 0 },
154 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 1189, 636, 0, 0 },
155 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 1215, 553, 0, 0 },
156 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 1344, 618, 0, 0 },
157 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 444, 485, 0, 0 },
158 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 473, 730, 0, 0 },
159 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 544, 555, 0, 0 },
160 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 669, 458, 0, 0 },
161 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 760, 581, 0, 0 },
162 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 1052, 481, 0, 0 },
163 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 1152, 493, 0, 0 },
164 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 1272, 585, 0, 0 },
165 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 1397, 643, 0, 0 },
166 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 434, 724, 0, 0 },
167 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 446, 530, 0, 0 },
168 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 588, 580, 0, 0 },
169 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 730, 486, 0, 0 },
170 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 788, 597, 0, 0 },
171 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 807, 504, 0, 0 },
172 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 1087, 490, 0, 0 },
173 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 1204, 634, 0, 0 },
174 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 1237, 569, 0, 0 },
175 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 1284, 600, 0, 0 },
176 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 343, 853, 0, 0 },
177 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 354, 839, 0, 0 },
178 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 359, 937, 0, 0 },
179 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 368, 802, 0, 0 },
180 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 372, 910, 0, 0 },
181 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 398, 765, 0, 0 },
182 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 415, 714, 0, 0 },
183 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 445, 783, 0, 0 },
184 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 456, 726, 0, 0 },
185 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 627, 650, 0, 0 },
186 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 652, 632, 0, 0 },
187 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 824, 605, 0, 0 },
188 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 834, 506, 0, 0 },
189 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 883, 535, 0, 0 },
190 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 974, 510, 0, 0 },
191 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 1030, 1476, 0, 0 },
192 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 1144, 525, 0, 0 },
193 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 1155, 526, 0, 0 },
194 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 1159, 517, 0, 0 },
195 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 1276, 774, 0, 0 },
196 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 1287, 778, 0, 0 },
197 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 1294, 769, 0, 0 },
198 { 1, 0x64, 0x40, 6, 2, 0, 0, 0, 0, 0, 177, 719, 0, 0 },
199 { 1, 0, 0xE0, 0xA, 0x4A, 1, 0x4A, 0x4C, 8, 0, 184, 992, 0, 0 },
200 { 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 134, 729, 771, 0 },
201 { 1, 0, 0x40, 4, 0xA, 0, 0, 0, 0, 0, 139, 776, 813, 0 },
202 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 166, 303, 303, 0 },
203 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 184, 248, 248, 0 },
204 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 204, 335, 335, 0 },
205 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 208, 279, 279, 0 },
206 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 208, 471, 471, 0 },
207 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 240, 311, 311, 0 },
208 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 240, 503, 503, 0 },
209 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 246, 871, 871, 0 },
210 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 256, 351, 351, 0 },
211 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 256, 447, 447, 0 },
212 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 264, 911, 911, 0 },
213 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 272, 391, 391, 0 },
214 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 272, 535, 535, 0 },
215 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 272, 791, 791, 0 },
216 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 288, 479, 479, 0 },
217 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 304, 327, 327, 0 },
218 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 304, 423, 423, 0 },
219 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 320, 367, 367, 0 },
220 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 345, 212, 212, 0 },
221 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 367, 263, 263, 0 },
222 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 399, 239, 239, 0 },
223 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 432, 279, 279, 0 },
224 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 432, 951, 951, 0 },
225 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 432, 999, 999, 0 },
226 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 458, 252, 252, 0 },
227 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 480, 303, 303, 0 },
228 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 480, 975, 975, 0 },
229 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 506, 276, 276, 0 },
230 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 528, 999, 999, 0 },
231 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 544, 1135, 1135, 0 },
232 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 560, 295, 295, 0 },
233 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 576, 975, 975, 0 },
234 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 592, 271, 271, 0 },
235 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 592, 823, 823, 0 },
236 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 592, 1015, 1015, 0 },
237 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 592, 1159, 1159, 0 },
238 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 608, 319, 319, 0 },
239 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 633, 291, 291, 0 },
240 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 640, 1039, 1039, 0 },
241 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 640, 1183, 1183, 0 },
242 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 647, 827, 827, 0 },
243 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 672, 1071, 1071, 0 },
244 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 681, 315, 315, 0 },
245 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 688, 1207, 1207, 0 },
246 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 703, 815, 815, 0 },
247 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 720, 1047, 1047, 0 },
248 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 729, 339, 339, 0 },
249 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 736, 1087, 1087, 0 },
250 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 752, 711, 711, 0 },
251 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 752, 807, 807, 0 },
252 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 768, 1119, 1119, 0 },
253 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 783, 843, 843, 0 },
254 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 784, 743, 743, 0 },
255 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 784, 1159, 1159, 0 },
256 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 800, 1255, 1255, 0 },
257 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 832, 815, 815, 0 },
258 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 832, 1135, 1135, 0 },
259 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 848, 759, 759, 0 },
260 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 864, 1167, 1167, 0 },
261 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 864, 1231, 1231, 0 },
262 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 880, 791, 791, 0 },
263 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 911, 970, 970, 0 },
264 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 912, 1143, 1143, 0 },
265 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 927, 1241, 1241, 0 },
266 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 928, 271, 271, 0 },
267 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 928, 799, 799, 0 },
268 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 928, 1183, 1183, 0 },
269 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 935, 858, 858, 0 },
270 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 960, 943, 943, 0 },
271 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 976, 295, 295, 0 },
272 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 976, 983, 983, 0 },
273 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 976, 1159, 1159, 0 },
274 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 989, 1034, 1034, 0 },
275 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 991, 1262, 1262, 0 },
276 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 997, 201, 201, 0 },
277 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1024, 959, 959, 0 },
278 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1040, 999, 999, 0 },
279 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1040, 1143, 1143, 0 },
280 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1042, 1251, 1251, 0 },
281 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1055, 215, 215, 0 },
282 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1064, 1083, 1083, 0 },
283 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1087, 1222, 1222, 0 },
284 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1088, 1119, 1119, 0 },
285 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1104, 231, 231, 0 },
286 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1120, 319, 319, 0 },
287 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1120, 911, 911, 0 },
288 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1120, 1007, 1007, 0 },
289 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1145, 1251, 1251, 0 },
290 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1152, 255, 255, 0 },
291 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1152, 943, 943, 0 },
292 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1168, 295, 295, 0 },
293 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1168, 983, 983, 0 },
294 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1184, 335, 335, 0 },
295 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1184, 1279, 1279, 0 },
296 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1200, 919, 919, 0 },
297 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1200, 1239, 1239, 0 },
298 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1216, 367, 367, 0 },
299 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1216, 959, 959, 0 },
300 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1223, 1188, 1188, 0 },
301 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1232, 1303, 1303, 0 },
302 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1248, 1263, 1263, 0 },
303 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1264, 343, 343, 0 },
304 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1264, 935, 935, 0 },
305 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1264, 1175, 1175, 0 },
306 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1280, 975, 975, 0 },
307 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1280, 1327, 1327, 0 },
308 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1311, 1182, 1182, 0 },
309 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1312, 327, 327, 0 },
310 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1312, 367, 367, 0 },
311 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1321, 1146, 1146, 0 },
312 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1328, 951, 951, 0 },
313 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1344, 991, 991, 0 },
314 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1344, 1118, 1118, 0 },
315 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1344, 1311, 1311, 0 },
316 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1360, 343, 343, 0 },
317 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1376, 1023, 1023, 0 },
318 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1392, 1327, 1327, 0 },
319 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1398, 1051, 1051, 0 },
320 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1400, 227, 227, 0 },
321 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1440, 207, 207, 0 },
322 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1440, 1063, 1063, 0 },
323 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1456, 1319, 1319, 0 },
324 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1488, 407, 407, 0 },
325 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1503, 1295, 1295, 0 },
326 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1504, 223, 223, 0 },
327 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1525, 443, 443, 0 },
328 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1542, 298, 298, 0 },
329 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1568, 1279, 1279, 0 },
330 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1584, 279, 279, 0 },
331 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1601, 464, 464, 0 },
332 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
333};
335 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x29A, 0xB0, 0x4F8, 5, 0, 0, 0 },
336 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x298, 0x654, 0x442, 3, 0, 0, 0 },
337 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x29B, 0x384, 0x160, 3, 0x64, 0, 0 },
338 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_WARP0, 0x2E0, 0x240, 0xD8, 1, 0, 2, 1 },
339 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_WARP1, 0x2E9, 0xB0, 0xF8, 0, 0, 4, 1 },
340 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_WARP1, 0x2E9, 0xB0, 0xF8, 0, 0, 6, 1 },
341 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_DROP, 7, 0, 0, 0, 0, 0, 0 },
342 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_DOWN, 7, 0x34D, 0xFA, 0, 0, 0, 0 },
343 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_UP, 7, 0x33F, 0x16C, 0, 0, 0, 0 },
344 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_DOWN, 5, 0x59E, 0x111, 0, 0, 0, 0 },
345 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_UP, 5, 0x58F, 0x163, 0, 0, 0, 0 },
346 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_DOWN, 7, 0x2DE, 0x4E3, 0, 0, 0, 0 },
347 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_UP, 7, 0x2D0, 0x550, 0, 0, 0, 0 },
348 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0x40, 0x30, 0, 0, 0, 0, 0 },
349 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0xFFC0, 0x30, 0, 0, 0, 0, 0 },
350 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0, 0x50, 0, 0, 0, 0, 0 },
351 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0x60, 0x10, 0, 0, 0, 0, 0 },
352 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0x50, 0xFFE8, 0, 0, 0, 0, 0 },
353 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0xFFC0, 0xFFF0, 0, 0, 0, 0, 0 },
354 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0xFFD0, 0xFFF0, 0, 0, 0, 0, 0 },
355 { { { CODES_END, 0 }, { CODES_END, 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
356};
357void (*stageFuncs[])(void) = {
359};
361 { 9000, NULL, 0, FIELDSTG_startEventBattle5, NULL },
362 { -1, NULL, 0, NULL, NULL },
363};
390AreaBattle area2Battle0 = { 0, 0, MUSIC(1, 0) };
391AreaBattle area2Battle1 = { 0, 0, MUSIC(1, 0) };
392AreaBattle area2Battle2 = { 0, 0, MUSIC(1, 0) };
393AreaBattle area2Battle3 = { 0, 0, MUSIC(1, 0) };
394AreaBattle area2Battle4 = { 0, 0, MUSIC(1, 0) };
395AreaBattle area2Battle5 = { 0, 0, MUSIC(1, 0) };
396AreaBattle area2Battle6 = { 0, 0, MUSIC(1, 0) };
397AreaBattle area2Battle7 = { 0, 0, MUSIC(1, 0) };
403AreaBattle area3Battle0 = { 0, 0, MUSIC(1, 0) };
404AreaBattle area3Battle1 = { 0, 0, MUSIC(1, 0) };
405AreaBattle area3Battle2 = { 0, 0, MUSIC(1, 0) };
408AreaBattle area3Battle5 = { 0, 0, MUSIC(1, 0) };
#define NULL
Definition common.h:17
unsigned short u16
Definition common.h:10
The stage overlays (AAA/PRO/WSTAG###.PRO), loaded at 0x800A4CA4 on top of FIELDSTG.
void * FIELDSTG_startEventBattle5(void)
Starts battle 5 of the fourth area: the end of the stages' events 9000.
Definition field.c:1010
#define SLOT_CLIMB_UP
Definition field_map.h:256
#define SLOT_WARP1
a warp (FieldWarp at arg) with effect and cutscene 1
Definition field_map.h:263
#define FIELD_MAP_FLOOR0
Some of FieldMap's maps (files): those of the floors the player walks on come first,...
Definition field_map.h:85
#define SLOT_CLIMB_DOWN
Definition field_map.h:257
#define SLOT_GAUGE
the gauge game
Definition field_map.h:261
#define SLOT_EXIT
The kinds of StageSlot (type).
Definition field_map.h:255
#define FIELD_MAP_AREAS
a cell's value: its battle area (FieldBattles), or 0
Definition field_map.h:87
#define FIELD_MAP_TRIGGERS
a cell's value: a direction (3 bits) and a StageSlot (5)
Definition field_map.h:88
#define SLOT_WARP0
the same with effect and cutscene 0
Definition field_map.h:264
#define SLOT_DROP
Definition field_map.h:258
FieldMap FIELDSTG_map
Definition fieldstg.c:3660
FieldState FIELDSTG_state
Definition fieldstg.c:2641
#define CODES_END
Definition game_state.h:83
#define ITEM(kind, id)
an item, in the bag or equipped; kind (bits 9-11) isn't read, and the scripts set it after the item's...
Definition game_state.h:80
#define FLAG(group, id)
The codes of the (code, value) pairs that FLAGS_00 checks as conditions and applies as actions (event...
Definition game_state.h:68
#define CARD_BATTLE(opponent, kind)
action: startCardBattle
Definition game_state.h:73
#define MUSIC_BATTLE
BATL0000: the maps' random battles (AreaBattle, nearly all of them)
Definition sound.h:76
#define MUSIC_WIRE_FOREST
ENV05_00: the Wire Forests and the Kicking Forest.
Definition sound.h:121
#define MUSIC(bank, n)
A field's or a battle's music (FieldState.music, Battle.music): track (SEP) n of the first sequence o...
Definition sound.h:70
#define MUSIC_BANK(music)
The sound bank of a music, which a stage loads for it (FieldState.soundBank)
Definition sound.h:148
FIELDSTG's start of the stage (StageEntry.init in FIELDSTG_stages): the stage's task,...
#define FLAG_KICKING_FOREST_THUNDER_CHIP_FOUND
wstag953 (extra chapter): chest that gives the Thunder Chip, "I got" text; its conditions test it 0
Definition story.h:482
#define FLAG_CARD_BATTLE_WON
set by updateModeFlags on the way back from a card battle: 1 if the player won it (FLAGS_00....
Definition story.h:166
#define FLAG_CARD_BATTLE_ENDED
set by updateModeFlags on the way back from a card battle; the talks that follow one test it and clea...
Definition story.h:169
#define SPECIAL_SHOW_ITEM_GET_ICON
an action: the player's icon plays its animation 3 with SOUND_ITEM_GET (FIELD_COMMAND_ICON3); the tal...
Definition story.h:1982
Where an actor's frames go in VRAM: one of the records after the FieldImage (Actor....
Definition field_map.h:114
A battle of an area's BattleList, which can start on the field (see FIELDSTG_startEncounter); FIGHTST...
Definition field_map.h:402
The battles of an area of the map (its cells' value at FieldMap.files[4]), one picked at random.
Definition field_map.h:411
A character of the field (FieldState.actors, a list of pointers up to NULL), which FIELDSTG_updateFie...
Definition field_map.h:194
The battles of a place (FieldState.battles), by area of the map: the fourth area's are also the ones ...
Definition field_map.h:422
An event of the table FieldState.events, up to the first id -1, which FIELDSTG_startEvent starts.
Definition field_map.h:141
void(* setFile)(s32 index, s32 file)
FIELDSTG_setMapFile.
Definition field_map.h:100
void(* setFirstMap)(s32 index)
FIELDSTG_setFirstMap: the map the player starts on (GAME.mapIndex), when the mode is new.
Definition field_map.h:104
s32 sheetEntry
the stage's sprite sheet, loaded before the field starts, or 0
Definition field_map.h:445
FieldEvent * events
up to the first id -1
Definition field_map.h:451
s32 soundBank
SOUND.loadBank's, or 0.
Definition field_map.h:459
StageTile * objects
the map objects, up to the first margin 0
Definition field_map.h:446
s32 imageFile
or an image archive file, or 0
Definition field_map.h:449
FieldBattles * battles
Definition field_map.h:450
Vec2 start
where the player starts
Definition field_map.h:456
StageSlot * slots
up to the first type 0
Definition field_map.h:447
ActorImage * actors
then the actors', from actors[2]
Definition field_map.h:454
s32 mapFile
the file of the map's tiles (FIELDSTG_createMapStreamer)
Definition field_map.h:444
s32 startDir
and its direction
Definition field_map.h:457
CVECTOR spriteColor
the field's sprites' color, unless cd is 0
Definition field_map.h:458
s32 textFile
the stage's text file, for the talks
Definition field_map.h:461
union FieldState::@12 images
s32 music
SOUND.playSound's, or 0.
Definition field_map.h:460
What a character says (FIELDSTG_runActorAction): the first whose conditions hold, or the last,...
Definition field_map.h:176
What the player can trigger on a map (FIELDSTG_updateTriggers): a record of the table at FieldState....
Definition field_map.h:276
An object of a map, which FIELDSTG draws: a record of the table at FieldState.objects,...
Definition field_map.h:208
Definition gfx.h:352
u16 actor1Conditions[]
Definition wstag953.c:102
u16 actor0Talk0Actions[]
Definition wstag953.c:59
AreaBattle area2Battle7
Definition wstag953.c:397
FieldActorEntry actor0
Definition wstag953.c:104
void(* stageFuncs[])(void)
The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a t...
Definition wstag953.c:357
FieldTalk actor2Talks[]
Definition wstag953.c:86
AreaBattle area2Battle6
Definition wstag953.c:396
u16 actor2Talk1Conditions[]
Definition wstag953.c:67
AreaBattle area1Battle6
Definition wstag953.c:383
AreaBattle area0Battle7
Definition wstag953.c:371
FieldActorEntry actor2
Definition wstag953.c:106
const CVECTOR stageColor
the color the setup copies to FIELDSTG_state.spriteColor
Definition wstag953.c:14
#define STAGE_FILE_8
Definition wstag953.c:18
AreaBattle area3Battle4
Definition wstag953.c:407
AreaBattle area3Battle3
Definition wstag953.c:406
AreaBattle area0Battle1
Definition wstag953.c:365
AreaBattle area2Battle0
Definition wstag953.c:390
FieldActorEntry * stageActors[]
Definition wstag953.c:109
u16 actor2Talk3Conditions[]
Definition wstag953.c:76
AreaBattle area1Battle2
Definition wstag953.c:379
AreaBattle area3Battle0
Definition wstag953.c:403
AreaBattle area0Battle6
Definition wstag953.c:370
FieldTalk actor1Talks[]
Definition wstag953.c:82
AreaBattle area3Battle2
Definition wstag953.c:405
u16 actor2Talk1Actions[]
Definition wstag953.c:68
FieldTalk actor0Talks[]
Definition wstag953.c:78
AreaBattle area3Battle1
Definition wstag953.c:404
AreaBattle area0Battle3
Definition wstag953.c:367
u16 actor2Talk0Actions[]
Definition wstag953.c:66
FieldTalk actor4Talks[]
Definition wstag953.c:97
FieldActorEntry actor4
Definition wstag953.c:108
u16 actor2Talk2Conditions[]
Definition wstag953.c:74
AreaBattle area3Battle6
Definition wstag953.c:409
u16 actor2Talk3Actions[]
Definition wstag953.c:77
ActorImage stageImages[]
Definition wstag953.c:47
void setupStage(void)
Sets the stage up: its map, actors, battles and events, playing the ambience ENV05_00.
Definition wstag953.c:25
AreaBattle area2Battle4
Definition wstag953.c:394
StageTile stageObjects[]
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition wstag953.c:117
FieldTalk actor3Talks[]
Definition wstag953.c:93
BattleList area3Battles
Definition wstag953.c:411
AreaBattle area3Battle5
Definition wstag953.c:408
AreaBattle area0Battle5
Definition wstag953.c:369
BattleList area1Battles
Definition wstag953.c:385
BattleList area2Battles
Definition wstag953.c:398
u16 actor2Talk0Conditions[]
Definition wstag953.c:65
AreaBattle area1Battle4
Definition wstag953.c:381
u16 actor2Talk2Actions[]
Definition wstag953.c:75
AreaBattle area2Battle2
Definition wstag953.c:392
AreaBattle area1Battle5
Definition wstag953.c:382
StageSlot stageSlots[]
Definition wstag953.c:334
AreaBattle area2Battle1
Definition wstag953.c:391
AreaBattle area1Battle3
Definition wstag953.c:380
AreaBattle area1Battle0
Definition wstag953.c:377
FieldActorEntry actor1
Definition wstag953.c:105
AreaBattle area0Battle0
Definition wstag953.c:364
AreaBattle area0Battle2
Definition wstag953.c:366
#define STAGE_FILE
Definition wstag953.c:17
AreaBattle area2Battle5
Definition wstag953.c:395
AreaBattle area1Battle1
Definition wstag953.c:378
AreaBattle area2Battle3
Definition wstag953.c:393
u16 actor2Conditions[]
Definition wstag953.c:103
AreaBattle area0Battle4
Definition wstag953.c:368
#define STAGE_TEXT
Definition wstag953.c:16
AreaBattle area3Battle7
Definition wstag953.c:410
BattleList area0Battles
Definition wstag953.c:372
AreaBattle area1Battle7
Definition wstag953.c:384
FieldActorEntry actor3
Definition wstag953.c:107
FieldBattles stageBattles[]
Definition wstag953.c:416
FieldEvent stageEvents[]
Definition wstag953.c:360
u16 actor0Conditions[]
Definition wstag953.c:101