Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
wstag311.c File Reference

WSTAG311: A.o.A Headquarters, Amaterasu City. More...

Include dependency graph for wstag311.c:

Go to the source code of this file.

Macros

#define STAGE_CHILDREN_SIZE   0x1C
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_03)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_300 - 1)
 
#define STAGE_FILE   0x53D
 

Functions

void updateTileSix (StageTileSix *task)
 Animates the map objects with animations 5 to 10 by mode (0: hidden, 1 and 3: the first two once, then mode 2 or 0; 2: the other four)
 
void restartTileSix (StageTileSix *task, s32 id)
 Restarts the first two map objects' animations for mode 1 (id 0) or 3 (id 1)
 
void * createTileSixWithId (s32 arg)
 Creates the first set of six map objects (updateTileSix) with an id; nothing in the game calls it.
 
static void findTileSixW (StageTileSix *task)
 Finds the map objects with animations 11 to 16 and starts the animations of the first four.
 
static void showLastFourTilesW (StageTileSix *task, StageTile *tile, s32 i)
 Mode 2: hides the first two map objects and shows the other four, the third and fourth with their looping palettes and the last two still.
 
void updateTileSixW (StageTileSix *task)
 Animates the map objects with animations 11 to 16 by mode (0: hidden, 1 and 3: the first two once, then mode 2 or 0; 2: the other four)
 
void restartTileSixW (StageTileSix *task, s32 id)
 Restarts the first two map objects' animations for mode 1 (id 0) or 3 (id 1)
 
void * createTileSixWWithId (s32 arg)
 Creates the second set of six map objects (updateTileSixW) with an id; nothing in the game calls it.
 
void * createTileSixW (void)
 Creates the second set of six map objects (updateTileSixW) without an id; nothing in the game calls it.
 
void updateStage (StageTask *task, void **children)
 Creates the stage helper task, the sprite effects and the event object of the story so far.
 
StageEffect * createCommand838 (s32 id)
 Creates the effect of frame 0x2A at (0x10F, 0x19B), playing, with a sound.
 
void endEvent931 (void)
 After event 931, with Royal Guard: starts the stage's event battle 1, sets flag 0x0C33 (which decides whether actors 4 to 6 appear) and keeps it from playing again.
 
void endEvent932 (void)
 After event 932, with Chief Officer: starts the stage's event battle 0 and keeps it from playing again.
 
void endEvent933 (void)
 After event 933, with Chief Officer, Nick, Lisa and Teddy: keeps it from playing again.
 
void endEvent934 (void)
 After event 934, with Teddy and Nick: keeps it from playing again.
 
void endEvent981 (void)
 After event 981, with the player: keeps it from playing again.
 
void endEvent982 (void)
 After event 982, with the player: moves the story on to STORY_OPERATION_SIGMA.
 
void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0002.
 

Variables

AnimFrame updateTileAnimsFrames0 []
 Defined below, after the code that uses them.
 
AnimFrame updateTileAnimsFrames1 []
 
AnimFrame updateTileAnimsFrames2 []
 
AnimFrame updateTileAnimsFrames3 []
 
StageEffectSpot updateStageSpots []
 
AnimFrame updateTileSixFrames0 []
 
AnimFrame updateTileSixFrames1 []
 
AnimFrame updateTileSixFrames3 []
 
AnimFrame updateTileSixFrames4 []
 
AnimFrame updateTileSixFrames2 []
 
AnimFrame updateTileSixWFrames0 []
 
AnimFrame updateTileSixWFrames1 []
 
AnimFrame updateTileSixWFrames2 []
 
AnimFrame updateTileSixWFrames3 []
 
AnimFrame updateTileSixWFrames4 []
 
s16 script931 []
 
s16 script932 []
 
s16 script933 []
 
s16 script934 []
 
s16 script981 []
 
s16 script982 []
 
AnimFrame effectClutFrames []
 
