|
Digimon World 3 decomp
The European version, SLES_039.36
|
WSTAG580: Dum Dum Factory, 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_500 - 1) |
| #define | STAGE_FILE 0x780 |
Functions | |
| void | updateStage (StageTask *task, void **children) |
| Creates the event object of story progress 0x11 or 0x12, the first that applies. | |
| void | endEvent440 (void) |
| After event 440, with Numemon: sets flag 0x1C1F and keeps it from playing again. | |
| void | endEvent450 (void) |
| After event 450, with the player: lets event 460 of WSTAG585 start and keeps it from playing again. | |
| void | endEvent470 (void) |
| After event 470, with Numemon: sets flag 0x1C22 (which decides whether actor 0 in WSTAG600 appears) and keeps it from playing again. | |
| void | endEvent480 (void) |
| After event 480, with the player: sets flag 0x1C23 (which decides whether actor 0 in WSTAG590 appears) and keeps it from playing again. | |
| void | endEvent490 (void) |
| After event 490, with the player: sets flag 0x1C24 (which decides whether actor 0 in WSTAG595 appears) and keeps it from playing again. | |
| void | endEvent500 (void) |
| After event 500, with the player: sets flag 0x1C25 (which decides what actor 8 in WSTAG605 says) and keeps it from playing again. | |
| void | endEvent520 (void) |
| After event 520, with the player: keeps it from playing again. | |
| void | setupStage (void) |
| Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0017. | |
Variables | |
| s16 | script440 [] |
| s16 | script450 [] |
| s16 | script470 [] |
| s16 | script480 [] |
| s16 | script490 [] |
| s16 | script500 [] |
| s16 | script520 [] |
| AreaBattle | area0Battle0 = { 80, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle1 = { 80, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle2 = { 79, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle3 = { 79, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle4 = { 78, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle5 = { 78, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle6 = { 77, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle7 = { 77, 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 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 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 [] |
| u16 | actor0Conditions [] |
| u16 | actor1Conditions [] |
| u16 | actor2Conditions [] |
| u16 | actor3Conditions [] |
| u16 | actor4Conditions [] |
| u16 | actor5Conditions [] |
| u16 | actor6Conditions [] = { (0x6000 | ( STORY_BYAKKO_BADGE )) , 1, 0xFFFF } |
| u16 | actor7Conditions [] |
| FieldActorEntry | actor0 = { actor0Conditions, ((void *)0) , 0x69, 4, 825, 876, 7 } |
| FieldActorEntry | actor1 = { actor1Conditions, ((void *)0) , 0x69, 4, 830, 216, 1 } |
| FieldActorEntry | actor2 = { actor2Conditions, ((void *)0) , 0x69, 4, 1241, 708, 7 } |
| FieldActorEntry | actor3 = { actor3Conditions, ((void *)0) , 0x69, 4, 972, 449, 5 } |
| FieldActorEntry | actor4 = { actor4Conditions, ((void *)0) , 0x69, 4, 1150, 329, 3 } |
| FieldActorEntry | actor5 = { actor5Conditions, ((void *)0) , 0x69, 4, 169, 539, 1 } |
| FieldActorEntry | actor6 = { actor6Conditions, ((void *)0) , 0x69, 4, 0, 0, 1 } |
| FieldActorEntry | actor7 = { actor7Conditions, ((void *)0) , 0x11D, 5, 455, 955, 7 } |
| FieldActorEntry * | stageActors [] |
| StageTile | stageObjects [] |
| The tables and color setupStage gives FIELDSTG_state (FieldState) | |
| StageSlot | stageSlots [] |
| 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 [] |
WSTAG580: Dum Dum Factory, West Sector.
Definition in file wstag580.c.
| #define STAGE_CHILDREN_SIZE 4 |
Definition at line 32 of file wstag580.c.
| #define STAGE_TEXT TEXT_FILE(TEXT_TALKS_06) |
Definition at line 96 of file wstag580.c.
| #define EVENT_TEXT_FILE (TEXT_EVENTS_500 - 1) |
Definition at line 97 of file wstag580.c.
| #define STAGE_FILE 0x780 |
Definition at line 98 of file wstag580.c.
| void updateStage | ( | StageTask * | task, |
| void ** | children | ||
| ) |
Creates the event object of story progress 0x11 or 0x12, the first that applies.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 9 of file wstag580.c.
| void endEvent440 | ( | void | ) |
After event 440, with Numemon: sets flag 0x1C1F and keeps it from playing again.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x1C 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 36 of file wstag580.c.
| void endEvent450 | ( | void | ) |
After event 450, with the player: lets event 460 of WSTAG585 start and keeps it from playing again.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x1C 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 45 of file wstag580.c.
| void endEvent470 | ( | void | ) |
After event 470, with Numemon: sets flag 0x1C22 (which decides whether actor 0 in WSTAG600 appears) and keeps it from playing again.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x1C 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 54 of file wstag580.c.
| void endEvent480 | ( | void | ) |
After event 480, with the player: sets flag 0x1C23 (which decides whether actor 0 in WSTAG590 appears) and keeps it from playing again.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x1C 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 63 of file wstag580.c.
| void endEvent490 | ( | void | ) |
After event 490, with the player: sets flag 0x1C24 (which decides whether actor 0 in WSTAG595 appears) and keeps it from playing again.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x1C 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 72 of file wstag580.c.
| void endEvent500 | ( | void | ) |
After event 500, with the player: sets flag 0x1C25 (which decides what actor 8 in WSTAG605 says) and keeps it from playing again.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x1C 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 81 of file wstag580.c.
| void endEvent520 | ( | void | ) |
After event 520, with the player: keeps it from playing again.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 87 of file wstag580.c.
| void setupStage | ( | void | ) |
Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0017.
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_0017: Bullet Valley, the Dum Dum Factory, its Duct Rooms and Operation Room
< ENV_0017: Bullet Valley, the Dum Dum Factory, its Duct Rooms and Operation Room
< 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 101 of file wstag580.c.
| s16 script440[] |
Definition at line 122 of file wstag580.c.
| s16 script450[] |
Definition at line 174 of file wstag580.c.
| s16 script470[] |
Definition at line 210 of file wstag580.c.
| s16 script480[] |
Definition at line 261 of file wstag580.c.
| s16 script490[] |
Definition at line 295 of file wstag580.c.
| s16 script500[] |
Definition at line 329 of file wstag580.c.
| s16 script520[] |
Definition at line 365 of file wstag580.c.
| AreaBattle area0Battle0 = { 80, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 410 of file wstag580.c.
| AreaBattle area0Battle1 = { 80, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 411 of file wstag580.c.
| AreaBattle area0Battle2 = { 79, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 412 of file wstag580.c.
| AreaBattle area0Battle3 = { 79, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 413 of file wstag580.c.
| AreaBattle area0Battle4 = { 78, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 414 of file wstag580.c.
| AreaBattle area0Battle5 = { 78, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 415 of file wstag580.c.
| AreaBattle area0Battle6 = { 77, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 416 of file wstag580.c.
| AreaBattle area0Battle7 = { 77, 12, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 417 of file wstag580.c.
| BattleList area0Battles |
Definition at line 418 of file wstag580.c.
| AreaBattle area1Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 423 of file wstag580.c.
| AreaBattle area1Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 424 of file wstag580.c.
| AreaBattle area1Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 425 of file wstag580.c.
| AreaBattle area1Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 426 of file wstag580.c.
| AreaBattle area1Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 427 of file wstag580.c.
| AreaBattle area1Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 428 of file wstag580.c.
| AreaBattle area1Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 429 of file wstag580.c.
| AreaBattle area1Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 430 of file wstag580.c.
| BattleList area1Battles |
Definition at line 431 of file wstag580.c.
| AreaBattle area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 436 of file wstag580.c.
| AreaBattle area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 437 of file wstag580.c.
| AreaBattle area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 438 of file wstag580.c.
| AreaBattle area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 439 of file wstag580.c.
| AreaBattle area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 440 of file wstag580.c.
| AreaBattle area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 441 of file wstag580.c.
| AreaBattle area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 442 of file wstag580.c.
| AreaBattle area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 443 of file wstag580.c.
| BattleList area2Battles |
Definition at line 444 of file wstag580.c.
| AreaBattle area3Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 449 of file wstag580.c.
| AreaBattle area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 450 of file wstag580.c.
| AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 451 of file wstag580.c.
| AreaBattle area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 452 of file wstag580.c.
| AreaBattle area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 453 of file wstag580.c.
| AreaBattle area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 454 of file wstag580.c.
| AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 455 of file wstag580.c.
| AreaBattle area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 456 of file wstag580.c.
| BattleList area3Battles |
Definition at line 457 of file wstag580.c.
| FieldBattles stageBattles[] |
| ActorImage stageImages[] |
Definition at line 465 of file wstag580.c.
Referenced by setupStage().
| u16 actor0Conditions[] |
Definition at line 475 of file wstag580.c.
| u16 actor1Conditions[] |
Definition at line 480 of file wstag580.c.
| u16 actor2Conditions[] |
Definition at line 486 of file wstag580.c.
| u16 actor3Conditions[] |
Definition at line 492 of file wstag580.c.
| u16 actor4Conditions[] |
Definition at line 498 of file wstag580.c.
| u16 actor5Conditions[] |
Definition at line 504 of file wstag580.c.
| u16 actor6Conditions[] = { (0x6000 | ( STORY_BYAKKO_BADGE )) , 1, 0xFFFF } |
Definition at line 509 of file wstag580.c.
| u16 actor7Conditions[] |
Definition at line 510 of file wstag580.c.
| FieldActorEntry actor0 = { actor0Conditions, ((void *)0) , 0x69, 4, 825, 876, 7 } |
Definition at line 515 of file wstag580.c.
| FieldActorEntry actor1 = { actor1Conditions, ((void *)0) , 0x69, 4, 830, 216, 1 } |
Definition at line 516 of file wstag580.c.
| FieldActorEntry actor2 = { actor2Conditions, ((void *)0) , 0x69, 4, 1241, 708, 7 } |
Definition at line 517 of file wstag580.c.
| FieldActorEntry actor3 = { actor3Conditions, ((void *)0) , 0x69, 4, 972, 449, 5 } |
Definition at line 518 of file wstag580.c.
| FieldActorEntry actor4 = { actor4Conditions, ((void *)0) , 0x69, 4, 1150, 329, 3 } |
Definition at line 519 of file wstag580.c.
| FieldActorEntry actor5 = { actor5Conditions, ((void *)0) , 0x69, 4, 169, 539, 1 } |
Definition at line 520 of file wstag580.c.
| FieldActorEntry actor6 = { actor6Conditions, ((void *)0) , 0x69, 4, 0, 0, 1 } |
Definition at line 521 of file wstag580.c.
| FieldActorEntry actor7 = { actor7Conditions, ((void *)0) , 0x11D, 5, 455, 955, 7 } |
Definition at line 522 of file wstag580.c.
| FieldActorEntry* stageActors[] |
| StageTile stageObjects[] |
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition at line 534 of file wstag580.c.
Referenced by setupStage().
| StageSlot stageSlots[] |
Definition at line 589 of file wstag580.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 621 of file wstag580.c.
| FieldEvent stageEvents[] |
Definition at line 624 of file wstag580.c.
Referenced by setupStage().