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

WSTAG565: North Badland W, West Sector. More...

#include "common.h"
#include "field/stage.h"
#include "common/start_stage.inc.c"
Include dependency graph for wstag565.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   0x51B
 

Functions

void updateStage (StageTask *task, void **children)
 Back from the battle after event 1271, starts event 1272, with Taomon, unless it has played.
 
void endEvent1271 (void)
 After event 1271, with Taomon: lets event 1272 start and starts the stage's event battle 0.
 
void endEvent1272 (void)
 After event 1272, with Taomon: gives the player the Renamon 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

s16 script1271 []
 
s16 script1272 []
 
AreaBattle area0Battle0 = { 149, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 149, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 149, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 70, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 70, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 70, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 67, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 67, 3, (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 = { 267, 3, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle3 = { 329, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle6 = { 156, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList area3Battles
 
FieldBattles stageBattles []
 
ActorImage stageImages []
 
u16 actor0Talk0Actions []
 
u16 actor1Talk0Actions []
 
u16 actor2Talk0Actions []
 
u16 actor3Talk0Conditions [] = { (( 0x1C ) << 8 | ( 0x15 )) , 0, 0xFFFF }
 
u16 actor3Talk0Actions [] = { (0x9000 | ( 0x28 )) , 1, (( 0x1C ) << 8 | ( 0x15 )) , 1, 0xFFFF }
 
u16 actor3Talk1Conditions [] = { (( 0x1C ) << 8 | ( 0x15 )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
u16 actor0Conditions [] = { (( 2 ) << 8 | ( 9 )) , 0, 0xFFFF }
 
u16 actor1Conditions [] = { (( 2 ) << 8 | ( 0xA )) , 0, 0xFFFF }
 
u16 actor2Conditions [] = { (( 2 ) << 8 | ( 0xB )) , 0, 0xFFFF }
 
u16 actor3Conditions [] = { (( 6 ) << 8 | ( 3 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x26 )), 0, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x21, 4, 256, 561, 1 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x4D, 5, 784, 393, 1 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x4E, 6, 593, 793, 1 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x7D, 7, 1049, 965, 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

WSTAG565: North Badland W, West Sector.

Definition in file wstag565.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   4

Definition at line 25 of file wstag565.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_06)

Definition at line 48 of file wstag565.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_500 - 1)

Definition at line 49 of file wstag565.c.

◆ STAGE_FILE

#define STAGE_FILE   0x51B

Definition at line 50 of file wstag565.c.

Function Documentation

◆ updateStage()

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

Back from the battle after event 1271, starts event 1272, with Taomon, unless it has played.

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

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

Definition at line 9 of file wstag565.c.

Here is the call graph for this function:

◆ endEvent1271()

void endEvent1271 ( void  )

After event 1271, with Taomon: lets event 1272 start and starts the stage's event battle 0.

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

< action: FIELDSTG_battleFuncs.startEventBattle

Definition at line 29 of file wstag565.c.

◆ endEvent1272()

void endEvent1272 ( void  )

After event 1272, with Taomon: gives the player the Renamon DDNA and keeps it from playing again.

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

Definition at line 38 of file wstag565.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 56 of file wstag565.c.

Variable Documentation

◆ script1271

s16 script1271[]
Initial value:
= {
0x600, 1 , 2 ,
0x102, 2 , 0x3F9 , 0x3B5 , 7 ,
0x100, 0x7D , 0x419 , 0x3C5 ,
0x101, 0x7D , 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 , 0x7D , 2 ,
0x301 ,
0x300, 0x1E ,
0 ,
0x800A,
}

Definition at line 81 of file wstag565.c.

◆ script1272

s16 script1272[]
Initial value:
= {
0x600, 1 , 2 ,
0x100, 2 , 0x3F9 , 0x3B5 ,
0x101, 2 , 1 , 7 ,
0x100, 0x7D , 0x419 , 0x3C5 ,
0x101, 0x7D , 1 , 3 ,
0x300, 0x78 ,
0x200, 0 , 1 , 2 , 0 ,
0x101, 2 , 7 , 7 ,
0x301 ,
0x101, 2 , 1 , 7 ,
0x300, 0x1E ,
0x200, 0 , 2 , 0x7D , 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 107 of file wstag565.c.

◆ area0Battle0

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

Definition at line 130 of file wstag565.c.

◆ area0Battle1

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

Definition at line 131 of file wstag565.c.

◆ area0Battle2

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

Definition at line 132 of file wstag565.c.

◆ area0Battle3

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

Definition at line 133 of file wstag565.c.

◆ area0Battle4

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

Definition at line 134 of file wstag565.c.

◆ area0Battle5

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

Definition at line 135 of file wstag565.c.

◆ area0Battle6

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

Definition at line 136 of file wstag565.c.

◆ area0Battle7

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

Definition at line 137 of file wstag565.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
3,
}
AreaBattle area0Battle7
Definition wstag565.c:137
AreaBattle area0Battle1
Definition wstag565.c:131
AreaBattle area0Battle6
Definition wstag565.c:136
AreaBattle area0Battle3
Definition wstag565.c:133
AreaBattle area0Battle5
Definition wstag565.c:135
AreaBattle area0Battle0
Definition wstag565.c:130
AreaBattle area0Battle2
Definition wstag565.c:132
AreaBattle area0Battle4
Definition wstag565.c:134

Definition at line 138 of file wstag565.c.

◆ area1Battle0

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

Definition at line 143 of file wstag565.c.

◆ area1Battle1

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

Definition at line 144 of file wstag565.c.

◆ area1Battle2

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

Definition at line 145 of file wstag565.c.

◆ area1Battle3

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

Definition at line 146 of file wstag565.c.

◆ area1Battle4

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

Definition at line 147 of file wstag565.c.

◆ area1Battle5

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

Definition at line 148 of file wstag565.c.

◆ area1Battle6

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

Definition at line 149 of file wstag565.c.

◆ area1Battle7

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

Definition at line 150 of file wstag565.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag565.c:149
AreaBattle area1Battle2
Definition wstag565.c:145
AreaBattle area1Battle4
Definition wstag565.c:147
AreaBattle area1Battle5
Definition wstag565.c:148
AreaBattle area1Battle3
Definition wstag565.c:146
AreaBattle area1Battle0
Definition wstag565.c:143
AreaBattle area1Battle1
Definition wstag565.c:144
AreaBattle area1Battle7
Definition wstag565.c:150

Definition at line 151 of file wstag565.c.

◆ area2Battle0

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

Definition at line 156 of file wstag565.c.

◆ area2Battle1

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

Definition at line 157 of file wstag565.c.

◆ area2Battle2

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

Definition at line 158 of file wstag565.c.

◆ area2Battle3

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

Definition at line 159 of file wstag565.c.

◆ area2Battle4

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

Definition at line 160 of file wstag565.c.

◆ area2Battle5

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

Definition at line 161 of file wstag565.c.

◆ area2Battle6

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

Definition at line 162 of file wstag565.c.

◆ area2Battle7

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

Definition at line 163 of file wstag565.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag565.c:163
AreaBattle area2Battle6
Definition wstag565.c:162
AreaBattle area2Battle0
Definition wstag565.c:156
AreaBattle area2Battle4
Definition wstag565.c:160
AreaBattle area2Battle2
Definition wstag565.c:158
AreaBattle area2Battle1
Definition wstag565.c:157
AreaBattle area2Battle5
Definition wstag565.c:161
AreaBattle area2Battle3
Definition wstag565.c:159

Definition at line 164 of file wstag565.c.

◆ area3Battle0

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

Definition at line 169 of file wstag565.c.

◆ area3Battle1

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

Definition at line 170 of file wstag565.c.

◆ area3Battle2

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

Definition at line 171 of file wstag565.c.

◆ area3Battle3

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

Definition at line 172 of file wstag565.c.

◆ area3Battle4

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

Definition at line 173 of file wstag565.c.

◆ area3Battle5

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

Definition at line 174 of file wstag565.c.

◆ area3Battle6

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

Definition at line 175 of file wstag565.c.

◆ area3Battle7

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

Definition at line 176 of file wstag565.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag565.c:173
AreaBattle area3Battle3
Definition wstag565.c:172
AreaBattle area3Battle0
Definition wstag565.c:169
AreaBattle area3Battle2
Definition wstag565.c:171
AreaBattle area3Battle1
Definition wstag565.c:170
AreaBattle area3Battle6
Definition wstag565.c:175
AreaBattle area3Battle5
Definition wstag565.c:174
AreaBattle area3Battle7
Definition wstag565.c:176

Definition at line 177 of file wstag565.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag565.c:177
BattleList area1Battles
Definition wstag565.c:151
BattleList area2Battles
Definition wstag565.c:164
BattleList area0Battles
Definition wstag565.c:138

Definition at line 182 of file wstag565.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, 0x176, 0x100, 0xD8, 0, 0x150, 0x1FF },
{ 0x140, 0x100, 0x176, 0x120, 0xD8, 0x20, 0x160, 0x1FF },
{ 0x140, 0x100, 0x16E, 0x172, 0xB8, 0x72, 0x170, 0x1FF },
{ 0x140, 0x100, 0x162, 0x172, 0x88, 0x72, 0x150, 0x1FE },
}

Definition at line 185 of file wstag565.c.

Referenced by setupStage().

◆ actor0Talk0Actions

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

Definition at line 197 of file wstag565.c.

◆ actor1Talk0Actions

u16 actor1Talk0Actions[]
Initial value:
= {
(( 2 ) << 8 | ( 0xA )) , 1,
(0x7000 | ( 0x8B )) , 1,
(0x7000 | ( 0x13 )) , 1,
0xFFFF ,
}

Definition at line 203 of file wstag565.c.

◆ actor2Talk0Actions

u16 actor2Talk0Actions[]
Initial value:
= {
(( 2 ) << 8 | ( 0xB )) , 1,
(0x8000 | ( 1 ) << 9 | ( 0x45 )), 1,
(0x7000 | ( 0x13 )) , 1,
0xFFFF ,
}

Definition at line 209 of file wstag565.c.

◆ actor3Talk0Conditions

u16 actor3Talk0Conditions[] = { (( 0x1C ) << 8 | ( 0x15 )) , 0, 0xFFFF }

Definition at line 215 of file wstag565.c.

◆ actor3Talk0Actions

u16 actor3Talk0Actions[] = { (0x9000 | ( 0x28 )) , 1, (( 0x1C ) << 8 | ( 0x15 )) , 1, 0xFFFF }

Definition at line 216 of file wstag565.c.

◆ actor3Talk1Conditions

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

Definition at line 217 of file wstag565.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x16D },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag565.c:197

Definition at line 218 of file wstag565.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , actor1Talk0Actions, 0x16C },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk0Actions[]
Definition wstag565.c:203

Definition at line 222 of file wstag565.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ ((void *)0) , actor2Talk0Actions, 0x254 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk0Actions[]
Definition wstag565.c:209

Definition at line 226 of file wstag565.c.

◆ actor3Talks

FieldTalk actor3Talks[]
Initial value:
= {
{ actor3Talk1Conditions, ((void *)0) , 0x2C4 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor3Talk0Conditions[]
Definition wstag565.c:215
u16 actor3Talk1Conditions[]
Definition wstag565.c:217
u16 actor3Talk0Actions[]
Definition wstag565.c:216

Definition at line 230 of file wstag565.c.

◆ actor0Conditions

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

Definition at line 235 of file wstag565.c.

◆ actor1Conditions

u16 actor1Conditions[] = { (( 2 ) << 8 | ( 0xA )) , 0, 0xFFFF }

Definition at line 236 of file wstag565.c.

◆ actor2Conditions

u16 actor2Conditions[] = { (( 2 ) << 8 | ( 0xB )) , 0, 0xFFFF }

Definition at line 237 of file wstag565.c.

◆ actor3Conditions

u16 actor3Conditions[] = { (( 6 ) << 8 | ( 3 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x26 )), 0, 0xFFFF }

Definition at line 238 of file wstag565.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x21, 4, 256, 561, 1 }

Definition at line 239 of file wstag565.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x4D, 5, 784, 393, 1 }

Definition at line 240 of file wstag565.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x4E, 6, 593, 793, 1 }

Definition at line 241 of file wstag565.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x7D, 7, 1049, 965, 7 }

