Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
wstag651.c
Go to the documentation of this file.
1/*
2 * WSTAG651: Mirage Hall, West Sector. On the Amaterasu server; its Asuka
3 * server twin is WSTAG650.
4 */
5
6#include "common.h"
7#include "field/stage.h"
8
11
12/*
13 * After event 1462, with Guardromon: applies 0x7C19, an action that does
14 * nothing (applyAction's mode changes 0x7C are only 0 and 1)
15 */
16void endEvent1462(void) {
17 FLAGS_00.applyAction(0x7C19, 1);
18}
19
20#if VERSION_US || VERSION_JP
21#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_07)
22#define EVENT_TEXT_FILE (TEXT_EVENTS_600 - 1)
23#define STAGE_FILE 0x61F
24#elif VERSION_EU
25#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_07)
26#define EVENT_TEXT_FILE (TEXT_EVENTS_600 - 1)
27#define STAGE_FILE 0x62F
28#endif
29/* Sets the stage up: its map, actors, battles and events, playing BGM_0020 */
49
51 SCRIPT_WALK(2, 0xD7, 0x129, 3),
52 SCRIPT_PLACE(0x15, 0xB7, 0x119),
53 SCRIPT_POSE(0x15, 1, 7),
56 SCRIPT_POSE(2, 1, 3),
57 SCRIPT_WAIT(6),
58 SCRIPT_WAIT(0x1E),
59 SCRIPT_TALK(0, 1, 0x15, 2),
61 SCRIPT_WAIT(0x1E),
62 SCRIPT_POSE(0x15, 0x36, 7),
64 SCRIPT_WAIT_ANIM(0x15),
65 SCRIPT_POSE(0x15, 0x37, 7),
66 SCRIPT_WAIT(0x5A),
67 SCRIPT_LEAVE(0xC17, 0, 0, 0),
69};
70AreaBattle area0Battle0 = { 0, 0, MUSIC(1, 0) };
71AreaBattle area0Battle1 = { 0, 0, MUSIC(1, 0) };
72AreaBattle area0Battle2 = { 0, 0, MUSIC(1, 0) };
73AreaBattle area0Battle3 = { 0, 0, MUSIC(1, 0) };
74AreaBattle area0Battle4 = { 0, 0, MUSIC(1, 0) };
75AreaBattle area0Battle5 = { 0, 0, MUSIC(1, 0) };
76AreaBattle area0Battle6 = { 0, 0, MUSIC(1, 0) };
77AreaBattle area0Battle7 = { 0, 0, MUSIC(1, 0) };
83AreaBattle area1Battle0 = { 0, 0, MUSIC(1, 0) };
84AreaBattle area1Battle1 = { 0, 0, MUSIC(1, 0) };
85AreaBattle area1Battle2 = { 0, 0, MUSIC(1, 0) };
86AreaBattle area1Battle3 = { 0, 0, MUSIC(1, 0) };
87AreaBattle area1Battle4 = { 0, 0, MUSIC(1, 0) };
88AreaBattle area1Battle5 = { 0, 0, MUSIC(1, 0) };
89AreaBattle area1Battle6 = { 0, 0, MUSIC(1, 0) };
90AreaBattle area1Battle7 = { 0, 0, MUSIC(1, 0) };
96AreaBattle area2Battle0 = { 0, 0, MUSIC(1, 0) };
97AreaBattle area2Battle1 = { 0, 0, MUSIC(1, 0) };
98AreaBattle area2Battle2 = { 0, 0, MUSIC(1, 0) };
99AreaBattle area2Battle3 = { 0, 0, MUSIC(1, 0) };
100AreaBattle area2Battle4 = { 0, 0, MUSIC(1, 0) };
101AreaBattle area2Battle5 = { 0, 0, MUSIC(1, 0) };
102AreaBattle area2Battle6 = { 0, 0, MUSIC(1, 0) };
103AreaBattle area2Battle7 = { 0, 0, MUSIC(1, 0) };
115AreaBattle area3Battle6 = { 0, 0, MUSIC(1, 0) };
116AreaBattle area3Battle7 = { 0, 0, MUSIC(1, 0) };
126 { 0x200, 0x100, 0x21C, 0x1A6, 0x70, 0xA6, 0x230, 0x1FE },
127 { 0x200, 0x100, 0x200, 0x100, 0, 0, 0x220, 0x1FE },
128 { 0x200, 0x100, 0x216, 0x138, 0x58, 0x38, 0x200, 0x1FD },
129 { 0x200, 0x100, 0x208, 0x1BC, 0x20, 0xBC, 0x210, 0x1FD },
130 { 0x200, 0x100, 0x210, 0x1BC, 0x40, 0xBC, 0x220, 0x1FD },
131 { 0x200, 0x100, 0x200, 0x1BC, 0, 0xBC, 0x230, 0x1FD },
132 { 0x140, 0x100, 0x164, 0x1A7, 0x90, 0xA7, 0x160, 0x1FF },
133 { 0x140, 0x100, 0x150, 0x178, 0x40, 0x78, 0x170, 0x1FF },
134 { 0x140, 0x100, 0x16C, 0x1A5, 0xB0, 0xA5, 0x160, 0x1FE },
135 { 0x140, 0x100, 0x140, 0x18B, 0, 0x8B, 0x170, 0x1FE },
136 { 0x140, 0x100, 0x156, 0x1C8, 0x58, 0xC8, 0x160, 0x1FD },
137 { 0x140, 0x100, 0x150, 0x1A8, 0x40, 0xA8, 0x170, 0x1FD },
138 { 0x140, 0x100, 0x148, 0x18B, 0x20, 0x8B, 0x160, 0x1FC },
139 { 0x140, 0x100, 0x176, 0x1A5, 0xD8, 0xA5, 0x170, 0x1FC },
140 { 0x140, 0x100, 0x15C, 0x1A7, 0x70, 0xA7, 0x160, 0x1FB },
141 { 0x140, 0x100, 0x148, 0x1B3, 0x20, 0xB3, 0x170, 0x1FB },
142 { 0x140, 0x100, 0x140, 0x1BB, 0, 0xBB, 0x160, 0x1FA },
143 { 0x140, 0x100, 0x16C, 0x1C5, 0xB0, 0xC5, 0x170, 0x1FA },
144 { 0x140, 0x100, 0x164, 0x1C7, 0x90, 0xC7, 0x160, 0x1F9 },
145};
197 FLAG(0, 2), 1,
198 PARTY_STAT(7), 0,
200 CODES_END,
201};
203 FLAG(0, 2), 1,
204 PARTY_STAT(7), 1,
205 PARTY_STAT(9), 0,
207 CODES_END,
208};
211 FLAG(0, 2), 1,
212 PARTY_STAT(7), 1,
214 PARTY_STAT(9), 1,
216 CODES_END,
217};
220 FLAG(0, 2), 1,
221 PARTY_STAT(7), 1,
222 ITEM(0, 0x14), 0,
223 PARTY_STAT(9), 1,
226 CODES_END,
227};
229 FLAG(0, 2), 1,
230 PARTY_STAT(7), 1,
231 ITEM(0, 0x14), 1,
232 PARTY_STAT(9), 1,
234 PARTY_STAT(0xB), 0,
236 CODES_END,
237};
239 FLAG(0, 2), 1,
240 PARTY_STAT(7), 1,
241 ITEM(0, 0x14), 1,
242 PARTY_STAT(9), 1,
244 PARTY_STAT(0xB), 1,
246 CODES_END,
247};
304 FLAG(0, 0), 1,
305 PARTY_STAT(7), 0,
307 CODES_END,
308};
310 FLAG(0, 0), 1,
311 PARTY_STAT(7), 1,
312 PARTY_STAT(9), 0,
314 CODES_END,
315};
319 PARTY_STAT(9), 1,
320 FLAG(0, 0), 1,
321 PARTY_STAT(7), 1,
323 CODES_END,
324};
327 ITEM(0, 0x14), 0,
328 PARTY_STAT(9), 1,
330 FLAG(0, 0), 1,
331 PARTY_STAT(7), 1,
333 CODES_END,
334};
337 ITEM(0, 0x14), 1,
338 PARTY_STAT(9), 1,
339 PARTY_STAT(0xB), 0,
340 FLAG(0, 0), 1,
341 PARTY_STAT(7), 1,
343 CODES_END,
344};
346 FLAG(0, 0), 1,
347 PARTY_STAT(7), 1,
348 ITEM(0, 0x14), 1,
349 PARTY_STAT(9), 1,
351 PARTY_STAT(0xB), 1,
353 CODES_END,
354};
399 FLAG(0, 1), 1,
400 PARTY_STAT(7), 0,
402 CODES_END,
403};
405 FLAG(0, 1), 1,
406 PARTY_STAT(7), 1,
407 PARTY_STAT(9), 0,
409 CODES_END,
410};
413 FLAG(0, 1), 1,
414 PARTY_STAT(7), 1,
415 PARTY_STAT(9), 1,
418 CODES_END,
419};
422 FLAG(0, 1), 1,
423 PARTY_STAT(7), 1,
424 ITEM(0, 0x14), 0,
425 PARTY_STAT(9), 1,
428 CODES_END,
429};
431 FLAG(0, 1), 1,
432 PARTY_STAT(7), 1,
433 ITEM(0, 0x14), 1,
434 PARTY_STAT(9), 1,
436 PARTY_STAT(0xB), 0,
438 CODES_END,
439};
441 FLAG(0, 1), 1,
442 PARTY_STAT(7), 1,
443 ITEM(0, 0x14), 1,
444 PARTY_STAT(9), 1,
446 PARTY_STAT(0xB), 1,
448 CODES_END,
449};
459 { NULL, actor0Talk0Actions, 0x2CE },
460 { NULL, NULL, 0 },
461};
463 { NULL, actor1Talk0Actions, 0x2CF },
464 { NULL, NULL, 0 },
465};
467 { NULL, actor2Talk0Actions, 0x2D0 },
468 { NULL, NULL, 0 },
469};
492 { actor5Talk0Conditions, NULL, 0x151 },
493 { actor5Talk1Conditions, NULL, 0x1F },
494 { NULL, NULL, 0 },
495};
497 { NULL, NULL, 0x147 },
498 { NULL, NULL, 0 },
499};
501 { actor7Talk0Conditions, NULL, 0x143 },
502 { actor7Talk1Conditions, NULL, 0x144 },
503 { actor7Talk2Conditions, NULL, 0x145 },
504 { NULL, NULL, 0 },
505};
513 { actor9Talk0Conditions, NULL, 0x134 },
514 { actor9Talk1Conditions, NULL, 0x17 },
515 { NULL, NULL, 0 },
516};
533 { NULL, NULL, 0x146 },
534 { NULL, NULL, 0 },
535};
558 { actor14Talk0Conditions, NULL, 0x135 },
559 { actor14Talk1Conditions, NULL, 0x1B },
560 { NULL, NULL, 0 },
561};
563 { NULL, NULL, 0x141 },
564 { NULL, NULL, 0 },
565};
567 { NULL, NULL, 0x140 },
568 { NULL, NULL, 0 },
569};
571 { NULL, NULL, 0x142 },
572 { NULL, NULL, 0 },
573};
575 { NULL, NULL, 0x2DC },
576 { NULL, NULL, 0 },
577};
618FieldActorEntry actor0 = { NULL, actor0Talks, 0x14, 4, 321, 593, 1 };
619FieldActorEntry actor1 = { NULL, actor1Talks, 0x15, 5, 183, 281, 7 };
620FieldActorEntry actor2 = { NULL, actor2Talks, 0x17, 6, 528, 305, 7 };
626FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x2F, 0xA, 352, 440, 1 };
627FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x2F, 0xA, 352, 440, 1 };
638 &actor0,
639 &actor1,
640 &actor2,
641 &actor3,
642 &actor4,
643 &actor5,
644 &actor6,
645 &actor7,
646 &actor8,
647 &actor9,
648 &actor10,
649 &actor11,
650 &actor12,
651 &actor13,
652 &actor14,
653 &actor15,
654 &actor16,
655 &actor17,
656 &actor18,
657 NULL,
658};
660 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 0xE, 0, 252, 269, 0, 0 },
661 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 0xE, 0, 482, 625, 0, 0 },
662 { 1, 0, 0x40, 6, 0x34, 2, 0, 7, 0xE, 0, 195, 353, 0, 0 },
663 { 1, 0, 0x40, 6, 0x34, 2, 0, 7, 0xE, 0, 339, 386, 0, 0 },
664 { 1, 0, 0x40, 6, 0x34, 2, 0, 7, 0xE, 0, 539, 364, 0, 0 },
665 { 1, 0, 0x40, 6, 0x35, 2, 0, 7, 0xE, 0, 366, 485, 0, 0 },
666 { 1, 0, 0x40, 6, 0x36, 2, 0, 7, 0xE, 0, 475, 430, 0, 0 },
667 { 1, 0, 0x40, 6, 0x37, 2, 0, 0xB, 0xA, 0, 164, 326, 0, 0 },
668 { 1, 0, 0x40, 6, 0x38, 2, 0, 0xB, 0xA, 0, 164, 354, 0, 0 },
669 { 1, 0, 0x40, 6, 0x39, 2, 0, 0xB, 0xA, 0, 508, 337, 0, 0 },
670 { 1, 0, 0x40, 6, 0x3A, 2, 0, 0xB, 0xA, 0, 512, 364, 0, 0 },
671 { 1, 0, 0x40, 6, 0x3B, 2, 0, 0xB, 0xA, 0, 568, 388, 0, 0 },
672 { 1, 0, 0x40, 6, 0x3C, 2, 0, 0xB, 0xA, 0, 481, 426, 0, 0 },
673 { 1, 0, 0x40, 6, 0x3D, 2, 0, 0xB, 0xA, 0, 453, 432, 0, 0 },
674 { 1, 0, 0x40, 6, 0x3E, 2, 0, 0xB, 0xA, 0, 346, 480, 0, 0 },
675 { 1, 0, 0x40, 6, 0x3F, 2, 0, 0xB, 0xA, 0, 342, 488, 0, 0 },
676 { 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 311, 96, 151, 0 },
677 { 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 318, 579, 600, 0 },
678 { 1, 0, 0x40, 4, 2, 0, 0, 0, 0, 0, 335, 572, 595, 0 },
679 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
680};
682 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x2C5, 0xA8, 0x1B4, 5, 0, 0, 0 },
683 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x2C3, 0x298, 0x104, 7, 0, 0, 0 },
684 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_DOWN, 4, 0xFD, 0xD0, 0, 0, 0, 0 },
685 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_UP, 4, 0xEC, 0x118, 0, 0, 0, 0 },
686 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_DOWN, 8, 0x133, 0xC8, 0, 0, 0, 0 },
687 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_UP, 8, 0x142, 0x150, 0, 0, 0, 0 },
688 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_DOWN, 4, 0x192, 0x148, 0, 0, 0, 0 },
689 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_UP, 4, 0x1A2, 0x190, 0, 0, 0, 0 },
690 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_DOWN, 4, 0x1C2, 0x1A0, 0, 0, 0, 0 },
691 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_UP, 4, 0x1D2, 0x1E8, 0, 0, 0, 0 },
692 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_DOWN, 4, 0x25C, 0x160, 0, 0, 0, 0 },
693 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_UP, 4, 0x24C, 0x1A8, 0, 0, 0, 0 },
694 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_DOWN, 4, 0x1AC, 0x228, 0, 0, 0, 0 },
695 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_UP, 4, 0x19C, 0x270, 0, 0, 0, 0 },
696 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_DROP, 5, 0, 0, 0, 0, 0, 0 },
697 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_DROP, 9, 0, 0, 0, 0, 0, 0 },
698 { { { CODES_END, 0 }, { CODES_END, 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
699};
700void (*stageFuncs[])(void) = {
702};
704 { 1462, script1462, EVENT_TEXT(0x1F), NULL, endEvent1462 },
705 { -1, NULL, 0, NULL, NULL },
706};
#define NULL
Definition common.h:17
signed short s16
Definition common.h:9
unsigned short u16
Definition common.h:10
GameFlags FLAGS_00
The flag bitset FLAGS_00 and the event functions.
Definition events.c:701
The stage overlays (AAA/PRO/WSTAG###.PRO), loaded at 0x800A4CA4 on top of FIELDSTG.
#define EVENT_TEXT(n)
An entry of the stage's events' text file, for FieldEvent.text.
Definition stage.h:732
#define SLOT_CLIMB_UP
Definition field_map.h:256
#define SCRIPT_WAIT_WALK(id)
until the character gets to its goal
Definition field_map.h:168
#define FIELD_COMMAND_HALT_PARTNERS
The field commands, which an event script hands FIELD_TASK_COMMANDS as the first argument of a pose c...
Definition field_map.h:41
#define SCRIPT_END
The commands of an event script (FieldEvent.script), as FIELDSTG_runEvent reads them: a halfword kind...
Definition field_map.h:156
#define SCRIPT_LEAVE(mode, x, y, dir)
FIELDSTG_leaveField; ends the event.
Definition field_map.h:170
#define 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_COMMAND_PLAY_SAVEDEMO
Definition field_map.h:65
#define FIELD_MAP_FLOOR0
Some of FieldMap's maps (files): those of the floors the player walks on come first,...
Definition field_map.h:85
#define SLOT_CLIMB_DOWN
Definition field_map.h:257
#define 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 SCRIPT_WAIT_ANIM(id)
until its animation ends
Definition field_map.h:169
#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 SLOT_DROP
Definition field_map.h:258
#define SCRIPT_TALK(box, entry, id, kind)
box of the event's boxes shows the event text's entry: a talk box at the corner kind next to the char...
Definition field_map.h:165
FieldMap FIELDSTG_map
Definition fieldstg.c:3660
FieldState FIELDSTG_state
Definition fieldstg.c:2641
#define START_EVENT(index)
action: FIELDSTG_startListedEvent
Definition game_state.h:81
#define EVENT_BATTLE(id)
action: FIELDSTG_battleFuncs.startEventBattle
Definition game_state.h:72
#define CODES_END
Definition game_state.h:83
#define ITEM(kind, id)
an item, in the bag or equipped; kind (bits 9-11) isn't read, and the scripts set it after the item's...
Definition game_state.h:80
#define PROGRESS(n)
GAME.progress is n.
Definition game_state.h:69
#define FLAG(group, id)
The codes of the (code, value) pairs that FLAGS_00 checks as conditions and applies as actions (event...
Definition game_state.h:68
#define PARTY_STAT(id)
checkPartyStat
Definition game_state.h:71
#define CARD_BATTLE(opponent, kind)
action: startCardBattle
Definition game_state.h:73
#define MUSIC_MIRAGE_HALL
BGM_0020: the Mirage Hall and Mirage Room.
Definition sound.h:96
#define MUSIC_BATTLE
BATL0000: the maps' random battles (AreaBattle, nearly all of them)
Definition sound.h:76
#define MUSIC(bank, n)
A field's or a battle's music (FieldState.music, Battle.music): track (SEP) n of the first sequence o...
Definition sound.h:70
#define MUSIC_BATTLE_1
BATL1000: the Digimon Arena's battles and some event battles (AreaBattle)
Definition sound.h:77
#define MUSIC_BANK(music)
The sound bank of a music, which a stage loads for it (FieldState.soundBank)
Definition sound.h:148
FIELDSTG's start of the stage (StageEntry.init in FIELDSTG_stages): the stage's task,...
#define 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_PRESIDENT_ARRESTED
WSTAG226 (Login Room, Amaterasu City), event 935, after the President of MAGAMI gives himself up (WST...
Definition story.h:136
@ STORY_AMATERASU_BRIDGE
WSTAG206 (Amaterasu Bridge), event 922: an Attacker holds the bridge.
Definition story.h:133
@ STORY_MOVIE_BATTLES
WSTAG820, event 1080, with Snatchmon: each encounter plays MODE_BATTLE_MOVIE first.
Definition story.h:146
#define 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_CARD_BATTLE_WON
set by updateModeFlags on the way back from a card battle: 1 if the player won it (FLAGS_00....
Definition story.h:166
#define FLAG_CARD_BATTLE_ENDED
set by updateModeFlags on the way back from a card battle; the talks that follow one test it and clea...
Definition story.h:169
#define SPECIAL_STORY_JUNGLE_SOUND_TO_BLACK_ID_PASS
GAME.progress is from STORY_JUNGLE_SOUND to STORY_BLACK_ID_PASS (PROGRESS_RANGES[0x15])
Definition story.h:1926
#define FLAG_MURDOCK_FOUGHT
wstag651 (Mirage Hall): Tamer Murdock says "Worrying about it here won't make a difference.
Definition story.h:935
#define FLAG_TAKUYA_FOUGHT
wstag651 (Mirage Hall): Tamer Takuya says "Well, let's see how good you are in a battle.
Definition story.h:932
#define SPECIAL_STORY_JUNGLE_SOUND_TO_PRESIDENT_ARRESTED
GAME.progress is from STORY_JUNGLE_SOUND to STORY_PRESIDENT_ARRESTED (PROGRESS_RANGES[0x17])
Definition story.h:1932
#define FLAG_BANCH_FOUGHT
wstag651 (Mirage Hall): Guard Banch says "If you're not a spy defeat me in battle!...
Definition story.h:938
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
s32 textFile
the stage's text file, for the talks
Definition field_map.h:461
union FieldState::@12 images
s32 music
SOUND.playSound's, or 0.
Definition field_map.h:460
What a character says (FIELDSTG_runActorAction): the first whose conditions hold, or the last,...
Definition field_map.h:176
void(* applyAction)(s32 code, s32 value)
Definition game_state.h:52
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 actor0Talk0Actions[]
Definition wstag651.c:146
AreaBattle area2Battle7
Definition wstag651.c:103
u16 actor10Talk2Conditions[]
Definition wstag651.c:275
FieldActorEntry actor0
Definition wstag651.c:618
void(* stageFuncs[])(void)
The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a t...
Definition wstag651.c:700
FieldActorEntry actor6
Definition wstag651.c:624
u16 actor7Talk1Conditions[]
Definition wstag651.c:252
u16 actor4Talk9Conditions[]
Definition wstag651.c:219
u16 actor10Talk8Actions[]
Definition wstag651.c:325
u16 actor11Conditions[]
Definition wstag651.c:602
u16 actor10Talk1Actions[]
Definition wstag651.c:274
FieldTalk actor2Talks[]
Definition wstag651.c:466
AreaBattle area2Battle6
Definition wstag651.c:102
u16 actor8Talk1Conditions[]
Definition wstag651.c:255
u16 actor4Talk3Conditions[]
Definition wstag651.c:175
u16 actor10Talk5Conditions[]
Definition wstag651.c:296
u16 actor4Talk1Actions[]
Definition wstag651.c:167
u16 actor4Talk8Conditions[]
Definition wstag651.c:210
u16 actor10Conditions[]
Definition wstag651.c:597
u16 actor4Talk6Conditions[]
Definition wstag651.c:196
u16 actor18Conditions[]
Definition wstag651.c:617
u16 actor13Talk2Conditions[]
Definition wstag651.c:454
u16 actor4Talk2Actions[]
Definition wstag651.c:174
FieldActorEntry actor17
Definition wstag651.c:635
u16 actor7Talk2Conditions[]
Definition wstag651.c:253
u16 actor10Talk3Actions[]
Definition wstag651.c:288
u16 actor12Talk2Conditions[]
Definition wstag651.c:370
u16 actor4Talk11Actions[]
Definition wstag651.c:248
u16 actor5Talk0Conditions[]
Definition wstag651.c:249
u16 actor10Talk2Actions[]
Definition wstag651.c:281
FieldTalk actor14Talks[]
Definition wstag651.c:557
FieldActorEntry actor18
Definition wstag651.c:636
FieldTalk actor5Talks[]
Definition wstag651.c:491
AreaBattle area1Battle6
Definition wstag651.c:89
u16 actor4Talk10Conditions[]
Definition wstag651.c:228
FieldActorEntry actor5
Definition wstag651.c:623
u16 actor4Talk11Conditions[]
Definition wstag651.c:238
u16 actor4Talk4Conditions[]
Definition wstag651.c:182
u16 actor12Talk9Conditions[]
Definition wstag651.c:421
AreaBattle area0Battle7
Definition wstag651.c:77
FieldActorEntry actor2
Definition wstag651.c:620
u16 actor8Talk2Conditions[]
Definition wstag651.c:257
u16 actor13Talk1Actions[]
Definition wstag651.c:453
u16 actor12Talk11Conditions[]
Definition wstag651.c:440
u16 actor9Talk0Conditions[]
Definition wstag651.c:259
u16 actor3Talk0Conditions[]
Definition wstag651.c:149
AreaBattle area3Battle4
Definition wstag651.c:113
AreaBattle area3Battle3
Definition wstag651.c:112
AreaBattle area0Battle1
Definition wstag651.c:71
AreaBattle area2Battle0
Definition wstag651.c:96
u16 actor12Talk2Actions[]
Definition wstag651.c:376
u16 actor9Conditions[]
Definition wstag651.c:592
u16 actor7Talk0Conditions[]
Definition wstag651.c:251
FieldActorEntry * stageActors[]
Definition wstag651.c:637
AreaBattle area1Battle2
Definition wstag651.c:85
u16 actor10Talk4Actions[]
Definition wstag651.c:295
u16 actor12Talk8Actions[]
Definition wstag651.c:420
void endEvent1462(void)
After event 1462, with Guardromon: applies 0x7C19, an action that does nothing (applyAction's mode ch...
Definition wstag651.c:16
AreaBattle area3Battle0
Definition wstag651.c:109
u16 actor10Talk1Conditions[]
Definition wstag651.c:268
u16 actor4Talk1Conditions[]
Definition wstag651.c:161
u16 actor12Talk0Actions[]
Definition wstag651.c:362
u16 actor12Talk4Conditions[]
Definition wstag651.c:384
u16 actor10Talk7Actions[]
Definition wstag651.c:316
AreaBattle area0Battle6
Definition wstag651.c:76
u16 actor4Talk4Actions[]
Definition wstag651.c:188
u16 actor10Talk0Conditions[]
Definition wstag651.c:261
FieldTalk actor1Talks[]
Definition wstag651.c:462
u16 actor13Conditions[]
Definition wstag651.c:608
u16 actor10Talk7Conditions[]
Definition wstag651.c:309
u16 actor4Talk5Conditions[]
Definition wstag651.c:189
AreaBattle area3Battle2
Definition wstag651.c:111
u16 actor12Talk7Actions[]
Definition wstag651.c:411
u16 actor13Talk0Conditions[]
Definition wstag651.c:451
FieldTalk actor0Talks[]
Definition wstag651.c:458
AreaBattle area3Battle1
Definition wstag651.c:110
AreaBattle area0Battle3
Definition wstag651.c:73
u16 actor3Talk2Conditions[]
Definition wstag651.c:152
FieldActorEntry actor10
Definition wstag651.c:628
u16 actor3Talk1Conditions[]
Definition wstag651.c:150
u16 actor2Talk0Actions[]
Definition wstag651.c:148
FieldTalk actor4Talks[]
Definition wstag651.c:476
u16 actor4Conditions[]
Definition wstag651.c:579
FieldActorEntry actor4
Definition wstag651.c:622
u16 actor3Conditions[]
Definition wstag651.c:578
AreaBattle area3Battle6
Definition wstag651.c:115
FieldTalk actor17Talks[]
Definition wstag651.c:570
u16 actor4Talk7Conditions[]
Definition wstag651.c:202
u16 actor10Talk11Actions[]
Definition wstag651.c:355
FieldTalk actor11Talks[]
Definition wstag651.c:532
FieldActorEntry actor8
Definition wstag651.c:626
ActorImage stageImages[]
Definition wstag651.c:125
u16 actor14Talk1Conditions[]
Definition wstag651.c:457
FieldTalk actor6Talks[]
Definition wstag651.c:496
void setupStage(void)
Sets the stage up: its map, actors, battles and events, playing BGM_0020.
Definition wstag651.c:30
u16 actor12Talk5Conditions[]
Definition wstag651.c:391
u16 actor12Talk0Conditions[]
Definition wstag651.c:356
AreaBattle area2Battle4
Definition wstag651.c:100
u16 actor10Talk0Actions[]
Definition wstag651.c:267
u16 actor4Talk0Conditions[]
Definition wstag651.c:154
u16 actor8Talk1Actions[]
Definition wstag651.c:256
u16 actor16Conditions[]
Definition wstag651.c:615
StageTile stageObjects[]
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition wstag651.c:659
u16 actor10Talk5Actions[]
Definition wstag651.c:302
u16 actor12Talk5Actions[]
Definition wstag651.c:397
FieldActorEntry actor9
Definition wstag651.c:627
u16 actor8Conditions[]
Definition wstag651.c:591
u16 actor12Talk3Conditions[]
Definition wstag651.c:377
u16 actor9Talk1Conditions[]
Definition wstag651.c:260
u16 actor5Conditions[]
Definition wstag651.c:584
FieldTalk actor10Talks[]
Definition wstag651.c:517
FieldTalk actor3Talks[]
Definition wstag651.c:470
u16 actor3Talk1Actions[]
Definition wstag651.c:151
FieldTalk actor9Talks[]
Definition wstag651.c:512
BattleList area3Battles
Definition wstag651.c:117
u16 actor8Talk2Actions[]
Definition wstag651.c:258
u16 actor3Talk2Actions[]
Definition wstag651.c:153
AreaBattle area3Battle5
Definition wstag651.c:114
AreaBattle area0Battle5
Definition wstag651.c:75
BattleList area1Battles
Definition wstag651.c:91
FieldTalk actor15Talks[]
Definition wstag651.c:562
u16 actor12Talk7Conditions[]
Definition wstag651.c:404
u16 actor10Talk8Conditions[]
Definition wstag651.c:317
u16 actor10Talk11Conditions[]
Definition wstag651.c:345
BattleList area2Battles
Definition wstag651.c:104
FieldActorEntry actor15
Definition wstag651.c:633
FieldActorEntry actor12
Definition wstag651.c:630
FieldActorEntry actor16
Definition wstag651.c:634
u16 actor15Conditions[]
Definition wstag651.c:614
AreaBattle area1Battle4
Definition wstag651.c:87
u16 actor10Talk10Conditions[]
Definition wstag651.c:335
u16 actor6Conditions[]
Definition wstag651.c:589
AreaBattle area2Battle2
Definition wstag651.c:98
u16 actor12Talk1Conditions[]
Definition wstag651.c:363
u16 actor12Talk1Actions[]
Definition wstag651.c:369
AreaBattle area1Battle5
Definition wstag651.c:88
u16 actor12Talk6Conditions[]
Definition wstag651.c:398
u16 actor14Conditions[]
Definition wstag651.c:609
FieldActorEntry actor7
Definition wstag651.c:625
StageSlot stageSlots[]
Definition wstag651.c:681
AreaBattle area2Battle1
Definition wstag651.c:97
u16 actor1Talk0Actions[]
Definition wstag651.c:147
u16 actor5Talk1Conditions[]
Definition wstag651.c:250
FieldActorEntry actor13
Definition wstag651.c:631
AreaBattle area1Battle3
Definition wstag651.c:86
AreaBattle area1Battle0
Definition wstag651.c:83
u16 actor4Talk5Actions[]
Definition wstag651.c:195
FieldActorEntry actor11
Definition wstag651.c:629
FieldActorEntry actor1
Definition wstag651.c:619
u16 actor10Talk3Conditions[]
Definition wstag651.c:282
AreaBattle area0Battle0
Definition wstag651.c:70
AreaBattle area0Battle2
Definition wstag651.c:72
FieldTalk actor13Talks[]
Definition wstag651.c:551
#define STAGE_FILE
Definition wstag651.c:27
AreaBattle area2Battle5
Definition wstag651.c:101
u16 actor4Talk0Actions[]
Definition wstag651.c:160
AreaBattle area1Battle1
Definition wstag651.c:84
u16 actor7Conditions[]
Definition wstag651.c:590
AreaBattle area2Battle3
Definition wstag651.c:99
u16 actor4Talk8Actions[]
Definition wstag651.c:218
u16 actor10Talk6Conditions[]
Definition wstag651.c:303
s16 script1462[]
Definition wstag651.c:50
u16 actor13Talk1Conditions[]
Definition wstag651.c:452
FieldTalk actor18Talks[]
Definition wstag651.c:574
u16 actor12Talk3Actions[]
Definition wstag651.c:383
FieldTalk actor7Talks[]
Definition wstag651.c:500
u16 actor4Talk3Actions[]
Definition wstag651.c:181
AreaBattle area0Battle4
Definition wstag651.c:74
#define STAGE_TEXT
Definition wstag651.c:25
FieldTalk actor8Talks[]
Definition wstag651.c:506
u16 actor12Talk4Actions[]
Definition wstag651.c:390
FieldTalk actor12Talks[]
Definition wstag651.c:536
AreaBattle area3Battle7
Definition wstag651.c:116
u16 actor10Talk4Conditions[]
Definition wstag651.c:289
BattleList area0Battles
Definition wstag651.c:78
u16 actor8Talk0Conditions[]
Definition wstag651.c:254
AreaBattle area1Battle7
Definition wstag651.c:90
u16 actor4Talk2Conditions[]
Definition wstag651.c:168
u16 actor10Talk9Conditions[]
Definition wstag651.c:326
u16 actor12Talk8Conditions[]
Definition wstag651.c:412
u16 actor4Talk7Actions[]
Definition wstag651.c:209
FieldTalk actor16Talks[]
Definition wstag651.c:566
u16 actor12Talk10Conditions[]
Definition wstag651.c:430
u16 actor17Conditions[]
Definition wstag651.c:616
u16 actor12Talk11Actions[]
Definition wstag651.c:450
FieldActorEntry actor3
Definition wstag651.c:621
FieldBattles stageBattles[]
Definition wstag651.c:122
u16 actor13Talk2Actions[]
Definition wstag651.c:455
FieldActorEntry actor14
Definition wstag651.c:632
FieldEvent stageEvents[]
Definition wstag651.c:703
u16 actor12Conditions[]
Definition wstag651.c:603
u16 actor14Talk0Conditions[]
Definition wstag651.c:456