AnimFrame effectFrames []
 
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 = { 32, 18, (0x60000000 | ( 0x23 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle1 = { 198, 18, (0x60000000 | ( 2 ) << 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 [] = { (0x6000 | ( STORY_ASUKA_HEADQUARTERS )) , 1, 0xFFFF }
 
u16 actor1Conditions [] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF }
 
u16 actor2Conditions [] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF }
 
u16 actor3Conditions [] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF }
 
u16 actor4Conditions []
 
u16 actor5Conditions []
 
u16 actor6Conditions []
 
u16 actor7Conditions [] = { (0x6000 | ( STORY_ASUKA_HEADQUARTERS )) , 1, 0xFFFF }
 
u16 actor8Conditions [] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, (( 0x40 ) << 8 | ( 0x5F )) , 0, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, ((void *)0) , 1, 4, 0, 0, 1 }
 
FieldActorEntry actor1 = { actor1Conditions, ((void *)0) , 0xC, 5, 0, 0, 1 }
 
FieldActorEntry actor2 = { actor2Conditions, ((void *)0) , 0x65, 6, 0, 0, 1 }
 
FieldActorEntry actor3 = { actor3Conditions, ((void *)0) , 0x67, 7, 0, 0, 1 }
 
FieldActorEntry actor4 = { actor4Conditions, ((void *)0) , 0xD2, 8, 161, 441, 1 }
 
FieldActorEntry actor5 = { actor5Conditions, ((void *)0) , 0xD3, 9, 255, 489, 1 }
 
FieldActorEntry actor6 = { actor6Conditions, ((void *)0) , 0xD4, 0xA, 235, 452, 1 }
 
FieldActorEntry actor7 = { actor7Conditions, ((void *)0) , 0xD5, 0xB, 0, 0, 1 }
 
FieldActorEntry actor8 = { actor8Conditions, ((void *)0) , 0x102, 0xC, 464, 288, 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 []
 

Detailed Description

WSTAG311: A.o.A Headquarters, Amaterasu City.

On the Amaterasu server; its Asuka server twin is WSTAG310.

Definition in file wstag311.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   0x1C

Definition at line 439 of file wstag311.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_03)

Definition at line 504 of file wstag311.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_300 - 1)

Definition at line 505 of file wstag311.c.

◆ STAGE_FILE

#define STAGE_FILE   0x53D

Definition at line 506 of file wstag311.c.

Function Documentation

◆ updateTileSix()

void updateTileSix ( StageTileSix *  task)

Animates the map objects with animations 5 to 10 by mode (0: hidden, 1 and 3: the first two once, then mode 2 or 0; 2: the other four)

Definition at line 36 of file wstag311.c.

Referenced by createTileSix(), and createTileSixWithId().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ restartTileSix()

void restartTileSix ( StageTileSix *  task,
s32  id 
)

Restarts the first two map objects' animations for mode 1 (id 0) or 3 (id 1)

Definition at line 144 of file wstag311.c.

◆ createTileSixWithId()

void * createTileSixWithId ( s32  arg)

Creates the first set of six map objects (updateTileSix) with an id; nothing in the game calls it.

Definition at line 169 of file wstag311.c.

Here is the call graph for this function:

◆ findTileSixW()

static void findTileSixW ( StageTileSix *  task)
inlinestatic

Finds the map objects with animations 11 to 16 and starts the animations of the first four.

Definition at line 181 of file wstag311.c.

Referenced by updateTileSixW().

Here is the caller graph for this function:

◆ showLastFourTilesW()

static void showLastFourTilesW ( StageTileSix *  task,
StageTile *  tile,
s32  i 
)
inlinestatic

Mode 2: hides the first two map objects and shows the other four, the third and fourth with their looping palettes and the last two still.

Definition at line 226 of file wstag311.c.

Referenced by updateTileSixW().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateTileSixW()

void updateTileSixW ( StageTileSix *  task)

Animates the map objects with animations 11 to 16 by mode (0: hidden, 1 and 3: the first two once, then mode 2 or 0; 2: the other four)

Definition at line 256 of file wstag311.c.

Referenced by createTileSixW(), and createTileSixWWithId().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ restartTileSixW()

void restartTileSixW ( StageTileSix *  task,
s32  id 
)

Restarts the first two map objects' animations for mode 1 (id 0) or 3 (id 1)

Definition at line 364 of file wstag311.c.

◆ createTileSixWWithId()

void * createTileSixWWithId ( s32  arg)

Creates the second set of six map objects (updateTileSixW) with an id; nothing in the game calls it.

Definition at line 389 of file wstag311.c.

Here is the call graph for this function:

◆ createTileSixW()

void * createTileSixW ( void  )

Creates the second set of six map objects (updateTileSixW) without an id; nothing in the game calls it.

Definition at line 397 of file wstag311.c.

Here is the call graph for this function:

◆ updateStage()

void updateStage ( StageTask *  task,
void **  children 
)

Creates the stage helper task, the sprite effects and the event object of the story so far.

< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40

< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40

< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40

< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40

< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40

Definition at line 402 of file wstag311.c.

Here is the call graph for this function:

