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

WSTAG405: Tyranno Valley, East Sector. More...

Include dependency graph for wstag405.c:

Go to the source code of this file.

Macros

#define STAGE_CHILDREN_SIZE   0x8
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_06)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_400 - 1)
 
#define STAGE_FILE   0x257
 
#define STAGE_ARCHIVE   0x3D9
 

Functions

void updateStage (StageTask *task, void **children)
 Creates the event object of progress 4 when flag 0x400F is set and 0x4010 is not, and the stage helper task.
 
void endEvent60 (void)
 After event 60, with MasterTyranno: lets event 61 start and starts the stage's event battle 0.
 
void endEvent61 (void)
 After event 61, with MasterTyranno: gives the player the Old Claw and keeps it from playing again.
 
void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0007.
 

Variables

AnimFrame updateTileAnimsFrames []
 Defined below, after the code that uses them.
 
s16 script60 []
 
s16 script61 []
 
AreaBattle area0Battle0 = { 50, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 50, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 50, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 52, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 52, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList area0Battles
 
AreaBattle area1Battle0 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle1 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle2 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle3 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle4 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle5 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle6 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle7 = { 51, 4, (0x60000000 | ( 2 ) << 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 = { 2, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle1 = { 310, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList area3Battles
 
FieldBattles stageBattles []
 
ActorImage stageImages []
 
u16 actor0Talk0Conditions [] = { (( 0x1A ) << 8 | ( 0x2D )) , 0, 0xFFFF }
 
u16 actor0Talk0Actions [] = { (( 0x1A ) << 8 | ( 0x2D )) , 1, 0xFFFF }
 
u16 actor0Talk1Conditions [] = { (( 0x1A ) << 8 | ( 0x2D )) , 1, (0x7000 | ( 0x2A )) , 0, 0xFFFF }
 
u16 actor0Talk2Conditions []
 
u16 actor0Talk3Conditions []
 
u16 actor0Talk3Actions [] = { (( 6 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor0Talk4Conditions []
 
u16 actor1Talk0Conditions [] = { (0x7000 | ( 0xB )) , 0, 0xFFFF }
 
u16 actor1Talk0Actions [] = { (0x7000 | ( 0x31 )) , 1, (0x7000 | ( 0x13 )) , 1, 0xFFFF }
 
u16 actor1Talk1Conditions [] = { (0x7000 | ( 0xB )) , 1, 0xFFFF }
 
u16 actor2Talk0Conditions [] = { (( 0x1A ) << 8 | ( 0x2D )) , 0, 0xFFFF }
 
u16 actor2Talk0Actions [] = { (( 0x1A ) << 8 | ( 0x2D )) , 1, 0xFFFF }
 
u16 actor2Talk1Conditions [] = { (( 0x1A ) << 8 | ( 0x2D )) , 1, (0x7000 | ( 0x2A )) , 0, 0xFFFF }
 
u16 actor2Talk2Conditions []
 
u16 actor2Talk3Conditions []
 
u16 actor2Talk3Actions [] = { (( 6 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor2Talk4Conditions []
 
u16 actor3Talk0Conditions [] = { (0x7000 | ( 0xB )) , 0, 0xFFFF }
 
u16 actor3Talk0Actions [] = { (0x7000 | ( 0x31 )) , 1, (0x7000 | ( 0x13 )) , 1, 0xFFFF }
 
u16 actor3Talk1Conditions [] = { (0x7000 | ( 0xB )) , 1, 0xFFFF }
 
u16 actor4Talk0Conditions [] = { (( 0x1C ) << 8 | ( 0x10 )) , 0, 0xFFFF }
 
u16 actor4Talk1Conditions [] = { (( 0x1C ) << 8 | ( 0x10 )) , 1, (( 0x1C ) << 8 | ( 0x11 )) , 0, 0xFFFF }
 
u16 actor4Talk1Actions []
 
u16 actor4Talk2Conditions [] = { (( 0x1C ) << 8 | ( 0x10 )) , 1, (( 0x1C ) << 8 | ( 0x11 )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
FieldTalk actor6Talks []
 
FieldTalk actor7Talks []
 
FieldTalk actor8Talks []
 
FieldTalk actor9Talks []
 
FieldTalk actor10Talks []
 
FieldTalk actor11Talks []
 
FieldTalk actor12Talks []
 
FieldTalk actor13Talks []
 
FieldTalk actor14Talks []
 
FieldTalk actor15Talks []
 
u16 actor0Conditions []
 
u16 actor1Conditions []
 
u16 actor2Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, (0x8000 | ( 0 ) << 9 | ( 6 )), 0, 0xFFFF }
 
u16 actor3Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, (0x8000 | ( 0 ) << 9 | ( 6 )), 1, 0xFFFF }
 
u16 actor4Conditions [] = { (0x6000 | ( STORY_GENJI_BEATEN )) , 1, 0xFFFF }
 
u16 actor5Conditions [] = { (0x7000 | ( 0x15 )) , 1, 0xFFFF }
 
u16 actor6Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor7Conditions [] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF }
 
u16 actor8Conditions [] = { (0x6000 | ( STORY_LOOKING_FOR_TEDDY )) , 1, 0xFFFF }
 
u16 actor9Conditions [] = { (0x7000 | ( 0x16 )) , 1, 0xFFFF }
 
u16 actor10Conditions [] = { (0x7000 | ( 0x17 )) , 1, 0xFFFF }
 
u16 actor11Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor12Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor13Conditions [] = { (0x7000 | ( 0x18 )) , 1, 0xFFFF }
 
u16 actor14Conditions [] = { (0x6000 | ( STORY_TEDDY_FOUND )) , 1, 0xFFFF }
 
u16 actor15Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x2B, 4, 764, 1138, 1 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x2B, 4, 764, 1138, 1 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x2B, 4, 764, 1138, 1 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x2B, 4, 764, 1138, 1 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x5A, 5, 924, 323, 1 }
 
FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x5A, 5, 924, 323, 1 }
 
FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x5A, 5, 924, 323, 1 }
 
FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x5A, 5, 924, 323, 1 }
 
FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x5A, 5, 924, 323, 1 }
 
FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x5A, 5, 924, 323, 1 }
 
FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x5A, 5, 924, 323, 1 }
 
FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x5A, 5, 924, 323, 1 }
 
FieldActorEntry actor12 = { actor12Conditions, actor12Talks, 0x5A, 5, 924, 323, 1 }
 
FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x5A, 5, 924, 323, 1 }
 
FieldActorEntry actor14 = { actor14Conditions, actor14Talks, 0x5A, 5, 924, 323, 1 }
 
FieldActorEntry actor15 = { actor15Conditions, actor15Talks, 0x9D, 6, 764, 1138, 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

WSTAG405: Tyranno Valley, East Sector.

Definition in file wstag405.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   0x8

Definition at line 34 of file wstag405.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_06)

Definition at line 58 of file wstag405.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_400 - 1)

