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

WSTAG795: Magasta B1F, Undersea Base. More...

Include dependency graph for wstag795.c:

Go to the source code of this file.

Macros

#define TIMER_SHEET   0x6F6
 
#define STAGE_CHILDREN_SIZE   0xC
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_700 - 1)
 
#define STAGE_FILE   0x6F6
 
#define STAGE_FILE_8   0x721
 

Functions

void updateTilePair (StageTilePair *task)
 Shows the first map object animated while running; when done, both.
 
void handleCommand836 (StageTilePair *task, s32 id)
 Plays the first map object's one-shot animation when the event of map object 0x35B happens.
 
void * createTilePair (s32 arg)
 Creates the control panel's map objects of event 840 (updateTilePair) with an id.
 
void * createTilePairDone (void)
 Creates the tile pair object, started in TASK_DONE.
 
void updateTimer (StageTask *task, void **children)
 The timer: counts GAME.countdown down while nothing stops it, then starts event 0x5E1.
 
void updateStage (StageTask *task, void **children)
 Creates the timer, one of two objects by flag 0x4063, and the event object of story progress 0x20.
 
void endEvent830 (void)
 After event 830, with the player: keeps it from playing again.
 
void endEvent840 (void)
 After event 840, with the player: lets event 850 of WSTAG800 start and keeps it from playing again.
 
void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing BGM_0011.
 

Variables

s16 timerDigitX []
 Defined below, after the code that uses them.
 
AnimFrame updateTilePairFrames_0 []
 
AnimFrame updateTilePairFrames_1 []
 
AnimFrame updateTilePairFrames_2 []
 
AnimFrame * updateTilePairFrames []
 
s16 script830 []
 
s16 script840 []
 
s16 script1505 []
 
AreaBattle area0Battle0 = { 124, 16, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 124, 16, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 124, 16, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 125, 16, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 125, 16, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 125, 16, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 123, 16, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 123, 16, (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 = { 0, 0, (0x60000000 | ( 1 ) << 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 = { 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 actor0Talk0Actions [] = { (( 2 ) << 8 | ( 0x39 )) , 1, (0x8000 | ( 2 ) << 9 | ( 0xD5 )), 1, 0xFFFF }
 
u16 actor1Talk0Actions [] = { (( 2 ) << 8 | ( 0x3A )) , 1, 0xFFFF }
 
u16 actor2Talk0Actions [] = { (( 2 ) << 8 | ( 0x3B )) , 1, (0x8000 | ( 1 ) << 9 | ( 0x2B )), 1, 0xFFFF }
 
u16 actor3Talk0Actions [] = { (( 2 ) << 8 | ( 0x3C )) , 1, 0xFFFF }
 
u16 actor4Talk0Actions [] = { (( 2 ) << 8 | ( 0x3D )) , 1, 0xFFFF }
 
u16 actor5Talk0Actions [] = { (( 2 ) << 8 | ( 0x3E )) , 1, (0x8000 | ( 4 ) << 9 | ( 0xA5 )), 1, 0xFFFF }
 
u16 actor6Talk0Actions [] = { (( 2 ) << 8 | ( 0x3F )) , 1, (0x8000 | ( 2 ) << 9 | ( 0xAE )), 1, 0xFFFF }
 
u16 actor7Talk0Actions [] = { (( 2 ) << 8 | ( 0x40 )) , 1, 0xFFFF }
 
u16 actor8Talk0Actions [] = { (( 2 ) << 8 | ( 0x41 )) , 1, (0x8000 | ( 1 ) << 9 | ( 0x2C )), 1, 0xFFFF }
 
u16 actor9Talk0Actions [] = { (( 2 ) << 8 | ( 0x42 )) , 1, (0x8000 | ( 2 ) << 9 | ( 0x64 )), 1, 0xFFFF }
 
u16 actor10Talk0Actions [] = { (( 2 ) << 8 | ( 0x43 )) , 1, (0x8000 | ( 2 ) << 9 | ( 0x97 )), 1, 0xFFFF }
 
u16 actor11Talk0Actions []
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
FieldTalk actor6Talks []
 
FieldTalk actor7Talks []
 
FieldTalk actor8Talks []
 
FieldTalk actor9Talks []
 
FieldTalk actor10Talks []
 
FieldTalk actor11Talks []
 
u16 actor0Conditions [] = { (( 2 ) << 8 | ( 0x39 )) , 0, 0xFFFF }
 
u16 actor1Conditions [] = { (( 2 ) << 8 | ( 0x3A )) , 0, 0xFFFF }
 
u16 actor2Conditions [] = { (( 2 ) << 8 | ( 0x3B )) , 0, 0xFFFF }
 
u16 actor3Conditions [] = { (( 2 ) << 8 | ( 0x3C )) , 0, 0xFFFF }
 
u16 actor4Conditions [] = { (( 2 ) << 8 | ( 0x3D )) , 0, 0xFFFF }
 
u16 actor5Conditions [] = { (( 2 ) << 8 | ( 0x3E )) , 0, 0xFFFF }
 
u16 actor6Conditions [] = { (( 2 ) << 8 | ( 0x3F )) , 0, 0xFFFF }
 
u16 actor7Conditions [] = { (( 2 ) << 8 | ( 0x40 )) , 0, 0xFFFF }
 
u16 actor8Conditions [] = { (( 2 ) << 8 | ( 0x41 )) , 0, 0xFFFF }
 
u16 actor9Conditions [] = { (( 2 ) << 8 | ( 0x42 )) , 0, 0xFFFF }
 
u16 actor10Conditions [] = { (( 2 ) << 8 | ( 0x43 )) , 0, 0xFFFF }
 
u16 actor11Conditions [] = { (( 2 ) << 8 | ( 0x44 )) , 0, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x21, 4, 961, 678, 1 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x4D, 5, 737, 855, 1 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x4E, 6, 640, 903, 1 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x4F, 7, 545, 950, 1 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x50, 8, 768, 998, 1 }
 
FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x51, 9, 400, 558, 1 }
 
FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x52, 0xA, 784, 366, 1 }
 
FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x53, 0xB, 432, 478, 1 }
 
FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x54, 0xC, 672, 1047, 1 }
 
FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x55, 0xD, 335, 527, 1 }
 
FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x56, 0xE, 160, 823, 1 }
 
FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x57, 0xF, 205, 526, 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

WSTAG795: Magasta B1F, Undersea Base.

The terrorists' base in the Real World, where the 180 seconds run out and the player is digitized back.

Definition in file wstag795.c.

Macro Definition Documentation

◆ TIMER_SHEET

#define TIMER_SHEET   0x6F6

Definition at line 11 of file wstag795.c.

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   0xC

Definition at line 187 of file wstag795.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)

Definition at line 210 of file wstag795.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_700 - 1)

Definition at line 211 of file wstag795.c.

◆ STAGE_FILE

#define STAGE_FILE   0x6F6

Definition at line 212 of file wstag795.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x721

Definition at line 213 of file wstag795.c.

Function Documentation

◆ updateTilePair()

void updateTilePair ( StageTilePair *  task)

Shows the first map object animated while running; when done, both.

Definition at line 24 of file wstag795.c.

Referenced by createTilePair(), and createTilePairDone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handleCommand836()

void handleCommand836 ( StageTilePair *  task,
s32  id 
)

Plays the first map object's one-shot animation when the event of map object 0x35B happens.

Definition at line 104 of file wstag795.c.

◆ createTilePair()

void * createTilePair ( s32  arg)

Creates the control panel's map objects of event 840 (updateTilePair) with an id.

Definition at line 114 of file wstag795.c.

Referenced by updateStage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createTilePairDone()

void * createTilePairDone ( void  )

Creates the tile pair object, started in TASK_DONE.

Definition at line 119 of file wstag795.c.

Referenced by updateStage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateTimer()

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

The timer: counts GAME.countdown down while nothing stops it, then starts event 0x5E1.

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

< SYSTEM10: a number counts up or down

Definition at line 129 of file wstag795.c.

Referenced by createTimer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateStage()

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

Creates the timer, one of two objects by flag 0x4063, and the event object of story progress 0x20.

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

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

