Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
wstag212.c
Go to the documentation of this file.
1/*
2 * WSTAG212: Main Lobby, Asuka City: the story events' copy. STAGSLCT's "Main
3 * Lobby: demo": the first partner's download, the DO Guard, Kail asking how to
4 * change into Digimon.
5 */
6
7#include "common.h"
8#include "field/stage.h"
9/* Defined below, after the code that uses them */
11extern s8 tileEffectSortY[];
12extern s16 tileEffectPlaces[][2];
13extern s32 tileEffectSounds[];
14
16
18
19/* Moves its map objects to (x, y) and animates them when the substate is set to 1 */
21 StageTile *tile;
22 StageTile *t;
23 s32 i;
24 s32 n;
25 s32 j;
26 s32 frame;
27 s32 done;
28
29 switch (task->state) {
30 case TASK_INIT:
31 default:
32 resetTileEffect(task);
33 task->nextState(task);
34 break;
35 case TASK_RUN:
36 switch (task->substate) {
37 case 0:
38 break;
39 case 1:
40 switch (task->step) {
41 case 0:
42 n = 0;
43 for (t = FIELDSTG_state.objects; t->margin != 0; t++) {
44 if (t->anim >= 1 && t->anim <= 3) {
45 task->anims[n].tile = t;
46 t->x = task->x;
47 t->y = task->y;
48 t->sortY = task->y + tileEffectSortY[n];
49 n++;
50 }
51 }
52 task->nextStep(task);
53 /* fallthrough */
54 case 1:
55 done = 0;
56 for (i = 0; i < 3; i++) {
57 tile = task->anims[i].tile;
58 frame = stepAnimationOnce(&task->anims[i], updateTileEffectFrames[i], 0);
59 switch (frame) {
60 case 0xFF:
61 done++;
62 tile->visible = 0;
63 tile->frame = 0;
64 break;
65 case 0x12C:
66 tile->visible = 0;
67 tile->frame = 0;
68 break;
69 default:
70 tile->visible = 1;
71 tile->frame = frame;
72 break;
73 }
74 }
75 if (done < 3) {
76 break;
77 }
78 task->nextStep(task);
79 /* fallthrough */
80 case 2:
81 for (j = 0; j < 3; j++) {
82 task->anims[j].tile->visible = 0;
83 }
84 resetTileEffect(task);
85 task->setSubstate(task, 0);
86 break;
87 }
88 break;
89 }
90 break;
91 case TASK_DONE:
92 case TASK_KILL:
93 break;
94 }
95}
96
97/* Starts the effect at the place of map ID */
99 s32 i;
100
101 if (task != NULL) {
102 i = 0;
103 switch (id) {
104 case 0x33B:
105 i = 1;
106 /* fallthrough */
107 case 0x33A:
108 i++;
109 /* fallthrough */
110 case 0x32F:
111 task->x = tileEffectPlaces[i][0];
112 task->y = tileEffectPlaces[i][1];
113 task->setSubstate(task, 1);
115 break;
116 }
117 }
118}
119
120/*
121 * Command 810 of the event scripts: the effect of events 10 to 12, where the
122 * Tamer Service downloads the partners
123 */
125 return createTaskWithId(updateTileEffect, sizeof(StageTileEffect), 0, arg);
126}
127
128/* Creates the event object of the story so far, the first that applies */
129void updateStage(StageTask *task, void **children) {
130 switch (task->state) {
131 case TASK_INIT:
132 default:
134 children[0] = FIELDSTG_startEvent(0xA);
136 children[0] = FIELDSTG_startEvent(0xB);
138 children[0] = FIELDSTG_startEvent(0xC);
140 children[0] = FIELDSTG_startEvent(0x10F);
142 children[0] = FIELDSTG_startEvent(0x111);
144 children[0] = FIELDSTG_startEvent(0x160);
145 }
146 task->nextState(task);
147 break;
148 case TASK_RUN:
149 case TASK_DONE:
150 case TASK_KILL:
151 break;
152 }
153}
154
155#define STAGE_CHILDREN_SIZE 4
157
158/*
159 * After events 10 to 12, where the Tamer Service downloads the starter pack
160 * the player chose (A, B or C): moves the story on to STORY_PARTNERS_RECEIVED
161 */
165
166/*
167 * After event 271, with Maniac Phillip, Lazy Fei, Tamer Service, Kail, Lazy
168 * Alan, Worker Jeff, Miss Misha, Game Master and Energetic Yuki: sets flag
169 * 0x4005 and keeps it from playing again
170 */
175
176/* After event 273, with Kail: moves the story on to STORY_LOOKING_FOR_TEDDY */
180
181/*
182 * After event 352, with Kail: lets event 40 of WSTAG285 start and moves the
183 * story on to its step 0xE
184 */
185void endEvent352(void) {
186 FLAGS_00.applyAction(FLAG(0x40, 5), 0);
188}
189
190const CVECTOR stageColor = { 0x54, 0x67, 0x96, 0x00 };
191#if VERSION_US || VERSION_JP
192#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_05)
193#define EVENT_TEXT_FILE (TEXT_EVENTS_200 - 1)
194#define STAGE_FILE 0x4BE
195#elif VERSION_EU
196#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_05)
197#define EVENT_TEXT_FILE (TEXT_EVENTS_200 - 1)
198#define STAGE_FILE 0x4CE
199#endif
200/* Sets the stage up: its map, actors and events, playing the ambience ENV_0205 */
218
220 SCRIPT_FOLLOW(1, 1),
221 SCRIPT_PLACE(1, 0x160, 0x110),
222 SCRIPT_POSE(1, 1, 5),
223 SCRIPT_PLACE(5, 0x3D8, 0x194),
224 SCRIPT_POSE(5, 1, 3),
225 SCRIPT_PLACE(6, 0x3F0, 0x1A1),
226 SCRIPT_POSE(6, 1, 3),
227 SCRIPT_PLACE(0x1B, 0x3A1, 0x179),
228 SCRIPT_POSE(0x1B, 1, 7),
229 SCRIPT_PLACE(0x20, 0x180, 0xFF),
230 SCRIPT_POSE(0x20, 1, 1),
231 SCRIPT_PLACE(0x24, 0x1B2, 0xF7),
232 SCRIPT_POSE(0x24, 1, 7),
233 SCRIPT_PLACE(0x2D, 0x29F, 0x178),
234 SCRIPT_POSE(0x2D, 1, 6),
235 SCRIPT_PLACE(0x2E, 0x187, 0x167),
236 SCRIPT_POSE(0x2E, 1, 1),
237 SCRIPT_PLACE(0x31, 0x178, 0xD5),
238 SCRIPT_POSE(0x31, 1, 7),
239 SCRIPT_PLACE(0x34, 0xBF, 0x10A),
240 SCRIPT_POSE(0x34, 1, 7),
241 SCRIPT_COMMAND(0x32A, 0x33C, 1),
242 SCRIPT_WAIT(0x78),
243 SCRIPT_TALK(0, 1, 0x20, 0),
244 SCRIPT_POSE(0x20, 1, 1),
246 SCRIPT_WAIT(0x1E),
247 SCRIPT_WALK(1, 0x131, 0x128, 1),
249 SCRIPT_POSE(1, 1, 1),
250 SCRIPT_WAIT(0x1E),
251 SCRIPT_TALK(0, 2, 1, 1),
252 SCRIPT_POSE(1, 7, 1),
254 SCRIPT_POSE(1, 1, 3),
255 SCRIPT_PLACE(0xB, 0x1D5, 0x159),
256 SCRIPT_POSE(0xB, 1, 3),
257 SCRIPT_PLACE(0xC, 0x1E7, 0x162),
258 SCRIPT_POSE(0xC, 1, 3),
259 SCRIPT_WAIT(0x1E),
260 SCRIPT_POSE(1, 1, 3),
261 SCRIPT_WALK(0xB, 0x180, 0x12E, 2),
262 SCRIPT_WALK(0xC, 0x193, 0x138, 2),
263 SCRIPT_WAIT_WALK(0xC),
264 SCRIPT_TALK(0, 3, 0xC, 0),
265 SCRIPT_POSE(0xB, 1, 2),
266 SCRIPT_POSE(0xC, 7, 2),
268 SCRIPT_POSE(0xC, 1, 2),
269 SCRIPT_POSE(0x2E, 1, 4),
270 SCRIPT_WAIT(0x1E),
271 SCRIPT_COMMAND(0x323, 0x325, 1),
272 SCRIPT_WAIT(0x3C),
273 SCRIPT_COMMAND(0x323, 0x326, 1),
274 SCRIPT_WAIT(0x1E),
275 SCRIPT_POSE(1, 1, 6),
276 SCRIPT_WAIT(0x1E),
277 SCRIPT_TALK(0, 4, 1, 1),
278 SCRIPT_POSE(1, 7, 6),
279 SCRIPT_POSE(0x2E, 1, 3),
281 SCRIPT_POSE(1, 1, 6),
282 SCRIPT_WAIT(0x1E),
283 SCRIPT_TALK(0, 5, 0xC, 0),
284 SCRIPT_POSE(0xC, 7, 2),
286 SCRIPT_POSE(0xC, 1, 3),
287 SCRIPT_WAIT(0x1E),
288 SCRIPT_TALK(0, 6, 0xC, 0),
289 SCRIPT_POSE(0xC, 7, 3),
291 SCRIPT_TALK(0, 7, 0xB, 0),
292 SCRIPT_POSE(0xB, 7, 7),
293 SCRIPT_POSE(0xC, 1, 3),
295 SCRIPT_POSE(0xB, 1, 7),
296 SCRIPT_WAIT(0x1E),
297 SCRIPT_TALK(0, 8, 1, 1),
298 SCRIPT_POSE(1, 7, 6),
300 SCRIPT_POSE(1, 1, 6),
301 SCRIPT_POSE(0xB, 1, 2),
302 SCRIPT_WAIT(0x1E),
303 SCRIPT_TALK(0, 9, 0xB, 0),
304 SCRIPT_POSE(0xB, 7, 2),
306 SCRIPT_POSE(0xB, 1, 2),
307 SCRIPT_POSE(0xC, 1, 2),
308 SCRIPT_WAIT(0x1E),
309 SCRIPT_TALK(0, 0xA, 0xC, 0),
310 SCRIPT_POSE(0xC, 7, 2),
312 SCRIPT_POSE(0xC, 1, 2),
313 SCRIPT_WAIT(0x1E),
315 SCRIPT_WAIT(0x1E),
316 SCRIPT_COMMAND(0x32A, 0x32F, 1),
317 SCRIPT_WAIT(0x1E),
318 SCRIPT_COMMAND(0x323, 0x325, 1),
319 SCRIPT_COMMAND(0x324, 0x325, 0xB),
320 SCRIPT_COMMAND(0x325, 0x325, 0xC),
321 SCRIPT_WAIT(0x3C),
322 SCRIPT_LOOK_AT(0, 0x111, 0x117),
323 SCRIPT_POSE(1, 1, 3),
324 SCRIPT_POSE(0xB, 1, 2),
325 SCRIPT_POSE(0xC, 1, 2),
326 SCRIPT_COMMAND(0x323, 0x326, 1),
327 SCRIPT_COMMAND(0x324, 0x326, 0xB),
328 SCRIPT_COMMAND(0x325, 0x326, 0xC),
329 SCRIPT_WAIT(0x1E),
330 SCRIPT_WAIT(0x3C),
331 SCRIPT_PLACE(0xB6, 0xD9, 0x124),
332 SCRIPT_POSE(0xB6, 1, 7),
333 SCRIPT_WAIT(0x3C),
334 SCRIPT_WAIT(0x1E),
335 SCRIPT_COMMAND(0x32A, 0x33A, 1),
336 SCRIPT_WAIT(0xB4),
337 SCRIPT_PLACE(0x41, 0x101, 0x110),
338 SCRIPT_POSE(0x41, 1, 7),
339 SCRIPT_WAIT(0x3C),
340 SCRIPT_WAIT(0x1E),
341 SCRIPT_COMMAND(0x32A, 0x33B, 1),
342 SCRIPT_WAIT(0xB4),
343 SCRIPT_PLACE(0x42, 0x129, 0xFC),
344 SCRIPT_POSE(0x42, 1, 7),
345 SCRIPT_WAIT(0x3C),
347 SCRIPT_WAIT(0x1E),
348 SCRIPT_TALK(0, 0xB, 1, 1),
349 SCRIPT_POSE(1, 7, 3),
351 SCRIPT_POSE(1, 1, 3),
352 SCRIPT_WAIT(0x1E),
353 SCRIPT_TALK(0, 0xC, 0xC, 0),
354 SCRIPT_POSE(0xC, 7, 2),
356 SCRIPT_POSE(0xC, 1, 2),
357 SCRIPT_WAIT(0x1E),
358 SCRIPT_TALK(0, 0xD, 0xB, 0),
359 SCRIPT_POSE(0xB, 7, 2),
361 SCRIPT_POSE(0xB, 1, 2),
362 SCRIPT_WAIT(0x1E),
363 SCRIPT_TALK(0, 0xE, 1, 1),
365 SCRIPT_POSE(1, 1, 3),
366 SCRIPT_WAIT(0x1E),
367 SCRIPT_POSE(1, 1, 2),
368 SCRIPT_POSE(0xB6, 1, 6),
369 SCRIPT_WAIT(0x1E),
370 SCRIPT_TALK(0, 0xF, 0xB6, 0),
372 SCRIPT_POSE(1, 1, 3),
373 SCRIPT_POSE(0xB6, 1, 7),
374 SCRIPT_WAIT(0x1E),
375 SCRIPT_TALK(0, 0x10, 0x41, 0),
377 SCRIPT_POSE(1, 1, 4),
378 SCRIPT_POSE(0x42, 1, 0),
379 SCRIPT_WAIT(0x1E),
380 SCRIPT_TALK(0, 0x11, 0x42, 0),
382 SCRIPT_POSE(1, 1, 3),
383 SCRIPT_WAIT(0x1E),
384 SCRIPT_TALK(0, 0x12, 1, 1),
385 SCRIPT_POSE(1, 7, 3),
387 SCRIPT_POSE(1, 1, 3),
388 SCRIPT_WAIT(0x1E),
389 SCRIPT_POSE(1, 0x40, 3),
390 SCRIPT_POSE(0x41, 0x40, 7),
391 SCRIPT_POSE(0x42, 0x40, 7),
392 SCRIPT_POSE(0xB6, 0x40, 7),
393 SCRIPT_WAIT(0x5A),
394 SCRIPT_POSE(1, 1, 3),
395 SCRIPT_POSE(0x41, 1, 7),
396 SCRIPT_POSE(0x42, 1, 7),
397 SCRIPT_POSE(0xB6, 1, 7),
398 SCRIPT_WAIT(0x1E),
399 SCRIPT_FOLLOW(0, 1),
400 SCRIPT_POSE(1, 1, 6),
401 SCRIPT_POSE(0xB, 1, 2),
402 SCRIPT_POSE(0xC, 1, 2),
403 SCRIPT_WAIT(0x1E),
404 SCRIPT_TALK(0, 0x13, 1, 1),
405 SCRIPT_POSE(1, 7, 6),
407 SCRIPT_POSE(1, 1, 6),
408 SCRIPT_WAIT(0x1E),
409 SCRIPT_TALK(0, 0x14, 0xB, 0),
410 SCRIPT_POSE(0xB, 7, 2),
412 SCRIPT_POSE(0xB, 1, 2),
413 SCRIPT_WAIT(0x1E),
414 SCRIPT_TALK(0, 0x15, 0xC, 0),
415 SCRIPT_POSE(0xC, 7, 2),
417 SCRIPT_POSE(0xC, 1, 2),
418 SCRIPT_WAIT(0x1E),
419 SCRIPT_POSE(1, 1, 1),
420 SCRIPT_WAIT(0x1E),
421 SCRIPT_WALK(1, 0xE8, 0x14C, 1),
422 SCRIPT_POSE(0xB, 1, 1),
423 SCRIPT_POSE(0xC, 1, 1),
425 SCRIPT_POSE(1, 1, 1),
426 SCRIPT_WALK(0x41, 0x131, 0x128, 1),
427 SCRIPT_WALK(0x42, 0x158, 0x114, 1),
428 SCRIPT_WALK(0xB6, 0x108, 0x13C, 1),
429 SCRIPT_WAIT_WALK(0x42),
430 SCRIPT_WALK(0x41, 0x128, 0x12C, 1),
431 SCRIPT_WALK(0x42, 0x148, 0x11C, 1),
432 SCRIPT_POSE(0xB6, 1, 1),
433 SCRIPT_WAIT_WALK(0x42),
434 SCRIPT_WALK(1, 0x5A, 0x191, 1),
435 SCRIPT_WALK(0x41, 0x5A, 0x191, 1),
436 SCRIPT_WALK(0x42, 0x5A, 0x191, 1),
437 SCRIPT_WALK(0xB6, 0x5A, 0x191, 1),
438 SCRIPT_WAIT(0x78),
439 SCRIPT_LEAVE(0x200, 0x3E8, 0xEC, 1),
441};
443 SCRIPT_FOLLOW(1, 1),
444 SCRIPT_PLACE(1, 0x160, 0x110),
445 SCRIPT_POSE(1, 1, 5),
446 SCRIPT_PLACE(0x20, 0x180, 0xFF),
447 SCRIPT_POSE(0x20, 1, 1),
448 SCRIPT_PLACE(0x24, 0x1B2, 0xF7),
449 SCRIPT_POSE(0x24, 1, 7),
450 SCRIPT_PLACE(0x2E, 0x187, 0x167),
451 SCRIPT_POSE(0x2E, 1, 1),
452 SCRIPT_PLACE(0x31, 0x178, 0xD5),
453 SCRIPT_POSE(0x31, 1, 7),
454 SCRIPT_PLACE(0x34, 0xBF, 0x10A),
455 SCRIPT_POSE(0x34, 1, 7),
456 SCRIPT_COMMAND(0x32A, 0x33C, 1),
457 SCRIPT_WAIT(0x78),
458 SCRIPT_TALK(0, 1, 0x20, 0),
459 SCRIPT_POSE(0x20, 1, 1),
461 SCRIPT_WAIT(0x1E),
462 SCRIPT_WALK(1, 0x131, 0x128, 1),
464 SCRIPT_POSE(1, 1, 1),
465 SCRIPT_WAIT(0x1E),
466 SCRIPT_TALK(0, 2, 1, 1),
467 SCRIPT_POSE(1, 7, 1),
469 SCRIPT_POSE(1, 1, 3),
470 SCRIPT_PLACE(0xB, 0x1D5, 0x159),
471 SCRIPT_POSE(0xB, 1, 3),
472 SCRIPT_PLACE(0xC, 0x1E7, 0x162),
473 SCRIPT_POSE(0xC, 1, 3),
474 SCRIPT_WAIT(0x1E),
475 SCRIPT_POSE(1, 1, 3),
476 SCRIPT_WALK(0xB, 0x180, 0x12E, 2),
477 SCRIPT_WALK(0xC, 0x193, 0x138, 2),
478 SCRIPT_WAIT_WALK(0xC),
479 SCRIPT_TALK(0, 3, 0xC, 0),
480 SCRIPT_POSE(0xB, 1, 2),
481 SCRIPT_POSE(0xC, 7, 2),
483 SCRIPT_POSE(0xC, 1, 2),
484 SCRIPT_POSE(0x2E, 1, 4),
485 SCRIPT_WAIT(0x1E),
486 SCRIPT_COMMAND(0x323, 0x325, 1),
487 SCRIPT_WAIT(0x3C),
488 SCRIPT_COMMAND(0x323, 0x326, 1),
489 SCRIPT_WAIT(0x1E),
490 SCRIPT_POSE(1, 1, 6),
491 SCRIPT_WAIT(0x1E),
492 SCRIPT_TALK(0, 4, 1, 1),
493 SCRIPT_POSE(1, 7, 6),
494 SCRIPT_POSE(0x2E, 1, 3),
496 SCRIPT_POSE(1, 1, 6),
497 SCRIPT_WAIT(0x1E),
498 SCRIPT_TALK(0, 5, 0xC, 0),
499 SCRIPT_POSE(0xC, 7, 2),
501 SCRIPT_POSE(0xC, 1, 3),
502 SCRIPT_WAIT(0x1E),
503 SCRIPT_TALK(0, 6, 0xC, 0),
504 SCRIPT_POSE(0xC, 7, 3),
506 SCRIPT_TALK(0, 7, 0xB, 0),
507 SCRIPT_POSE(0xB, 7, 7),
508 SCRIPT_POSE(0xC, 1, 3),
510 SCRIPT_POSE(0xB, 1, 7),
511 SCRIPT_WAIT(0x1E),
512 SCRIPT_TALK(0, 8, 1, 1),
513 SCRIPT_POSE(1, 7, 6),
515 SCRIPT_POSE(1, 1, 6),
516 SCRIPT_POSE(0xB, 1, 2),
517 SCRIPT_WAIT(0x1E),
518 SCRIPT_TALK(0, 9, 0xB, 0),
519 SCRIPT_POSE(0xB, 7, 2),
521 SCRIPT_POSE(0xB, 1, 2),
522 SCRIPT_POSE(0xC, 1, 2),
523 SCRIPT_WAIT(0x1E),
524 SCRIPT_TALK(0, 0xA, 0xC, 0),
525 SCRIPT_POSE(0xC, 7, 2),
527 SCRIPT_POSE(0xC, 1, 2),
528 SCRIPT_WAIT(0x1E),
530 SCRIPT_WAIT(0x1E),
531 SCRIPT_COMMAND(0x32A, 0x32F, 1),
532 SCRIPT_WAIT(0x1E),
533 SCRIPT_COMMAND(0x323, 0x325, 1),
534 SCRIPT_COMMAND(0x324, 0x325, 0xB),
535 SCRIPT_COMMAND(0x325, 0x325, 0xC),
536 SCRIPT_WAIT(0x3C),
537 SCRIPT_LOOK_AT(0, 0x111, 0x117),
538 SCRIPT_POSE(1, 1, 3),
539 SCRIPT_POSE(0xB, 1, 2),
540 SCRIPT_POSE(0xC, 1, 2),
541 SCRIPT_COMMAND(0x323, 0x326, 1),
542 SCRIPT_COMMAND(0x324, 0x326, 0xB),
543 SCRIPT_COMMAND(0x325, 0x326, 0xC),
544 SCRIPT_WAIT(0x1E),
545 SCRIPT_WAIT(0x3C),
546 SCRIPT_PLACE(0xB5, 0xD9, 0x124),
547 SCRIPT_POSE(0xB5, 1, 7),
548 SCRIPT_WAIT(0x3C),
549 SCRIPT_WAIT(0x1E),
550 SCRIPT_COMMAND(0x32A, 0x33A, 1),
551 SCRIPT_WAIT(0xB4),
552 SCRIPT_PLACE(0x22, 0x101, 0x110),
553 SCRIPT_POSE(0x22, 1, 7),
554 SCRIPT_WAIT(0x3C),
555 SCRIPT_WAIT(0x1E),
556 SCRIPT_COMMAND(0x32A, 0x33B, 1),
557 SCRIPT_WAIT(0xB4),
558 SCRIPT_PLACE(0x41, 0x129, 0xFC),
559 SCRIPT_POSE(0x41, 1, 7),
560 SCRIPT_WAIT(0x3C),
562 SCRIPT_WAIT(0x1E),
563 SCRIPT_TALK(0, 0xB, 1, 1),
564 SCRIPT_POSE(1, 7, 3),
566 SCRIPT_POSE(1, 1, 3),
567 SCRIPT_WAIT(0x1E),
568 SCRIPT_TALK(0, 0xC, 0xC, 0),
569 SCRIPT_POSE(0xC, 7, 2),
571 SCRIPT_POSE(0xC, 1, 2),
572 SCRIPT_WAIT(0x1E),
573 SCRIPT_TALK(0, 0xD, 0xB, 0),
574 SCRIPT_POSE(0xB, 7, 2),
576 SCRIPT_POSE(0xB, 1, 2),
577 SCRIPT_WAIT(0x1E),
578 SCRIPT_TALK(0, 0xE, 1, 1),
580 SCRIPT_POSE(1, 1, 3),
581 SCRIPT_WAIT(0x1E),
582 SCRIPT_POSE(1, 1, 2),
583 SCRIPT_POSE(0xB5, 1, 6),
584 SCRIPT_WAIT(0x1E),
585 SCRIPT_TALK(0, 0xF, 0xB5, 0),
587 SCRIPT_POSE(1, 1, 3),
588 SCRIPT_POSE(0xB5, 1, 7),
589 SCRIPT_WAIT(0x1E),
590 SCRIPT_TALK(0, 0x10, 0x22, 0),
592 SCRIPT_POSE(1, 1, 4),
593 SCRIPT_POSE(0x41, 1, 0),
594 SCRIPT_WAIT(0x1E),
595 SCRIPT_TALK(0, 0x11, 0x41, 0),
597 SCRIPT_POSE(1, 1, 3),
598 SCRIPT_WAIT(0x1E),
599 SCRIPT_TALK(0, 0x12, 1, 1),
600 SCRIPT_POSE(1, 7, 3),
602 SCRIPT_POSE(1, 1, 3),
603 SCRIPT_WAIT(0x1E),
604 SCRIPT_POSE(1, 0x40, 3),
605 SCRIPT_POSE(0x22, 0x40, 7),
606 SCRIPT_POSE(0x41, 0x40, 7),
607 SCRIPT_POSE(0xB5, 0x40, 7),
608 SCRIPT_WAIT(0x5A),
609 SCRIPT_POSE(1, 1, 3),
610 SCRIPT_POSE(0x22, 1, 7),
611 SCRIPT_POSE(0x41, 1, 7),
612 SCRIPT_POSE(0xB5, 1, 7),
613 SCRIPT_WAIT(0x1E),
614 SCRIPT_FOLLOW(0, 1),
615 SCRIPT_POSE(1, 1, 6),
616 SCRIPT_POSE(0xB, 1, 2),
617 SCRIPT_POSE(0xC, 1, 2),
618 SCRIPT_WAIT(0x1E),
619 SCRIPT_TALK(0, 0x13, 1, 1),
620 SCRIPT_POSE(1, 7, 6),
622 SCRIPT_POSE(1, 1, 6),
623 SCRIPT_WAIT(0x1E),
624 SCRIPT_TALK(0, 0x14, 0xB, 0),
625 SCRIPT_POSE(0xB, 7, 2),
627 SCRIPT_POSE(0xB, 1, 2),
628 SCRIPT_WAIT(0x1E),
629 SCRIPT_TALK(0, 0x15, 0xC, 0),
630 SCRIPT_POSE(0xC, 7, 2),
632 SCRIPT_POSE(0xC, 1, 2),
633 SCRIPT_WAIT(0x1E),
634 SCRIPT_POSE(1, 1, 1),
635 SCRIPT_WAIT(0x1E),
636 SCRIPT_WALK(1, 0xE8, 0x14C, 1),
637 SCRIPT_POSE(0xB, 1, 1),
638 SCRIPT_POSE(0xC, 1, 1),
640 SCRIPT_POSE(1, 1, 1),
641 SCRIPT_WALK(0x22, 0x131, 0x128, 1),
642 SCRIPT_WALK(0x41, 0x158, 0x114, 1),
643 SCRIPT_WALK(0xB5, 0x108, 0x13C, 1),
644 SCRIPT_WAIT_WALK(0x41),
645 SCRIPT_WALK(0x22, 0x128, 0x12C, 1),
646 SCRIPT_WALK(0x41, 0x148, 0x11C, 1),
647 SCRIPT_POSE(0xB5, 1, 1),
648 SCRIPT_WAIT_WALK(0x41),
649 SCRIPT_WALK(1, 0x5A, 0x191, 1),
650 SCRIPT_WALK(0x22, 0x5A, 0x191, 1),
651 SCRIPT_WALK(0x41, 0x5A, 0x191, 1),
652 SCRIPT_WALK(0xB5, 0x5A, 0x191, 1),
653 SCRIPT_WAIT(0x78),
654 SCRIPT_LEAVE(0x200, 0x3E8, 0xEC, 1),
656};
658 SCRIPT_FOLLOW(1, 1),
659 SCRIPT_PLACE(1, 0x160, 0x110),
660 SCRIPT_POSE(1, 1, 5),
661 SCRIPT_PLACE(0x20, 0x180, 0xFF),
662 SCRIPT_POSE(0x20, 1, 1),
663 SCRIPT_PLACE(0x24, 0x1B2, 0xF7),
664 SCRIPT_POSE(0x24, 1, 7),
665 SCRIPT_PLACE(0x2E, 0x187, 0x167),
666 SCRIPT_POSE(0x2E, 1, 1),
667 SCRIPT_PLACE(0x31, 0x178, 0xD5),
668 SCRIPT_POSE(0x31, 1, 7),
669 SCRIPT_PLACE(0x34, 0xBF, 0x10A),
670 SCRIPT_POSE(0x34, 1, 7),
671 SCRIPT_COMMAND(0x32A, 0x33C, 1),
672 SCRIPT_WAIT(0x78),
673 SCRIPT_TALK(0, 1, 0x20, 0),
674 SCRIPT_POSE(0x20, 1, 1),
676 SCRIPT_WAIT(0x1E),
677 SCRIPT_WALK(1, 0x131, 0x128, 1),
679 SCRIPT_POSE(1, 1, 1),
680 SCRIPT_WAIT(0x1E),
681 SCRIPT_TALK(0, 2, 1, 1),
682 SCRIPT_POSE(1, 7, 1),
684 SCRIPT_POSE(1, 1, 3),
685 SCRIPT_PLACE(0xB, 0x1D5, 0x159),
686 SCRIPT_POSE(0xB, 1, 3),
687 SCRIPT_PLACE(0xC, 0x1E7, 0x162),
688 SCRIPT_POSE(0xC, 1, 3),
689 SCRIPT_WAIT(0x1E),
690 SCRIPT_POSE(1, 1, 3),
691 SCRIPT_WALK(0xB, 0x180, 0x12E, 2),
692 SCRIPT_WALK(0xC, 0x193, 0x138, 2),
693 SCRIPT_WAIT_WALK(0xC),
694 SCRIPT_TALK(0, 3, 0xC, 0),
695 SCRIPT_POSE(0xB, 1, 2),
696 SCRIPT_POSE(0xC, 7, 2),
698 SCRIPT_POSE(0xC, 1, 2),
699 SCRIPT_POSE(0x2E, 1, 4),
700 SCRIPT_WAIT(0x1E),
701 SCRIPT_COMMAND(0x323, 0x325, 1),
702 SCRIPT_WAIT(0x3C),
703 SCRIPT_COMMAND(0x323, 0x326, 1),
704 SCRIPT_WAIT(0x1E),
705 SCRIPT_POSE(1, 1, 6),
706 SCRIPT_WAIT(0x1E),
707 SCRIPT_TALK(0, 4, 1, 1),
708 SCRIPT_POSE(1, 7, 6),
709 SCRIPT_POSE(0x2E, 1, 3),
711 SCRIPT_POSE(1, 1, 6),
712 SCRIPT_WAIT(0x1E),
713 SCRIPT_TALK(0, 5, 0xC, 0),
714 SCRIPT_POSE(0xC, 7, 2),
716 SCRIPT_POSE(0xC, 1, 3),
717 SCRIPT_WAIT(0x1E),
718 SCRIPT_TALK(0, 6, 0xC, 0),
719 SCRIPT_POSE(0xC, 7, 3),
721 SCRIPT_TALK(0, 7, 0xB, 0),
722 SCRIPT_POSE(0xB, 7, 7),
723 SCRIPT_POSE(0xC, 1, 3),
725 SCRIPT_POSE(0xB, 1, 7),
726 SCRIPT_WAIT(0x1E),
727 SCRIPT_TALK(0, 8, 1, 1),
728 SCRIPT_POSE(1, 7, 6),
730 SCRIPT_POSE(1, 1, 6),
731 SCRIPT_POSE(0xB, 1, 2),
732 SCRIPT_WAIT(0x1E),
733 SCRIPT_TALK(0, 9, 0xB, 0),
734 SCRIPT_POSE(0xB, 7, 2),
736 SCRIPT_POSE(0xB, 1, 2),
737 SCRIPT_POSE(0xC, 1, 2),
738 SCRIPT_WAIT(0x1E),
739 SCRIPT_TALK(0, 0xA, 0xC, 0),
740 SCRIPT_POSE(0xC, 7, 2),
742 SCRIPT_POSE(0xC, 1, 2),
743 SCRIPT_WAIT(0x1E),
745 SCRIPT_WAIT(0x1E),
746 SCRIPT_COMMAND(0x32A, 0x32F, 1),
747 SCRIPT_WAIT(0x1E),
748 SCRIPT_COMMAND(0x323, 0x325, 1),
749 SCRIPT_COMMAND(0x324, 0x325, 0xB),
750 SCRIPT_COMMAND(0x325, 0x325, 0xC),
751 SCRIPT_WAIT(0x3C),
752 SCRIPT_LOOK_AT(0, 0x111, 0x117),
753 SCRIPT_POSE(1, 1, 3),
754 SCRIPT_POSE(0xB, 1, 2),
755 SCRIPT_POSE(0xC, 1, 2),
756 SCRIPT_COMMAND(0x323, 0x326, 1),
757 SCRIPT_COMMAND(0x324, 0x326, 0xB),
758 SCRIPT_COMMAND(0x325, 0x326, 0xC),
759 SCRIPT_WAIT(0x1E),
760 SCRIPT_WAIT(0x3C),
761 SCRIPT_PLACE(0xB4, 0xD9, 0x124),
762 SCRIPT_POSE(0xB4, 1, 7),
763 SCRIPT_WAIT(0x3C),
764 SCRIPT_WAIT(0x1E),
765 SCRIPT_COMMAND(0x32A, 0x33A, 0x40),
766 SCRIPT_WAIT(0xB4),
767 SCRIPT_PLACE(0x40, 0x101, 0x110),
768 SCRIPT_POSE(0x40, 1, 7),
769 SCRIPT_WAIT(0x3C),
770 SCRIPT_WAIT(0x1E),
771 SCRIPT_COMMAND(0x32A, 0x33B, 0x42),
772 SCRIPT_WAIT(0xB4),
773 SCRIPT_PLACE(0x42, 0x129, 0xFC),
774 SCRIPT_POSE(0x42, 1, 7),
775 SCRIPT_WAIT(0x3C),
777 SCRIPT_WAIT(0x1E),
778 SCRIPT_TALK(0, 0xB, 1, 1),
779 SCRIPT_POSE(1, 7, 3),
781 SCRIPT_POSE(1, 1, 3),
782 SCRIPT_WAIT(0x1E),
783 SCRIPT_TALK(0, 0xC, 0xC, 0),
784 SCRIPT_POSE(0xC, 7, 2),
786 SCRIPT_POSE(0xC, 1, 2),
787 SCRIPT_WAIT(0x1E),
788 SCRIPT_TALK(0, 0xD, 0xB, 0),
789 SCRIPT_POSE(0xB, 7, 2),
791 SCRIPT_POSE(0xB, 1, 2),
792 SCRIPT_WAIT(0x1E),
793 SCRIPT_TALK(0, 0xE, 1, 1),
795 SCRIPT_POSE(1, 1, 3),
796 SCRIPT_WAIT(0x1E),
797 SCRIPT_POSE(1, 1, 2),
798 SCRIPT_POSE(0xB4, 1, 6),
799 SCRIPT_WAIT(0x1E),
800 SCRIPT_TALK(0, 0xF, 0xB4, 2),
802 SCRIPT_POSE(1, 1, 3),
803 SCRIPT_POSE(0xB4, 1, 7),
804 SCRIPT_WAIT(0x1E),
805 SCRIPT_TALK(0, 0x10, 0x40, 0),
807 SCRIPT_POSE(1, 1, 4),
808 SCRIPT_POSE(0x42, 1, 0),
809 SCRIPT_WAIT(0x1E),
810 SCRIPT_TALK(0, 0x11, 0x42, 0),
812 SCRIPT_POSE(1, 1, 3),
813 SCRIPT_WAIT(0x1E),
814 SCRIPT_TALK(0, 0x12, 1, 1),
815 SCRIPT_POSE(1, 7, 3),
817 SCRIPT_POSE(1, 1, 3),
818 SCRIPT_WAIT(0x1E),
819 SCRIPT_POSE(1, 0x40, 3),
820 SCRIPT_POSE(0x40, 0x40, 7),
821 SCRIPT_POSE(0x42, 0x40, 7),
822 SCRIPT_POSE(0xB4, 0x40, 7),
823 SCRIPT_WAIT(0x5A),
824 SCRIPT_POSE(1, 1, 3),
825 SCRIPT_POSE(0x40, 1, 7),
826 SCRIPT_POSE(0x42, 1, 7),
827 SCRIPT_POSE(0xB4, 1, 7),
828 SCRIPT_WAIT(0x1E),
829 SCRIPT_FOLLOW(0, 1),
830 SCRIPT_POSE(1, 1, 6),
831 SCRIPT_POSE(0xB, 1, 2),
832 SCRIPT_POSE(0xC, 1, 2),
833 SCRIPT_WAIT(0x1E),
834 SCRIPT_TALK(0, 0x13, 1, 1),
835 SCRIPT_POSE(1, 7, 6),
837 SCRIPT_POSE(1, 1, 6),
838 SCRIPT_WAIT(0x1E),
839 SCRIPT_TALK(0, 0x14, 0xB, 0),
840 SCRIPT_POSE(0xB, 7, 2),
842 SCRIPT_POSE(0xB, 1, 2),
843 SCRIPT_WAIT(0x1E),
844 SCRIPT_TALK(0, 0x15, 0xC, 0),
845 SCRIPT_POSE(0xC, 7, 2),
847 SCRIPT_POSE(0xC, 1, 2),
848 SCRIPT_WAIT(0x1E),
849 SCRIPT_POSE(1, 1, 1),
850 SCRIPT_WAIT(0x1E),
851 SCRIPT_WALK(1, 0xE8, 0x14C, 1),
852 SCRIPT_POSE(0xB, 1, 1),
853 SCRIPT_POSE(0xC, 1, 1),
855 SCRIPT_POSE(1, 1, 1),
856 SCRIPT_WALK(0x40, 0x131, 0x128, 1),
857 SCRIPT_WALK(0x42, 0x158, 0x114, 1),
858 SCRIPT_WALK(0xB4, 0x108, 0x13C, 1),
859 SCRIPT_WAIT_WALK(0x42),
860 SCRIPT_WALK(0x40, 0x128, 0x12C, 1),
861 SCRIPT_WALK(0x42, 0x148, 0x11C, 1),
862 SCRIPT_POSE(0xB4, 1, 1),
863 SCRIPT_WAIT_WALK(0x42),
864 SCRIPT_WALK(1, 0x5A, 0x191, 1),
865 SCRIPT_WALK(0x40, 0x5A, 0x1D7, 1),
866 SCRIPT_WALK(0x42, 0x5A, 0x191, 1),
867 SCRIPT_WALK(0xB4, 0x5A, 0x191, 1),
868 SCRIPT_WAIT(0x78),
869 SCRIPT_LEAVE(0x200, 0x3E8, 0xEC, 1),
871};
873 SCRIPT_FOLLOW(1, 1),
874 SCRIPT_PLACE(1, 0x50, 0x198),
875 SCRIPT_POSE(1, 1, 5),
876 SCRIPT_PLACE(0xD, 0x180, 0xFF),
877 SCRIPT_POSE(0xD, 1, 1),
878 SCRIPT_PLACE(0xE, 0x1B2, 0xF7),
879 SCRIPT_POSE(0xE, 1, 7),
880 SCRIPT_PLACE(0x2E, 0x18E, 0x144),
881 SCRIPT_POSE(0x2E, 1, 2),
882 SCRIPT_PLACE(0x31, 0x123, 0xE6),
883 SCRIPT_POSE(0x31, 1, 7),
884 SCRIPT_PLACE(0x32, 0x160, 0x10F),
885 SCRIPT_POSE(0x32, 1, 5),
886 SCRIPT_PLACE(0x33, 0x172, 0x118),
887 SCRIPT_POSE(0x33, 1, 5),
888 SCRIPT_PLACE(0x34, 0x13F, 0xE5),
889 SCRIPT_POSE(0x34, 1, 1),
890 SCRIPT_PLACE(0x35, 0x108, 0xFE),
891 SCRIPT_POSE(0x35, 1, 6),
892 SCRIPT_PLACE(0x36, 0x12C, 0x105),
893 SCRIPT_POSE(0x36, 1, 4),
894 SCRIPT_PLACE(0x39, 0x16E, 0x144),
895 SCRIPT_POSE(0x39, 1, 6),
897 SCRIPT_WAIT(0x1E),
898 SCRIPT_WALK(1, 0x68, 0x18C, 5),
899 SCRIPT_PLACE(0xB, 0x50, 0x198),
900 SCRIPT_POSE(0xB, 1, 5),
902 SCRIPT_WALK(1, 0x12C, 0x12A, 5),
903 SCRIPT_WALK(0xB, 0x113, 0x136, 5),
905 SCRIPT_POSE(1, 1, 5),
906 SCRIPT_POSE(0xB, 1, 5),
907 SCRIPT_WAIT(0x1E),
908 SCRIPT_FOLLOW(0, 0x32),
909 SCRIPT_WAIT(0x3C),
910 SCRIPT_TALK(0, 1, 0x33, 3),
912 SCRIPT_TALK(0, 2, 0x32, 0),
914 SCRIPT_WAIT(0x1E),
915 SCRIPT_TALK(0, 3, 0xD, 3),
917 SCRIPT_WAIT(0x1E),
918 SCRIPT_FOLLOW(0, 1),
919 SCRIPT_WAIT(0x3C),
920 SCRIPT_TALK(0, 4, 0xB, 1),
922 SCRIPT_WAIT(0x1E),
923 SCRIPT_COMMAND(0x323, 0x325, 0x39),
924 SCRIPT_COMMAND(0x324, 0x325, 0xE),
925 SCRIPT_COMMAND(0x325, 0x325, 0x32),
926 SCRIPT_COMMAND(0x326, 0x325, 0x35),
927 SCRIPT_WAIT(0x3C),
928 SCRIPT_COMMAND(0x323, 0x326, 0x39),
929 SCRIPT_COMMAND(0x324, 0x326, 0x70),
930 SCRIPT_COMMAND(0x325, 0x326, 0x32),
931 SCRIPT_COMMAND(0x326, 0x326, 0x35),
932 SCRIPT_WAIT(0x1E),
933 SCRIPT_FOLLOW(0, 0x31),
934 SCRIPT_POSE(1, 1, 3),
935 SCRIPT_POSE(0xB, 1, 3),
936 SCRIPT_POSE(0xD, 1, 3),
937 SCRIPT_POSE(0xE, 1, 2),
938 SCRIPT_POSE(0x2E, 1, 3),
939 SCRIPT_POSE(0x31, 1, 3),
940 SCRIPT_POSE(0x32, 1, 3),
941 SCRIPT_POSE(0x33, 1, 3),
942 SCRIPT_POSE(0x34, 1, 3),
943 SCRIPT_POSE(0x35, 1, 3),
944 SCRIPT_POSE(0x36, 1, 3),
945 SCRIPT_POSE(0x39, 1, 3),
946 SCRIPT_PLACE(0x6C, 0, 0),
947 SCRIPT_POSE(0x6C, 1, 0),
948 SCRIPT_PLACE(0x6D, 0xA0, 0x88),
949 SCRIPT_POSE(0x6D, 1, 7),
950 SCRIPT_WAIT(0x3C),
951 SCRIPT_WALK(0x6D, 0xCD, 0x9F, 7),
952 SCRIPT_PLACE(0x6E, 0xA0, 0x88),
953 SCRIPT_POSE(0x6E, 1, 7),
954 SCRIPT_WAIT_WALK(0x6D),
955 SCRIPT_PLACE(0x6C, 0xA0, 0x88),
956 SCRIPT_POSE(0x6C, 1, 7),
957 SCRIPT_WALK(0x6D, 0xE3, 0x93, 7),
958 SCRIPT_WALK(0x6E, 0xCD, 0x9F, 7),
959 SCRIPT_WAIT_WALK(0x6E),
960 SCRIPT_WALK(0x6C, 0xE6, 0xAA, 7),
961 SCRIPT_POSE(0x6D, 1, 7),
962 SCRIPT_WALK(0x6E, 0xBD, 0xA7, 7),
964 SCRIPT_WAIT_WALK(0x6C),
965 SCRIPT_POSE(0x6C, 1, 7),
966 SCRIPT_POSE(0x6E, 1, 7),
967 SCRIPT_WAIT(0x1E),
968 SCRIPT_TALK(0, 5, 0x31, 2),
970 SCRIPT_TALK(0, 6, 0x35, 0),
972 SCRIPT_TALK(0, 7, 0x36, 2),
974 SCRIPT_WAIT(0x5A),
975 SCRIPT_TALK(0, 8, 0x6C, 3),
977 SCRIPT_WAIT(0x1E),
978 SCRIPT_WALK(0x6C, 0xA0, 0x88, 3),
979 SCRIPT_WAIT(0x3C),
980 SCRIPT_WALK(0x6D, 0xCD, 0x9F, 1),
981 SCRIPT_WAIT_WALK(0x6D),
982 SCRIPT_PLACE(0x6C, 0, 0),
983 SCRIPT_POSE(0x6C, 1, 0),
984 SCRIPT_WALK(0x6D, 0xA0, 0x88, 3),
985 SCRIPT_WALK(0x6E, 0xCD, 0x9F, 5),
986 SCRIPT_WAIT_WALK(0x6E),
987 SCRIPT_WALK(0x6E, 0xA0, 0x88, 3),
988 SCRIPT_WAIT_WALK(0x6E),
989 SCRIPT_POSE(0xD, 1, 1),
990 SCRIPT_POSE(0xE, 1, 7),
991 SCRIPT_POSE(0x2E, 1, 2),
992 SCRIPT_POSE(0x31, 1, 7),
993 SCRIPT_POSE(0x32, 1, 7),
994 SCRIPT_POSE(0x34, 1, 1),
995 SCRIPT_POSE(0x35, 1, 6),
996 SCRIPT_POSE(0x36, 1, 4),
997 SCRIPT_POSE(0x39, 1, 6),
998 SCRIPT_PLACE(0x6D, 0, 0),
999 SCRIPT_POSE(0x6D, 1, 0),
1000 SCRIPT_PLACE(0x6E, 0, 0),
1001 SCRIPT_POSE(0x6E, 1, 0),
1002 SCRIPT_WAIT(0x1E),
1003 SCRIPT_TALK(0, 9, 0x31, 2),
1005 SCRIPT_TALK(1, 0xA, 0x35, 1),
1006 SCRIPT_WAIT(0x3C),
1007 SCRIPT_TALK(0, 0xB, 0x2E, 0),
1009 SCRIPT_WAIT(0x1E),
1010 SCRIPT_FOLLOW(0, 1),
1011 SCRIPT_WAIT(0x3C),
1012 SCRIPT_POSE(1, 1, 1),
1013 SCRIPT_POSE(0xB, 1, 5),
1014 SCRIPT_WAIT(0x1E),
1015 SCRIPT_TALK(0, 0xC, 0xB, 1),
1016 SCRIPT_POSE(0xB, 7, 5),
1018 SCRIPT_POSE(0xB, 1, 5),
1019 SCRIPT_WAIT(0x1E),
1020 SCRIPT_POSE(1, 0x29, 1),
1021 SCRIPT_COMMAND(0x323, 0x327, 1),
1022 SCRIPT_WAIT(0x5A),
1023 SCRIPT_COMMAND(0x323, 0x326, 1),
1024 SCRIPT_WAIT(0x1E),
1025 SCRIPT_TALK(0, 0xD, 1, 3),
1027 SCRIPT_WAIT(0x1E),
1028 SCRIPT_TALK(0, 0xE, 0xB, 1),
1029 SCRIPT_POSE(0xB, 7, 5),
1031 SCRIPT_POSE(0xB, 1, 5),
1032 SCRIPT_WAIT(0x1E),
1033 SCRIPT_TALK(0, 0xF, 1, 3),
1034 SCRIPT_POSE(1, 7, 1),
1036 SCRIPT_POSE(1, 1, 1),
1037 SCRIPT_WAIT(0x1E),
1038 SCRIPT_TALK(0, 0x10, 0xB, 1),
1039 SCRIPT_POSE(0xB, 7, 5),
1041 SCRIPT_POSE(0xB, 0x3B, 5),
1042 SCRIPT_WAIT(0x5A),
1043 SCRIPT_TALK(0, 0x11, 0xB, 1),
1045 SCRIPT_POSE(0xB, 1, 5),
1046 SCRIPT_WAIT(0x1E),
1047 SCRIPT_TALK(0, 0x12, 1, 3),
1048 SCRIPT_POSE(1, 7, 1),
1050 SCRIPT_POSE(1, 1, 1),
1051 SCRIPT_WAIT(0x1E),
1052 SCRIPT_POSE(1, 1, 3),
1053 SCRIPT_WAIT(0x1E),
1054 SCRIPT_WALK(1, 0x10E, 0x11D, 3),
1055 SCRIPT_WALK(0xB, 0x12C, 0x12A, 3),
1056 SCRIPT_WAIT_WALK(0xB),
1057 SCRIPT_WALK(1, 0xCD, 0xFD, 5),
1058 SCRIPT_WALK(0xB, 0xEA, 0x10B, 3),
1059 SCRIPT_WAIT_WALK(0xB),
1060 SCRIPT_WALK(1, 0xE5, 0xF2, 5),
1061 SCRIPT_WALK(0xB, 0xCD, 0xFD, 5),
1062 SCRIPT_WAIT_WALK(0xB),
1063 SCRIPT_WALK(1, 0x18B, 0xA0, 5),
1064 SCRIPT_WALK(0xB, 0x18B, 0xA0, 5),
1065 SCRIPT_WAIT(0x78),
1066 SCRIPT_LEAVE(0x214, 0x1E3, 0x2C6, 5),
1067 SCRIPT_END,
1068};
1070 SCRIPT_FOLLOW(1, 1),
1071 SCRIPT_PLACE(1, 0x12A, 0x12B),
1072 SCRIPT_POSE(1, 1, 1),
1073 SCRIPT_PLACE(0xB, 0x111, 0x137),
1074 SCRIPT_POSE(0xB, 1, 5),
1075 SCRIPT_PLACE(0xD, 0x180, 0xFF),
1076 SCRIPT_POSE(0xD, 1, 1),
1077 SCRIPT_PLACE(0xE, 0x1B2, 0xF7),
1078 SCRIPT_POSE(0xE, 1, 7),
1079 SCRIPT_PLACE(0x2E, 0x18E, 0x144),
1080 SCRIPT_POSE(0x2E, 1, 2),
1081 SCRIPT_PLACE(0x31, 0x123, 0xE6),
1082 SCRIPT_POSE(0x31, 1, 7),
1083 SCRIPT_PLACE(0x32, 0x160, 0x10F),
1084 SCRIPT_POSE(0x32, 1, 7),
1085 SCRIPT_PLACE(0x33, 0x172, 0x118),
1086 SCRIPT_POSE(0x33, 1, 3),
1087 SCRIPT_PLACE(0x34, 0x13F, 0xE5),
1088 SCRIPT_POSE(0x34, 1, 1),
1089 SCRIPT_PLACE(0x35, 0x108, 0xFE),
1090 SCRIPT_POSE(0x35, 1, 6),
1091 SCRIPT_PLACE(0x36, 0x12C, 0x105),
1092 SCRIPT_POSE(0x36, 1, 4),
1093 SCRIPT_PLACE(0x39, 0x16E, 0x144),
1094 SCRIPT_POSE(0x39, 1, 6),
1095 SCRIPT_WAIT(0x78),
1096 SCRIPT_TALK(0, 1, 0xB, 1),
1097 SCRIPT_POSE(0xB, 7, 5),
1099 SCRIPT_POSE(0xB, 1, 5),
1100 SCRIPT_WAIT(0x1E),
1101 SCRIPT_POSE(1, 0x29, 1),
1102 SCRIPT_WAIT(0x3C),
1103 SCRIPT_TALK(0, 2, 1, 3),
1105 SCRIPT_COMMAND(0x323, 0x327, 1),
1106 SCRIPT_WAIT(0x78),
1107 SCRIPT_COMMAND(0x323, 0x326, 1),
1108 SCRIPT_WAIT(0x1E),
1109 SCRIPT_TALK(0, 3, 0xB, 1),
1110 SCRIPT_POSE(1, 1, 1),
1111 SCRIPT_POSE(0xB, 1, 5),
1113 SCRIPT_WAIT(0x1E),
1114 SCRIPT_POSE(0xB, 1, 1),
1115 SCRIPT_WAIT(0x1E),
1116 SCRIPT_WALK(0xB, 0x6F, 0x187, 1),
1117 SCRIPT_WAIT_WALK(0xB),
1118 SCRIPT_TALK(0, 4, 1, 3),
1119 SCRIPT_PLACE(0xB, 0, 0),
1120 SCRIPT_POSE(0xB, 1, 0),
1122 SCRIPT_WALK(1, 0x77, 0x187, 1),
1123 SCRIPT_WAIT(0x78),
1124 SCRIPT_LEAVE(0x200, 0x3E8, 0xEC, 1),
1125 SCRIPT_END,
1126};
1128 SCRIPT_PLACE(2, 0x138, 0xCC),
1129 SCRIPT_POSE(2, 1, 1),
1130 SCRIPT_PLACE(0xB, 0x150, 0xC0),
1131 SCRIPT_POSE(0xB, 1, 1),
1133 SCRIPT_WAIT(0x78),
1135 SCRIPT_WAIT(0x1E),
1136 SCRIPT_TALK(0, 1, 2, 0),
1137 SCRIPT_POSE(2, 7, 1),
1139 SCRIPT_POSE(2, 1, 1),
1140 SCRIPT_WAIT(0x1E),
1141 SCRIPT_WALK(0xB, 0x150, 0xD6, 3),
1142 SCRIPT_WAIT_WALK(0xB),
1143 SCRIPT_POSE(2, 1, 7),
1144 SCRIPT_POSE(0xB, 1, 3),
1145 SCRIPT_WAIT(0x1E),
1146 SCRIPT_TALK(0, 2, 0xB, 2),
1147 SCRIPT_POSE(0xB, 7, 3),
1149 SCRIPT_POSE(0xB, 1, 3),
1150 SCRIPT_WAIT(0x1E),
1151 SCRIPT_POSE(2, 1, 1),
1152 SCRIPT_WALK(0xB, 0xE6, 0x10B, 7),
1153 SCRIPT_WAIT_WALK(0xB),
1154 SCRIPT_POSE(2, 1, 0),
1155 SCRIPT_WALK(0xB, 0x127, 0x12C, 1),
1156 SCRIPT_WAIT_WALK(0xB),
1157 SCRIPT_WALK(0xB, 0x60, 0x190, 1),
1158 SCRIPT_WAIT_WALK(0xB),
1159 SCRIPT_POSE(2, 1, 1),
1160 SCRIPT_WAIT(0x1E),
1161 SCRIPT_TALK(0, 3, 2, 0),
1163 SCRIPT_WAIT(0x1E),
1164 SCRIPT_WALK(2, 0x118, 0xDC, 1),
1166 SCRIPT_WALK(2, 0x118, 0x132, 0),
1167 SCRIPT_WAIT(0x3C),
1168 SCRIPT_LEAVE(0x200, 0x3E8, 0xEC, 1),
1169 SCRIPT_END,
1170};
1172 { 92, 5 }, { 93, 5 }, { 94, 3 }, { 95, 3 },
1173 { 94, 211 }, { 95, 3 }, { 94, 3 }, { 93, 4 },
1174 { 92, 4 }, { 255, 0x3E7 },
1175};
1177 { 0x12C, 80 }, { 81, 3 }, { 82, 3 }, { 83, 2 },
1178 { 84, 2 }, { 85, 2 }, { 86, 2 }, { 83, 2 },
1179 { 84, 2 }, { 85, 2 }, { 86, 2 }, { 83, 2 },
1180 { 84, 2 }, { 85, 2 }, { 86, 2 }, { 83, 2 },
1181 { 84, 2 }, { 85, 2 }, { 86, 2 }, { 83, 2 },
1182 { 84, 2 }, { 85, 2 }, { 86, 2 }, { 83, 2 },
1183 { 84, 2 }, { 85, 2 }, { 86, 2 }, { 83, 2 },
1184 { 84, 2 }, { 85, 2 }, { 86, 2 }, { 83, 2 },
1185 { 84, 2 }, { 85, 2 }, { 86, 2 }, { 83, 2 },
1186 { 84, 2 }, { 85, 2 }, { 86, 2 }, { 83, 2 },
1187 { 84, 2 }, { 85, 2 }, { 86, 2 }, { 87, 2 },
1188 { 84, 2 }, { 88, 2 }, { 86, 2 }, { 87, 2 },
1189 { 84, 2 }, { 88, 2 }, { 89, 2 }, { 87, 2 },
1190 { 90, 2 }, { 88, 2 }, { 89, 2 }, { 87, 2 },
1191 { 90, 2 }, { 91, 2 }, { 255, 0x3E7 },
1192};
1194 { 0x12C, 32 }, { 50, 3 }, { 51, 3 }, { 52, 3 },
1195 { 53, 3 }, { 54, 3 }, { 55, 3 }, { 56, 3 },
1196 { 57, 3 }, { 58, 3 }, { 59, 3 }, { 60, 3 },
1197 { 61, 3 }, { 62, 8 }, { 63, 3 }, { 64, 3 },
1198 { 65, 3 }, { 66, 3 }, { 67, 3 }, { 68, 3 },
1199 { 69, 3 }, { 70, 2 }, { 71, 2 }, { 68, 2 },
1200 { 69, 2 }, { 70, 2 }, { 71, 2 }, { 68, 2 },
1201 { 69, 2 }, { 70, 2 }, { 71, 2 }, { 68, 2 },
1202 { 69, 2 }, { 70, 2 }, { 71, 2 }, { 68, 2 },
1203 { 69, 2 }, { 70, 2 }, { 71, 2 }, { 68, 2 },
1204 { 69, 2 }, { 70, 2 }, { 71, 2 }, { 68, 2 },
1205 { 69, 2 }, { 70, 2 }, { 71, 2 }, { 68, 2 },
1206 { 69, 2 }, { 70, 2 }, { 71, 2 }, { 68, 2 },
1207 { 69, 2 }, { 70, 2 }, { 71, 2 }, { 68, 2 },
1208 { 69, 2 }, { 70, 2 }, { 71, 2 }, { 68, 2 },
1209 { 69, 2 }, { 70, 2 }, { 71, 2 }, { 68, 2 },
1210 { 69, 2 }, { 70, 2 }, { 71, 2 }, { 68, 2 },
1211 { 69, 2 }, { 70, 2 }, { 71, 2 }, { 68, 2 },
1212 { 69, 2 }, { 70, 2 }, { 71, 2 }, { 68, 2 },
1213 { 69, 4 }, { 70, 4 }, { 71, 4 }, { 72, 3 },
1214 { 73, 3 }, { 74, 3 }, { 75, 2 }, { 76, 2 },
1215 { 77, 3 }, { 78, 3 }, { 79, 3 }, { 78, 3 },
1216 { 79, 4 }, { 80, 4 }, { 255, 0x3E7 },
1217};
1222 -1, 1, 2, 0,
1223};
1225 { 217, 0x124 }, { 0x101, 0x110 }, { 0x129, 252 },
1226};
1227/* The sound of each of the three partners' download effects */
1232 { 0x200, 0x100, 0x21C, 0x1A6, 0x70, 0xA6, 0x230, 0x1FE },
1233 { 0x200, 0x100, 0x200, 0x100, 0, 0, 0x220, 0x1FE },
1234 { 0x200, 0x100, 0x216, 0x138, 0x58, 0x38, 0x200, 0x1FD },
1235 { 0x200, 0x100, 0x208, 0x1BC, 0x20, 0xBC, 0x210, 0x1FD },
1236 { 0x200, 0x100, 0x210, 0x1BC, 0x40, 0xBC, 0x220, 0x1FD },
1237 { 0x200, 0x100, 0x200, 0x1BC, 0, 0xBC, 0x230, 0x1FD },
1238 { 0x1C0, 0x100, 0x1E0, 0x198, 0x280, 0x98, 0x160, 0x1FB },
1239 { 0x1C0, 0x100, 0x1E8, 0x198, 0x2A0, 0x98, 0x170, 0x1FB },
1240 { 0x1C0, 0x100, 0x1F0, 0x198, 0x2C0, 0x98, 0x150, 0x1FA },
1241 { 0x1C0, 0x100, 0x1D8, 0x120, 0x260, 0x20, 0x160, 0x1FA },
1242 { 0x1C0, 0x100, 0x1E0, 0x120, 0x280, 0x20, 0x170, 0x1FA },
1243 { 0x1C0, 0x100, 0x1E8, 0x120, 0x2A0, 0x20, 0x150, 0x1F9 },
1244 { 0x1C0, 0x100, 0x1C0, 0x1A0, 0x200, 0xA0, 0x160, 0x1F9 },
1245 { 0x1C0, 0x100, 0x1F0, 0x120, 0x2C0, 0x20, 0x170, 0x1F9 },
1246 { 0x1C0, 0x100, 0x1C8, 0x1A8, 0x220, 0xA8, 0x150, 0x1F8 },
1247 { 0x1C0, 0x100, 0x1C0, 0x128, 0x200, 0x28, 0x160, 0x1F8 },
1248 { 0x1C0, 0x100, 0x1C8, 0x128, 0x220, 0x28, 0x170, 0x1F8 },
1249 { 0x1C0, 0x100, 0x1D0, 0x128, 0x240, 0x28, 0x140, 0x1F7 },
1250 { 0x1C0, 0x100, 0x1D8, 0x148, 0x260, 0x48, 0x150, 0x1F7 },
1251 { 0x1C0, 0x100, 0x1E0, 0x148, 0x280, 0x48, 0x160, 0x1F7 },
1252 { 0x1C0, 0x100, 0x1E8, 0x148, 0x2A0, 0x48, 0x170, 0x1F7 },
1253 { 0x1C0, 0x100, 0x1E0, 0x1B8, 0x280, 0xB8, 0x140, 0x1F6 },
1254 { 0x1C0, 0x100, 0x1E8, 0x1B8, 0x2A0, 0xB8, 0x150, 0x1F6 },
1255 { 0x1C0, 0x100, 0x1F0, 0x1B8, 0x2C0, 0xB8, 0x160, 0x1F6 },
1256 { 0x1C0, 0x100, 0x1C0, 0x1C0, 0x200, 0xC0, 0x170, 0x1F6 },
1257 { 0x140, 0x100, 0x178, 0x179, 0xE0, 0x79, 0x140, 0x1F5 },
1258 { 0x1C0, 0x100, 0x1F0, 0x148, 0x2C0, 0x48, 0x150, 0x1F5 },
1259 { 0x1C0, 0x100, 0x1C0, 0x150, 0x200, 0x50, 0x160, 0x1F5 },
1260 { 0x1C0, 0x100, 0x1D0, 0x1C0, 0x240, 0xC0, 0x170, 0x1F5 },
1261 { 0x1C0, 0x100, 0x1D8, 0x1C0, 0x260, 0xC0, 0x140, 0x1F4 },
1262 { 0x1C0, 0x100, 0x1C8, 0x1C8, 0x220, 0xC8, 0x150, 0x1F4 },
1263};
1353FieldActorEntry actor8 = { actor8Conditions, NULL, 0xD, 7, 384, 255, 1 };
1355FieldActorEntry actor10 = { actor10Conditions, NULL, 0xE, 8, 434, 247, 7 };
1357FieldActorEntry actor12 = { actor12Conditions, NULL, 0x20, 9, 384, 255, 1 };
1360FieldActorEntry actor15 = { actor15Conditions, NULL, 0x24, 0xB, 434, 247, 7 };
1363FieldActorEntry actor18 = { actor18Conditions, NULL, 0x2E, 0xC, 684, 363, 7 };
1366FieldActorEntry actor21 = { actor21Conditions, NULL, 0x31, 0xD, 361, 221, 7 };
1367FieldActorEntry actor22 = { actor22Conditions, NULL, 0x31, 0xD, 361, 221, 7 };
1370FieldActorEntry actor25 = { actor25Conditions, NULL, 0x34, 0x10, 0, 0, 1 };
1371FieldActorEntry actor26 = { actor26Conditions, NULL, 0x34, 0x10, 0, 0, 1 };
1372FieldActorEntry actor27 = { actor27Conditions, NULL, 0x35, 0x11, 0, 0, 1 };
1373FieldActorEntry actor28 = { actor28Conditions, NULL, 0x35, 0x11, 328, 260, 6 };
1374FieldActorEntry actor29 = { actor29Conditions, NULL, 0x36, 0x12, 0, 0, 1 };
1375FieldActorEntry actor30 = { actor30Conditions, NULL, 0x36, 0x12, 535, 307, 1 };
1376FieldActorEntry actor31 = { actor31Conditions, NULL, 0x39, 0x13, 0, 0, 1 };
1377FieldActorEntry actor32 = { actor32Conditions, NULL, 0x40, 0x14, 0, 0, 1 };
1378FieldActorEntry actor33 = { actor33Conditions, NULL, 0x41, 0x15, 0, 0, 1 };
1379FieldActorEntry actor34 = { actor34Conditions, NULL, 0x41, 0x15, 0, 0, 1 };
1380FieldActorEntry actor35 = { actor35Conditions, NULL, 0x41, 0x15, 305, 353, 5 };
1381FieldActorEntry actor36 = { actor36Conditions, NULL, 0x41, 0x15, 305, 353, 5 };
1382FieldActorEntry actor37 = { actor37Conditions, NULL, 0x42, 0x16, 0, 0, 1 };
1383FieldActorEntry actor38 = { actor38Conditions, NULL, 0x42, 0x16, 0, 0, 1 };
1384FieldActorEntry actor39 = { actor39Conditions, NULL, 0x6C, 0x17, 0, 0, 1 };
1385FieldActorEntry actor40 = { actor40Conditions, NULL, 0x6D, 0x18, 0, 0, 1 };
1386FieldActorEntry actor41 = { actor41Conditions, NULL, 0x6E, 0x19, 0, 0, 1 };
1387FieldActorEntry actor42 = { actor42Conditions, NULL, 0xB4, 0x1A, 0, 0, 1 };
1388FieldActorEntry actor43 = { actor43Conditions, NULL, 0xB5, 0x1B, 0, 0, 1 };
1389FieldActorEntry actor44 = { actor44Conditions, NULL, 0xB6, 0x1C, 0, 0, 1 };
1391 &actor0,
1392 &actor1,
1393 &actor2,
1394 &actor3,
1395 &actor4,
1396 &actor5,
1397 &actor6,
1398 &actor7,
1399 &actor8,
1400 &actor9,
1401 &actor10,
1402 &actor11,
1403 &actor12,
1404 &actor13,
1405 &actor14,
1406 &actor15,
1407 &actor16,
1408 &actor17,
1409 &actor18,
1410 &actor19,
1411 &actor20,
1412 &actor21,
1413 &actor22,
1414 &actor23,
1415 &actor24,
1416 &actor25,
1417 &actor26,
1418 &actor27,
1419 &actor28,
1420 &actor29,
1421 &actor30,
1422 &actor31,
1423 &actor32,
1424 &actor33,
1425 &actor34,
1426 &actor35,
1427 &actor36,
1428 &actor37,
1429 &actor38,
1430 &actor39,
1431 &actor40,
1432 &actor41,
1433 &actor42,
1434 &actor43,
1435 &actor44,
1436 NULL,
1437};
1439 { 1, 0, 0x40, 2, 0x1A, 2, 0, 3, 0x16, 0, 339, 212, 0, 0 },
1440 { 1, 0, 0x40, 2, 0x1A, 2, 0, 3, 0x16, 0, 372, 196, 0, 0 },
1441 { 1, 0, 0x40, 2, 0x1A, 2, 0, 3, 0x16, 0, 403, 244, 0, 0 },
1442 { 1, 0, 0x40, 2, 0x1A, 2, 0, 3, 0x16, 0, 435, 228, 0, 0 },
1443 { 1, 0, 0x40, 2, 0x60, 2, 0, 7, 0x12, 0, 386, 117, 0, 0 },
1444 { 1, 0, 0x40, 2, 0x60, 2, 0, 7, 0x12, 0, 546, 197, 0, 0 },
1445 { 1, 0, 0x40, 2, 0x61, 2, 0, 7, 0x12, 0, 573, 209, 0, 0 },
1446 { 1, 0, 0x40, 2, 0x61, 2, 0, 7, 0x12, 0, 613, 209, 0, 0 },
1447 { 1, 0, 0x40, 2, 0x62, 2, 0, 7, 0x12, 0, 151, 129, 0, 0 },
1448 { 1, 0, 0x40, 2, 0x62, 2, 0, 7, 0x12, 0, 411, 111, 0, 0 },
1449 { 1, 0, 0x40, 6, 0x60, 2, 0, 7, 0x12, 0, 10, 105, 0, 0 },
1450 { 1, 0, 0x40, 6, 0x60, 2, 0, 7, 0x12, 0, 42, 121, 0, 0 },
1451 { 1, 0, 0x40, 6, 0x60, 2, 0, 7, 0x12, 0, 74, 137, 0, 0 },
1452 { 1, 0, 0x40, 6, 0x60, 2, 0, 7, 0x12, 0, 290, 69, 0, 0 },
1453 { 1, 0, 0x40, 6, 0x60, 2, 0, 7, 0x12, 0, 322, 85, 0, 0 },
1454 { 1, 0, 0x40, 6, 0x60, 2, 0, 7, 0x12, 0, 354, 101, 0, 0 },
1455 { 1, 0, 0x40, 6, 0x60, 2, 0, 7, 0x12, 0, 482, 165, 0, 0 },
1456 { 1, 0, 0x40, 6, 0x60, 2, 0, 7, 0x12, 0, 514, 181, 0, 0 },
1457 { 1, 0, 0x40, 6, 0x62, 2, 0, 7, 0x12, 0, 119, 145, 0, 0 },
1458 { 1, 0, 0x40, 6, 0x63, 2, 0, 7, 0x12, 0, 135, 232, 0, 0 },
1459 { 1, 0, 0x40, 6, 0x63, 2, 0, 7, 0x12, 0, 155, 222, 0, 0 },
1460 { 1, 0, 0x40, 6, 0x63, 2, 0, 7, 0x12, 0, 175, 212, 0, 0 },
1461 { 1, 0, 0x40, 6, 0x63, 2, 0, 7, 0x12, 0, 195, 202, 0, 0 },
1462 { 1, 0, 0x40, 6, 0x63, 2, 0, 7, 0x12, 0, 215, 192, 0, 0 },
1463 { 1, 0, 0x40, 6, 0x63, 2, 0, 7, 0x12, 0, 235, 182, 0, 0 },
1464 { 1, 0, 0x40, 6, 0x63, 2, 0, 7, 0x12, 0, 255, 172, 0, 0 },
1465 { 1, 0, 0x40, 6, 0x63, 2, 0, 7, 0x12, 0, 275, 162, 0, 0 },
1466 { 1, 0, 0x40, 6, 0x63, 2, 0, 7, 0x12, 0, 295, 152, 0, 0 },
1467 { 1, 0, 0x40, 6, 0xE, 0, 0, 0, 0, 0, 335, 141, 0, 0 },
1468 { 1, 0, 0x40, 6, 0xF, 0, 0, 0, 0, 0, 511, 229, 0, 0 },
1469 { 1, 0, 0x40, 6, 0x1B, 2, 0, 3, 4, 0, 114, 179, 0, 0 },
1470 { 1, 0, 0x40, 6, 0x1C, 2, 0, 3, 4, 0, 264, 130, 0, 0 },
1471 { 1, 0, 0x40, 0xA, 0x1D, 1, 0x1D, 0x1F, 0xA, 0, 28, 519, 0, 0 },
1472 { 1, 0, 0x40, 0xA, 0x1D, 1, 0x1D, 0x1F, 0xA, 0, 81, 492, 0, 0 },
1473 { 1, 0, 0x40, 0xA, 0x1D, 1, 0x1D, 0x1F, 0xA, 0, 183, 442, 0, 0 },
1474 { 1, 0, 0x40, 0xA, 0x1D, 1, 0x1D, 0x1F, 0xA, 0, 237, 424, 0, 0 },
1475 { 1, 0, 0x40, 0xA, 0x20, 1, 0x20, 0x22, 0xA, 0, 55, 506, 0, 0 },
1476 { 1, 0, 0x40, 0xA, 0x20, 1, 0x20, 0x22, 0xA, 0, 100, 493, 0, 0 },
1477 { 1, 0, 0x40, 0xA, 0x20, 1, 0x20, 0x22, 0xA, 0, 151, 461, 0, 0 },
1478 { 1, 0, 0x40, 0xA, 0x20, 1, 0x20, 0x22, 0xA, 0, 202, 445, 0, 0 },
1479 { 1, 0, 0x40, 0xA, 0x20, 1, 0x20, 0x22, 0xA, 0, 296, 424, 0, 0 },
1480 { 1, 0, 0x40, 0xA, 0x23, 1, 0x23, 0x25, 0xA, 0, 259, 428, 0, 0 },
1481 { 1, 0, 0x40, 0xA, 0x23, 1, 0x23, 0x25, 0xA, 0, 366, 433, 0, 0 },
1482 { 1, 0, 0x40, 0xA, 0x23, 1, 0x23, 0x25, 0xA, 0, 582, 411, 0, 0 },
1483 { 1, 0, 0x40, 0xA, 0x26, 1, 0x26, 0x28, 0xA, 0, 530, 355, 0, 0 },
1484 { 1, 0, 0x40, 0xA, 0x26, 1, 0x26, 0x28, 0xA, 0, 546, 354, 0, 0 },
1485 { 1, 0, 0x40, 0xA, 0x29, 1, 0x29, 0x2B, 0xA, 0, 87, 303, 0, 0 },
1486 { 1, 0, 0x40, 0xA, 0x29, 1, 0x29, 0x2B, 0xA, 0, 130, 322, 0, 0 },
1487 { 1, 0, 0x40, 0xA, 0x2C, 1, 0x2C, 0x2E, 0xA, 0, 61, 292, 0, 0 },
1488 { 1, 0, 0x40, 0xA, 0x2C, 1, 0x2C, 0x2E, 0xA, 0, 113, 328, 0, 0 },
1489 { 1, 0, 0x40, 0xA, 0x2F, 1, 0x2F, 0x31, 0xA, 0, 437, 427, 0, 0 },
1490 { 1, 0, 0x40, 0xA, 0x2F, 1, 0x2F, 0x31, 0xA, 0, 455, 421, 0, 0 },
1491 { 1, 0, 0x40, 0xA, 0x2F, 1, 0x2F, 0x31, 0xA, 0, 608, 405, 0, 0 },
1492 { 1, 0, 0x40, 0xA, 0x2F, 1, 0x2F, 0x31, 0xA, 0, 626, 396, 0, 0 },
1493 { 0, 1, 0x40, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
1494 { 0, 2, 0x40, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
1495 { 0, 3, 0x40, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
1496 { 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 384, 259, 273, 0 },
1497 { 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 401, 250, 271, 0 },
1498 { 1, 0, 0x40, 4, 2, 0, 0, 0, 0, 0, 368, 251, 271, 0 },
1499 { 1, 0, 0x40, 4, 3, 0, 0, 0, 0, 0, 417, 243, 263, 0 },
1500 { 1, 0, 0x40, 4, 4, 0, 0, 0, 0, 0, 352, 242, 263, 0 },
1501 { 1, 0, 0x40, 4, 5, 0, 0, 0, 0, 0, 433, 233, 255, 0 },
1502 { 1, 0, 0x40, 4, 6, 0, 0, 0, 0, 0, 336, 229, 255, 0 },
1503 { 1, 0, 0x40, 4, 7, 0, 0, 0, 0, 0, 449, 227, 247, 0 },
1504 { 1, 0, 0x40, 4, 8, 0, 0, 0, 0, 0, 320, 227, 247, 0 },
1505 { 1, 0, 0x40, 4, 9, 0, 0, 0, 0, 0, 337, 219, 240, 0 },
1506 { 1, 0, 0x40, 4, 0xA, 0, 0, 0, 0, 0, 353, 208, 231, 0 },
1507 { 1, 0, 0x40, 4, 0xB, 0, 0, 0, 0, 0, 369, 203, 223, 0 },
1508 { 1, 0, 0x40, 4, 0xC, 0, 0, 0, 0, 0, 385, 192, 215, 0 },
1509 { 1, 0, 0x40, 4, 0xD, 0, 0, 0, 0, 0, 401, 187, 207, 0 },
1510 { 1, 0, 0x40, 4, 0x10, 0, 0, 0, 0, 0, 144, 110, 160, 0 },
1511 { 1, 0, 0x50, 4, 0x11, 0, 0, 0, 0, 0, 359, 148, 192, 0 },
1512 { 1, 0, 0x40, 4, 0x12, 0, 0, 0, 0, 0, 535, 236, 280, 0 },
1513 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
1514};
1515void (*stageFuncs[])(void) = {
1516 setupStage,
1517};
1522 { 271, script271, EVENT_TEXT(0x18), NULL, endEvent271 },
1523 { 273, script273, EVENT_TEXT(0x1A), NULL, endEvent273 },
1524 { 352, script352, EVENT_TEXT(0x20), NULL, endEvent352 },
1525 { -1, NULL, 0, NULL, NULL },
1526};
#define NULL
Definition common.h:17
signed int s32
Definition common.h:11
signed char s8
Definition common.h:7
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
#define TASK_RUN
Definition task.h:35
#define TASK_KILL
Definition task.h:37
#define TASK_INIT
Tasks: every game object is a task, a heap block that starts with this header and is updated once per...
Definition task.h:34
#define TASK_DONE
Definition task.h:36
EventTask * FIELDSTG_startEvent(s32 id)
Starts the event id of FieldState.events: its script, start and end, and its text; the player stands ...
Definition event.c:250
The stage overlays (AAA/PRO/WSTAG###.PRO), loaded at 0x800A4CA4 on top of FIELDSTG.
#define EVENT_TEXT(n)
An entry of the stage's events' text file, for FieldEvent.text.
Definition stage.h:732
#define SOUND_DIGI_EN0
Definition stage.h:756
#define SOUND_DIGI_EN2
Definition stage.h:758
#define SOUND_DIGI_EN1
Definition stage.h:757
void updateStage()
The names every stage defines, each its own (config/<version>/stages/<stage>.txt).
#define SCRIPT_WAIT_WALK(id)
until the character gets to its goal
Definition field_map.h:168
#define 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_LOOK_AT(snap, x, y)
FIELDSTG_pointCamera.
Definition field_map.h:172
#define SCRIPT_LEAVE(mode, x, y, dir)
FIELDSTG_leaveField; ends the event.
Definition field_map.h:170
#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 FIELD_COMMAND_STOP_GAYALOOP
Definition field_map.h:51
#define FIELD_COMMAND_SHOW_OBJECTS(n)
shows them
Definition field_map.h:46
#define SCRIPT_WALK(id, x, y, dir)
Actor.setGoal: walks to (x, y), then faces dir.
Definition field_map.h:162
#define FIELD_COMMAND_ICON1
the player icon's substate 1, with ITEM_GET
Definition field_map.h:42
#define FIELD_COMMAND_ICON2
its substate 2
Definition field_map.h:43
#define SCRIPT_WAIT_BOX
until box 0 closes
Definition field_map.h:167
#define SCRIPT_POSE(id, set, dir)
Actor.setPose: its animation set, facing dir.
Definition field_map.h:158
#define FIELD_COMMAND_PLAY_GAYALOOP
Definition field_map.h:50
#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 FIELD_COMMAND_HIDE_OBJECTS(n)
hides the map objects of group n
Definition field_map.h:45
#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 CODES_END
Definition game_state.h:83
#define PROGRESS(n)
GAME.progress is n.
Definition game_state.h:69
#define FLAG(group, id)
The codes of the (code, value) pairs that FLAGS_00 checks as conditions and applies as actions (event...
Definition game_state.h:68
void resetTileEffect(StageTileEffect *task)
Restarts the three animations of a StageTileEffect, from the stage's updateTileEffectFrames.
SoundState SOUND
rsin and rcos (libgte) read rsin_tbl[a - 0x800] and the like: their addresses before the table fall i...
Definition sound.c:180
#define MUSIC_MAIN_LOBBY_DEMO
ENV_0205: the story events' copy of Asuka's Main Lobby (WSTAG212)
Definition sound.h:144
#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,...
s32 stepAnimationOnce(StageTileAnim *obj, AnimFrame *frames, s32 depth)
Steps OBJ's animation through FRAMES by the frame time (at most 4) and returns its frame,...
#define FLAG_GAME_MASTER_MEETING_SEEN
wstag305 Master Room event 350: the Game Master finds the player and Kail looking for Teddy; set at i...
Definition story.h:1152
#define SPECIAL_BALANCED_PACK_CHOSEN
the player chose the Balanced Pack at registration (GAME.partySet STARTER_PACK_BALANCED; NAMEET's str...
Definition story.h:1685
@ STORY_LOGGED_IN
WSTAG225 (Login Room, Asuka City), event 5: the first login, where the account clerk explains Digimon...
Definition story.h:29
@ STORY_SUZAKU_BADGE
WSTAG520, event 261: the Suzaku Leader is beaten (the Suzaku Badge), and Kail says Teddy went to Asuk...
Definition story.h:58
@ 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_PARTNERS_RECEIVED
WSTAG212, events 10 to 12: the Tamer Service downloads the starter pack's Digimon (DM0010-DM0012,...
Definition story.h:32
@ STORY_AGUMON_DISGUISE
WSTAG237 (Underground Path), event 300: in the Agumon Suit; Kail goes on ahead alone.
Definition story.h:64
@ STORY_GAME_MASTER_CAUGHT
WSTAG305 (Master Room), event 661: the Game Master is caught, but Vemmon takes over the Optical Netwo...
Definition story.h:94
#define FLAG_DO_GUARD_BLOCK_SEEN
wstag212 event 271: the DO Guard lets only authorized personnel pass; set at its end,...
Definition story.h:1303
#define SPECIAL_MANIAC_PACK_CHOSEN
the player chose the Maniac Pack at registration (GAME.partySet STARTER_PACK_MANIAC; NAMEET's string ...
Definition story.h:1691
#define SPECIAL_POWERFUL_PACK_CHOSEN
the player chose the Powerful Pack at registration (GAME.partySet STARTER_PACK_POWERFUL; NAMEET's str...
Definition story.h:1688
Where an actor's frames go in VRAM: one of the records after the FieldImage (Actor....
Definition field_map.h:114
One frame of a sprite animation; frame 0xFF ends it (or loops it)
Definition gfx.h:296
A character of the field (FieldState.actors, a list of pointers up to NULL), which FIELDSTG_updateFie...
Definition field_map.h:194
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
Vec2 start
where the player starts
Definition field_map.h:456
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
void(* applyAction)(s32 code, s32 value)
Definition game_state.h:52
s32(* checkCondition)(u16 code, u16 value)
Definition game_state.h:53
short(* playSound)(s32 id)
returns the voice of a key-on
Definition sound.h:187
The task a stage starts (startStage), updated by its updateStage.
Definition stage.h:26
void(* nextState)(struct StageTask *task)
Definition stage.h:27
s32 state
Definition stage.h:27
StageTile * tile
Definition stage.h:109
Three map objects (animations 1 to 3) moved to (x, y) and animated once when the substate is set to 1...
Definition stage.h:117
StageTileAnim anims[3]
Definition stage.h:121
void(* setSubstate)(struct StageTileEffect *task, s32 substate)
Definition stage.h:118
void(* nextState)(struct StageTileEffect *task)
Definition stage.h:118
void(* nextStep)(struct StageTileEffect *task)
Definition stage.h:118
An object of a map, which FIELDSTG draws: a record of the table at FieldState.objects,...
Definition field_map.h:208
u8 margin
how far off the view it is still drawn; 0 ends the table
Definition field_map.h:214
u8 anim
which of a stage's animations sets frame (1-3); FIELDSTG finds objects by it (its lift,...
Definition field_map.h:210
s16 sortY
drawn sorted at this y, or 0
Definition field_map.h:224
Definition gfx.h:352
void * createTaskWithId(void(*update)(), s32 size, s32 childrenSize, s32 id)
Allocates a zeroed task of size bytes (header included) with room for childrenSize / 4 child tasks.
Definition task.c:80
u16 actor1Conditions[]
Definition wstag212.c:1265
u16 actor26Conditions[]
Definition wstag212.c:1294
FieldActorEntry actor0
Definition wstag212.c:1345
void(* stageFuncs[])(void)
The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a t...
Definition wstag212.c:1515
FieldActorEntry actor6
Definition wstag212.c:1351
u16 actor11Conditions[]
Definition wstag212.c:1275
s16 script12[]
Definition wstag212.c:657
u16 actor10Conditions[]
Definition wstag212.c:1274
FieldActorEntry actor25
Definition wstag212.c:1370
FieldActorEntry actor24
Definition wstag212.c:1369
u16 actor18Conditions[]
Definition wstag212.c:1286
FieldActorEntry actor17
Definition wstag212.c:1362
FieldActorEntry actor39
Definition wstag212.c:1384
void updateTileEffect(StageTileEffect *task)
Moves its map objects to (x, y) and animates them when the substate is set to 1.
Definition wstag212.c:20
u16 actor34Conditions[]
Definition wstag212.c:1310
FieldActorEntry actor33
Definition wstag212.c:1378
u16 actor24Conditions[]
Definition wstag212.c:1292
AnimFrame * updateTileEffectFrames[]
Defined below, after the code that uses them.
Definition wstag212.c:1218
FieldActorEntry actor18
Definition wstag212.c:1363
FieldActorEntry actor40
Definition wstag212.c:1385
u16 actor42Conditions[]
Definition wstag212.c:1330
FieldActorEntry actor5
Definition wstag212.c:1350
void endEvent352(void)
After event 352, with Kail: lets event 40 of WSTAG285 start and moves the story on to its step 0xE.
Definition wstag212.c:185
FieldActorEntry actor37
Definition wstag212.c:1382
FieldActorEntry actor36
Definition wstag212.c:1381
u16 actor35Conditions[]
Definition wstag212.c:1315
s8 tileEffectSortY[]
Definition wstag212.c:1221
void * createCommand810(s32 arg)
Command 810 of the event scripts: the effect of events 10 to 12, where the Tamer Service downloads th...
Definition wstag212.c:124
u16 actor22Conditions[]
Definition wstag212.c:1290
FieldActorEntry actor2
Definition wstag212.c:1347
FieldActorEntry actor31
Definition wstag212.c:1376
const CVECTOR stageColor
the color the setup copies to FIELDSTG_state.spriteColor
Definition wstag212.c:190
s16 script10[]
Definition wstag212.c:219
u16 actor38Conditions[]
Definition wstag212.c:1322
FieldActorEntry actor23
Definition wstag212.c:1368
FieldActorEntry actor19
Definition wstag212.c:1364
u16 actor9Conditions[]
Definition wstag212.c:1273
FieldActorEntry * stageActors[]
Definition wstag212.c:1390
FieldActorEntry actor28
Definition wstag212.c:1373
u16 actor23Conditions[]
Definition wstag212.c:1291
void handleCommand810(StageTileEffect *task, s32 id)
Starts the effect at the place of map ID.
Definition wstag212.c:98
u16 actor32Conditions[]
Definition wstag212.c:1300
u16 actor29Conditions[]
Definition wstag212.c:1297
u16 actor30Conditions[]
Definition wstag212.c:1298
FieldActorEntry actor22
Definition wstag212.c:1367
u16 actor37Conditions[]
Definition wstag212.c:1317
u16 actor44Conditions[]
Definition wstag212.c:1340
s16 script11[]
Definition wstag212.c:442
FieldActorEntry actor41
Definition wstag212.c:1386
u16 actor13Conditions[]
Definition wstag212.c:1277
FieldActorEntry actor29
Definition wstag212.c:1374
s16 script271[]
Definition wstag212.c:872
FieldActorEntry actor27
Definition wstag212.c:1372
FieldActorEntry actor10
Definition wstag212.c:1355
u16 actor31Conditions[]
Definition wstag212.c:1299
AnimFrame updateTileEffectFrames_0[]
Definition wstag212.c:1171
u16 actor19Conditions[]
Definition wstag212.c:1287
u16 actor4Conditions[]
Definition wstag212.c:1268
FieldActorEntry actor4
Definition wstag212.c:1349
u16 actor3Conditions[]
Definition wstag212.c:1267
FieldActorEntry actor35
Definition wstag212.c:1380
s16 tileEffectPlaces[][2]
Definition wstag212.c:1224
FieldActorEntry actor32
Definition wstag212.c:1377
FieldActorEntry actor8
Definition wstag212.c:1353
s16 script273[]
Definition wstag212.c:1069
FieldActorEntry actor44
Definition wstag212.c:1389
ActorImage stageImages[]
Definition wstag212.c:1231
void setupStage(void)
Sets the stage up: its map, actors and events, playing the ambience ENV_0205.
Definition wstag212.c:201
FieldActorEntry actor43
Definition wstag212.c:1388
u16 actor33Conditions[]
Definition wstag212.c:1305
u16 actor16Conditions[]
Definition wstag212.c:1284
StageTile stageObjects[]
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition wstag212.c:1438
u16 actor41Conditions[]
Definition wstag212.c:1329
s16 script352[]
Definition wstag212.c:1127
void endEvents10To12(void)
After events 10 to 12, where the Tamer Service downloads the starter pack the player chose (A,...
Definition wstag212.c:162
FieldActorEntry actor9
Definition wstag212.c:1354
u16 actor8Conditions[]
Definition wstag212.c:1272
FieldActorEntry actor20
Definition wstag212.c:1365
u16 actor5Conditions[]
Definition wstag212.c:1269
FieldActorEntry actor15
Definition wstag212.c:1360
FieldActorEntry actor12
Definition wstag212.c:1357
u16 actor27Conditions[]
Definition wstag212.c:1295
FieldActorEntry actor16
Definition wstag212.c:1361
u16 actor15Conditions[]
Definition wstag212.c:1283
FieldActorEntry actor38
Definition wstag212.c:1383
u16 actor6Conditions[]
Definition wstag212.c:1270
u16 actor14Conditions[]
Definition wstag212.c:1282
FieldActorEntry actor30
Definition wstag212.c:1375
AnimFrame updateTileEffectFrames_2[]
Definition wstag212.c:1193
FieldActorEntry actor7
Definition wstag212.c:1352
u16 actor43Conditions[]
Definition wstag212.c:1335
FieldActorEntry actor13
Definition wstag212.c:1358
AnimFrame updateTileEffectFrames_1[]
Definition wstag212.c:1176
FieldActorEntry actor11
Definition wstag212.c:1356
u16 actor25Conditions[]
Definition wstag212.c:1293
FieldActorEntry actor1
Definition wstag212.c:1346
u16 actor40Conditions[]
Definition wstag212.c:1328
FieldActorEntry actor21
Definition wstag212.c:1366
FieldActorEntry actor42
Definition wstag212.c:1387
#define STAGE_FILE
Definition wstag212.c:198
u16 actor7Conditions[]
Definition wstag212.c:1271
u16 actor39Conditions[]
Definition wstag212.c:1327
u16 actor2Conditions[]
Definition wstag212.c:1266
u16 actor20Conditions[]
Definition wstag212.c:1288
FieldActorEntry actor34
Definition wstag212.c:1379
#define STAGE_TEXT
Definition wstag212.c:196
s32 tileEffectSounds[]
The sound of each of the three partners' download effects.
Definition wstag212.c:1228
u16 actor21Conditions[]
Definition wstag212.c:1289
void endEvent271(void)
After event 271, with Maniac Phillip, Lazy Fei, Tamer Service, Kail, Lazy Alan, Worker Jeff,...
Definition wstag212.c:171
u16 actor28Conditions[]
Definition wstag212.c:1296
u16 actor17Conditions[]
Definition wstag212.c:1285
FieldActorEntry actor3
Definition wstag212.c:1348
FieldActorEntry actor26
Definition wstag212.c:1371
void endEvent273(void)
After event 273, with Kail: moves the story on to STORY_LOOKING_FOR_TEDDY.
Definition wstag212.c:177
u16 actor36Conditions[]
Definition wstag212.c:1316
FieldActorEntry actor14
Definition wstag212.c:1359
FieldEvent stageEvents[]
Definition wstag212.c:1518
u16 actor12Conditions[]
Definition wstag212.c:1276
u16 actor0Conditions[]
Definition wstag212.c:1264