Definition at line 59 of file wstag405.c.

◆ STAGE_FILE

#define STAGE_FILE   0x257

Definition at line 60 of file wstag405.c.

◆ STAGE_ARCHIVE

#define STAGE_ARCHIVE   0x3D9

Definition at line 61 of file wstag405.c.

Function Documentation

◆ updateStage()

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

Creates the event object of progress 4 when flag 0x400F is set and 0x4010 is not, and the stage helper task.

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

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

Definition at line 17 of file wstag405.c.

Here is the call graph for this function:

◆ endEvent60()

void endEvent60 ( void  )

After event 60, with MasterTyranno: lets event 61 start and starts the stage's event battle 0.

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

< action: FIELDSTG_battleFuncs.startEventBattle

Definition at line 38 of file wstag405.c.

◆ endEvent61()

void endEvent61 ( void  )

After event 61, with MasterTyranno: gives the player the Old Claw and keeps it from playing again.

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

Definition at line 47 of file wstag405.c.

◆ setupStage()

void setupStage ( void  )

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

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_0007: Tyranno Valley, Snow Mountain, Kulon Mine and the Battle Gate

< ENV_0007: Tyranno Valley, Snow Mountain, Kulon Mine and the Battle Gate

< 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 64 of file wstag405.c.

Variable Documentation

◆ updateTileAnimsFrames

