|
Digimon World 3 decomp
The European version, SLES_039.36
|
WSTAG325: Control Room, Asuka City. More...
Go to the source code of this file.
Macros | |
| #define | STAGE_CHILDREN_SIZE 0x8 |
| #define | STAGE_TEXT TEXT_FILE(TEXT_TALKS_05) |
| #define | EVENT_TEXT_FILE (TEXT_EVENTS_300 - 1) |
| #define | STAGE_FILE 0x765 |
Functions | |
| void | updateCommand833 (StageTask *task) |
| Command 833 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 * | createCommand833 (s32 arg) |
| Command 833 of the event scripts: creates its task (updateCommand833) with the given id. | |
| void | handleCommand833 (StageTask *task, s32 id) |
| Ends the task when map object 0x35A is triggered. | |
| void | updateStage (StageTask *task, void **children) |
| Back from the battle after event 375, starts event 376, with Datamon, unless it has played. | |
| void | endEvent375 (void) |
| After event 375, with Datamon: lets event 376 start and starts the stage's event battle 0. | |
| void | endEvent376 (void) |
| After event 376, with Datamon: gives the player the Rusty Glove and keeps it from playing again. | |
| void | endEvent560 (void) |
| After event 560, with Datamon: moves the story on to STORY_CONTROL_ROOM. | |
| void | setupStage (void) |
| Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0003. | |
Variables | |
| s16 | script375 [] |
| s16 | script376 [] |
| s16 | script560 [] |
| 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 = { 9, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle1 = { 313, 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 | actor1Talk0Actions [] = { (0x9000 | ( 0x41 )) , 1, (( 0xA ) << 8 | ( 3 )) , 1, 0xFFFF } |
| u16 | actor3Talk0Conditions [] = { (( 0x1C ) << 8 | ( 0x1B )) , 0, 0xFFFF } |
| u16 | actor3Talk0Actions [] = { (( 0x1C ) << 8 | ( 0x1B )) , 1, 0xFFFF } |
| u16 | actor3Talk1Conditions [] = { (( 0x1C ) << 8 | ( 0x1B )) , 1, 0xFFFF } |
| u16 | actor4Talk0Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x191 )), 0, 0xFFFF } |
| u16 | actor4Talk1Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x191 )), 1, 0xFFFF } |
| u16 | actor4Talk1Actions [] |
| FieldTalk | actor0Talks [] |
| FieldTalk | actor1Talks [] |
| FieldTalk | actor2Talks [] |
| FieldTalk | actor3Talks [] |
| FieldTalk | actor4Talks [] |
| FieldTalk | actor5Talks [] |
| FieldTalk | actor6Talks [] |
| FieldTalk | actor7Talks [] |
| FieldTalk | actor8Talks [] |
| FieldTalk | actor9Talks [] |
| u16 | actor0Conditions [] |
| u16 | actor1Conditions [] = { (( 0xA ) << 8 | ( 3 )) , 0, 0xFFFF } |
| u16 | actor2Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, (( 0xA ) << 8 | ( 3 )) , 1, 0xFFFF } |
| u16 | actor3Conditions [] |
| u16 | actor4Conditions [] = { (0x6000 | ( STORY_STAFF_PASS )) , 1, (( 0xA ) << 8 | ( 3 )) , 1, 0xFFFF } |
| u16 | actor5Conditions [] = { (( 0xA ) << 8 | ( 3 )) , 1, (0x6000 | ( STORY_CONTROL_ROOM )) , 1, 0xFFFF } |
| u16 | actor6Conditions [] |
| u16 | actor7Conditions [] |
| u16 | actor8Conditions [] |
| u16 | actor9Conditions [] |
| FieldActorEntry | actor0 = { actor0Conditions, actor0Talks, 0xA5, 4, 433, 260, 5 } |
| FieldActorEntry | actor1 = { actor1Conditions, actor1Talks, 0xA5, 4, 433, 260, 5 } |
| FieldActorEntry | actor2 = { actor2Conditions, actor2Talks, 0xA5, 4, 433, 260, 5 } |
| FieldActorEntry | actor3 = { actor3Conditions, actor3Talks, 0xA5, 4, 433, 260, 5 } |
| FieldActorEntry | actor4 = { actor4Conditions, actor4Talks, 0xA5, 4, 433, 260, 5 } |
| FieldActorEntry | actor5 = { actor5Conditions, actor5Talks, 0xA5, 4, 433, 260, 5 } |
| FieldActorEntry | actor6 = { actor6Conditions, actor6Talks, 0xA5, 4, 433, 260, 5 } |
| FieldActorEntry | actor7 = { actor7Conditions, actor7Talks, 0xA5, 4, 433, 260, 5 } |
| FieldActorEntry | actor8 = { actor8Conditions, actor8Talks, 0xA5, 4, 433, 260, 5 } |
| FieldActorEntry | actor9 = { actor9Conditions, actor9Talks, 0xA5, 4, 433, 260, 5 } |
| 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 [] |
WSTAG325: Control Room, Asuka City.
Definition in file wstag325.c.
| #define STAGE_CHILDREN_SIZE 0x8 |
Definition at line 91 of file wstag325.c.
| #define STAGE_TEXT TEXT_FILE(TEXT_TALKS_05) |
Definition at line 119 of file wstag325.c.
| #define EVENT_TEXT_FILE (TEXT_EVENTS_300 - 1) |
Definition at line 120 of file wstag325.c.
| #define STAGE_FILE 0x765 |
Definition at line 121 of file wstag325.c.
| void updateCommand833 | ( | StageTask * | task | ) |
Command 833 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 13 of file wstag325.c.
Referenced by createCommand833().
| void * createCommand833 | ( | s32 | arg | ) |
Command 833 of the event scripts: creates its task (updateCommand833) with the given id.
Definition at line 63 of file wstag325.c.
Ends the task when map object 0x35A is triggered.
Definition at line 68 of file wstag325.c.
| void updateStage | ( | StageTask * | task, |
| void ** | children | ||
| ) |
Back from the battle after event 375, starts event 376, with Datamon, unless it has played.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 75 of file wstag325.c.
| void endEvent375 | ( | void | ) |
After event 375, with Datamon: lets event 376 start and starts the stage's event battle 0.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< action: FIELDSTG_battleFuncs.startEventBattle
Definition at line 95 of file wstag325.c.
| void endEvent376 | ( | void | ) |
After event 376, with Datamon: gives the player the Rusty Glove and keeps it from playing again.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 104 of file wstag325.c.
| void endEvent560 | ( | void | ) |
After event 560, with Datamon: moves the story on to STORY_CONTROL_ROOM.
Definition at line 110 of file wstag325.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 124 of file wstag325.c.
| s16 script375[] |
Definition at line 144 of file wstag325.c.
| s16 script376[] |
Definition at line 173 of file wstag325.c.
| s16 script560[] |
Definition at line 198 of file wstag325.c.
| AreaBattle area0Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 224 of file wstag325.c.
| AreaBattle area0Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 225 of file wstag325.c.
| AreaBattle area0Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 226 of file wstag325.c.
| AreaBattle area0Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 227 of file wstag325.c.
| AreaBattle area0Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 228 of file wstag325.c.
| AreaBattle area0Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 229 of file wstag325.c.
| AreaBattle area0Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 230 of file wstag325.c.
| AreaBattle area0Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 231 of file wstag325.c.
| BattleList area0Battles |
Definition at line 232 of file wstag325.c.
| AreaBattle area1Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 237 of file wstag325.c.
| AreaBattle area1Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 238 of file wstag325.c.
| AreaBattle area1Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 239 of file wstag325.c.
| AreaBattle area1Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 240 of file wstag325.c.
| AreaBattle area1Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 241 of file wstag325.c.
| AreaBattle area1Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 242 of file wstag325.c.
| AreaBattle area1Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 243 of file wstag325.c.
| AreaBattle area1Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 244 of file wstag325.c.
| BattleList area1Battles |
Definition at line 245 of file wstag325.c.
| AreaBattle area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 250 of file wstag325.c.
| AreaBattle area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 251 of file wstag325.c.
| AreaBattle area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 252 of file wstag325.c.
| AreaBattle area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 253 of file wstag325.c.
| AreaBattle area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 254 of file wstag325.c.
| AreaBattle area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 255 of file wstag325.c.
| AreaBattle area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 256 of file wstag325.c.
| AreaBattle area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 257 of file wstag325.c.
| BattleList area2Battles |
Definition at line 258 of file wstag325.c.
| AreaBattle area3Battle0 = { 9, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) } |
Definition at line 263 of file wstag325.c.
| AreaBattle area3Battle1 = { 313, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) } |
Definition at line 264 of file wstag325.c.
| AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 265 of file wstag325.c.
| AreaBattle area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 266 of file wstag325.c.
| AreaBattle area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 267 of file wstag325.c.
| AreaBattle area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 268 of file wstag325.c.
| AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 269 of file wstag325.c.
| AreaBattle area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 270 of file wstag325.c.
| BattleList area3Battles |
Definition at line 271 of file wstag325.c.
| FieldBattles stageBattles[] |
| ActorImage stageImages[] |
Definition at line 279 of file wstag325.c.
Referenced by setupStage().
| u16 actor1Talk0Actions[] = { (0x9000 | ( 0x41 )) , 1, (( 0xA ) << 8 | ( 3 )) , 1, 0xFFFF } |
Definition at line 288 of file wstag325.c.
| u16 actor3Talk0Conditions[] = { (( 0x1C ) << 8 | ( 0x1B )) , 0, 0xFFFF } |
Definition at line 289 of file wstag325.c.
| u16 actor3Talk0Actions[] = { (( 0x1C ) << 8 | ( 0x1B )) , 1, 0xFFFF } |
Definition at line 290 of file wstag325.c.
| u16 actor3Talk1Conditions[] = { (( 0x1C ) << 8 | ( 0x1B )) , 1, 0xFFFF } |
Definition at line 291 of file wstag325.c.
| u16 actor4Talk0Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0x191 )), 0, 0xFFFF } |
Definition at line 292 of file wstag325.c.
| u16 actor4Talk1Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0x191 )), 1, 0xFFFF } |
Definition at line 293 of file wstag325.c.
| u16 actor4Talk1Actions[] |
Definition at line 294 of file wstag325.c.
| FieldTalk actor0Talks[] |
Definition at line 300 of file wstag325.c.
| FieldTalk actor1Talks[] |
Definition at line 304 of file wstag325.c.
| FieldTalk actor2Talks[] |
Definition at line 308 of file wstag325.c.
| FieldTalk actor3Talks[] |
Definition at line 312 of file wstag325.c.
| FieldTalk actor4Talks[] |
Definition at line 317 of file wstag325.c.
| FieldTalk actor5Talks[] |
Definition at line 322 of file wstag325.c.
| FieldTalk actor6Talks[] |
Definition at line 326 of file wstag325.c.
| FieldTalk actor7Talks[] |
Definition at line 330 of file wstag325.c.
| FieldTalk actor8Talks[] |
Definition at line 334 of file wstag325.c.
| FieldTalk actor9Talks[] |
Definition at line 338 of file wstag325.c.
| u16 actor0Conditions[] |
Definition at line 342 of file wstag325.c.
| u16 actor1Conditions[] = { (( 0xA ) << 8 | ( 3 )) , 0, 0xFFFF } |
Definition at line 347 of file wstag325.c.
| u16 actor2Conditions[] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, (( 0xA ) << 8 | ( 3 )) , 1, 0xFFFF } |
Definition at line 348 of file wstag325.c.
| u16 actor3Conditions[] |
Definition at line 349 of file wstag325.c.
| u16 actor4Conditions[] = { (0x6000 | ( STORY_STAFF_PASS )) , 1, (( 0xA ) << 8 | ( 3 )) , 1, 0xFFFF } |
Definition at line 354 of file wstag325.c.
| u16 actor5Conditions[] = { (( 0xA ) << 8 | ( 3 )) , 1, (0x6000 | ( STORY_CONTROL_ROOM )) , 1, 0xFFFF } |
Definition at line 355 of file wstag325.c.
| u16 actor6Conditions[] |
Definition at line 356 of file wstag325.c.
| u16 actor7Conditions[] |
Definition at line 361 of file wstag325.c.
| u16 actor8Conditions[] |
Definition at line 366 of file wstag325.c.
| u16 actor9Conditions[] |
Definition at line 371 of file wstag325.c.
| FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0xA5, 4, 433, 260, 5 } |
Definition at line 376 of file wstag325.c.
| FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0xA5, 4, 433, 260, 5 } |
Definition at line 377 of file wstag325.c.
| FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0xA5, 4, 433, 260, 5 } |
Definition at line 378 of file wstag325.c.
| FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0xA5, 4, 433, 260, 5 } |
Definition at line 379 of file wstag325.c.
| FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0xA5, 4, 433, 260, 5 } |
Definition at line 380 of file wstag325.c.
| FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0xA5, 4, 433, 260, 5 } |
Definition at line 381 of file wstag325.c.
| FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0xA5, 4, 433, 260, 5 } |
Definition at line 382 of file wstag325.c.
| FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0xA5, 4, 433, 260, 5 } |
Definition at line 383 of file wstag325.c.
| FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0xA5, 4, 433, 260, 5 } |
Definition at line 384 of file wstag325.c.
| FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0xA5, 4, 433, 260, 5 } |
Definition at line 385 of file wstag325.c.
| FieldActorEntry* stageActors[] |
| StageTile stageObjects[] |
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition at line 399 of file wstag325.c.
Referenced by setupStage().
| StageSlot stageSlots[] |
Definition at line 423 of file wstag325.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 427 of file wstag325.c.
| FieldEvent stageEvents[] |
Definition at line 430 of file wstag325.c.
Referenced by setupStage().