Definition at line 165 of file wstag795.c.

Here is the call graph for this function:

◆ endEvent830()

void endEvent830 ( void  )

After event 830, with the player: keeps it from playing again.

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

Definition at line 191 of file wstag795.c.

◆ endEvent840()

void endEvent840 ( void  )

After event 840, with the player: lets event 850 of WSTAG800 start and keeps it from playing again.

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

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

Definition at line 199 of file wstag795.c.

◆ setupStage()

void setupStage ( void  )

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

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_0011: the Undersea Base (Magasta), and the Deeper Crevice's gondola

< BGM_0011: the Undersea Base (Magasta), and the Deeper Crevice's gondola

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

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

Definition at line 216 of file wstag795.c.

Variable Documentation

◆ timerDigitX

s16 timerDigitX
Initial value:
= {
226, 253, 0x118, 0,
}

Defined below, after the code that uses them.

Definition at line 345 of file wstag795.c.

Referenced by drawTimer().

◆ updateTilePairFrames_0

AnimFrame updateTilePairFrames_0
Initial value:
= {
{ 0, 8 }, { 1, 8 }, { 255, 0 },
}

Definition at line 330 of file wstag795.c.

Referenced by updateTilePair().

◆ updateTilePairFrames_1

AnimFrame updateTilePairFrames_1
Initial value:
= {
{ 71, 4 }, { 72, 4 }, { 73, 4 }, { 74, 4 },
{ 75, 4 }, { 76, 4 }, { 77, 4 }, { 78, 4 },
{ 79, 4 }, { 80, 4 }, { 255, 0 },
}

Definition at line 333 of file wstag795.c.

Referenced by handleCommand836(), and updateTilePair().

◆ updateTilePairFrames_2

AnimFrame updateTilePairFrames_2
Initial value:
= {
{ 0, 6 }, { 1, 6 }, { 2, 6 }, { 3, 6 },
{ 4, 6 }, { 5, 6 }, { 255, 0 },
}

Definition at line 338 of file wstag795.c.

Referenced by updateTilePair().

◆ updateTilePairFrames

AnimFrame * updateTilePairFrames
Initial value:
= {
}
AnimFrame updateTilePairFrames_2[]
Definition wstag795.c:338
AnimFrame updateTilePairFrames_1[]
Definition wstag795.c:333
AnimFrame updateTilePairFrames_0[]
Definition wstag795.c:330

Definition at line 342 of file wstag795.c.

Referenced by updateTilePair().

◆ script830

s16 script830[]
Initial value:
= {
0x100, 2 , 0x45F , 0x37D ,
0x101, 2 , 1 , 1 ,
0x300, 0x78 ,
0x101, 0x323 , 0x325 , 2 ,
0x300, 0x5A ,
0x101, 0x323 , 0x326 , 2 ,
0x300, 0x1E ,
0x101, 2 , 1 , 7 ,
0x300, 0x1E ,
0x101, 2 , 1 , 1 ,
0x300, 0x1E ,
0x101, 2 , 1 , 7 ,
0x300, 0x1E ,
0x101, 2 , 1 , 1 ,
0x300, 0x1E ,
0x200, 0 , 1 , 2 , 2 ,
0x101, 2 , 7 , 1 ,
0x301 ,
0x101, 2 , 1 , 1 ,
0x300, 0x1E ,
0 ,
}

Definition at line 237 of file wstag795.c.

◆ script840

s16 script840[]

Definition at line 266 of file wstag795.c.

◆ script1505

s16 script1505[]
Initial value:
= {
0x300, 0x1E ,
0x101, 0x323 , 0x325 , 2 ,
0x300, 0x5A ,
0x101, 0x323 , 0x326 , 2 ,
0x300, 0x1E ,
0x101, 2 , 1 , 0 ,
0x300, 0x1E ,
0x200, 0 , 1 , 2 , 2 ,
0x101, 2 , 7 , 0 ,
0x301 ,
0x101, 2 , 1 , 0 ,
0x300, 0x1E ,
0x304, 0x26D , 1 , 1 , 1 ,
0 ,
}