AnimFrame updateTileAnimsFrames
Initial value:
= {
{ 50, 8 }, { 51, 4 }, { 52, 8 }, { 53, 4 },
{ 54, 8 }, { 55, 4 }, { 56, 8 }, { 57, 16 },
{ 58, 4 }, { 59, 8 }, { 60, 4 }, { 61, 8 },
{ 62, 8 }, { 63, 12 }, { 64, 20 }, { 65, 4 },
{ 66, 8 }, { 67, 4 }, { 68, 8 }, { 69, 8 },
{ 70, 8 }, { 71, 8 }, { 72, 8 }, { 73, 4 },
{ 74, 8 }, { 75, 4 }, { 76, 8 }, { 77, 8 },
{ 78, 8 }, { 79, 8 }, { 80, 8 }, { 81, 12 },
{ 82, 8 }, { 83, 30 }, { 255, 0 },
}

Defined below, after the code that uses them.

Definition at line 146 of file wstag405.c.

Referenced by updateTileAnims().

◆ script60

s16 script60[]

Definition at line 85 of file wstag405.c.

◆ script61

s16 script61[]
Initial value:
= {
0x600, 1 , 2 ,
0x100, 2 , 0x37C , 0x153 ,
0x101, 2 , 1 , 5 ,
0x100, 0x5A , 0x39C , 0x143 ,
0x101, 0x5A , 1 , 1 ,
0x300, 0x78 ,
0x200, 0 , 1 , 0x5A , 0 ,
0x301 ,
0x101, 0x32D , 0x34A , 2 ,
0x300, 0x1E ,
0x200, 0 , 2 , 2 , 3 ,
0x101, 2 , 7 , 5 ,
0x301 ,
0x101, 2 , 1 , 5 ,
0x300, 0x1E ,
0x200, 0 , 3 , 0x5A , 0 ,
0x301 ,
0x300, 0x1E ,
0x200, 0 , 4 , 2 , 3 ,
0x101, 2 , 7 , 5 ,
0x301 ,
0x101, 2 , 1 , 5 ,
0x300, 0x1E ,
0x200, 0 , 5 , 0x5A , 0 ,
0x301 ,
0x300, 0x3C ,
0 ,
}

Definition at line 117 of file wstag405.c.

◆ area0Battle0

