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

WSTAG326: Control Room, Amaterasu City. More...

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

Go to the source code of this file.

Macros

#define STAGE_CHILDREN_SIZE   0x8
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_03)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_300 - 1)
 
#define STAGE_FILE   0x53A
 

Functions

void updateCommand834 (StageTask *task)
 Command 834 of the event scripts, which none of them uses: shows map objects 1 and 2 instead of 3 and 4 while running, and the other way round once done.
 
void * createCommand834 (s32 arg)
 Command 834 of the event scripts: creates its task (updateCommand834) with the given id.
 
void handleCommand834 (StageTask *task, s32 id)
 Command 834 of the event scripts: told 0x35A, swaps the map objects back (TASK_DONE)
 
void updateStage (StageTask *task, void **children)
 Back from the battle after event 1281, starts event 1282, with BK WarGreymon, unless it has played.
 
void endEvent1281 (void)
 After event 1281, with BK WarGreymon: lets event 1282 start and starts the stage's event battle 0.
 
void endEvent1282 (void)
 After event 1282, with BK WarGreymon: gives the player the Platinum ID and keeps it from playing again.
 
void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0003.
 

Variables

s16 script1281 []
 
s16 script1282 []
 
AreaBattle area0Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 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 = { 31, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle1 = { 321, 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 []
 
u16 actor0Talk0Actions [] = { (( 0xA ) << 8 | ( 0xD )) , 1, (0x9000 | ( 0x38 )) , 1, 0xFFFF }
 
u16 actor0Talk1Conditions []
 
u16 actor0Talk2Conditions []
 
u16 actor0Talk2Actions [] = { (( 0xA ) << 8 | ( 0xD )) , 1, (0x9000 | ( 0x38 )) , 1, 0xFFFF }
 
u16 actor0Talk3Conditions []
 
u16 actor1Talk0Conditions [] = { (( 0xA ) << 8 | ( 0xD )) , 0, 0xFFFF }
 
u16 actor1Talk0Actions [] = { (( 0xA ) << 8 | ( 0xD )) , 1, (0x9000 | ( 0x38 )) , 1, 0xFFFF }
 
u16 actor1Talk1Conditions [] = { (( 0xA ) << 8 | ( 0xD )) , 1, 0xFFFF }
 
u16 actor2Talk0Conditions [] = { (( 0xA ) << 8 | ( 0xD )) , 0, 0xFFFF }
 
u16 actor2Talk0Actions [] = { (( 0xA ) << 8 | ( 0xD )) , 1, (0x9000 | ( 0x38 )) , 1, 0xFFFF }
 
u16 actor2Talk1Conditions [] = { (( 0xA ) << 8 | ( 0xD )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
u16 actor0Conditions [] = { (0x7000 | ( 0x1C )) , 1, 0xFFFF }
 
u16 actor1Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor2Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x105, 4, 425, 256, 1 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x105, 4, 425, 256, 1 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x105, 4, 425, 256, 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

WSTAG326: Control Room, Amaterasu City.

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

Definition in file wstag326.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   0x8

Definition at line 95 of file wstag326.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_03)

Definition at line 121 of file wstag326.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_300 - 1)

Definition at line 122 of file wstag326.c.

◆ STAGE_FILE

#define STAGE_FILE   0x53A

Definition at line 123 of file wstag326.c.

Function Documentation

◆ updateCommand834()

void updateCommand834 ( StageTask *  task)

Command 834 of the event scripts, which none of them uses: shows map objects 1 and 2 instead of 3 and 4 while running, and the other way round once done.

Definition at line 14 of file wstag326.c.

Referenced by createCommand834().

Here is the caller graph for this function:

◆ createCommand834()

void * createCommand834 ( s32  arg)

Command 834 of the event scripts: creates its task (updateCommand834) with the given id.

Definition at line 64 of file wstag326.c.

Here is the call graph for this function:

◆ handleCommand834()

void handleCommand834 ( StageTask *  task,
s32  id 
)

Command 834 of the event scripts: told 0x35A, swaps the map objects back (TASK_DONE)

Definition at line 69 of file wstag326.c.

◆ updateStage()

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

Back from the battle after event 1281, starts event 1282, with BK WarGreymon, unless it has played.

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

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

Definition at line 79 of file wstag326.c.

Here is the call graph for this function:

◆ endEvent1281()

void endEvent1281 ( void  )

After event 1281, with BK WarGreymon: lets event 1282 start and starts the stage's event battle 0.

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

< action: FIELDSTG_battleFuncs.startEventBattle

Definition at line 102 of file wstag326.c.

◆ endEvent1282()

void endEvent1282 ( void  )

After event 1282, with BK WarGreymon: gives the player the Platinum ID and keeps it from playing again.

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

Definition at line 111 of file wstag326.c.

◆ setupStage()

void setupStage ( void  )

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

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_0003: the cities' Control Room

< ENV_0003: the cities' Control Room

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

Definition at line 126 of file wstag326.c.

Variable Documentation

◆ script1281

s16 script1281[]

Definition at line 146 of file wstag326.c.

◆ script1282

s16 script1282[]
Initial value:
= {
0x600, 1 , 2 ,
0x100, 2 , 0x18D , 0x10E ,
0x101, 2 , 1 , 5 ,
0x100, 0x105 , 0x1A9 , 0x100 ,
0x101, 0x105 , 1 , 1 ,
0x300, 0x78 ,
0x200, 0 , 1 , 0x105 , 0 ,
0x301 ,
0x300, 0x1E ,
0x200, 0 , 2 , 2 , 3 ,
0x101, 2 , 7 , 5 ,
0x301 ,
0x101, 2 , 1 , 5 ,
0x300, 0x1E ,
0x200, 0 , 3 , 0x105 , 0 ,
0x301 ,
0x101, 0x32D , 0x34A , 2 ,
0x300, 0x1E ,
0x200, 0 , 4 , 2 , 3 ,
0x101, 2 , 7 , 5 ,
0x301 ,
0x101, 2 , 1 , 5 ,
0x300, 0x1E ,
0x200, 0 , 5 , 0x105 , 0 ,
0x301 ,
0x300, 0x3C ,
0 ,
}

Definition at line 178 of file wstag326.c.

◆ area0Battle0

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

Definition at line 207 of file wstag326.c.

◆ area0Battle1

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

Definition at line 208 of file wstag326.c.

◆ area0Battle2

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

Definition at line 209 of file wstag326.c.

◆ area0Battle3

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

Definition at line 210 of file wstag326.c.

◆ area0Battle4

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

Definition at line 211 of file wstag326.c.

◆ area0Battle5

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

Definition at line 212 of file wstag326.c.

◆ area0Battle6

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

Definition at line 213 of file wstag326.c.

◆ area0Battle7

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

Definition at line 214 of file wstag326.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
0,
}
AreaBattle area0Battle7
Definition wstag326.c:214
AreaBattle area0Battle1
Definition wstag326.c:208
AreaBattle area0Battle6
Definition wstag326.c:213
AreaBattle area0Battle3
Definition wstag326.c:210
AreaBattle area0Battle5
Definition wstag326.c:212
AreaBattle area0Battle0
Definition wstag326.c:207
AreaBattle area0Battle2
Definition wstag326.c:209
AreaBattle area0Battle4
Definition wstag326.c:211

Definition at line 215 of file wstag326.c.

◆ area1Battle0

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

Definition at line 220 of file wstag326.c.

◆ area1Battle1

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

Definition at line 221 of file wstag326.c.

◆ area1Battle2

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

Definition at line 222 of file wstag326.c.

◆ area1Battle3

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

Definition at line 223 of file wstag326.c.

◆ area1Battle4

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

Definition at line 224 of file wstag326.c.

◆ area1Battle5

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

Definition at line 225 of file wstag326.c.

◆ area1Battle6

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

Definition at line 226 of file wstag326.c.

◆ area1Battle7

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

Definition at line 227 of file wstag326.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag326.c:226
AreaBattle area1Battle2
Definition wstag326.c:222
AreaBattle area1Battle4
Definition wstag326.c:224
AreaBattle area1Battle5
Definition wstag326.c:225
AreaBattle area1Battle3
Definition wstag326.c:223
AreaBattle area1Battle0
Definition wstag326.c:220
AreaBattle area1Battle1
Definition wstag326.c:221
AreaBattle area1Battle7
Definition wstag326.c:227

Definition at line 228 of file wstag326.c.

◆ area2Battle0

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

Definition at line 233 of file wstag326.c.

◆ area2Battle1

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

Definition at line 234 of file wstag326.c.

◆ area2Battle2

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

Definition at line 235 of file wstag326.c.

◆ area2Battle3

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

Definition at line 236 of file wstag326.c.

◆ area2Battle4

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

Definition at line 237 of file wstag326.c.

◆ area2Battle5

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

Definition at line 238 of file wstag326.c.

◆ area2Battle6

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

Definition at line 239 of file wstag326.c.

◆ area2Battle7

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

Definition at line 240 of file wstag326.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag326.c:240
AreaBattle area2Battle6
Definition wstag326.c:239
AreaBattle area2Battle0
Definition wstag326.c:233
AreaBattle area2Battle4
Definition wstag326.c:237
AreaBattle area2Battle2
Definition wstag326.c:235
AreaBattle area2Battle1
Definition wstag326.c:234
AreaBattle area2Battle5
Definition wstag326.c:238
AreaBattle area2Battle3
Definition wstag326.c:236

Definition at line 241 of file wstag326.c.

◆ area3Battle0

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

Definition at line 246 of file wstag326.c.

◆ area3Battle1

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

Definition at line 247 of file wstag326.c.

◆ area3Battle2

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

Definition at line 248 of file wstag326.c.

◆ area3Battle3

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

Definition at line 249 of file wstag326.c.

◆ area3Battle4

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

Definition at line 250 of file wstag326.c.

◆ area3Battle5

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

Definition at line 251 of file wstag326.c.

◆ area3Battle6

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

Definition at line 252 of file wstag326.c.

◆ area3Battle7

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

Definition at line 253 of file wstag326.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag326.c:250
AreaBattle area3Battle3
Definition wstag326.c:249
AreaBattle area3Battle0
Definition wstag326.c:246
AreaBattle area3Battle2
Definition wstag326.c:248
AreaBattle area3Battle1
Definition wstag326.c:247
AreaBattle area3Battle6
Definition wstag326.c:252
AreaBattle area3Battle5
Definition wstag326.c:251
AreaBattle area3Battle7
Definition wstag326.c:253

Definition at line 254 of file wstag326.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag326.c:254
BattleList area1Battles
Definition wstag326.c:228
BattleList area2Battles
Definition wstag326.c:241
BattleList area0Battles
Definition wstag326.c:215

Definition at line 259 of file wstag326.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, 0x140, 0x100, 0, 0, 0x140, 0x1FB },
}