◆ createCommand838()

StageEffect * createCommand838 ( s32  id)

Creates the effect of frame 0x2A at (0x10F, 0x19B), playing, with a sound.

< TELEPORT

Definition at line 448 of file wstag311.c.

Here is the call graph for this function:

◆ endEvent931()

void endEvent931 ( void  )

After event 931, with Royal Guard: starts the stage's event battle 1, sets flag 0x0C33 (which decides whether actors 4 to 6 appear) and keeps it from playing again.

< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40

< 0xC 0x00-0x40: FLAGS_00, GAME.flags02-flags40

< action: FIELDSTG_battleFuncs.startEventBattle

Definition at line 464 of file wstag311.c.

◆ endEvent932()

void endEvent932 ( void  )

After event 932, with Chief Officer: starts the stage's event battle 0 and keeps it from playing again.

< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40

< action: FIELDSTG_battleFuncs.startEventBattle

Definition at line 474 of file wstag311.c.

◆ endEvent933()

void endEvent933 ( void  )

After event 933, with Chief Officer, Nick, Lisa and Teddy: keeps it from playing again.

< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40

Definition at line 480 of file wstag311.c.

◆ endEvent934()

void endEvent934 ( void  )

After event 934, with Teddy and Nick: keeps it from playing again.

< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40

Definition at line 485 of file wstag311.c.

◆ endEvent981()

void endEvent981 ( void  )

After event 981, with the player: keeps it from playing again.

< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40

Definition at line 490 of file wstag311.c.

◆ endEvent982()

void endEvent982 ( void  )

After event 982, with the player: moves the story on to STORY_OPERATION_SIGMA.

Definition at line 495 of file wstag311.c.

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0002.

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_0002: the A.o.A Headquarters

< ENV_0002: the A.o.A Headquarters

< a cell's value: a direction (3 bits) and a StageSlot (5)

Definition at line 509 of file wstag311.c.

Variable Documentation

◆ updateTileAnimsFrames0

AnimFrame updateTileAnimsFrames0[]
Initial value:
= {
{ 51, 8 }, { 52, 8 }, { 53, 8 }, { 54, 8 },
{ 55, 8 }, { 56, 8 }, { 57, 8 }, { 75, 40 },
{ 255, 0 },
}

Defined below, after the code that uses them.

Definition at line 964 of file wstag311.c.

◆ updateTileAnimsFrames1

AnimFrame updateTileAnimsFrames1[]
Initial value:
= {
{ 58, 8 }, { 59, 8 }, { 60, 8 }, { 61, 8 },
{ 62, 8 }, { 63, 8 }, { 75, 40 }, { 255, 0 },
}

Definition at line 969 of file wstag311.c.

◆ updateTileAnimsFrames2

AnimFrame updateTileAnimsFrames2
Initial value:
= {
{ 64, 8 }, { 65, 8 }, { 66, 8 }, { 67, 8 },
{ 68, 8 }, { 75, 40 }, { 255, 0 },
}

Definition at line 973 of file wstag311.c.

Referenced by updateTileAnims().

◆ updateTileAnimsFrames3

AnimFrame updateTileAnimsFrames3
Initial value:
= {
{ 69, 8 }, { 70, 8 }, { 71, 8 }, { 72, 8 },
{ 73, 8 }, { 74, 8 }, { 75, 40 }, { 255, 0 },
}

Definition at line 977 of file wstag311.c.

Referenced by updateTileAnims().

◆ updateStageSpots

StageEffectSpot updateStageSpots
Initial value:
= {
{ 20, 0, 492, 188 },
{ 20, 0, 620, 252 },
{ 42, 2, 271, 411 },
}

Definition at line 1041 of file wstag311.c.

Referenced by updateStage().

◆ updateTileSixFrames0

AnimFrame updateTileSixFrames0
Initial value:
= {
{ 5, 4 }, { 6, 4 }, { 7, 4 }, { 8, 4 },
{ 9, 4 }, { 10, 4 }, { 11, 4 }, { 12, 4 },
{ 13, 4 }, { 14, 4 }, { 15, 4 }, { 16, 4 },
{ 255, 0x3E7 },
}

Definition at line 981 of file wstag311.c.

Referenced by findTileSix(), restartTileSix(), and updateTileSix().

◆ updateTileSixFrames1

AnimFrame updateTileSixFrames1
Initial value:
= {
{ 28, 4 }, { 29, 4 }, { 30, 4 }, { 31, 4 },
{ 32, 4 }, { 33, 4 }, { 34, 4 }, { 35, 4 },
{ 36, 4 }, { 37, 4 }, { 38, 4 }, { 39, 4 },
{ 255, 0x3E7 },
}

