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

WSTAG325: Control Room, Asuka City. More...

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

Go to the source code of this file.

Macros

#define STAGE_CHILDREN_SIZE   0x8
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_05)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_300 - 1)
 
#define STAGE_FILE   0x765
 

Functions

void updateCommand833 (StageTask *task)
 Command 833 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 * createCommand833 (s32 arg)
 Command 833 of the event scripts: creates its task (updateCommand833) with the given id.
 
void handleCommand833 (StageTask *task, s32 id)
 Ends the task when map object 0x35A is triggered.
 
void updateStage (StageTask *task, void **children)
 Back from the battle after event 375, starts event 376, with Datamon, unless it has played.
 
void endEvent375 (void)
 After event 375, with Datamon: lets event 376 start and starts the stage's event battle 0.
 
void endEvent376 (void)
 After event 376, with Datamon: gives the player the Rusty Glove and keeps it from playing again.
 
void endEvent560 (void)
 After event 560, with Datamon: moves the story on to STORY_CONTROL_ROOM.
 
void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0003.
 

Variables

s16 script375 []
 
s16 script376 []
 
s16 script560 []
 
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 = { 9, 19, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle1 = { 313, 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 actor1Talk0Actions [] = { (0x9000 | ( 0x41 )) , 1, (( 0xA ) << 8 | ( 3 )) , 1, 0xFFFF }
 
u16 actor3Talk0Conditions [] = { (( 0x1C ) << 8 | ( 0x1B )) , 0, 0xFFFF }
 
u16 actor3Talk0Actions [] = { (( 0x1C ) << 8 | ( 0x1B )) , 1, 0xFFFF }
 
u16 actor3Talk1Conditions [] = { (( 0x1C ) << 8 | ( 0x1B )) , 1, 0xFFFF }
 
u16 actor4Talk0Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x191 )), 0, 0xFFFF }
 
u16 actor4Talk1Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x191 )), 1, 0xFFFF }
 
u16 actor4Talk1Actions []
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
FieldTalk actor6Talks []
 
FieldTalk actor7Talks []
 
FieldTalk actor8Talks []
 
FieldTalk actor9Talks []
 
u16 actor0Conditions []
 
u16 actor1Conditions [] = { (( 0xA ) << 8 | ( 3 )) , 0, 0xFFFF }
 
u16 actor2Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, (( 0xA ) << 8 | ( 3 )) , 1, 0xFFFF }
 
u16 actor3Conditions []
 
u16 actor4Conditions [] = { (0x6000 | ( STORY_STAFF_PASS )) , 1, (( 0xA ) << 8 | ( 3 )) , 1, 0xFFFF }
 
u16 actor5Conditions [] = { (( 0xA ) << 8 | ( 3 )) , 1, (0x6000 | ( STORY_CONTROL_ROOM )) , 1, 0xFFFF }
 
u16 actor6Conditions []
 
u16 actor7Conditions []
 
u16 actor8Conditions []
 
u16 actor9Conditions []
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0xA5, 4, 433, 260, 5 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0xA5, 4, 433, 260, 5 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0xA5, 4, 433, 260, 5 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0xA5, 4, 433, 260, 5 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0xA5, 4, 433, 260, 5 }
 
FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0xA5, 4, 433, 260, 5 }
 
FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0xA5, 4, 433, 260, 5 }
 
FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0xA5, 4, 433, 260, 5 }
 
FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0xA5, 4, 433, 260, 5 }
 
FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0xA5, 4, 433, 260, 5 }
 
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

WSTAG325: Control Room, Asuka City.

Definition in file wstag325.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   0x8

Definition at line 91 of file wstag325.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_05)

Definition at line 119 of file wstag325.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_300 - 1)

Definition at line 120 of file wstag325.c.

◆ STAGE_FILE

#define STAGE_FILE   0x765

Definition at line 121 of file wstag325.c.

Function Documentation

◆ updateCommand833()

void updateCommand833 ( StageTask *  task)

Command 833 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 13 of file wstag325.c.

Referenced by createCommand833().

Here is the caller graph for this function:

◆ createCommand833()

void * createCommand833 ( s32  arg)

Command 833 of the event scripts: creates its task (updateCommand833) with the given id.

Definition at line 63 of file wstag325.c.

Here is the call graph for this function:

◆ handleCommand833()

void handleCommand833 ( StageTask *  task,
s32  id 
)

Ends the task when map object 0x35A is triggered.

