|
Digimon World 3 decomp
The European version, SLES_039.36
|
WSTAG550: South Badland, 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 0x46E |
Functions | |
| void | updateStage (StageTask *task, void **children) |
| Back from the battle after event 1269, starts event 1270, with MagnaAngemon, unless it has played. | |
| void | endEvent1269 (void) |
| After event 1269, with MagnaAngemon: lets event 1270 start and starts the stage's event battle 0. | |
| void | endEvent1270 (void) |
| After event 1270, with MagnaAngemon: gives the player the Patamon DDNA and keeps it from playing again. | |
| void | setupStage (void) |
| Sets the stage up: its map, actors, battles and events, playing BGM_0018; BGM_0029 instead at story steps 0x27 to 0x28. | |
Variables | |
| const CVECTOR | stageColor = { 0x54, 0x67, 0x96, 0x00 } |
| the color the setup copies to FIELDSTG_state.spriteColor | |
| s16 | script1225 [] |
| s16 | script1269 [] |
| s16 | script1270 [] |
| AreaBattle | area0Battle0 = { 69, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle1 = { 69, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle2 = { 69, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle3 = { 69, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle4 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle5 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle6 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle7 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| BattleList | area0Battles |
| AreaBattle | area1Battle0 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle1 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle2 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle3 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle4 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle5 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle6 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle7 = { 0, 3, (0x60000000 | ( 2 ) << 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 = { 266, 3, (0x60000000 | ( 0x22 ) << 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 = { 330, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle5 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle7 = { 61, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| BattleList | area3Battles |
| FieldBattles | stageBattles [] |
| ActorImage | stageImages [] |
| u16 | actor0Talk0Actions [] = { (0x9000 | ( 0x11 )) , 1, 0xFFFF } |
| u16 | actor2Talk0Conditions [] = { (( 0x1C ) << 8 | ( 0x14 )) , 0, 0xFFFF } |
| u16 | actor2Talk0Actions [] = { (0x9000 | ( 0x27 )) , 1, (( 0x1C ) << 8 | ( 0x14 )) , 1, 0xFFFF } |
| u16 | actor2Talk1Conditions [] = { (( 0x1C ) << 8 | ( 0x14 )) , 1, 0xFFFF } |
| FieldTalk | actor0Talks [] |
| FieldTalk | actor1Talks [] |
| FieldTalk | actor2Talks [] |
| u16 | actor0Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF } |
| u16 | actor1Conditions [] = { (0x7000 | ( 0x16 )) , 1, 0xFFFF } |
| u16 | actor2Conditions [] = { (( 6 ) << 8 | ( 2 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x27 )), 0, 0xFFFF } |
| FieldActorEntry | actor0 = { actor0Conditions, actor0Talks, 0x15, 4, 369, 209, 7 } |
| FieldActorEntry | actor1 = { actor1Conditions, actor1Talks, 0x67, 5, 352, 720, 1 } |
| FieldActorEntry | actor2 = { actor2Conditions, actor2Talks, 0x7C, 6, 1153, 858, 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 [] |
WSTAG550: South Badland, West Sector.
Definition in file wstag550.c.
| #define STAGE_CHILDREN_SIZE 4 |
Definition at line 28 of file wstag550.c.
| #define STAGE_TEXT TEXT_FILE(TEXT_TALKS_06) |
Definition at line 55 of file wstag550.c.
| #define EVENT_TEXT_FILE (TEXT_EVENTS_500 - 1) |
Definition at line 56 of file wstag550.c.
| #define STAGE_FILE 0x46E |
Definition at line 57 of file wstag550.c.
| void updateStage | ( | StageTask * | task, |
| void ** | children | ||
| ) |
Back from the battle after event 1269, starts event 1270, with MagnaAngemon, unless it has played.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 12 of file wstag550.c.
| void endEvent1269 | ( | void | ) |
After event 1269, with MagnaAngemon: lets event 1270 start and starts the stage's event battle 0.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< action: FIELDSTG_battleFuncs.startEventBattle
Definition at line 35 of file wstag550.c.
| void endEvent1270 | ( | void | ) |
After event 1270, with MagnaAngemon: gives the player the Patamon DDNA and keeps it from playing again.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 44 of file wstag550.c.
| void setupStage | ( | void | ) |
Sets the stage up: its map, actors, battles and events, playing BGM_0018; BGM_0029 instead at story steps 0x27 to 0x28.
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.
< BGM_0018: the Badlands
< BGM_0018: the Badlands
< a cell's value: a direction (3 bits) and a StageSlot (5)
< a cell's value: its battle area (FieldBattles), or 0
< BGM_0029: the cities and their streets instead of their music while the story is at a crisis (Knightmon reprogrammed, the A.o.A's headquarters, the Amaterasu server's Oinkmon)
< BGM_0029: the cities and their streets instead of their music while the story is at a crisis (Knightmon reprogrammed, the A.o.A's headquarters, the Amaterasu server's Oinkmon)
Definition at line 63 of file wstag550.c.
| const CVECTOR stageColor = { 0x54, 0x67, 0x96, 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 49 of file wstag550.c.
Referenced by setupStage().
| s16 script1225[] |
Definition at line 89 of file wstag550.c.
| s16 script1269[] |
Definition at line 115 of file wstag550.c.
| s16 script1270[] |
Definition at line 141 of file wstag550.c.
| AreaBattle area0Battle0 = { 69, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 164 of file wstag550.c.
| AreaBattle area0Battle1 = { 69, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 165 of file wstag550.c.
| AreaBattle area0Battle2 = { 69, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 166 of file wstag550.c.
| AreaBattle area0Battle3 = { 69, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 167 of file wstag550.c.
| AreaBattle area0Battle4 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 168 of file wstag550.c.
| AreaBattle area0Battle5 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 169 of file wstag550.c.
| AreaBattle area0Battle6 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 170 of file wstag550.c.
| AreaBattle area0Battle7 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 171 of file wstag550.c.
| BattleList area0Battles |
Definition at line 172 of file wstag550.c.
| AreaBattle area1Battle0 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 177 of file wstag550.c.
| AreaBattle area1Battle1 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 178 of file wstag550.c.
| AreaBattle area1Battle2 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 179 of file wstag550.c.
| AreaBattle area1Battle3 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 180 of file wstag550.c.
| AreaBattle area1Battle4 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 181 of file wstag550.c.
| AreaBattle area1Battle5 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 182 of file wstag550.c.
| AreaBattle area1Battle6 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 183 of file wstag550.c.
| AreaBattle area1Battle7 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 184 of file wstag550.c.
| BattleList area1Battles |
Definition at line 185 of file wstag550.c.
| AreaBattle area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 190 of file wstag550.c.
| AreaBattle area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 191 of file wstag550.c.
| AreaBattle area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 192 of file wstag550.c.
| AreaBattle area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 193 of file wstag550.c.
| AreaBattle area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 194 of file wstag550.c.
| AreaBattle area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 195 of file wstag550.c.
| AreaBattle area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 196 of file wstag550.c.
| AreaBattle area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 197 of file wstag550.c.
| BattleList area2Battles |
Definition at line 198 of file wstag550.c.
| AreaBattle area3Battle0 = { 266, 3, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) } |
Definition at line 203 of file wstag550.c.
| AreaBattle area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 204 of file wstag550.c.
| AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 205 of file wstag550.c.
| AreaBattle area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 206 of file wstag550.c.
| AreaBattle area3Battle4 = { 330, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 207 of file wstag550.c.
| AreaBattle area3Battle5 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 208 of file wstag550.c.
| AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 209 of file wstag550.c.
| AreaBattle area3Battle7 = { 61, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 210 of file wstag550.c.
| BattleList area3Battles |
Definition at line 211 of file wstag550.c.
| FieldBattles stageBattles[] |
| ActorImage stageImages[] |
Definition at line 219 of file wstag550.c.
Referenced by setupStage().
| u16 actor0Talk0Actions[] = { (0x9000 | ( 0x11 )) , 1, 0xFFFF } |
Definition at line 230 of file wstag550.c.
| u16 actor2Talk0Conditions[] = { (( 0x1C ) << 8 | ( 0x14 )) , 0, 0xFFFF } |
Definition at line 231 of file wstag550.c.
| u16 actor2Talk0Actions[] = { (0x9000 | ( 0x27 )) , 1, (( 0x1C ) << 8 | ( 0x14 )) , 1, 0xFFFF } |
Definition at line 232 of file wstag550.c.
| u16 actor2Talk1Conditions[] = { (( 0x1C ) << 8 | ( 0x14 )) , 1, 0xFFFF } |
Definition at line 233 of file wstag550.c.
| FieldTalk actor0Talks[] |
Definition at line 234 of file wstag550.c.
| FieldTalk actor1Talks[] |
Definition at line 238 of file wstag550.c.
| FieldTalk actor2Talks[] |
Definition at line 242 of file wstag550.c.
| u16 actor0Conditions[] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF } |
Definition at line 247 of file wstag550.c.
| u16 actor1Conditions[] = { (0x7000 | ( 0x16 )) , 1, 0xFFFF } |
Definition at line 248 of file wstag550.c.
| u16 actor2Conditions[] = { (( 6 ) << 8 | ( 2 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x27 )), 0, 0xFFFF } |
Definition at line 249 of file wstag550.c.
| FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x15, 4, 369, 209, 7 } |
Definition at line 250 of file wstag550.c.
| FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x67, 5, 352, 720, 1 } |
Definition at line 251 of file wstag550.c.
| FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x7C, 6, 1153, 858, 7 } |
Definition at line 252 of file wstag550.c.
| FieldActorEntry* stageActors[] |
Definition at line 253 of file wstag550.c.
Referenced by setupStage().
| StageTile stageObjects[] |
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition at line 259 of file wstag550.c.
Referenced by setupStage().
| StageSlot stageSlots[] |
Definition at line 386 of file wstag550.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 405 of file wstag550.c.
| FieldEvent stageEvents[] |
Definition at line 408 of file wstag550.c.
Referenced by setupStage().