AreaBattle area0Battle0 = { 50, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 157 of file wstag405.c.

◆ area0Battle1

AreaBattle area0Battle1 = { 50, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 158 of file wstag405.c.

◆ area0Battle2

AreaBattle area0Battle2 = { 50, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 159 of file wstag405.c.

◆ area0Battle3

AreaBattle area0Battle3 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 160 of file wstag405.c.

◆ area0Battle4

AreaBattle area0Battle4 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 161 of file wstag405.c.

◆ area0Battle5

AreaBattle area0Battle5 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 162 of file wstag405.c.

◆ area0Battle6

AreaBattle area0Battle6 = { 52, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 163 of file wstag405.c.

◆ area0Battle7

AreaBattle area0Battle7 = { 52, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 164 of file wstag405.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
3,
}
AreaBattle area0Battle7
Definition wstag405.c:164
AreaBattle area0Battle1
Definition wstag405.c:158
AreaBattle area0Battle6
Definition wstag405.c:163
AreaBattle area0Battle3
Definition wstag405.c:160
AreaBattle area0Battle5
Definition wstag405.c:162
AreaBattle area0Battle0
Definition wstag405.c:157
AreaBattle area0Battle2
Definition wstag405.c:159
AreaBattle area0Battle4
Definition wstag405.c:161

Definition at line 165 of file wstag405.c.

◆ area1Battle0

AreaBattle area1Battle0 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 170 of file wstag405.c.

◆ area1Battle1

AreaBattle area1Battle1 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 171 of file wstag405.c.

◆ area1Battle2

AreaBattle area1Battle2 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 172 of file wstag405.c.

◆ area1Battle3

AreaBattle area1Battle3 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 173 of file wstag405.c.

◆ area1Battle4

AreaBattle area1Battle4 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 174 of file wstag405.c.

◆ area1Battle5

AreaBattle area1Battle5 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 175 of file wstag405.c.

◆ area1Battle6

AreaBattle area1Battle6 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 176 of file wstag405.c.

◆ area1Battle7

AreaBattle area1Battle7 = { 51, 4, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 177 of file wstag405.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
5,
}
AreaBattle area1Battle6
Definition wstag405.c:176
AreaBattle area1Battle2
Definition wstag405.c:172
AreaBattle area1Battle4
Definition wstag405.c:174
AreaBattle area1Battle5
Definition wstag405.c:175
AreaBattle area1Battle3
Definition wstag405.c:173
AreaBattle area1Battle0
Definition wstag405.c:170
AreaBattle area1Battle1
Definition wstag405.c:171
AreaBattle area1Battle7
Definition wstag405.c:177

Definition at line 178 of file wstag405.c.

◆ area2Battle0

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

Definition at line 183 of file wstag405.c.

◆ area2Battle1

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

Definition at line 184 of file wstag405.c.

◆ area2Battle2

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

Definition at line 185 of file wstag405.c.

◆ area2Battle3

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

Definition at line 186 of file wstag405.c.

◆ area2Battle4

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

Definition at line 187 of file wstag405.c.

◆ area2Battle5

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

Definition at line 188 of file wstag405.c.

◆ area2Battle6

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

Definition at line 189 of file wstag405.c.

◆ area2Battle7

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

Definition at line 190 of file wstag405.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag405.c:190
AreaBattle area2Battle6
Definition wstag405.c:189
AreaBattle area2Battle0
Definition wstag405.c:183
AreaBattle area2Battle4
Definition wstag405.c:187
AreaBattle area2Battle2
Definition wstag405.c:185
AreaBattle area2Battle1
Definition wstag405.c:184
AreaBattle area2Battle5
Definition wstag405.c:188
AreaBattle area2Battle3
Definition wstag405.c:186

Definition at line 191 of file wstag405.c.

◆ area3Battle0

AreaBattle area3Battle0 = { 2, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }

Definition at line 196 of file wstag405.c.

◆ area3Battle1

AreaBattle area3Battle1 = { 310, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }

Definition at line 197 of file wstag405.c.

◆ area3Battle2

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

Definition at line 198 of file wstag405.c.

◆ area3Battle3

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

Definition at line 199 of file wstag405.c.

◆ area3Battle4

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

Definition at line 200 of file wstag405.c.

◆ area3Battle5

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

Definition at line 201 of file wstag405.c.

◆ area3Battle6

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

Definition at line 202 of file wstag405.c.

◆ area3Battle7

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

Definition at line 203 of file wstag405.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag405.c:200
AreaBattle area3Battle3
Definition wstag405.c:199
AreaBattle area3Battle0
Definition wstag405.c:196
AreaBattle area3Battle2
Definition wstag405.c:198
AreaBattle area3Battle1
Definition wstag405.c:197
AreaBattle area3Battle6
Definition wstag405.c:202
AreaBattle area3Battle5
Definition wstag405.c:201
AreaBattle area3Battle7
Definition wstag405.c:203

Definition at line 204 of file wstag405.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag405.c:204
BattleList area1Battles
Definition wstag405.c:178
BattleList area2Battles
Definition wstag405.c:191
BattleList area0Battles
Definition wstag405.c:165

Definition at line 209 of file wstag405.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, 0x1B4, 0x120, 0x1D0, 0x20, 0x170, 0x1FF },
{ 0x180, 0x100, 0x1A0, 0x120, 0x180, 0x20, 0x150, 0x1FE },
{ 0x180, 0x100, 0x1AA, 0x148, 0x1A8, 0x48, 0x160, 0x1FE },
}

Definition at line 212 of file wstag405.c.

Referenced by setupStage().

◆ actor0Talk0Conditions

u16 actor0Talk0Conditions[] = { (( 0x1A ) << 8 | ( 0x2D )) , 0, 0xFFFF }

Definition at line 223 of file wstag405.c.

◆ actor0Talk0Actions

u16 actor0Talk0Actions[] = { (( 0x1A ) << 8 | ( 0x2D )) , 1, 0xFFFF }

Definition at line 224 of file wstag405.c.

◆ actor0Talk1Conditions

u16 actor0Talk1Conditions[] = { (( 0x1A ) << 8 | ( 0x2D )) , 1, (0x7000 | ( 0x2A )) , 0, 0xFFFF }

Definition at line 225 of file wstag405.c.

◆ actor0Talk2Conditions

u16 actor0Talk2Conditions[]
Initial value:
= {
(0x7000 | ( 0x25 )) , 0,
(( 0x1A ) << 8 | ( 0x2D )) , 1,
(0x7000 | ( 0x2A )) , 1,
0xFFFF ,
}

Definition at line 226 of file wstag405.c.

◆ actor0Talk3Conditions

u16 actor0Talk3Conditions[]
Initial value:
= {
(0x7000 | ( 0x25 )) , 1,
(0x7000 | ( 0x27 )) , 0,
(( 0x1A ) << 8 | ( 0x2D )) , 1,
(0x7000 | ( 0x2A )) , 1,
0xFFFF ,
}

Definition at line 232 of file wstag405.c.

◆ actor0Talk3Actions

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

Definition at line 239 of file wstag405.c.

◆ actor0Talk4Conditions

u16 actor0Talk4Conditions[]
Initial value:
= {
(0x7000 | ( 0x25 )) , 1,
(0x7000 | ( 0x27 )) , 1,
(( 0x1A ) << 8 | ( 0x2D )) , 1,
(0x7000 | ( 0x2A )) , 1,
0xFFFF ,
}

Definition at line 240 of file wstag405.c.

◆ actor1Talk0Conditions

u16 actor1Talk0Conditions[] = { (0x7000 | ( 0xB )) , 0, 0xFFFF }

Definition at line 247 of file wstag405.c.

◆ actor1Talk0Actions

u16 actor1Talk0Actions[] = { (0x7000 | ( 0x31 )) , 1, (0x7000 | ( 0x13 )) , 1, 0xFFFF }

Definition at line 248 of file wstag405.c.

◆ actor1Talk1Conditions

u16 actor1Talk1Conditions[] = { (0x7000 | ( 0xB )) , 1, 0xFFFF }

Definition at line 249 of file wstag405.c.

◆ actor2Talk0Conditions

u16 actor2Talk0Conditions[] = { (( 0x1A ) << 8 | ( 0x2D )) , 0, 0xFFFF }

Definition at line 250 of file wstag405.c.

◆ actor2Talk0Actions

u16 actor2Talk0Actions[] = { (( 0x1A ) << 8 | ( 0x2D )) , 1, 0xFFFF }

Definition at line 251 of file wstag405.c.

◆ actor2Talk1Conditions

u16 actor2Talk1Conditions[] = { (( 0x1A ) << 8 | ( 0x2D )) , 1, (0x7000 | ( 0x2A )) , 0, 0xFFFF }

Definition at line 252 of file wstag405.c.

◆ actor2Talk2Conditions

u16 actor2Talk2Conditions[]
Initial value:
= {
(( 0x1A ) << 8 | ( 0x2D )) , 1,
(0x7000 | ( 0x2A )) , 1,
(0x7000 | ( 0x25 )) , 0,
0xFFFF ,
}

Definition at line 253 of file wstag405.c.

◆ actor2Talk3Conditions

u16 actor2Talk3Conditions[]
Initial value:
= {
(( 0x1A ) << 8 | ( 0x2D )) , 1,
(0x7000 | ( 0x2A )) , 1,
(0x7000 | ( 0x25 )) , 1,
(0x7000 | ( 0x27 )) , 0,
0xFFFF ,
}

Definition at line 259 of file wstag405.c.

◆ actor2Talk3Actions

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

Definition at line 266 of file wstag405.c.

◆ actor2Talk4Conditions

u16 actor2Talk4Conditions[]
Initial value:
= {
(( 0x1A ) << 8 | ( 0x2D )) , 1,
(0x7000 | ( 0x2A )) , 1,
(0x7000 | ( 0x25 )) , 1,
(0x7000 | ( 0x27 )) , 1,
0xFFFF ,
}

Definition at line 267 of file wstag405.c.

◆ actor3Talk0Conditions

u16 actor3Talk0Conditions[] = { (0x7000 | ( 0xB )) , 0, 0xFFFF }

Definition at line 274 of file wstag405.c.

◆ actor3Talk0Actions

u16 actor3Talk0Actions[] = { (0x7000 | ( 0x31 )) , 1, (0x7000 | ( 0x13 )) , 1, 0xFFFF }

Definition at line 275 of file wstag405.c.

◆ actor3Talk1Conditions

u16 actor3Talk1Conditions[] = { (0x7000 | ( 0xB )) , 1, 0xFFFF }

Definition at line 276 of file wstag405.c.

◆ actor4Talk0Conditions

u16 actor4Talk0Conditions[] = { (( 0x1C ) << 8 | ( 0x10 )) , 0, 0xFFFF }

Definition at line 277 of file wstag405.c.

◆ actor4Talk1Conditions

u16 actor4Talk1Conditions[] = { (( 0x1C ) << 8 | ( 0x10 )) , 1, (( 0x1C ) << 8 | ( 0x11 )) , 0, 0xFFFF }

Definition at line 278 of file wstag405.c.

◆ actor4Talk1Actions

u16 actor4Talk1Actions[]
Initial value:
= {
(0x9000 | ( 0x2F )) , 1,
(( 0x1C ) << 8 | ( 0x11 )) , 1,
(( 0xA ) << 8 | ( 1 )) , 1,
0xFFFF ,
}

Definition at line 279 of file wstag405.c.

◆ actor4Talk2Conditions

u16 actor4Talk2Conditions[] = { (( 0x1C ) << 8 | ( 0x10 )) , 1, (( 0x1C ) << 8 | ( 0x11 )) , 1, 0xFFFF }

Definition at line 285 of file wstag405.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ actor0Talk1Conditions, ((void *)0) , 0x2B7 },
{ actor0Talk2Conditions, ((void *)0) , 0x2B8 },
{ actor0Talk4Conditions, ((void *)0) , 0x2BC },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag405.c:224
u16 actor0Talk0Conditions[]
Definition wstag405.c:223
u16 actor0Talk1Conditions[]
Definition wstag405.c:225
u16 actor0Talk3Conditions[]
Definition wstag405.c:232
u16 actor0Talk4Conditions[]
Definition wstag405.c:240
u16 actor0Talk2Conditions[]
Definition wstag405.c:226
u16 actor0Talk3Actions[]
Definition wstag405.c:239

Definition at line 286 of file wstag405.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ actor1Talk1Conditions, ((void *)0) , 0x2B6 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk1Conditions[]
Definition wstag405.c:249
u16 actor1Talk0Conditions[]
Definition wstag405.c:247
u16 actor1Talk0Actions[]
Definition wstag405.c:248

Definition at line 294 of file wstag405.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ actor2Talk1Conditions, ((void *)0) , 0x2B7 },
{ actor2Talk2Conditions, ((void *)0) , 0x2B8 },
{ actor2Talk4Conditions, ((void *)0) , 0x2BC },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk1Conditions[]
Definition wstag405.c:252
u16 actor2Talk3Conditions[]
Definition wstag405.c:259
u16 actor2Talk0Actions[]
Definition wstag405.c:251
u16 actor2Talk2Conditions[]
Definition wstag405.c:253
u16 actor2Talk3Actions[]
Definition wstag405.c:266
u16 actor2Talk0Conditions[]
Definition wstag405.c:250
u16 actor2Talk4Conditions[]
Definition wstag405.c:267

