Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
wstag465.c
Go to the documentation of this file.
1/*
2 * WSTAG465: Tranquil Swamp, South Sector.
3 */
4
5#include "common.h"
6#include "field/stage.h"
7
10
11const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0x00 };
12#if VERSION_US || VERSION_JP
13#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_06)
14#define STAGE_FILE 0x1B5
15#define STAGE_ARCHIVE 0x3D1
16#elif VERSION_EU
17#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_06)
18#define STAGE_FILE 0x1C3
19#define STAGE_ARCHIVE 0x3E1
20#endif
21/* Sets the stage up: its map, actors and battles, playing the ambience ENV_0012 */
42
56AreaBattle area1Battle0 = { 0, 0, MUSIC(1, 0) };
57AreaBattle area1Battle1 = { 0, 0, MUSIC(1, 0) };
58AreaBattle area1Battle2 = { 0, 0, MUSIC(1, 0) };
59AreaBattle area1Battle3 = { 0, 0, MUSIC(1, 0) };
60AreaBattle area1Battle4 = { 0, 0, MUSIC(1, 0) };
61AreaBattle area1Battle5 = { 0, 0, MUSIC(1, 0) };
62AreaBattle area1Battle6 = { 0, 0, MUSIC(1, 0) };
63AreaBattle area1Battle7 = { 0, 0, MUSIC(1, 0) };
69AreaBattle area2Battle0 = { 0, 0, MUSIC(1, 0) };
70AreaBattle area2Battle1 = { 0, 0, MUSIC(1, 0) };
71AreaBattle area2Battle2 = { 0, 0, MUSIC(1, 0) };
72AreaBattle area2Battle3 = { 0, 0, MUSIC(1, 0) };
73AreaBattle area2Battle4 = { 0, 0, MUSIC(1, 0) };
74AreaBattle area2Battle5 = { 0, 0, MUSIC(1, 0) };
75AreaBattle area2Battle6 = { 0, 0, MUSIC(1, 0) };
76AreaBattle area2Battle7 = { 0, 0, MUSIC(1, 0) };
83AreaBattle area3Battle1 = { 0, 0, MUSIC(1, 0) };
84AreaBattle area3Battle2 = { 0, 0, MUSIC(1, 0) };
87AreaBattle area3Battle5 = { 0, 0, MUSIC(1, 0) };
99 { 0x200, 0x100, 0x21C, 0x1A6, 0x70, 0xA6, 0x230, 0x1FE },
100 { 0x200, 0x100, 0x200, 0x100, 0, 0, 0x220, 0x1FE },
101 { 0x200, 0x100, 0x216, 0x138, 0x58, 0x38, 0x200, 0x1FD },
102 { 0x200, 0x100, 0x208, 0x1BC, 0x20, 0xBC, 0x210, 0x1FD },
103 { 0x200, 0x100, 0x210, 0x1BC, 0x40, 0xBC, 0x220, 0x1FD },
104 { 0x200, 0x100, 0x200, 0x1BC, 0, 0xBC, 0x230, 0x1FD },
105 { 0x140, 0x100, 0x148, 0x1D4, 0x20, 0xD4, 0x170, 0x1FF },
106 { 0x180, 0x100, 0x198, 0x100, 0x160, 0, 0x140, 0x1FE },
107 { 0x180, 0x100, 0x1A0, 0x100, 0x180, 0, 0x150, 0x1FE },
108 { 0x180, 0x100, 0x1A8, 0x100, 0x1A0, 0, 0x160, 0x1FE },
109};
130 FLAG(0, 0), 1,
132 PARTY_STAT(0xD), 0,
133 CODES_END,
134};
136 FLAG(0, 0), 1,
138 PARTY_STAT(0xD), 1,
139 CODES_END,
140};
175 { NULL, NULL, 0x20 },
176 { NULL, NULL, 0 },
177};
179 { NULL, NULL, 0x133 },
180 { NULL, NULL, 0 },
181};
183 { NULL, NULL, 0x133 },
184 { NULL, NULL, 0 },
185};
187 { NULL, NULL, 0x20 },
188 { NULL, NULL, 0 },
189};
191 { NULL, NULL, 0x20 },
192 { NULL, NULL, 0 },
193};
195 { NULL, NULL, 0x12D },
196 { NULL, NULL, 0 },
197};
199 { NULL, NULL, 0x12E },
200 { NULL, NULL, 0 },
201};
203 { NULL, NULL, 0x12F },
204 { NULL, NULL, 0 },
205};
207 { NULL, NULL, 0x130 },
208 { NULL, NULL, 0 },
209};
211 { NULL, NULL, 0x137 },
212 { NULL, NULL, 0 },
213};
215 { NULL, NULL, 0x135 },
216 { NULL, NULL, 0 },
217};
219 { NULL, NULL, 0x131 },
220 { NULL, NULL, 0 },
221};
223 { NULL, NULL, 0x132 },
224 { NULL, NULL, 0 },
225};
227 { NULL, NULL, 0x134 },
228 { NULL, NULL, 0 },
229};
269 { NULL, NULL, 0x283 },
270 { NULL, NULL, 0 },
271};
279 { NULL, NULL, 0x136 },
280 { NULL, NULL, 0 },
281};
299 ITEM(0, 0x192), 1,
300 ITEM(0, 0x12), 0,
301 CODES_END,
302};
313 ITEM(0, 0x192), 1,
314 ITEM(0, 0x12), 0,
315 CODES_END,
316};
318 ITEM(0, 0x12), 1,
320 ITEM(0, 0x192), 1,
322 CODES_END,
323};
327 ITEM(0, 0x192), 1,
328 ITEM(0, 0x12), 0,
329 CODES_END,
330};
332 ITEM(0, 0x12), 1,
333 ITEM(0, 0x192), 1,
336 CODES_END,
337};
370 &actor0,
371 &actor1,
372 &actor2,
373 &actor3,
374 &actor4,
375 &actor5,
376 &actor6,
377 &actor7,
378 &actor8,
379 &actor9,
380 &actor10,
381 &actor11,
382 &actor12,
383 &actor13,
384 &actor14,
385 &actor15,
386 &actor16,
387 &actor17,
388 &actor18,
389 &actor19,
390 &actor20,
391 &actor21,
392 &actor22,
393 NULL,
394};
396 { 1, 0, 0x40, 2, 3, 1, 3, 8, 8, 0, 1098, 580, 0, 0 },
397 { 1, 0, 0x40, 2, 0x12, 0, 0, 0, 0, 0, 1107, 563, 0, 0 },
398 { 1, 0, 0x40, 2, 0x13, 0, 0, 0, 0, 0, 1187, 603, 0, 0 },
399 { 1, 0, 0x40, 2, 0x14, 0, 0, 0, 0, 0, 545, 152, 0, 0 },
400 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 255, 371, 0, 0 },
401 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 476, 316, 0, 0 },
402 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 482, 389, 0, 0 },
403 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 656, 359, 0, 0 },
404 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 815, 365, 0, 0 },
405 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 960, 347, 0, 0 },
406 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 978, 599, 0, 0 },
407 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 319, 380, 0, 0 },
408 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 474, 400, 0, 0 },
409 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 606, 366, 0, 0 },
410 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 707, 423, 0, 0 },
411 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 784, 382, 0, 0 },
412 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 999, 583, 0, 0 },
413 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 1177, 467, 0, 0 },
414 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 373, 367, 0, 0 },
415 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 712, 325, 0, 0 },
416 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 797, 287, 0, 0 },
417 { 1, 0, 0x40, 6, 0x3B, 1, 0x3A, 0x3D, 0xA, 0, 290, 429, 0, 0 },
418 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 415, 553, 0, 0 },
419 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 528, 419, 0, 0 },
420 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 702, 495, 0, 0 },
421 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 1084, 593, 0, 0 },
422 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 211, 355, 0, 0 },
423 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 312, 442, 0, 0 },
424 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 436, 362, 0, 0 },
425 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 504, 517, 0, 0 },
426 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 195, 355, 0, 0 },
427 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 290, 442, 0, 0 },
428 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 431, 551, 0, 0 },
429 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 544, 418, 0, 0 },
430 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 668, 475, 0, 0 },
431 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 747, 327, 0, 0 },
432 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 125, 305, 0, 0 },
433 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 128, 296, 0, 0 },
434 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 245, 93, 0, 0 },
435 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 252, 98, 0, 0 },
436 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 262, 91, 0, 0 },
437 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 299, 379, 0, 0 },
438 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 366, 425, 0, 0 },
439 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 392, 366, 0, 0 },
440 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 416, 486, 0, 0 },
441 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 507, 441, 0, 0 },
442 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 521, 46, 0, 0 },
443 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 526, 292, 0, 0 },
444 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 532, 49, 0, 0 },
445 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 562, 496, 0, 0 },
446 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 584, 131, 0, 0 },
447 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 599, 479, 0, 0 },
448 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 633, 525, 0, 0 },
449 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 642, 298, 0, 0 },
450 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 643, 366, 0, 0 },
451 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 650, 514, 0, 0 },
452 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 651, 522, 0, 0 },
453 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 672, 157, 0, 0 },
454 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 718, 410, 0, 0 },
455 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 758, 167, 0, 0 },
456 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 812, 274, 0, 0 },
457 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 820, 409, 0, 0 },
458 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 821, 417, 0, 0 },
459 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 835, 409, 0, 0 },
460 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 908, 370, 0, 0 },
461 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 971, 337, 0, 0 },
462 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 1080, 569, 0, 0 },
463 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 1268, 556, 0, 0 },
464 { 1, 0, 0x40, 6, 0x15, 0, 0, 0, 0, 0, 185, 274, 0, 0 },
465 { 1, 0, 0x40, 6, 0x16, 0, 0, 0, 0, 0, 233, 298, 0, 0 },
466 { 1, 0, 0x40, 6, 0x17, 0, 0, 0, 0, 0, 281, 322, 0, 0 },
467 { 1, 0, 0x40, 0xA, 0x47, 1, 0x47, 0x4A, 0xA, 0, 164, 311, 0, 0 },
468 { 1, 0, 0x40, 0xA, 0x47, 1, 0x47, 0x4A, 0xA, 0, 192, 229, 0, 0 },
469 { 1, 0, 0x40, 0xA, 0x47, 1, 0x47, 0x4A, 0xA, 0, 393, 331, 0, 0 },
470 { 1, 0, 0x40, 0xA, 0x47, 1, 0x47, 0x4A, 0xA, 0, 511, 381, 0, 0 },
471 { 1, 0, 0x40, 0xA, 0x47, 1, 0x47, 0x4A, 0xA, 0, 514, 482, 0, 0 },
472 { 1, 0, 0x40, 0xA, 0x47, 1, 0x47, 0x4A, 0xA, 0, 541, 92, 0, 0 },
473 { 1, 0, 0x40, 0xA, 0x47, 1, 0x47, 0x4A, 0xA, 0, 639, 447, 0, 0 },
474 { 1, 0, 0x40, 0xA, 0x47, 1, 0x47, 0x4A, 0xA, 0, 660, 178, 0, 0 },
475 { 1, 0, 0x40, 0xA, 0x47, 1, 0x47, 0x4A, 0xA, 0, 731, 383, 0, 0 },
476 { 1, 0, 0x40, 0xA, 0x47, 1, 0x47, 0x4A, 0xA, 0, 767, 326, 0, 0 },
477 { 1, 0, 0x40, 0xA, 0x47, 1, 0x47, 0x4A, 0xA, 0, 791, 457, 0, 0 },
478 { 1, 0, 0x40, 0xA, 0x47, 1, 0x47, 0x4A, 0xA, 0, 843, 243, 0, 0 },
479 { 1, 0, 0x40, 0xA, 0x47, 1, 0x47, 0x4A, 0xA, 0, 861, 362, 0, 0 },
480 { 1, 0, 0x40, 0xA, 0x47, 1, 0x47, 0x4A, 0xA, 0, 1153, 592, 0, 0 },
481 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 139, 211, 0, 0 },
482 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 349, 379, 0, 0 },
483 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 467, 497, 0, 0 },
484 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 504, 336, 0, 0 },
485 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 567, 337, 0, 0 },
486 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 569, 438, 0, 0 },
487 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 577, 275, 0, 0 },
488 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 613, 264, 0, 0 },
489 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 650, 386, 0, 0 },
490 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 730, 179, 0, 0 },
491 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 735, 458, 0, 0 },
492 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 762, 229, 0, 0 },
493 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 776, 165, 0, 0 },
494 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 912, 408, 0, 0 },
495 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 919, 329, 0, 0 },
496 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 1140, 529, 0, 0 },
497 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 1234, 356, 0, 0 },
498 { 1, 0, 0x40, 0xA, 0x4B, 1, 0x4B, 0x4E, 0xA, 0, 1336, 600, 0, 0 },
499 { 1, 0, 0x40, 4, 0xA, 0, 0, 0, 0, 0, 1072, 384, 422, 0 },
500 { 1, 0, 0x40, 4, 0xB, 0, 0, 0, 0, 0, 1104, 368, 412, 0 },
501 { 1, 0, 0x40, 4, 0xC, 0, 0, 0, 0, 0, 1120, 368, 404, 0 },
502 { 1, 0, 0x40, 4, 0xD, 0, 0, 0, 0, 0, 1136, 368, 396, 0 },
503 { 1, 0, 0x40, 4, 0xE, 0, 0, 0, 0, 0, 1152, 352, 389, 0 },
504 { 1, 0, 0x40, 4, 0xF, 0, 0, 0, 0, 0, 1168, 352, 381, 0 },
505 { 1, 0, 0x40, 4, 0x10, 0, 0, 0, 0, 0, 400, 144, 191, 0 },
506 { 1, 0, 0x40, 4, 0x11, 0, 0, 0, 0, 0, 384, 160, 197, 0 },
507 { 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 446, 290, 318, 0 },
508 { 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 766, 258, 287, 0 },
509 { 1, 0, 0x40, 4, 2, 0, 0, 0, 0, 0, 486, 160, 189, 0 },
510 { 1, 0, 0x40, 4, 9, 0, 0, 0, 0, 0, 1099, 491, 511, 0 },
511 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 207, 286, 286, 0 },
512 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 255, 310, 310, 0 },
513 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 303, 334, 334, 0 },
514 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 735, 581, 581, 0 },
515 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 799, 581, 581, 0 },
516 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 864, 470, 470, 0 },
517 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 912, 446, 446, 0 },
518 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 960, 422, 422, 0 },
519 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
520};
522 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x234, 0x340, 0x90, 7, 0, 0, 0 },
523 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x239, 0xA8, 0x132, 5, 0, 0, 0 },
524 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x238, 0x1F2, 0x164, 3, 0, 0, 0 },
525 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0xFFD0, 0x38, 0, 0, 0, 0, 0 },
526 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0, 0x48, 0, 0, 0, 0, 0 },
527 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0x30, 0x38, 0, 0, 0, 0, 0 },
528 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0xFFC0, 0xFFF0, 0, 0, 0, 0, 0 },
529 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0x38, 0xFFF8, 0, 0, 0, 0, 0 },
530 { { { CODES_END, 0 }, { CODES_END, 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
531};
532void (*stageFuncs[])(void) = {
534};
#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.
#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_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
FieldMap FIELDSTG_map
Definition fieldstg.c:3660
FieldState FIELDSTG_state
Definition fieldstg.c:2641
#define EVENT_BATTLE(id)
action: FIELDSTG_battleFuncs.startEventBattle
Definition game_state.h:72
#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 PROGRESS(n)
GAME.progress is n.
Definition game_state.h:69
#define CARD(id)
a card: the player has one, or gets or loses one
Definition game_state.h:82
#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 PARTY_STAT(id)
checkPartyStat
Definition game_state.h:71
#define CARD_BATTLE(opponent, kind)
action: startCardBattle
Definition game_state.h:73
#define MUSIC_SWAMP
ENV_0012: the South Sector's swamps and Bulk Bridge.
Definition sound.h:128
#define MUSIC_BATTLE
BATL0000: the maps' random battles (AreaBattle, nearly all of them)
Definition sound.h:76
#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_BATTLE_1
BATL1000: the Digimon Arena's battles and some event battles (AreaBattle)
Definition sound.h:77
#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,...
@ STORY_PRESIDENT_ARRESTED
WSTAG226 (Login Room, Amaterasu City), event 935, after the President of MAGAMI gives himself up (WST...
Definition story.h:136
@ STORY_BULBMON_FOUND
WSTAG520 (Suzaku Hall), event 695: another earthquake; Bulbmon digs the holes.
Definition story.h:103
@ STORY_AGUMON_SUITS
WSTAG380 (Divermon's Lake), event 205: the Mischievous Mat, caught in his Etemon Suit,...
Definition story.h:52
@ STORY_SEPIKMON_MASK_LOST
WSTAG480 (Jungle Grave), event 171: Sepikmon will say how to beat Zanbamon once the player finds his ...
Definition story.h:49
@ STORY_ZANBAMON_DRIVEN_OFF
WSTAG475 (Shaman House), event 230: the Smelly Herb drives Zanbamon off the way.
Definition story.h:55
@ STORY_KNIGHTMON_REPROGRAMMED
WSTAG210 (Main Lobby, Asuka City), event 685: the A.o.A have reprogrammed Knightmon,...
Definition story.h:97
@ STORY_TEDDY_FOUND
WSTAG212, event 352: Teddy is found; MAGAMI is part of the A.o.A, and the player sets off to beat the...
Definition story.h:67
@ STORY_LOOKING_FOR_TEDDY
WSTAG212, event 273: Kail and the player will put on the Agumon Suits to look for Teddy.
Definition story.h:61
@ STORY_JUNGLE_SOUND
WSTAG545 (Bug Maze Pit), event 711: Patamon heard a weird sound from the jungle, where its leader wen...
Definition story.h:106
@ STORY_SOUTH_STATION_GHOST
WSTAG440 (South Station), event 152: a ghost's voice in the empty station.
Definition story.h:45
@ STORY_MOVIE_BATTLES
WSTAG820, event 1080, with Snatchmon: each encounter plays MODE_BATTLE_MOVIE first.
Definition story.h:146
@ STORY_CODE_PASSES_NEEDED
WSTAG685, event 690: Leader Chuck says stopping Knightmon takes the four City Leaders' Code Passes.
Definition story.h:100
#define SPECIAL_STORY_ASUKA_HEADQUARTERS_TO_OPERATION_SIGMA
GAME.progress is from STORY_ASUKA_HEADQUARTERS to STORY_OPERATION_SIGMA (PROGRESS_RANGES[0x13])
Definition story.h:1920
#define SPECIAL_STORY_GENJI_BEATEN_TO_PRESIDENT_ARRESTED
GAME.progress is from STORY_GENJI_BEATEN to STORY_PRESIDENT_ARRESTED (PROGRESS_RANGES[0x1A])
Definition story.h:1941
#define SPECIAL_STORY_KNIGHTMON_REPROGRAMMED_TO_AMATERASU_BRIDGE
GAME.progress is from STORY_KNIGHTMON_REPROGRAMMED to STORY_AMATERASU_BRIDGE (PROGRESS_RANGES[4])
Definition story.h:1875
#define SPECIAL_STORY_DE_SINCERITY_TO_LISA_SAVED
GAME.progress is from STORY_DE_SINCERITY to STORY_LISA_SAVED (PROGRESS_RANGES[0xF])
Definition story.h:1908
#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 SPECIAL_STORY_GENJI_BEATEN_TO_GAME_MASTER_CAUGHT
GAME.progress is from STORY_GENJI_BEATEN to STORY_GAME_MASTER_CAUGHT (PROGRESS_RANGES[1])
Definition story.h:1866
#define FLAG_JESSICA_FOUGHT
wstag465 (Tranquil Swamp): Tamer Jessica says "Well, shall we start this battle?" and starts a Digimo...
Definition story.h:856
#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
#define SPECIAL_STORY_GENJI_BEATEN_TO_MOVIE_BATTLES
GAME.progress is from STORY_GENJI_BEATEN to 0x2C (PROGRESS_RANGES[2]); nothing sets 0x2C,...
Definition story.h:1869
#define SPECIAL_STORY_BYAKKO_LEADER_FOUGHT_TO_CONTROL_ROOM
GAME.progress is from STORY_BYAKKO_LEADER_FOUGHT to STORY_CONTROL_ROOM (PROGRESS_RANGES[0x10])
Definition story.h:1911
#define SPECIAL_STORY_SINCE_GENJI_BEATEN
GAME.progress is STORY_GENJI_BEATEN or later (PROGRESS_RANGES[6], to 0x63)
Definition story.h:1881
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
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
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 wstag465.c:283
AreaBattle area2Battle7
Definition wstag465.c:76
FieldActorEntry actor0
Definition wstag465.c:346
u16 actor19Talk3Actions[]
Definition wstag465.c:169
void(* stageFuncs[])(void)
The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a t...
Definition wstag465.c:532
FieldActorEntry actor6
Definition wstag465.c:352
u16 actor11Conditions[]
Definition wstag465.c:293
FieldTalk actor2Talks[]
Definition wstag465.c:182
AreaBattle area2Battle6
Definition wstag465.c:75
u16 actor19Talk1Actions[]
Definition wstag465.c:149
u16 actor17Talk3Actions[]
Definition wstag465.c:141
u16 actor10Conditions[]
Definition wstag465.c:292
u16 actor18Conditions[]
Definition wstag465.c:324
FieldActorEntry actor17
Definition wstag465.c:363
u16 actor21Talk0Conditions[]
Definition wstag465.c:170
u16 actor19Talk2Actions[]
Definition wstag465.c:156
u16 actor18Talk2Actions[]
Definition wstag465.c:146
FieldTalk actor14Talks[]
Definition wstag465.c:230
FieldActorEntry actor18
Definition wstag465.c:364
FieldTalk actor5Talks[]
Definition wstag465.c:194
AreaBattle area1Battle6
Definition wstag465.c:62
u16 actor16Talk2Conditions[]
Definition wstag465.c:123
FieldActorEntry actor5
Definition wstag465.c:351
u16 actor22Conditions[]
Definition wstag465.c:345
AreaBattle area0Battle7
Definition wstag465.c:50
FieldActorEntry actor2
Definition wstag465.c:348
const CVECTOR stageColor
the color the setup copies to FIELDSTG_state.spriteColor
Definition wstag465.c:11
u16 actor19Talk2Conditions[]
Definition wstag465.c:150
u16 actor18Talk1Actions[]
Definition wstag465.c:144
AreaBattle area3Battle4
Definition wstag465.c:86
AreaBattle area3Battle3
Definition wstag465.c:85
AreaBattle area0Battle1
Definition wstag465.c:44
u16 actor15Talk2Conditions[]
Definition wstag465.c:118
FieldActorEntry actor19
Definition wstag465.c:365
AreaBattle area2Battle0
Definition wstag465.c:69
u16 actor9Conditions[]
Definition wstag465.c:291
FieldActorEntry * stageActors[]
Definition wstag465.c:369
u16 actor19Talk0Conditions[]
Definition wstag465.c:147
AreaBattle area1Battle2
Definition wstag465.c:58
u16 actor17Talk2Conditions[]
Definition wstag465.c:129
AreaBattle area3Battle0
Definition wstag465.c:82
u16 actor17Talk1Conditions[]
Definition wstag465.c:127
u16 actor21Talk2Conditions[]
Definition wstag465.c:172
FieldActorEntry actor22
Definition wstag465.c:368
AreaBattle area0Battle6
Definition wstag465.c:49
u16 actor18Talk1Conditions[]
Definition wstag465.c:143
u16 actor16Talk0Actions[]
Definition wstag465.c:121
FieldTalk actor1Talks[]
Definition wstag465.c:178
u16 actor13Conditions[]
Definition wstag465.c:295
AreaBattle area3Battle2
Definition wstag465.c:84
u16 actor19Talk3Conditions[]
Definition wstag465.c:163
u16 actor17Talk0Conditions[]
Definition wstag465.c:125
FieldTalk actor0Talks[]
Definition wstag465.c:174
AreaBattle area3Battle1
Definition wstag465.c:83
#define STAGE_ARCHIVE
Definition wstag465.c:19
FieldTalk actor21Talks[]
Definition wstag465.c:272
AreaBattle area0Battle3
Definition wstag465.c:46
FieldTalk actor20Talks[]
Definition wstag465.c:268
FieldActorEntry actor10
Definition wstag465.c:356
u16 actor19Conditions[]
Definition wstag465.c:331
FieldTalk actor4Talks[]
Definition wstag465.c:190
u16 actor4Conditions[]
Definition wstag465.c:286
FieldActorEntry actor4
Definition wstag465.c:350
u16 actor3Conditions[]
Definition wstag465.c:285
AreaBattle area3Battle6
Definition wstag465.c:88
FieldTalk actor17Talks[]
Definition wstag465.c:248
FieldTalk actor11Talks[]
Definition wstag465.c:218
FieldActorEntry actor8
Definition wstag465.c:354
u16 actor21Talk1Conditions[]
Definition wstag465.c:171
u16 actor15Talk1Conditions[]
Definition wstag465.c:117
ActorImage stageImages[]
Definition wstag465.c:98
u16 actor14Talk1Conditions[]
Definition wstag465.c:112
FieldTalk actor6Talks[]
Definition wstag465.c:198
void setupStage(void)
Sets the stage up: its map, actors and battles, playing the ambience ENV_0012.
Definition wstag465.c:22
FieldTalk actor19Talks[]
Definition wstag465.c:261
AreaBattle area2Battle4
Definition wstag465.c:73
u16 actor17Talk3Conditions[]
Definition wstag465.c:135
u16 actor16Conditions[]
Definition wstag465.c:310
StageTile stageObjects[]
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition wstag465.c:395
u16 actor16Talk1Conditions[]
Definition wstag465.c:122
FieldActorEntry actor9
Definition wstag465.c:355
u16 actor8Conditions[]
Definition wstag465.c:290
FieldActorEntry actor20
Definition wstag465.c:366
u16 actor5Conditions[]
Definition wstag465.c:287
FieldTalk actor10Talks[]
Definition wstag465.c:214
FieldTalk actor3Talks[]
Definition wstag465.c:186
FieldTalk actor9Talks[]
Definition wstag465.c:210
u16 actor15Talk2Actions[]
Definition wstag465.c:119
BattleList area3Battles
Definition wstag465.c:90
AreaBattle area3Battle5
Definition wstag465.c:87
AreaBattle area0Battle5
Definition wstag465.c:48
BattleList area1Battles
Definition wstag465.c:64
FieldTalk actor15Talks[]
Definition wstag465.c:236
BattleList area2Battles
Definition wstag465.c:77
FieldActorEntry actor15
Definition wstag465.c:361
FieldActorEntry actor12
Definition wstag465.c:358
FieldActorEntry actor16
Definition wstag465.c:362
u16 actor15Conditions[]
Definition wstag465.c:303
AreaBattle area1Battle4
Definition wstag465.c:60
u16 actor6Conditions[]
Definition wstag465.c:288
AreaBattle area2Battle2
Definition wstag465.c:71
u16 actor14Talk0Actions[]
Definition wstag465.c:111
AreaBattle area1Battle5
Definition wstag465.c:61
u16 actor14Conditions[]
Definition wstag465.c:296
FieldActorEntry actor7
Definition wstag465.c:353
u16 actor17Talk1Actions[]
Definition wstag465.c:128
StageSlot stageSlots[]
Definition wstag465.c:521
AreaBattle area2Battle1
Definition wstag465.c:70
FieldActorEntry actor13
Definition wstag465.c:359
AreaBattle area1Battle3
Definition wstag465.c:59
u16 actor16Talk2Actions[]
Definition wstag465.c:124
AreaBattle area1Battle0
Definition wstag465.c:56
u16 actor14Talk2Actions[]
Definition wstag465.c:114
FieldActorEntry actor11
Definition wstag465.c:357
u16 actor16Talk0Conditions[]
Definition wstag465.c:120
FieldActorEntry actor1
Definition wstag465.c:347
FieldActorEntry actor21
Definition wstag465.c:367
u16 actor17Talk0Actions[]
Definition wstag465.c:126
AreaBattle area0Battle0
Definition wstag465.c:43
AreaBattle area0Battle2
Definition wstag465.c:45
FieldTalk actor13Talks[]
Definition wstag465.c:226
#define STAGE_FILE
Definition wstag465.c:18
AreaBattle area2Battle5
Definition wstag465.c:74
u16 actor19Talk1Conditions[]
Definition wstag465.c:148
u16 actor18Talk2Conditions[]
Definition wstag465.c:145
AreaBattle area1Battle1
Definition wstag465.c:57
u16 actor7Conditions[]
Definition wstag465.c:289
AreaBattle area2Battle3
Definition wstag465.c:72
u16 actor2Conditions[]
Definition wstag465.c:284
FieldTalk actor18Talks[]
Definition wstag465.c:255
u16 actor21Talk2Actions[]
Definition wstag465.c:173
FieldTalk actor7Talks[]
Definition wstag465.c:202
u16 actor20Conditions[]
Definition wstag465.c:338
u16 actor14Talk2Conditions[]
Definition wstag465.c:113
AreaBattle area0Battle4
Definition wstag465.c:47
u16 actor15Talk0Conditions[]
Definition wstag465.c:115
#define STAGE_TEXT
Definition wstag465.c:17
FieldTalk actor8Talks[]
Definition wstag465.c:206
u16 actor15Talk0Actions[]
Definition wstag465.c:116
u16 actor18Talk0Conditions[]
Definition wstag465.c:142
FieldTalk actor12Talks[]
Definition wstag465.c:222
AreaBattle area3Battle7
Definition wstag465.c:89
u16 actor21Conditions[]
Definition wstag465.c:344
BattleList area0Battles
Definition wstag465.c:51
AreaBattle area1Battle7
Definition wstag465.c:63
FieldTalk actor16Talks[]
Definition wstag465.c:242
u16 actor17Conditions[]
Definition wstag465.c:317
FieldActorEntry actor3
Definition wstag465.c:349
FieldBattles stageBattles[]
Definition wstag465.c:95
FieldActorEntry actor14
Definition wstag465.c:360
u16 actor12Conditions[]
Definition wstag465.c:294
FieldTalk actor22Talks[]
Definition wstag465.c:278
u16 actor14Talk0Conditions[]
Definition wstag465.c:110
u16 actor0Conditions[]
Definition wstag465.c:282