Definition at line 314 of file wstag795.c.

◆ area0Battle0

AreaBattle area0Battle0 = { 124, 16, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 348 of file wstag795.c.

◆ area0Battle1

AreaBattle area0Battle1 = { 124, 16, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 349 of file wstag795.c.

◆ area0Battle2

AreaBattle area0Battle2 = { 124, 16, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 350 of file wstag795.c.

◆ area0Battle3

AreaBattle area0Battle3 = { 125, 16, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 351 of file wstag795.c.

◆ area0Battle4

AreaBattle area0Battle4 = { 125, 16, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 352 of file wstag795.c.

◆ area0Battle5

AreaBattle area0Battle5 = { 125, 16, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 353 of file wstag795.c.

◆ area0Battle6

AreaBattle area0Battle6 = { 123, 16, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 354 of file wstag795.c.

◆ area0Battle7

AreaBattle area0Battle7 = { 123, 16, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 355 of file wstag795.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
3,
}
AreaBattle area0Battle7
Definition wstag795.c:355
AreaBattle area0Battle1
Definition wstag795.c:349
AreaBattle area0Battle6
Definition wstag795.c:354
AreaBattle area0Battle3
Definition wstag795.c:351
AreaBattle area0Battle5
Definition wstag795.c:353
AreaBattle area0Battle0
Definition wstag795.c:348
AreaBattle area0Battle2
Definition wstag795.c:350
AreaBattle area0Battle4
Definition wstag795.c:352

Definition at line 356 of file wstag795.c.

◆ area1Battle0

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

Definition at line 361 of file wstag795.c.

◆ area1Battle1

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

Definition at line 362 of file wstag795.c.

◆ area1Battle2

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

Definition at line 363 of file wstag795.c.

◆ area1Battle3

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

Definition at line 364 of file wstag795.c.

◆ area1Battle4

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

Definition at line 365 of file wstag795.c.

◆ area1Battle5

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

Definition at line 366 of file wstag795.c.

◆ area1Battle6

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

Definition at line 367 of file wstag795.c.

◆ area1Battle7

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

Definition at line 368 of file wstag795.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag795.c:367
AreaBattle area1Battle2
Definition wstag795.c:363
AreaBattle area1Battle4
Definition wstag795.c:365
AreaBattle area1Battle5
Definition wstag795.c:366
AreaBattle area1Battle3
Definition wstag795.c:364
AreaBattle area1Battle0
Definition wstag795.c:361
AreaBattle area1Battle1
Definition wstag795.c:362
AreaBattle area1Battle7
Definition wstag795.c:368

Definition at line 369 of file wstag795.c.

◆ area2Battle0

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

Definition at line 374 of file wstag795.c.

◆ area2Battle1

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

Definition at line 375 of file wstag795.c.

◆ area2Battle2

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

Definition at line 376 of file wstag795.c.

◆ area2Battle3

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

Definition at line 377 of file wstag795.c.

◆ area2Battle4

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

Definition at line 378 of file wstag795.c.

◆ area2Battle5

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

Definition at line 379 of file wstag795.c.

◆ area2Battle6

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

Definition at line 380 of file wstag795.c.

◆ area2Battle7

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

Definition at line 381 of file wstag795.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag795.c:381
AreaBattle area2Battle6
Definition wstag795.c:380
AreaBattle area2Battle0
Definition wstag795.c:374
AreaBattle area2Battle4
Definition wstag795.c:378
AreaBattle area2Battle2
Definition wstag795.c:376
AreaBattle area2Battle1
Definition wstag795.c:375
AreaBattle area2Battle5
Definition wstag795.c:379
AreaBattle area2Battle3
Definition wstag795.c:377

Definition at line 382 of file wstag795.c.

◆ area3Battle0

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

Definition at line 387 of file wstag795.c.

◆ area3Battle1

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

Definition at line 388 of file wstag795.c.

◆ area3Battle2

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

Definition at line 389 of file wstag795.c.

◆ area3Battle3

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

Definition at line 390 of file wstag795.c.

◆ area3Battle4

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

Definition at line 391 of file wstag795.c.

◆ area3Battle5

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

Definition at line 392 of file wstag795.c.

◆ area3Battle6

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

Definition at line 393 of file wstag795.c.

◆ area3Battle7

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

Definition at line 394 of file wstag795.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag795.c:391
AreaBattle area3Battle3
Definition wstag795.c:390
AreaBattle area3Battle0
Definition wstag795.c:387
AreaBattle area3Battle2
Definition wstag795.c:389
AreaBattle area3Battle1
Definition wstag795.c:388
AreaBattle area3Battle6
Definition wstag795.c:393
AreaBattle area3Battle5
Definition wstag795.c:392
AreaBattle area3Battle7
Definition wstag795.c:394

Definition at line 395 of file wstag795.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag795.c:395
BattleList area1Battles
Definition wstag795.c:369
BattleList area2Battles
Definition wstag795.c:382
BattleList area0Battles
Definition wstag795.c:356

Definition at line 400 of file wstag795.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, 0x14C, 0x19A, 0x30, 0x9A, 0x140, 0x1F9 },
{ 0x140, 0x100, 0x140, 0x1A2, 0, 0xA2, 0x150, 0x1F9 },
{ 0x140, 0x100, 0x152, 0x1B9, 0x48, 0xB9, 0x160, 0x1F9 },
{ 0x140, 0x100, 0x158, 0x1B9, 0x60, 0xB9, 0x170, 0x1F9 },
{ 0x140, 0x100, 0x15E, 0x1B9, 0x78, 0xB9, 0x140, 0x1F8 },
{ 0x140, 0x100, 0x164, 0x1B9, 0x90, 0xB9, 0x150, 0x1F8 },
{ 0x140, 0x100, 0x146, 0x1BA, 0x18, 0xBA, 0x160, 0x1F8 },
{ 0x140, 0x100, 0x14C, 0x1BA, 0x30, 0xBA, 0x170, 0x1F8 },
{ 0x140, 0x100, 0x16A, 0x1C0, 0xA8, 0xC0, 0x140, 0x1F7 },
{ 0x140, 0x100, 0x170, 0x1C0, 0xC0, 0xC0, 0x150, 0x1F7 },
{ 0x140, 0x100, 0x176, 0x1C0, 0xD8, 0xC0, 0x160, 0x1F7 },
{ 0x140, 0x100, 0x140, 0x1C2, 0, 0xC2, 0x170, 0x1F7 },
}

Definition at line 403 of file wstag795.c.

Referenced by setupStage().

◆ actor0Talk0Actions

u16 actor0Talk0Actions[] = { (( 2 ) << 8 | ( 0x39 )) , 1, (0x8000 | ( 2 ) << 9 | ( 0xD5 )), 1, 0xFFFF }

Definition at line 423 of file wstag795.c.

◆ actor1Talk0Actions

u16 actor1Talk0Actions[] = { (( 2 ) << 8 | ( 0x3A )) , 1, 0xFFFF }

Definition at line 424 of file wstag795.c.

◆ actor2Talk0Actions

u16 actor2Talk0Actions[] = { (( 2 ) << 8 | ( 0x3B )) , 1, (0x8000 | ( 1 ) << 9 | ( 0x2B )), 1, 0xFFFF }

Definition at line 425 of file wstag795.c.

◆ actor3Talk0Actions

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

Definition at line 426 of file wstag795.c.

◆ actor4Talk0Actions

u16 actor4Talk0Actions[] = { (( 2 ) << 8 | ( 0x3D )) , 1, 0xFFFF }

Definition at line 427 of file wstag795.c.

◆ actor5Talk0Actions

u16 actor5Talk0Actions[] = { (( 2 ) << 8 | ( 0x3E )) , 1, (0x8000 | ( 4 ) << 9 | ( 0xA5 )), 1, 0xFFFF }

Definition at line 428 of file wstag795.c.

◆ actor6Talk0Actions

u16 actor6Talk0Actions[] = { (( 2 ) << 8 | ( 0x3F )) , 1, (0x8000 | ( 2 ) << 9 | ( 0xAE )), 1, 0xFFFF }

Definition at line 429 of file wstag795.c.

◆ actor7Talk0Actions

u16 actor7Talk0Actions[] = { (( 2 ) << 8 | ( 0x40 )) , 1, 0xFFFF }

Definition at line 430 of file wstag795.c.

◆ actor8Talk0Actions

u16 actor8Talk0Actions[] = { (( 2 ) << 8 | ( 0x41 )) , 1, (0x8000 | ( 1 ) << 9 | ( 0x2C )), 1, 0xFFFF }

Definition at line 431 of file wstag795.c.

◆ actor9Talk0Actions

u16 actor9Talk0Actions[] = { (( 2 ) << 8 | ( 0x42 )) , 1, (0x8000 | ( 2 ) << 9 | ( 0x64 )), 1, 0xFFFF }

Definition at line 432 of file wstag795.c.

◆ actor10Talk0Actions

u16 actor10Talk0Actions[] = { (( 2 ) << 8 | ( 0x43 )) , 1, (0x8000 | ( 2 ) << 9 | ( 0x97 )), 1, 0xFFFF }

Definition at line 433 of file wstag795.c.

◆ actor11Talk0Actions

u16 actor11Talk0Actions[]
Initial value:
= {
(( 2 ) << 8 | ( 0x44 )) , 1,
(0x8000 | ( 5 ) << 9 | ( 0x122 )), 1,
0xFFFF ,
}

Definition at line 434 of file wstag795.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x201 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag795.c:423

Definition at line 439 of file wstag795.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , actor1Talk0Actions, 0x191 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk0Actions[]
Definition wstag795.c:424

Definition at line 443 of file wstag795.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ ((void *)0) , actor2Talk0Actions, 0x17E },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk0Actions[]
Definition wstag795.c:425

Definition at line 447 of file wstag795.c.

◆ actor3Talks

FieldTalk actor3Talks[]
Initial value:
= {
{ ((void *)0) , actor3Talk0Actions, 0x191 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor3Talk0Actions[]
Definition wstag795.c:426

Definition at line 451 of file wstag795.c.

◆ actor4Talks

FieldTalk actor4Talks[]
Initial value:
= {
{ ((void *)0) , actor4Talk0Actions, 0x191 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor4Talk0Actions[]
Definition wstag795.c:427

Definition at line 455 of file wstag795.c.

◆ actor5Talks

FieldTalk actor5Talks[]
Initial value:
= {
{ ((void *)0) , actor5Talk0Actions, 0x1F2 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor5Talk0Actions[]
Definition wstag795.c:428

Definition at line 459 of file wstag795.c.

◆ actor6Talks

FieldTalk actor6Talks[]
Initial value:
= {
{ ((void *)0) , actor6Talk0Actions, 0x1FF },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor6Talk0Actions[]
Definition wstag795.c:429

Definition at line 463 of file wstag795.c.

◆ actor7Talks

FieldTalk actor7Talks[]
Initial value:
= {
{ ((void *)0) , actor7Talk0Actions, 0x191 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor7Talk0Actions[]
Definition wstag795.c:430

Definition at line 467 of file wstag795.c.

◆ actor8Talks

FieldTalk actor8Talks[]
Initial value:
= {
{ ((void *)0) , actor8Talk0Actions, 0x17D },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor8Talk0Actions[]
Definition wstag795.c:431

Definition at line 471 of file wstag795.c.

◆ actor9Talks

FieldTalk actor9Talks[]
Initial value:
= {
{ ((void *)0) , actor9Talk0Actions, 0x1E9 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor9Talk0Actions[]
Definition wstag795.c:432

Definition at line 475 of file wstag795.c.

◆ actor10Talks

FieldTalk actor10Talks[]
Initial value:
= {
{ ((void *)0) , actor10Talk0Actions, 0x1F1 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor10Talk0Actions[]
Definition wstag795.c:433

Definition at line 479 of file wstag795.c.

◆ actor11Talks

FieldTalk actor11Talks[]
Initial value:
= {
{ ((void *)0) , actor11Talk0Actions, 0x18F },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor11Talk0Actions[]
Definition wstag795.c:434

Definition at line 483 of file wstag795.c.

◆ actor0Conditions

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

Definition at line 487 of file wstag795.c.

◆ actor1Conditions

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

Definition at line 488 of file wstag795.c.

◆ actor2Conditions

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

Definition at line 489 of file wstag795.c.

◆ actor3Conditions

u16 actor3Conditions[] = { (( 2 ) << 8 | ( 0x3C )) , 0, 0xFFFF }

Definition at line 490 of file wstag795.c.

◆ actor4Conditions

u16 actor4Conditions[] = { (( 2 ) << 8 | ( 0x3D )) , 0, 0xFFFF }

Definition at line 491 of file wstag795.c.

◆ actor5Conditions

u16 actor5Conditions[] = { (( 2 ) << 8 | ( 0x3E )) , 0, 0xFFFF }

Definition at line 492 of file wstag795.c.

◆ actor6Conditions

u16 actor6Conditions[] = { (( 2 ) << 8 | ( 0x3F )) , 0, 0xFFFF }

Definition at line 493 of file wstag795.c.

◆ actor7Conditions

u16 actor7Conditions[] = { (( 2 ) << 8 | ( 0x40 )) , 0, 0xFFFF }

Definition at line 494 of file wstag795.c.

◆ actor8Conditions

u16 actor8Conditions[] = { (( 2 ) << 8 | ( 0x41 )) , 0, 0xFFFF }

Definition at line 495 of file wstag795.c.

◆ actor9Conditions

u16 actor9Conditions[] = { (( 2 ) << 8 | ( 0x42 )) , 0, 0xFFFF }

Definition at line 496 of file wstag795.c.

◆ actor10Conditions

u16 actor10Conditions[] = { (( 2 ) << 8 | ( 0x43 )) , 0, 0xFFFF }

Definition at line 497 of file wstag795.c.

◆ actor11Conditions

u16 actor11Conditions[] = { (( 2 ) << 8 | ( 0x44 )) , 0, 0xFFFF }

Definition at line 498 of file wstag795.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x21, 4, 961, 678, 1 }

Definition at line 499 of file wstag795.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x4D, 5, 737, 855, 1 }

Definition at line 500 of file wstag795.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x4E, 6, 640, 903, 1 }

Definition at line 501 of file wstag795.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x4F, 7, 545, 950, 1 }

Definition at line 502 of file wstag795.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x50, 8, 768, 998, 1 }

Definition at line 503 of file wstag795.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x51, 9, 400, 558, 1 }

Definition at line 504 of file wstag795.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x52, 0xA, 784, 366, 1 }

Definition at line 505 of file wstag795.c.

◆ actor7

FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x53, 0xB, 432, 478, 1 }

Definition at line 506 of file wstag795.c.

◆ actor8

FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x54, 0xC, 672, 1047, 1 }

Definition at line 507 of file wstag795.c.

◆ actor9

FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x55, 0xD, 335, 527, 1 }

Definition at line 508 of file wstag795.c.

◆ actor10

FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x56, 0xE, 160, 823, 1 }

Definition at line 509 of file wstag795.c.

◆ actor11

FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x57, 0xF, 205, 526, 1 }

Definition at line 510 of file wstag795.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag795.c:499
FieldActorEntry actor6
Definition wstag795.c:505
FieldActorEntry actor5
Definition wstag795.c:504
FieldActorEntry actor2
Definition wstag795.c:501
FieldActorEntry actor10
Definition wstag795.c:509
FieldActorEntry actor4
Definition wstag795.c:503
FieldActorEntry actor8
Definition wstag795.c:507
FieldActorEntry actor9
Definition wstag795.c:508
FieldActorEntry actor7
Definition wstag795.c:506
FieldActorEntry actor11
Definition wstag795.c:510
FieldActorEntry actor1
Definition wstag795.c:500
FieldActorEntry actor3
Definition wstag795.c:502

Definition at line 511 of file wstag795.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 0x38, 2, 0, 5, 4, 0, 153, 151, 0, 0 },
{ 1, 0, 0x40, 2, 0x38, 2, 0, 5, 4, 0, 166, 158, 0, 0 },
{ 1, 0, 0x40, 2, 0x38, 2, 0, 5, 4, 0, 185, 167, 0, 0 },
{ 1, 0, 0x40, 2, 0x38, 2, 0, 5, 4, 0, 198, 174, 0, 0 },
{ 1, 0, 0x40, 2, 0x38, 2, 0, 5, 4, 0, 217, 183, 0, 0 },
{ 1, 0, 0x40, 2, 0x38, 2, 0, 5, 4, 0, 230, 190, 0, 0 },
{ 1, 0, 0x40, 2, 0x38, 2, 0, 5, 4, 0, 249, 200, 0, 0 },
{ 1, 0, 0x40, 2, 0x38, 2, 0, 5, 4, 0, 262, 206, 0, 0 },
{ 1, 2, 0x64, 6, 0x51, 0, 0, 0, 0, 0, 414, 834, 0, 0 },
{ 1, 1, 0x64, 6, 0x46, 0, 0, 0, 0, 0, 414, 834, 0, 0 },
{ 1, 0, 0x40, 6, 0x37, 2, 0, 5, 6, 0, 1117, 845, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x36, 6, 0, 1121, 849, 0, 0 },
{ 1, 0, 0x40, 6, 0x38, 2, 0, 5, 4, 0, 226, 115, 0, 0 },
{ 1, 0, 0x40, 6, 0x38, 2, 0, 5, 4, 0, 239, 122, 0, 0 },
{ 1, 0, 0x40, 6, 0x38, 2, 0, 5, 4, 0, 258, 131, 0, 0 },
{ 1, 0, 0x40, 6, 0x38, 2, 0, 5, 4, 0, 271, 137, 0, 0 },
{ 1, 0, 0x40, 6, 0x38, 2, 0, 5, 4, 0, 289, 147, 0, 0 },
{ 1, 0, 0x40, 6, 0x38, 2, 0, 5, 4, 0, 303, 154, 0, 0 },
{ 1, 0, 0x40, 6, 0x38, 2, 0, 5, 4, 0, 322, 163, 0, 0 },
{ 1, 0, 0x40, 6, 0x38, 2, 0, 5, 4, 0, 335, 170, 0, 0 },
{ 1, 0x64, 0x7A, 6, 0, 0, 0, 0, 0, 0, 142, 67, 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 526 of file wstag795.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2DB, 0x208, 0xCC, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2DB, 0x168, 0x11C, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2DB, 0x128, 0x19C, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2DB, 0x128, 0x35C, 7, 0, 0, 0 },
{ { { (( 0x1C ) << 8 | ( 0xA )) , 1 }, { 0xFFFF , 0 } }, 1 , 0x2DC, 0x2B4, 0x198, 3, 0x64, 0, 0 },
{ { { (0x6000 | ( STORY_REAL_WORLD )) , 1 }, { (( 0x40 ) << 8 | ( 0x63 )) , 0 } }, 8 , 0x348, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}
@ STORY_REAL_WORLD
WSTAG750 (the emergency Matrix Chamber), event 820: back in the real world, for 180 seconds.
Definition story.h:121

Definition at line 550 of file wstag795.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_0011.
Definition wstag795.c:216

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 559 of file wstag795.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 830, script830, ( ( 0x14B - 1) << 16 | ( 0x1A )), ((void *)0) , endEvent830 },
{ 840, script840, ( ( 0x14B - 1) << 16 | ( 0x1B )), ((void *)0) , endEvent840 },
{ 1505, script1505, ( ( 0x14B - 1) << 16 | ( 0x25 )), ((void *)0) , ((void *)0) },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
s16 script830[]
Definition wstag795.c:237
void endEvent830(void)
After event 830, with the player: keeps it from playing again.
Definition wstag795.c:191
s16 script1505[]
Definition wstag795.c:314
void endEvent840(void)
After event 840, with the player: lets event 850 of WSTAG800 start and keeps it from playing again.
Definition wstag795.c:199
s16 script840[]
Definition wstag795.c:266

Definition at line 562 of file wstag795.c.

Referenced by setupStage().