Definition at line 262 of file wstag326.c.

Referenced by setupStage().

◆ actor0Talk0Conditions

u16 actor0Talk0Conditions[]
Initial value:
= {
(0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1,
(( 0xA ) << 8 | ( 0xD )) , 0,
0xFFFF ,
}
@ STORY_AMATERASU_BRIDGE
WSTAG206 (Amaterasu Bridge), event 922: an Attacker holds the bridge.
Definition story.h:133

Definition at line 271 of file wstag326.c.

◆ actor0Talk0Actions

u16 actor0Talk0Actions[] = { (( 0xA ) << 8 | ( 0xD )) , 1, (0x9000 | ( 0x38 )) , 1, 0xFFFF }

Definition at line 276 of file wstag326.c.

◆ actor0Talk1Conditions

u16 actor0Talk1Conditions[]
Initial value:
= {
(( 0xA ) << 8 | ( 0xD )) , 1,
(0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1,
0xFFFF ,
}

Definition at line 277 of file wstag326.c.

◆ actor0Talk2Conditions

u16 actor0Talk2Conditions[]
Initial value:
= {
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1,
(( 0xA ) << 8 | ( 0xD )) , 0,
0xFFFF ,
}
@ STORY_PRESIDENT_ARRESTED
WSTAG226 (Login Room, Amaterasu City), event 935, after the President of MAGAMI gives himself up (WST...
Definition story.h:136

Definition at line 282 of file wstag326.c.

◆ actor0Talk2Actions

u16 actor0Talk2Actions[] = { (( 0xA ) << 8 | ( 0xD )) , 1, (0x9000 | ( 0x38 )) , 1, 0xFFFF }

Definition at line 287 of file wstag326.c.

◆ actor0Talk3Conditions

u16 actor0Talk3Conditions[]
Initial value:
= {
(( 0xA ) << 8 | ( 0xD )) , 1,
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1,
0xFFFF ,
}

Definition at line 288 of file wstag326.c.

◆ actor1Talk0Conditions

u16 actor1Talk0Conditions[] = { (( 0xA ) << 8 | ( 0xD )) , 0, 0xFFFF }

Definition at line 293 of file wstag326.c.

◆ actor1Talk0Actions

u16 actor1Talk0Actions[] = { (( 0xA ) << 8 | ( 0xD )) , 1, (0x9000 | ( 0x38 )) , 1, 0xFFFF }

Definition at line 294 of file wstag326.c.

◆ actor1Talk1Conditions

u16 actor1Talk1Conditions[] = { (( 0xA ) << 8 | ( 0xD )) , 1, 0xFFFF }

Definition at line 295 of file wstag326.c.

◆ actor2Talk0Conditions

u16 actor2Talk0Conditions[] = { (( 0xA ) << 8 | ( 0xD )) , 0, 0xFFFF }

Definition at line 296 of file wstag326.c.

◆ actor2Talk0Actions

u16 actor2Talk0Actions[] = { (( 0xA ) << 8 | ( 0xD )) , 1, (0x9000 | ( 0x38 )) , 1, 0xFFFF }

Definition at line 297 of file wstag326.c.

◆ actor2Talk1Conditions

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

Definition at line 298 of file wstag326.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ actor0Talk1Conditions, ((void *)0) , 0xB1 },
{ actor0Talk3Conditions, ((void *)0) , 0xB2 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag326.c:276
u16 actor0Talk0Conditions[]
Definition wstag326.c:271
u16 actor0Talk1Conditions[]
Definition wstag326.c:277
u16 actor0Talk3Conditions[]
Definition wstag326.c:288
u16 actor0Talk2Actions[]
Definition wstag326.c:287
u16 actor0Talk2Conditions[]
Definition wstag326.c:282

Definition at line 299 of file wstag326.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ actor1Talk1Conditions, ((void *)0) , 0xB3 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk1Conditions[]
Definition wstag326.c:295
u16 actor1Talk0Conditions[]
Definition wstag326.c:293
u16 actor1Talk0Actions[]
Definition wstag326.c:294

Definition at line 306 of file wstag326.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ actor2Talk1Conditions, ((void *)0) , 0xB4 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk1Conditions[]
Definition wstag326.c:298
u16 actor2Talk0Actions[]
Definition wstag326.c:297
u16 actor2Talk0Conditions[]
Definition wstag326.c:296

Definition at line 311 of file wstag326.c.

◆ actor0Conditions

u16 actor0Conditions[] = { (0x7000 | ( 0x1C )) , 1, 0xFFFF }

Definition at line 316 of file wstag326.c.

◆ actor1Conditions

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

Definition at line 317 of file wstag326.c.

◆ actor2Conditions

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

Definition at line 318 of file wstag326.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x105, 4, 425, 256, 1 }

Definition at line 319 of file wstag326.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x105, 4, 425, 256, 1 }

Definition at line 320 of file wstag326.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x105, 4, 425, 256, 1 }