Definition at line 987 of file wstag311.c.

Referenced by findTileSix(), restartTileSix(), and updateTileSix().

◆ updateTileSixFrames3

AnimFrame updateTileSixFrames3
Initial value:
= {
{ 0, 12 }, { 1, 12 }, { 2, 12 }, { 3, 12 },
{ 4, 12 }, { 5, 12 }, { 6, 12 }, { 7, 12 },
{ 8, 12 }, { 9, 12 }, { 10, 12 }, { 11, 12 },
{ 12, 12 }, { 13, 12 }, { 255, 0 }, { 16, 4 },
{ 15, 4 }, { 14, 4 }, { 13, 4 }, { 12, 4 },
{ 11, 4 }, { 10, 4 }, { 9, 4 }, { 8, 4 },
{ 7, 4 }, { 6, 4 }, { 5, 4 }, { 255, 0x3E7 },
}

Definition at line 996 of file wstag311.c.

Referenced by findTileSix(), restartTileSix(), and showLastFourTiles().

◆ updateTileSixFrames4

AnimFrame updateTileSixFrames4
Initial value:
= {
{ 39, 4 }, { 38, 4 }, { 37, 4 }, { 36, 4 },
{ 35, 4 }, { 34, 4 }, { 33, 4 }, { 32, 4 },
{ 31, 4 }, { 30, 4 }, { 29, 4 }, { 28, 4 },
{ 255, 0x3E7 },
}

Definition at line 1005 of file wstag311.c.

Referenced by restartTileSix(), and updateTileSix().

◆ updateTileSixFrames2

AnimFrame updateTileSixFrames2
Initial value:
= {
{ 0, 4 }, { 1, 4 }, { 255, 0 },
}

Definition at line 993 of file wstag311.c.

Referenced by findTileSix(), and showLastFourTiles().

◆ updateTileSixWFrames0

AnimFrame updateTileSixWFrames0
Initial value:
= {
{ 76, 4 }, { 77, 4 }, { 78, 4 }, { 79, 4 },
{ 80, 4 }, { 81, 4 }, { 82, 4 }, { 83, 4 },
{ 84, 4 }, { 85, 4 }, { 86, 4 }, { 87, 4 },
{ 255, 0x3E7 },
}

Definition at line 1011 of file wstag311.c.

Referenced by findTileSixW(), restartTileSixW(), and updateTileSixW().

◆ updateTileSixWFrames1

AnimFrame updateTileSixWFrames1
Initial value:
= {
{ 88, 4 }, { 89, 4 }, { 90, 4 }, { 91, 4 },
{ 92, 4 }, { 93, 4 }, { 94, 4 }, { 95, 4 },
{ 96, 4 }, { 97, 4 }, { 98, 4 }, { 99, 4 },
{ 255, 0x3E7 },
}

Definition at line 1017 of file wstag311.c.

Referenced by findTileSixW(), restartTileSixW(), and updateTileSixW().

◆ updateTileSixWFrames2

AnimFrame updateTileSixWFrames2
Initial value:
= {
{ 0, 4 }, { 1, 4 }, { 255, 0 },
}

Definition at line 1023 of file wstag311.c.

Referenced by findTileSixW(), and showLastFourTilesW().

◆ updateTileSixWFrames3

AnimFrame updateTileSixWFrames3
Initial value:
= {
{ 0, 12 }, { 1, 12 }, { 2, 12 }, { 3, 12 },
{ 4, 12 }, { 5, 12 }, { 6, 12 }, { 7, 12 },
{ 8, 12 }, { 9, 12 }, { 10, 12 }, { 255, 0 },
{ 87, 4 }, { 86, 4 }, { 85, 4 }, { 84, 4 },
{ 83, 4 }, { 82, 4 }, { 81, 4 }, { 80, 4 },
{ 79, 4 }, { 78, 4 }, { 77, 4 }, { 76, 4 },
{ 255, 0x3E7 },
}

Definition at line 1026 of file wstag311.c.

Referenced by findTileSixW(), restartTileSixW(), and showLastFourTilesW().

◆ updateTileSixWFrames4

AnimFrame updateTileSixWFrames4
Initial value:
= {
{ 99, 4 }, { 98, 4 }, { 97, 4 }, { 96, 4 },
{ 95, 4 }, { 94, 4 }, { 93, 4 }, { 92, 4 },
{ 91, 4 }, { 90, 4 }, { 89, 4 }, { 88, 4 },
{ 255, 0x3E7 },
}

