|
Digimon World 3 decomp
The European version, SLES_039.36
|
WSTAG615: Sewers, West Sector. More...
Go to the source code of this file.
Macros | |
| #define | STAGE_CHILDREN_SIZE 4 |
| #define | STAGE_TEXT TEXT_FILE(TEXT_TALKS_06) |
| #define | EVENT_TEXT_FILE (TEXT_EVENTS_600 - 1) |
| #define | STAGE_FILE 0x55D |
Functions | |
| void | updateStage (StageTask *task, void **children) |
| Creates the event object of story progress 0x12. | |
| void | endEvent530 (void) |
| After event 530, with WaruMonzaemon and Lisa: starts the stage's event battle 0 and keeps it from playing again. | |
| void | endEvent531 (void) |
| After event 531, with Lisa, Numemon and Lucky Mouse: moves the story on to STORY_LUCKY_MOUSE. | |
| void | setupStage (void) |
| Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0018; slot list 0 before STORY_STAFF_PASS, 1 from then on. | |
Variables | |
| StageSlot | stageSlots0 [] |
| Defined below, after the code that uses them. | |
| StageSlot | stageSlots1 [] |
| const CVECTOR | stageColor = { 0x80, 0x80, 0x80, 0x00 } |
| the color the setup copies to FIELDSTG_state.spriteColor | |
| s16 | script530 [] |
| s16 | script531 [] |
| AreaBattle | area0Battle0 = { 81, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle1 = { 81, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle2 = { 81, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle3 = { 81, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle4 = { 82, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle5 = { 82, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle6 = { 82, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle7 = { 82, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| BattleList | area0Battles |
| AreaBattle | area1Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| BattleList | area1Battles |
| AreaBattle | area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| BattleList | area2Battles |
| AreaBattle | area3Battle0 = { 8, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle1 = { 312, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| BattleList | area3Battles |
| FieldBattles | stageBattles [] |
| ActorImage | stageImages [] |
| FieldTalk | actor4Talks [] |
| FieldTalk | actor5Talks [] |
| FieldTalk | actor6Talks [] |
| FieldTalk | actor7Talks [] |
| FieldTalk | actor8Talks [] |
| FieldTalk | actor9Talks [] |
| FieldTalk | actor10Talks [] |
| u16 | actor0Conditions [] = { (0x6000 | ( STORY_LISA_SAVED )) , 1, (( 0x40 ) << 8 | ( 0x39 )) , 1, 0xFFFF } |
| u16 | actor1Conditions [] = { (0x6000 | ( STORY_LISA_SAVED )) , 1, 0xFFFF } |
| u16 | actor2Conditions [] = { (0x6000 | ( STORY_LISA_SAVED )) , 1, 0xFFFF } |
| u16 | actor3Conditions [] = { (0x6000 | ( STORY_LISA_SAVED )) , 1, 0xFFFF } |
| u16 | actor4Conditions [] = { (0x7000 | ( 0x17 )) , 1, 0xFFFF } |
| u16 | actor5Conditions [] = { (0x7000 | ( 0x18 )) , 1, 0xFFFF } |
| u16 | actor6Conditions [] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF } |
| u16 | actor7Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF } |
| u16 | actor8Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF } |
| u16 | actor9Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF } |
| u16 | actor10Conditions [] = { (0x6000 | ( STORY_LISA_SAVED )) , 1, 0xFFFF } |
| u16 | actor11Conditions [] = { (0x6000 | ( STORY_LISA_SAVED )) , 1, 0xFFFF } |
| FieldActorEntry | actor0 = { actor0Conditions, ((void *)0) , 1, 4, 0, 0, 1 } |
| FieldActorEntry | actor1 = { actor1Conditions, ((void *)0) , 0x65, 5, 640, 570, 5 } |
| FieldActorEntry | actor2 = { actor2Conditions, ((void *)0) , 0x68, 6, 0, 0, 1 } |
| FieldActorEntry | actor3 = { actor3Conditions, ((void *)0) , 0x69, 7, 0, 0, 1 } |
| FieldActorEntry | actor4 = { actor4Conditions, actor4Talks, 0x97, 8, 624, 544, 7 } |
| FieldActorEntry | actor5 = { actor5Conditions, actor5Talks, 0x97, 8, 624, 544, 7 } |
| FieldActorEntry | actor6 = { actor6Conditions, actor6Talks, 0x97, 8, 624, 544, 7 } |
| FieldActorEntry | actor7 = { actor7Conditions, actor7Talks, 0x97, 8, 624, 544, 7 } |
| FieldActorEntry | actor8 = { actor8Conditions, actor8Talks, 0x97, 8, 624, 544, 7 } |
| FieldActorEntry | actor9 = { actor9Conditions, actor9Talks, 0x97, 8, 624, 544, 7 } |
| FieldActorEntry | actor10 = { actor10Conditions, actor10Talks, 0x97, 8, 668, 554, 1 } |
| FieldActorEntry | actor11 = { actor11Conditions, ((void *)0) , 0x11F, 9, 0, 0, 1 } |
| FieldActorEntry * | stageActors [] |
| StageTile | stageObjects [] |
| The tables and color setupStage gives FIELDSTG_state (FieldState) | |
| void(* | stageFuncs [])(void) |
| The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a tween, which define STAGE_TWEEN before they include this file, and in the others an array of just setupStage. | |
| FieldEvent | stageEvents [] |
WSTAG615: Sewers, West Sector.
Definition in file wstag615.c.
| #define STAGE_CHILDREN_SIZE 4 |
Definition at line 25 of file wstag615.c.
| #define STAGE_TEXT TEXT_FILE(TEXT_TALKS_06) |
Definition at line 51 of file wstag615.c.
| #define EVENT_TEXT_FILE (TEXT_EVENTS_600 - 1) |
Definition at line 52 of file wstag615.c.
| #define STAGE_FILE 0x55D |
Definition at line 53 of file wstag615.c.
| void updateStage | ( | StageTask * | task, |
| void ** | children | ||
| ) |
Creates the event object of story progress 0x12.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 9 of file wstag615.c.
| void endEvent530 | ( | void | ) |
After event 530, with WaruMonzaemon and Lisa: starts the stage's event battle 0 and keeps it from playing again.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< action: FIELDSTG_battleFuncs.startEventBattle
Definition at line 32 of file wstag615.c.
| void endEvent531 | ( | void | ) |
After event 531, with Lisa, Numemon and Lucky Mouse: moves the story on to STORY_LUCKY_MOUSE.
Definition at line 38 of file wstag615.c.
| void setupStage | ( | void | ) |
Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0018; slot list 0 before STORY_STAFF_PASS, 1 from then on.
Sets the stage up: its map, actors, battles and events, playing KANRIBGM; BGM_0029 instead except at STORY_PRESIDENT_ARRESTED once flag 0x1A0A is set.
< ENV_0018: the West Sector's Sewers and Secret Stairs
< ENV_0018: the West Sector's Sewers and Secret Stairs
< a cell's value: a direction (3 bits) and a StageSlot (5)
< a cell's value: its battle area (FieldBattles), or 0
Definition at line 59 of file wstag615.c.
| StageSlot stageSlots0[] |
Defined below, after the code that uses them.
Definition at line 531 of file wstag615.c.
Referenced by setupStage().
| StageSlot stageSlots1[] |
Definition at line 538 of file wstag615.c.
Referenced by setupStage().
| const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0x00 } |
the color the setup copies to FIELDSTG_state.spriteColor
the color the setup copies to FIELDSTG_state.spriteColor
It starts the stage, before its jump tables: in wstag924.c GCC would align them to 8 bytes after it, so it is a file of its own, linked first
Definition at line 45 of file wstag615.c.
Referenced by setupStage().
| s16 script530[] |
Definition at line 85 of file wstag615.c.
| s16 script531[] |
Definition at line 161 of file wstag615.c.
| AreaBattle area0Battle0 = { 81, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 257 of file wstag615.c.
| AreaBattle area0Battle1 = { 81, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 258 of file wstag615.c.
| AreaBattle area0Battle2 = { 81, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 259 of file wstag615.c.
| AreaBattle area0Battle3 = { 81, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 260 of file wstag615.c.
| AreaBattle area0Battle4 = { 82, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 261 of file wstag615.c.
| AreaBattle area0Battle5 = { 82, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 262 of file wstag615.c.
| AreaBattle area0Battle6 = { 82, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 263 of file wstag615.c.
| AreaBattle area0Battle7 = { 82, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 264 of file wstag615.c.
| BattleList area0Battles |
Definition at line 265 of file wstag615.c.
| AreaBattle area1Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 270 of file wstag615.c.
| AreaBattle area1Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 271 of file wstag615.c.
| AreaBattle area1Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 272 of file wstag615.c.
| AreaBattle area1Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 273 of file wstag615.c.
| AreaBattle area1Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 274 of file wstag615.c.
| AreaBattle area1Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 275 of file wstag615.c.
| AreaBattle area1Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 276 of file wstag615.c.
| AreaBattle area1Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 277 of file wstag615.c.
| BattleList area1Battles |
Definition at line 278 of file wstag615.c.
| AreaBattle area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 283 of file wstag615.c.
| AreaBattle area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 284 of file wstag615.c.
| AreaBattle area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 285 of file wstag615.c.
| AreaBattle area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 286 of file wstag615.c.
| AreaBattle area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 287 of file wstag615.c.
| AreaBattle area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 288 of file wstag615.c.
| AreaBattle area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 289 of file wstag615.c.
| AreaBattle area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 290 of file wstag615.c.
| BattleList area2Battles |
Definition at line 291 of file wstag615.c.
| AreaBattle area3Battle0 = { 8, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) } |
Definition at line 296 of file wstag615.c.
| AreaBattle area3Battle1 = { 312, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) } |
Definition at line 297 of file wstag615.c.
| AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 298 of file wstag615.c.
| AreaBattle area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 299 of file wstag615.c.
| AreaBattle area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 300 of file wstag615.c.
| AreaBattle area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 301 of file wstag615.c.
| AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 302 of file wstag615.c.
| AreaBattle area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 303 of file wstag615.c.
| BattleList area3Battles |
Definition at line 304 of file wstag615.c.
| FieldBattles stageBattles[] |
| ActorImage stageImages[] |
Definition at line 312 of file wstag615.c.
Referenced by setupStage().
| FieldTalk actor4Talks[] |
Definition at line 326 of file wstag615.c.
| FieldTalk actor5Talks[] |
Definition at line 330 of file wstag615.c.
| FieldTalk actor6Talks[] |
Definition at line 334 of file wstag615.c.
| FieldTalk actor7Talks[] |
Definition at line 338 of file wstag615.c.
| FieldTalk actor8Talks[] |
Definition at line 342 of file wstag615.c.
| FieldTalk actor9Talks[] |
Definition at line 346 of file wstag615.c.
| FieldTalk actor10Talks[] |
Definition at line 350 of file wstag615.c.
| u16 actor0Conditions[] = { (0x6000 | ( STORY_LISA_SAVED )) , 1, (( 0x40 ) << 8 | ( 0x39 )) , 1, 0xFFFF } |
Definition at line 354 of file wstag615.c.
| u16 actor1Conditions[] = { (0x6000 | ( STORY_LISA_SAVED )) , 1, 0xFFFF } |
Definition at line 355 of file wstag615.c.
| u16 actor2Conditions[] = { (0x6000 | ( STORY_LISA_SAVED )) , 1, 0xFFFF } |
Definition at line 356 of file wstag615.c.
| u16 actor3Conditions[] = { (0x6000 | ( STORY_LISA_SAVED )) , 1, 0xFFFF } |
Definition at line 357 of file wstag615.c.
| u16 actor4Conditions[] = { (0x7000 | ( 0x17 )) , 1, 0xFFFF } |
Definition at line 358 of file wstag615.c.
| u16 actor5Conditions[] = { (0x7000 | ( 0x18 )) , 1, 0xFFFF } |
Definition at line 359 of file wstag615.c.
| u16 actor6Conditions[] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF } |
Definition at line 360 of file wstag615.c.
| u16 actor7Conditions[] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF } |
Definition at line 361 of file wstag615.c.
| u16 actor8Conditions[] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF } |
Definition at line 362 of file wstag615.c.
| u16 actor9Conditions[] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF } |
Definition at line 363 of file wstag615.c.
| u16 actor10Conditions[] = { (0x6000 | ( STORY_LISA_SAVED )) , 1, 0xFFFF } |
Definition at line 364 of file wstag615.c.
| u16 actor11Conditions[] = { (0x6000 | ( STORY_LISA_SAVED )) , 1, 0xFFFF } |
Definition at line 365 of file wstag615.c.
| FieldActorEntry actor0 = { actor0Conditions, ((void *)0) , 1, 4, 0, 0, 1 } |
Definition at line 366 of file wstag615.c.
| FieldActorEntry actor1 = { actor1Conditions, ((void *)0) , 0x65, 5, 640, 570, 5 } |
Definition at line 367 of file wstag615.c.
| FieldActorEntry actor2 = { actor2Conditions, ((void *)0) , 0x68, 6, 0, 0, 1 } |
Definition at line 368 of file wstag615.c.
| FieldActorEntry actor3 = { actor3Conditions, ((void *)0) , 0x69, 7, 0, 0, 1 } |
Definition at line 369 of file wstag615.c.
| FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x97, 8, 624, 544, 7 } |
Definition at line 370 of file wstag615.c.
| FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x97, 8, 624, 544, 7 } |
Definition at line 371 of file wstag615.c.
| FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x97, 8, 624, 544, 7 } |
Definition at line 372 of file wstag615.c.
| FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x97, 8, 624, 544, 7 } |
Definition at line 373 of file wstag615.c.
| FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x97, 8, 624, 544, 7 } |
Definition at line 374 of file wstag615.c.
| FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x97, 8, 624, 544, 7 } |
Definition at line 375 of file wstag615.c.
| FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x97, 8, 668, 554, 1 } |
Definition at line 376 of file wstag615.c.
| FieldActorEntry actor11 = { actor11Conditions, ((void *)0) , 0x11F, 9, 0, 0, 1 } |
Definition at line 377 of file wstag615.c.
| FieldActorEntry* stageActors[] |
| StageTile stageObjects[] |
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition at line 393 of file wstag615.c.
Referenced by setupStage().
| void(* stageFuncs[])(void) | ( | void | ) |
The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a tween, which define STAGE_TWEEN before they include this file, and in the others an array of just setupStage.
Definition at line 546 of file wstag615.c.
| FieldEvent stageEvents[] |
Definition at line 549 of file wstag615.c.
Referenced by setupStage().