Definition at line 299 of file wstag405.c.

◆ actor3Talks

FieldTalk actor3Talks[]
Initial value:
= {
{ actor3Talk1Conditions, ((void *)0) , 0x2B6 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor3Talk0Conditions[]
Definition wstag405.c:274
u16 actor3Talk1Conditions[]
Definition wstag405.c:276
u16 actor3Talk0Actions[]
Definition wstag405.c:275

Definition at line 307 of file wstag405.c.

◆ actor4Talks

FieldTalk actor4Talks[]
Initial value:
= {
{ actor4Talk0Conditions, ((void *)0) , 0xF1 },
{ actor4Talk2Conditions, ((void *)0) , 0x2DE },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor4Talk1Actions[]
Definition wstag405.c:279
u16 actor4Talk1Conditions[]
Definition wstag405.c:278
u16 actor4Talk0Conditions[]
Definition wstag405.c:277
u16 actor4Talk2Conditions[]
Definition wstag405.c:285

Definition at line 312 of file wstag405.c.

◆ actor5Talks

FieldTalk actor5Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x2E9 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 318 of file wstag405.c.

◆ actor6Talks

FieldTalk actor6Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x2F6 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 322 of file wstag405.c.

◆ actor7Talks

FieldTalk actor7Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x2F4 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 326 of file wstag405.c.

◆ actor8Talks

FieldTalk actor8Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x2EF },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 330 of file wstag405.c.

◆ actor9Talks

FieldTalk actor9Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x2F1 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 334 of file wstag405.c.

◆ actor10Talks

FieldTalk actor10Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x2F2 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 338 of file wstag405.c.

◆ actor11Talks

FieldTalk actor11Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x2F7 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 342 of file wstag405.c.

◆ actor12Talks

FieldTalk actor12Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x2F5 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 346 of file wstag405.c.

◆ actor13Talks

FieldTalk actor13Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x2F3 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 350 of file wstag405.c.

◆ actor14Talks

FieldTalk actor14Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x2F0 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 354 of file wstag405.c.

◆ actor15Talks

FieldTalk actor15Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x2B5 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 358 of file wstag405.c.

◆ actor0Conditions

u16 actor0Conditions[]
Initial value:
= {
(0x6000 | ( STORY_GENJI_BEATEN )) , 0,
(0x8000 | ( 0 ) << 9 | ( 6 )), 0,
(0x7000 | ( 0x22 )) , 1,
0xFFFF ,
}
@ STORY_GENJI_BEATEN
WSTAG200, event 52: after the first battle, won against Tamer Genji (event 50), the Digimon Navi give...
Definition story.h:36

Definition at line 362 of file wstag405.c.

◆ actor1Conditions

u16 actor1Conditions[]
Initial value:
= {
(0x7000 | ( 0x22 )) , 1,
(0x6000 | ( STORY_GENJI_BEATEN )) , 0,
(0x8000 | ( 0 ) << 9 | ( 6 )), 1,
0xFFFF ,
}

Definition at line 368 of file wstag405.c.

◆ actor2Conditions

u16 actor2Conditions[] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, (0x8000 | ( 0 ) << 9 | ( 6 )), 0, 0xFFFF }

Definition at line 374 of file wstag405.c.

◆ actor3Conditions

u16 actor3Conditions[] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, (0x8000 | ( 0 ) << 9 | ( 6 )), 1, 0xFFFF }