Definition at line 68 of file wstag325.c.

◆ updateStage()

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

Back from the battle after event 375, starts event 376, with Datamon, unless it has played.

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

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

Definition at line 75 of file wstag325.c.

Here is the call graph for this function:

◆ endEvent375()

void endEvent375 ( void  )

After event 375, with Datamon: lets event 376 start and starts the stage's event battle 0.

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

< action: FIELDSTG_battleFuncs.startEventBattle

Definition at line 95 of file wstag325.c.

◆ endEvent376()

void endEvent376 ( void  )

After event 376, with Datamon: gives the player the Rusty Glove and keeps it from playing again.

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

Definition at line 104 of file wstag325.c.

◆ endEvent560()

void endEvent560 ( void  )

After event 560, with Datamon: moves the story on to STORY_CONTROL_ROOM.

Definition at line 110 of file wstag325.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 124 of file wstag325.c.

Variable Documentation

◆ script375

s16 script375[]
Initial value:
= {
0x102, 2 , 0x191 , 0x114 , 5 ,
0x100, 0xA5 , 0x1B1 , 0x104 ,
0x101, 0xA5 , 1 , 1 ,
0x101, 0x32D , 0x337 , 2 ,
0x302, 2 ,
0x101, 2 , 1 , 5 ,
0x300, 0x1E ,
0x200, 0 , 2 , 0xA5 , 2 ,
0x301 ,
0x300, 0x1E ,
0x200, 0 , 3 , 2 , 1 ,
0x101, 2 , 7 , 5 ,
0x301 ,
0x101, 2 , 1 , 5 ,
0x101, 0x323 , 0x325 , 0xA5 ,
0x300, 0x3C ,
0x101, 0x323 , 0x326 , 2 ,
0x300, 0x1E ,
0x200, 0 , 4 , 0xA5 , 2 ,
0x301 ,
0x300, 0x1E ,
0x200, 0 , 5 , 2 , 1 ,
0x101, 2 , 7 , 5 ,
0x301 ,
0x101, 2 , 1 , 5 ,
0x300, 0x1E ,
0 ,
}

Definition at line 144 of file wstag325.c.

◆ script376

s16 script376[]
Initial value:
= {
0x100, 2 , 0x191 , 0x114 ,
0x101, 2 , 1 , 5 ,
0x100, 0xA5 , 0x1B1 , 0x104 ,
0x101, 0xA5 , 1 , 1 ,
0x300, 0x78 ,
0x200, 0 , 1 , 0xA5 , 2 ,
0x301 ,
0x101, 0x32D , 0x34A , 2 ,
0x300, 0x1E ,
0x200, 0 , 2 , 2 , 1 ,
0x101, 2 , 7 , 5 ,
0x301 ,
0x101, 2 , 1 , 5 ,
0x300, 0x1E ,
0x200, 0 , 3 , 0xA5 , 2 ,
0x301 ,
0x300, 0x1E ,
0x200, 0 , 4 , 2 , 1 ,
0x101, 2 , 7 , 5 ,
0x301 ,
0x101, 2 , 1 , 5 ,
0x300, 0x1E ,
0 ,
}

Definition at line 173 of file wstag325.c.

◆ script560

s16 script560[]
Initial value:
= {
0x102, 2 , 0x191 , 0x114 , 5 ,
0x100, 0xA5 , 0x1B1 , 0x104 ,
0x101, 0xA5 , 1 , 1 ,
0x101, 0x32D , 0x337 , 2 ,
0x302, 2 ,
0x101, 2 , 1 , 5 ,
0x101, 0x323 , 0x325 , 0xA5 ,
0x300, 0x3C ,
0x101, 0x323 , 0x326 , 0xA5 ,
0x300, 0x1E ,
0x200, 0 , 1 , 0xA5 , 2 ,
0x301 ,
0x300, 0x1E ,
0x200, 0 , 2 , 2 , 1 ,
0x101, 2 , 7 , 5 ,
0x301 ,
0x101, 2 , 1 , 5 ,
0x300, 0x18 ,
0x101, 2 , 1 , 1 ,
0x300, 0x18 ,
0x102, 2 , 0x154 , 0x132 , 1 ,
0x300, 0xC ,
0x304, 0x21B , 0x3F8 , 0x2DC , 1 ,
0 ,
}

Definition at line 198 of file wstag325.c.

◆ area0Battle0

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

Definition at line 224 of file wstag325.c.

◆ area0Battle1

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