Definition at line 242 of file wstag565.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag565.c:239
FieldActorEntry actor2
Definition wstag565.c:241
FieldActorEntry actor1
Definition wstag565.c:240
FieldActorEntry actor3
Definition wstag565.c:242

Definition at line 243 of file wstag565.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 0x32, 2, 0, 3, 6, 0, 1234, 165, 0, 0 },
{ 1, 0, 0x40, 2, 0x32, 2, 0, 3, 6, 0, 1279, 187, 0, 0 },
{ 1, 0, 0x40, 6, 3, 1, 3, 8, 4, 0, 125, 286, 0, 0 },
{ 1, 0, 0x40, 6, 3, 1, 3, 8, 4, 0, 1409, 823, 0, 0 },
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 1497, 247, 283, 0 },
{ 1, 0, 0x6C, 4, 1, 0, 0, 0, 0, 0, 920, 640, 699, 0 },
{ 1, 0, 0x57, 4, 2, 0, 0, 0, 0, 0, 1040, 220, 285, 0 },
{ 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 320, 512, 512, 0 },
{ 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 432, 320, 320, 0 },
{ 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 496, 336, 336, 0 },
{ 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 720, 584, 584, 0 },
{ 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 936, 900, 900, 0 },
{ 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1136, 168, 168, 0 },
{ 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1328, 896, 896, 0 },
{ 1, 0xFF, 0x64, 4, 0x38, 0, 0, 0, 0, 0, 1568, 479, 479, 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 250 of file wstag565.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x249, 0x294, 0x1F0, 3, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x24C, 0xA8, 0x3FC, 5, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x24B, 0x90, 0xD0, 7, 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, 2, 3 },
{ { { (0x7000 | ( 0x94 )) , 1 }, { 0xFFFF , 0 } }, 9 , 0x2E9, 0xB0, 0xF8, 7, 0, 4, 1 },
{ { { (0x7000 | ( 0x94 )) , 1 }, { 0xFFFF , 0 } }, 9 , 0x2E9, 0xB0, 0xF8, 7, 0, 0x1E, 1 },
{ { { (0x7000 | ( 0x94 )) , 1 }, { 0xFFFF , 0 } }, 9 , 0x2E9, 0xB0, 0xF8, 7, 0, 8, 1 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 268 of file wstag565.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 wstag565.c:56

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 279 of file wstag565.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1271, script1271, ( ( 0x13D - 1) << 16 | ( 0x10 )), ((void *)0) , endEvent1271 },
{ 1272, script1272, ( ( 0x13D - 1) << 16 | ( 0x11 )), ((void *)0) , endEvent1272 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void endEvent1271(void)
After event 1271, with Taomon: lets event 1272 start and starts the stage's event battle 0.
Definition wstag565.c:29
s16 script1271[]
Definition wstag565.c:81
void endEvent1272(void)
After event 1272, with Taomon: gives the player the Renamon DDNA and keeps it from playing again.
Definition wstag565.c:38
s16 script1272[]
Definition wstag565.c:107

Definition at line 282 of file wstag565.c.

Referenced by setupStage().