Definition at line 375 of file wstag405.c.

◆ actor4Conditions

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

Definition at line 376 of file wstag405.c.

◆ actor5Conditions

u16 actor5Conditions[] = { (0x7000 | ( 0x15 )) , 1, 0xFFFF }

Definition at line 377 of file wstag405.c.

◆ actor6Conditions

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

Definition at line 378 of file wstag405.c.

◆ actor7Conditions

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

Definition at line 379 of file wstag405.c.

◆ actor8Conditions

u16 actor8Conditions[] = { (0x6000 | ( STORY_LOOKING_FOR_TEDDY )) , 1, 0xFFFF }

Definition at line 380 of file wstag405.c.

◆ actor9Conditions

u16 actor9Conditions[] = { (0x7000 | ( 0x16 )) , 1, 0xFFFF }

Definition at line 381 of file wstag405.c.

◆ actor10Conditions

u16 actor10Conditions[] = { (0x7000 | ( 0x17 )) , 1, 0xFFFF }

Definition at line 382 of file wstag405.c.

◆ actor11Conditions

u16 actor11Conditions[] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }

Definition at line 383 of file wstag405.c.

◆ actor12Conditions

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

Definition at line 384 of file wstag405.c.

◆ actor13Conditions

u16 actor13Conditions[] = { (0x7000 | ( 0x18 )) , 1, 0xFFFF }

