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

WSTAG526: Zhu Que UG Lake, South Sector. More...

Include dependency graph for wstag526.c:

Go to the source code of this file.

Macros

#define STAGE_CHILDREN_SIZE   4
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_500 - 1)
 
#define STAGE_FILE   0x6B8
 

Functions

void * createClutTileTask (void)
 Creates the color-cycling map object by the Digi-Egg of Knowledge (updateClutTile), the one with animation 0x15.
 
void * createTileDuoTask (void)
 Creates the updateTileDuo task.
 
void * createStillTileTask (void)
 Creates the still map object by the Digi-Egg of Knowledge (updateStillTile), the one with animation 0x16.
 
StageWanderPair * createWanderPairTask (s32 tileAnim, s32 speedIndex, s32 start)
 Creates a pair of wandering map objects: tileAnim and tileAnim + 9.
 
void fadeOutClutTile ()
 
void fadeOutTileDuo ()
 
void fadeOutStillTile ()
 
void fadeOutWanderPair ()
 
void updateCommand829 (StageTask *task, void **children)
 Creates the stage's objects (three map objects and nine wandering pairs); in TASK_DONE tells them all to go away.
 
void handleCommand829 (StageTask *task, s32 id)
 Ends the task when map object 0x34B is triggered.
 
void * createCommand829 (s32 arg)
 Creates the task of updateCommand829 with an id.
 
void updateClutTile (StageTileSolo *task)
 Animates the map object of animation 0x15 (frame 2) while mode isn't 0; fades it out wait frames after mode 2.
 
void fadeOutClutTile (StageTileDuo *task, s32 command, s32 arg)
 Makes the color-cycling map object by the Digi-Egg of Knowledge fade out in 150 frames, once the player takes the egg (event 760); command and arg, a script command handler's (ScriptCommand.handle), are 0 and unread.
 
void * createClutTile (s32 arg)
 Creates the color-cycling map object by the Digi-Egg of Knowledge (updateClutTile) with an id; nothing in the game calls it.
 
void updateTileDuo (StageTileDuo *task)
 Animates the map objects of animations 0x13 and 0x14 while mode isn't 0; fades them out wait frames after mode 2.
 
void fadeOutTileDuo (StageTileDuo *task)
 Tells the task to go away after 90 frames (mode 2)
 
void updateStillTile (StageTileSolo *task)
 Shows the map object of animation 0x16 (frame 0x21) while mode isn't 0; fades it out wait frames after mode 2.
 
void fadeOutStillTile (StageTileDuo *task)
 Tells the task to go away after 40 frames (mode 2)
 
void * createStillTile (s32 arg)
 Creates the still map object by the Digi-Egg of Knowledge (updateStillTile) with an id; nothing in the game calls it.
 
s32 stepTileAnimation4 (StageTileAnim *obj, AnimFrame *frames, s32 once, s32 depth)
 stepTileAnimation (common/step_tile_animation.inc.c) under a fourth name, for the wandering pairs: steps OBJ's animation through FRAMES and returns its frame, looping at the end or returning 0xFF if once
 
s32 isFarFromHome (StageWanderPair *task, s32 dist)
 Whether the wandering pair is more than dist from home (in x + y)
 
void moveWanderPair (StageWanderPair *task)
 Moves the wandering pair, turning it every period frames: back home when it is more than 30 away, otherwise anywhere.
 
void updateWanderPair (StageWanderPair *task)
 One of the nine pairs of map objects that wander by the Digi-Egg of Knowledge: tileAnim and tileAnim + 9 move together, their colors cycling; when done they fade out.
 
void fadeOutWanderPair (StageWanderer *task)
 Makes the wandering pair fade out in 60 frames, once the player takes the Digi-Egg of Knowledge (event 760)
 
void * createWanderPair (s32 arg)
 Creates a wandering pair (updateWanderPair) with an id; nothing in the game calls it.
 
void updateStage (StageTask *task, void **children)
 The stage task: creates the object of map object 0x33D before progress 0x1E.
 
void endEvent760 (void)
 After event 760, with the player: moves the story on to STORY_DE_KNOWLEDGE and gives the player the DE Knowledge.
 
void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0015.
 

Variables

u16 angleTangents []
 Defined below, after the code that uses them.
 
AnimFrame * updateWanderPairFrames0 []
 
AnimFrame * updateWanderPairFrames1 []
 
