|
Digimon World 3 decomp
The European version, SLES_039.36
|
WSTAG326: Control Room, Amaterasu City. More...
Go to the source code of this file.
Macros | |
| #define | STAGE_CHILDREN_SIZE 0x8 |
| #define | STAGE_TEXT TEXT_FILE(TEXT_TALKS_03) |
| #define | EVENT_TEXT_FILE (TEXT_EVENTS_300 - 1) |
| #define | STAGE_FILE 0x53A |
Functions | |
| void | updateCommand834 (StageTask *task) |
| Command 834 of the event scripts, which none of them uses: shows map objects 1 and 2 instead of 3 and 4 while running, and the other way round once done. | |
| void * | createCommand834 (s32 arg) |
| Command 834 of the event scripts: creates its task (updateCommand834) with the given id. | |
| void | handleCommand834 (StageTask *task, s32 id) |
| Command 834 of the event scripts: told 0x35A, swaps the map objects back (TASK_DONE) | |
| void | updateStage (StageTask *task, void **children) |
| Back from the battle after event 1281, starts event 1282, with BK WarGreymon, unless it has played. | |
| void | endEvent1281 (void) |
| After event 1281, with BK WarGreymon: lets event 1282 start and starts the stage's event battle 0. | |
| void | endEvent1282 (void) |
| After event 1282, with BK WarGreymon: gives the player the Platinum ID and keeps it from playing again. | |
| void | setupStage (void) |
| Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0003. | |
Variables | |
| s16 | script1281 [] |
| s16 | script1282 [] |
| AreaBattle | area0Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 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 = { 31, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle1 = { 321, 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 [] |
| u16 | actor0Talk0Conditions [] |
| u16 | actor0Talk0Actions [] = { (( 0xA ) << 8 | ( 0xD )) , 1, (0x9000 | ( 0x38 )) , 1, 0xFFFF } |
| u16 | actor0Talk1Conditions [] |
| u16 | actor0Talk2Conditions [] |
| u16 | actor0Talk2Actions [] = { (( 0xA ) << 8 | ( 0xD )) , 1, (0x9000 | ( 0x38 )) , 1, 0xFFFF } |
| u16 | actor0Talk3Conditions [] |
| u16 | actor1Talk0Conditions [] = { (( 0xA ) << 8 | ( 0xD )) , 0, 0xFFFF } |
| u16 | actor1Talk0Actions [] = { (( 0xA ) << 8 | ( 0xD )) , 1, (0x9000 | ( 0x38 )) , 1, 0xFFFF } |
| u16 | actor1Talk1Conditions [] = { (( 0xA ) << 8 | ( 0xD )) , 1, 0xFFFF } |
| u16 | actor2Talk0Conditions [] = { (( 0xA ) << 8 | ( 0xD )) , 0, 0xFFFF } |
| u16 | actor2Talk0Actions [] = { (( 0xA ) << 8 | ( 0xD )) , 1, (0x9000 | ( 0x38 )) , 1, 0xFFFF } |
| u16 | actor2Talk1Conditions [] = { (( 0xA ) << 8 | ( 0xD )) , 1, 0xFFFF } |
| FieldTalk | actor0Talks [] |
| FieldTalk | actor1Talks [] |
| FieldTalk | actor2Talks [] |
| u16 | actor0Conditions [] = { (0x7000 | ( 0x1C )) , 1, 0xFFFF } |
| u16 | actor1Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF } |
| u16 | actor2Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF } |
| FieldActorEntry | actor0 = { actor0Conditions, actor0Talks, 0x105, 4, 425, 256, 1 } |
| FieldActorEntry | actor1 = { actor1Conditions, actor1Talks, 0x105, 4, 425, 256, 1 } |
| FieldActorEntry | actor2 = { actor2Conditions, actor2Talks, 0x105, 4, 425, 256, 1 } |
| 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 [] |
WSTAG326: Control Room, Amaterasu City.
On the Amaterasu server; its Asuka server twin is WSTAG325.
Definition in file wstag326.c.
| #define STAGE_CHILDREN_SIZE 0x8 |
Definition at line 95 of file wstag326.c.
| #define STAGE_TEXT TEXT_FILE(TEXT_TALKS_03) |
Definition at line 121 of file wstag326.c.
| #define EVENT_TEXT_FILE (TEXT_EVENTS_300 - 1) |
Definition at line 122 of file wstag326.c.
| #define STAGE_FILE 0x53A |
Definition at line 123 of file wstag326.c.
| void updateCommand834 | ( | StageTask * | task | ) |
Command 834 of the event scripts, which none of them uses: shows map objects 1 and 2 instead of 3 and 4 while running, and the other way round once done.
Definition at line 14 of file wstag326.c.
Referenced by createCommand834().
| void * createCommand834 | ( | s32 | arg | ) |
Command 834 of the event scripts: creates its task (updateCommand834) with the given id.
Definition at line 64 of file wstag326.c.
Command 834 of the event scripts: told 0x35A, swaps the map objects back (TASK_DONE)
Definition at line 69 of file wstag326.c.
| void updateStage | ( | StageTask * | task, |
| void ** | children | ||
| ) |
Back from the battle after event 1281, starts event 1282, with BK WarGreymon, unless it has played.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 79 of file wstag326.c.
| void endEvent1281 | ( | void | ) |
After event 1281, with BK WarGreymon: lets event 1282 start and starts the stage's event battle 0.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< action: FIELDSTG_battleFuncs.startEventBattle
Definition at line 102 of file wstag326.c.
| void endEvent1282 | ( | void | ) |
After event 1282, with BK WarGreymon: gives the player the Platinum ID and keeps it from playing again.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 111 of file wstag326.c.
| void setupStage | ( | void | ) |
Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0003.
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_0003: the cities' Control Room
< ENV_0003: the cities' Control Room
< a cell's value: a direction (3 bits) and a StageSlot (5)
Definition at line 126 of file wstag326.c.
| s16 script1281[] |
Definition at line 146 of file wstag326.c.
| s16 script1282[] |
Definition at line 178 of file wstag326.c.
| AreaBattle area0Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 207 of file wstag326.c.
| AreaBattle area0Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 208 of file wstag326.c.
| AreaBattle area0Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 209 of file wstag326.c.
| AreaBattle area0Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 210 of file wstag326.c.
| AreaBattle area0Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 211 of file wstag326.c.
| AreaBattle area0Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 212 of file wstag326.c.
| AreaBattle area0Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 213 of file wstag326.c.
| AreaBattle area0Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 214 of file wstag326.c.
| BattleList area0Battles |
Definition at line 215 of file wstag326.c.
| AreaBattle area1Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 220 of file wstag326.c.
| AreaBattle area1Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 221 of file wstag326.c.
| AreaBattle area1Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 222 of file wstag326.c.
| AreaBattle area1Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 223 of file wstag326.c.
| AreaBattle area1Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 224 of file wstag326.c.
| AreaBattle area1Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 225 of file wstag326.c.
| AreaBattle area1Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 226 of file wstag326.c.
| AreaBattle area1Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 227 of file wstag326.c.
| BattleList area1Battles |
Definition at line 228 of file wstag326.c.
| AreaBattle area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 233 of file wstag326.c.
| AreaBattle area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 234 of file wstag326.c.
| AreaBattle area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 235 of file wstag326.c.
| AreaBattle area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 236 of file wstag326.c.
| AreaBattle area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 237 of file wstag326.c.
| AreaBattle area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 238 of file wstag326.c.
| AreaBattle area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 239 of file wstag326.c.
| AreaBattle area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 240 of file wstag326.c.
| BattleList area2Battles |
Definition at line 241 of file wstag326.c.
| AreaBattle area3Battle0 = { 31, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) } |
Definition at line 246 of file wstag326.c.
| AreaBattle area3Battle1 = { 321, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) } |
Definition at line 247 of file wstag326.c.
| AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 248 of file wstag326.c.
| AreaBattle area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 249 of file wstag326.c.
| AreaBattle area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 250 of file wstag326.c.
| AreaBattle area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 251 of file wstag326.c.
| AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 252 of file wstag326.c.
| AreaBattle area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 253 of file wstag326.c.
| BattleList area3Battles |
Definition at line 254 of file wstag326.c.
| FieldBattles stageBattles[] |
| ActorImage stageImages[] |
Definition at line 262 of file wstag326.c.
Referenced by setupStage().
| u16 actor0Talk0Conditions[] |
Definition at line 271 of file wstag326.c.
| u16 actor0Talk0Actions[] = { (( 0xA ) << 8 | ( 0xD )) , 1, (0x9000 | ( 0x38 )) , 1, 0xFFFF } |
Definition at line 276 of file wstag326.c.
| u16 actor0Talk1Conditions[] |
Definition at line 277 of file wstag326.c.
| u16 actor0Talk2Conditions[] |
Definition at line 282 of file wstag326.c.
| u16 actor0Talk2Actions[] = { (( 0xA ) << 8 | ( 0xD )) , 1, (0x9000 | ( 0x38 )) , 1, 0xFFFF } |
Definition at line 287 of file wstag326.c.
| u16 actor0Talk3Conditions[] |
Definition at line 288 of file wstag326.c.
| u16 actor1Talk0Conditions[] = { (( 0xA ) << 8 | ( 0xD )) , 0, 0xFFFF } |
Definition at line 293 of file wstag326.c.
| u16 actor1Talk0Actions[] = { (( 0xA ) << 8 | ( 0xD )) , 1, (0x9000 | ( 0x38 )) , 1, 0xFFFF } |
Definition at line 294 of file wstag326.c.
| u16 actor1Talk1Conditions[] = { (( 0xA ) << 8 | ( 0xD )) , 1, 0xFFFF } |
Definition at line 295 of file wstag326.c.
| u16 actor2Talk0Conditions[] = { (( 0xA ) << 8 | ( 0xD )) , 0, 0xFFFF } |
Definition at line 296 of file wstag326.c.
| u16 actor2Talk0Actions[] = { (( 0xA ) << 8 | ( 0xD )) , 1, (0x9000 | ( 0x38 )) , 1, 0xFFFF } |
Definition at line 297 of file wstag326.c.
| u16 actor2Talk1Conditions[] = { (( 0xA ) << 8 | ( 0xD )) , 1, 0xFFFF } |
Definition at line 298 of file wstag326.c.
| FieldTalk actor0Talks[] |
Definition at line 299 of file wstag326.c.
| FieldTalk actor1Talks[] |
Definition at line 306 of file wstag326.c.
| FieldTalk actor2Talks[] |
Definition at line 311 of file wstag326.c.
| u16 actor0Conditions[] = { (0x7000 | ( 0x1C )) , 1, 0xFFFF } |
Definition at line 316 of file wstag326.c.
| u16 actor1Conditions[] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF } |
Definition at line 317 of file wstag326.c.
| u16 actor2Conditions[] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF } |
Definition at line 318 of file wstag326.c.
| FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x105, 4, 425, 256, 1 } |
Definition at line 319 of file wstag326.c.
| FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x105, 4, 425, 256, 1 } |
Definition at line 320 of file wstag326.c.
| FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x105, 4, 425, 256, 1 } |
Definition at line 321 of file wstag326.c.
| FieldActorEntry* stageActors[] |
Definition at line 322 of file wstag326.c.
Referenced by setupStage().
| StageTile stageObjects[] |
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition at line 328 of file wstag326.c.
Referenced by setupStage().
| StageSlot stageSlots[] |
Definition at line 346 of file wstag326.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 350 of file wstag326.c.
| FieldEvent stageEvents[] |
Definition at line 353 of file wstag326.c.
Referenced by setupStage().