Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
wstag331.c
Go to the documentation of this file.
1/*
2 * WSTAG331: Central Park, Central Sector. On the Amaterasu server; its Asuka
3 * server twin is WSTAG330.
4 */
5
6#include "common.h"
7#include "field/stage.h"
8
11
12/* After event 920, with Teddy: keeps it from playing again */
16
17/* After event 970, with Kail and Kurt: keeps it from playing again */
18void endEvent970(void) {
19 FLAGS_00.applyAction(FLAG(0x40, 0x6A), 1);
20}
21
22const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0x00 };
23#if VERSION_US || VERSION_JP
24#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_04)
25#define EVENT_TEXT_FILE (TEXT_EVENTS_300 - 1)
26#define STAGE_FILE 0x559
27#elif VERSION_EU
28#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_04)
29#define EVENT_TEXT_FILE (TEXT_EVENTS_300 - 1)
30#define STAGE_FILE 0x569
31#endif
32/*
33 * Sets the stage up: its map, actors, battles and events, playing FIELDBGM;
34 * BGM_0029 instead except at STORY_PRESIDENT_ARRESTED once flag 0x1A0A is set
35 */
61
63 SCRIPT_WALK(2, 0x514, 0x184, 5),
64 SCRIPT_PLACE(0xC, 0x460, 0x200),
65 SCRIPT_POSE(0xC, 1, 5),
68 SCRIPT_POSE(2, 1, 5),
69 SCRIPT_WAIT(0x1E),
70 SCRIPT_TALK(0, 1, 2, 2),
72 SCRIPT_WAIT(0x1E),
73 SCRIPT_WALK(0xC, 0x4A6, 0x1DC, 5),
75 SCRIPT_TALK(0, 2, 0xC, 2),
76 SCRIPT_POSE(0xC, 0x42, 7),
78 SCRIPT_WALK(0xC, 0x4B6, 0x1D4, 5),
80 SCRIPT_WALK(0xC, 0x4F4, 0x194, 5),
81 SCRIPT_COMMAND(0x323, 0x325, 2),
82 SCRIPT_WAIT(0x3C),
83 SCRIPT_POSE(2, 1, 1),
84 SCRIPT_COMMAND(0x323, 0x326, 2),
85 SCRIPT_WAIT(0x1E),
86 SCRIPT_TALK(0, 3, 2, 2),
87 SCRIPT_POSE(2, 7, 1),
89 SCRIPT_POSE(2, 1, 1),
90 SCRIPT_WAIT(0x1E),
91 SCRIPT_TALK(0, 4, 0xC, 1),
92 SCRIPT_POSE(0xC, 7, 5),
94 SCRIPT_POSE(0xC, 1, 5),
95 SCRIPT_WAIT(0x1E),
96 SCRIPT_TALK(0, 5, 2, 2),
97 SCRIPT_POSE(2, 7, 1),
99 SCRIPT_POSE(2, 1, 1),
100 SCRIPT_WAIT(0x1E),
101 SCRIPT_TALK(0, 6, 0xC, 1),
102 SCRIPT_POSE(0xC, 7, 5),
104 SCRIPT_POSE(0xC, 1, 5),
105 SCRIPT_WAIT(0x1E),
106 SCRIPT_TALK(0, 7, 2, 2),
107 SCRIPT_POSE(2, 7, 1),
109 SCRIPT_POSE(2, 1, 1),
110 SCRIPT_WAIT(0x1E),
111 SCRIPT_TALK(0, 8, 0xC, 1),
112 SCRIPT_POSE(0xC, 7, 5),
114 SCRIPT_POSE(0xC, 1, 5),
115 SCRIPT_WAIT(0x1E),
116 SCRIPT_TALK(0, 9, 2, 2),
117 SCRIPT_POSE(2, 7, 1),
119 SCRIPT_POSE(2, 1, 1),
120 SCRIPT_WAIT(0x1E),
121 SCRIPT_LEAVE(0x272, 0x2DA, 0xEC, 4),
123};
125 SCRIPT_WALK(2, 0x572, 0x142, 5),
126#if VERSION_US
127 SCRIPT_PLACE(0xB, 0x5A8, 0xEC),
128 SCRIPT_POSE(0xB, 1, 7),
129#endif
130 SCRIPT_PLACE(0xB2, 0x5A8, 0xEC),
131 SCRIPT_POSE(0xB2, 1, 7),
132 SCRIPT_PLACE(0x13D, 0x5C0, 0xE0),
133 SCRIPT_POSE(0x13D, 1, 1),
136 SCRIPT_POSE(2, 1, 5),
137 SCRIPT_WAIT(0x1E),
138 SCRIPT_COMMAND(0x323, 0x325, 2),
139 SCRIPT_WAIT(0x3C),
140 SCRIPT_COMMAND(0x323, 0x326, 2),
141 SCRIPT_WAIT(0x1E),
142 SCRIPT_TALK(0, 0x14, 2, 1),
144 SCRIPT_WAIT(0x1E),
145#if VERSION_EU || VERSION_JP
146 SCRIPT_FOLLOW(0, 0xB2),
147 SCRIPT_POSE(0xB2, 1, 1),
148 SCRIPT_POSE(0x13D, 1, 1),
149 SCRIPT_COMMAND(0x323, 0x325, 0xB2),
150 SCRIPT_WAIT(0x3C),
151#endif
152 SCRIPT_WALK(2, 0x5C0, 0xF8, 5),
153#if VERSION_US
154 SCRIPT_POSE(0xB, 1, 0),
155#endif
156 SCRIPT_POSE(0xB2, 1, 0),
157#if VERSION_US
158 SCRIPT_COMMAND(0x323, 0x325, 0xB),
159 SCRIPT_WAIT(0x3C),
160 SCRIPT_POSE(0xB, 1, 7),
161#elif VERSION_EU || VERSION_JP
162 SCRIPT_COMMAND(0x323, 0x326, 0xB2),
164 SCRIPT_POSE(2, 1, 3),
165#endif
166 SCRIPT_POSE(0xB2, 1, 7),
167 SCRIPT_POSE(0x13D, 1, 0),
168#if VERSION_US
169 SCRIPT_COMMAND(0x323, 0x326, 0xB),
170#endif
171 SCRIPT_WAIT(0x1E),
172#if VERSION_US
173 SCRIPT_TALK(0, 1, 0xB, 0),
174#elif VERSION_EU || VERSION_JP
175 SCRIPT_TALK(0, 1, 0xB2, 0),
176#endif
178 SCRIPT_WAIT(0x1E),
179 SCRIPT_TALK(0, 0x15, 0x13D, 2),
181 SCRIPT_WAIT(0x1E),
182 SCRIPT_TALK(0, 2, 2, 3),
183 SCRIPT_POSE(2, 7, 3),
185 SCRIPT_POSE(2, 1, 3),
186 SCRIPT_WAIT(0x1E),
187#if VERSION_US
188 SCRIPT_TALK(0, 3, 0xB, 0),
189 SCRIPT_POSE(0xB, 0xC, 7),
190#elif VERSION_EU || VERSION_JP
191 SCRIPT_TALK(0, 3, 0xB2, 0),
192#endif
194#if VERSION_US
195 SCRIPT_POSE(0xB, 1, 7),
196#endif
197 SCRIPT_WAIT(0x1E),
198 SCRIPT_TALK(0, 4, 2, 3),
199 SCRIPT_POSE(2, 7, 3),
201 SCRIPT_POSE(2, 1, 3),
202 SCRIPT_WAIT(0x1E),
203#if VERSION_US
204 SCRIPT_TALK(0, 5, 0xB, 0),
205#elif VERSION_EU || VERSION_JP
206 SCRIPT_TALK(0, 5, 0xB2, 0),
207#endif
209 SCRIPT_WAIT(0x1E),
210 SCRIPT_TALK(0, 6, 2, 3),
211 SCRIPT_POSE(2, 7, 3),
213 SCRIPT_POSE(2, 1, 3),
214 SCRIPT_WAIT(0x1E),
215#if VERSION_US
216 SCRIPT_TALK(0, 7, 0xB, 0),
217#elif VERSION_EU || VERSION_JP
218 SCRIPT_TALK(0, 7, 0xB2, 0),
219#endif
221 SCRIPT_WAIT(0x1E),
222 SCRIPT_TALK(0, 0x12, 2, 3),
223 SCRIPT_POSE(2, 7, 3),
225 SCRIPT_POSE(2, 1, 3),
226 SCRIPT_WAIT(0x1E),
227 SCRIPT_WAIT(0x1E),
228#if VERSION_US
229 SCRIPT_TALK(0, 0x13, 0xB, 0),
230#elif VERSION_EU || VERSION_JP
231 SCRIPT_TALK(0, 0x13, 0xB2, 0),
232#endif
234 SCRIPT_WAIT(0x1E),
235 SCRIPT_TALK(0, 8, 2, 3),
236 SCRIPT_POSE(2, 7, 3),
238 SCRIPT_POSE(2, 1, 3),
239 SCRIPT_WAIT(0x1E),
240#if VERSION_US
241 SCRIPT_TALK(0, 0xA, 0xB, 0),
242#elif VERSION_EU || VERSION_JP
243 SCRIPT_TALK(0, 0xA, 0xB2, 0),
244#endif
246 SCRIPT_WAIT(0x1E),
247 SCRIPT_POSE(2, 1, 1),
248 SCRIPT_COMMAND(0x323, 0x327, 2),
249 SCRIPT_WAIT(0x3C),
250 SCRIPT_COMMAND(0x323, 0x326, 2),
251 SCRIPT_WAIT(0x1E),
252 SCRIPT_COMMAND(0x323, 0x325, 2),
253 SCRIPT_WAIT(0x3C),
254 SCRIPT_POSE(2, 1, 3),
255 SCRIPT_COMMAND(0x323, 0x326, 2),
256 SCRIPT_WAIT(0x1E),
257 SCRIPT_TALK(0, 0xB, 2, 3),
258 SCRIPT_POSE(2, 7, 3),
260 SCRIPT_POSE(2, 1, 3),
261 SCRIPT_WAIT(0x1E),
262#if VERSION_US
263 SCRIPT_FOLLOW(0, 0xB),
264#elif VERSION_EU || VERSION_JP
265 SCRIPT_FOLLOW(0, 0xB2),
266#endif
267 SCRIPT_WALK(2, 0x5E0, 0xE8, 5),
268#if VERSION_US
269 SCRIPT_POSE(0xB, 1, 6),
270#endif
271 SCRIPT_POSE(0xB2, 1, 6),
272 SCRIPT_POSE(0x13D, 1, 7),
273#if VERSION_US
274 SCRIPT_COMMAND(0x323, 0x325, 0xB),
275#elif VERSION_EU || VERSION_JP
276 SCRIPT_COMMAND(0x323, 0x325, 0xB2),
277#endif
279#if VERSION_US
280 SCRIPT_TALK(0, 0xC, 0xB, 0),
281#elif VERSION_EU || VERSION_JP
282 SCRIPT_TALK(0, 0xC, 0xB2, 0),
283#endif
284 SCRIPT_POSE(2, 1, 5),
285 SCRIPT_COMMAND(0x323, 0x326, 0xB),
287 SCRIPT_POSE(2, 1, 2),
288 SCRIPT_WAIT(0x1E),
289 SCRIPT_TALK(0, 0xD, 2, 0),
290 SCRIPT_POSE(2, 7, 2),
292 SCRIPT_POSE(2, 1, 2),
293 SCRIPT_WAIT(0x1E),
294#if VERSION_US
295 SCRIPT_COMMAND(0x323, 0x327, 0xB),
296#elif VERSION_EU || VERSION_JP
297 SCRIPT_COMMAND(0x323, 0x327, 0xB2),
298#endif
299 SCRIPT_WAIT(0x3C),
300 SCRIPT_COMMAND(0x323, 0x326, 0xB),
301 SCRIPT_WAIT(0x1E),
302#if VERSION_US
303 SCRIPT_TALK(0, 0xE, 0xB, 1),
304#elif VERSION_EU || VERSION_JP
305 SCRIPT_TALK(0, 0xE, 0xB2, 1),
306#endif
308 SCRIPT_WAIT(0x1E),
309 SCRIPT_TALK(0, 0xF, 2, 2),
310 SCRIPT_POSE(2, 7, 2),
312 SCRIPT_POSE(2, 1, 2),
313 SCRIPT_WAIT(0x1E),
314 SCRIPT_WALK(2, 0x678, 0x9C, 5),
315#if VERSION_US
316 SCRIPT_POSE(0xB, 1, 5),
317#endif
318 SCRIPT_POSE(0xB2, 1, 5),
319 SCRIPT_POSE(0x13D, 1, 5),
320 SCRIPT_WAIT(0x5A),
321 SCRIPT_TALK(1, 0x16, 0x13D, 0),
322#if VERSION_US
323 SCRIPT_TALK(0, 0x10, 0xB, 1),
324#elif VERSION_EU || VERSION_JP
325 SCRIPT_TALK(0, 0x10, 0xB2, 1),
326#endif
328 SCRIPT_WAIT(0x1E),
329#if VERSION_US
330 SCRIPT_TALK(0, 0x11, 0xB, 1),
331#elif VERSION_EU || VERSION_JP
332 SCRIPT_TALK(0, 0x11, 0xB2, 1),
333#endif
335#if VERSION_US
336 SCRIPT_POSE(0xB, 1, 7),
337#endif
338 SCRIPT_POSE(0xB2, 1, 7),
339 SCRIPT_POSE(0x13D, 1, 1),
340 SCRIPT_WAIT(0x1E),
341#if VERSION_US
342 SCRIPT_TALK(0, 0x17, 0xB, 3),
343#elif VERSION_EU || VERSION_JP
344 SCRIPT_TALK(0, 0x17, 0xB2, 3),
345#endif
347 SCRIPT_WAIT(0x1E),
348 SCRIPT_LEAVE(0x2D7, 1, 1, 0),
350};
377AreaBattle area2Battle0 = { 0, 0, MUSIC(1, 0) };
378AreaBattle area2Battle1 = { 0, 0, MUSIC(1, 0) };
379AreaBattle area2Battle2 = { 0, 0, MUSIC(1, 0) };
380AreaBattle area2Battle3 = { 0, 0, MUSIC(1, 0) };
381AreaBattle area2Battle4 = { 0, 0, MUSIC(1, 0) };
382AreaBattle area2Battle5 = { 0, 0, MUSIC(1, 0) };
383AreaBattle area2Battle6 = { 0, 0, MUSIC(1, 0) };
384AreaBattle area2Battle7 = { 0, 0, MUSIC(1, 0) };
392AreaBattle area3Battle2 = { 0, 0, MUSIC(1, 0) };
395AreaBattle area3Battle5 = { 0, 0, MUSIC(1, 0) };
407 { 0x200, 0x100, 0x21C, 0x1A6, 0x70, 0xA6, 0x230, 0x1FE },
408 { 0x200, 0x100, 0x200, 0x100, 0, 0, 0x220, 0x1FE },
409 { 0x200, 0x100, 0x216, 0x138, 0x58, 0x38, 0x200, 0x1FD },
410 { 0x200, 0x100, 0x208, 0x1BC, 0x20, 0xBC, 0x210, 0x1FD },
411 { 0x200, 0x100, 0x210, 0x1BC, 0x40, 0xBC, 0x220, 0x1FD },
412 { 0x200, 0x100, 0x200, 0x1BC, 0, 0xBC, 0x230, 0x1FD },
413#if VERSION_US
414 { 0x180, 0x100, 0x180, 0x128, 0x100, 0x28, 0x150, 0x1FF },
415#endif
416 { 0x180, 0x100, 0x188, 0x128, 0x120, 0x28, 0x160, 0x1FF },
417 { 0x140, 0x100, 0x178, 0x100, 0xE0, 0, 0x170, 0x1FF },
418 { 0x140, 0x100, 0x174, 0x180, 0xD0, 0x80, 0x140, 0x1FE },
419 { 0x140, 0x100, 0x16A, 0x1B0, 0xA8, 0xB0, 0x150, 0x1FE },
420 { 0x140, 0x100, 0x178, 0x120, 0xE0, 0x20, 0x160, 0x1FE },
421 { 0x180, 0x100, 0x190, 0x128, 0x140, 0x28, 0x170, 0x1FE },
422 { 0x180, 0x100, 0x188, 0x100, 0x120, 0, 0x150, 0x1FD },
423 { 0x180, 0x100, 0x190, 0x100, 0x140, 0, 0x160, 0x1FD },
424 { 0x180, 0x100, 0x198, 0x100, 0x160, 0, 0x170, 0x1FD },
425 { 0x180, 0x100, 0x1A0, 0x100, 0x180, 0, 0x140, 0x1FC },
426 { 0x180, 0x100, 0x198, 0x128, 0x160, 0x28, 0x150, 0x1FC },
427 { 0x180, 0x100, 0x1A0, 0x128, 0x180, 0x28, 0x160, 0x1FC },
428 { 0, 0, 0, 0, 0, 0, 0, 0 },
429 { 0x180, 0x100, 0x1A8, 0x100, 0x1A0, 0, 0x170, 0x1FC },
430 { 0x180, 0x100, 0x1B0, 0x100, 0x1C0, 0, 0x140, 0x1FB },
431 { 0x180, 0x100, 0x1A8, 0x128, 0x1A0, 0x28, 0x150, 0x1FB },
432 { 0x180, 0x100, 0x1B0, 0x128, 0x1C0, 0x28, 0x160, 0x1FB },
433 { 0x180, 0x100, 0x180, 0x148, 0x100, 0x48, 0x170, 0x1FB },
434 { 0x180, 0x100, 0x188, 0x148, 0x120, 0x48, 0x140, 0x1FA },
435 { 0x180, 0x100, 0x190, 0x148, 0x140, 0x48, 0x150, 0x1FA },
436 { 0x180, 0x100, 0x198, 0x148, 0x160, 0x48, 0x160, 0x1FA },
437 { 0x180, 0x100, 0x1A0, 0x148, 0x180, 0x48, 0x170, 0x1FA },
438 { 0x180, 0x100, 0x1A8, 0x148, 0x1A0, 0x48, 0x140, 0x1F9 },
439};
440/* The Super Charge the player finds: taken (flag 0x021D), given and special action 0x13 */
458 FLAG(0, 0), 1,
459 PARTY_STAT(9), 1,
460 PARTY_STAT(0xB), 1,
462 CODES_END,
463};
466 FLAG(0, 0), 1,
467 PARTY_STAT(9), 1,
468 PARTY_STAT(0xB), 1,
470 CODES_END,
471};
474u16 talks4Talk1Conditions[] = { FLAG(0, 0), 1, FLAG(0xE, 0x3C), 0, CODES_END };
475u16 talks4Talk1Actions[] = { EVENT_BATTLE(0), 1, FLAG(0xE, 0x3C), 1, CODES_END };
476u16 talks4Talk2Conditions[] = { FLAG(0, 0), 1, FLAG(0xE, 0x3C), 1, PARTY_STAT(0xD), 0, CODES_END };
477u16 talks4Talk3Conditions[] = { FLAG(0, 0), 1, FLAG(0xE, 0x3C), 1, PARTY_STAT(0xD), 1, CODES_END };
480u16 talks6Talk0Conditions[] = { ITEM(0, 0x28), 1, ITEM(0, 0x29), 0, CODES_END };
482u16 talks6Talk1Conditions[] = { ITEM(0, 0x28), 1, ITEM(0, 0x29), 1, CODES_END };
485#if VERSION_US
486 { NULL, NULL, 0x39A },
487#elif VERSION_EU || VERSION_JP
488 { NULL, superChargeActions, 0x17D },
489#endif
490 { NULL, NULL, 0 },
491};
493#if VERSION_US
494 { NULL, superChargeActions, 0x17D },
495#elif VERSION_EU || VERSION_JP
496 { NULL, NULL, 0x21 },
497#endif
498 { NULL, NULL, 0 },
499};
501#if VERSION_US
502 { NULL, NULL, 0x21 },
503#elif VERSION_EU || VERSION_JP
504 { NULL, NULL, 0x24 },
505#endif
506 { NULL, NULL, 0 },
507};
509#if VERSION_US
510 { NULL, NULL, 0x24 },
511#elif VERSION_EU || VERSION_JP
512 { NULL, NULL, 0x1B },
513#endif
514 { NULL, NULL, 0 },
515};
517#if VERSION_US
518 { NULL, NULL, 0x1B },
519#elif VERSION_EU || VERSION_JP
520 { NULL, NULL, 0x1E },
521#endif
522 { NULL, NULL, 0 },
523};
525#if VERSION_US
526 { NULL, NULL, 0x1E },
527#elif VERSION_EU || VERSION_JP
528 { NULL, NULL, 0x26 },
529#endif
530 { NULL, NULL, 0 },
531};
533#if VERSION_US
534 { NULL, NULL, 0x26 },
535#elif VERSION_EU || VERSION_JP
536 { NULL, NULL, 0x2A },
537#endif
538 { NULL, NULL, 0 },
539};
541#if VERSION_US
542 { NULL, NULL, 0x2A },
543#elif VERSION_EU || VERSION_JP
544 { NULL, NULL, 0x28 },
545#endif
546 { NULL, NULL, 0 },
547};
549#if VERSION_US
550 { NULL, NULL, 0x28 },
551#elif VERSION_EU || VERSION_JP
552 { NULL, NULL, 0x29 },
553#endif
554 { NULL, NULL, 0 },
555};
557#if VERSION_US
558 { NULL, NULL, 0x29 },
559#elif VERSION_EU || VERSION_JP
560 { NULL, NULL, 0x15 },
561#endif
562 { NULL, NULL, 0 },
563};
565#if VERSION_US
566 { NULL, NULL, 0x15 },
567#elif VERSION_EU || VERSION_JP
568 { NULL, NULL, 0x18 },
569#endif
570 { NULL, NULL, 0 },
571};
573#if VERSION_US
574 { NULL, NULL, 0x18 },
575#elif VERSION_EU || VERSION_JP
576 { NULL, NULL, 0x27 },
577#endif
578 { NULL, NULL, 0 },
579};
581#if VERSION_US
582 { NULL, NULL, 0x27 },
583#elif VERSION_EU || VERSION_JP
584 { NULL, NULL, 0x13 },
585#endif
586 { NULL, NULL, 0 },
587};
588/* The sign's talks: the USA version's actor 14, the European actor 13 (actor13Talks) */
589#if VERSION_US
590FieldTalk signTalks[] = {
591 { NULL, NULL, 0x13 },
592 { NULL, NULL, 0 },
593};
594#endif
602 { NULL, NULL, 0x24B },
603 { NULL, NULL, 0 },
604};
621 { NULL, talks5Talk0Actions, 0x2D8 },
622 { NULL, NULL, 0 },
623};
630 { NULL, NULL, 0x22 },
631 { NULL, NULL, 0 },
632};
634 { NULL, NULL, 0x20 },
635 { NULL, NULL, 0 },
636};
638 { NULL, NULL, 0x25 },
639 { NULL, NULL, 0 },
640};
642 { NULL, NULL, 0x23 },
643 { NULL, NULL, 0 },
644};
646 { NULL, NULL, 0x16 },
647 { NULL, NULL, 0 },
648};
650 { NULL, NULL, 0x14 },
651 { NULL, NULL, 0 },
652};
654 { NULL, NULL, 0x19 },
655 { NULL, NULL, 0 },
656};
658 { NULL, NULL, 0x17 },
659 { NULL, NULL, 0 },
660};
662 { NULL, NULL, 0x1F },
663 { NULL, NULL, 0 },
664};
666 { NULL, NULL, 0x1D },
667 { NULL, NULL, 0 },
668};
670 { NULL, NULL, 0x1C },
671 { NULL, NULL, 0 },
672};
674 { NULL, NULL, 0x1A },
675 { NULL, NULL, 0 },
676};
678#if VERSION_US
679 { NULL, NULL, 0x346 },
680#elif VERSION_EU || VERSION_JP
681 { NULL, NULL, 0x39A },
682#endif
683 { NULL, NULL, 0 },
684};
686#if VERSION_US
687 { NULL, NULL, 0x347 },
688#elif VERSION_EU || VERSION_JP
689 { NULL, NULL, 0x346 },
690#endif
691 { NULL, NULL, 0 },
692};
694 { NULL, NULL, 0x347 },
695 { NULL, NULL, 0 },
696};
697/* Here the USA version has Kail's conditions, the European one Kurt's talks */
698#if VERSION_US
700#elif VERSION_EU || VERSION_JP
702 { NULL, NULL, 0x347 },
703 { NULL, NULL, 0 },
704};
705#endif
768u16 actorConditions17[] = { ITEM(0, 0x2A), 1, CODES_END };
769u16 actorConditions18[] = { ITEM(0, 0x2A), 0, CODES_END };
806#if VERSION_EU || VERSION_JP
808#endif
812#if VERSION_US
813FieldActorEntry actor0 = { kailConditions, talks0, 0xB, 4, 1448, 236, 7 };
814#elif VERSION_EU || VERSION_JP
816#endif
817#if VERSION_US
818FieldActorEntry actor1 = { actorConditions0, NULL, 0xC, 5, 0, 0, 1 };
819#elif VERSION_EU || VERSION_JP
820FieldActorEntry actor1 = { actorConditions1, talks0, 0x21, 5, 737, 954, 1 };
821#endif
822#if VERSION_US
823FieldActorEntry actor2 = { actorConditions1, actor2Talks, 0x21, 6, 737, 954, 1 };
824#elif VERSION_EU || VERSION_JP
826#endif
827#if VERSION_US
828FieldActorEntry actor3 = { actorConditions2, actor3Talks, 0x25, 7, 1072, 665, 1 };
829#elif VERSION_EU || VERSION_JP
831#endif
832#if VERSION_US
833FieldActorEntry actor4 = { actorConditions3, actor4Talks, 0x26, 8, 864, 577, 5 };
834#elif VERSION_EU || VERSION_JP
836#endif
837#if VERSION_US
838FieldActorEntry actor5 = { actorConditions4, actor5Talks, 0x2D, 9, 688, 633, 1 };
839#elif VERSION_EU || VERSION_JP
841#endif
842#if VERSION_US
843FieldActorEntry actor6 = { actorConditions5, actor6Talks, 0x2E, 0xA, 913, 233, 3 };
844#elif VERSION_EU || VERSION_JP
845FieldActorEntry actor6 = { actorConditions6, actor6Talks, 0x30, 0xA, 401, 785, 1 };
846#endif
847#if VERSION_US
848FieldActorEntry actor7 = { actorConditions6, actor7Talks, 0x30, 0xB, 401, 785, 1 };
849#elif VERSION_EU || VERSION_JP
850FieldActorEntry actor7 = { actorConditions7, actor7Talks, 0x31, 0xB, 545, 385, 7 };
851#endif
852#if VERSION_US
853FieldActorEntry actor8 = { actorConditions7, actor8Talks, 0x31, 0xC, 545, 385, 7 };
854#elif VERSION_EU || VERSION_JP
855FieldActorEntry actor8 = { actorConditions8, actor8Talks, 0x34, 0xC, 560, 728, 7 };
856#endif
857#if VERSION_US
858FieldActorEntry actor9 = { actorConditions8, actor9Talks, 0x34, 0xD, 560, 728, 7 };
859#elif VERSION_EU || VERSION_JP
860FieldActorEntry actor9 = { actorConditions9, actor9Talks, 0x38, 0xD, 864, 577, 5 };
861#endif
862#if VERSION_US
863FieldActorEntry actor10 = { actorConditions9, actor10Talks, 0x38, 0xE, 864, 577, 5 };
864#elif VERSION_EU || VERSION_JP
866#endif
867#if VERSION_US
868FieldActorEntry actor11 = { actorConditions10, actor11Talks, 0x39, 0xF, 560, 728, 7 };
869#elif VERSION_EU || VERSION_JP
871#endif
872#if VERSION_US
873FieldActorEntry actor12 = { actorConditions11, actor12Talks, 0x3A, 0x10, 401, 785, 1 };
874#elif VERSION_EU || VERSION_JP
876#endif
877#if VERSION_US
878FieldActorEntry actor13 = { actorConditions12, actor13Talks, 0x3A, 0x10, 1072, 665, 1 };
879#elif VERSION_EU || VERSION_JP
880FieldActorEntry actor13 = { NULL, actor13Talks, 0x3F, 0x10, 961, 681, 1 };
881#endif
882#if VERSION_US
883FieldActorEntry actor14 = { NULL, signTalks, 0x3F, 0x11, 961, 681, 1 };
884#elif VERSION_EU || VERSION_JP
885FieldActorEntry actor14 = { actorConditions13, talks1, 0x45, 0x11, 1152, 793, 1 };
886#endif
887#if VERSION_US
888FieldActorEntry actor15 = { actorConditions13, talks1, 0x45, 0x12, 1152, 793, 1 };
889#elif VERSION_EU || VERSION_JP
890FieldActorEntry actor15 = { actorConditions14, talks2, 0x45, 0x11, 1152, 793, 1 };
891#endif
892#if VERSION_US
893FieldActorEntry actor16 = { actorConditions14, talks2, 0x45, 0x12, 1152, 793, 1 };
894#elif VERSION_EU || VERSION_JP
895FieldActorEntry actor16 = { actorConditions15, talks3, 0x45, 0x11, 1152, 793, 1 };
896#endif
897#if VERSION_US
898FieldActorEntry actor17 = { actorConditions15, talks3, 0x45, 0x12, 1152, 793, 1 };
899#elif VERSION_EU || VERSION_JP
900FieldActorEntry actor17 = { actorConditions16, talks4, 0x45, 0x11, 1152, 793, 1 };
901#endif
902#if VERSION_US
903FieldActorEntry actor18 = { actorConditions16, talks4, 0x45, 0x12, 1152, 793, 1 };
904#elif VERSION_EU || VERSION_JP
905FieldActorEntry actor18 = { actorConditions17, talks5, 0x89, 0x12, 923, 374, 7 };
906#endif
907#if VERSION_US
908FieldActorEntry actor19 = { actorConditions17, talks5, 0x89, 0x13, 923, 374, 7 };
909#elif VERSION_EU || VERSION_JP
910FieldActorEntry actor19 = { actorConditions18, talks6, 0x89, 0x12, 923, 374, 7 };
911#endif
912#if VERSION_US
913FieldActorEntry actor20 = { actorConditions18, talks6, 0x89, 0x13, 923, 374, 7 };
914#elif VERSION_EU || VERSION_JP
915FieldActorEntry actor20 = { actorConditions19, talks7, 0x9D, 0x13, 1072, 665, 1 };
916#endif
917#if VERSION_US
918FieldActorEntry actor21 = { actorConditions19, talks7, 0x9D, 0x14, 1072, 665, 1 };
919#elif VERSION_EU || VERSION_JP
920FieldActorEntry actor21 = { actorConditions20, talks8, 0x9D, 0x13, 1072, 665, 1 };
921#endif
922#if VERSION_US
923FieldActorEntry actor22 = { actorConditions20, talks8, 0x9D, 0x14, 1072, 665, 1 };
924#elif VERSION_EU || VERSION_JP
925FieldActorEntry actor22 = { actorConditions21, talks9, 0x9E, 0x14, 864, 577, 5 };
926#endif
927#if VERSION_US
928FieldActorEntry actor23 = { actorConditions21, talks9, 0x9E, 0x15, 864, 577, 5 };
929#elif VERSION_EU || VERSION_JP
930FieldActorEntry actor23 = { actorConditions22, talks10, 0x9E, 0x14, 864, 577, 5 };
931#endif
932#if VERSION_US
933FieldActorEntry actor24 = { actorConditions22, talks10, 0x9E, 0x15, 864, 577, 5 };
934#elif VERSION_EU || VERSION_JP
935FieldActorEntry actor24 = { actorConditions23, talks11, 0x9F, 0x15, 560, 728, 7 };
936#endif
937#if VERSION_US
938FieldActorEntry actor25 = { actorConditions23, talks11, 0x9F, 0x16, 560, 728, 7 };
939#elif VERSION_EU || VERSION_JP
940FieldActorEntry actor25 = { actorConditions24, talks12, 0x9F, 0x15, 560, 728, 7 };
941#endif
942#if VERSION_US
943FieldActorEntry actor26 = { actorConditions24, talks12, 0x9F, 0x16, 560, 728, 7 };
944#elif VERSION_EU || VERSION_JP
945FieldActorEntry actor26 = { actorConditions25, talks13, 0xA0, 0x16, 401, 785, 1 };
946#endif
947#if VERSION_US
948FieldActorEntry actor27 = { actorConditions25, talks13, 0xA0, 0x17, 401, 785, 1 };
949#elif VERSION_EU || VERSION_JP
950FieldActorEntry actor27 = { actorConditions26, talks14, 0xA0, 0x16, 401, 785, 1 };
951#endif
952#if VERSION_US
953FieldActorEntry actor28 = { actorConditions26, talks14, 0xA0, 0x17, 401, 785, 1 };
954#elif VERSION_EU || VERSION_JP
955FieldActorEntry actor28 = { actorConditions27, talks15, 0xA1, 0x17, 913, 233, 3 };
956#endif
957#if VERSION_US
958FieldActorEntry actor29 = { actorConditions27, talks15, 0xA1, 0x18, 913, 233, 3 };
959#elif VERSION_EU || VERSION_JP
960FieldActorEntry actor29 = { actorConditions28, talks16, 0xA1, 0x17, 913, 233, 3 };
961#endif
962#if VERSION_US
963FieldActorEntry actor30 = { actorConditions28, talks16, 0xA1, 0x18, 913, 233, 3 };
964#elif VERSION_EU || VERSION_JP
965FieldActorEntry actor30 = { actorConditions29, talks17, 0xA2, 0x18, 688, 633, 1 };
966#endif
967#if VERSION_US
968FieldActorEntry actor31 = { actorConditions29, talks17, 0xA2, 0x19, 688, 633, 1 };
969#elif VERSION_EU || VERSION_JP
970FieldActorEntry actor31 = { actorConditions30, talks18, 0xA2, 0x18, 688, 633, 1 };
971#endif
972#if VERSION_US
973FieldActorEntry actor32 = { actorConditions30, talks18, 0xA2, 0x19, 688, 633, 1 };
974#elif VERSION_EU || VERSION_JP
975FieldActorEntry actor32 = { kailConditions, talks19, 0xB2, 0x19, 1448, 236, 7 };
976#endif
977#if VERSION_US
978FieldActorEntry actor33 = { actor33Conditions, talks19, 0xB2, 0x1A, 1110, 595, 1 };
979#elif VERSION_EU || VERSION_JP
980FieldActorEntry actor33 = { actor33Conditions, talks20, 0xB2, 0x19, 1110, 595, 1 };
981#endif
982#if VERSION_US
983FieldActorEntry actor34 = { actor34Conditions, talks20, 0x13D, 0x1B, 1088, 584, 1 };
984#elif VERSION_EU || VERSION_JP
985FieldActorEntry actor34 = { actor34Conditions, talks21, 0x13D, 0x1A, 1088, 584, 1 };
986#endif
987#if VERSION_US
988FieldActorEntry actor35 = { actor35Conditions, talks21, 0x13D, 0x1B, 1472, 224, 1 };
989#elif VERSION_EU || VERSION_JP
990FieldActorEntry actor35 = { actor35Conditions, kurtTalks, 0x13D, 0x1A, 1472, 224, 1 };
991#endif
993 &actor0,
994 &actor1,
995 &actor2,
996 &actor3,
997 &actor4,
998 &actor5,
999 &actor6,
1000 &actor7,
1001 &actor8,
1002 &actor9,
1003 &actor10,
1004 &actor11,
1005 &actor12,
1006 &actor13,
1007 &actor14,
1008 &actor15,
1009 &actor16,
1010 &actor17,
1011 &actor18,
1012 &actor19,
1013 &actor20,
1014 &actor21,
1015 &actor22,
1016 &actor23,
1017 &actor24,
1018 &actor25,
1019 &actor26,
1020 &actor27,
1021 &actor28,
1022 &actor29,
1023 &actor30,
1024 &actor31,
1025 &actor32,
1026 &actor33,
1027 &actor34,
1028 &actor35,
1029 NULL,
1030};
1032 { 1, 0, 0x40, 2, 6, 0, 0, 0, 0, 0, 787, 422, 0, 0 },
1033 { 1, 0, 0x40, 2, 9, 0, 0, 0, 0, 0, 200, 248, 0, 0 },
1034 { 1, 0, 0x40, 2, 9, 0, 0, 0, 0, 0, 408, 880, 0, 0 },
1035 { 1, 0, 0x40, 2, 9, 0, 0, 0, 0, 0, 1320, 887, 0, 0 },
1036 { 1, 0, 0x40, 6, 0x2C, 1, 0x2C, 0x3B, 0xA, 0, 51, 661, 0, 0 },
1037 { 1, 0, 0x40, 6, 0x2C, 1, 0x2C, 0x3B, 0xA, 0, 159, 547, 0, 0 },
1038 { 1, 0, 0x40, 6, 0x2C, 1, 0x2C, 0x3B, 0xA, 0, 1084, 1101, 0, 0 },
1039 { 1, 0, 0x40, 6, 0x2C, 1, 0x2C, 0x3B, 0xA, 0, 1091, 247, 0, 0 },
1040 { 1, 0, 0x40, 6, 0x2C, 1, 0x2C, 0x3B, 0xA, 0, 1517, 432, 0, 0 },
1041 { 1, 0, 0x40, 6, 0x3C, 1, 0x3C, 0x46, 0xA, 0, 92, 596, 0, 0 },
1042 { 1, 0, 0x40, 6, 0x3C, 1, 0x3C, 0x46, 0xA, 0, 226, 835, 0, 0 },
1043 { 1, 0, 0x40, 6, 0x3C, 1, 0x3C, 0x46, 0xA, 0, 532, 1050, 0, 0 },
1044 { 1, 0, 0x40, 6, 0x3C, 1, 0x3C, 0x46, 0xA, 0, 590, 68, 0, 0 },
1045 { 1, 0, 0x40, 6, 0x3C, 1, 0x3C, 0x46, 0xA, 0, 881, 481, 0, 0 },
1046 { 1, 0, 0x40, 6, 0x3C, 1, 0x3C, 0x46, 0xA, 0, 913, 1106, 0, 0 },
1047 { 1, 0, 0x40, 6, 0x3C, 1, 0x3C, 0x46, 0xA, 0, 1108, 362, 0, 0 },
1048 { 1, 0, 0x40, 6, 0x3C, 1, 0x3C, 0x46, 0xA, 0, 1357, 486, 0, 0 },
1049 { 1, 0, 0x72, 4, 0, 0, 0, 0, 0, 0, 765, 572, 665, 0 },
1050 { 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 951, 632, 679, 0 },
1051 { 1, 0, 0x7D, 4, 2, 0, 0, 0, 0, 0, 816, 122, 245, 0 },
1052 { 1, 0, 0x7D, 4, 3, 0, 0, 0, 0, 0, 800, 114, 238, 0 },
1053 { 1, 0, 0x7D, 4, 4, 0, 0, 0, 0, 0, 784, 106, 230, 0 },
1054 { 1, 0, 0x7D, 4, 5, 0, 0, 0, 0, 0, 767, 99, 223, 0 },
1055 { 1, 0, 0x46, 4, 0xF, 0, 0, 0, 0, 0, 1224, 424, 484, 0 },
1056 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 243, 754, 754, 0 },
1057 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 266, 606, 606, 0 },
1058 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 275, 778, 778, 0 },
1059 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 314, 630, 630, 0 },
1060 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 338, 538, 538, 0 },
1061 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 363, 654, 654, 0 },
1062 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 410, 678, 678, 0 },
1063 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 483, 930, 930, 0 },
1064 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 531, 906, 906, 0 },
1065 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 547, 674, 674, 0 },
1066 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 579, 882, 882, 0 },
1067 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 595, 650, 650, 0 },
1068 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 626, 474, 474, 0 },
1069 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 627, 858, 858, 0 },
1070 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 643, 994, 994, 0 },
1071 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 667, 454, 454, 0 },
1072 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 691, 490, 490, 0 },
1073 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 723, 826, 826, 0 },
1074 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 771, 802, 802, 0 },
1075 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 787, 938, 938, 0 },
1076 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 819, 778, 778, 0 },
1077 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 835, 194, 194, 0 },
1078 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 835, 914, 914, 0 },
1079 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 883, 890, 890, 0 },
1080 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 883, 938, 938, 0 },
1081 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 931, 914, 914, 0 },
1082 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 979, 378, 378, 0 },
1083 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 979, 890, 890, 0 },
1084 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1027, 402, 402, 0 },
1085 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1075, 426, 426, 0 },
1086 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1314, 642, 642, 0 },
1087 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1315, 690, 690, 0 },
1088 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1315, 738, 738, 0 },
1089 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1363, 570, 570, 0 },
1090 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1363, 618, 618, 0 },
1091 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1363, 666, 666, 0 },
1092 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1363, 714, 714, 0 },
1093 { 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1363, 762, 762, 0 },
1094 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
1095};
1097 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x272, 0x100, 0x1E0, 5, 0, 0, 0 },
1098 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x28D, 0x7C, 0x7E, 7, 0, 0, 0 },
1099 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x28E, 0x30A, 0x98, 1, 0, 0, 0 },
1100 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x28F, 0x4AC, 0x326, 3, 0, 0, 0 },
1101 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_UP, 3, 0x2CE, 0x124, 0, 0, 0, 0 },
1102 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_DOWN, 3, 0x2DF, 0xF0, 0, 0, 0, 0 },
1103 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_UP, 5, 0x324, 0x170, 0, 0, 0, 0 },
1104 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_DOWN, 5, 0x333, 0x11A, 0, 0, 0, 0 },
1105 { { { SPECIAL_STORY_SINCE_DE_SINCERITY, 1 }, { CODES_END, 0 } }, SLOT_WARP0, 0x2E5, 0x240, 0x120, 1, 0, 0xB, 1 },
1106 { { { SPECIAL_STORY_SINCE_DE_KNOWLEDGE, 1 }, { CODES_END, 0 } }, SLOT_WARP1, 0x2E8, 0x240, 0xD0, 1, 0, 0x1C, 1 },
1107 { { { SPECIAL_STORY_SINCE_DE_KNOWLEDGE, 1 }, { CODES_END, 0 } }, SLOT_WARP1, 0x2E8, 0x240, 0xD0, 1, 0, 3, 4 },
1108 { { { SPECIAL_STORY_SINCE_DE_KNOWLEDGE, 1 }, { CODES_END, 0 } }, SLOT_WARP1, 0x2E8, 0x240, 0xD0, 1, 0, 8, 2 },
1109 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0x60, 0xFFF0, 0, 0, 0, 0, 0 },
1110 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0, 0x30, 0, 0, 0, 0, 0 },
1111 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0, 0x40, 0, 0, 0, 0, 0 },
1112 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0xFFB0, 0x10, 0, 0, 0, 0, 0 },
1113 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0xFFC0, 0xFFE8, 0, 0, 0, 0, 0 },
1114 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0, 0xFFD8, 0, 0, 0, 0, 0 },
1115 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0xFFE0, 0x28, 0, 0, 0, 0, 0 },
1116 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0x30, 0x28, 0, 0, 0, 0, 0 },
1117 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0xFFD0, 0xFFF8, 0, 0, 0, 0, 0 },
1118 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0xFFC0, 0x14, 0, 0, 0, 0, 0 },
1119 { { { PROGRESS(STORY_BLACK_ID_PASS), 1 }, { FLAG_CENTRAL_PARK_SECRET_DOOR_SEEN, 0 } }, SLOT_EVENT, 0x398, 0, 0, 0, 0, 0, 0 },
1120 { { { PROGRESS(STORY_ASUKA_HEADQUARTERS), 1 }, { FLAG(0x40, 0x6A), 0 } }, SLOT_EVENT, 0x3CA, 0, 0, 0, 0, 0, 0 },
1121 { { { SPECIAL_STORY_SINCE_DE_SINCERITY, 1 }, { CODES_END, 0 } }, SLOT_WARP0, 0x2E5, 0x240, 0x120, 1, 0, 0xB, 1 },
1122 { { { CODES_END, 0 }, { CODES_END, 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
1123};
1124void (*stageFuncs[])(void) = {
1125 setupStage,
1126};
1128 { 920, script920, EVENT_TEXT(0xE), NULL, endEvent920 },
1129 { 970, script970, EVENT_TEXT(0x16), NULL, endEvent970 },
1130 { -1, NULL, 0, NULL, NULL },
1131};
#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 SLOT_CLIMB_UP
Definition field_map.h:256
#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 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_CLIMB_DOWN
Definition field_map.h:257
#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 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 SLOT_WARP0
the same with effect and cutscene 0
Definition field_map.h:264
#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 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 PARTY_STAT(id)
checkPartyStat
Definition game_state.h:71
#define CARD_BATTLE(opponent, kind)
action: startCardBattle
Definition game_state.h:73
#define MUSIC_BATTLE
BATL0000: the maps' random battles (AreaBattle, nearly all of them)
Definition sound.h:76
#define MUSIC_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_FIELD
FIELDBGM: Central Park, the Wire Forest Entrance, Shell Beach, Plug Cape.
Definition sound.h:83
#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,...
#define FLAG_CENTRAL_PARK_TROOPER_FOUGHT
wstag331 (Central Park): a Trooper says "You're suspicious." and starts a battle; set with it
Definition story.h:890
#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_BLACK_ID_PASS
WSTAG756 (Battle Gate), event 911: the Black ID Pass.
Definition story.h:131
@ STORY_PRESIDENT_ARRESTED
WSTAG226 (Login Room, Amaterasu City), event 935, after the President of MAGAMI gives himself up (WST...
Definition story.h:136
@ STORY_OPERATION_SIGMA
WSTAG311 (A.o.A Headquarters, Amaterasu City), event 982, after event 981, where the A....
Definition story.h:141
@ STORY_MOVIE_BATTLES
WSTAG820, event 1080, with Snatchmon: each encounter plays MODE_BATTLE_MOVIE first.
Definition story.h:146
@ STORY_ASUKA_HEADQUARTERS
WSTAG310 (A.o.A Headquarters, Asuka City), event 961.
Definition story.h:138
#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 FLAG_CENTRAL_PARK_SUPER_CHARGE_FOUND
wstag331: chest that gives the Super Charge, "I got" text; its conditions test it 0
Definition story.h:263
#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 FLAG_CARD_BATTLE_WON
set by updateModeFlags on the way back from a card battle: 1 if the player won it (FLAGS_00....
Definition story.h:166
#define FLAG_CARD_BATTLE_ENDED
set by updateModeFlags on the way back from a card battle; the talks that follow one test it and clea...
Definition story.h:169
#define SPECIAL_STORY_SINCE_DE_SINCERITY
GAME.progress is STORY_DE_SINCERITY or later (PROGRESS_RANGES[0xC], to 0x63)
Definition story.h:1899
#define SPECIAL_STORY_JUNGLE_SOUND_TO_PRESIDENT_ARRESTED
GAME.progress is from STORY_JUNGLE_SOUND to STORY_PRESIDENT_ARRESTED (PROGRESS_RANGES[0x17])
Definition story.h:1932
#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 FLAG_CENTRAL_PARK_SECRET_DOOR_SEEN
wstag331 event 920: the player finds Central Park empty and guesses the secret door's code; set at it...
Definition story.h:1487
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
AreaBattle area2Battle7
Definition wstag331.c:384
FieldActorEntry actor0
Definition wstag331.c:815
u16 talks1Talk1Actions[]
Definition wstag331.c:449
void(* stageFuncs[])(void)
The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a t...
Definition wstag331.c:1124
FieldActorEntry actor6
Definition wstag331.c:845
u16 actorConditions24[]
Definition wstag331.c:783
u16 actorConditions25[]
Definition wstag331.c:788
u16 talks3Talk2Actions[]
Definition wstag331.c:456
FieldTalk talks18[]
Definition wstag331.c:673
FieldTalk actor2Talks[]
Definition wstag331.c:492
AreaBattle area2Battle6
Definition wstag331.c:383
u16 talks4Talk1Actions[]
Definition wstag331.c:475
u16 actorConditions12[]
Definition wstag331.c:742
u16 talks1Talk1Conditions[]
Definition wstag331.c:448
FieldTalk talks5[]
Definition wstag331.c:620
FieldActorEntry actor25
Definition wstag331.c:940
FieldActorEntry actor24
Definition wstag331.c:935
u16 actorConditions26[]
Definition wstag331.c:789
FieldActorEntry actor17
Definition wstag331.c:900
u16 actorConditions7[]
Definition wstag331.c:729
u16 actor34Conditions[]
Definition wstag331.c:810
FieldActorEntry actor33
Definition wstag331.c:980
u16 talks4Talk3Conditions[]
Definition wstag331.c:477
FieldActorEntry actor18
Definition wstag331.c:905
u16 actorConditions1[]
Definition wstag331.c:707
FieldTalk actor5Talks[]
Definition wstag331.c:516
u16 talks4Talk0Actions[]
Definition wstag331.c:473
AreaBattle area1Battle6
Definition wstag331.c:370
FieldActorEntry actor5
Definition wstag331.c:840
u16 talks3Talk3Conditions[]
Definition wstag331.c:457
u16 talks4Talk3Actions[]
Definition wstag331.c:478
u16 actor35Conditions[]
Definition wstag331.c:811
u16 actorConditions3[]
Definition wstag331.c:713
AreaBattle area0Battle7
Definition wstag331.c:358
FieldActorEntry actor2
Definition wstag331.c:825
u16 kailConditions[]
Definition wstag331.c:807
FieldActorEntry actor31
Definition wstag331.c:970
const CVECTOR stageColor
the color the setup copies to FIELDSTG_state.spriteColor
Definition wstag331.c:22
FieldTalk talks17[]
Definition wstag331.c:669
AreaBattle area3Battle4
Definition wstag331.c:394
AreaBattle area3Battle3
Definition wstag331.c:393
AreaBattle area0Battle1
Definition wstag331.c:352
FieldActorEntry actor23
Definition wstag331.c:930
u16 talks3Talk0Actions[]
Definition wstag331.c:453
s16 script920[]
Definition wstag331.c:62
FieldTalk talks10[]
Definition wstag331.c:641
FieldActorEntry actor19
Definition wstag331.c:910
u16 actorConditions16[]
Definition wstag331.c:761
AreaBattle area2Battle0
Definition wstag331.c:377
u16 talks3Talk1Conditions[]
Definition wstag331.c:454
FieldActorEntry * stageActors[]
Definition wstag331.c:992
FieldActorEntry actor28
Definition wstag331.c:955
AreaBattle area1Battle2
Definition wstag331.c:366
void endEvent970(void)
After event 970, with Kail and Kurt: keeps it from playing again.
Definition wstag331.c:18
FieldTalk kurtTalks[]
Here the USA version has Kail's conditions, the European one Kurt's talks.
Definition wstag331.c:701
AreaBattle area3Battle0
Definition wstag331.c:390
u16 superChargeActions[]
The Super Charge the player finds: taken (flag 0x021D), given and special action 0x13.
Definition wstag331.c:441
FieldTalk talks12[]
Definition wstag331.c:649
u16 actorConditions15[]
Definition wstag331.c:754
FieldActorEntry actor22
Definition wstag331.c:925
AreaBattle area0Battle6
Definition wstag331.c:357
u16 actorConditions2[]
Definition wstag331.c:708
u16 talks6Talk0Actions[]
Definition wstag331.c:481
u16 actorConditions21[]
Definition wstag331.c:776
AreaBattle area3Battle2
Definition wstag331.c:392
FieldTalk talks11[]
Definition wstag331.c:645
FieldActorEntry actor29
Definition wstag331.c:960
u16 actorConditions27[]
Definition wstag331.c:794
u16 actorConditions5[]
Definition wstag331.c:723
AreaBattle area3Battle1
Definition wstag331.c:391
u16 actorConditions17[]
Definition wstag331.c:768
FieldTalk talks0[]
Definition wstag331.c:484
AreaBattle area0Battle3
Definition wstag331.c:354
FieldActorEntry actor27
Definition wstag331.c:950
FieldActorEntry actor10
Definition wstag331.c:865
u16 actorConditions13[]
Definition wstag331.c:743
u16 talks4Talk0Conditions[]
Definition wstag331.c:472
FieldTalk actor4Talks[]
Definition wstag331.c:508
void endEvent920(void)
After event 920, with Teddy: keeps it from playing again.
Definition wstag331.c:13
u16 actorConditions29[]
Definition wstag331.c:800
u16 actorConditions8[]
Definition wstag331.c:730
FieldActorEntry actor4
Definition wstag331.c:835
AreaBattle area3Battle6
Definition wstag331.c:396
FieldActorEntry actor35
Definition wstag331.c:990
u16 talks6Talk1Conditions[]
Definition wstag331.c:482
FieldTalk actor11Talks[]
Definition wstag331.c:564
FieldActorEntry actor32
Definition wstag331.c:975
FieldActorEntry actor8
Definition wstag331.c:855
u16 actorConditions10[]
Definition wstag331.c:732
u16 talks4Talk2Conditions[]
Definition wstag331.c:476
u16 talks6Talk0Conditions[]
Definition wstag331.c:480
ActorImage stageImages[]
Definition wstag331.c:406
u16 actorConditions28[]
Definition wstag331.c:795
FieldTalk actor6Talks[]
Definition wstag331.c:524
u16 talks3Talk2Conditions[]
Definition wstag331.c:455
void setupStage(void)
Sets the stage up: its map, actors, battles and events, playing FIELDBGM; BGM_0029 instead except at ...
Definition wstag331.c:36
u16 talks1Talk0Conditions[]
Definition wstag331.c:447
FieldTalk talks2[]
Definition wstag331.c:601
AreaBattle area2Battle4
Definition wstag331.c:381
u16 actor33Conditions[]
Definition wstag331.c:809
u16 actorConditions23[]
Definition wstag331.c:782
u16 actorConditions4[]
Definition wstag331.c:718
StageTile stageObjects[]
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition wstag331.c:1031
FieldTalk talks6[]
Definition wstag331.c:624
u16 actorConditions0[]
Definition wstag331.c:706
FieldActorEntry actor9
Definition wstag331.c:860
FieldActorEntry actor20
Definition wstag331.c:915
u16 actorConditions9[]
Definition wstag331.c:731
FieldTalk actor10Talks[]
Definition wstag331.c:556
FieldTalk talks16[]
Definition wstag331.c:665
FieldTalk actor3Talks[]
Definition wstag331.c:500
FieldTalk actor9Talks[]
Definition wstag331.c:548
BattleList area3Battles
Definition wstag331.c:398
AreaBattle area3Battle5
Definition wstag331.c:395
AreaBattle area0Battle5
Definition wstag331.c:356
u16 actorConditions11[]
Definition wstag331.c:737
BattleList area1Battles
Definition wstag331.c:372
u16 actorConditions30[]
Definition wstag331.c:801
u16 actorConditions20[]
Definition wstag331.c:771
FieldTalk talks1[]
The sign's talks: the USA version's actor 14, the European actor 13 (actor13Talks)
Definition wstag331.c:595
u16 talks1Talk2Actions[]
Definition wstag331.c:451
BattleList area2Battles
Definition wstag331.c:385
FieldActorEntry actor15
Definition wstag331.c:890
FieldActorEntry actor12
Definition wstag331.c:875
FieldActorEntry actor16
Definition wstag331.c:895
FieldTalk talks15[]
Definition wstag331.c:661
AreaBattle area1Battle4
Definition wstag331.c:368
s16 script970[]
Definition wstag331.c:124
FieldTalk talks9[]
Definition wstag331.c:637
AreaBattle area2Battle2
Definition wstag331.c:379
u16 actorConditions6[]
Definition wstag331.c:728
AreaBattle area1Battle5
Definition wstag331.c:369
FieldActorEntry actor30
Definition wstag331.c:965
u16 talks1Talk2Conditions[]
Definition wstag331.c:450
FieldActorEntry actor7
Definition wstag331.c:850
StageSlot stageSlots[]
Definition wstag331.c:1096
AreaBattle area2Battle1
Definition wstag331.c:378
FieldTalk talks3[]
Definition wstag331.c:605
FieldActorEntry actor13
Definition wstag331.c:880
u16 talks4Talk1Conditions[]
Definition wstag331.c:474
AreaBattle area1Battle3
Definition wstag331.c:367
u16 talks3Talk4Conditions[]
Definition wstag331.c:465
FieldTalk talks21[]
Definition wstag331.c:693
FieldTalk talks20[]
Definition wstag331.c:685
AreaBattle area1Battle0
Definition wstag331.c:364
u16 talks3Talk0Conditions[]
Definition wstag331.c:452
FieldActorEntry actor11
Definition wstag331.c:870
FieldTalk talks14[]
Definition wstag331.c:657
FieldActorEntry actor1
Definition wstag331.c:820
FieldActorEntry actor21
Definition wstag331.c:920
AreaBattle area0Battle0
Definition wstag331.c:351
AreaBattle area0Battle2
Definition wstag331.c:353
FieldTalk actor13Talks[]
Definition wstag331.c:580
#define STAGE_FILE
Definition wstag331.c:30
AreaBattle area2Battle5
Definition wstag331.c:382
AreaBattle area1Battle1
Definition wstag331.c:365
AreaBattle area2Battle3
Definition wstag331.c:380
FieldTalk talks8[]
Definition wstag331.c:633
u16 actorConditions18[]
Definition wstag331.c:769
FieldTalk actor7Talks[]
Definition wstag331.c:532
FieldTalk talks13[]
Definition wstag331.c:653
AreaBattle area0Battle4
Definition wstag331.c:355
u16 talks6Talk1Actions[]
Definition wstag331.c:483
FieldActorEntry actor34
Definition wstag331.c:985
#define STAGE_TEXT
Definition wstag331.c:28
u16 talks3Talk3Actions[]
Definition wstag331.c:464
FieldTalk actor8Talks[]
Definition wstag331.c:540
u16 actorConditions14[]
Definition wstag331.c:749
FieldTalk actor12Talks[]
Definition wstag331.c:572
FieldTalk talks7[]
Definition wstag331.c:629
AreaBattle area3Battle7
Definition wstag331.c:397
u16 actorConditions22[]
Definition wstag331.c:777
FieldTalk talks4[]
Definition wstag331.c:613
BattleList area0Battles
Definition wstag331.c:359
AreaBattle area1Battle7
Definition wstag331.c:371
FieldTalk talks19[]
Definition wstag331.c:677
u16 talks5Talk0Actions[]
Definition wstag331.c:479
FieldActorEntry actor3
Definition wstag331.c:830
FieldActorEntry actor26
Definition wstag331.c:945
FieldBattles stageBattles[]
Definition wstag331.c:403
FieldActorEntry actor14
Definition wstag331.c:885
FieldEvent stageEvents[]
Definition wstag331.c:1127
u16 actorConditions19[]
Definition wstag331.c:770