Definition at line 225 of file wstag325.c.

◆ area0Battle2

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

Definition at line 226 of file wstag325.c.

◆ area0Battle3

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

Definition at line 227 of file wstag325.c.

◆ area0Battle4

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

Definition at line 228 of file wstag325.c.

◆ area0Battle5

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

Definition at line 229 of file wstag325.c.

◆ area0Battle6

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

Definition at line 230 of file wstag325.c.

◆ area0Battle7

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

Definition at line 231 of file wstag325.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
0,
}
AreaBattle area0Battle7
Definition wstag325.c:231
AreaBattle area0Battle1
Definition wstag325.c:225
AreaBattle area0Battle6
Definition wstag325.c:230
AreaBattle area0Battle3
Definition wstag325.c:227
AreaBattle area0Battle5
Definition wstag325.c:229
AreaBattle area0Battle0
Definition wstag325.c:224
AreaBattle area0Battle2
Definition wstag325.c:226
AreaBattle area0Battle4
Definition wstag325.c:228

Definition at line 232 of file wstag325.c.

◆ area1Battle0

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

Definition at line 237 of file wstag325.c.

◆ area1Battle1

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

Definition at line 238 of file wstag325.c.

◆ area1Battle2

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

Definition at line 239 of file wstag325.c.

◆ area1Battle3

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

Definition at line 240 of file wstag325.c.

◆ area1Battle4

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

Definition at line 241 of file wstag325.c.

◆ area1Battle5

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

Definition at line 242 of file wstag325.c.

◆ area1Battle6

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

Definition at line 243 of file wstag325.c.

◆ area1Battle7

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

Definition at line 244 of file wstag325.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag325.c:243
AreaBattle area1Battle2
Definition wstag325.c:239
AreaBattle area1Battle4
Definition wstag325.c:241
AreaBattle area1Battle5
Definition wstag325.c:242
AreaBattle area1Battle3
Definition wstag325.c:240
AreaBattle area1Battle0
Definition wstag325.c:237
AreaBattle area1Battle1
Definition wstag325.c:238
AreaBattle area1Battle7
Definition wstag325.c:244

Definition at line 245 of file wstag325.c.

◆ area2Battle0

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

Definition at line 250 of file wstag325.c.

◆ area2Battle1

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

Definition at line 251 of file wstag325.c.

◆ area2Battle2

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

Definition at line 252 of file wstag325.c.

◆ area2Battle3

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

Definition at line 253 of file wstag325.c.

◆ area2Battle4

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

Definition at line 254 of file wstag325.c.

◆ area2Battle5

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

Definition at line 255 of file wstag325.c.

◆ area2Battle6

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

Definition at line 256 of file wstag325.c.

◆ area2Battle7

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

Definition at line 257 of file wstag325.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag325.c:257
AreaBattle area2Battle6
Definition wstag325.c:256
AreaBattle area2Battle0
Definition wstag325.c:250
AreaBattle area2Battle4
Definition wstag325.c:254
AreaBattle area2Battle2
Definition wstag325.c:252
AreaBattle area2Battle1
Definition wstag325.c:251
AreaBattle area2Battle5
Definition wstag325.c:255
AreaBattle area2Battle3
Definition wstag325.c:253

Definition at line 258 of file wstag325.c.

◆ area3Battle0

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

Definition at line 263 of file wstag325.c.

◆ area3Battle1

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

Definition at line 264 of file wstag325.c.

◆ area3Battle2

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

Definition at line 265 of file wstag325.c.

◆ area3Battle3

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

Definition at line 266 of file wstag325.c.

◆ area3Battle4

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

Definition at line 267 of file wstag325.c.

◆ area3Battle5

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

Definition at line 268 of file wstag325.c.

◆ area3Battle6

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

Definition at line 269 of file wstag325.c.

◆ area3Battle7

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

Definition at line 270 of file wstag325.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag325.c:267
AreaBattle area3Battle3
Definition wstag325.c:266
AreaBattle area3Battle0
Definition wstag325.c:263
AreaBattle area3Battle2
Definition wstag325.c:265
AreaBattle area3Battle1
Definition wstag325.c:264
AreaBattle area3Battle6
Definition wstag325.c:269
AreaBattle area3Battle5
Definition wstag325.c:268
AreaBattle area3Battle7
Definition wstag325.c:270

