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

WSTAG545: Bug Maze Pit, Network Break. More...

Include dependency graph for wstag545.c:

Go to the source code of this file.

Macros

#define STAGE_CHILDREN_SIZE   0xC
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_06)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_500 - 1)
 
#define STAGE_FILE   0x276
 
#define STAGE_ARCHIVE   0x3DF
 

Functions

s32 stepHeldAnimation (StageTileAnim *obj, AnimFrame *frames, s32 depth)
 Steps an animation, holding its last frame, and returns the frame.
 
void updateTileAt (StageTileAt *task)
 Moves the map object with the given animation to (x, y); hidden while running, shown and animated when done.
 
StageTileAt * createTileAt (s32 anim, s32 x, s32 y)
 Creates a StageTileAt for the map object with the given animation.
 
void updateTileTask (StageTileTask *task)
 Shows the map object with animation 1 (frame 0x18); when done, animates it once with a sound and goes back to TASK_RUN.
 
void handleCommand847 (StageTask *task, s32 id)
 Command 847 of the event scripts: told 0x35A in event 710 (Bulbmon's earthquake), ends its task.
 
void * createTileTask (s32 arg)
 Creates the map object that event 710, Bulbmon's earthquake, sets off (updateTileTask), with an id.
 
static void playSwitchOnce (StageTileSwitch *task, StageTile *tile, s32 n, s32 done, s32 next)
 Plays the switch's animation N once (from its start, on step 0), then holds frame DONE and goes on to substate NEXT.
 
void updateTileSwitch (StageTileSwitch *task, StageTileAts *children)
 The switch, the map object with animation 2, played by substate (events 0x35D to 0x35F); also sets the child that events 0x360 to 0x364 pick to TASK_DONE.
 
void handleCommand848 (void *arg, s32 id)
 Events 0x35D to 0x364: animate the map object (substates 1, 3, 5) or pick a child to set to TASK_DONE.
 
void * createCommand848 (s32 id)
 Creates the task of updateTileSwitch with the given id.
 
void updateStage (StageTask *task, void **children)
 Creates the stage object of flag 0x4051, and the event object of story progress 0x1A.
 
void endEvent710 (void)
 After event 710, with the player: starts the stage's event battle 0 and keeps it from playing again.
 
void endEvent711 (void)
 After event 711, with the player: moves the story on to STORY_JUNGLE_SOUND.
 
void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing BGM_0017.
 

Variables

AnimFrame updateTileAtFrames []
 Defined below, after the code that uses them.
 
AnimFrame updateTileTaskFrames []
 
AnimFrame * updateTileSwitchFrames [3] = { updateTileSwitchFrames_0, updateTileSwitchFrames_1, updateTileSwitchFrames_2 }
 
StageTileAtSpot updateTileSwitchSpots []
 
s16 script710 []
 
s16 script711 []
 
AnimFrame updateTileSwitchFrames_0 []
 
AnimFrame updateTileSwitchFrames_1 []
 
AnimFrame updateTileSwitchFrames_2 []
 
AreaBattle area0Battle0 = { 165, 10, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 165, 10, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 173, 10, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 173, 10, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 150, 10, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 150, 10, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 150, 10, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 92, 10, (0x60000000 | ( 2 ) << 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 = { 12, 10, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle1 = { 315, 10, (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 actor0Talk0Actions []
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
u16 actor0Conditions [] = { (( 2 ) << 8 | ( 0x1B )) , 0, 0xFFFF }
 
u16 actor1Conditions [] = { (0x6000 | ( STORY_BULBMON_FOUND )) , 1, 0xFFFF }
 
u16 actor2Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor3Conditions [] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF }
 
u16 actor4Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x21, 4, 785, 697, 1 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x45, 5, 559, 1145, 1 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x45, 5, 559, 1145, 1 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x45, 5, 559, 1145, 1 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x45, 5, 559, 1145, 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

WSTAG545: Bug Maze Pit, Network Break.

Definition in file wstag545.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   0xC

Definition at line 308 of file wstag545.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_06)

Definition at line 331 of file wstag545.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_500 - 1)

Definition at line 332 of file wstag545.c.

◆ STAGE_FILE

#define STAGE_FILE   0x276

Definition at line 333 of file wstag545.c.

◆ STAGE_ARCHIVE

#define STAGE_ARCHIVE   0x3DF

Definition at line 334 of file wstag545.c.

Function Documentation

◆ stepHeldAnimation()

s32 stepHeldAnimation ( StageTileAnim *  obj,
AnimFrame *  frames,
s32  depth 
)

Steps an animation, holding its last frame, and returns the frame.

Definition at line 14 of file wstag545.c.

Referenced by stepHeldAnimation(), and updateTileAt().

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

◆ updateTileAt()

void updateTileAt ( StageTileAt *  task)

Moves the map object with the given animation to (x, y); hidden while running, shown and animated when done.

Definition at line 39 of file wstag545.c.

Referenced by createTileAt().

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

◆ createTileAt()

StageTileAt * createTileAt ( s32  anim,
s32  x,
s32  y 
)

Creates a StageTileAt for the map object with the given animation.

Definition at line 76 of file wstag545.c.

Referenced by updateTileSwitch().

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

◆ updateTileTask()

void updateTileTask ( StageTileTask *  task)

Shows the map object with animation 1 (frame 0x18); when done, animates it once with a sound and goes back to TASK_RUN.

Definition at line 88 of file wstag545.c.

Referenced by createTileTask().

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

◆ handleCommand847()

void handleCommand847 ( StageTask *  task,
s32  id 
)

Command 847 of the event scripts: told 0x35A in event 710 (Bulbmon's earthquake), ends its task.

Definition at line 139 of file wstag545.c.

◆ createTileTask()

void * createTileTask ( s32  arg)

Creates the map object that event 710, Bulbmon's earthquake, sets off (updateTileTask), with an id.

Definition at line 149 of file wstag545.c.

Referenced by updateStage().

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

◆ playSwitchOnce()

static void playSwitchOnce ( StageTileSwitch *  task,
StageTile *  tile,
s32  n,
s32  done,
s32  next 
)
inlinestatic

Plays the switch's animation N once (from its start, on step 0), then holds frame DONE and goes on to substate NEXT.

Definition at line 159 of file wstag545.c.

Referenced by updateTileSwitch().

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

◆ updateTileSwitch()

void updateTileSwitch ( StageTileSwitch *  task,
StageTileAts *  children 
)

The switch, the map object with animation 2, played by substate (events 0x35D to 0x35F); also sets the child that events 0x360 to 0x364 pick to TASK_DONE.

Definition at line 182 of file wstag545.c.

Referenced by createCommand848().

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

◆ handleCommand848()

void handleCommand848 ( void *  arg,
s32  id 
)

Events 0x35D to 0x364: animate the map object (substates 1, 3, 5) or pick a child to set to TASK_DONE.

Definition at line 246 of file wstag545.c.

◆ createCommand848()

void * createCommand848 ( s32  id)

Creates the task of updateTileSwitch with the given id.

Definition at line 284 of file wstag545.c.

Here is the call graph for this function:

◆ updateStage()

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

Creates the stage object of flag 0x4051, and the event object of story progress 0x1A.

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

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

Definition at line 289 of file wstag545.c.

Here is the call graph for this function:

◆ endEvent710()

void endEvent710 ( void  )

After event 710, with the player: 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 315 of file wstag545.c.

◆ endEvent711()

void endEvent711 ( void  )

After event 711, with the player: moves the story on to STORY_JUNGLE_SOUND.

Definition at line 321 of file wstag545.c.

◆ setupStage()

void setupStage ( void  )

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

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_0017: the Bug Maze (Network Break)

< BGM_0017: the Bug Maze (Network Break)

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

< a cell's value: its battle area (FieldBattles), or 0

Definition at line 337 of file wstag545.c.

Variable Documentation

◆ updateTileAtFrames

AnimFrame updateTileAtFrames
Initial value:
= {
{ 11, 4 }, { 12, 4 }, { 13, 7 }, { 14, 9 },
{ 15, 10 }, { 16, 8 }, { 17, 4 }, { 18, 4 },
{ 19, 4 }, { 20, 4 }, { 21, 4 }, { 22, 4 },
{ 23, 100 }, { 255, 0 },
}

Defined below, after the code that uses them.

Definition at line 436 of file wstag545.c.

Referenced by updateTileAt().

◆ updateTileTaskFrames

AnimFrame updateTileTaskFrames
Initial value:
= {
{ 9, 25 }, { 8, 4 }, { 7, 4 }, { 6, 4 },
{ 5, 4 }, { 4, 4 }, { 3, 6 }, { 2, 7 },
{ 1, 8 }, { 0, 8 }, { 1, 10 }, { 2, 10 },
{ 3, 10 }, { 4, 10 }, { 5, 10 }, { 6, 10 },
{ 7, 10 }, { 8, 10 }, { 255, 0x3E7 },
}

Definition at line 442 of file wstag545.c.

Referenced by updateTileTask().

◆ updateTileSwitchFrames

Definition at line 460 of file wstag545.c.

Referenced by playSwitchOnce(), and updateTileSwitch().

◆ updateTileSwitchSpots

StageTileAtSpot updateTileSwitchSpots
Initial value:
= {
{ 0x288, 0x1D7, 3 },
{ 0x32F, 0x170, 4 },
{ 0x250, 0x11F, 5 },
{ 0x307, 0x1C9, 6 },
{ 0x234, 0x171, 7 },
}

Definition at line 461 of file wstag545.c.

Referenced by updateTileSwitch().

◆ script710

s16 script710[]

Definition at line 358 of file wstag545.c.

◆ script711

s16 script711[]
Initial value:
= {
0x601, 1 , 0x29A , 0x184 ,
0x100, 2 , 0x268 , 0x19C ,
0x101, 2 , 1 , 5 ,
0x300, 0x78 ,
0x200, 0 , 1 , 2 , 2 ,
0x301 ,
0x300, 0x1E ,
0x101, 0x323 , 0x325 , 2 ,
0x300, 0x3C ,
0x101, 0x323 , 0x326 , 2 ,
0x300, 0x1E ,
0x200, 0 , 2 , 2 , 2 ,
0x301 ,
0x300, 0x1E ,
0x102, 2 , 0x268 , 0x168 , 5 ,
0x302, 2 ,
0x102, 2 , 0x2A8 , 0x148 , 5 ,
0x300, 6 ,
0x304, 0x245 , 0x708 , 0x20C , 3 ,
0 ,
}

Definition at line 414 of file wstag545.c.

◆ updateTileSwitchFrames_0

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

Definition at line 449 of file wstag545.c.

◆ updateTileSwitchFrames_1

AnimFrame updateTileSwitchFrames_1[]
Initial value:
= {
{ 10, 4 }, { 9, 10 }, { 255, 0x3E7 },
}

Definition at line 454 of file wstag545.c.

◆ updateTileSwitchFrames_2

AnimFrame updateTileSwitchFrames_2[]
Initial value:
= {
{ 10, 4 }, { 9, 4 }, { 255, 0 },
}

Definition at line 457 of file wstag545.c.

◆ area0Battle0

AreaBattle area0Battle0 = { 165, 10, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 468 of file wstag545.c.

◆ area0Battle1

AreaBattle area0Battle1 = { 165, 10, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 469 of file wstag545.c.

◆ area0Battle2

AreaBattle area0Battle2 = { 173, 10, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 470 of file wstag545.c.

◆ area0Battle3

AreaBattle area0Battle3 = { 173, 10, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 471 of file wstag545.c.

◆ area0Battle4

AreaBattle area0Battle4 = { 150, 10, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 472 of file wstag545.c.

◆ area0Battle5

AreaBattle area0Battle5 = { 150, 10, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 473 of file wstag545.c.

◆ area0Battle6

AreaBattle area0Battle6 = { 150, 10, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 474 of file wstag545.c.

◆ area0Battle7

AreaBattle area0Battle7 = { 92, 10, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 475 of file wstag545.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
4,
}
AreaBattle area0Battle7
Definition wstag545.c:475
AreaBattle area0Battle1
Definition wstag545.c:469
AreaBattle area0Battle6
Definition wstag545.c:474
AreaBattle area0Battle3
Definition wstag545.c:471
AreaBattle area0Battle5
Definition wstag545.c:473
AreaBattle area0Battle0
Definition wstag545.c:468
AreaBattle area0Battle2
Definition wstag545.c:470
AreaBattle area0Battle4
Definition wstag545.c:472

Definition at line 476 of file wstag545.c.

◆ area1Battle0

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

Definition at line 481 of file wstag545.c.

◆ area1Battle1

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

Definition at line 482 of file wstag545.c.

◆ area1Battle2

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

Definition at line 483 of file wstag545.c.

◆ area1Battle3

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

Definition at line 484 of file wstag545.c.

◆ area1Battle4

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

Definition at line 485 of file wstag545.c.

◆ area1Battle5

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

Definition at line 486 of file wstag545.c.

◆ area1Battle6

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

Definition at line 487 of file wstag545.c.

◆ area1Battle7

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

Definition at line 488 of file wstag545.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag545.c:487
AreaBattle area1Battle2
Definition wstag545.c:483
AreaBattle area1Battle4
Definition wstag545.c:485
AreaBattle area1Battle5
Definition wstag545.c:486
AreaBattle area1Battle3
Definition wstag545.c:484
AreaBattle area1Battle0
Definition wstag545.c:481
AreaBattle area1Battle1
Definition wstag545.c:482
AreaBattle area1Battle7
Definition wstag545.c:488

Definition at line 489 of file wstag545.c.

◆ area2Battle0

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

Definition at line 494 of file wstag545.c.

◆ area2Battle1

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

Definition at line 495 of file wstag545.c.

◆ area2Battle2

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

Definition at line 496 of file wstag545.c.

◆ area2Battle3

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

Definition at line 497 of file wstag545.c.

◆ area2Battle4

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

Definition at line 498 of file wstag545.c.

◆ area2Battle5

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

Definition at line 499 of file wstag545.c.

◆ area2Battle6

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

Definition at line 500 of file wstag545.c.

◆ area2Battle7

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

Definition at line 501 of file wstag545.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag545.c:501
AreaBattle area2Battle6
Definition wstag545.c:500
AreaBattle area2Battle0
Definition wstag545.c:494
AreaBattle area2Battle4
Definition wstag545.c:498
AreaBattle area2Battle2
Definition wstag545.c:496
AreaBattle area2Battle1
Definition wstag545.c:495
AreaBattle area2Battle5
Definition wstag545.c:499
AreaBattle area2Battle3
Definition wstag545.c:497

Definition at line 502 of file wstag545.c.

◆ area3Battle0

AreaBattle area3Battle0 = { 12, 10, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }

Definition at line 507 of file wstag545.c.

◆ area3Battle1

AreaBattle area3Battle1 = { 315, 10, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }

Definition at line 508 of file wstag545.c.

◆ area3Battle2

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

Definition at line 509 of file wstag545.c.

◆ area3Battle3

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

Definition at line 510 of file wstag545.c.

◆ area3Battle4

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

Definition at line 511 of file wstag545.c.

◆ area3Battle5

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

Definition at line 512 of file wstag545.c.

◆ area3Battle6

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

Definition at line 513 of file wstag545.c.

◆ area3Battle7

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

Definition at line 514 of file wstag545.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag545.c:511
AreaBattle area3Battle3
Definition wstag545.c:510
AreaBattle area3Battle0
Definition wstag545.c:507
AreaBattle area3Battle2
Definition wstag545.c:509
AreaBattle area3Battle1
Definition wstag545.c:508
AreaBattle area3Battle6
Definition wstag545.c:513
AreaBattle area3Battle5
Definition wstag545.c:512
AreaBattle area3Battle7
Definition wstag545.c:514

Definition at line 515 of file wstag545.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag545.c:515
BattleList area1Battles
Definition wstag545.c:489
BattleList area2Battles
Definition wstag545.c:502
BattleList area0Battles
Definition wstag545.c:476

Definition at line 520 of file wstag545.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 },
{ 0x180, 0x100, 0x1A8, 0x1C8, 0x1A0, 0xC8, 0x150, 0x1FC },
{ 0x180, 0x100, 0x1A0, 0x1C8, 0x180, 0xC8, 0x160, 0x1FC },
}

Definition at line 523 of file wstag545.c.

Referenced by setupStage().

◆ actor0Talk0Actions

u16 actor0Talk0Actions[]
Initial value:
= {
(( 2 ) << 8 | ( 0x1B )) , 1,
(0x8000 | ( 5 ) << 9 | ( 0x109 )), 1,
(0x7000 | ( 0x13 )) , 1,
0xFFFF ,
}

Definition at line 533 of file wstag545.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x264 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag545.c:533

Definition at line 539 of file wstag545.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x25 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 543 of file wstag545.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x12C },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 547 of file wstag545.c.

◆ actor3Talks

FieldTalk actor3Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x26 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 551 of file wstag545.c.

◆ actor4Talks

FieldTalk actor4Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x110 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 555 of file wstag545.c.

◆ actor0Conditions

u16 actor0Conditions[] = { (( 2 ) << 8 | ( 0x1B )) , 0, 0xFFFF }

Definition at line 559 of file wstag545.c.

◆ actor1Conditions

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

Definition at line 560 of file wstag545.c.

◆ actor2Conditions

u16 actor2Conditions[] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }

Definition at line 561 of file wstag545.c.

◆ actor3Conditions

u16 actor3Conditions[] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF }

Definition at line 562 of file wstag545.c.

◆ actor4Conditions

u16 actor4Conditions[] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }

Definition at line 563 of file wstag545.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x21, 4, 785, 697, 1 }

Definition at line 564 of file wstag545.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x45, 5, 559, 1145, 1 }

Definition at line 565 of file wstag545.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x45, 5, 559, 1145, 1 }

Definition at line 566 of file wstag545.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x45, 5, 559, 1145, 1 }

Definition at line 567 of file wstag545.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x45, 5, 559, 1145, 1 }

