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

WSTAG550: South Badland, West Sector. More...

#include "common.h"
#include "field/stage.h"
#include "common/start_stage.inc.c"
Include dependency graph for wstag550.c:

Go to the source code of this file.

Macros

#define STAGE_CHILDREN_SIZE   4
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_06)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_500 - 1)
 
#define STAGE_FILE   0x46E
 

Functions

void updateStage (StageTask *task, void **children)
 Back from the battle after event 1269, starts event 1270, with MagnaAngemon, unless it has played.
 
void endEvent1269 (void)
 After event 1269, with MagnaAngemon: lets event 1270 start and starts the stage's event battle 0.
 
void endEvent1270 (void)
 After event 1270, with MagnaAngemon: gives the player the Patamon DDNA and keeps it from playing again.
 
void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing BGM_0018; BGM_0029 instead at story steps 0x27 to 0x28.
 

Variables

const CVECTOR stageColor = { 0x54, 0x67, 0x96, 0x00 }
 the color the setup copies to FIELDSTG_state.spriteColor
 
s16 script1225 []
 
s16 script1269 []
 
s16 script1270 []
 
AreaBattle area0Battle0 = { 69, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 69, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 69, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 69, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList area0Battles
 
AreaBattle area1Battle0 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle1 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle2 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle3 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle4 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle5 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle6 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle7 = { 0, 3, (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 = { 266, 3, (0x60000000 | ( 0x22 ) << 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 = { 330, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle5 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle7 = { 61, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList area3Battles
 
FieldBattles stageBattles []
 
ActorImage stageImages []
 
u16 actor0Talk0Actions [] = { (0x9000 | ( 0x11 )) , 1, 0xFFFF }
 
u16 actor2Talk0Conditions [] = { (( 0x1C ) << 8 | ( 0x14 )) , 0, 0xFFFF }
 
u16 actor2Talk0Actions [] = { (0x9000 | ( 0x27 )) , 1, (( 0x1C ) << 8 | ( 0x14 )) , 1, 0xFFFF }
 
u16 actor2Talk1Conditions [] = { (( 0x1C ) << 8 | ( 0x14 )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
u16 actor0Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor1Conditions [] = { (0x7000 | ( 0x16 )) , 1, 0xFFFF }
 
u16 actor2Conditions [] = { (( 6 ) << 8 | ( 2 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x27 )), 0, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x15, 4, 369, 209, 7 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x67, 5, 352, 720, 1 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x7C, 6, 1153, 858, 7 }
 
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

WSTAG550: South Badland, West Sector.

Definition in file wstag550.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   4

Definition at line 28 of file wstag550.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_06)

Definition at line 55 of file wstag550.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_500 - 1)

Definition at line 56 of file wstag550.c.

◆ STAGE_FILE

#define STAGE_FILE   0x46E

Definition at line 57 of file wstag550.c.

Function Documentation

◆ updateStage()

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

Back from the battle after event 1269, starts event 1270, with MagnaAngemon, unless it has played.

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

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

Definition at line 12 of file wstag550.c.

Here is the call graph for this function:

◆ endEvent1269()

void endEvent1269 ( void  )

After event 1269, with MagnaAngemon: lets event 1270 start and starts the stage's event battle 0.

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

< action: FIELDSTG_battleFuncs.startEventBattle

Definition at line 35 of file wstag550.c.

◆ endEvent1270()

void endEvent1270 ( void  )

After event 1270, with MagnaAngemon: gives the player the Patamon DDNA and keeps it from playing again.

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

Definition at line 44 of file wstag550.c.

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map, actors, battles and events, playing BGM_0018; BGM_0029 instead at story steps 0x27 to 0x28.

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_0018: the Badlands

< BGM_0018: the Badlands

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

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

< BGM_0029: the cities and their streets instead of their music while the story is at a crisis (Knightmon reprogrammed, the A.o.A's headquarters, the Amaterasu server's Oinkmon)

< BGM_0029: the cities and their streets instead of their music while the story is at a crisis (Knightmon reprogrammed, the A.o.A's headquarters, the Amaterasu server's Oinkmon)

Definition at line 63 of file wstag550.c.

Variable Documentation

◆ stageColor

const CVECTOR stageColor = { 0x54, 0x67, 0x96, 0x00 }

the color the setup copies to FIELDSTG_state.spriteColor

the color the setup copies to FIELDSTG_state.spriteColor

It starts the stage, before its jump tables: in wstag924.c GCC would align them to 8 bytes after it, so it is a file of its own, linked first

Definition at line 49 of file wstag550.c.

Referenced by setupStage().

◆ script1225

s16 script1225[]
Initial value:
= {
0x102, 2 , 0x190 , 0xE0 , 3 ,
0x100, 0x15 , 0x171 , 0xD1 ,
0x101, 0x15 , 1 , 7 ,
0x101, 0x32D , 0x337 , 2 ,
0x302, 2 ,
0x101, 2 , 1 , 3 ,
0x300, 6 ,
0x300, 0x1E ,
0x200, 0 , 1 , 0x15 , 0 ,
0x301 ,
0x300, 0x1E ,
0x101, 0x15 , 0x36 , 7 ,
0x101, 0x32D , 0x375 , 2 ,
0x303, 0x15 ,
0x101, 0x15 , 0x37 , 7 ,
0x300, 0x5A ,
0x304, 0xC05 , 0 , 0 , 0 ,
0 ,
0x1062,
}

Definition at line 89 of file wstag550.c.

◆ script1269

s16 script1269[]
Initial value:
= {
0x600, 1 , 2 ,
0x102, 2 , 0x45B , 0x345 , 7 ,
0x100, 0x7C , 0x481 , 0x35A ,
0x101, 0x7C , 1 , 3 ,
0x101, 0x32D , 0x337 , 2 ,
0x302, 2 ,
0x101, 2 , 1 , 7 ,
0x300, 6 ,
0x300, 0x1E ,
0x200, 0 , 1 , 2 , 0 ,
0x101, 2 , 7 , 7 ,
0x301 ,
0x101, 2 , 1 , 7 ,
0x300, 0x1E ,
0x200, 0 , 2 , 0x7C , 2 ,
0x301 ,
0x300, 0x1E ,
0 ,
0x8E02,
}

Definition at line 115 of file wstag550.c.

◆ script1270

s16 script1270[]
Initial value:
= {
0x600, 1 , 2 ,
0x100, 2 , 0x45B , 0x345 ,
0x101, 2 , 1 , 7 ,
0x100, 0x7C , 0x481 , 0x35A ,
0x101, 0x7C , 1 , 3 ,
0x300, 0x78 ,
0x200, 0 , 1 , 2 , 0 ,
0x101, 2 , 7 , 7 ,
0x301 ,
0x101, 2 , 1 , 7 ,
0x300, 0x1E ,
0x200, 0 , 2 , 0x7C , 2 ,
0x301 ,
0x101, 0x32D , 0x34A , 2 ,
0x300, 0x1E ,
0x200, 0 , 3 , 2 , 0 ,
0x101, 2 , 7 , 7 ,
0x301 ,
0x101, 2 , 1 , 7 ,
0x300, 0x3C ,
0 ,
}

Definition at line 141 of file wstag550.c.

◆ area0Battle0

AreaBattle area0Battle0 = { 69, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 164 of file wstag550.c.

◆ area0Battle1

AreaBattle area0Battle1 = { 69, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 165 of file wstag550.c.

◆ area0Battle2

AreaBattle area0Battle2 = { 69, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 166 of file wstag550.c.

◆ area0Battle3

AreaBattle area0Battle3 = { 69, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 167 of file wstag550.c.

◆ area0Battle4

AreaBattle area0Battle4 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 168 of file wstag550.c.

◆ area0Battle5

AreaBattle area0Battle5 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 169 of file wstag550.c.

◆ area0Battle6

AreaBattle area0Battle6 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 170 of file wstag550.c.

◆ area0Battle7

AreaBattle area0Battle7 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 171 of file wstag550.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
3,
}
AreaBattle area0Battle7
Definition wstag550.c:171
AreaBattle area0Battle1
Definition wstag550.c:165
AreaBattle area0Battle6
Definition wstag550.c:170
AreaBattle area0Battle3
Definition wstag550.c:167
AreaBattle area0Battle5
Definition wstag550.c:169
AreaBattle area0Battle0
Definition wstag550.c:164
AreaBattle area0Battle2
Definition wstag550.c:166
AreaBattle area0Battle4
Definition wstag550.c:168

Definition at line 172 of file wstag550.c.

◆ area1Battle0

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

Definition at line 177 of file wstag550.c.

◆ area1Battle1

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

Definition at line 178 of file wstag550.c.

◆ area1Battle2

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

Definition at line 179 of file wstag550.c.

◆ area1Battle3

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

Definition at line 180 of file wstag550.c.

◆ area1Battle4

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

Definition at line 181 of file wstag550.c.

◆ area1Battle5

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

Definition at line 182 of file wstag550.c.

◆ area1Battle6

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

Definition at line 183 of file wstag550.c.

◆ area1Battle7

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

Definition at line 184 of file wstag550.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag550.c:183
AreaBattle area1Battle2
Definition wstag550.c:179
AreaBattle area1Battle4
Definition wstag550.c:181
AreaBattle area1Battle5
Definition wstag550.c:182
AreaBattle area1Battle3
Definition wstag550.c:180
AreaBattle area1Battle0
Definition wstag550.c:177
AreaBattle area1Battle1
Definition wstag550.c:178
AreaBattle area1Battle7
Definition wstag550.c:184

Definition at line 185 of file wstag550.c.

◆ area2Battle0

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

Definition at line 190 of file wstag550.c.

◆ area2Battle1

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

Definition at line 191 of file wstag550.c.

◆ area2Battle2

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

Definition at line 192 of file wstag550.c.

◆ area2Battle3

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

Definition at line 193 of file wstag550.c.

◆ area2Battle4

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

Definition at line 194 of file wstag550.c.

◆ area2Battle5

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

Definition at line 195 of file wstag550.c.

◆ area2Battle6

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

Definition at line 196 of file wstag550.c.

◆ area2Battle7

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

Definition at line 197 of file wstag550.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag550.c:197
AreaBattle area2Battle6
Definition wstag550.c:196
AreaBattle area2Battle0
Definition wstag550.c:190
AreaBattle area2Battle4
Definition wstag550.c:194
AreaBattle area2Battle2
Definition wstag550.c:192
AreaBattle area2Battle1
Definition wstag550.c:191
AreaBattle area2Battle5
Definition wstag550.c:195
AreaBattle area2Battle3
Definition wstag550.c:193

Definition at line 198 of file wstag550.c.

◆ area3Battle0

AreaBattle area3Battle0 = { 266, 3, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }

Definition at line 203 of file wstag550.c.

◆ area3Battle1

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

Definition at line 204 of file wstag550.c.

◆ area3Battle2

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

Definition at line 205 of file wstag550.c.

◆ area3Battle3

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

Definition at line 206 of file wstag550.c.

◆ area3Battle4

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

Definition at line 207 of file wstag550.c.

◆ area3Battle5

AreaBattle area3Battle5 = { 68, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 208 of file wstag550.c.

◆ area3Battle6

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

Definition at line 209 of file wstag550.c.

◆ area3Battle7

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

Definition at line 210 of file wstag550.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag550.c:207
AreaBattle area3Battle3
Definition wstag550.c:206
AreaBattle area3Battle0
Definition wstag550.c:203
AreaBattle area3Battle2
Definition wstag550.c:205
AreaBattle area3Battle1
Definition wstag550.c:204
AreaBattle area3Battle6
Definition wstag550.c:209
AreaBattle area3Battle5
Definition wstag550.c:208
AreaBattle area3Battle7
Definition wstag550.c:210

Definition at line 211 of file wstag550.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag550.c:211
BattleList area1Battles
Definition wstag550.c:185
BattleList area2Battles
Definition wstag550.c:198
BattleList area0Battles
Definition wstag550.c:172

Definition at line 216 of file wstag550.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 },
{ 0x140, 0x100, 0x170, 0x100, 0xC0, 0, 0x140, 0x1FE },
{ 0x180, 0x100, 0x1B0, 0x100, 0x1C0, 0, 0x150, 0x1FE },
{ 0x1C0, 0x100, 0x1C0, 0x100, 0x200, 0, 0x160, 0x1FE },
}

Definition at line 219 of file wstag550.c.

Referenced by setupStage().

◆ actor0Talk0Actions

u16 actor0Talk0Actions[] = { (0x9000 | ( 0x11 )) , 1, 0xFFFF }

Definition at line 230 of file wstag550.c.

◆ actor2Talk0Conditions

u16 actor2Talk0Conditions[] = { (( 0x1C ) << 8 | ( 0x14 )) , 0, 0xFFFF }

Definition at line 231 of file wstag550.c.

◆ actor2Talk0Actions

u16 actor2Talk0Actions[] = { (0x9000 | ( 0x27 )) , 1, (( 0x1C ) << 8 | ( 0x14 )) , 1, 0xFFFF }

Definition at line 232 of file wstag550.c.

◆ actor2Talk1Conditions

u16 actor2Talk1Conditions[] = { (( 0x1C ) << 8 | ( 0x14 )) , 1, 0xFFFF }

Definition at line 233 of file wstag550.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x168 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag550.c:230

Definition at line 234 of file wstag550.c.

◆ actor1Talks

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

Definition at line 238 of file wstag550.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ actor2Talk1Conditions, ((void *)0) , 0x2C2 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk1Conditions[]
Definition wstag550.c:233
u16 actor2Talk0Actions[]
Definition wstag550.c:232
u16 actor2Talk0Conditions[]
Definition wstag550.c:231

Definition at line 242 of file wstag550.c.

◆ actor0Conditions

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

Definition at line 247 of file wstag550.c.

◆ actor1Conditions

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

Definition at line 248 of file wstag550.c.

◆ actor2Conditions

u16 actor2Conditions[] = { (( 6 ) << 8 | ( 2 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x27 )), 0, 0xFFFF }

Definition at line 249 of file wstag550.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x15, 4, 369, 209, 7 }

Definition at line 250 of file wstag550.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x67, 5, 352, 720, 1 }

Definition at line 251 of file wstag550.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x7C, 6, 1153, 858, 7 }

Definition at line 252 of file wstag550.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag550.c:250
FieldActorEntry actor2
Definition wstag550.c:252
FieldActorEntry actor1
Definition wstag550.c:251

Definition at line 253 of file wstag550.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]

The tables and color setupStage gives FIELDSTG_state (FieldState)

Definition at line 259 of file wstag550.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x248, 0x610, 0x540, 3, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 4 , 7, 0, 0, 0, 0, 0, 0 },
{ { { (0x7000 | ( 0x94 )) , 1 }, { 0xFFFF , 0 } }, 9 , 0x2E9, 0xB0, 0xF8, 7, 0, 3, 1 },
{ { { (0x7000 | ( 0x94 )) , 1 }, { 0xFFFF , 0 } }, 9 , 0x2E8, 0x240, 0xD0, 1, 0, 6, 1 },
{ { { (0x7000 | ( 0x94 )) , 1 }, { 0xFFFF , 0 } }, 9 , 0x2E9, 0xB0, 0xF8, 7, 0, 0xA, 1 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 6, 0x479, 0x2B0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 6, 0x469, 0x318, 0, 0, 0, 0 },
{ { { (0x7000 | ( 0x93 )) , 1 }, { 0xFFFF , 0 } }, 10 , 0x2E2, 0xB0, 0x148, 7, 0, 9, 1 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0xFFE0, 0x2C, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0x20, 0x30, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0xC, 0x30, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0xFFEC, 0x30, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0x30, 0xFFE8, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0, 0xFFE0, 0, 0, 0, 0, 0 },
{ { { (0x7000 | ( 0x93 )) , 1 }, { 0xFFFF , 0 } }, 10 , 0x2E2, 0xB0, 0x148, 7, 0, 9, 1 },
{ { { (( 0 ) << 8 | ( 0xF )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2328, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 386 of file wstag550.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_0018; BGM_0029 instead at story s...
Definition wstag550.c:63

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 405 of file wstag550.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1225, script1225, ( ( 0x13D - 1) << 16 | ( 0xA )), ((void *)0) , ((void *)0) },
{ 1269, script1269, ( ( 0x13D - 1) << 16 | ( 0xE )), ((void *)0) , endEvent1269 },
{ 1270, script1270, ( ( 0x13D - 1) << 16 | ( 0xF )), ((void *)0) , endEvent1270 },
{ 9000, ((void *)0) , 0, FIELDSTG_startEventBattle5, ((void *)0) },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void * FIELDSTG_startEventBattle5(void)
Starts battle 5 of the fourth area: the end of the stages' events 9000.
Definition field.c:1010
void endEvent1269(void)
After event 1269, with MagnaAngemon: lets event 1270 start and starts the stage's event battle 0.
Definition wstag550.c:35
s16 script1225[]
Definition wstag550.c:89
s16 script1270[]
Definition wstag550.c:141
void endEvent1270(void)
After event 1270, with MagnaAngemon: gives the player the Patamon DDNA and keeps it from playing agai...
Definition wstag550.c:44
s16 script1269[]
Definition wstag550.c:115

Definition at line 408 of file wstag550.c.

Referenced by setupStage().