Definition at line 271 of file wstag325.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag325.c:271
BattleList area1Battles
Definition wstag325.c:245
BattleList area2Battles
Definition wstag325.c:258
BattleList area0Battles
Definition wstag325.c:232

Definition at line 276 of file wstag325.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, 0x168, 0x100, 0xA0, 0, 0x140, 0x1EE },
}

Definition at line 279 of file wstag325.c.

Referenced by setupStage().

◆ actor1Talk0Actions

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

Definition at line 288 of file wstag325.c.

◆ actor3Talk0Conditions

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

Definition at line 289 of file wstag325.c.

◆ actor3Talk0Actions

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

Definition at line 290 of file wstag325.c.

◆ actor3Talk1Conditions

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

Definition at line 291 of file wstag325.c.

◆ actor4Talk0Conditions

u16 actor4Talk0Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0x191 )), 0, 0xFFFF }

Definition at line 292 of file wstag325.c.

◆ actor4Talk1Conditions

u16 actor4Talk1Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0x191 )), 1, 0xFFFF }

Definition at line 293 of file wstag325.c.

◆ actor4Talk1Actions

u16 actor4Talk1Actions[]
Initial value:
= {
(0x9000 | ( 0x24 )) , 1,
(( 0x1C ) << 8 | ( 0x1D )) , 1,
(( 0x40 ) << 8 | ( 5 )) , 1,
0xFFFF ,
}

Definition at line 294 of file wstag325.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x497 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 300 of file wstag325.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , actor1Talk0Actions, 0xB3 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk0Actions[]
Definition wstag325.c:288

Definition at line 304 of file wstag325.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x416 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 308 of file wstag325.c.

◆ actor3Talks

FieldTalk actor3Talks[]
Initial value:
= {
{ actor3Talk1Conditions, ((void *)0) , 0x499 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor3Talk0Conditions[]
Definition wstag325.c:289
u16 actor3Talk1Conditions[]
Definition wstag325.c:291
u16 actor3Talk0Actions[]
Definition wstag325.c:290

Definition at line 312 of file wstag325.c.

◆ actor4Talks

FieldTalk actor4Talks[]
Initial value:
= {
{ actor4Talk0Conditions, ((void *)0) , 0x410 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor4Talk1Actions[]
Definition wstag325.c:294
u16 actor4Talk1Conditions[]
Definition wstag325.c:293
u16 actor4Talk0Conditions[]
Definition wstag325.c:292

Definition at line 317 of file wstag325.c.

◆ actor5Talks

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

Definition at line 322 of file wstag325.c.

◆ actor6Talks

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

Definition at line 326 of file wstag325.c.

◆ actor7Talks

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

Definition at line 330 of file wstag325.c.

◆ actor8Talks

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

Definition at line 334 of file wstag325.c.

◆ actor9Talks

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

Definition at line 338 of file wstag325.c.

◆ actor0Conditions

u16 actor0Conditions[]
Initial value:
= {
(0x7000 | ( 0x16 )) , 1,
(( 0xA ) << 8 | ( 3 )) , 1,
0xFFFF ,
}

Definition at line 342 of file wstag325.c.

◆ actor1Conditions

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

Definition at line 347 of file wstag325.c.

◆ actor2Conditions

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

Definition at line 348 of file wstag325.c.

◆ actor3Conditions

u16 actor3Conditions[]
Initial value:
= {
(( 0xA ) << 8 | ( 3 )) , 1,
(0x6000 | ( STORY_BYAKKO_LEADER_FOUGHT )) , 1,
0xFFFF ,
}
@ STORY_BYAKKO_LEADER_FOUGHT
WSTAG620 (the rebels' hideout), event 534: the Byakko Leader takes the player for the A....
Definition story.h:85

Definition at line 349 of file wstag325.c.

◆ actor4Conditions

u16 actor4Conditions[] = { (0x6000 | ( STORY_STAFF_PASS )) , 1, (( 0xA ) << 8 | ( 3 )) , 1, 0xFFFF }

Definition at line 354 of file wstag325.c.

◆ actor5Conditions

u16 actor5Conditions[] = { (( 0xA ) << 8 | ( 3 )) , 1, (0x6000 | ( STORY_CONTROL_ROOM )) , 1, 0xFFFF }

Definition at line 355 of file wstag325.c.

◆ actor6Conditions

u16 actor6Conditions[]
Initial value:
= {
(0x7000 | ( 0x18 )) , 1,
(( 0xA ) << 8 | ( 3 )) , 1,
0xFFFF ,
}

Definition at line 356 of file wstag325.c.

◆ actor7Conditions

u16 actor7Conditions[]
Initial value:
= {
(( 0xA ) << 8 | ( 3 )) , 1,
(0x7000 | ( 0x19 )) , 1,
0xFFFF ,
}

Definition at line 361 of file wstag325.c.

◆ actor8Conditions

u16 actor8Conditions[]
Initial value:
= {
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1,
(( 0xA ) << 8 | ( 3 )) , 1,
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 366 of file wstag325.c.

◆ actor9Conditions

u16 actor9Conditions[]
Initial value:
= {
(( 0xA ) << 8 | ( 3 )) , 1,
(0x7000 | ( 0x1A )) , 1,
0xFFFF ,
}

Definition at line 371 of file wstag325.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0xA5, 4, 433, 260, 5 }

Definition at line 376 of file wstag325.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0xA5, 4, 433, 260, 5 }

Definition at line 377 of file wstag325.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0xA5, 4, 433, 260, 5 }

Definition at line 378 of file wstag325.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0xA5, 4, 433, 260, 5 }

Definition at line 379 of file wstag325.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0xA5, 4, 433, 260, 5 }

Definition at line 380 of file wstag325.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0xA5, 4, 433, 260, 5 }

