Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
wstag480.c
Go to the documentation of this file.
1/*
2 * WSTAG480: Jungle Grave, South Sector.
3 */
4
5#include "common.h"
6#include "field/stage.h"
7/* Defined below, after the code that uses them */
9
11
13
15
16/* Creates the stage's second object, and the event object of story progress 7 */
17void updateStage(StageTask *task, void **children) {
18 switch (task->state) {
19 case TASK_INIT:
20 default:
21 children[1] = createTileCursors();
23 children[0] = FIELDSTG_startEvent(0xAB);
24 }
25 task->nextState(task);
26 break;
27 case TASK_RUN:
28 case TASK_DONE:
29 case TASK_KILL:
30 break;
31 }
32}
33
34#define STAGE_CHILDREN_SIZE 0x8
36
37/* After event 170, with Zanbamon: lets event 171 start and starts the stage's event battle 0 */
38void endEvent170(void) {
39 FLAGS_00.applyAction(FLAG(0x40, 0), 1);
41}
42
43/* After event 171, with Zanbamon: moves the story on to STORY_SEPIKMON_MASK_LOST */
47
48/* the color the setup copies to FIELDSTG_state.spriteColor */
49const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0 };
50
51#if VERSION_US || VERSION_JP
52#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_06)
53#define EVENT_TEXT_FILE (TEXT_EVENTS_400 - 1)
54#define STAGE_FILE 0x357
55#define STAGE_ARCHIVE 0x628
56#elif VERSION_EU
57#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_06)
58#define EVENT_TEXT_FILE (TEXT_EVENTS_400 - 1)
59#define STAGE_FILE 0x366
60#define STAGE_ARCHIVE 0x638
61#endif
62/*
63 * Sets the stage up: its map, actors, battles and events, playing BGM_0015;
64 * battle list 0 before STORY_ZANBAMON_DRIVEN_OFF, 1 before STORY_KNIGHTMON_REPROGRAMMED, 2 from then
65 * on
66 */
96
98 SCRIPT_WALK(2, 0x138, 0x335, 3),
99 SCRIPT_PLACE(0x85, 0x118, 0x325),
100 SCRIPT_POSE(0x85, 1, 7),
103 SCRIPT_POSE(2, 1, 3),
104 SCRIPT_WAIT(6),
105 SCRIPT_WAIT(0x1E),
106 SCRIPT_COMMAND(0x323, 0x325, 0x85),
107 SCRIPT_WAIT(0x3C),
108 SCRIPT_COMMAND(0x323, 0x326, 0x85),
109 SCRIPT_WAIT(0x1E),
110 SCRIPT_TALK(0, 1, 0x85, 2),
112 SCRIPT_WAIT(0x1E),
113 SCRIPT_TALK(0, 2, 2, 1),
114 SCRIPT_POSE(2, 7, 3),
116 SCRIPT_POSE(2, 1, 3),
117 SCRIPT_WAIT(0x1E),
118 SCRIPT_TALK(0, 3, 0x85, 2),
120 SCRIPT_WAIT(0x1E),
121 SCRIPT_TALK(0, 4, 2, 1),
122 SCRIPT_POSE(2, 7, 3),
124 SCRIPT_POSE(2, 1, 3),
125 SCRIPT_WAIT(0x1E),
127};
129 SCRIPT_PLACE(2, 0x138, 0x335),
130 SCRIPT_POSE(2, 1, 3),
131 SCRIPT_PLACE(0x85, 0x118, 0x325),
132 SCRIPT_POSE(0x85, 1, 7),
133 SCRIPT_WAIT(0x78),
134 SCRIPT_TALK(0, 1, 0x85, 2),
136 SCRIPT_WAIT(0x1E),
137 SCRIPT_TALK(0, 2, 2, 1),
139 SCRIPT_WAIT(0x1E),
140 SCRIPT_TALK(0, 3, 0x85, 2),
142 SCRIPT_WAIT(0x1E),
143 SCRIPT_WALK(2, 0x138, 0x354, 0),
145 SCRIPT_WALK(2, 0x158, 0x364, 7),
146 SCRIPT_WAIT(6),
147 SCRIPT_LEAVE(0x234, 0x130, 0x360, 5),
149};
151 SCRIPT_FOLLOW(0, 2),
152 SCRIPT_WALK(2, 0x138, 0x335, 3),
153 SCRIPT_PLACE(0x85, 0x118, 0x325),
154 SCRIPT_POSE(0x85, 1, 7),
157 SCRIPT_POSE(2, 1, 3),
158 SCRIPT_WAIT(0x1E),
159 SCRIPT_TALK(0, 1, 2, 3),
161 SCRIPT_WAIT(0x1E),
162 SCRIPT_TALK(0, 2, 0x85, 0),
164 SCRIPT_WAIT(0x1E),
165 SCRIPT_TALK(0, 3, 2, 3),
167 SCRIPT_WAIT(0x1E),
168 SCRIPT_COMMAND(0x323, 0x325, 0x85),
169 SCRIPT_WAIT(0x3C),
170 SCRIPT_COMMAND(0x323, 0x326, 0x85),
171 SCRIPT_WAIT(0x1E),
172 SCRIPT_TALK(0, 4, 0x85, 0),
174 SCRIPT_WAIT(0x3C),
175 SCRIPT_TALK(0, 6, 0x85, 0),
177 SCRIPT_POSE(0x85, 1, 3),
178 SCRIPT_WAIT(0x1E),
179 SCRIPT_WALK(0x85, 0x80, 0x2D9, 3),
180 SCRIPT_WAIT_WALK(0x85),
181 SCRIPT_TALK(0, 5, 2, 3),
182 SCRIPT_PLACE(0x85, 0, 0),
183 SCRIPT_POSE(0x85, 1, 0),
185 SCRIPT_WAIT(0x1E),
187};
189 { 64, 10, 0, 0 }, { 64, 10, 1, 0 }, { 64, 10, 2, 0 }, { 64, 10, 1, 1 },
190};
192 { 65, 4, 2, 0 }, { 65, 4, 4, 0 }, { 65, 4, 6, 0 }, { 65, 4, 4, 0 },
193 { 65, 4, 2, 0 }, { 65, 4, 0, 1 },
194};
196 { 66, 10, 0, 0 }, { 66, 10, 1, 0 }, { 66, 10, 2, 0 }, { 66, 10, 1, 1 },
197};
199 { 67, 4, 2, 0 }, { 67, 4, 4, 0 }, { 67, 4, 6, 0 }, { 67, 4, 4, 0 },
200 { 67, 4, 2, 0 }, { 67, 4, 0, 1 },
201};
203 { 68, 10, 0, 0 }, { 68, 10, 1, 0 }, { 68, 10, 2, 0 }, { 68, 10, 1, 1 },
204};
206 { 69, 4, 2, 0 }, { 69, 4, 4, 0 }, { 69, 4, 6, 0 }, { 69, 4, 4, 0 },
207 { 69, 4, 2, 0 }, { 69, 4, 0, 1 },
208};
210 { 70, 10, 0, 0 }, { 70, 10, 1, 0 }, { 70, 10, 2, 0 }, { 70, 10, 1, 1 },
211};
213 { 71, 4, 2, 0 }, { 71, 4, 4, 0 }, { 71, 4, 6, 0 }, { 71, 4, 4, 0 },
214 { 71, 4, 2, 0 }, { 71, 4, 0, 1 },
215};
217 { 72, 10, 0, 0 }, { 72, 10, 1, 0 }, { 72, 10, 2, 0 }, { 72, 10, 1, 1 },
218};
220 { 73, 4, 2, 0 }, { 73, 4, 4, 0 }, { 73, 4, 6, 0 }, { 73, 4, 4, 0 },
221 { 73, 4, 2, 0 }, { 73, 4, 0, 1 },
222};
419 { 0x200, 0x100, 0x21C, 0x1A6, 0x70, 0xA6, 0x230, 0x1FE },
420 { 0x200, 0x100, 0x200, 0x100, 0, 0, 0x220, 0x1FE },
421 { 0x200, 0x100, 0x216, 0x138, 0x58, 0x38, 0x200, 0x1FD },
422 { 0x200, 0x100, 0x208, 0x1BC, 0x20, 0xBC, 0x210, 0x1FD },
423 { 0x200, 0x100, 0x210, 0x1BC, 0x40, 0xBC, 0x220, 0x1FD },
424 { 0x200, 0x100, 0x200, 0x1BC, 0, 0xBC, 0x230, 0x1FD },
425 { 0x140, 0x100, 0x170, 0x100, 0xC0, 0, 0x160, 0x1FA },
426};
431u16 actor0Talk3Actions[] = { FLAG(0x1C, 9), 1, START_EVENT(0x1F), 1, CODES_END };
433 { actor0Talk0Conditions, NULL, 0x245 },
434 { actor0Talk1Conditions, NULL, 0x245 },
435 { actor0Talk2Conditions, NULL, 0x246 },
437 { NULL, NULL, 0 },
438};
439u16 actor0Conditions[] = { FLAG(0x1C, 9), 0, CODES_END };
442 &actor0,
443 NULL,
444};
446 { 1, 1, 0x40, 2, 0x40, 0, 0, 0, 0, 0, 310, 197, 0, 0 },
447 { 1, 2, 0x40, 2, 0x42, 0, 0, 0, 0, 0, 381, 208, 0, 0 },
448 { 1, 3, 0x40, 2, 0x44, 0, 0, 0, 0, 0, 416, 204, 0, 0 },
449 { 1, 5, 0x40, 2, 0x48, 0, 0, 0, 0, 0, 464, 258, 0, 0 },
450 { 1, 4, 0x40, 2, 0x46, 0, 0, 0, 0, 0, 468, 206, 0, 0 },
451 { 1, 0, 0x40, 2, 0x32, 1, 0x32, 0x37, 8, 0, 191, 408, 0, 0 },
452 { 1, 0, 0x40, 2, 0x32, 1, 0x32, 0x37, 8, 0, 564, 488, 0, 0 },
453 { 1, 0, 0x40, 2, 0x32, 1, 0x32, 0x37, 8, 0, 594, 498, 0, 0 },
454 { 1, 0, 0x40, 2, 0x32, 1, 0x32, 0x37, 8, 0, 724, 120, 0, 0 },
455 { 1, 0, 0x40, 2, 0x32, 1, 0x32, 0x37, 8, 0, 772, 419, 0, 0 },
456 { 1, 0, 0x40, 2, 0x32, 1, 0x32, 0x37, 8, 0, 804, 410, 0, 0 },
457 { 1, 0, 0x40, 2, 0x32, 1, 0x32, 0x37, 8, 0, 901, 541, 0, 0 },
458 { 1, 0, 0x40, 2, 0x38, 1, 0x38, 0x3D, 8, 0, 977, 774, 0, 0 },
459 { 1, 0, 0x40, 2, 0x38, 1, 0x38, 0x3D, 8, 0, 986, 772, 0, 0 },
460 { 1, 0, 0x40, 2, 0x38, 1, 0x38, 0x3D, 8, 0, 995, 783, 0, 0 },
461 { 1, 0, 0x40, 2, 0x38, 1, 0x38, 0x3D, 8, 0, 1010, 771, 0, 0 },
462 { 1, 0, 0x40, 2, 0x38, 1, 0x38, 0x3D, 8, 0, 1017, 771, 0, 0 },
463 { 1, 0, 0x40, 2, 0x38, 1, 0x38, 0x3D, 8, 0, 1024, 784, 0, 0 },
464 { 1, 0, 0x40, 2, 0x38, 1, 0x38, 0x3D, 8, 0, 1047, 799, 0, 0 },
465 { 1, 0, 0x40, 2, 0x38, 1, 0x38, 0x3D, 8, 0, 1057, 791, 0, 0 },
466 { 1, 0, 0x40, 2, 0x38, 1, 0x38, 0x3D, 8, 0, 1066, 796, 0, 0 },
467 { 1, 0, 0x40, 2, 0x38, 1, 0x38, 0x3D, 8, 0, 1081, 795, 0, 0 },
468 { 1, 0, 0x40, 2, 0x38, 1, 0x38, 0x3D, 8, 0, 1088, 789, 0, 0 },
469 { 1, 0, 0x40, 2, 0x38, 1, 0x38, 0x3D, 8, 0, 1096, 796, 0, 0 },
470 { 1, 0, 0x40, 2, 0x3E, 2, 0, 0xF, 6, 0, 79, 617, 0, 0 },
471 { 1, 0, 0x40, 2, 0x3E, 2, 0, 0xF, 6, 0, 262, 882, 0, 0 },
472 { 1, 0, 0x40, 2, 0x3E, 2, 0, 0xF, 6, 0, 431, 638, 0, 0 },
473 { 1, 0, 0x40, 2, 0x3E, 2, 0, 0xF, 6, 0, 702, 664, 0, 0 },
474 { 1, 0, 0x40, 2, 0x3E, 2, 0, 0xF, 6, 0, 931, 679, 0, 0 },
475 { 1, 0, 0x40, 2, 0x3E, 2, 0, 0xF, 6, 0, 1151, 642, 0, 0 },
476 { 1, 0, 0x40, 2, 0x3E, 2, 0, 0xF, 6, 0, 1293, 701, 0, 0 },
477 { 1, 0, 0x40, 2, 0x3F, 2, 0, 0xF, 6, 0, 707, 1103, 0, 0 },
478 { 1, 0, 0x40, 2, 0x3F, 2, 0, 0xF, 6, 0, 732, 964, 0, 0 },
479 { 1, 0, 0x40, 2, 0x3F, 2, 0, 0xF, 6, 0, 1051, 956, 0, 0 },
480 { 1, 0, 0x40, 2, 0x3F, 2, 0, 0xF, 6, 0, 1076, 1132, 0, 0 },
481 { 1, 0, 0x40, 2, 0x3F, 2, 0, 0xF, 6, 0, 1290, 929, 0, 0 },
482 { 1, 0, 0x40, 2, 0x4B, 1, 0x4B, 0x56, 0x10, 0, 871, 187, 0, 0 },
483 { 1, 0, 0x40, 2, 0x57, 1, 0x57, 0x62, 0x10, 0, 256, 462, 0, 0 },
484 { 1, 0, 0xFF, 2, 0x1A, 0, 0, 0, 0, 0, 1280, 250, 0, 0 },
485 { 1, 0, 0x80, 2, 0x2D, 0, 0, 0, 0, 0, 640, 640, 0, 0 },
486 { 1, 0, 0xFF, 2, 0x4A, 0, 0, 0, 0, 0, 1152, 640, 0, 0 },
487 { 1, 0, 0x40, 2, 0, 1, 0, 5, 8, 0, 1127, 1030, 0, 0 },
488 { 1, 0, 0x40, 6, 0x1B, 1, 0x1B, 0x1D, 0xA, 0, 548, 1332, 0, 0 },
489 { 1, 0, 0x40, 6, 0x1B, 1, 0x1B, 0x1D, 0xA, 0, 718, 1206, 0, 0 },
490 { 1, 0, 0x40, 6, 0x1B, 1, 0x1B, 0x1D, 0xA, 0, 1060, 992, 0, 0 },
491 { 1, 0, 0x40, 6, 0x1B, 1, 0x1B, 0x1D, 0xA, 0, 1185, 379, 0, 0 },
492 { 1, 0, 0x40, 6, 0x1B, 1, 0x1B, 0x1D, 0xA, 0, 1201, 1022, 0, 0 },
493 { 1, 0, 0x40, 6, 0x1E, 1, 0x1E, 0x20, 0xA, 0, 308, 945, 0, 0 },
494 { 1, 0, 0x40, 6, 0x1E, 1, 0x1E, 0x20, 0xA, 0, 399, 792, 0, 0 },
495 { 1, 0, 0x40, 6, 0x1E, 1, 0x1E, 0x20, 0xA, 0, 716, 561, 0, 0 },
496 { 1, 0, 0x40, 6, 0x1E, 1, 0x1E, 0x20, 0xA, 0, 733, 801, 0, 0 },
497 { 1, 0, 0x40, 6, 0x1E, 1, 0x1E, 0x20, 0xA, 0, 774, 561, 0, 0 },
498 { 1, 0, 0x40, 6, 0x1E, 1, 0x1E, 0x20, 0xA, 0, 778, 921, 0, 0 },
499 { 1, 0, 0x40, 6, 0x1E, 1, 0x1E, 0x20, 0xA, 0, 1397, 1163, 0, 0 },
500 { 1, 0, 0x40, 6, 0x21, 1, 0x21, 0x23, 0xA, 0, 807, 1209, 0, 0 },
501 { 1, 0, 0x40, 6, 0x21, 1, 0x21, 0x23, 0xA, 0, 849, 1138, 0, 0 },
502 { 1, 0, 0x40, 6, 0x21, 1, 0x21, 0x23, 0xA, 0, 1038, 926, 0, 0 },
503 { 1, 0, 0x40, 6, 0x21, 1, 0x21, 0x23, 0xA, 0, 1111, 887, 0, 0 },
504 { 1, 0, 0x40, 6, 0x21, 1, 0x21, 0x23, 0xA, 0, 1208, 1014, 0, 0 },
505 { 1, 0, 0x40, 6, 0x21, 1, 0x21, 0x23, 0xA, 0, 1294, 541, 0, 0 },
506 { 1, 0, 0x40, 6, 0x21, 1, 0x21, 0x23, 0xA, 0, 1343, 315, 0, 0 },
507 { 1, 0, 0x40, 6, 0x21, 1, 0x21, 0x23, 0xA, 0, 1377, 734, 0, 0 },
508 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 190, 620, 0, 0 },
509 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 256, 1260, 0, 0 },
510 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 271, 861, 0, 0 },
511 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 354, 1089, 0, 0 },
512 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 467, 1200, 0, 0 },
513 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 544, 925, 0, 0 },
514 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 550, 1203, 0, 0 },
515 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 582, 1143, 0, 0 },
516 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 884, 148, 0, 0 },
517 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 923, 1263, 0, 0 },
518 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 1068, 1156, 0, 0 },
519 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 1221, 1220, 0, 0 },
520 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 189, 608, 0, 0 },
521 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 272, 404, 0, 0 },
522 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 383, 545, 0, 0 },
523 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 507, 1100, 0, 0 },
524 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 647, 505, 0, 0 },
525 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 743, 998, 0, 0 },
526 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 806, 518, 0, 0 },
527 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 858, 817, 0, 0 },
528 { 1, 0, 0x40, 6, 0x24, 1, 0x24, 0x26, 0xA, 0, 961, 743, 0, 0 },
529 { 1, 0, 0x40, 6, 0x27, 1, 0x27, 0x29, 0xA, 0, 265, 1270, 0, 0 },
530 { 1, 0, 0x40, 6, 0x27, 1, 0x27, 0x29, 0xA, 0, 337, 461, 0, 0 },
531 { 1, 0, 0x40, 6, 0x27, 1, 0x27, 0x29, 0xA, 0, 388, 555, 0, 0 },
532 { 1, 0, 0x40, 6, 0x27, 1, 0x27, 0x29, 0xA, 0, 599, 726, 0, 0 },
533 { 1, 0, 0x40, 6, 0x27, 1, 0x27, 0x29, 0xA, 0, 658, 358, 0, 0 },
534 { 1, 0, 0x40, 6, 0x27, 1, 0x27, 0x29, 0xA, 0, 660, 285, 0, 0 },
535 { 1, 0, 0x40, 6, 0x27, 1, 0x27, 0x29, 0xA, 0, 714, 1139, 0, 0 },
536 { 1, 0, 0x40, 6, 0x27, 1, 0x27, 0x29, 0xA, 0, 765, 97, 0, 0 },
537 { 1, 0, 0x40, 6, 0x27, 1, 0x27, 0x29, 0xA, 0, 809, 222, 0, 0 },
538 { 1, 0, 0x40, 6, 0x27, 1, 0x27, 0x29, 0xA, 0, 874, 1029, 0, 0 },
539 { 1, 0, 0x40, 6, 0x27, 1, 0x27, 0x29, 0xA, 0, 893, 157, 0, 0 },
540 { 1, 0, 0x40, 6, 0x27, 1, 0x27, 0x29, 0xA, 0, 928, 871, 0, 0 },
541 { 1, 0, 0x40, 6, 0x27, 1, 0x27, 0x29, 0xA, 0, 1225, 216, 0, 0 },
542 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 429, 1292, 0, 0 },
543 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 508, 1256, 0, 0 },
544 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 601, 1307, 0, 0 },
545 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 609, 1298, 0, 0 },
546 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 740, 1203, 0, 0 },
547 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 827, 1044, 0, 0 },
548 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 839, 1046, 0, 0 },
549 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 904, 1256, 0, 0 },
550 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 957, 1156, 0, 0 },
551 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 959, 1149, 0, 0 },
552 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1020, 810, 0, 0 },
553 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1028, 1041, 0, 0 },
554 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1044, 1105, 0, 0 },
555 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1064, 919, 0, 0 },
556 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1065, 831, 0, 0 },
557 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1110, 1001, 0, 0 },
558 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1155, 1152, 0, 0 },
559 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1168, 747, 0, 0 },
560 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1172, 739, 0, 0 },
561 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1183, 385, 0, 0 },
562 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1184, 749, 0, 0 },
563 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1224, 1022, 0, 0 },
564 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1273, 1198, 0, 0 },
565 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1357, 1139, 0, 0 },
566 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1378, 723, 0, 0 },
567 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1399, 723, 0, 0 },
568 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1428, 1151, 0, 0 },
569 { 1, 0, 0x40, 6, 0x2A, 1, 0x2A, 0x2C, 0xA, 0, 1508, 1083, 0, 0 },
570 { 1, 0, 0xFF, 6, 0x63, 0, 0, 0, 0, 0, 280, 280, 0, 0 },
571 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 31, 277, 0, 0 },
572 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 59, 658, 0, 0 },
573 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 215, 936, 0, 0 },
574 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 258, 235, 0, 0 },
575 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 277, 1117, 0, 0 },
576 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 293, 769, 0, 0 },
577 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 321, 1004, 0, 0 },
578 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 329, 1232, 0, 0 },
579 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 336, 615, 0, 0 },
580 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 349, 501, 0, 0 },
581 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 426, 720, 0, 0 },
582 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 444, 1104, 0, 0 },
583 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 478, 1313, 0, 0 },
584 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 500, 1150, 0, 0 },
585 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 516, 860, 0, 0 },
586 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 522, 188, 0, 0 },
587 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 546, 1010, 0, 0 },
588 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 592, 274, 0, 0 },
589 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 627, 1062, 0, 0 },
590 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 628, 1190, 0, 0 },
591 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 647, 1284, 0, 0 },
592 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 658, 794, 0, 0 },
593 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 675, 223, 0, 0 },
594 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 675, 500, 0, 0 },
595 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 689, 925, 0, 0 },
596 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 695, 359, 0, 0 },
597 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 752, 518, 0, 0 },
598 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 765, 187, 0, 0 },
599 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 768, 1184, 0, 0 },
600 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 787, 97, 0, 0 },
601 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 819, 1001, 0, 0 },
602 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 831, 586, 0, 0 },
603 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 863, 772, 0, 0 },
604 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 909, 1064, 0, 0 },
605 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 928, 561, 0, 0 },
606 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 951, 1243, 0, 0 },
607 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 996, 869, 0, 0 },
608 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 996, 869, 0, 0 },
609 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 1010, 95, 0, 0 },
610 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 1012, 1165, 0, 0 },
611 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 1077, 1061, 0, 0 },
612 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 1121, 928, 0, 0 },
613 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 1126, 178, 0, 0 },
614 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 1136, 400, 0, 0 },
615 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 1155, 305, 0, 0 },
616 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 1210, 1101, 0, 0 },
617 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 1247, 712, 0, 0 },
618 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 1319, 451, 0, 0 },
619 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 1354, 1028, 0, 0 },
620 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 1362, 347, 0, 0 },
621 { 1, 0, 0x40, 0xA, 6, 1, 6, 9, 0xA, 0, 1396, 620, 0, 0 },
622 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 64, 753, 0, 0 },
623 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 144, 413, 0, 0 },
624 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 146, 568, 0, 0 },
625 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 193, 175, 0, 0 },
626 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 218, 836, 0, 0 },
627 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 257, 1190, 0, 0 },
628 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 261, 651, 0, 0 },
629 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 274, 1049, 0, 0 },
630 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 410, 1279, 0, 0 },
631 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 424, 842, 0, 0 },
632 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 425, 1235, 0, 0 },
633 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 449, 1160, 0, 0 },
634 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 460, 932, 0, 0 },
635 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 475, 1012, 0, 0 },
636 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 493, 701, 0, 0 },
637 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 660, 735, 0, 0 },
638 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 725, 327, 0, 0 },
639 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 728, 1128, 0, 0 },
640 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 732, 984, 0, 0 },
641 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 976, 249, 0, 0 },
642 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 1007, 556, 0, 0 },
643 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 1083, 1286, 0, 0 },
644 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 1087, 762, 0, 0 },
645 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 1190, 127, 0, 0 },
646 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 1232, 1060, 0, 0 },
647 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 1352, 221, 0, 0 },
648 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 1453, 531, 0, 0 },
649 { 1, 0, 0x40, 0xA, 0x2E, 1, 0x2E, 0x31, 0xA, 0, 1478, 397, 0, 0 },
650 { 1, 0, 0x40, 4, 0xA, 0, 0, 0, 0, 0, 1041, 566, 603, 0 },
651 { 1, 0, 0x40, 4, 0xB, 0, 0, 0, 0, 0, 1133, 585, 596, 0 },
652 { 1, 0, 0x40, 4, 0xC, 0, 0, 0, 0, 0, 862, 659, 666, 0 },
653 { 1, 0, 0x80, 4, 0xD, 0, 0, 0, 0, 0, 1022, 313, 367, 0 },
654 { 1, 0, 0x40, 4, 0xE, 0, 0, 0, 0, 0, 693, 475, 479, 0 },
655 { 1, 0, 0x40, 4, 0xF, 0, 0, 0, 0, 0, 661, 583, 589, 0 },
656 { 1, 0, 0x40, 4, 0x10, 0, 0, 0, 0, 0, 1029, 891, 899, 0 },
657 { 1, 0, 0x40, 4, 0x11, 0, 0, 0, 0, 0, 1011, 936, 945, 0 },
658 { 1, 0, 0x40, 4, 0x12, 0, 0, 0, 0, 0, 321, 1025, 1031, 0 },
659 { 1, 0, 0x40, 4, 0x13, 0, 0, 0, 0, 0, 821, 1047, 1057, 0 },
660 { 1, 0, 0x40, 4, 0x14, 0, 0, 0, 0, 0, 261, 1055, 1060, 0 },
661 { 1, 0, 0x40, 4, 0x15, 0, 0, 0, 0, 0, 612, 1088, 1097, 0 },
662 { 1, 0, 0x40, 4, 0x16, 0, 0, 0, 0, 0, 993, 1122, 1127, 0 },
663 { 1, 0, 0x40, 4, 0x17, 0, 0, 0, 0, 0, 804, 1152, 1160, 0 },
664 { 1, 0, 0x40, 4, 0x18, 0, 0, 0, 0, 0, 401, 1225, 1231, 0 },
665 { 1, 0, 0x40, 4, 0x19, 0, 0, 0, 0, 0, 608, 1249, 1255, 0 },
666 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 496, 807, 807, 0 },
667 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 528, 951, 951, 0 },
668 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 560, 743, 743, 0 },
669 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 577, 359, 359, 0 },
670 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 607, 768, 768, 0 },
671 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 704, 847, 847, 0 },
672 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 800, 847, 847, 0 },
673 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1072, 471, 471, 0 },
674 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1120, 447, 447, 0 },
675 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1136, 487, 487, 0 },
676 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1152, 527, 527, 0 },
677 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1175, 441, 441, 0 },
678 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1184, 559, 559, 0 },
679 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1200, 471, 471, 0 },
680 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1248, 495, 495, 0 },
681 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1303, 605, 605, 0 },
682 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1312, 431, 431, 0 },
683 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1344, 623, 623, 0 },
684 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
685};
687 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x23B, 0x6C8, 0x1D4, 3, 0, 0, 0 },
688 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x234, 0x140, 0x350, 5, 0, 0, 0 },
689 { { { SPECIAL_STORY_SINCE_DE_KNOWLEDGE, 1 }, { CODES_END, 0 } }, SLOT_WARP1, 0x2E9, 0xB0, 0xF8, 7, 0, 3, 2 },
690 { { { SPECIAL_STORY_SINCE_DE_KNOWLEDGE, 1 }, { CODES_END, 0 } }, SLOT_WARP1, 0x2E9, 0xB0, 0xF8, 7, 0, 0xE, 1 },
691 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0xFFD0, 0xFFE8, 0, 0, 0, 0, 0 },
692 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0x30, 0xFFE8, 0, 0, 0, 0, 0 },
693 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0, 0xFFD8, 0, 0, 0, 0, 0 },
694 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0xFFD0, 0x28, 0, 0, 0, 0, 0 },
695 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0x30, 0x28, 0, 0, 0, 0, 0 },
696 { { { PROGRESS(STORY_SOUTH_STATION_GHOST), 1 }, { CODES_END, 0 } }, SLOT_EVENT, 0xAA, 0, 0, 0, 0, 0, 0 },
697 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_MAP, 0, 0, 0, 0, 0, 0, 0 },
698 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_MAP, 1, 0, 0, 0, 0, 0, 0 },
699 { { { CODES_END, 0 }, { CODES_END, 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
700};
701void (*stageFuncs[])(void) = {
703};
705 { 170, script170, EVENT_TEXT(8), NULL, endEvent170 },
706 { 171, script171, EVENT_TEXT(9), NULL, endEvent171 },
707 { 240, script240, EVENT_TEXT(0xF), NULL, NULL },
708 { -1, NULL, 0, NULL, NULL },
709};
#define NULL
Definition common.h:17
signed short s16
Definition common.h:9
unsigned short u16
Definition common.h:10
void * createTileCursors(void)
Creates the updateTileCursors task.
GameFlags FLAGS_00
The flag bitset FLAGS_00 and the event functions.
Definition events.c:701
GameState GAME
The save data, the game mode and the methods.
Definition state.c:64
#define TASK_RUN
Definition task.h:35
#define TASK_KILL
Definition task.h:37
#define TASK_INIT
Tasks: every game object is a task, a heap block that starts with this header and is updated once per...
Definition task.h:34
#define TASK_DONE
Definition task.h:36
EventTask * FIELDSTG_startEvent(s32 id)
Starts the event id of FieldState.events: its script, start and end, and its text; the player stands ...
Definition event.c:250
The stage overlays (AAA/PRO/WSTAG###.PRO), loaded at 0x800A4CA4 on top of FIELDSTG.
#define EVENT_TEXT(n)
An entry of the stage's events' text file, for FieldEvent.text.
Definition stage.h:732
void updateStage()
The names every stage defines, each its own (config/<version>/stages/<stage>.txt).
#define SCRIPT_WAIT_WALK(id)
until the character gets to its goal
Definition field_map.h:168
#define FIELD_COMMAND_HALT_PARTNERS
The field commands, which an event script hands FIELD_TASK_COMMANDS as the first argument of a pose c...
Definition field_map.h:41
#define SCRIPT_END
The commands of an event script (FieldEvent.script), as FIELDSTG_runEvent reads them: a halfword kind...
Definition field_map.h:156
#define SCRIPT_LEAVE(mode, x, y, dir)
FIELDSTG_leaveField; ends the event.
Definition field_map.h:170
#define SLOT_WARP1
a warp (FieldWarp at arg) with effect and cutscene 1
Definition field_map.h:263
#define SLOT_MAP
the map the player is on, arg (FieldMap.setMap)
Definition field_map.h:260
#define SCRIPT_COMMAND(id, command, arg)
the same word for a script command's id: FIELDSTG_setEventPose creates its task if none runs and hand...
Definition field_map.h:161
#define SCRIPT_FOLLOW(snap, id)
FIELDSTG_followWithCamera.
Definition field_map.h:171
#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_EVENT
starts the event arg
Definition field_map.h:262
#define SLOT_GAUGE
the gauge game
Definition field_map.h:261
#define SCRIPT_WALK(id, x, y, dir)
Actor.setGoal: walks to (x, y), then faces dir.
Definition field_map.h:162
#define FIELD_MAP_FLOOR1
Definition field_map.h:86
#define SCRIPT_WAIT_BOX
until box 0 closes
Definition field_map.h:167
#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 SCRIPT_POSE(id, set, dir)
Actor.setPose: its animation set, facing dir.
Definition field_map.h:158
#define FIELD_MAP_TRIGGERS
a cell's value: a direction (3 bits) and a StageSlot (5)
Definition field_map.h:88
#define SCRIPT_WAIT(frames)
Definition field_map.h:166
#define FIELD_TASK_COMMANDS
script command 813 (FIELDSTG_startCommandTask): the field commands
Definition field_map.h:33
#define SCRIPT_PLACE(id, x, y)
puts a character at (x, y)
Definition field_map.h:157
#define SCRIPT_TALK(box, entry, id, kind)
box of the event's boxes shows the event text's entry: a talk box at the corner kind next to the char...
Definition field_map.h:165
FieldMap FIELDSTG_map
Definition fieldstg.c:3660
FieldState FIELDSTG_state
Definition fieldstg.c:2641
#define START_EVENT(index)
action: FIELDSTG_startListedEvent
Definition game_state.h:81
#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 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 MUSIC_BATTLE
BATL0000: the maps' random battles (AreaBattle, nearly all of them)
Definition sound.h:76
#define MUSIC_JUNGLE_SHRINE
BGM_0015: the Jungle Grave, the Jungle Shrine and the Catacomb.
Definition sound.h:91
#define MUSIC_BOSS
BOSS_000: the sectors' boss battles.
Definition sound.h:108
#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,...
@ 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_SOUTH_STATION_GHOST
WSTAG440 (South Station), event 152: a ghost's voice in the empty station.
Definition story.h:45
#define SPECIAL_STORY_SINCE_DE_KNOWLEDGE
GAME.progress is STORY_DE_KNOWLEDGE or later (PROGRESS_RANGES[0xD], to 0x63)
Definition story.h:1902
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
void(* applyAction)(s32 code, s32 value)
Definition game_state.h:52
s32(* checkCondition)(u16 code, u16 value)
Definition game_state.h:53
What the player can trigger on a map (FIELDSTG_updateTriggers): a record of the table at FieldState....
Definition field_map.h:276
The task a stage starts (startStage), updated by its updateStage.
Definition stage.h:26
void(* nextState)(struct StageTask *task)
Definition stage.h:27
s32 state
Definition stage.h:27
A frame of a StageTileFrame animation, which sets two frames of a map object.
Definition stage.h:265
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
AreaBattle place1Area2Battle4
Definition wstag480.c:339
FieldActorEntry actor0
Definition wstag480.c:440
AreaBattle place1Area1Battle2
Definition wstag480.c:324
AreaBattle place2Area3Battle5
Definition wstag480.c:405
AreaBattle place1Area0Battle3
Definition wstag480.c:312
AreaBattle place0Area1Battle2
Definition wstag480.c:272
void(* stageFuncs[])(void)
The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a t...
Definition wstag480.c:701
StageTileFrame updateTileCursorsFrames_1_12[]
Definition wstag480.c:198
AreaBattle place2Area2Battle6
Definition wstag480.c:393
AreaBattle place1Area1Battle5
Definition wstag480.c:327
u16 actor0Talk0Conditions[]
Definition wstag480.c:427
AreaBattle place2Area1Battle1
Definition wstag480.c:375
AreaBattle place2Area2Battle5
Definition wstag480.c:392
AreaBattle place0Area0Battle6
Definition wstag480.c:263
AreaBattle place0Area1Battle7
Definition wstag480.c:277
AreaBattle place2Area2Battle2
Definition wstag480.c:389
u16 actor0Talk1Conditions[]
Definition wstag480.c:428
StageTileFrame * updateTileCursorsFrames_0[]
Definition wstag480.c:223
void endEvent171(void)
After event 171, with Zanbamon: moves the story on to STORY_SEPIKMON_MASK_LOST.
Definition wstag480.c:44
s16 script171[]
Definition wstag480.c:128
AreaBattle place0Area3Battle0
Definition wstag480.c:296
AreaBattle place0Area1Battle5
Definition wstag480.c:275
s16 script240[]
Definition wstag480.c:150
BattleList place0Area3Battles
Definition wstag480.c:304
AreaBattle place1Area0Battle6
Definition wstag480.c:315
AreaBattle place1Area0Battle1
Definition wstag480.c:310
AreaBattle place1Area2Battle7
Definition wstag480.c:342
AreaBattle place1Area3Battle3
Definition wstag480.c:351
AreaBattle place0Area2Battle1
Definition wstag480.c:284
AreaBattle place2Area0Battle0
Definition wstag480.c:361
AreaBattle place0Area1Battle0
Definition wstag480.c:270
StageTileFrame ** updateTileCursorsFrames[]
Defined below, after the code that uses them.
Definition wstag480.c:253
AreaBattle place0Area2Battle0
Definition wstag480.c:283
BattleList place0Area2Battles
Definition wstag480.c:291
BattleList place1Area1Battles
Definition wstag480.c:330
AreaBattle place1Area1Battle7
Definition wstag480.c:329
AreaBattle place0Area0Battle1
Definition wstag480.c:258
AreaBattle place2Area2Battle4
Definition wstag480.c:391
StageTileFrame * updateTileCursorsFrames_3[]
Definition wstag480.c:241
AreaBattle place0Area3Battle7
Definition wstag480.c:303
AreaBattle place1Area3Battle5
Definition wstag480.c:353
AreaBattle place2Area3Battle0
Definition wstag480.c:400
AreaBattle place2Area0Battle1
Definition wstag480.c:362
AreaBattle place1Area3Battle7
Definition wstag480.c:355
AreaBattle place2Area3Battle2
Definition wstag480.c:402
AreaBattle place2Area0Battle3
Definition wstag480.c:364
AreaBattle place1Area1Battle4
Definition wstag480.c:326
const CVECTOR stageColor
the color the setup copies to FIELDSTG_state.spriteColor
Definition wstag480.c:49
AreaBattle place2Area0Battle5
Definition wstag480.c:366
StageTileFrame updateTileCursorsFrames_1_0[]
Definition wstag480.c:195
AreaBattle place0Area0Battle2
Definition wstag480.c:259
BattleList place2Area1Battles
Definition wstag480.c:382
u16 actor0Talk3Conditions[]
Definition wstag480.c:430
FieldActorEntry * stageActors[]
Definition wstag480.c:441
AreaBattle place0Area0Battle4
Definition wstag480.c:261
AreaBattle place2Area1Battle2
Definition wstag480.c:376
AreaBattle place2Area0Battle4
Definition wstag480.c:365
AreaBattle place2Area2Battle3
Definition wstag480.c:390
AreaBattle place2Area1Battle4
Definition wstag480.c:378
s16 script170[]
Definition wstag480.c:97
StageTileFrame * updateTileCursorsFrames_4[]
Definition wstag480.c:247
BattleList place0Area1Battles
Definition wstag480.c:278
AreaBattle place0Area1Battle4
Definition wstag480.c:274
AreaBattle place1Area2Battle0
Definition wstag480.c:335
StageTileFrame updateTileCursorsFrames_4_12[]
Definition wstag480.c:219
BattleList place1Area0Battles
Definition wstag480.c:317
AreaBattle place2Area3Battle4
Definition wstag480.c:404
void endEvent170(void)
After event 170, with Zanbamon: lets event 171 start and starts the stage's event battle 0.
Definition wstag480.c:38
AreaBattle place0Area3Battle1
Definition wstag480.c:297
AreaBattle place2Area0Battle2
Definition wstag480.c:363
StageTileFrame * updateTileCursorsFrames_1[]
Definition wstag480.c:229
FieldTalk actor0Talks[]
Definition wstag480.c:432
AreaBattle place0Area3Battle2
Definition wstag480.c:298
AreaBattle place2Area3Battle1
Definition wstag480.c:401
#define STAGE_ARCHIVE
Definition wstag480.c:60
AreaBattle place1Area2Battle2
Definition wstag480.c:337
AreaBattle place1Area3Battle2
Definition wstag480.c:350
StageTileFrame updateTileCursorsFrames_0_12[]
Definition wstag480.c:191
StageTileFrame updateTileCursorsFrames_2_0[]
Definition wstag480.c:202
AreaBattle place0Area0Battle7
Definition wstag480.c:264
AreaBattle place1Area3Battle0
Definition wstag480.c:348
AreaBattle place2Area1Battle0
Definition wstag480.c:374
ActorImage stageImages[]
Definition wstag480.c:418
AreaBattle place0Area1Battle6
Definition wstag480.c:276
StageTileFrame updateTileCursorsFrames_0_0[]
Definition wstag480.c:188
void setupStage(void)
Sets the stage up: its map, actors, battles and events, playing BGM_0015; battle list 0 before STORY_...
Definition wstag480.c:67
AreaBattle place0Area1Battle3
Definition wstag480.c:273
AreaBattle place0Area3Battle4
Definition wstag480.c:300
AreaBattle place0Area2Battle6
Definition wstag480.c:289
AreaBattle place0Area0Battle3
Definition wstag480.c:260
StageTile stageObjects[]
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition wstag480.c:445
AreaBattle place2Area1Battle6
Definition wstag480.c:380
AreaBattle place0Area2Battle4
Definition wstag480.c:287
AreaBattle place1Area1Battle1
Definition wstag480.c:323
BattleList place1Area2Battles
Definition wstag480.c:343
StageTileFrame * updateTileCursorsFrames_2[]
Definition wstag480.c:235
AreaBattle place1Area2Battle3
Definition wstag480.c:338
AreaBattle place1Area1Battle3
Definition wstag480.c:325
u16 actor0Talk2Conditions[]
Definition wstag480.c:429
AreaBattle place0Area3Battle6
Definition wstag480.c:302
StageTileFrame updateTileCursorsFrames_2_12[]
Definition wstag480.c:205
AreaBattle place0Area3Battle3
Definition wstag480.c:299
AreaBattle place1Area2Battle1
Definition wstag480.c:336
StageSlot stageSlots[]
Definition wstag480.c:686
BattleList place1Area3Battles
Definition wstag480.c:356
AreaBattle place1Area2Battle5
Definition wstag480.c:340
AreaBattle place2Area0Battle7
Definition wstag480.c:368
AreaBattle place2Area3Battle6
Definition wstag480.c:406
AreaBattle place1Area1Battle6
Definition wstag480.c:328
AreaBattle place1Area0Battle2
Definition wstag480.c:311
BattleList place0Area0Battles
Definition wstag480.c:265
AreaBattle place0Area2Battle3
Definition wstag480.c:286
AreaBattle place1Area3Battle6
Definition wstag480.c:354
AreaBattle place2Area1Battle3
Definition wstag480.c:377
AreaBattle place1Area0Battle0
Definition wstag480.c:309
#define STAGE_FILE
Definition wstag480.c:59
AreaBattle place1Area3Battle1
Definition wstag480.c:349
AreaBattle place0Area0Battle5
Definition wstag480.c:262
AreaBattle place1Area1Battle0
Definition wstag480.c:322
AreaBattle place0Area3Battle5
Definition wstag480.c:301
AreaBattle place2Area3Battle7
Definition wstag480.c:407
AreaBattle place0Area2Battle2
Definition wstag480.c:285
AreaBattle place2Area1Battle5
Definition wstag480.c:379
AreaBattle place2Area1Battle7
Definition wstag480.c:381
AreaBattle place1Area0Battle5
Definition wstag480.c:314
AreaBattle place1Area2Battle6
Definition wstag480.c:341
AreaBattle place1Area0Battle7
Definition wstag480.c:316
AreaBattle place2Area2Battle7
Definition wstag480.c:394
AreaBattle place2Area3Battle3
Definition wstag480.c:403
BattleList place2Area3Battles
Definition wstag480.c:408
AreaBattle place0Area2Battle7
Definition wstag480.c:290
#define STAGE_TEXT
Definition wstag480.c:57
AreaBattle place1Area0Battle4
Definition wstag480.c:313
StageTileFrame updateTileCursorsFrames_3_0[]
Definition wstag480.c:209
BattleList place2Area0Battles
Definition wstag480.c:369
AreaBattle place0Area1Battle1
Definition wstag480.c:271
AreaBattle place2Area2Battle0
Definition wstag480.c:387
AreaBattle place0Area2Battle5
Definition wstag480.c:288
BattleList place2Area2Battles
Definition wstag480.c:395
FieldBattles stageBattles[]
Definition wstag480.c:413
AreaBattle place0Area0Battle0
Definition wstag480.c:257
FieldEvent stageEvents[]
Definition wstag480.c:704
AreaBattle place1Area3Battle4
Definition wstag480.c:352
AreaBattle place2Area0Battle6
Definition wstag480.c:367
u16 actor0Conditions[]
Definition wstag480.c:439
u16 actor0Talk3Actions[]
Definition wstag480.c:431
StageTileFrame updateTileCursorsFrames_4_0[]
Definition wstag480.c:216
AreaBattle place2Area2Battle1
Definition wstag480.c:388
StageTileFrame updateTileCursorsFrames_3_12[]
Definition wstag480.c:212