Definition at line 1035 of file wstag311.c.

Referenced by restartTileSixW(), and updateTileSixW().

◆ script931

s16 script931[]

Definition at line 529 of file wstag311.c.

◆ script932

s16 script932[]

Definition at line 571 of file wstag311.c.

◆ script933

s16 script933[]

Definition at line 625 of file wstag311.c.

◆ script934

s16 script934[]

Definition at line 800 of file wstag311.c.

◆ script981

s16 script981[]

Definition at line 881 of file wstag311.c.

◆ script982

s16 script982[]

Definition at line 928 of file wstag311.c.

◆ effectClutFrames

AnimFrame effectClutFrames[]
Initial value:
= {
{ 0, 6 }, { 1, 6 }, { 2, 68 }, { 1, 4 },
{ 0, 4 }, { 255, 0 },
}

Definition at line 1046 of file wstag311.c.

Referenced by updateStageEffect().

◆ effectFrames

AnimFrame effectFrames[]
Initial value:
= {
{ 0x12C, 18 }, { 1, 6 }, { 2, 6 }, { 3, 6 },
{ 4, 6 }, { 5, 4 }, { 6, 4 }, { 7, 4 },
{ 5, 4 }, { 6, 4 }, { 7, 4 }, { 5, 4 },
{ 6, 4 }, { 7, 4 }, { 5, 4 }, { 6, 4 },
{ 7, 4 }, { 4, 4 }, { 3, 4 }, { 2, 4 },
{ 1, 4 }, { 255, 0x3E7 },
}

Definition at line 1050 of file wstag311.c.

Referenced by updateStageEffect().

◆ area0Battle0

AreaBattle area0Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1058 of file wstag311.c.

◆ area0Battle1

AreaBattle area0Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1059 of file wstag311.c.

◆ area0Battle2

AreaBattle area0Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1060 of file wstag311.c.

◆ area0Battle3

AreaBattle area0Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1061 of file wstag311.c.

◆ area0Battle4

AreaBattle area0Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1062 of file wstag311.c.

◆ area0Battle5

AreaBattle area0Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1063 of file wstag311.c.

◆ area0Battle6

AreaBattle area0Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1064 of file wstag311.c.

◆ area0Battle7

AreaBattle area0Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1065 of file wstag311.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
0,
}
AreaBattle area0Battle7
Definition wstag311.c:1065
AreaBattle area0Battle1
Definition wstag311.c:1059
AreaBattle area0Battle6
Definition wstag311.c:1064
AreaBattle area0Battle3
Definition wstag311.c:1061
AreaBattle area0Battle5
Definition wstag311.c:1063
AreaBattle area0Battle0
Definition wstag311.c:1058
AreaBattle area0Battle2
Definition wstag311.c:1060
AreaBattle area0Battle4
Definition wstag311.c:1062

Definition at line 1066 of file wstag311.c.

◆ area1Battle0

AreaBattle area1Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1071 of file wstag311.c.

◆ area1Battle1

AreaBattle area1Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1072 of file wstag311.c.

◆ area1Battle2

AreaBattle area1Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1073 of file wstag311.c.

◆ area1Battle3

AreaBattle area1Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1074 of file wstag311.c.

◆ area1Battle4

AreaBattle area1Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1075 of file wstag311.c.

◆ area1Battle5

AreaBattle area1Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1076 of file wstag311.c.

◆ area1Battle6

AreaBattle area1Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1077 of file wstag311.c.

◆ area1Battle7

AreaBattle area1Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1078 of file wstag311.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag311.c:1077
AreaBattle area1Battle2
Definition wstag311.c:1073
AreaBattle area1Battle4
Definition wstag311.c:1075
AreaBattle area1Battle5
Definition wstag311.c:1076
AreaBattle area1Battle3
Definition wstag311.c:1074
AreaBattle area1Battle0
Definition wstag311.c:1071
AreaBattle area1Battle1
Definition wstag311.c:1072
AreaBattle area1Battle7
Definition wstag311.c:1078

Definition at line 1079 of file wstag311.c.

◆ area2Battle0

AreaBattle area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1084 of file wstag311.c.

◆ area2Battle1

AreaBattle area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1085 of file wstag311.c.

◆ area2Battle2

AreaBattle area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1086 of file wstag311.c.

◆ area2Battle3

AreaBattle area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1087 of file wstag311.c.

◆ area2Battle4

