|
Digimon World 3 decomp
The European version, SLES_039.36
|
WSTAG306: Master Room, Amaterasu City. More...
#include "common.h"#include "field/stage.h"#include "common/step_animation_once.inc.c"#include "common/update_sound_tile.inc.c"#include "common/create_sound_tile.inc.c"#include "common/start_stage.inc.c"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 0x546 |
Functions | |
| void | handleCommand851 (StageSoundTile *task, s32 id) |
| Command 851 of the event scripts: told 0x335 in event 930, opens the secret door, with its sound. | |
| void | updateStage (StageTask *task, void **children) |
| Creates the event object of progress 0x25 or 0x27, and the stage helper task before progress 0x27. | |
| void | setupStage (void) |
| Sets the stage up: its map, actors and events, playing KANRIBGM; BGM_0029 instead except at STORY_PRESIDENT_ARRESTED once flag 0x1A0A is set. | |
Variables | |
| AnimFrame | updateSoundTileFrames [] |
| Defined below, after the code that uses them. | |
| s16 | script930 [] |
| s16 | script966 [] |
| s16 | script980 [] |
| ActorImage | stageImages [] |
| FieldTalk | actor2Talks [] |
| FieldTalk | actor3Talks [] |
| FieldTalk | actor4Talks [] |
| FieldTalk | actor5Talks [] |
| FieldTalk | actor6Talks [] |
| FieldTalk | actor7Talks [] |
| FieldTalk | actor8Talks [] |
| FieldTalk | actor9Talks [] |
| FieldTalk | actor10Talks [] |
| FieldTalk | actor11Talks [] |
| FieldTalk | actor12Talks [] |
| u16 | actor0Conditions [] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF } |
| u16 | actor1Conditions [] = { (0x6000 | ( STORY_ASUKA_HEADQUARTERS )) , 1, 0xFFFF } |
| u16 | actor2Conditions [] = { (0x7000 | ( 0x94 )) , 1, 0xFFFF } |
| u16 | actor3Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF } |
| u16 | actor4Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF } |
| u16 | actor5Conditions [] = { (0x7000 | ( 0x94 )) , 1, 0xFFFF } |
| u16 | actor6Conditions [] = { (0x7000 | ( 0x94 )) , 1, 0xFFFF } |
| u16 | actor7Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF } |
| u16 | actor8Conditions [] = { (0x7000 | ( 0x94 )) , 1, 0xFFFF } |
| u16 | actor9Conditions [] = { (0x7000 | ( 0x94 )) , 1, 0xFFFF } |
| u16 | actor10Conditions [] = { (0x7000 | ( 0x94 )) , 1, 0xFFFF } |
| u16 | actor11Conditions [] = { (0x7000 | ( 0x94 )) , 1, 0xFFFF } |
| u16 | actor12Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF } |
| FieldActorEntry | actor0 = { actor0Conditions, ((void *)0) , 1, 4, 0, 0, 1 } |
| FieldActorEntry | actor1 = { actor1Conditions, ((void *)0) , 1, 4, 0, 0, 1 } |
| FieldActorEntry | actor2 = { actor2Conditions, actor2Talks, 0x3F, 5, 121, 260, 7 } |
| FieldActorEntry | actor3 = { actor3Conditions, actor3Talks, 0x9D, 6, 463, 264, 1 } |
| FieldActorEntry | actor4 = { actor4Conditions, actor4Talks, 0x9E, 7, 367, 312, 5 } |
| FieldActorEntry | actor5 = { actor5Conditions, actor5Talks, 0xC6, 8, 185, 229, 7 } |
| FieldActorEntry | actor6 = { actor6Conditions, actor6Talks, 0xC7, 9, 249, 197, 7 } |
| FieldActorEntry | actor7 = { actor7Conditions, actor7Talks, 0x119, 0xA, 428, 278, 1 } |
| FieldActorEntry | actor8 = { actor8Conditions, actor8Talks, 0x121, 0xB, 376, 188, 1 } |
| FieldActorEntry | actor9 = { actor9Conditions, actor9Talks, 0x122, 0xC, 360, 380, 3 } |
| FieldActorEntry | actor10 = { actor10Conditions, actor10Talks, 0x123, 0xD, 424, 348, 3 } |
| FieldActorEntry | actor11 = { actor11Conditions, actor11Talks, 0x124, 0xE, 488, 316, 3 } |
| FieldActorEntry | actor12 = { actor12Conditions, actor12Talks, 0x13A, 0xF, 451, 290, 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 [] |
WSTAG306: Master Room, Amaterasu City.
On the Amaterasu server; its Asuka server twin is WSTAG305.
Definition in file wstag306.c.
| #define STAGE_CHILDREN_SIZE 0x8 |
Definition at line 55 of file wstag306.c.
| #define STAGE_TEXT TEXT_FILE(TEXT_TALKS_03) |
Definition at line 63 of file wstag306.c.
| #define EVENT_TEXT_FILE (TEXT_EVENTS_300 - 1) |
Definition at line 64 of file wstag306.c.
| #define STAGE_FILE 0x546 |
Definition at line 65 of file wstag306.c.
| void handleCommand851 | ( | StageSoundTile * | task, |
| s32 | id | ||
| ) |
Command 851 of the event scripts: told 0x335 in event 930, opens the secret door, with its sound.
< held until SOUND.keyOff
Definition at line 19 of file wstag306.c.
| void updateStage | ( | StageTask * | task, |
| void ** | children | ||
| ) |
Creates the event object of progress 0x25 or 0x27, and the stage helper task before progress 0x27.
Definition at line 31 of file wstag306.c.
| void setupStage | ( | void | ) |
Sets the stage up: its map, actors and events, playing KANRIBGM; BGM_0029 instead except at STORY_PRESIDENT_ARRESTED once flag 0x1A0A is set.
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.
< KANRIBGM: the cities' Main Lobby, Admin Center, Digimon Arena, Master Room
< KANRIBGM: the cities' Main Lobby, Admin Center, Digimon Arena, Master Room
< a cell's value: a direction (3 bits) and a StageSlot (5)
< 0x1A 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 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 71 of file wstag306.c.
| AnimFrame updateSoundTileFrames |
Defined below, after the code that uses them.
Definition at line 267 of file wstag306.c.
Referenced by handleCommand851(), and updateSoundTile().
| s16 script930[] |
Definition at line 94 of file wstag306.c.
| s16 script966[] |
Definition at line 147 of file wstag306.c.
| s16 script980[] |
Definition at line 161 of file wstag306.c.
| ActorImage stageImages[] |
Definition at line 271 of file wstag306.c.
Referenced by setupStage().
| FieldTalk actor2Talks[] |
Definition at line 291 of file wstag306.c.
| FieldTalk actor3Talks[] |
Definition at line 295 of file wstag306.c.
| FieldTalk actor4Talks[] |
Definition at line 299 of file wstag306.c.
| FieldTalk actor5Talks[] |
Definition at line 303 of file wstag306.c.
| FieldTalk actor6Talks[] |
Definition at line 307 of file wstag306.c.
| FieldTalk actor7Talks[] |
Definition at line 311 of file wstag306.c.
| FieldTalk actor8Talks[] |
Definition at line 315 of file wstag306.c.
| FieldTalk actor9Talks[] |
Definition at line 319 of file wstag306.c.
| FieldTalk actor10Talks[] |
Definition at line 323 of file wstag306.c.
| FieldTalk actor11Talks[] |
Definition at line 327 of file wstag306.c.
| FieldTalk actor12Talks[] |
Definition at line 331 of file wstag306.c.
| u16 actor0Conditions[] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF } |
Definition at line 335 of file wstag306.c.
| u16 actor1Conditions[] = { (0x6000 | ( STORY_ASUKA_HEADQUARTERS )) , 1, 0xFFFF } |
Definition at line 336 of file wstag306.c.
| u16 actor2Conditions[] = { (0x7000 | ( 0x94 )) , 1, 0xFFFF } |
Definition at line 337 of file wstag306.c.
| u16 actor3Conditions[] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF } |
Definition at line 338 of file wstag306.c.
| u16 actor4Conditions[] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF } |
Definition at line 339 of file wstag306.c.
| u16 actor5Conditions[] = { (0x7000 | ( 0x94 )) , 1, 0xFFFF } |
Definition at line 340 of file wstag306.c.
| u16 actor6Conditions[] = { (0x7000 | ( 0x94 )) , 1, 0xFFFF } |
Definition at line 341 of file wstag306.c.
| u16 actor7Conditions[] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF } |
Definition at line 342 of file wstag306.c.
| u16 actor8Conditions[] = { (0x7000 | ( 0x94 )) , 1, 0xFFFF } |
Definition at line 343 of file wstag306.c.
| u16 actor9Conditions[] = { (0x7000 | ( 0x94 )) , 1, 0xFFFF } |
Definition at line 344 of file wstag306.c.
| u16 actor10Conditions[] = { (0x7000 | ( 0x94 )) , 1, 0xFFFF } |
Definition at line 345 of file wstag306.c.
| u16 actor11Conditions[] = { (0x7000 | ( 0x94 )) , 1, 0xFFFF } |
Definition at line 346 of file wstag306.c.
| u16 actor12Conditions[] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF } |
Definition at line 347 of file wstag306.c.
| FieldActorEntry actor0 = { actor0Conditions, ((void *)0) , 1, 4, 0, 0, 1 } |
Definition at line 348 of file wstag306.c.
| FieldActorEntry actor1 = { actor1Conditions, ((void *)0) , 1, 4, 0, 0, 1 } |
Definition at line 349 of file wstag306.c.
| FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x3F, 5, 121, 260, 7 } |
Definition at line 350 of file wstag306.c.
| FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x9D, 6, 463, 264, 1 } |
Definition at line 351 of file wstag306.c.
| FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x9E, 7, 367, 312, 5 } |
Definition at line 352 of file wstag306.c.
| FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0xC6, 8, 185, 229, 7 } |
Definition at line 353 of file wstag306.c.
| FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0xC7, 9, 249, 197, 7 } |
Definition at line 354 of file wstag306.c.
| FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x119, 0xA, 428, 278, 1 } |
Definition at line 355 of file wstag306.c.
| FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x121, 0xB, 376, 188, 1 } |
Definition at line 356 of file wstag306.c.
| FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x122, 0xC, 360, 380, 3 } |
Definition at line 357 of file wstag306.c.
| FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x123, 0xD, 424, 348, 3 } |
Definition at line 358 of file wstag306.c.
| FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x124, 0xE, 488, 316, 3 } |
Definition at line 359 of file wstag306.c.
| FieldActorEntry actor12 = { actor12Conditions, actor12Talks, 0x13A, 0xF, 451, 290, 1 } |
Definition at line 360 of file wstag306.c.
| FieldActorEntry* stageActors[] |
| StageTile stageObjects[] |
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition at line 377 of file wstag306.c.
Referenced by setupStage().
| StageSlot stageSlots[] |
Definition at line 389 of file wstag306.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 394 of file wstag306.c.
| FieldEvent stageEvents[] |
Definition at line 397 of file wstag306.c.
Referenced by setupStage().