Definition at line 385 of file wstag405.c.

◆ actor14Conditions

u16 actor14Conditions[] = { (0x6000 | ( STORY_TEDDY_FOUND )) , 1, 0xFFFF }

Definition at line 386 of file wstag405.c.

◆ actor15Conditions

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

Definition at line 387 of file wstag405.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x2B, 4, 764, 1138, 1 }

Definition at line 388 of file wstag405.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x2B, 4, 764, 1138, 1 }

Definition at line 389 of file wstag405.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x2B, 4, 764, 1138, 1 }

Definition at line 390 of file wstag405.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x2B, 4, 764, 1138, 1 }

Definition at line 391 of file wstag405.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x5A, 5, 924, 323, 1 }

Definition at line 392 of file wstag405.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x5A, 5, 924, 323, 1 }

Definition at line 393 of file wstag405.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x5A, 5, 924, 323, 1 }

Definition at line 394 of file wstag405.c.

◆ actor7

FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x5A, 5, 924, 323, 1 }

Definition at line 395 of file wstag405.c.

◆ actor8

FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x5A, 5, 924, 323, 1 }

Definition at line 396 of file wstag405.c.

◆ actor9

FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x5A, 5, 924, 323, 1 }

Definition at line 397 of file wstag405.c.

◆ actor10

FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x5A, 5, 924, 323, 1 }

Definition at line 398 of file wstag405.c.

◆ actor11

FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x5A, 5, 924, 323, 1 }

Definition at line 399 of file wstag405.c.

◆ actor12

FieldActorEntry actor12 = { actor12Conditions, actor12Talks, 0x5A, 5, 924, 323, 1 }

Definition at line 400 of file wstag405.c.

◆ actor13

FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x5A, 5, 924, 323, 1 }

Definition at line 401 of file wstag405.c.

◆ actor14

FieldActorEntry actor14 = { actor14Conditions, actor14Talks, 0x5A, 5, 924, 323, 1 }

Definition at line 402 of file wstag405.c.

◆ actor15

FieldActorEntry actor15 = { actor15Conditions, actor15Talks, 0x9D, 6, 764, 1138, 1 }

Definition at line 403 of file wstag405.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag405.c:388
FieldActorEntry actor6
Definition wstag405.c:394
FieldActorEntry actor5
Definition wstag405.c:393
FieldActorEntry actor2
Definition wstag405.c:390
FieldActorEntry actor10
Definition wstag405.c:398
FieldActorEntry actor4
Definition wstag405.c:392
FieldActorEntry actor8
Definition wstag405.c:396
FieldActorEntry actor9
Definition wstag405.c:397
FieldActorEntry actor15
Definition wstag405.c:403
FieldActorEntry actor12
Definition wstag405.c:400
FieldActorEntry actor7
Definition wstag405.c:395
FieldActorEntry actor13
Definition wstag405.c:401
FieldActorEntry actor11
Definition wstag405.c:399
FieldActorEntry actor1
Definition wstag405.c:389
FieldActorEntry actor3
Definition wstag405.c:391
FieldActorEntry actor14
Definition wstag405.c:402

Definition at line 404 of file wstag405.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 1, 0xE6, 2, 0x32, 0, 0, 0, 0, 0, 966, 364, 0, 0 },
{ 1, 0, 0x40, 2, 0x54, 2, 0, 2, 6, 0, 931, 293, 0, 0 },
{ 1, 0, 0x40, 2, 1, 1, 1, 6, 8, 0, 179, 400, 0, 0 },
{ 1, 0, 0x40, 2, 1, 1, 1, 6, 8, 0, 602, 1071, 0, 0 },
{ 1, 0, 0xC8, 6, 7, 0, 0, 0, 0, 0, 745, 598, 0, 0 },
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 298, 442, 505, 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 423 of file wstag405.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x22A, 0x648, 0xD0, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 8, 0xF0, 0x4D8, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 8, 0x100, 0x450, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 9, 0x102, 0x420, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 9, 0xF2, 0x388, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 6, 0x1D2, 0x4C8, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 6, 0x1C2, 0x460, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 0xF, 0x1AF, 0x428, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 0xF, 0x1BF, 0x330, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 4 , 0x16, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 9, 0x330, 0x208, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 9, 0x340, 0x170, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 432 of file wstag405.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_0007.
Definition wstag405.c:64

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 447 of file wstag405.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 60, script60, ( ( 0x136 - 1) << 16 | ( 0 )), ((void *)0) , endEvent60 },
{ 61, script61, ( ( 0x136 - 1) << 16 | ( 1 )), ((void *)0) , endEvent61 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void endEvent61(void)
After event 61, with MasterTyranno: gives the player the Old Claw and keeps it from playing again.
Definition wstag405.c:47
s16 script60[]
Definition wstag405.c:85
void endEvent60(void)
After event 60, with MasterTyranno: lets event 61 start and starts the stage's event battle 0.
Definition wstag405.c:38
s16 script61[]
Definition wstag405.c:117

Definition at line 450 of file wstag405.c.

Referenced by setupStage().