Definition at line 381 of file wstag325.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0xA5, 4, 433, 260, 5 }

Definition at line 382 of file wstag325.c.

◆ actor7

FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0xA5, 4, 433, 260, 5 }

Definition at line 383 of file wstag325.c.

◆ actor8

FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0xA5, 4, 433, 260, 5 }

Definition at line 384 of file wstag325.c.

◆ actor9

FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0xA5, 4, 433, 260, 5 }

Definition at line 385 of file wstag325.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag325.c:376
FieldActorEntry actor6
Definition wstag325.c:382
FieldActorEntry actor5
Definition wstag325.c:381
FieldActorEntry actor2
Definition wstag325.c:378
FieldActorEntry actor4
Definition wstag325.c:380
FieldActorEntry actor8
Definition wstag325.c:384
FieldActorEntry actor9
Definition wstag325.c:385
FieldActorEntry actor7
Definition wstag325.c:383
FieldActorEntry actor1
Definition wstag325.c:377
FieldActorEntry actor3
Definition wstag325.c:379

Definition at line 386 of file wstag325.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, 0, 0x49, 6, 0, 1, 0, 3, 4, 0, 84, 193, 0, 0 },
{ 1, 0, 0x5D, 6, 4, 1, 4, 7, 4, 0, 68, 252, 0, 0 },
{ 1, 0, 0x5D, 6, 5, 1, 5, 8, 4, 0, 131, 227, 0, 0 },
{ 1, 0, 0x5D, 6, 0xB, 1, 0xB, 0xE, 4, 0, 182, 153, 0, 0 },
{ 1, 0, 0x49, 6, 0, 1, 0, 3, 4, 0, 227, 178, 0, 0 },
{ 1, 0, 0x5D, 6, 7, 1, 7, 0xA, 4, 0, 272, 108, 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, 2, 0x40, 6, 0x34, 2, 0, 3, 4, 0, 444, 202, 0, 0 },
{ 1, 4, 0x40, 6, 0x35, 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, 0xF, 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 399 of file wstag325.c.

Referenced by setupStage().

◆ stageSlots

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

Definition at line 423 of file wstag325.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 wstag325.c:124

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 427 of file wstag325.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 375, script375, ( ( 0x128 - 1) << 16 | ( 4 )), ((void *)0) , endEvent375 },
{ 376, script376, ( ( 0x128 - 1) << 16 | ( 5 )), ((void *)0) , endEvent376 },
{ 560, script560, ( ( 0x128 - 1) << 16 | ( 6 )), ((void *)0) , endEvent560 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
s16 script376[]
Definition wstag325.c:173
void endEvent376(void)
After event 376, with Datamon: gives the player the Rusty Glove and keeps it from playing again.
Definition wstag325.c:104
s16 script375[]
Definition wstag325.c:144
void endEvent375(void)
After event 375, with Datamon: lets event 376 start and starts the stage's event battle 0.
Definition wstag325.c:95
void endEvent560(void)
After event 560, with Datamon: moves the story on to STORY_CONTROL_ROOM.
Definition wstag325.c:110
s16 script560[]
Definition wstag325.c:198

Definition at line 430 of file wstag325.c.

Referenced by setupStage().