AreaBattle area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1088 of file wstag311.c.

◆ area2Battle5

AreaBattle area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1089 of file wstag311.c.

◆ area2Battle6

AreaBattle area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1090 of file wstag311.c.

◆ area2Battle7

AreaBattle area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1091 of file wstag311.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag311.c:1091
AreaBattle area2Battle6
Definition wstag311.c:1090
AreaBattle area2Battle0
Definition wstag311.c:1084
AreaBattle area2Battle4
Definition wstag311.c:1088
AreaBattle area2Battle2
Definition wstag311.c:1086
AreaBattle area2Battle1
Definition wstag311.c:1085
AreaBattle area2Battle5
Definition wstag311.c:1089
AreaBattle area2Battle3
Definition wstag311.c:1087

Definition at line 1092 of file wstag311.c.

◆ area3Battle0

AreaBattle area3Battle0 = { 32, 18, (0x60000000 | ( 0x23 ) << 18 | ( 0 )) }

Definition at line 1097 of file wstag311.c.

◆ area3Battle1

AreaBattle area3Battle1 = { 198, 18, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 1098 of file wstag311.c.

◆ area3Battle2

AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1099 of file wstag311.c.

◆ area3Battle3

AreaBattle area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1100 of file wstag311.c.

◆ area3Battle4

AreaBattle area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1101 of file wstag311.c.

◆ area3Battle5

AreaBattle area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1102 of file wstag311.c.

◆ area3Battle6

AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1103 of file wstag311.c.

◆ area3Battle7

AreaBattle area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 1104 of file wstag311.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag311.c:1101
AreaBattle area3Battle3
Definition wstag311.c:1100
AreaBattle area3Battle0
Definition wstag311.c:1097
AreaBattle area3Battle2
Definition wstag311.c:1099
AreaBattle area3Battle1
Definition wstag311.c:1098
AreaBattle area3Battle6
Definition wstag311.c:1103
AreaBattle area3Battle5
Definition wstag311.c:1102
AreaBattle area3Battle7
Definition wstag311.c:1104

Definition at line 1105 of file wstag311.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag311.c:1105
BattleList area1Battles
Definition wstag311.c:1079
BattleList area2Battles
Definition wstag311.c:1092
BattleList area0Battles
Definition wstag311.c:1066

Definition at line 1110 of file wstag311.c.

Referenced by setupStage().

◆ stageImages

ActorImage stageImages[]
Initial value:
= {
{ 0x200, 0x100, 0x21C, 0x1A6, 0x70, 0xA6, 0x230, 0x1FE },
{ 0x200, 0x100, 0x200, 0x100, 0, 0, 0x220, 0x1FE },
{ 0x200, 0x100, 0x216, 0x138, 0x58, 0x38, 0x200, 0x1FD },
{ 0x200, 0x100, 0x208, 0x1BC, 0x20, 0xBC, 0x210, 0x1FD },
{ 0x200, 0x100, 0x210, 0x1BC, 0x40, 0xBC, 0x220, 0x1FD },
{ 0x200, 0x100, 0x200, 0x1BC, 0, 0xBC, 0x230, 0x1FD },
{ 0x1C0, 0x100, 0x1D2, 0x1D8, 0x248, 0xD8, 0x160, 0x1EE },
{ 0x1C0, 0x100, 0x1DA, 0x1D8, 0x268, 0xD8, 0x170, 0x1EE },
{ 0x140, 0x100, 0x176, 0x100, 0xD8, 0, 0x140, 0x1ED },
{ 0x140, 0x100, 0x176, 0x128, 0xD8, 0x28, 0x150, 0x1ED },
{ 0x1C0, 0x100, 0x1DE, 0x1A8, 0x278, 0xA8, 0x160, 0x1ED },
{ 0x1C0, 0x100, 0x1E8, 0x1A8, 0x2A0, 0xA8, 0x170, 0x1ED },
{ 0x1C0, 0x100, 0x1F2, 0x1A8, 0x2C8, 0xA8, 0x140, 0x1EC },
{ 0x180, 0x100, 0x19C, 0x198, 0x170, 0x98, 0x150, 0x1EC },
{ 0x180, 0x100, 0x1A6, 0x1D0, 0x198, 0xD0, 0x160, 0x1EC },
}

Definition at line 1113 of file wstag311.c.

Referenced by setupStage().

◆ actor0Conditions

u16 actor0Conditions[] = { (0x6000 | ( STORY_ASUKA_HEADQUARTERS )) , 1, 0xFFFF }

Definition at line 1130 of file wstag311.c.

◆ actor1Conditions

u16 actor1Conditions[] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF }

