Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
wstag211.c
Go to the documentation of this file.
1/*
2 * WSTAG211: Main Lobby, Amaterasu City. On the Amaterasu server; its Asuka
3 * server twin is WSTAG210.
4 */
5
6#include "common.h"
7#include "field/stage.h"
8
11
12/*
13 * After event 925, with Attacker: starts the stage's event battle 0, sets
14 * flag 0x0C23 (which decides whether actors 30 to 32 appear) and keeps it
15 * from playing again
16 */
22
23const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0x00 };
24#if VERSION_US || VERSION_JP
25#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_03)
26#define EVENT_TEXT_FILE (TEXT_EVENTS_200 - 1)
27#define STAGE_FILE 0x494
28#elif VERSION_EU
29#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_03)
30#define EVENT_TEXT_FILE (TEXT_EVENTS_200 - 1)
31#define STAGE_FILE 0x4A4
32#endif
33/*
34 * Sets the stage up: its map, actors, battles and events, playing KANRIBGM;
35 * BGM_0029 instead except at STORY_PRESIDENT_ARRESTED once flag 0x1A0A is set
36 */
61
63 SCRIPT_WALK(2, 0x120, 0xE1, 5),
64 SCRIPT_PLACE(0xC2, 0x149, 0xCD),
65 SCRIPT_POSE(0xC2, 1, 1),
66 SCRIPT_PLACE(0xC3, 0x160, 0xD9),
67 SCRIPT_POSE(0xC3, 1, 1),
68 SCRIPT_PLACE(0xC4, 0x130, 0xC0),
69 SCRIPT_POSE(0xC4, 1, 1),
72 SCRIPT_POSE(2, 1, 5),
73 SCRIPT_WAIT(0x1E),
74 SCRIPT_COMMAND(0x323, 0x325, 0xC2),
75 SCRIPT_COMMAND(0x324, 0x325, 0xC3),
76 SCRIPT_COMMAND(0x325, 0x325, 0xC4),
77 SCRIPT_WAIT(0x5A),
78 SCRIPT_COMMAND(0x323, 0x326, 0xC2),
79 SCRIPT_COMMAND(0x324, 0x326, 0xC3),
80 SCRIPT_COMMAND(0x325, 0x326, 0xC4),
81 SCRIPT_WAIT(0x1E),
82 SCRIPT_WALK(0xC2, 0x141, 0xD1, 1),
83 SCRIPT_WAIT_WALK(0xC2),
84 SCRIPT_POSE(0xC2, 1, 1),
85 SCRIPT_WAIT(0x1E),
86 SCRIPT_TALK(0, 1, 0xC2, 2),
88 SCRIPT_WAIT(0x1E),
90 /* after the end, the original's padding up to a word, which isn't zeros */
91#if VERSION_EU
92 0x6961,
93#elif VERSION_JP
94 0x6004,
95#endif
96};
97AreaBattle area0Battle0 = { 0, 0, MUSIC(1, 0) };
98AreaBattle area0Battle1 = { 0, 0, MUSIC(1, 0) };
99AreaBattle area0Battle2 = { 0, 0, MUSIC(1, 0) };
100AreaBattle area0Battle3 = { 0, 0, MUSIC(1, 0) };
101AreaBattle area0Battle4 = { 0, 0, MUSIC(1, 0) };
102AreaBattle area0Battle5 = { 0, 0, MUSIC(1, 0) };
103AreaBattle area0Battle6 = { 0, 0, MUSIC(1, 0) };
104AreaBattle area0Battle7 = { 0, 0, MUSIC(1, 0) };
110AreaBattle area1Battle0 = { 0, 0, MUSIC(1, 0) };
111AreaBattle area1Battle1 = { 0, 0, MUSIC(1, 0) };
112AreaBattle area1Battle2 = { 0, 0, MUSIC(1, 0) };
113AreaBattle area1Battle3 = { 0, 0, MUSIC(1, 0) };
114AreaBattle area1Battle4 = { 0, 0, MUSIC(1, 0) };
115AreaBattle area1Battle5 = { 0, 0, MUSIC(1, 0) };
116AreaBattle area1Battle6 = { 0, 0, MUSIC(1, 0) };
117AreaBattle area1Battle7 = { 0, 0, MUSIC(1, 0) };
123AreaBattle area2Battle0 = { 0, 0, MUSIC(1, 0) };
124AreaBattle area2Battle1 = { 0, 0, MUSIC(1, 0) };
125AreaBattle area2Battle2 = { 0, 0, MUSIC(1, 0) };
126AreaBattle area2Battle3 = { 0, 0, MUSIC(1, 0) };
127AreaBattle area2Battle4 = { 0, 0, MUSIC(1, 0) };
128AreaBattle area2Battle5 = { 0, 0, MUSIC(1, 0) };
129AreaBattle area2Battle6 = { 0, 0, MUSIC(1, 0) };
130AreaBattle area2Battle7 = { 0, 0, MUSIC(1, 0) };
137AreaBattle area3Battle1 = { 0, 0, MUSIC(1, 0) };
138AreaBattle area3Battle2 = { 0, 0, MUSIC(1, 0) };
139AreaBattle area3Battle3 = { 0, 0, MUSIC(1, 0) };
140AreaBattle area3Battle4 = { 0, 0, MUSIC(1, 0) };
141AreaBattle area3Battle5 = { 0, 0, MUSIC(1, 0) };
142AreaBattle area3Battle6 = { 0, 0, MUSIC(1, 0) };
143AreaBattle area3Battle7 = { 0, 0, MUSIC(1, 0) };
153 { 0x200, 0x100, 0x21C, 0x1A6, 0x70, 0xA6, 0x230, 0x1FE },
154 { 0x200, 0x100, 0x200, 0x100, 0, 0, 0x220, 0x1FE },
155 { 0x200, 0x100, 0x216, 0x138, 0x58, 0x38, 0x200, 0x1FD },
156 { 0x200, 0x100, 0x208, 0x1BC, 0x20, 0xBC, 0x210, 0x1FD },
157 { 0x200, 0x100, 0x210, 0x1BC, 0x40, 0xBC, 0x220, 0x1FD },
158 { 0x200, 0x100, 0x200, 0x1BC, 0, 0xBC, 0x230, 0x1FD },
159 { 0x1C0, 0x100, 0x1F0, 0x160, 0x2C0, 0x60, 0x170, 0x1F8 },
160 { 0x1C0, 0x100, 0x1C0, 0x171, 0x200, 0x71, 0x140, 0x1F7 },
161 { 0x180, 0x100, 0x198, 0x1B0, 0x160, 0xB0, 0x150, 0x1F7 },
162 { 0x1C0, 0x100, 0x1F6, 0x100, 0x2D8, 0, 0x160, 0x1F7 },
163 { 0x1C0, 0x100, 0x1F6, 0x130, 0x2D8, 0x30, 0x170, 0x1F7 },
164 { 0x1C0, 0x100, 0x1F8, 0x160, 0x2E0, 0x60, 0x140, 0x1F6 },
165 { 0x1C0, 0x100, 0x1C8, 0x171, 0x220, 0x71, 0x150, 0x1F6 },
166 { 0x1C0, 0x100, 0x1D8, 0x174, 0x260, 0x74, 0x160, 0x1F6 },
167 { 0x1C0, 0x100, 0x1E0, 0x174, 0x280, 0x74, 0x170, 0x1F6 },
168 { 0x1C0, 0x100, 0x1E8, 0x174, 0x2A0, 0x74, 0x140, 0x1F5 },
169 { 0x1C0, 0x100, 0x1C8, 0x199, 0x220, 0x99, 0x150, 0x1F5 },
170 { 0x1C0, 0x100, 0x1D0, 0x154, 0x240, 0x54, 0x160, 0x1F5 },
171 { 0, 0, 0, 0, 0, 0, 0, 0 },
172 { 0, 0, 0, 0, 0, 0, 0, 0 },
173 { 0x1C0, 0x100, 0x1D0, 0x1AC, 0x240, 0xAC, 0x170, 0x1F5 },
174 { 0x1C0, 0x100, 0x1EC, 0x1B0, 0x2B0, 0xB0, 0x140, 0x1F4 },
175 { 0x1C0, 0x100, 0x1F4, 0x1B0, 0x2D0, 0xB0, 0x150, 0x1F4 },
176 { 0x1C0, 0x100, 0x1D8, 0x1B4, 0x260, 0xB4, 0x160, 0x1F4 },
177 { 0x1C0, 0x100, 0x1E0, 0x1B4, 0x280, 0xB4, 0x170, 0x1F4 },
178 { 0x1C0, 0x100, 0x1C8, 0x1B9, 0x220, 0xB9, 0x140, 0x1F3 },
179 { 0x1C0, 0x100, 0x1C0, 0x1C1, 0x200, 0xC1, 0x150, 0x1F3 },
180 { 0x1C0, 0x100, 0x1D0, 0x1CC, 0x240, 0xCC, 0x160, 0x1F3 },
181 { 0x1C0, 0x100, 0x1D0, 0x184, 0x240, 0x84, 0x170, 0x1F3 },
182 { 0x1C0, 0x100, 0x1F0, 0x188, 0x2C0, 0x88, 0x140, 0x1F2 },
183 { 0x1C0, 0x100, 0x1C0, 0x199, 0x200, 0x99, 0x150, 0x1F2 },
184 { 0, 0, 0, 0, 0, 0, 0, 0 },
185 { 0, 0, 0, 0, 0, 0, 0, 0 },
186};
203 { NULL, NULL, 0x33 },
204 { NULL, NULL, 0 },
205};
207 { NULL, NULL, 0x36 },
208 { NULL, NULL, 0 },
209};
211 { NULL, NULL, 0x37 },
212 { NULL, NULL, 0 },
213};
215 { NULL, NULL, 0x3A },
216 { NULL, NULL, 0 },
217};
219 { NULL, NULL, 0x43 },
220 { NULL, NULL, 0 },
221};
223 { NULL, NULL, 0x45 },
224 { NULL, NULL, 0 },
225};
227 { NULL, NULL, 0x47 },
228 { NULL, NULL, 0 },
229};
231 { NULL, NULL, 0x42 },
232 { NULL, NULL, 0 },
233};
235 { NULL, NULL, 0x3E },
236 { NULL, NULL, 0 },
237};
239 { NULL, NULL, 0x3F },
240 { NULL, NULL, 0 },
241};
243 { NULL, NULL, 0x3B },
244 { NULL, NULL, 0 },
245};
247 { NULL, NULL, 0x4B },
248 { NULL, NULL, 0 },
249};
251 { NULL, NULL, 0x4C },
252 { NULL, NULL, 0 },
253};
255 { NULL, NULL, 0x49 },
256 { NULL, NULL, 0 },
257};
259 { NULL, NULL, 0x34 },
260 { NULL, NULL, 0 },
261};
263 { NULL, NULL, 0x35 },
264 { NULL, NULL, 0 },
265};
267 { NULL, NULL, 0x38 },
268 { NULL, NULL, 0 },
269};
271 { NULL, NULL, 0x39 },
272 { NULL, NULL, 0 },
273};
275 { NULL, NULL, 0x3C },
276 { NULL, NULL, 0 },
277};
279 { NULL, NULL, 0x3D },
280 { NULL, NULL, 0 },
281};
283 { NULL, NULL, 0x40 },
284 { NULL, NULL, 0 },
285};
287 { NULL, NULL, 0x41 },
288 { NULL, NULL, 0 },
289};
291 { NULL, NULL, 0x44 },
292 { NULL, NULL, 0 },
293};
295 { NULL, NULL, 0x46 },
296 { NULL, NULL, 0 },
297};
299 { NULL, NULL, 0x48 },
300 { NULL, NULL, 0 },
301};
303 { NULL, NULL, 0x4A },
304 { NULL, NULL, 0 },
305};
307 { NULL, actor30Talk0Actions, 0x1B7 },
308 { NULL, NULL, 0 },
309};
311 { NULL, actor31Talk0Actions, 0x1B8 },
312 { NULL, NULL, 0 },
313};
315 { NULL, actor32Talk0Actions, 0x1B9 },
316 { NULL, NULL, 0 },
317};
431FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x30, 0xA, 617, 501, 1 };
432FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x31, 0xB, 328, 260, 5 };
437FieldActorEntry actor14 = { actor14Conditions, NULL, 0x70, 0x10, 360, 268, 1 };
438FieldActorEntry actor15 = { actor15Conditions, NULL, 0x70, 0x10, 360, 268, 1 };
439FieldActorEntry actor16 = { actor16Conditions, NULL, 0x71, 0x11, 450, 254, 7 };
440FieldActorEntry actor17 = { actor17Conditions, NULL, 0x71, 0x11, 450, 254, 7 };
456FieldActorEntry actor33 = { actor33Conditions, NULL, 0x10E, 0x1D, 360, 268, 1 };
457FieldActorEntry actor34 = { actor34Conditions, NULL, 0x10E, 0x1D, 360, 268, 1 };
458FieldActorEntry actor35 = { actor35Conditions, NULL, 0x10F, 0x1E, 450, 254, 7 };
459FieldActorEntry actor36 = { actor36Conditions, NULL, 0x10F, 0x1E, 450, 254, 7 };
461 &actor0,
462 &actor1,
463 &actor2,
464 &actor3,
465 &actor4,
466 &actor5,
467 &actor6,
468 &actor7,
469 &actor8,
470 &actor9,
471 &actor10,
472 &actor11,
473 &actor12,
474 &actor13,
475 &actor14,
476 &actor15,
477 &actor16,
478 &actor17,
479 &actor18,
480 &actor19,
481 &actor20,
482 &actor21,
483 &actor22,
484 &actor23,
485 &actor24,
486 &actor25,
487 &actor26,
488 &actor27,
489 &actor28,
490 &actor29,
491 &actor30,
492 &actor31,
493 &actor32,
494 &actor33,
495 &actor34,
496 &actor35,
497 &actor36,
498 NULL,
499};
501 { 1, 0, 0x40, 2, 0x36, 2, 0, 1, 4, 0, 243, 69, 0, 0 },
502 { 1, 0, 0x40, 2, 0x37, 2, 0, 1, 4, 0, 802, 278, 0, 0 },
503 { 1, 0, 0x40, 2, 0x33, 2, 0, 1, 4, 0, 457, 129, 0, 0 },
504 { 1, 0, 0x40, 2, 0x32, 2, 0, 3, 0x16, 0, 339, 212, 0, 0 },
505 { 1, 0, 0x40, 2, 0x32, 2, 0, 3, 0x16, 0, 372, 196, 0, 0 },
506 { 1, 0, 0x40, 2, 0x32, 2, 0, 3, 0x16, 0, 403, 244, 0, 0 },
507 { 1, 0, 0x40, 2, 0x32, 2, 0, 3, 0x16, 0, 435, 228, 0, 0 },
508 { 1, 0, 0x40, 2, 0x55, 2, 0, 7, 0x12, 0, 386, 117, 0, 0 },
509 { 1, 0, 0x40, 2, 0x55, 2, 0, 7, 0x12, 0, 546, 197, 0, 0 },
510 { 1, 0, 0x40, 2, 0x55, 2, 0, 7, 0x12, 0, 674, 197, 0, 0 },
511 { 1, 0, 0x40, 2, 0x56, 2, 0, 7, 0x12, 0, 573, 209, 0, 0 },
512 { 1, 0, 0x40, 2, 0x56, 2, 0, 7, 0x12, 0, 613, 209, 0, 0 },
513 { 1, 0, 0x40, 2, 0x57, 2, 0, 7, 0x12, 0, 151, 129, 0, 0 },
514 { 1, 0, 0x40, 2, 0x57, 2, 0, 7, 0x12, 0, 411, 111, 0, 0 },
515 { 1, 0, 0x40, 2, 0x57, 2, 0, 7, 0x12, 0, 649, 200, 0, 0 },
516 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x47, 0xA, 0, 76, 320, 0, 0 },
517 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x47, 0xA, 0, 561, 589, 0, 0 },
518 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x47, 0xA, 0, 710, 468, 0, 0 },
519 { 1, 0, 0x40, 6, 0x48, 1, 0x48, 0x52, 0xA, 0, 225, 445, 0, 0 },
520 { 1, 0, 0x40, 6, 0x48, 1, 0x48, 0x52, 0xA, 0, 422, 462, 0, 0 },
521 { 1, 0, 0x40, 6, 0x48, 1, 0x48, 0x52, 0xA, 0, 748, 560, 0, 0 },
522 { 1, 0, 0x40, 6, 0x55, 2, 0, 7, 0x12, 0, 10, 105, 0, 0 },
523 { 1, 0, 0x40, 6, 0x55, 2, 0, 7, 0x12, 0, 42, 121, 0, 0 },
524 { 1, 0, 0x40, 6, 0x55, 2, 0, 7, 0x12, 0, 74, 137, 0, 0 },
525 { 1, 0, 0x40, 6, 0x55, 2, 0, 7, 0x12, 0, 290, 69, 0, 0 },
526 { 1, 0, 0x40, 6, 0x55, 2, 0, 7, 0x12, 0, 322, 85, 0, 0 },
527 { 1, 0, 0x40, 6, 0x55, 2, 0, 7, 0x12, 0, 354, 101, 0, 0 },
528 { 1, 0, 0x40, 6, 0x55, 2, 0, 7, 0x12, 0, 482, 165, 0, 0 },
529 { 1, 0, 0x40, 6, 0x55, 2, 0, 7, 0x12, 0, 514, 181, 0, 0 },
530 { 1, 0, 0x40, 6, 0x55, 2, 0, 7, 0x12, 0, 706, 213, 0, 0 },
531 { 1, 0, 0x40, 6, 0x55, 2, 0, 7, 0x12, 0, 738, 229, 0, 0 },
532 { 1, 0, 0x40, 6, 0x55, 2, 0, 7, 0x12, 0, 770, 245, 0, 0 },
533 { 1, 0, 0x40, 6, 0x57, 2, 0, 7, 0x12, 0, 119, 145, 0, 0 },
534 { 1, 0, 0x40, 6, 0x58, 2, 0, 7, 0x12, 0, 135, 232, 0, 0 },
535 { 1, 0, 0x40, 6, 0x58, 2, 0, 7, 0x12, 0, 155, 222, 0, 0 },
536 { 1, 0, 0x40, 6, 0x58, 2, 0, 7, 0x12, 0, 175, 212, 0, 0 },
537 { 1, 0, 0x40, 6, 0x58, 2, 0, 7, 0x12, 0, 195, 202, 0, 0 },
538 { 1, 0, 0x40, 6, 0x58, 2, 0, 7, 0x12, 0, 215, 192, 0, 0 },
539 { 1, 0, 0x40, 6, 0x58, 2, 0, 7, 0x12, 0, 235, 182, 0, 0 },
540 { 1, 0, 0x40, 6, 0x58, 2, 0, 7, 0x12, 0, 255, 172, 0, 0 },
541 { 1, 0, 0x40, 6, 0x58, 2, 0, 7, 0x12, 0, 275, 162, 0, 0 },
542 { 1, 0, 0x40, 6, 0x58, 2, 0, 7, 0x12, 0, 295, 152, 0, 0 },
543 { 1, 0x64, 0x40, 6, 4, 0, 0, 0, 0, 0, 335, 141, 0, 0 },
544 { 1, 0x65, 0x40, 6, 5, 0, 0, 0, 0, 0, 511, 229, 0, 0 },
545 { 1, 0x66, 0x40, 6, 6, 0, 0, 0, 0, 0, 736, 326, 0, 0 },
546 { 1, 0, 0x40, 6, 0x34, 2, 0, 3, 4, 0, 114, 179, 0, 0 },
547 { 1, 0, 0x40, 6, 0x35, 2, 0, 3, 4, 0, 264, 130, 0, 0 },
548 { 1, 0, 0x40, 6, 0x59, 2, 0, 3, 4, 0, 429, 176, 0, 0 },
549 { 1, 0, 0x40, 6, 0x5E, 1, 0x5E, 0x61, 8, 0, 585, 335, 0, 0 },
550 { 1, 0, 0x40, 6, 0x5A, 1, 0x5A, 0x5D, 8, 0, 585, 335, 0, 0 },
551 { 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 144, 110, 160, 0 },
552 { 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 359, 148, 193, 0 },
553 { 1, 0, 0x40, 4, 2, 0, 0, 0, 0, 0, 535, 236, 281, 0 },
554 { 1, 0, 0x40, 4, 3, 0, 0, 0, 0, 0, 759, 332, 376, 0 },
555 { 1, 0, 0x50, 4, 7, 0, 0, 0, 0, 0, 441, 345, 450, 0 },
556 { 1, 0, 0x40, 4, 8, 0, 0, 0, 0, 0, 464, 444, 496, 0 },
557 { 1, 0, 0x40, 4, 9, 0, 0, 0, 0, 0, 595, 442, 478, 0 },
558 { 1, 0, 0x40, 4, 0xA, 0, 0, 0, 0, 0, 384, 259, 279, 0 },
559 { 1, 0, 0x40, 4, 0xB, 0, 0, 0, 0, 0, 401, 250, 271, 0 },
560 { 1, 0, 0x40, 4, 0xC, 0, 0, 0, 0, 0, 368, 251, 270, 0 },
561 { 1, 0, 0x40, 4, 0xD, 0, 0, 0, 0, 0, 417, 243, 264, 0 },
562 { 1, 0, 0x40, 4, 0xE, 0, 0, 0, 0, 0, 352, 242, 262, 0 },
563 { 1, 0, 0x40, 4, 0xF, 0, 0, 0, 0, 0, 433, 233, 255, 0 },
564 { 1, 0, 0x40, 4, 0x10, 0, 0, 0, 0, 0, 336, 229, 255, 0 },
565 { 1, 0, 0x40, 4, 0x11, 0, 0, 0, 0, 0, 449, 227, 247, 0 },
566 { 1, 0, 0x40, 4, 0x12, 0, 0, 0, 0, 0, 320, 227, 247, 0 },
567 { 1, 0, 0x40, 4, 0x13, 0, 0, 0, 0, 0, 337, 219, 240, 0 },
568 { 1, 0, 0x40, 4, 0x14, 0, 0, 0, 0, 0, 353, 208, 231, 0 },
569 { 1, 0, 0x40, 4, 0x15, 0, 0, 0, 0, 0, 369, 203, 223, 0 },
570 { 1, 0, 0x40, 4, 0x16, 0, 0, 0, 0, 0, 385, 192, 215, 0 },
571 { 1, 0, 0x40, 4, 0x17, 0, 0, 0, 0, 0, 401, 187, 207, 0 },
572 { 1, 0, 0x40, 4, 0x18, 0, 0, 0, 0, 0, 499, 317, 334, 0 },
573 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
574};
576 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x270, 0x3E8, 0xEC, 1, 0, 0, 0 },
577 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x275, 0x70, 0xF0, 7, 0, 0, 0 },
578 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x276, 0x58, 0x1CC, 5, 0x66, 0, 0 },
579 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x277, 0x69, 0x134, 5, 0x65, 0, 0 },
580 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x283, 0x1F8, 0x2BC, 5, 0x64, 0, 0 },
581 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x286, 0x1D8, 0x1D4, 3, 0, 0, 0 },
582 { { { PROGRESS(STORY_AMATERASU_BRIDGE), 1 }, { FLAG(0x40, 0xA4), 0 } }, SLOT_EVENT, 0x39D, 0, 0, 0, 0, 0, 0 },
583 { { { CODES_END, 0 }, { CODES_END, 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
584};
585void (*stageFuncs[])(void) = {
587};
589 { 925, script925, EVENT_TEXT(0x28), NULL, endEvent925 },
590 { -1, NULL, 0, NULL, NULL },
591};
#define NULL
Definition common.h:17
signed short s16
Definition common.h:9
unsigned short u16
Definition common.h:10
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
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
#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_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 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 SCRIPT_WALK(id, x, y, dir)
Actor.setGoal: walks to (x, y), then faces dir.
Definition field_map.h:162
#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 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 EVENT_BATTLE(id)
action: FIELDSTG_battleFuncs.startEventBattle
Definition game_state.h:72
#define CODES_END
Definition game_state.h:83
#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_ADMIN_CENTER
KANRIBGM: the cities' Main Lobby, Admin Center, Digimon Arena, Master Room.
Definition sound.h:79
#define MUSIC_CITY_CRISIS
BGM_0029: the cities and their streets instead of their music while the story is at a crisis (Knightm...
Definition sound.h:105
#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_OINKMON_CITIZENS_RESTORED
wstag435 Gale Tower: Airdramon spins the windmill and turns everyone back from Oinkmon; tested in 62 ...
Definition story.h:1031
@ STORY_PRESIDENT_ARRESTED
WSTAG226 (Login Room, Amaterasu City), event 935, after the President of MAGAMI gives himself up (WST...
Definition story.h:136
@ STORY_AMATERASU_BRIDGE
WSTAG206 (Amaterasu Bridge), event 922: an Attacker holds the bridge.
Definition story.h:133
@ STORY_MOVIE_BATTLES
WSTAG820, event 1080, with Snatchmon: each encounter plays MODE_BATTLE_MOVIE first.
Definition story.h:146
#define FLAG_AMATERASU_LOBBY_ATTACKER_FOUGHT
wstag211 Amaterasu Main Lobby: set with the Attacker's battle, from his talk or the end of event 925;...
Definition story.h:744
#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_SINCE_DE_KNOWLEDGE
GAME.progress is STORY_DE_KNOWLEDGE or later (PROGRESS_RANGES[0xD], to 0x63)
Definition story.h:1902
#define SPECIAL_STORY_AMATERASU_BRIDGE_TO_PRESIDENT_ARRESTED
GAME.progress is from STORY_AMATERASU_BRIDGE to STORY_PRESIDENT_ARRESTED (PROGRESS_RANGES[0x14])
Definition story.h:1923
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
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 wstag211.c:323
u16 actor26Conditions[]
Definition wstag211.c:384
AreaBattle area2Battle7
Definition wstag211.c:130
FieldActorEntry actor0
Definition wstag211.c:423
void(* stageFuncs[])(void)
The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a t...
Definition wstag211.c:585
FieldActorEntry actor6
Definition wstag211.c:429
u16 actor11Conditions[]
Definition wstag211.c:345
FieldTalk actor31Talks[]
Definition wstag211.c:310
FieldTalk actor2Talks[]
Definition wstag211.c:210
AreaBattle area2Battle6
Definition wstag211.c:129
u16 actor10Conditions[]
Definition wstag211.c:340
FieldActorEntry actor25
Definition wstag211.c:448
FieldActorEntry actor24
Definition wstag211.c:447
u16 actor18Conditions[]
Definition wstag211.c:360
FieldActorEntry actor17
Definition wstag211.c:440
u16 actor34Conditions[]
Definition wstag211.c:408
FieldActorEntry actor33
Definition wstag211.c:456
u16 actor24Conditions[]
Definition wstag211.c:378
FieldActorEntry actor18
Definition wstag211.c:441
FieldTalk actor5Talks[]
Definition wstag211.c:222
AreaBattle area1Battle6
Definition wstag211.c:116
FieldActorEntry actor5
Definition wstag211.c:428
FieldActorEntry actor36
Definition wstag211.c:459
u16 actor35Conditions[]
Definition wstag211.c:413
u16 actor22Conditions[]
Definition wstag211.c:372
AreaBattle area0Battle7
Definition wstag211.c:104
FieldActorEntry actor2
Definition wstag211.c:425
FieldActorEntry actor31
Definition wstag211.c:454
const CVECTOR stageColor
Definition wstag211.c:23
void endEvent925(void)
After event 925, with Attacker: starts the stage's event battle 0, sets flag 0x0C23 (which decides wh...
Definition wstag211.c:17
AreaBattle area3Battle4
Definition wstag211.c:140
AreaBattle area3Battle3
Definition wstag211.c:139
AreaBattle area0Battle1
Definition wstag211.c:98
FieldActorEntry actor23
Definition wstag211.c:446
FieldActorEntry actor19
Definition wstag211.c:442
AreaBattle area2Battle0
Definition wstag211.c:123
s16 script925[]
Definition wstag211.c:62
u16 actor9Conditions[]
Definition wstag211.c:335
FieldActorEntry * stageActors[]
Definition wstag211.c:460
FieldActorEntry actor28
Definition wstag211.c:451
AreaBattle area1Battle2
Definition wstag211.c:112
u16 actor23Conditions[]
Definition wstag211.c:377
u16 actor32Conditions[]
Definition wstag211.c:398
AreaBattle area3Battle0
Definition wstag211.c:136
u16 actor29Conditions[]
Definition wstag211.c:387
u16 actor30Conditions[]
Definition wstag211.c:388
FieldActorEntry actor22
Definition wstag211.c:445
AreaBattle area0Battle6
Definition wstag211.c:103
FieldTalk actor1Talks[]
Definition wstag211.c:206
u16 actor13Conditions[]
Definition wstag211.c:347
AreaBattle area3Battle2
Definition wstag211.c:138
FieldActorEntry actor29
Definition wstag211.c:452
FieldTalk actor0Talks[]
Definition wstag211.c:202
AreaBattle area3Battle1
Definition wstag211.c:137
FieldTalk actor21Talks[]
Definition wstag211.c:270
AreaBattle area0Battle3
Definition wstag211.c:100
FieldActorEntry actor27
Definition wstag211.c:450
FieldTalk actor20Talks[]
Definition wstag211.c:266
FieldActorEntry actor10
Definition wstag211.c:433
u16 actor31Conditions[]
Definition wstag211.c:393
u16 actor19Conditions[]
Definition wstag211.c:365
FieldTalk actor4Talks[]
Definition wstag211.c:218
u16 actor4Conditions[]
Definition wstag211.c:330
FieldTalk actor27Talks[]
Definition wstag211.c:294
FieldActorEntry actor4
Definition wstag211.c:427
u16 actor3Conditions[]
Definition wstag211.c:329
AreaBattle area3Battle6
Definition wstag211.c:142
FieldActorEntry actor35
Definition wstag211.c:458
FieldTalk actor11Talks[]
Definition wstag211.c:246
FieldActorEntry actor32
Definition wstag211.c:455
FieldActorEntry actor8
Definition wstag211.c:431
ActorImage stageImages[]
Definition wstag211.c:152
FieldTalk actor28Talks[]
Definition wstag211.c:298
FieldTalk actor6Talks[]
Definition wstag211.c:226
void setupStage(void)
Sets the stage up: its map, actors, battles and events, playing KANRIBGM; BGM_0029 instead except at ...
Definition wstag211.c:37
FieldTalk actor25Talks[]
Definition wstag211.c:286
FieldTalk actor19Talks[]
Definition wstag211.c:262
AreaBattle area2Battle4
Definition wstag211.c:127
u16 actor33Conditions[]
Definition wstag211.c:403
FieldTalk actor23Talks[]
Definition wstag211.c:278
u16 actor16Conditions[]
Definition wstag211.c:354
StageTile stageObjects[]
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition wstag211.c:500
FieldActorEntry actor9
Definition wstag211.c:432
u16 actor8Conditions[]
Definition wstag211.c:334
u16 actor30Talk0Actions[]
Definition wstag211.c:187
FieldActorEntry actor20
Definition wstag211.c:443
FieldTalk actor26Talks[]
Definition wstag211.c:290
u16 actor5Conditions[]
Definition wstag211.c:331
FieldTalk actor10Talks[]
Definition wstag211.c:242
FieldTalk actor3Talks[]
Definition wstag211.c:214
FieldTalk actor9Talks[]
Definition wstag211.c:238
BattleList area3Battles
Definition wstag211.c:144
AreaBattle area3Battle5
Definition wstag211.c:141
u16 actor31Talk0Actions[]
Definition wstag211.c:192
FieldTalk actor32Talks[]
Definition wstag211.c:314
AreaBattle area0Battle5
Definition wstag211.c:102
BattleList area1Battles
Definition wstag211.c:118
BattleList area2Battles
Definition wstag211.c:131
FieldActorEntry actor15
Definition wstag211.c:438
FieldActorEntry actor12
Definition wstag211.c:435
u16 actor27Conditions[]
Definition wstag211.c:385
FieldActorEntry actor16
Definition wstag211.c:439
u16 actor15Conditions[]
Definition wstag211.c:349
AreaBattle area1Battle4
Definition wstag211.c:114
u16 actor6Conditions[]
Definition wstag211.c:332
AreaBattle area2Battle2
Definition wstag211.c:125
AreaBattle area1Battle5
Definition wstag211.c:115
u16 actor14Conditions[]
Definition wstag211.c:348
FieldActorEntry actor30
Definition wstag211.c:453
FieldActorEntry actor7
Definition wstag211.c:430
StageSlot stageSlots[]
Definition wstag211.c:575
AreaBattle area2Battle1
Definition wstag211.c:124
FieldActorEntry actor13
Definition wstag211.c:436
FieldTalk actor24Talks[]
Definition wstag211.c:282
u16 actor32Talk0Actions[]
Definition wstag211.c:197
AreaBattle area1Battle3
Definition wstag211.c:113
AreaBattle area1Battle0
Definition wstag211.c:110
FieldActorEntry actor11
Definition wstag211.c:434
u16 actor25Conditions[]
Definition wstag211.c:383
FieldActorEntry actor1
Definition wstag211.c:424
FieldActorEntry actor21
Definition wstag211.c:444
AreaBattle area0Battle0
Definition wstag211.c:97
AreaBattle area0Battle2
Definition wstag211.c:99
FieldTalk actor13Talks[]
Definition wstag211.c:254
#define STAGE_FILE
Definition wstag211.c:31
AreaBattle area2Battle5
Definition wstag211.c:128
AreaBattle area1Battle1
Definition wstag211.c:111
u16 actor7Conditions[]
Definition wstag211.c:333
AreaBattle area2Battle3
Definition wstag211.c:126
u16 actor2Conditions[]
Definition wstag211.c:324
FieldTalk actor18Talks[]
Definition wstag211.c:258
FieldTalk actor7Talks[]
Definition wstag211.c:230
u16 actor20Conditions[]
Definition wstag211.c:366
AreaBattle area0Battle4
Definition wstag211.c:101
FieldActorEntry actor34
Definition wstag211.c:457
#define STAGE_TEXT
Definition wstag211.c:29
FieldTalk actor8Talks[]
Definition wstag211.c:234
FieldTalk actor30Talks[]
Definition wstag211.c:306
FieldTalk actor12Talks[]
Definition wstag211.c:250
AreaBattle area3Battle7
Definition wstag211.c:143
u16 actor21Conditions[]
Definition wstag211.c:371
BattleList area0Battles
Definition wstag211.c:105
AreaBattle area1Battle7
Definition wstag211.c:117
u16 actor28Conditions[]
Definition wstag211.c:386
u16 actor17Conditions[]
Definition wstag211.c:355
FieldTalk actor29Talks[]
Definition wstag211.c:302
FieldActorEntry actor3
Definition wstag211.c:426
FieldActorEntry actor26
Definition wstag211.c:449
FieldBattles stageBattles[]
Definition wstag211.c:149
u16 actor36Conditions[]
Definition wstag211.c:418
FieldActorEntry actor14
Definition wstag211.c:437
FieldEvent stageEvents[]
Definition wstag211.c:588
u16 actor12Conditions[]
Definition wstag211.c:346
FieldTalk actor22Talks[]
Definition wstag211.c:274
u16 actor0Conditions[]
Definition wstag211.c:318