Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
wstag735.c
Go to the documentation of this file.
1/*
2 * WSTAG735: Ice Dungeon, North Sector.
3 */
4
5#include "common.h"
6#include "field/stage.h"
7/* Defined below, after the code that uses them */
9
10/* Creates the stage's ten effects and the event object of flags 0x400E/0x4019 */
11void updateStage(StageTask *task, void **children) {
12 s32 i;
13
14 switch (task->state) {
15 case TASK_INIT:
16 default:
17 for (i = 0; i < 10; i++) {
18 if (updateStageSpots[i].kind == 0) {
19 children[i] = createStageEffect(updateStageSpots[i].x, updateStageSpots[i].y, updateStageSpots[i].frame);
20 }
21 }
23 children[10] = FIELDSTG_startEvent(0x317);
24 }
25 task->nextState(task);
26 break;
27 case TASK_RUN:
28 case TASK_DONE:
29 case TASK_KILL:
30 break;
31 }
32}
33
34#define STAGE_CHILDREN_SIZE 0x2C
41
42/*
43 * After event 790, with Ice Witch: starts the stage's event battle 0 and
44 * keeps it from playing again
45 */
50
51/*
52 * After event 791, with Ice Witch: gives the player the Yin Yang Hat and
53 * keeps it from playing again
54 */
59
60#if VERSION_US || VERSION_JP
61#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_02)
62#define EVENT_TEXT_FILE (TEXT_EVENTS_700 - 1)
63#define STAGE_FILE 0x6AC
64#elif VERSION_EU
65#define STAGE_TEXT TEXT_FILE(TEXT_TALKS_02)
66#define EVENT_TEXT_FILE (TEXT_EVENTS_700 - 1)
67#define STAGE_FILE 0x6BB
68#endif
69/* Sets the stage up: its map, actors, battles and events, playing BGM_0023 */
90
92 SCRIPT_FOLLOW(1, 2),
93 SCRIPT_WALK(2, 0x138, 0x25C, 3),
94 SCRIPT_PLACE(0xC8, 0x120, 0x251),
95 SCRIPT_POSE(0xC8, 1, 7),
98 SCRIPT_POSE(2, 1, 3),
99 SCRIPT_WAIT(0x1E),
100 SCRIPT_TALK(0, 1, 0xC8, 2),
102 SCRIPT_WAIT(0x1E),
103 SCRIPT_TALK(0, 2, 2, 1),
104 SCRIPT_POSE(2, 7, 3),
106 SCRIPT_POSE(2, 1, 3),
107 SCRIPT_WAIT(0x1E),
108 SCRIPT_TALK(0, 3, 0xC8, 2),
110 SCRIPT_WAIT(0x1E),
111 SCRIPT_TALK(0, 4, 2, 1),
112 SCRIPT_POSE(2, 7, 3),
114 SCRIPT_POSE(2, 1, 3),
115 SCRIPT_WAIT(0x1E),
117 /* after the end, the original's padding up to a word, which isn't zeros */
118#if VERSION_US
119 0x240,
120#elif VERSION_EU || VERSION_JP
121 0x800A,
122#endif
123};
125 SCRIPT_FOLLOW(1, 0xC8),
126 SCRIPT_PLACE(2, 0x138, 0x25C),
127 SCRIPT_POSE(2, 1, 3),
128 SCRIPT_PLACE(0xC8, 0x120, 0x251),
129 SCRIPT_POSE(0xC8, 1, 7),
130 SCRIPT_WAIT(0x78),
131 SCRIPT_TALK(0, 1, 0xC8, 0),
133 SCRIPT_WAIT(0x1E),
134 SCRIPT_POSE(0xC8, 1, 5),
135 SCRIPT_WAIT(0x1E),
136 SCRIPT_WALK(0xC8, 0x150, 0x239, 5),
137 SCRIPT_WAIT_WALK(0xC8),
138 SCRIPT_POSE(0xC8, 1, 1),
139 SCRIPT_WAIT(0x1E),
140 SCRIPT_WALK(2, 0x120, 0x251, 3),
142 SCRIPT_POSE(2, 1, 5),
143 SCRIPT_WAIT(0x1E),
144 SCRIPT_TALK(0, 2, 0xC8, 2),
146 SCRIPT_FOLLOW(1, 2),
147 SCRIPT_WAIT(0x1E),
149 /* after the end, the original's padding up to a word, which isn't zeros */
150#if VERSION_US
151 0x1,
152#elif VERSION_EU || VERSION_JP
153 0x800A,
154#endif
155};
157 { 36, 0, 0x14C, 0x264 },
158 { 28, 0, 236, 0x1B4 },
159 { 28, 0, 0x17C, 0x1CC },
160 { 28, 0, 0x1BC, 0x28C },
161 { 28, 0, 0x21C, 0x2BC },
162 { 28, 0, 0x2AC, 0x2D4 },
163 { 28, 0, 0x32C, 0x2F4 },
164 { 28, 0, 0x38C, 0x2F4 },
165 { 28, 0, 0x3FC, 0x2BC },
166 { 20, 0, 0x3AC, 68 },
167};
169 { 0, 6 }, { 1, 6 }, { 2, 68 }, { 1, 4 },
170 { 0, 4 }, { 255, 0 },
171};
173 { 0x12C, 18 }, { 1, 6 }, { 2, 6 }, { 3, 6 },
174 { 4, 6 }, { 5, 4 }, { 6, 4 }, { 7, 4 },
175 { 5, 4 }, { 6, 4 }, { 7, 4 }, { 5, 4 },
176 { 6, 4 }, { 7, 4 }, { 5, 4 }, { 6, 4 },
177 { 7, 4 }, { 4, 4 }, { 3, 4 }, { 2, 4 },
178 { 1, 4 }, { 255, 0x3E7 },
179};
193AreaBattle area1Battle0 = { 0, 0, MUSIC(1, 0) };
194AreaBattle area1Battle1 = { 0, 0, MUSIC(1, 0) };
195AreaBattle area1Battle2 = { 0, 0, MUSIC(1, 0) };
196AreaBattle area1Battle3 = { 0, 0, MUSIC(1, 0) };
197AreaBattle area1Battle4 = { 0, 0, MUSIC(1, 0) };
198AreaBattle area1Battle5 = { 0, 0, MUSIC(1, 0) };
199AreaBattle area1Battle6 = { 0, 0, MUSIC(1, 0) };
200AreaBattle area1Battle7 = { 0, 0, MUSIC(1, 0) };
206AreaBattle area2Battle0 = { 0, 0, MUSIC(1, 0) };
207AreaBattle area2Battle1 = { 0, 0, MUSIC(1, 0) };
208AreaBattle area2Battle2 = { 0, 0, MUSIC(1, 0) };
209AreaBattle area2Battle3 = { 0, 0, MUSIC(1, 0) };
210AreaBattle area2Battle4 = { 0, 0, MUSIC(1, 0) };
211AreaBattle area2Battle5 = { 0, 0, MUSIC(1, 0) };
212AreaBattle area2Battle6 = { 0, 0, MUSIC(1, 0) };
213AreaBattle area2Battle7 = { 0, 0, MUSIC(1, 0) };
220AreaBattle area3Battle1 = { 0, 0, MUSIC(1, 0) };
221AreaBattle area3Battle2 = { 0, 0, MUSIC(1, 0) };
222AreaBattle area3Battle3 = { 0, 0, MUSIC(1, 0) };
223AreaBattle area3Battle4 = { 0, 0, MUSIC(1, 0) };
224AreaBattle area3Battle5 = { 0, 0, MUSIC(1, 0) };
225AreaBattle area3Battle6 = { 0, 0, MUSIC(1, 0) };
226AreaBattle area3Battle7 = { 0, 0, MUSIC(1, 0) };
236 { 0x200, 0x100, 0x21C, 0x1A6, 0x70, 0xA6, 0x230, 0x1FE },
237 { 0x200, 0x100, 0x200, 0x100, 0, 0, 0x220, 0x1FE },
238 { 0x200, 0x100, 0x216, 0x138, 0x58, 0x38, 0x200, 0x1FD },
239 { 0x200, 0x100, 0x208, 0x1BC, 0x20, 0xBC, 0x210, 0x1FD },
240 { 0x200, 0x100, 0x210, 0x1BC, 0x40, 0xBC, 0x220, 0x1FD },
241 { 0x200, 0x100, 0x200, 0x1BC, 0, 0xBC, 0x230, 0x1FD },
242 { 0x140, 0x100, 0x15E, 0x1A8, 0x78, 0xA8, 0x150, 0x1F6 },
243 { 0x140, 0x100, 0x166, 0x1A8, 0x98, 0xA8, 0x160, 0x1F6 },
244 { 0x140, 0x100, 0x16E, 0x1A8, 0xB8, 0xA8, 0x170, 0x1F6 },
245 { 0x140, 0x100, 0x176, 0x1A8, 0xD8, 0xA8, 0x140, 0x1F5 },
246 { 0x140, 0x100, 0x140, 0x1B0, 0, 0xB0, 0x150, 0x1F5 },
247};
252 { NULL, NULL, 0x1F7 },
253 { NULL, NULL, 0 },
254};
256 { NULL, NULL, 0x1F5 },
257 { NULL, NULL, 0 },
258};
261 { actor2Talk1Conditions, NULL, 0x1F5 },
262 { NULL, NULL, 0 },
263};
265 { NULL, NULL, 0x1FB },
266 { NULL, NULL, 0 },
267};
269 { NULL, NULL, 0x1FA },
270 { NULL, NULL, 0 },
271};
273 { NULL, NULL, 0x1F9 },
274 { NULL, NULL, 0 },
275};
277 { NULL, NULL, 0x1F8 },
278 { NULL, NULL, 0 },
279};
281 { NULL, NULL, 0x1F6 },
282 { NULL, NULL, 0 },
283};
285 { NULL, NULL, 0x204 },
286 { NULL, NULL, 0 },
287};
289 { NULL, NULL, 0x205 },
290 { NULL, NULL, 0 },
291};
293 { NULL, NULL, 0x203 },
294 { NULL, NULL, 0 },
295};
297 { NULL, NULL, 0x202 },
298 { NULL, NULL, 0 },
299};
301 { NULL, NULL, 0x202 },
302 { NULL, NULL, 0 },
303};
339 &actor0,
340 &actor1,
341 &actor2,
342 &actor3,
343 &actor4,
344 &actor5,
345 &actor6,
346 &actor7,
347 &actor8,
348 &actor9,
349 &actor10,
350 &actor11,
351 &actor12,
352 NULL,
353};
355 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 430, 326, 0, 0 },
356 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 443, 315, 0, 0 },
357 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 456, 288, 0, 0 },
358 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 458, 346, 0, 0 },
359 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 464, 275, 0, 0 },
360 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 494, 375, 0, 0 },
361 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 500, 402, 0, 0 },
362 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 555, 192, 0, 0 },
363 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 574, 190, 0, 0 },
364 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 698, 393, 0, 0 },
365 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 727, 379, 0, 0 },
366 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 778, 446, 0, 0 },
367 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 814, 430, 0, 0 },
368 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 872, 226, 0, 0 },
369 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 886, 236, 0, 0 },
370 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 909, 415, 0, 0 },
371 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 971, 387, 0, 0 },
372 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 996, 373, 0, 0 },
373 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 1022, 295, 0, 0 },
374 { 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 1036, 293, 0, 0 },
375 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 435, 329, 0, 0 },
376 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 446, 320, 0, 0 },
377 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 452, 282, 0, 0 },
378 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 462, 280, 0, 0 },
379 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 464, 350, 0, 0 },
380 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 497, 381, 0, 0 },
381 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 501, 395, 0, 0 },
382 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 548, 194, 0, 0 },
383 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 567, 186, 0, 0 },
384 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 573, 196, 0, 0 },
385 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 584, 253, 0, 0 },
386 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 691, 394, 0, 0 },
387 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 694, 361, 0, 0 },
388 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 699, 371, 0, 0 },
389 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 724, 384, 0, 0 },
390 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 785, 443, 0, 0 },
391 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 817, 425, 0, 0 },
392 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 841, 435, 0, 0 },
393 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 848, 267, 0, 0 },
394 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 852, 465, 0, 0 },
395 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 875, 232, 0, 0 },
396 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 890, 242, 0, 0 },
397 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 915, 412, 0, 0 },
398 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 976, 389, 0, 0 },
399 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 988, 346, 0, 0 },
400 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 991, 377, 0, 0 },
401 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 1014, 291, 0, 0 },
402 { 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 1034, 300, 0, 0 },
403 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
404};
406 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x268, 0x78, 0x144, 7, 0, 0, 0 },
407 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_EXIT, 0x26B, 0x40C, 0x6E, 1, 0, 0, 0 },
408 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_DOWN, 5, 0x400, 0x80, 0, 0, 0, 0 },
409 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_CLIMB_UP, 5, 0x3F0, 0xD8, 0, 0, 0, 0 },
410 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_DROP, 6, 0, 0, 0, 0, 0, 0 },
411 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_DROP, 9, 0, 0, 0, 0, 0, 0 },
412 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_DROP, 0xB, 0, 0, 0, 0, 0, 0 },
413 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_DROP, 7, 0, 0, 0, 0, 0, 0 },
414 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_LAUNCH, 0x26A, 0x140, 0x260, 3, 0, 0, 0 },
415 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_LAUNCH, 0x26A, 0x3C0, 0x50, 7, 0, 0, 0 },
416 { { { ITEM(0, 0x11), 1 }, { FLAG_ICE_WITCH_WIN_SEEN, 0 } }, SLOT_EVENT, 0x316, 0, 0, 0, 0, 0, 0 },
417 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_SLIDE, 0, 0, 0, 0, 0, 0, 0 },
418 { { { CODES_END, 0 }, { CODES_END, 0 } }, SLOT_STOP_SLIDE, 0, 0, 0, 0, 0, 0, 0 },
419 { { { CODES_END, 0 }, { CODES_END, 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
420};
421void (*stageFuncs[])(void) = {
423};
425 { 790, script790, EVENT_TEXT(0xA), NULL, endEvent790 },
426 { 791, script791, EVENT_TEXT(0xB), NULL, endEvent791 },
427 { -1, NULL, 0, NULL, NULL },
428};
#define NULL
Definition common.h:17
signed int s32
Definition common.h:11
signed short s16
Definition common.h:9
unsigned short u16
Definition common.h:10
StageEffect * createStageEffect(s32 x, s32 y, s32 frame)
Creates a StageEffect at (x, y) with its sprites' frames from FRAME.
GameFlags FLAGS_00
The flag bitset FLAGS_00 and the event functions.
Definition events.c:701
#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
void updateStage()
The names every stage defines, each its own (config/<version>/stages/<stage>.txt).
#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 SLOT_LAUNCH
sends the player flying (FIELDSTG_launchActor)
Definition field_map.h:267
#define SCRIPT_COMMAND(id, command, arg)
the same word for a script command's id: FIELDSTG_setEventPose creates its task if none runs and hand...
Definition field_map.h:161
#define SCRIPT_FOLLOW(snap, id)
FIELDSTG_followWithCamera.
Definition field_map.h:171
#define FIELD_MAP_FLOOR0
Some of FieldMap's maps (files): those of the floors the player walks on come first,...
Definition field_map.h:85
#define SLOT_CLIMB_DOWN
Definition field_map.h:257
#define SLOT_STOP_SLIDE
Definition field_map.h:266
#define SLOT_SLIDE
Definition field_map.h:265
#define SLOT_EVENT
starts the event arg
Definition field_map.h:262
#define SCRIPT_WALK(id, x, y, dir)
Actor.setGoal: walks to (x, y), then faces dir.
Definition field_map.h:162
#define SCRIPT_WAIT_BOX
until box 0 closes
Definition field_map.h:167
#define SLOT_EXIT
The kinds of StageSlot (type).
Definition field_map.h:255
#define FIELD_MAP_AREAS
a cell's value: its battle area (FieldBattles), or 0
Definition field_map.h:87
#define SCRIPT_POSE(id, set, dir)
Actor.setPose: its animation set, facing dir.
Definition field_map.h:158
#define FIELD_MAP_TRIGGERS
a cell's value: a direction (3 bits) and a StageSlot (5)
Definition field_map.h:88
#define SCRIPT_WAIT(frames)
Definition field_map.h:166
#define FIELD_TASK_COMMANDS
script command 813 (FIELDSTG_startCommandTask): the field commands
Definition field_map.h:33
#define 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 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 MUSIC_BATTLE
BATL0000: the maps' random battles (AreaBattle, nearly all of them)
Definition sound.h:76
#define MUSIC_DUNGEON
BGM_0023: the Ice, Fire and Dark Dungeons.
Definition sound.h:99
#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
#define MUSIC_BOSS_1
BOSS_001: the Digimon Arena's, the cities', the dungeons' and the A.o.A's boss battles.
Definition sound.h:109
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_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_FIRE_KNIGHT_BATTLE_SEEN
wstag735 event 791: Fire Knight, bored, challenges the player; set at its end (gives the Yin Yang Hat...
Definition story.h:1345
#define FLAG_ICE_WITCH_WIN_SEEN
wstag735 event 790: Ice Witch admits defeat and lets the player go on; set at its end,...
Definition story.h:1324
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 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
s32(* checkCondition)(u16 code, u16 value)
Definition game_state.h:53
A sprite effect a stage creates at (x, y) with the given frame, by kind.
Definition stage.h:290
What the player can trigger on a map (FIELDSTG_updateTriggers): a record of the table at FieldState....
Definition field_map.h:276
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
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 wstag735.c:305
AreaBattle area2Battle7
Definition wstag735.c:213
FieldActorEntry actor0
Definition wstag735.c:325
void(* stageFuncs[])(void)
The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a t...
Definition wstag735.c:421
FieldActorEntry actor6
Definition wstag735.c:331
u16 actor11Conditions[]
Definition wstag735.c:315
FieldTalk actor2Talks[]
Definition wstag735.c:259
AreaBattle area2Battle6
Definition wstag735.c:212
u16 actor2Talk1Conditions[]
Definition wstag735.c:250
u16 actor10Conditions[]
Definition wstag735.c:314
AnimFrame effectClutFrames[]
Definition wstag735.c:168
void endEvent791(void)
After event 791, with Ice Witch: gives the player the Yin Yang Hat and keeps it from playing again.
Definition wstag735.c:55
FieldTalk actor5Talks[]
Definition wstag735.c:272
AreaBattle area1Battle6
Definition wstag735.c:199
s16 script791[]
Definition wstag735.c:124
FieldActorEntry actor5
Definition wstag735.c:330
AreaBattle area0Battle7
Definition wstag735.c:187
FieldActorEntry actor2
Definition wstag735.c:327
AreaBattle area3Battle4
Definition wstag735.c:223
AreaBattle area3Battle3
Definition wstag735.c:222
AreaBattle area0Battle1
Definition wstag735.c:181
AreaBattle area2Battle0
Definition wstag735.c:206
u16 actor9Conditions[]
Definition wstag735.c:313
FieldActorEntry * stageActors[]
Definition wstag735.c:338
AreaBattle area1Battle2
Definition wstag735.c:195
AreaBattle area3Battle0
Definition wstag735.c:219
AreaBattle area0Battle6
Definition wstag735.c:186
FieldTalk actor1Talks[]
Definition wstag735.c:255
AreaBattle area3Battle2
Definition wstag735.c:221
void endEvent790(void)
After event 790, with Ice Witch: starts the stage's event battle 0 and keeps it from playing again.
Definition wstag735.c:46
FieldTalk actor0Talks[]
Definition wstag735.c:251
AreaBattle area3Battle1
Definition wstag735.c:220
AreaBattle area0Battle3
Definition wstag735.c:183
FieldActorEntry actor10
Definition wstag735.c:335
u16 actor2Talk0Actions[]
Definition wstag735.c:249
FieldTalk actor4Talks[]
Definition wstag735.c:268
u16 actor4Conditions[]
Definition wstag735.c:308
FieldActorEntry actor4
Definition wstag735.c:329
u16 actor3Conditions[]
Definition wstag735.c:307
AreaBattle area3Battle6
Definition wstag735.c:225
FieldTalk actor11Talks[]
Definition wstag735.c:296
FieldActorEntry actor8
Definition wstag735.c:333
ActorImage stageImages[]
Definition wstag735.c:235
FieldTalk actor6Talks[]
Definition wstag735.c:276
void setupStage(void)
Sets the stage up: its map, actors, battles and events, playing BGM_0023.
Definition wstag735.c:70
AnimFrame effectFrames[]
Definition wstag735.c:172
AreaBattle area2Battle4
Definition wstag735.c:210
StageEffectSpot updateStageSpots[]
Defined below, after the code that uses them.
Definition wstag735.c:156
StageTile stageObjects[]
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition wstag735.c:354
FieldActorEntry actor9
Definition wstag735.c:334
u16 actor8Conditions[]
Definition wstag735.c:312
u16 actor5Conditions[]
Definition wstag735.c:309
FieldTalk actor10Talks[]
Definition wstag735.c:292
FieldTalk actor3Talks[]
Definition wstag735.c:264
FieldTalk actor9Talks[]
Definition wstag735.c:288
BattleList area3Battles
Definition wstag735.c:227
AreaBattle area3Battle5
Definition wstag735.c:224
AreaBattle area0Battle5
Definition wstag735.c:185
BattleList area1Battles
Definition wstag735.c:201
BattleList area2Battles
Definition wstag735.c:214
u16 actor2Talk0Conditions[]
Definition wstag735.c:248
FieldActorEntry actor12
Definition wstag735.c:337
AreaBattle area1Battle4
Definition wstag735.c:197
u16 actor6Conditions[]
Definition wstag735.c:310
AreaBattle area2Battle2
Definition wstag735.c:208
AreaBattle area1Battle5
Definition wstag735.c:198
s16 script790[]
Definition wstag735.c:91
FieldActorEntry actor7
Definition wstag735.c:332
StageSlot stageSlots[]
Definition wstag735.c:405
AreaBattle area2Battle1
Definition wstag735.c:207
AreaBattle area1Battle3
Definition wstag735.c:196
AreaBattle area1Battle0
Definition wstag735.c:193
FieldActorEntry actor11
Definition wstag735.c:336
FieldActorEntry actor1
Definition wstag735.c:326
AreaBattle area0Battle0
Definition wstag735.c:180
AreaBattle area0Battle2
Definition wstag735.c:182
#define STAGE_FILE
Definition wstag735.c:67
AreaBattle area2Battle5
Definition wstag735.c:211
AreaBattle area1Battle1
Definition wstag735.c:194
u16 actor7Conditions[]
Definition wstag735.c:311
AreaBattle area2Battle3
Definition wstag735.c:209
u16 actor2Conditions[]
Definition wstag735.c:306
FieldTalk actor7Talks[]
Definition wstag735.c:280
AreaBattle area0Battle4
Definition wstag735.c:184
#define STAGE_TEXT
Definition wstag735.c:65
FieldTalk actor8Talks[]
Definition wstag735.c:284
FieldTalk actor12Talks[]
Definition wstag735.c:300
AreaBattle area3Battle7
Definition wstag735.c:226
BattleList area0Battles
Definition wstag735.c:188
AreaBattle area1Battle7
Definition wstag735.c:200
FieldActorEntry actor3
Definition wstag735.c:328
FieldBattles stageBattles[]
Definition wstag735.c:232
FieldEvent stageEvents[]
Definition wstag735.c:424
u16 actor12Conditions[]
Definition wstag735.c:320
u16 actor0Conditions[]
Definition wstag735.c:304