u16 wanderPairSpeeds []
 
AnimFrame updateClutTileFrames0 []
 
AnimFrame updateClutTileFrames1 []
 
AnimFrame * updateTileDuoFrames0 []
 
AnimFrame * updateTileDuoFrames1 []
 
AnimFrame updateStillTileFrames []
 
s16 script760 []
 
AnimFrame updateTileDuoFrames0_0 []
 
AnimFrame updateTileDuoFrames1_0 []
 
AnimFrame updateTileDuoFrames0_1 []
 
AnimFrame updateTileDuoFrames1_1 []
 
AnimFrame updateWanderPairFrames0_0 []
 
AnimFrame updateWanderPairFrames1_0 []
 
AnimFrame updateWanderPairFrames0_1 []
 
AnimFrame updateWanderPairFrames1_1 []
 
AreaBattle area0Battle0 = { 158, 27, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 158, 27, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 158, 27, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 158, 27, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 158, 27, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 158, 27, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 158, 27, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 158, 27, (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 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 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 []
 
u16 actor2Talk0Conditions [] = { (0x8000 | ( 3 ) << 9 | ( 0x81 )), 1, 0xFFFF }
 
u16 actor2Talk1Conditions [] = { (0x8000 | ( 3 ) << 9 | ( 0x81 )), 0, (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor2Talk1Actions [] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor2Talk2Conditions [] = { (0x8000 | ( 3 ) << 9 | ( 0x81 )), 0, (( 0 ) << 8 | ( 0 )) , 1, (0x8000 | ( 2 ) << 9 | ( 0x7D )), 0, 0xFFFF }
 
u16 actor2Talk3Conditions [] = { (0x8000 | ( 3 ) << 9 | ( 0x81 )), 0, (( 0 ) << 8 | ( 0 )) , 1, (0x8000 | ( 2 ) << 9 | ( 0x7D )), 1, 0xFFFF }
 
u16 actor2Talk3Actions []
 
FieldTalk actor0Talks []
 
FieldTalk actor2Talks []
 
u16 actor0Conditions [] = { (( 2 ) << 8 | ( 0x1F )) , 0, 0xFFFF }
 
u16 actor1Conditions [] = { (0x6000 | ( STORY_BULBMON_BEATEN )) , 1, 0xFFFF }
 
u16 actor2Conditions []
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x21, 4, 545, 177, 1 }
 
FieldActorEntry actor1 = { actor1Conditions, ((void *)0) , 0x83, 5, 128, 178, 1 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0xAB, 6, 641, 291, 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

WSTAG526: Zhu Que UG Lake, South Sector.

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

Definition in file wstag526.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   4

Definition at line 573 of file wstag526.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)

Definition at line 590 of file wstag526.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_500 - 1)

Definition at line 591 of file wstag526.c.

◆ STAGE_FILE

#define STAGE_FILE   0x6B8

Definition at line 592 of file wstag526.c.

Function Documentation

◆ createClutTileTask()

void * createClutTileTask ( void  )

Creates the color-cycling map object by the Digi-Egg of Knowledge (updateClutTile), the one with animation 0x15.

Definition at line 170 of file wstag526.c.

Referenced by updateCommand829().

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

◆ createTileDuoTask()

void * createTileDuoTask ( void  )

Creates the updateTileDuo task.

Definition at line 2 of file create_tile_duo_task.inc.c.

Referenced by updateCommand829().

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

◆ createStillTileTask()

void * createStillTileTask ( void  )

Creates the still map object by the Digi-Egg of Knowledge (updateStillTile), the one with animation 0x16.

Definition at line 350 of file wstag526.c.

Referenced by updateCommand829().

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

◆ createWanderPairTask()

StageWanderPair * createWanderPairTask ( s32  tileAnim,
s32  speedIndex,
s32  start 
)

Creates a pair of wandering map objects: tileAnim and tileAnim + 9.

Definition at line 547 of file wstag526.c.

Referenced by updateCommand829().

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

◆ fadeOutClutTile() [1/2]

void fadeOutClutTile ( )

Referenced by updateCommand829().

Here is the caller graph for this function:

◆ fadeOutTileDuo() [1/2]

void fadeOutTileDuo ( )

Referenced by updateCommand829(), and updateCommand830().

Here is the caller graph for this function:

◆ fadeOutStillTile() [1/2]

void fadeOutStillTile ( )

Referenced by updateCommand829().

Here is the caller graph for this function:

◆ fadeOutWanderPair() [1/2]

void fadeOutWanderPair ( )

Referenced by updateCommand829().

Here is the caller graph for this function:

◆ updateCommand829()

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

Creates the stage's objects (three map objects and nine wandering pairs); in TASK_DONE tells them all to go away.

Definition at line 28 of file wstag526.c.

Referenced by createCommand829().

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

◆ handleCommand829()

void handleCommand829 ( StageTask *  task,
s32  id 
)

Ends the task when map object 0x34B is triggered.

Definition at line 69 of file wstag526.c.

◆ createCommand829()

void * createCommand829 ( s32  arg)

Creates the task of updateCommand829 with an id.

Definition at line 76 of file wstag526.c.

Referenced by updateStage().

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

◆ updateClutTile()

void updateClutTile ( StageTileSolo *  task)

Animates the map object of animation 0x15 (frame 2) while mode isn't 0; fades it out wait frames after mode 2.

Definition at line 83 of file wstag526.c.

Referenced by createClutTile(), and createClutTileTask().

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

◆ fadeOutClutTile() [2/2]

void fadeOutClutTile ( StageTileDuo *  task,
s32  command,
s32  arg 
)

Makes the color-cycling map object by the Digi-Egg of Knowledge fade out in 150 frames, once the player takes the egg (event 760); command and arg, a script command handler's (ScriptCommand.handle), are 0 and unread.

Definition at line 151 of file wstag526.c.

◆ createClutTile()

void * createClutTile ( s32  arg)

Creates the color-cycling map object by the Digi-Egg of Knowledge (updateClutTile) with an id; nothing in the game calls it.

Definition at line 162 of file wstag526.c.

Here is the call graph for this function:

◆ updateTileDuo()

void updateTileDuo ( StageTileDuo *  task)

Animates the map objects of animations 0x13 and 0x14 while mode isn't 0; fades them out wait frames after mode 2.

Definition at line 177 of file wstag526.c.

Here is the call graph for this function:

◆ fadeOutTileDuo() [2/2]

void fadeOutTileDuo ( StageTileDuo *  task)

Tells the task to go away after 90 frames (mode 2)

Definition at line 256 of file wstag526.c.

◆ updateStillTile()

void updateStillTile ( StageTileSolo *  task)

Shows the map object of animation 0x16 (frame 0x21) while mode isn't 0; fades it out wait frames after mode 2.

Definition at line 270 of file wstag526.c.

Referenced by createStillTile(), and createStillTileTask().

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

◆ fadeOutStillTile() [2/2]

void fadeOutStillTile ( StageTileDuo *  task)

Tells the task to go away after 40 frames (mode 2)

Definition at line 331 of file wstag526.c.

◆ createStillTile()

void * createStillTile ( s32  arg)

Creates the still map object by the Digi-Egg of Knowledge (updateStillTile) with an id; nothing in the game calls it.

Definition at line 342 of file wstag526.c.

Here is the call graph for this function:

◆ stepTileAnimation4()

s32 stepTileAnimation4 ( StageTileAnim *  obj,
AnimFrame *  frames,
s32  once,
s32  depth 
)

stepTileAnimation (common/step_tile_animation.inc.c) under a fourth name, for the wandering pairs: steps OBJ's animation through FRAMES and returns its frame, looping at the end or returning 0xFF if once

Definition at line 359 of file wstag526.c.

Referenced by stepTileAnimation4(), and updateWanderPair().

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

◆ isFarFromHome()

s32 isFarFromHome ( StageWanderPair *  task,
s32  dist 
)

Whether the wandering pair is more than dist from home (in x + y)

Definition at line 388 of file wstag526.c.

Referenced by moveWanderPair().

Here is the caller graph for this function:

◆ moveWanderPair()

void moveWanderPair ( StageWanderPair *  task)

Moves the wandering pair, turning it every period frames: back home when it is more than 30 away, otherwise anywhere.

Definition at line 407 of file wstag526.c.

Referenced by updateWanderPair().

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

◆ updateWanderPair()

void updateWanderPair ( StageWanderPair *  task)

One of the nine pairs of map objects that wander by the Digi-Egg of Knowledge: tileAnim and tileAnim + 9 move together, their colors cycling; when done they fade out.

Definition at line 434 of file wstag526.c.

Referenced by createWanderPair(), and createWanderPairTask().

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

◆ fadeOutWanderPair() [2/2]

void fadeOutWanderPair ( StageWanderer *  task)

Makes the wandering pair fade out in 60 frames, once the player takes the Digi-Egg of Knowledge (event 760)

Definition at line 534 of file wstag526.c.

◆ createWanderPair()

void * createWanderPair ( s32  arg)

Creates a wandering pair (updateWanderPair) with an id; nothing in the game calls it.

Definition at line 542 of file wstag526.c.

Here is the call graph for this function:

◆ updateStage()

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

The stage task: creates the object of map object 0x33D before progress 0x1E.

Definition at line 557 of file wstag526.c.

Here is the call graph for this function:

◆ endEvent760()

void endEvent760 ( void  )

After event 760, with the player: moves the story on to STORY_DE_KNOWLEDGE and gives the player the DE Knowledge.

Definition at line 580 of file wstag526.c.

◆ setupStage()

void setupStage ( void  )

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

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_0015: the UG Lake

< ENV_0015: the UG Lake

< 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 595 of file wstag526.c.

Variable Documentation

◆ angleTangents

u16 angleTangents[]
Initial value:
= {
0, 0x648, 0xC93, 0x12E2, 0x1936, 0x1F92, 0x259F, 0x2C6B,
0x32EB, 0x39C7, 0x401F, 0x46D7, 0x4DA7, 0x5491, 0x5B98, 0x62BF,
0x6A09, 0x7179, 0x7913, 0x80DB, 0x88B5, 0x9105, 0x9970, 0xA21B,
0xAB0D, 0xB44A, 0xBDDC, 0xC7C8, 0xD217, 0xDCD2, 0xE805, 0xF3BA,
0xFFFE, 0xFFFF,
}

Defined below, after the code that uses them.

Definition at line 715 of file wstag526.c.

◆ updateWanderPairFrames0

AnimFrame * updateWanderPairFrames0
Initial value:
= {
}
AnimFrame updateWanderPairFrames0_1[]
Definition wstag526.c:696
AnimFrame updateWanderPairFrames0_0[]
Definition wstag526.c:686

Definition at line 706 of file wstag526.c.

Referenced by updateWanderPair().

◆ updateWanderPairFrames1

AnimFrame * updateWanderPairFrames1
Initial value:
= {
}
AnimFrame updateWanderPairFrames1_1[]
Definition wstag526.c:701
AnimFrame updateWanderPairFrames1_0[]
Definition wstag526.c:691

Definition at line 709 of file wstag526.c.

Referenced by updateWanderPair().

◆ wanderPairSpeeds

u16 wanderPairSpeeds
Initial value:
= {
96, 80, 72, 64,
}

Definition at line 712 of file wstag526.c.

Referenced by updateWanderPair().

◆ updateClutTileFrames0

AnimFrame updateClutTileFrames0
Initial value:
= {
{ 0, 12 }, { 1, 12 }, { 2, 12 }, { 1, 12 },
{ 255, 0 },
}

Definition at line 652 of file wstag526.c.

Referenced by updateClutTile().

◆ updateClutTileFrames1

AnimFrame updateClutTileFrames1
Initial value:
= {
{ 0, 12 }, { 1, 12 }, { 2, 12 }, { 3, 12 },
{ 4, 12 }, { 5, 12 }, { 255, 0x3E7 },
}

Definition at line 656 of file wstag526.c.

Referenced by updateClutTile().

◆ updateTileDuoFrames0

AnimFrame* updateTileDuoFrames0[]
Initial value:
= {
}
AnimFrame updateTileDuoFrames0_1[]
Definition wstag526.c:668
AnimFrame updateTileDuoFrames0_0[]
Definition wstag526.c:660

Definition at line 676 of file wstag526.c.

Referenced by updateTileDuo().

◆ updateTileDuoFrames1

AnimFrame* updateTileDuoFrames1[]
Initial value:
= {
}
AnimFrame updateTileDuoFrames1_0[]
Definition wstag526.c:664
AnimFrame updateTileDuoFrames1_1[]
Definition wstag526.c:672

Definition at line 679 of file wstag526.c.

Referenced by updateTileDuo().

◆ updateStillTileFrames

AnimFrame updateStillTileFrames
Initial value:
= {
{ 33, 4 }, { 34, 4 }, { 35, 4 }, { 36, 4 },
{ 255, 0x3E7 },
}

Definition at line 682 of file wstag526.c.

Referenced by updateStillTile().

◆ script760

s16 script760[]

Definition at line 616 of file wstag526.c.

◆ updateTileDuoFrames0_0

AnimFrame updateTileDuoFrames0_0[]
Initial value:
= {
{ 37, 12 }, { 38, 12 }, { 39, 12 }, { 40, 12 },
{ 41, 12 }, { 42, 12 }, { 255, 0 },
}

Definition at line 660 of file wstag526.c.

◆ updateTileDuoFrames1_0

AnimFrame updateTileDuoFrames1_0[]
Initial value:
= {
{ 3, 4 }, { 4, 4 }, { 5, 4 }, { 6, 4 },
{ 7, 4 }, { 255, 0x3E7 },
}

Definition at line 664 of file wstag526.c.

◆ updateTileDuoFrames0_1

AnimFrame updateTileDuoFrames0_1[]
Initial value:
= {
{ 91, 12 }, { 92, 12 }, { 93, 12 }, { 94, 12 },
{ 95, 12 }, { 96, 12 }, { 255, 0 },
}

Definition at line 668 of file wstag526.c.

◆ updateTileDuoFrames1_1

AnimFrame updateTileDuoFrames1_1[]
Initial value:
= {
{ 8, 4 }, { 9, 4 }, { 10, 4 }, { 11, 4 },
{ 12, 4 }, { 255, 0x3E7 },
}

Definition at line 672 of file wstag526.c.

◆ updateWanderPairFrames0_0

AnimFrame updateWanderPairFrames0_0[]
Initial value:
= {
{ 0, 4 }, { 1, 4 }, { 2, 4 }, { 3, 4 },
{ 4, 4 }, { 5, 4 }, { 4, 4 }, { 3, 4 },
{ 2, 4 }, { 1, 4 }, { 255, 0 },
}

Definition at line 686 of file wstag526.c.

◆ updateWanderPairFrames1_0

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

Definition at line 691 of file wstag526.c.

◆ updateWanderPairFrames0_1

AnimFrame updateWanderPairFrames0_1[]
Initial value:
= {
{ 0, 4 }, { 1, 4 }, { 2, 4 }, { 3, 4 },
{ 4, 4 }, { 5, 4 }, { 4, 4 }, { 3, 4 },
{ 2, 4 }, { 1, 4 }, { 255, 0 },
}

Definition at line 696 of file wstag526.c.

◆ updateWanderPairFrames1_1

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

Definition at line 701 of file wstag526.c.

◆ area0Battle0

AreaBattle area0Battle0 = { 158, 27, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 722 of file wstag526.c.

◆ area0Battle1

AreaBattle area0Battle1 = { 158, 27, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 723 of file wstag526.c.

◆ area0Battle2

AreaBattle area0Battle2 = { 158, 27, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 724 of file wstag526.c.

◆ area0Battle3

AreaBattle area0Battle3 = { 158, 27, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 725 of file wstag526.c.

◆ area0Battle4

AreaBattle area0Battle4 = { 158, 27, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 726 of file wstag526.c.

◆ area0Battle5

AreaBattle area0Battle5 = { 158, 27, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 727 of file wstag526.c.

◆ area0Battle6

AreaBattle area0Battle6 = { 158, 27, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 728 of file wstag526.c.

◆ area0Battle7

AreaBattle area0Battle7 = { 158, 27, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 729 of file wstag526.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
3,
}
AreaBattle area0Battle7
Definition wstag526.c:729
AreaBattle area0Battle1
Definition wstag526.c:723
AreaBattle area0Battle6
Definition wstag526.c:728
AreaBattle area0Battle3
Definition wstag526.c:725
AreaBattle area0Battle5
Definition wstag526.c:727
AreaBattle area0Battle0
Definition wstag526.c:722
AreaBattle area0Battle2
Definition wstag526.c:724
AreaBattle area0Battle4
Definition wstag526.c:726

Definition at line 730 of file wstag526.c.

◆ area1Battle0

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

Definition at line 735 of file wstag526.c.

◆ area1Battle1

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

Definition at line 736 of file wstag526.c.

◆ area1Battle2

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

Definition at line 737 of file wstag526.c.

◆ area1Battle3

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

Definition at line 738 of file wstag526.c.

◆ area1Battle4

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

Definition at line 739 of file wstag526.c.

◆ area1Battle5

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

Definition at line 740 of file wstag526.c.

◆ area1Battle6

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

Definition at line 741 of file wstag526.c.

◆ area1Battle7

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

Definition at line 742 of file wstag526.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag526.c:741
AreaBattle area1Battle2
Definition wstag526.c:737
AreaBattle area1Battle4
Definition wstag526.c:739
AreaBattle area1Battle5
Definition wstag526.c:740
AreaBattle area1Battle3
Definition wstag526.c:738
AreaBattle area1Battle0
Definition wstag526.c:735
AreaBattle area1Battle1
Definition wstag526.c:736
AreaBattle area1Battle7
Definition wstag526.c:742

Definition at line 743 of file wstag526.c.

◆ area2Battle0

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

Definition at line 748 of file wstag526.c.

◆ area2Battle1

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

Definition at line 749 of file wstag526.c.

◆ area2Battle2

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

Definition at line 750 of file wstag526.c.

◆ area2Battle3

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

Definition at line 751 of file wstag526.c.

◆ area2Battle4

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

Definition at line 752 of file wstag526.c.

◆ area2Battle5

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

Definition at line 753 of file wstag526.c.

◆ area2Battle6

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

Definition at line 754 of file wstag526.c.

◆ area2Battle7

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

Definition at line 755 of file wstag526.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag526.c:755
AreaBattle area2Battle6
Definition wstag526.c:754
AreaBattle area2Battle0
Definition wstag526.c:748
AreaBattle area2Battle4
Definition wstag526.c:752
AreaBattle area2Battle2
Definition wstag526.c:750
AreaBattle area2Battle1
Definition wstag526.c:749
AreaBattle area2Battle5
Definition wstag526.c:753
AreaBattle area2Battle3
Definition wstag526.c:751

Definition at line 756 of file wstag526.c.

◆ area3Battle0

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

Definition at line 761 of file wstag526.c.

◆ area3Battle1

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

Definition at line 762 of file wstag526.c.

◆ area3Battle2

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

Definition at line 763 of file wstag526.c.

◆ area3Battle3

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

Definition at line 764 of file wstag526.c.

◆ area3Battle4

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

Definition at line 765 of file wstag526.c.

◆ area3Battle5

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

Definition at line 766 of file wstag526.c.

◆ area3Battle6

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

Definition at line 767 of file wstag526.c.

◆ area3Battle7

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

Definition at line 768 of file wstag526.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag526.c:765
AreaBattle area3Battle3
Definition wstag526.c:764
AreaBattle area3Battle0
Definition wstag526.c:761
AreaBattle area3Battle2
Definition wstag526.c:763
AreaBattle area3Battle1
Definition wstag526.c:762
AreaBattle area3Battle6
Definition wstag526.c:767
AreaBattle area3Battle5
Definition wstag526.c:766
AreaBattle area3Battle7
Definition wstag526.c:768

Definition at line 769 of file wstag526.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag526.c:769
BattleList area1Battles
Definition wstag526.c:743
BattleList area2Battles
Definition wstag526.c:756
BattleList area0Battles
Definition wstag526.c:730

Definition at line 774 of file wstag526.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, 0x1AE, 0x118, 0x1B8, 0x18, 0x170, 0x1F5 },
{ 0x180, 0x100, 0x180, 0x138, 0x100, 0x38, 0x140, 0x1F4 },
{ 0x140, 0x100, 0x175, 0x120, 0xD4, 0x20, 0x150, 0x1F4 },
}

Definition at line 777 of file wstag526.c.

Referenced by setupStage().

◆ actor0Talk0Actions

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

Definition at line 788 of file wstag526.c.

◆ actor2Talk0Conditions

u16 actor2Talk0Conditions[] = { (0x8000 | ( 3 ) << 9 | ( 0x81 )), 1, 0xFFFF }

Definition at line 794 of file wstag526.c.

◆ actor2Talk1Conditions

u16 actor2Talk1Conditions[] = { (0x8000 | ( 3 ) << 9 | ( 0x81 )), 0, (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 795 of file wstag526.c.

◆ actor2Talk1Actions

u16 actor2Talk1Actions[] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 796 of file wstag526.c.

◆ actor2Talk2Conditions

u16 actor2Talk2Conditions[] = { (0x8000 | ( 3 ) << 9 | ( 0x81 )), 0, (( 0 ) << 8 | ( 0 )) , 1, (0x8000 | ( 2 ) << 9 | ( 0x7D )), 0, 0xFFFF }

Definition at line 797 of file wstag526.c.

◆ actor2Talk3Conditions

u16 actor2Talk3Conditions[] = { (0x8000 | ( 3 ) << 9 | ( 0x81 )), 0, (( 0 ) << 8 | ( 0 )) , 1, (0x8000 | ( 2 ) << 9 | ( 0x7D )), 1, 0xFFFF }

Definition at line 798 of file wstag526.c.

◆ actor2Talk3Actions

u16 actor2Talk3Actions[]
Initial value:
= {
(0x8000 | ( 3 ) << 9 | ( 0x81 )), 1,
(0x8000 | ( 3 ) << 9 | ( 0x80 )), 0,
(0x8000 | ( 2 ) << 9 | ( 0x7D )), 0,
(0x7000 | ( 0x13 )) , 1,
0xFFFF ,
}

Definition at line 799 of file wstag526.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x17F },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag526.c:788

Definition at line 806 of file wstag526.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ actor2Talk0Conditions, ((void *)0) , 0x2E2 },
{ actor2Talk2Conditions, ((void *)0) , 0x2E4 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk1Conditions[]
Definition wstag526.c:795
u16 actor2Talk3Conditions[]
Definition wstag526.c:798
u16 actor2Talk1Actions[]
Definition wstag526.c:796
u16 actor2Talk2Conditions[]
Definition wstag526.c:797
u16 actor2Talk3Actions[]
Definition wstag526.c:799
u16 actor2Talk0Conditions[]
Definition wstag526.c:794

Definition at line 810 of file wstag526.c.

◆ actor0Conditions

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

Definition at line 817 of file wstag526.c.

◆ actor1Conditions

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

Definition at line 818 of file wstag526.c.

◆ actor2Conditions

u16 actor2Conditions[]
Initial value:
= {
(0x7000 | ( 0x43 )) , 1,
(0x7000 | ( 0x4B )) , 1,
(0x8000 | ( 3 ) << 9 | ( 0x80 )), 1,
(0x8000 | ( 3 ) << 9 | ( 0x81 )), 0,
0xFFFF ,
}

Definition at line 819 of file wstag526.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x21, 4, 545, 177, 1 }

Definition at line 826 of file wstag526.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, ((void *)0) , 0x83, 5, 128, 178, 1 }

Definition at line 827 of file wstag526.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0xAB, 6, 641, 291, 1 }

Definition at line 828 of file wstag526.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag526.c:826
FieldActorEntry actor2
Definition wstag526.c:828
FieldActorEntry actor1
Definition wstag526.c:827

Definition at line 829 of file wstag526.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]

The tables and color setupStage gives FIELDSTG_state (FieldState)

Definition at line 835 of file wstag526.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { (0x7000 | ( 0x93 )) , 1 }, { 0xFFFF , 0 } }, 10 , 0x2E0, 0x240, 0xD8, 1, 0, 0x11, 1 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 5, 0x22F, 0x3C8, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 5, 0x220, 0x372, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 5, 0x251, 0x2F7, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 5, 0x260, 0x2A1, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 0xA, 0x1C0, 0x181, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 0xA, 0x1D0, 0xDA, 0, 0, 0, 0 },
{ { { (0x6000 | ( STORY_BULBMON_BEATEN )) , 1 }, { 0xFFFF , 0 } }, 8 , 0x2F8, 0, 0, 0, 0, 0, 0 },
{ { { (0x7000 | ( 0x93 )) , 1 }, { 0xFFFF , 0 } }, 10 , 0x2E0, 0x240, 0xD8, 1, 0, 0x11, 1 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}
@ STORY_BULBMON_BEATEN
WSTAG521 (Zhu Que Hall), event 751: Bulbmon is beaten (the Red ID Pass); its hole leads on to the Ama...
Definition story.h:112

Definition at line 866 of file wstag526.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_0015.
Definition wstag526.c:595

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 878 of file wstag526.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 760, script760, ( ( 0x13D - 1) << 16 | ( 0x23 )), ((void *)0) , endEvent760 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void endEvent760(void)
After event 760, with the player: moves the story on to STORY_DE_KNOWLEDGE and gives the player the D...
Definition wstag526.c:580
s16 script760[]
Definition wstag526.c:616

Definition at line 881 of file wstag526.c.

Referenced by setupStage().