Definition at line 321 of file wstag326.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag326.c:319
FieldActorEntry actor2
Definition wstag326.c:321
FieldActorEntry actor1
Definition wstag326.c:320

Definition at line 322 of file wstag326.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 0x36, 2, 0, 3, 4, 0, 374, 301, 0, 0 },
{ 1, 0, 0x40, 2, 0x36, 2, 0, 3, 4, 0, 390, 293, 0, 0 },
{ 1, 0, 0x40, 2, 0x36, 2, 0, 3, 4, 0, 406, 285, 0, 0 },
{ 1, 0, 0x40, 2, 0x36, 2, 0, 3, 4, 0, 422, 277, 0, 0 },
{ 1, 0, 0x40, 2, 0x36, 2, 0, 3, 4, 0, 458, 262, 0, 0 },
{ 1, 1, 0x40, 6, 0x32, 2, 0, 2, 0x10, 0, 438, 220, 0, 0 },
{ 1, 3, 0x40, 6, 0x33, 2, 0, 1, 0x10, 0, 438, 220, 0, 0 },
{ 1, 4, 0x40, 6, 0x35, 2, 0, 3, 4, 0, 444, 202, 0, 0 },
{ 1, 2, 0x40, 6, 0x34, 2, 0, 3, 4, 0, 444, 202, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 3, 4, 0, 294, 261, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 3, 4, 0, 310, 253, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 3, 4, 0, 326, 245, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 3, 4, 0, 342, 237, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 3, 4, 0, 374, 220, 0, 0 },
{ 1, 0, 0x40, 6, 0xC, 0, 0, 0, 0, 0, 448, 207, 0, 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 328 of file wstag326.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x28A, 0x3F8, 0x2DC, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 346 of file wstag326.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_0003.
Definition wstag326.c:126

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 350 of file wstag326.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1281, script1281, ( ( 0x128 - 1) << 16 | ( 0x20 )), ((void *)0) , endEvent1281 },
{ 1282, script1282, ( ( 0x128 - 1) << 16 | ( 0x21 )), ((void *)0) , endEvent1282 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
s16 script1282[]
Definition wstag326.c:178
void endEvent1282(void)
After event 1282, with BK WarGreymon: gives the player the Platinum ID and keeps it from playing agai...
Definition wstag326.c:111
void endEvent1281(void)
After event 1281, with BK WarGreymon: lets event 1282 start and starts the stage's event battle 0.
Definition wstag326.c:102
s16 script1281[]
Definition wstag326.c:146

Definition at line 353 of file wstag326.c.

Referenced by setupStage().