Definition at line 568 of file wstag545.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag545.c:564
FieldActorEntry actor2
Definition wstag545.c:566
FieldActorEntry actor4
Definition wstag545.c:568
FieldActorEntry actor1
Definition wstag545.c:565
FieldActorEntry actor3
Definition wstag545.c:567

Definition at line 569 of file wstag545.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x64, 2, 0x63, 0, 0, 0, 0, 0, 529, 465, 0, 0 },
{ 1, 0, 0x64, 2, 0x61, 0, 0, 0, 0, 0, 427, 1040, 0, 0 },
{ 1, 0, 0x64, 2, 0x61, 0, 0, 0, 0, 0, 546, 1044, 0, 0 },
{ 1, 0, 0x64, 2, 0x62, 0, 0, 0, 0, 0, 502, 1051, 0, 0 },
{ 0, 2, 0x80, 4, 0, 0, 0, 0, 0, 0, 701, 371, 371, 0 },
{ 0, 7, 0xF0, 4, 0xB, 0, 0, 0, 0, 0, 564, 369, 369, 0 },
{ 0, 5, 0xF0, 4, 0xB, 0, 0, 0, 0, 0, 592, 287, 287, 0 },
{ 0, 3, 0xF0, 4, 0xB, 0, 0, 0, 0, 0, 648, 471, 471, 0 },
{ 0, 6, 0xF0, 4, 0xB, 0, 0, 0, 0, 0, 775, 457, 457, 0 },
{ 0, 4, 0xF0, 4, 0xB, 0, 0, 0, 0, 0, 815, 368, 368, 0 },
{ 0, 1, 0x50, 4, 0x18, 0, 0, 0, 0, 0, 663, 340, 370, 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 577 of file wstag545.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x245, 0x708, 0x20C, 3, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x245, 0x708, 0x2DC, 3, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x245, 0x708, 0x3BC, 3, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x245, 0x708, 0x50E, 3, 0, 0, 0 },
{ { { (0x6000 | ( STORY_BULBMON_FOUND )) , 1 }, { (( 0x40 ) << 8 | ( 0x51 )) , 0 } }, 8 , 0x2C6, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}
@ STORY_BULBMON_FOUND
WSTAG520 (Suzaku Hall), event 695: another earthquake; Bulbmon digs the holes.
Definition story.h:103

Definition at line 591 of file wstag545.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 BGM_0017.
Definition wstag545.c:337

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 599 of file wstag545.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 710, script710, ( ( 0x13D - 1) << 16 | ( 0x21 )), ((void *)0) , endEvent710 },
{ 711, script711, ( ( 0x13D - 1) << 16 | ( 0x1F )), ((void *)0) , endEvent711 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void endEvent710(void)
After event 710, with the player: starts the stage's event battle 0 and keeps it from playing again.
Definition wstag545.c:315
void endEvent711(void)
After event 711, with the player: moves the story on to STORY_JUNGLE_SOUND.
Definition wstag545.c:321
s16 script711[]
Definition wstag545.c:414
s16 script710[]
Definition wstag545.c:358

Definition at line 602 of file wstag545.c.

Referenced by setupStage().