Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
wstag202.c
Go to the documentation of this file.
1/*
2 * WSTAG202: Asuka City, Central Sector: the streets by the Cargo Tower. Exits
3 * to the Underground Path (WSTAG237), the Yellow Cruiser (270), El Dorado
4 * (280) and the Cargo Tower (mode 528, WSTAG260).
5 */
6
7#include "common.h"
8#include "field/stage.h"
9
12
13const CVECTOR stageColor = { 0x54, 0x67, 0x96, 0x00 };
14#if VERSION_US || VERSION_JP
15#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_00)
16#define EVENT_TEXT_FILE (TEXT_EVENTS_200 - 1)
17#define STAGE_FILE 0x32A
18#elif VERSION_EU
19#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_00)
20#define EVENT_TEXT_FILE (TEXT_EVENTS_200 - 1)
21#define STAGE_FILE 0x339
22#endif
23/*
24 * Sets the stage up: its map, actors, battles and events, playing ASKA_BGM;
25 * BGM_0029 instead at story steps 0x14 to 0x17 and 0x27 to 0x28
26 */
55
57 SCRIPT_WALK(2, 0x220, 0x1B9, 3),
58 SCRIPT_PLACE(0x61, 0x200, 0x1A9),
59 SCRIPT_POSE(0x61, 1, 7),
62 SCRIPT_POSE(2, 1, 3),
63 SCRIPT_WAIT(0x1E),
64 SCRIPT_TALK(0, 1, 2, 3),
65 SCRIPT_POSE(2, 7, 3),
67 SCRIPT_POSE(2, 1, 3),
68 SCRIPT_WAIT(0x1E),
69 SCRIPT_TALK(0, 2, 0x61, 0),
71 SCRIPT_WAIT(0x1E),
72 SCRIPT_TALK(0, 3, 2, 3),
73 SCRIPT_POSE(2, 7, 3),
75 SCRIPT_POSE(2, 1, 3),
76 SCRIPT_WAIT(0x1E),
77 SCRIPT_TALK(0, 4, 0x61, 0),
79 SCRIPT_POSE(0x61, 1, 3),
80 SCRIPT_WAIT(0x1E),
81 SCRIPT_WALK(0x61, 0x170, 0x165, 3),
82 SCRIPT_WAIT_WALK(0x61),
83 SCRIPT_TALK(0, 5, 2, 3),
84 SCRIPT_PLACE(0x61, 0, 0),
85 SCRIPT_POSE(0x61, 1, 0),
87 SCRIPT_WAIT(0x1E),
89 /* after the end, the original's padding up to a word, which isn't zeros */
90#if VERSION_US
91 0x8FB1,
92#endif
93};
94AreaBattle area0Battle0 = { 0, 0, MUSIC(1, 0) };
95AreaBattle area0Battle1 = { 0, 0, MUSIC(1, 0) };
96AreaBattle area0Battle2 = { 0, 0, MUSIC(1, 0) };
97AreaBattle area0Battle3 = { 0, 0, MUSIC(1, 0) };
98AreaBattle area0Battle4 = { 0, 0, MUSIC(1, 0) };
99AreaBattle area0Battle5 = { 0, 0, MUSIC(1, 0) };
100AreaBattle area0Battle6 = { 0, 0, MUSIC(1, 0) };
101AreaBattle area0Battle7 = { 0, 0, MUSIC(1, 0) };
107AreaBattle area1Battle0 = { 0, 0, MUSIC(1, 0) };
108AreaBattle area1Battle1 = { 0, 0, MUSIC(1, 0) };
109AreaBattle area1Battle2 = { 0, 0, MUSIC(1, 0) };
110AreaBattle area1Battle3 = { 0, 0, MUSIC(1, 0) };
111AreaBattle area1Battle4 = { 0, 0, MUSIC(1, 0) };
112AreaBattle area1Battle5 = { 0, 0, MUSIC(1, 0) };
113AreaBattle area1Battle6 = { 0, 0, MUSIC(1, 0) };
114AreaBattle area1Battle7 = { 0, 0, MUSIC(1, 0) };
120AreaBattle area2Battle0 = { 0, 0, MUSIC(1, 0) };
121AreaBattle area2Battle1 = { 0, 0, MUSIC(1, 0) };
122AreaBattle area2Battle2 = { 0, 0, MUSIC(1, 0) };
123AreaBattle area2Battle3 = { 0, 0, MUSIC(1, 0) };
124AreaBattle area2Battle4 = { 0, 0, MUSIC(1, 0) };
125AreaBattle area2Battle5 = { 0, 0, MUSIC(1, 0) };
126AreaBattle area2Battle6 = { 0, 0, MUSIC(1, 0) };
127AreaBattle area2Battle7 = { 0, 0, MUSIC(1, 0) };
133AreaBattle area3Battle0 = { 0, 0, MUSIC(1, 0) };
134AreaBattle area3Battle1 = { 0, 0, MUSIC(1, 0) };
135AreaBattle area3Battle2 = { 0, 0, MUSIC(1, 0) };
136AreaBattle area3Battle3 = { 0, 0, MUSIC(1, 0) };
138AreaBattle area3Battle5 = { 0, 0, MUSIC(1, 0) };
139AreaBattle area3Battle6 = { 0, 0, MUSIC(1, 0) };
150 { 0x200, 0x100, 0x21C, 0x1A6, 0x70, 0xA6, 0x230, 0x1FE },
151 { 0x200, 0x100, 0x200, 0x100, 0, 0, 0x220, 0x1FE },
152 { 0x200, 0x100, 0x216, 0x138, 0x58, 0x38, 0x200, 0x1FD },
153 { 0x200, 0x100, 0x208, 0x1BC, 0x20, 0xBC, 0x210, 0x1FD },
154 { 0x200, 0x100, 0x210, 0x1BC, 0x40, 0xBC, 0x220, 0x1FD },
155 { 0x200, 0x100, 0x200, 0x1BC, 0, 0xBC, 0x230, 0x1FD },
156 { 0x180, 0x100, 0x1B6, 0x100, 0x1D8, 0, 0x170, 0x1FE },
157 { 0x180, 0x100, 0x1B6, 0x128, 0x1D8, 0x28, 0x170, 0x1FD },
158 { 0x180, 0x100, 0x18C, 0x171, 0x130, 0x71, 0x170, 0x1FC },
159 { 0x180, 0x100, 0x180, 0x175, 0x100, 0x75, 0x140, 0x1FB },
160 { 0x180, 0x100, 0x1B0, 0x150, 0x1C0, 0x50, 0x150, 0x1FB },
161 { 0x180, 0x100, 0x1B6, 0x178, 0x1D8, 0x78, 0x160, 0x1FB },
162 { 0x180, 0x100, 0x194, 0x183, 0x150, 0x83, 0x170, 0x1FB },
163 { 0x180, 0x100, 0x19C, 0x183, 0x170, 0x83, 0x140, 0x1FA },
164 { 0x180, 0x100, 0x1A4, 0x18B, 0x190, 0x8B, 0x150, 0x1FA },
165 { 0x180, 0x100, 0x188, 0x191, 0x120, 0x91, 0x160, 0x1FA },
166 { 0x180, 0x100, 0x1A6, 0x163, 0x198, 0x63, 0x170, 0x1FA },
167 { 0x180, 0x100, 0x180, 0x195, 0x100, 0x95, 0x140, 0x1F9 },
168 { 0x180, 0x100, 0x1AC, 0x198, 0x1B0, 0x98, 0x150, 0x1F9 },
169 { 0x180, 0x100, 0x1B4, 0x198, 0x1D0, 0x98, 0x160, 0x1F9 },
170 { 0x180, 0x100, 0x190, 0x1A3, 0x140, 0xA3, 0x170, 0x1F9 },
171 { 0x180, 0x100, 0x1AE, 0x178, 0x1B8, 0x78, 0x140, 0x1F8 },
172};
178u16 actor43Talk0Actions[] = { FLAG(0x1A, 0x1B), 1, START_EVENT(0x5D), 1, CODES_END };
184 { NULL, NULL, 0x12 },
185 { NULL, NULL, 0 },
186};
188 { NULL, NULL, 0x279 },
189 { NULL, NULL, 0 },
190};
192 { NULL, NULL, 0x27A },
193 { NULL, NULL, 0 },
194};
196 { NULL, NULL, 0x27B },
197 { NULL, NULL, 0 },
198};
200 { NULL, NULL, 0x27C },
201 { NULL, NULL, 0 },
202};
204 { NULL, NULL, 0x27D },
205 { NULL, NULL, 0 },
206};
208 { actor6Talk0Conditions, NULL, 0x279 },
209 { actor6Talk1Conditions, NULL, 0x4A8 },
210 { NULL, NULL, 0 },
211};
213 { NULL, NULL, 0x27E },
214 { NULL, NULL, 0 },
215};
217 { NULL, NULL, 0x27F },
218 { NULL, NULL, 0 },
219};
221 { NULL, NULL, 0x280 },
222 { NULL, NULL, 0 },
223};
225 { NULL, NULL, 0x4A8 },
226 { NULL, NULL, 0 },
227};
229 { NULL, NULL, 0xB },
230 { NULL, NULL, 0 },
231};
233 { NULL, NULL, 0x2C7 },
234 { NULL, NULL, 0 },
235};
237 { NULL, NULL, 0x2C8 },
238 { NULL, NULL, 0 },
239};
241 { NULL, NULL, 0x2C9 },
242 { NULL, NULL, 0 },
243};
245 { NULL, NULL, 0x2CA },
246 { NULL, NULL, 0 },
247};
249 { NULL, NULL, 0x2CB },
250 { NULL, NULL, 0 },
251};
253 { NULL, NULL, 0x4A7 },
254 { NULL, NULL, 0 },
255};
257 { NULL, NULL, 0x2CC },
258 { NULL, NULL, 0 },
259};
261 { NULL, NULL, 0x2CD },
262 { NULL, NULL, 0 },
263};
265 { NULL, NULL, 0x2CE },
266 { NULL, NULL, 0 },
267};
269 { actor21Talk0Conditions, NULL, 0x2C7 },
270 { actor21Talk1Conditions, NULL, 0x4A7 },
271 { NULL, NULL, 0 },
272};
274 { NULL, NULL, 0x16 },
275 { NULL, NULL, 0 },
276};
278 { NULL, NULL, 0x286 },
279 { NULL, NULL, 0 },
280};
282 { NULL, NULL, 0x282 },
283 { NULL, NULL, 0 },
284};
286 { NULL, NULL, 0x283 },
287 { NULL, NULL, 0 },
288};
290 { NULL, NULL, 0x284 },
291 { NULL, NULL, 0 },
292};
294 { NULL, NULL, 0x285 },
295 { NULL, NULL, 0 },
296};
298 { NULL, NULL, 0x28B },
299 { NULL, NULL, 0 },
300};
302 { NULL, NULL, 0x287 },
303 { NULL, NULL, 0 },
304};
306 { NULL, NULL, 0x288 },
307 { NULL, NULL, 0 },
308};
310 { NULL, NULL, 0x289 },
311 { NULL, NULL, 0 },
312};
314 { NULL, NULL, 0x28D },
315 { NULL, NULL, 0 },
316};
318 { NULL, NULL, 0x28E },
319 { NULL, NULL, 0 },
320};
322 { NULL, NULL, 0x28F },
323 { NULL, NULL, 0 },
324};
326 { NULL, NULL, 0x290 },
327 { NULL, NULL, 0 },
328};
330 { NULL, NULL, 0x17 },
331 { NULL, NULL, 0 },
332};
334 { NULL, NULL, 0x291 },
335 { NULL, NULL, 0 },
336};
338 { NULL, NULL, 0x296 },
339 { NULL, NULL, 0 },
340};
342 { NULL, NULL, 0x292 },
343 { NULL, NULL, 0 },
344};
346 { NULL, NULL, 0x293 },
347 { NULL, NULL, 0 },
348};
350 { NULL, NULL, 0x294 },
351 { NULL, NULL, 0 },
352};
354 { NULL, actor42Talk0Actions, 0x51 },
355 { NULL, NULL, 0 },
356};
358 { NULL, actor43Talk0Actions, 0xBA },
359 { NULL, NULL, 0 },
360};
362 { NULL, NULL, 0x28A },
363 { NULL, NULL, 0 },
364};
366 { NULL, NULL, 0x295 },
367 { NULL, NULL, 0 },
368};
370 { NULL, NULL, 0x281 },
371 { NULL, NULL, 0 },
372};
374 { NULL, NULL, 0x2CF },
375 { NULL, NULL, 0 },
376};
378 { NULL, NULL, 0x48B },
379 { NULL, NULL, 0 },
380};
382 { NULL, NULL, 0x48B },
383 { NULL, NULL, 0 },
384};
386 { NULL, NULL, 0x48B },
387 { NULL, NULL, 0 },
388};
390 { NULL, NULL, 0x48B },
391 { NULL, NULL, 0 },
392};
394 { NULL, NULL, 0x48B },
395 { NULL, NULL, 0 },
396};
398 { NULL, NULL, 0x48B },
399 { NULL, NULL, 0 },
400};
402 { NULL, NULL, 0x48B },
403 { NULL, NULL, 0 },
404};
406 { NULL, NULL, 0x48B },
407 { NULL, NULL, 0 },
408};
410 { NULL, NULL, 0x48B },
411 { NULL, NULL, 0 },
412};
414 { NULL, NULL, 0x65 },
415 { NULL, NULL, 0 },
416};
418 { NULL, NULL, 0x65 },
419 { NULL, NULL, 0 },
420};
422 { NULL, NULL, 0x65 },
423 { NULL, NULL, 0 },
424};
426 { NULL, NULL, 0x65 },
427 { NULL, NULL, 0 },
428};
430 { NULL, NULL, 0x65 },
431 { NULL, NULL, 0 },
432};
434 { NULL, NULL, 0x65 },
435 { NULL, NULL, 0 },
436};
438 { NULL, NULL, 0x65 },
439 { NULL, NULL, 0 },
440};
442 { NULL, NULL, 0x65 },
443 { NULL, NULL, 0 },
444};
446 { NULL, NULL, 0x65 },
447 { NULL, NULL, 0 },
448};
450 { NULL, NULL, 0x65 },
451 { NULL, NULL, 0 },
452};
454 { NULL, NULL, 0x65 },
455 { NULL, NULL, 0 },
456};
458 { NULL, NULL, 0x65 },
459 { NULL, NULL, 0 },
460};
462 { NULL, NULL, 0x65 },
463 { NULL, NULL, 0 },
464};
466 { NULL, NULL, 0x65 },
467 { NULL, NULL, 0 },
468};
470 { NULL, NULL, 0x65 },
471 { NULL, NULL, 0 },
472};
474 { NULL, NULL, 0xBE },
475 { NULL, NULL, 0 },
476};
478 { NULL, NULL, 0x48F },
479 { NULL, NULL, 0 },
480};
482 { NULL, NULL, 0x48F },
483 { NULL, NULL, 0 },
484};
486 { NULL, NULL, 0x48F },
487 { NULL, NULL, 0 },
488};
490 { NULL, NULL, 0x48F },
491 { NULL, NULL, 0 },
492};
494 { NULL, NULL, 0x48F },
495 { NULL, NULL, 0 },
496};
498 { NULL, NULL, 0x48F },
499 { NULL, NULL, 0 },
500};
502 { NULL, NULL, 0x48F },
503 { NULL, NULL, 0 },
504};
506 { NULL, NULL, 0x48F },
507 { NULL, NULL, 0 },
508};
510 { NULL, NULL, 0x48F },
511 { NULL, NULL, 0 },
512};
514 { NULL, actor82Talk0Actions, 0x427 },
515 { NULL, NULL, 0 },
516};
518 { NULL, actor83Talk0Actions, 0x428 },
519 { NULL, NULL, 0 },
520};
522 { NULL, NULL, 0x18 },
523 { NULL, NULL, 0 },
524};
526 { NULL, NULL, 0x2D1 },
527 { NULL, NULL, 0 },
528};
530 { NULL, NULL, 0x2D2 },
531 { NULL, NULL, 0 },
532};
534 { NULL, NULL, 0x2D3 },
535 { NULL, NULL, 0 },
536};
538 { NULL, NULL, 0x2D4 },
539 { NULL, NULL, 0 },
540};
542 { NULL, NULL, 0x2D5 },
543 { NULL, NULL, 0 },
544};
546 { actor90Talk0Conditions, NULL, 0x2D1 },
547 { actor90Talk1Conditions, NULL, 0x4A6 },
548 { NULL, NULL, 0 },
549};
551 { NULL, NULL, 0x2D6 },
552 { NULL, NULL, 0 },
553};
555 { NULL, NULL, 0x2D7 },
556 { NULL, NULL, 0 },
557};
559 { NULL, NULL, 0x2D8 },
560 { NULL, NULL, 0 },
561};
563 { NULL, NULL, 0x2D9 },
564 { NULL, NULL, 0 },
565};
567 { NULL, NULL, 0x4A6 },
568 { NULL, NULL, 0 },
569};
783FieldActorEntry actor73 = { actor73Conditions, actor73Talks, 0x13D, 0x10, 512, 424, 5 };
784FieldActorEntry actor74 = { actor74Conditions, actor74Talks, 0x13D, 0x10, 512, 424, 5 };
785FieldActorEntry actor75 = { actor75Conditions, actor75Talks, 0x13D, 0x10, 512, 424, 5 };
786FieldActorEntry actor76 = { actor76Conditions, actor76Talks, 0x13D, 0x10, 512, 424, 5 };
787FieldActorEntry actor77 = { actor77Conditions, actor77Talks, 0x13D, 0x10, 512, 424, 5 };
788FieldActorEntry actor78 = { actor78Conditions, actor78Talks, 0x13D, 0x10, 512, 424, 5 };
789FieldActorEntry actor79 = { actor79Conditions, actor79Talks, 0x13D, 0x10, 512, 424, 5 };
790FieldActorEntry actor80 = { actor80Conditions, actor80Talks, 0x13D, 0x10, 512, 424, 5 };
791FieldActorEntry actor81 = { actor81Conditions, actor81Talks, 0x13D, 0x10, 512, 424, 5 };
792FieldActorEntry actor82 = { actor82Conditions, actor82Talks, 0x149, 0x11, 680, 380, 1 };
793FieldActorEntry actor83 = { actor83Conditions, actor83Talks, 0x14A, 0x12, 648, 396, 5 };
794FieldActorEntry actor84 = { actor84Conditions, actor84Talks, 0x171, 0x13, 208, 344, 5 };
795FieldActorEntry actor85 = { actor85Conditions, actor85Talks, 0x171, 0x13, 208, 344, 5 };
796FieldActorEntry actor86 = { actor86Conditions, actor86Talks, 0x171, 0x13, 208, 344, 5 };
797FieldActorEntry actor87 = { actor87Conditions, actor87Talks, 0x171, 0x13, 208, 344, 5 };
798FieldActorEntry actor88 = { actor88Conditions, actor88Talks, 0x171, 0x13, 208, 344, 5 };
799FieldActorEntry actor89 = { actor89Conditions, actor89Talks, 0x171, 0x13, 208, 344, 5 };
800FieldActorEntry actor90 = { actor90Conditions, actor90Talks, 0x171, 0x13, 208, 344, 5 };
801FieldActorEntry actor91 = { actor91Conditions, actor91Talks, 0x171, 0x13, 208, 344, 5 };
802FieldActorEntry actor92 = { actor92Conditions, actor92Talks, 0x171, 0x13, 208, 344, 5 };
803FieldActorEntry actor93 = { actor93Conditions, actor93Talks, 0x171, 0x13, 208, 344, 5 };
804FieldActorEntry actor94 = { actor94Conditions, actor94Talks, 0x171, 0x13, 208, 344, 5 };
805FieldActorEntry actor95 = { actor95Conditions, actor95Talks, 0x171, 0x13, 208, 344, 5 };
807 &actor0,
808 &actor1,
809 &actor2,
810 &actor3,
811 &actor4,
812 &actor5,
813 &actor6,
814 &actor7,
815 &actor8,
816 &actor9,
817 &actor10,
818 &actor11,
819 &actor12,
820 &actor13,
821 &actor14,
822 &actor15,
823 &actor16,
824 &actor17,
825 &actor18,
826 &actor19,
827 &actor20,
828 &actor21,
829 &actor22,
830 &actor23,
831 &actor24,
832 &actor25,
833 &actor26,
834 &actor27,
835 &actor28,
836 &actor29,
837 &actor30,
838 &actor31,
839 &actor32,
840 &actor33,
841 &actor34,
842 &actor35,
843 &actor36,
844 &actor37,
845 &actor38,
846 &actor39,
847 &actor40,
848 &actor41,
849 &actor42,
850 &actor43,
851 &actor44,
852 &actor45,
853 &actor46,
854 &actor47,
855 &actor48,
856 &actor49,
857 &actor50,
858 &actor51,
859 &actor52,
860 &actor53,
861 &actor54,
862 &actor55,
863 &actor56,
864 &actor57,
865 &actor58,
866 &actor59,
867 &actor60,
868 &actor61,
869 &actor62,
870 &actor63,
871 &actor64,
872 &actor65,
873 &actor66,
874 &actor67,
875 &actor68,
876 &actor69,
877 &actor70,
878 &actor71,
879 &actor72,
880 &actor73,
881 &actor74,
882 &actor75,
883 &actor76,
884 &actor77,
885 &actor78,
886 &actor79,
887 &actor80,
888 &actor81,
889 &actor82,
890 &actor83,
891 &actor84,
892 &actor85,
893 &actor86,
894 &actor87,
895 &actor88,
896 &actor89,
897 &actor90,
898 &actor91,
899 &actor92,
900 &actor93,
901 &actor94,
902 &actor95,
903 NULL,
904};
906 { 1, 0, 0x40, 2, 0x47, 2, 0, 3, 6, 0, 174, 210, 0, 0 },
907 { 1, 0, 0x40, 2, 0x47, 2, 0, 3, 6, 0, 244, 175, 0, 0 },
908 { 1, 0, 0x40, 2, 0x47, 2, 0, 3, 6, 0, 840, 188, 0, 0 },
909 { 1, 0, 0x40, 2, 0x47, 2, 0, 3, 6, 0, 886, 211, 0, 0 },
910 { 1, 0, 0x40, 2, 0x48, 2, 0, 3, 6, 0, 341, 183, 0, 0 },
911 { 1, 0, 0x40, 2, 4, 1, 4, 9, 8, 0, 98, 114, 0, 0 },
912 { 1, 0, 0x40, 2, 0xD, 0, 0, 0, 0, 0, 168, 256, 0, 0 },
913 { 1, 0, 0x40, 2, 0xE, 0, 0, 0, 0, 0, 846, 150, 0, 0 },
914 { 1, 0, 0x58, 2, 0xF, 0, 0, 0, 0, 0, 426, 256, 0, 0 },
915 { 1, 0, 0x50, 2, 0x10, 0, 0, 0, 0, 0, 323, 384, 0, 0 },
916 { 1, 0, 0x40, 2, 0x11, 0, 0, 0, 0, 0, 640, 256, 0, 0 },
917 { 1, 0, 0x60, 2, 0x12, 0, 0, 0, 0, 0, 548, 202, 0, 0 },
918 { 1, 0, 0x40, 2, 0x13, 0, 0, 0, 0, 0, 676, 384, 0, 0 },
919 { 1, 0, 0x40, 6, 0x48, 2, 0, 3, 6, 0, 386, 160, 0, 0 },
920 { 1, 0, 0x40, 6, 0x48, 2, 0, 3, 6, 0, 498, 105, 0, 0 },
921 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 123, 295, 0, 0 },
922 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 247, 351, 0, 0 },
923 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 571, 465, 0, 0 },
924 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 632, 171, 0, 0 },
925 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 654, 417, 0, 0 },
926 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 684, 140, 0, 0 },
927 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 719, 379, 0, 0 },
928 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 726, 101, 0, 0 },
929 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 772, 330, 0, 0 },
930 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 793, 216, 0, 0 },
931 { 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 994, 283, 0, 0 },
932 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 705, 485, 0, 0 },
933 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 706, 129, 0, 0 },
934 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 718, 471, 0, 0 },
935 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 741, 104, 0, 0 },
936 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 757, 70, 0, 0 },
937 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 764, 405, 0, 0 },
938 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 799, 58, 0, 0 },
939 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 855, 294, 0, 0 },
940 { 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 912, 279, 0, 0 },
941 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 119, 307, 0, 0 },
942 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 203, 386, 0, 0 },
943 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 217, 366, 0, 0 },
944 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 283, 332, 0, 0 },
945 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 598, 453, 0, 0 },
946 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 647, 259, 0, 0 },
947 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 689, 401, 0, 0 },
948 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 691, 480, 0, 0 },
949 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 726, 257, 0, 0 },
950 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 742, 457, 0, 0 },
951 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 771, 233, 0, 0 },
952 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 798, 48, 0, 0 },
953 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 810, 366, 0, 0 },
954 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 819, 305, 0, 0 },
955 { 1, 0, 0x40, 6, 0x38, 1, 0x38, 0x3A, 0xA, 0, 895, 276, 0, 0 },
956 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 84, 222, 0, 0 },
957 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 116, 353, 0, 0 },
958 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 277, 443, 0, 0 },
959 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 306, 336, 0, 0 },
960 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 399, 464, 0, 0 },
961 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 610, 94, 0, 0 },
962 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 673, 147, 0, 0 },
963 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 769, 210, 0, 0 },
964 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 776, 222, 0, 0 },
965 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 802, 323, 0, 0 },
966 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 835, 403, 0, 0 },
967 { 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 984, 292, 0, 0 },
968 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 199, 281, 0, 0 },
969 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 416, 464, 0, 0 },
970 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 533, 476, 0, 0 },
971 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 589, 85, 0, 0 },
972 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 659, 135, 0, 0 },
973 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 749, 190, 0, 0 },
974 { 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x40, 0xA, 0, 790, 408, 0, 0 },
975 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 97, 297, 0, 0 },
976 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 143, 268, 0, 0 },
977 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 169, 362, 0, 0 },
978 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 185, 388, 0, 0 },
979 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 311, 450, 0, 0 },
980 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 465, 474, 0, 0 },
981 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 631, 105, 0, 0 },
982 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 708, 421, 0, 0 },
983 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 748, 169, 0, 0 },
984 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 758, 250, 0, 0 },
985 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 803, 312, 0, 0 },
986 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 820, 208, 0, 0 },
987 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 821, 53, 0, 0 },
988 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 822, 406, 0, 0 },
989 { 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 961, 283, 0, 0 },
990 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 140, 346, 0, 0 },
991 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 256, 443, 0, 0 },
992 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 360, 456, 0, 0 },
993 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 400, 290, 0, 0 },
994 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 422, 282, 0, 0 },
995 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 579, 126, 0, 0 },
996 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 594, 125, 0, 0 },
997 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 594, 201, 0, 0 },
998 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 596, 187, 0, 0 },
999 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 610, 144, 0, 0 },
1000 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 611, 193, 0, 0 },
1001 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 620, 136, 0, 0 },
1002 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 633, 468, 0, 0 },
1003 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 669, 271, 0, 0 },
1004 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 699, 272, 0, 0 },
1005 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 737, 433, 0, 0 },
1006 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 738, 396, 0, 0 },
1007 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 756, 153, 0, 0 },
1008 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 771, 144, 0, 0 },
1009 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 782, 389, 0, 0 },
1010 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 784, 320, 0, 0 },
1011 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 819, 213, 0, 0 },
1012 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 863, 281, 0, 0 },
1013 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 908, 242, 0, 0 },
1014 { 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 1023, 270, 0, 0 },
1015 { 1, 0x64, 0x40, 6, 0xA, 0, 0, 0, 0, 0, 350, 152, 0, 0 },
1016 { 1, 0x65, 0x40, 6, 0xB, 0, 0, 0, 0, 0, 463, 106, 0, 0 },
1017 { 1, 0x66, 0x40, 6, 0xC, 0, 0, 0, 0, 0, 878, 199, 0, 0 },
1018 { 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 224, 268, 289, 0 },
1019 { 1, 0, 0x41, 4, 1, 0, 0, 0, 0, 0, 336, 159, 216, 0 },
1020 { 1, 0, 0x46, 4, 2, 0, 0, 0, 0, 0, 448, 103, 162, 0 },
1021 { 1, 0, 0x40, 4, 3, 0, 0, 0, 0, 0, 891, 200, 247, 0 },
1022 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
1023};
1025 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x20B, 0x68, 0x134, 3, 0, 0, 0 },
1026 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x213, 0x218, 0xF4, 3, 0x64, 0, 0 },
1027 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x211, 0x216, 0xE2, 3, 0x65, 0, 0 },
1028 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x210, 0x98, 0x14A, 5, 0x66, 0, 0 },
1029 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0x40, 0xFFF0, 0, 0, 0, 0, 0 },
1030 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0x20, 0x18, 0, 0, 0, 0, 0 },
1031 { { { ITEM(0, 5), 1 }, { CODES_END, 0 } }, SLOT_GAUGE, 0xFFE0, 0x1C, 0, 0, 0, 0, 0 },
1032 { { { CODES_END, 0 }, { CODES_END, 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
1033};
1034void (*stageFuncs[])(void) = {
1035 setupStage,
1036};
1038 { 220, script220, EVENT_TEXT(0x17), NULL, NULL },
1039 { -1, NULL, 0, NULL, NULL },
1040};
#define NULL
Definition common.h:17
signed short s16
Definition common.h:9
unsigned short u16
Definition common.h:10
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_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 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 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_ASUKA_CITY
ASKA_BGM: the Central Sector's streets and bridges, the Underground Path.
Definition sound.h:78
#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(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 SPECIAL_STORY_JUNGLE_SOUND_TO_AMATERASU_BRIDGE
GAME.progress is from STORY_JUNGLE_SOUND to STORY_AMATERASU_BRIDGE (PROGRESS_RANGES[0x12])
Definition story.h:1917
@ 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_BULBMON_FOUND
WSTAG520 (Suzaku Hall), event 695: another earthquake; Bulbmon digs the holes.
Definition story.h:103
@ STORY_BLUE_ID_PASS
WSTAG421 (Qing Long City), event 743: with the Blue ID Pass a Trooper takes the player for the Qing L...
Definition story.h:109
@ STORY_AGUMON_SUITS
WSTAG380 (Divermon's Lake), event 205: the Mischievous Mat, caught in his Etemon Suit,...
Definition story.h:52
@ STORY_BYAKKO_LEADER_FOUGHT
WSTAG620 (the rebels' hideout), event 534: the Byakko Leader takes the player for the A....
Definition story.h:85
@ 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_AMATERASU_BRIDGE
WSTAG206 (Amaterasu Bridge), event 922: an Attacker holds the bridge.
Definition story.h:133
@ STORY_CONTROL_ROOM
WSTAG325 (Control Room, Asuka City), event 560: a Soldier guards the way.
Definition story.h:90
@ STORY_GUNSLINGER
WSTAG810 (Gunslinger 1F), event 1035.
Definition story.h:143
@ STORY_BULBMON_BEATEN
WSTAG521 (Zhu Que Hall), event 751: Bulbmon is beaten (the Red ID Pass); its hole leads on to the Ama...
Definition story.h:112
@ STORY_GENJI_BEATEN
WSTAG200, event 52: after the first battle, won against Tamer Genji (event 50), the Digimon Navi give...
Definition story.h:36
@ STORY_NUMEMON_FOUND
WSTAG685 (Underground Cave, Byakko City), event 413: the rock blocking the hole is Numemon.
Definition story.h:73
@ STORY_KNIGHTMON_REPROGRAMMED
WSTAG210 (Main Lobby, Asuka City), event 685: the A.o.A have reprogrammed Knightmon,...
Definition story.h:97
@ STORY_TEDDY_FOUND
WSTAG212, event 352: Teddy is found; MAGAMI is part of the A.o.A, and the player sets off to beat the...
Definition story.h:67
@ STORY_LOOKING_FOR_TEDDY
WSTAG212, event 273: Kail and the player will put on the Agumon Suits to look for Teddy.
Definition story.h:61
@ STORY_JUNGLE_SOUND
WSTAG545 (Bug Maze Pit), event 711: Patamon heard a weird sound from the jungle, where its leader wen...
Definition story.h:106
@ STORY_WAY_TO_AMATERASU
WSTAG305, events 893 and 895: the way into Amaterasu City, the A.o.A's headquarters,...
Definition story.h:126
@ STORY_DE_KNOWLEDGE
WSTAG526 (Zhu Que UG Lake), event 760: the fight with Zanbamon (the DE Knowledge)
Definition story.h:115
@ STORY_MOVIE_BATTLES
WSTAG820, event 1080, with Snatchmon: each encounter plays MODE_BATTLE_MOVIE first.
Definition story.h:146
@ STORY_GENBU_BADGE
WSTAG755 (Battle Gate), event 781: the Xuen Wu Chief, who holds the Black ID Pass,...
Definition story.h:118
@ STORY_ASUKA_HEADQUARTERS
WSTAG310 (A.o.A Headquarters, Asuka City), event 961.
Definition story.h:138
@ STORY_SEIRYU_BADGE
WSTAG420, event 71: the Seiryu Leader is beaten (the Silver ID and the Seiryu Badge),...
Definition story.h:39
@ STORY_REAL_WORLD
WSTAG750 (the emergency Matrix Chamber), event 820: back in the real world, for 180 seconds.
Definition story.h:121
@ STORY_FAKE_BLUE_CARD
WSTAG410 (East Station), event 90: the Blue Card the player was given turns out to be a fake.
Definition story.h:42
@ STORY_NETWORK_OFFLINE
WSTAG750, event 886: the news say the Optical Network is offline.
Definition story.h:123
#define FLAG_SUIT_COUPLE_TALKED
wstag202: Jake and Grandma Beth show their Digimon suits from Etemon; then a man replaces Etemon in t...
Definition story.h:1055
#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 FLAG_ETEMON_DIVERMON_LAKE_TALKED
wstag202: Etemon says Sepikmon ran towards the Divermon Lake; set there, tested at Divermon's Lake
Definition story.h:1073
#define FLAG_BARONMON_SEPIKMON_TALKED
wstag375 Protocol Ruins: Baronmon says Sepikmon had his mask and was last seen in Asuka City; Asuka t...
Definition story.h:1067
#define SPECIAL_STORY_DE_SINCERITY_TO_LISA_SAVED
GAME.progress is from STORY_DE_SINCERITY to STORY_LISA_SAVED (PROGRESS_RANGES[0xF])
Definition story.h:1908
#define SPECIAL_STORY_SEIRYU_BADGE_TO_ZANBAMON_DRIVEN_OFF
GAME.progress is from STORY_SEIRYU_BADGE to STORY_ZANBAMON_DRIVEN_OFF (PROGRESS_RANGES[0xE])
Definition story.h:1905
#define FLAG_BRIDGE_SEPIKMON_TALKED
wstag205 Asuka Bridge: a "Sepikmon" boasts he found his mask and won't help; then Etemon says Sepikmo...
Definition story.h:1070
#define SPECIAL_STORY_KNIGHTMON_REPROGRAMMED_TO_BULBMON_FOUND
GAME.progress is from STORY_KNIGHTMON_REPROGRAMMED to STORY_BULBMON_FOUND (PROGRESS_RANGES[0x11])
Definition story.h:1914
#define SPECIAL_STORY_WAY_TO_AMATERASU_TO_PRESIDENT_ARRESTED
GAME.progress is from STORY_WAY_TO_AMATERASU to STORY_PRESIDENT_ARRESTED (PROGRESS_RANGES[0x16])
Definition story.h:1929
#define FLAG_MASTER_JOHN_LOST_DIGIMON_TALKED
wstag255 Lamb Chop: Master John says lost Digimon may enter the Admin Center; Kail's talk then picks ...
Definition story.h:1034
Where an actor's frames go in VRAM: one of the records after the FieldImage (Actor....
Definition field_map.h:114
A battle of an area's BattleList, which can start on the field (see FIELDSTG_startEncounter); FIGHTST...
Definition field_map.h:402
The battles of an area of the map (its cells' value at FieldMap.files[4]), one picked at random.
Definition field_map.h:411
A character of the field (FieldState.actors, a list of pointers up to NULL), which FIELDSTG_updateFie...
Definition field_map.h:194
The battles of a place (FieldState.battles), by area of the map: the fourth area's are also the ones ...
Definition field_map.h:422
An event of the table FieldState.events, up to the first id -1, which FIELDSTG_startEvent starts.
Definition field_map.h:141
void(* setFile)(s32 index, s32 file)
FIELDSTG_setMapFile.
Definition field_map.h:100
void(* setFirstMap)(s32 index)
FIELDSTG_setFirstMap: the map the player starts on (GAME.mapIndex), when the mode is new.
Definition field_map.h:104
s32 sheetEntry
the stage's sprite sheet, loaded before the field starts, or 0
Definition field_map.h:445
FieldEvent * events
up to the first id -1
Definition field_map.h:451
s32 soundBank
SOUND.loadBank's, or 0.
Definition field_map.h:459
StageTile * objects
the map objects, up to the first margin 0
Definition field_map.h:446
s32 imageFile
or an image archive file, or 0
Definition field_map.h:449
FieldBattles * battles
Definition field_map.h:450
Vec2 start
where the player starts
Definition field_map.h:456
StageSlot * slots
up to the first type 0
Definition field_map.h:447
ActorImage * actors
then the actors', from actors[2]
Definition field_map.h:454
s32 mapFile
the file of the map's tiles (FIELDSTG_createMapStreamer)
Definition field_map.h:444
s32 startDir
and its direction
Definition field_map.h:457
CVECTOR spriteColor
the field's sprites' color, unless cd is 0
Definition field_map.h:458
s32 textFile
the stage's text file, for the talks
Definition field_map.h:461
union FieldState::@12 images
s32 music
SOUND.playSound's, or 0.
Definition field_map.h:460
What a character says (FIELDSTG_runActorAction): the first whose conditions hold, or the last,...
Definition field_map.h:176
What the player can trigger on a map (FIELDSTG_updateTriggers): a record of the table at FieldState....
Definition field_map.h:276
An object of a map, which FIELDSTG draws: a record of the table at FieldState.objects,...
Definition field_map.h:208
Definition gfx.h:352
u16 actor1Conditions[]
Definition wstag202.c:571
u16 actor26Conditions[]
Definition wstag202.c:610
AreaBattle area2Battle7
Definition wstag202.c:127
FieldActorEntry actor0
Definition wstag202.c:710
FieldActorEntry actor55
Definition wstag202.c:765
void(* stageFuncs[])(void)
The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a t...
Definition wstag202.c:1034
u16 actor94Conditions[]
Definition wstag202.c:708
FieldActorEntry actor6
Definition wstag202.c:716
u16 actor59Conditions[]
Definition wstag202.c:655
FieldTalk actor79Talks[]
Definition wstag202.c:501
FieldTalk actor85Talks[]
Definition wstag202.c:525
FieldTalk actor37Talks[]
Definition wstag202.c:333
FieldActorEntry actor81
Definition wstag202.c:791
FieldTalk actor54Talks[]
Definition wstag202.c:401
u16 actor81Conditions[]
Definition wstag202.c:677
u16 actor11Conditions[]
Definition wstag202.c:586
FieldActorEntry actor52
Definition wstag202.c:762
FieldTalk actor31Talks[]
Definition wstag202.c:309
FieldTalk actor2Talks[]
Definition wstag202.c:191
AreaBattle area2Battle6
Definition wstag202.c:126
FieldTalk actor73Talks[]
Definition wstag202.c:477
u16 actor91Conditions[]
Definition wstag202.c:705
u16 actor85Conditions[]
Definition wstag202.c:693
FieldTalk actor47Talks[]
Definition wstag202.c:373
FieldActorEntry actor75
Definition wstag202.c:785
FieldTalk actor91Talks[]
Definition wstag202.c:550
FieldTalk actor42Talks[]
Definition wstag202.c:353
FieldTalk actor82Talks[]
Definition wstag202.c:513
u16 actor86Conditions[]
Definition wstag202.c:700
FieldActorEntry actor62
Definition wstag202.c:772
FieldActorEntry actor58
Definition wstag202.c:768
u16 actor83Conditions[]
Definition wstag202.c:687
FieldActorEntry actor94
Definition wstag202.c:804
FieldTalk actor53Talks[]
Definition wstag202.c:397
u16 actor10Conditions[]
Definition wstag202.c:585
u16 actor90Talk0Conditions[]
Definition wstag202.c:181
FieldActorEntry actor25
Definition wstag202.c:735
u16 actor80Conditions[]
Definition wstag202.c:676
FieldActorEntry actor24
Definition wstag202.c:734
FieldTalk actor62Talks[]
Definition wstag202.c:433
u16 actor18Conditions[]
Definition wstag202.c:598
FieldActorEntry actor57
Definition wstag202.c:767
FieldActorEntry actor17
Definition wstag202.c:727
FieldActorEntry actor39
Definition wstag202.c:749
u16 actor21Talk0Conditions[]
Definition wstag202.c:175
u16 actor72Conditions[]
Definition wstag202.c:668
u16 actor34Conditions[]
Definition wstag202.c:622
FieldTalk actor88Talks[]
Definition wstag202.c:537
FieldTalk actor68Talks[]
Definition wstag202.c:457
FieldActorEntry actor33
Definition wstag202.c:743
FieldTalk actor38Talks[]
Definition wstag202.c:337
FieldTalk actor14Talks[]
Definition wstag202.c:240
u16 actor24Conditions[]
Definition wstag202.c:604
FieldTalk actor70Talks[]
Definition wstag202.c:465
FieldActorEntry actor18
Definition wstag202.c:728
FieldTalk actor5Talks[]
Definition wstag202.c:203
AreaBattle area1Battle6
Definition wstag202.c:113
FieldActorEntry actor40
Definition wstag202.c:750
FieldTalk actor43Talks[]
Definition wstag202.c:357
u16 actor42Conditions[]
Definition wstag202.c:630
u16 actor84Conditions[]
Definition wstag202.c:692
u16 actor46Conditions[]
Definition wstag202.c:638
FieldActorEntry actor5
Definition wstag202.c:715
FieldActorEntry actor87
Definition wstag202.c:797
FieldActorEntry actor37
Definition wstag202.c:747
FieldActorEntry actor53
Definition wstag202.c:763
FieldActorEntry actor71
Definition wstag202.c:781
FieldTalk actor52Talks[]
Definition wstag202.c:393
FieldActorEntry actor36
Definition wstag202.c:746
u16 actor35Conditions[]
Definition wstag202.c:623
FieldTalk actor33Talks[]
Definition wstag202.c:317
FieldTalk actor41Talks[]
Definition wstag202.c:349
FieldActorEntry actor83
Definition wstag202.c:793
u16 actor22Conditions[]
Definition wstag202.c:602
FieldActorEntry actor85
Definition wstag202.c:795
u16 actor87Conditions[]
Definition wstag202.c:701
AreaBattle area0Battle7
Definition wstag202.c:101
FieldActorEntry actor2
Definition wstag202.c:712
FieldActorEntry actor31
Definition wstag202.c:741
const CVECTOR stageColor
the color the setup copies to FIELDSTG_state.spriteColor
Definition wstag202.c:13
u16 actor6Talk1Conditions[]
Definition wstag202.c:174
u16 actor83Talk0Actions[]
Definition wstag202.c:180
FieldTalk actor50Talks[]
Definition wstag202.c:385
AreaBattle area3Battle4
Definition wstag202.c:137
AreaBattle area3Battle3
Definition wstag202.c:136
AreaBattle area0Battle1
Definition wstag202.c:95
u16 actor70Conditions[]
Definition wstag202.c:666
u16 actor38Conditions[]
Definition wstag202.c:626
FieldActorEntry actor23
Definition wstag202.c:733
FieldActorEntry actor19
Definition wstag202.c:729
u16 actor95Conditions[]
Definition wstag202.c:709
AreaBattle area2Battle0
Definition wstag202.c:120
FieldTalk actor36Talks[]
Definition wstag202.c:329
u16 actor9Conditions[]
Definition wstag202.c:584
FieldActorEntry * stageActors[]
Definition wstag202.c:806
u16 actor93Conditions[]
Definition wstag202.c:707
FieldActorEntry actor28
Definition wstag202.c:738
u16 actor75Conditions[]
Definition wstag202.c:671
AreaBattle area1Battle2
Definition wstag202.c:109
u16 actor23Conditions[]
Definition wstag202.c:603
FieldTalk actor57Talks[]
Definition wstag202.c:413
u16 actor32Conditions[]
Definition wstag202.c:616
FieldActorEntry actor45
Definition wstag202.c:755
FieldActorEntry actor67
Definition wstag202.c:777
AreaBattle area3Battle0
Definition wstag202.c:133
FieldActorEntry actor78
Definition wstag202.c:788
u16 actor71Conditions[]
Definition wstag202.c:667
u16 actor29Conditions[]
Definition wstag202.c:613
FieldActorEntry actor82
Definition wstag202.c:792
FieldTalk actor95Talks[]
Definition wstag202.c:566
u16 actor47Conditions[]
Definition wstag202.c:639
u16 actor90Talk1Conditions[]
Definition wstag202.c:182
FieldTalk actor83Talks[]
Definition wstag202.c:517
FieldTalk actor66Talks[]
Definition wstag202.c:449
u16 actor53Conditions[]
Definition wstag202.c:645
u16 actor30Conditions[]
Definition wstag202.c:614
u16 actor52Conditions[]
Definition wstag202.c:644
FieldActorEntry actor22
Definition wstag202.c:732
u16 actor37Conditions[]
Definition wstag202.c:625
AreaBattle area0Battle6
Definition wstag202.c:100
u16 actor44Conditions[]
Definition wstag202.c:636
FieldTalk actor76Talks[]
Definition wstag202.c:489
FieldActorEntry actor41
Definition wstag202.c:751
FieldTalk actor1Talks[]
Definition wstag202.c:187
u16 actor13Conditions[]
Definition wstag202.c:593
AreaBattle area3Battle2
Definition wstag202.c:135
s16 script220[]
Definition wstag202.c:56
FieldTalk actor78Talks[]
Definition wstag202.c:497
u16 actor76Conditions[]
Definition wstag202.c:672
FieldTalk actor35Talks[]
Definition wstag202.c:325
FieldActorEntry actor29
Definition wstag202.c:739
FieldTalk actor0Talks[]
Definition wstag202.c:183
FieldTalk actor77Talks[]
Definition wstag202.c:493
FieldTalk actor44Talks[]
Definition wstag202.c:361
u16 actor68Conditions[]
Definition wstag202.c:664
u16 actor48Conditions[]
Definition wstag202.c:640
FieldTalk actor63Talks[]
Definition wstag202.c:437
AreaBattle area3Battle1
Definition wstag202.c:134
FieldTalk actor21Talks[]
Definition wstag202.c:268
AreaBattle area0Battle3
Definition wstag202.c:97
FieldActorEntry actor27
Definition wstag202.c:737
FieldTalk actor20Talks[]
Definition wstag202.c:264
FieldTalk actor56Talks[]
Definition wstag202.c:409
FieldActorEntry actor10
Definition wstag202.c:720
u16 actor31Conditions[]
Definition wstag202.c:615
FieldTalk actor65Talks[]
Definition wstag202.c:445
u16 actor19Conditions[]
Definition wstag202.c:599
FieldTalk actor49Talks[]
Definition wstag202.c:381
FieldTalk actor4Talks[]
Definition wstag202.c:199
u16 actor4Conditions[]
Definition wstag202.c:579
FieldTalk actor27Talks[]
Definition wstag202.c:293
FieldActorEntry actor4
Definition wstag202.c:714
u16 actor66Conditions[]
Definition wstag202.c:662
u16 actor3Conditions[]
Definition wstag202.c:578
u16 actor43Talk0Actions[]
Definition wstag202.c:178
AreaBattle area3Battle6
Definition wstag202.c:139
FieldTalk actor89Talks[]
Definition wstag202.c:541
u16 actor54Conditions[]
Definition wstag202.c:646
FieldTalk actor17Talks[]
Definition wstag202.c:252
u16 actor69Conditions[]
Definition wstag202.c:665
FieldTalk actor39Talks[]
Definition wstag202.c:341
FieldActorEntry actor92
Definition wstag202.c:802
FieldActorEntry actor35
Definition wstag202.c:745
FieldTalk actor11Talks[]
Definition wstag202.c:228
FieldActorEntry actor32
Definition wstag202.c:742
FieldActorEntry actor8
Definition wstag202.c:718
FieldActorEntry actor69
Definition wstag202.c:779
u16 actor21Talk1Conditions[]
Definition wstag202.c:176
u16 actor82Conditions[]
Definition wstag202.c:682
FieldActorEntry actor44
Definition wstag202.c:754
ActorImage stageImages[]
Definition wstag202.c:149
u16 actor60Conditions[]
Definition wstag202.c:656
u16 actor67Conditions[]
Definition wstag202.c:663
FieldActorEntry actor79
Definition wstag202.c:789
u16 actor78Conditions[]
Definition wstag202.c:674
FieldTalk actor28Talks[]
Definition wstag202.c:297
FieldActorEntry actor51
Definition wstag202.c:761
FieldTalk actor6Talks[]
Definition wstag202.c:207
FieldTalk actor74Talks[]
Definition wstag202.c:481
void setupStage(void)
Sets the stage up: its map, actors, battles and events, playing ASKA_BGM; BGM_0029 instead at story s...
Definition wstag202.c:27
FieldActorEntry actor43
Definition wstag202.c:753
FieldTalk actor25Talks[]
Definition wstag202.c:285
FieldTalk actor19Talks[]
Definition wstag202.c:260
FieldTalk actor51Talks[]
Definition wstag202.c:389
AreaBattle area2Battle4
Definition wstag202.c:124
FieldActorEntry actor48
Definition wstag202.c:758
FieldTalk actor80Talks[]
Definition wstag202.c:505
FieldActorEntry actor95
Definition wstag202.c:805
u16 actor33Conditions[]
Definition wstag202.c:617
u16 actor90Conditions[]
Definition wstag202.c:704
FieldTalk actor23Talks[]
Definition wstag202.c:277
u16 actor16Conditions[]
Definition wstag202.c:596
StageTile stageObjects[]
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition wstag202.c:905
u16 actor41Conditions[]
Definition wstag202.c:629
FieldActorEntry actor9
Definition wstag202.c:719
u16 actor8Conditions[]
Definition wstag202.c:583
FieldActorEntry actor20
Definition wstag202.c:730
FieldTalk actor26Talks[]
Definition wstag202.c:289
u16 actor65Conditions[]
Definition wstag202.c:661
u16 actor5Conditions[]
Definition wstag202.c:580
FieldTalk actor10Talks[]
Definition wstag202.c:224
FieldTalk actor3Talks[]
Definition wstag202.c:195
FieldActorEntry actor73
Definition wstag202.c:783
FieldTalk actor69Talks[]
Definition wstag202.c:461
FieldTalk actor9Talks[]
Definition wstag202.c:220
u16 actor50Conditions[]
Definition wstag202.c:642
BattleList area3Battles
Definition wstag202.c:141
u16 actor79Conditions[]
Definition wstag202.c:675
AreaBattle area3Battle5
Definition wstag202.c:138
FieldTalk actor32Talks[]
Definition wstag202.c:313
AreaBattle area0Battle5
Definition wstag202.c:99
u16 actor89Conditions[]
Definition wstag202.c:703
BattleList area1Battles
Definition wstag202.c:115
FieldTalk actor15Talks[]
Definition wstag202.c:244
FieldActorEntry actor86
Definition wstag202.c:796
FieldActorEntry actor50
Definition wstag202.c:760
FieldTalk actor46Talks[]
Definition wstag202.c:369
FieldActorEntry actor47
Definition wstag202.c:757
BattleList area2Battles
Definition wstag202.c:128
FieldTalk actor94Talks[]
Definition wstag202.c:562
FieldTalk actor40Talks[]
Definition wstag202.c:345
FieldActorEntry actor65
Definition wstag202.c:775
FieldTalk actor60Talks[]
Definition wstag202.c:425
FieldActorEntry actor15
Definition wstag202.c:725
FieldActorEntry actor12
Definition wstag202.c:722
u16 actor27Conditions[]
Definition wstag202.c:611
FieldActorEntry actor68
Definition wstag202.c:778
FieldActorEntry actor16
Definition wstag202.c:726
u16 actor15Conditions[]
Definition wstag202.c:595
AreaBattle area1Battle4
Definition wstag202.c:111
FieldActorEntry actor66
Definition wstag202.c:776
u16 actor61Conditions[]
Definition wstag202.c:657
u16 actor92Conditions[]
Definition wstag202.c:706
u16 actor73Conditions[]
Definition wstag202.c:669
u16 actor6Talk0Conditions[]
Definition wstag202.c:173
u16 actor77Conditions[]
Definition wstag202.c:673
FieldTalk actor67Talks[]
Definition wstag202.c:453
FieldActorEntry actor38
Definition wstag202.c:748
u16 actor6Conditions[]
Definition wstag202.c:581
AreaBattle area2Battle2
Definition wstag202.c:122
AreaBattle area1Battle5
Definition wstag202.c:112
u16 actor57Conditions[]
Definition wstag202.c:653
u16 actor14Conditions[]
Definition wstag202.c:594
FieldActorEntry actor30
Definition wstag202.c:740
FieldTalk actor71Talks[]
Definition wstag202.c:469
FieldActorEntry actor90
Definition wstag202.c:800
FieldActorEntry actor7
Definition wstag202.c:717
u16 actor43Conditions[]
Definition wstag202.c:635
u16 actor49Conditions[]
Definition wstag202.c:641
StageSlot stageSlots[]
Definition wstag202.c:1024
AreaBattle area2Battle1
Definition wstag202.c:121
FieldActorEntry actor88
Definition wstag202.c:798
u16 actor62Conditions[]
Definition wstag202.c:658
FieldActorEntry actor77
Definition wstag202.c:787
FieldActorEntry actor13
Definition wstag202.c:723
FieldTalk actor24Talks[]
Definition wstag202.c:281
AreaBattle area1Battle3
Definition wstag202.c:110
FieldTalk actor61Talks[]
Definition wstag202.c:429
FieldActorEntry actor89
Definition wstag202.c:799
AreaBattle area1Battle0
Definition wstag202.c:107
FieldActorEntry actor60
Definition wstag202.c:770
FieldActorEntry actor11
Definition wstag202.c:721
FieldActorEntry actor49
Definition wstag202.c:759
u16 actor25Conditions[]
Definition wstag202.c:605
FieldActorEntry actor1
Definition wstag202.c:711
u16 actor40Conditions[]
Definition wstag202.c:628
FieldActorEntry actor21
Definition wstag202.c:731
FieldTalk actor92Talks[]
Definition wstag202.c:554
AreaBattle area0Battle0
Definition wstag202.c:94
FieldActorEntry actor42
Definition wstag202.c:752
FieldActorEntry actor59
Definition wstag202.c:769
AreaBattle area0Battle2
Definition wstag202.c:96
FieldTalk actor13Talks[]
Definition wstag202.c:236
#define STAGE_FILE
Definition wstag202.c:21
FieldTalk actor93Talks[]
Definition wstag202.c:558
AreaBattle area2Battle5
Definition wstag202.c:125
FieldTalk actor75Talks[]
Definition wstag202.c:485
FieldActorEntry actor84
Definition wstag202.c:794
FieldTalk actor64Talks[]
Definition wstag202.c:441
u16 actor58Conditions[]
Definition wstag202.c:654
FieldTalk actor87Talks[]
Definition wstag202.c:533
FieldActorEntry actor72
Definition wstag202.c:782
FieldTalk actor81Talks[]
Definition wstag202.c:509
u16 actor45Conditions[]
Definition wstag202.c:637
AreaBattle area1Battle1
Definition wstag202.c:108
FieldActorEntry actor63
Definition wstag202.c:773
FieldTalk actor86Talks[]
Definition wstag202.c:529
u16 actor7Conditions[]
Definition wstag202.c:582
FieldTalk actor48Talks[]
Definition wstag202.c:377
AreaBattle area2Battle3
Definition wstag202.c:123
u16 actor39Conditions[]
Definition wstag202.c:627
FieldTalk actor45Talks[]
Definition wstag202.c:365
FieldTalk actor72Talks[]
Definition wstag202.c:473
u16 actor55Conditions[]
Definition wstag202.c:647
FieldTalk actor55Talks[]
Definition wstag202.c:405
u16 actor2Conditions[]
Definition wstag202.c:577
FieldActorEntry actor76
Definition wstag202.c:786
FieldTalk actor18Talks[]
Definition wstag202.c:256
u16 actor64Conditions[]
Definition wstag202.c:660
FieldTalk actor7Talks[]
Definition wstag202.c:212
u16 actor82Talk0Actions[]
Definition wstag202.c:179
u16 actor20Conditions[]
Definition wstag202.c:600
AreaBattle area0Battle4
Definition wstag202.c:98
FieldActorEntry actor34
Definition wstag202.c:744
#define STAGE_TEXT
Definition wstag202.c:19
u16 actor51Conditions[]
Definition wstag202.c:643
u16 actor42Talk0Actions[]
Definition wstag202.c:177
FieldTalk actor8Talks[]
Definition wstag202.c:216
FieldActorEntry actor91
Definition wstag202.c:801
FieldTalk actor34Talks[]
Definition wstag202.c:321
FieldTalk actor30Talks[]
Definition wstag202.c:305
FieldActorEntry actor46
Definition wstag202.c:756
FieldTalk actor12Talks[]
Definition wstag202.c:232
u16 actor74Conditions[]
Definition wstag202.c:670
FieldActorEntry actor56
Definition wstag202.c:766
FieldActorEntry actor80
Definition wstag202.c:790
AreaBattle area3Battle7
Definition wstag202.c:140
FieldActorEntry actor61
Definition wstag202.c:771
u16 actor21Conditions[]
Definition wstag202.c:601
u16 actor88Conditions[]
Definition wstag202.c:702
BattleList area0Battles
Definition wstag202.c:102
FieldTalk actor58Talks[]
Definition wstag202.c:417
AreaBattle area1Battle7
Definition wstag202.c:114
FieldTalk actor84Talks[]
Definition wstag202.c:521
u16 actor28Conditions[]
Definition wstag202.c:612
FieldTalk actor16Talks[]
Definition wstag202.c:248
u16 actor17Conditions[]
Definition wstag202.c:597
FieldActorEntry actor74
Definition wstag202.c:784
FieldTalk actor29Talks[]
Definition wstag202.c:301
FieldActorEntry actor3
Definition wstag202.c:713
FieldActorEntry actor54
Definition wstag202.c:764
FieldActorEntry actor26
Definition wstag202.c:736
FieldBattles stageBattles[]
Definition wstag202.c:146
FieldActorEntry actor70
Definition wstag202.c:780
u16 actor36Conditions[]
Definition wstag202.c:624
u16 actor56Conditions[]
Definition wstag202.c:648
FieldActorEntry actor14
Definition wstag202.c:724
FieldEvent stageEvents[]
Definition wstag202.c:1037
u16 actor12Conditions[]
Definition wstag202.c:587
FieldTalk actor22Talks[]
Definition wstag202.c:273
FieldActorEntry actor93
Definition wstag202.c:803
FieldActorEntry actor64
Definition wstag202.c:774
u16 actor63Conditions[]
Definition wstag202.c:659
u16 actor0Conditions[]
Definition wstag202.c:570
FieldTalk actor59Talks[]
Definition wstag202.c:421
FieldTalk actor90Talks[]
Definition wstag202.c:545