Definition at line 1131 of file wstag311.c.

◆ actor2Conditions

u16 actor2Conditions[] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF }

Definition at line 1132 of file wstag311.c.

◆ actor3Conditions

u16 actor3Conditions[] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF }

Definition at line 1133 of file wstag311.c.

◆ actor4Conditions

u16 actor4Conditions[]
Initial value:
= {
(0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1,
(( 0xC ) << 8 | ( 0x33 )) , 0,
0xFFFF ,
}
@ STORY_AMATERASU_BRIDGE
WSTAG206 (Amaterasu Bridge), event 922: an Attacker holds the bridge.
Definition story.h:133

Definition at line 1134 of file wstag311.c.

◆ actor5Conditions

u16 actor5Conditions[]
Initial value:
= {
(0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1,
(( 0xC ) << 8 | ( 0x33 )) , 0,
0xFFFF ,
}

Definition at line 1139 of file wstag311.c.

◆ actor6Conditions

u16 actor6Conditions[]
Initial value:
= {
(0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1,
(( 0xC ) << 8 | ( 0x33 )) , 0,
0xFFFF ,
}

Definition at line 1144 of file wstag311.c.

◆ actor7Conditions

u16 actor7Conditions[] = { (0x6000 | ( STORY_ASUKA_HEADQUARTERS )) , 1, 0xFFFF }

Definition at line 1149 of file wstag311.c.

◆ actor8Conditions

u16 actor8Conditions[] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, (( 0x40 ) << 8 | ( 0x5F )) , 0, 0xFFFF }

Definition at line 1150 of file wstag311.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, ((void *)0) , 1, 4, 0, 0, 1 }

Definition at line 1151 of file wstag311.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, ((void *)0) , 0xC, 5, 0, 0, 1 }

Definition at line 1152 of file wstag311.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, ((void *)0) , 0x65, 6, 0, 0, 1 }

Definition at line 1153 of file wstag311.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, ((void *)0) , 0x67, 7, 0, 0, 1 }

Definition at line 1154 of file wstag311.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, ((void *)0) , 0xD2, 8, 161, 441, 1 }

Definition at line 1155 of file wstag311.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, ((void *)0) , 0xD3, 9, 255, 489, 1 }

Definition at line 1156 of file wstag311.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, ((void *)0) , 0xD4, 0xA, 235, 452, 1 }

Definition at line 1157 of file wstag311.c.

◆ actor7

FieldActorEntry actor7 = { actor7Conditions, ((void *)0) , 0xD5, 0xB, 0, 0, 1 }

Definition at line 1158 of file wstag311.c.

◆ actor8

FieldActorEntry actor8 = { actor8Conditions, ((void *)0) , 0x102, 0xC, 464, 288, 1 }

Definition at line 1159 of file wstag311.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag311.c:1151
FieldActorEntry actor6
Definition wstag311.c:1157
FieldActorEntry actor5
Definition wstag311.c:1156
FieldActorEntry actor2
Definition wstag311.c:1153
FieldActorEntry actor4
Definition wstag311.c:1155
FieldActorEntry actor8
Definition wstag311.c:1159
FieldActorEntry actor7
Definition wstag311.c:1158
FieldActorEntry actor1
Definition wstag311.c:1152
FieldActorEntry actor3
Definition wstag311.c:1154

Definition at line 1160 of file wstag311.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 1, 0x40, 2, 0x33, 0, 0, 0, 0, 0, 584, 125, 0, 0 },
{ 1, 2, 0x40, 2, 0x3A, 0, 0, 0, 0, 0, 592, 144, 0, 0 },
{ 1, 3, 0x40, 2, 0x40, 0, 0, 0, 0, 0, 609, 140, 0, 0 },
{ 1, 4, 0x40, 2, 0x45, 0, 0, 0, 0, 0, 610, 167, 0, 0 },
{ 1, 0, 0x40, 2, 0x32, 2, 0, 5, 4, 0, 160, 509, 0, 0 },
{ 1, 0, 0x40, 2, 0x32, 2, 0, 5, 4, 0, 392, 457, 0, 0 },
{ 1, 0, 0x40, 2, 0x32, 2, 0, 5, 4, 0, 448, 339, 0, 0 },
{ 1, 0, 0x40, 2, 0x32, 2, 0, 5, 4, 0, 545, 307, 0, 0 },
{ 0, 6, 0x80, 2, 0x1C, 0, 0, 0, 0, 0, 550, 116, 0, 0 },
{ 0, 0xC, 0xFF, 2, 0x58, 0, 0, 0, 0, 0, 430, 103, 0, 0 },
{ 0, 8, 0x80, 2, 2, 0, 0, 0, 0, 0, 550, 116, 0, 0 },
{ 0, 9, 0x80, 2, 3, 0, 0, 0, 0, 0, 550, 116, 0, 0 },
{ 0, 0xA, 0x80, 2, 4, 0, 0, 0, 0, 0, 550, 116, 0, 0 },
{ 0, 5, 0x80, 2, 5, 0, 0, 0, 0, 0, 550, 116, 0, 0 },
{ 0, 7, 0x80, 2, 0x28, 0, 0, 0, 0, 0, 546, 112, 0, 0 },
{ 0, 0xE, 0xFF, 2, 0x11, 0, 0, 0, 0, 0, 430, 103, 0, 0 },
{ 0, 0xF, 0xFF, 2, 0x12, 0, 0, 0, 0, 0, 430, 103, 0, 0 },
{ 0, 0x10, 0xFF, 2, 0x13, 0, 0, 0, 0, 0, 430, 103, 0, 0 },
{ 0, 0xB, 0xFF, 2, 0x4C, 0, 0, 0, 0, 0, 430, 103, 0, 0 },
{ 0, 0xD, 0xFF, 2, 0x29, 0, 0, 0, 0, 0, 426, 99, 0, 0 },
{ 0, 0, 0x40, 6, 0x2A, 0, 0, 0, 0, 0, 271, 411, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 5, 4, 0, 72, 464, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 5, 4, 0, 178, 350, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 5, 4, 0, 303, 267, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 5, 4, 0, 369, 219, 0, 0 },
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 392, 328, 386, 0 },
{ 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 545, 243, 266, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
}

The tables and color setupStage gives FIELDSTG_state (FieldState)

Definition at line 1172 of file wstag311.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x287, 0x178, 0xFC, 1, 0, 0, 0 },
{ { { (0x6000 | ( STORY_OPERATION_SIGMA )) , 1 }, { 0xFFFF , 0 } }, 14 , 0x2DD, 0xE0, 0x418, 5, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}
@ STORY_OPERATION_SIGMA
WSTAG311 (A.o.A Headquarters, Amaterasu City), event 982, after event 981, where the A....
Definition story.h:141

Definition at line 1202 of file wstag311.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0002.
Definition wstag311.c:509

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 1207 of file wstag311.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 931, script931, ( ( 0x128 - 1) << 16 | ( 0x10 )), ((void *)0) , endEvent931 },
{ 932, script932, ( ( 0x128 - 1) << 16 | ( 0x11 )), ((void *)0) , endEvent932 },
{ 933, script933, ( ( 0x128 - 1) << 16 | ( 0x12 )), ((void *)0) , endEvent933 },
{ 934, script934, ( ( 0x128 - 1) << 16 | ( 0x13 )), ((void *)0) , endEvent934 },
{ 981, script981, ( ( 0x128 - 1) << 16 | ( 0x18 )), ((void *)0) , endEvent981 },
{ 982, script982, ( ( 0x128 - 1) << 16 | ( 0x19 )), ((void *)0) , endEvent982 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
s16 script981[]
Definition wstag311.c:881
s16 script982[]
Definition wstag311.c:928
void endEvent981(void)
After event 981, with the player: keeps it from playing again.
Definition wstag311.c:490
void endEvent982(void)
After event 982, with the player: moves the story on to STORY_OPERATION_SIGMA.
Definition wstag311.c:495
s16 script931[]
Definition wstag311.c:529
void endEvent931(void)
After event 931, with Royal Guard: starts the stage's event battle 1, sets flag 0x0C33 (which decides...
Definition wstag311.c:464
s16 script934[]
Definition wstag311.c:800
s16 script932[]
Definition wstag311.c:571
s16 script933[]
Definition wstag311.c:625
void endEvent934(void)
After event 934, with Teddy and Nick: keeps it from playing again.
Definition wstag311.c:485
void endEvent933(void)
After event 933, with Chief Officer, Nick, Lisa and Teddy: keeps it from playing again.
Definition wstag311.c:480
void endEvent932(void)
After event 932, with Chief Officer: starts the stage's event battle 0 and keeps it from playing agai...
Definition wstag311.c:474

Definition at line 1210 of file wstag311.c.

Referenced by setupStage().