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

WSTAG741: Fire Dungeon, North Sector. More...

Include dependency graph for wstag741.c:

Go to the source code of this file.

Macros

#define STAGE_CHILDREN_SIZE   0x8
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_700 - 1)
 
#define STAGE_FILE   0x751
 

Functions

void * createSpritePair (s32 x, s32 y)
 Creates a StageSpritePair at (x, y)
 
void updateStage (StageTask *task, void **children)
 Back from the battle after event 1295, starts event 1296, with Fire Master, unless it has played.
 
void endEvent1295 (void)
 After event 1295, with Fire Master: starts the stage's event battle 0 and keeps it from playing again.
 
void endEvent1296 (void)
 After event 1296, with Fire Master: gives the player the Mind Chip and keeps it from playing again.
 
void endEvent9000 (void)
 After the trap of event 9000 goes off: keeps it from going off again.
 
void endEvent9001 (void)
 After the trap of event 9001 goes off: keeps it from going off again.
 
void endEvent9002 (void)
 After the trap of event 9002 goes off: keeps it from going off again.
 
void endEvent9003 (void)
 After the trap of event 9003 goes off: keeps it from going off again.
 
void endEvent9004 (void)
 After the trap of event 9004 goes off: keeps it from going off again.
 
void endEvent9005 (void)
 After the trap of event 9005 goes off: keeps it from going off again.
 
void endEvent9006 (void)
 After the trap of event 9006 goes off: keeps it from going off again.
 
void endEvent9007 (void)
 After the trap of event 9007 goes off: keeps it from going off again.
 
void endEvent9008 (void)
 After the trap of event 9008 goes off: keeps it from going off again.
 
void endEvent9009 (void)
 After the trap of event 9009 goes off: keeps it from going off again.
 
void endEvent9010 (void)
 After the trap of event 9010 goes off: keeps it from going off again.
 
void endEvent9011 (void)
 After the trap of event 9011 goes off: keeps it from going off again.
 
void endEvent9012 (void)
 After the trap of event 9012 goes off: keeps it from going off again.
 
void endEvent9013 (void)
 After the trap of event 9013 goes off: keeps it from going off again.
 
void endEvent9014 (void)
 After the trap of event 9014 goes off: keeps it from going off again.
 
void endEvent9015 (void)
 After the trap of event 9015 goes off: keeps it from going off again.
 
void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing BGM_0023.
 

Variables

const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0x00 }
 the color the setup copies to FIELDSTG_state.spriteColor
 
s32 partyActorIds []
 Defined below, after the code that uses them.
 
AnimFrame updateSpritePairFrames_0 []
 
AnimFrame updateSpritePairFrames_1 []
 
AnimFrame * updateSpritePairFrames []
 
s16 script1295 []
 
s16 script1296 []
 
AreaBattle area0Battle0 = { 136, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 136, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 136, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 183, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 183, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 183, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 118, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 118, 24, (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 = { 28, 24, (0x60000000 | ( 0x23 ) << 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 actor2Talk0Conditions [] = { (0x7000 | ( 0x1D )) , 1, 0xFFFF }
 
u16 actor2Talk1Conditions [] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF }
 
u16 actor2Talk2Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor2Talk3Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor3Talk0Conditions [] = { (0x7000 | ( 0x1D )) , 1, 0xFFFF }
 
u16 actor3Talk1Conditions [] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF }
 
u16 actor3Talk2Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor3Talk3Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
u16 actor0Conditions []
 
u16 actor1Conditions []
 
u16 actor2Conditions []
 
u16 actor3Conditions []
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x9D, 4, 512, 673, 7 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x9D, 4, 464, 648, 7 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0xCC, 5, 512, 673, 7 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0xCC, 5, 464, 648, 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

WSTAG741: Fire Dungeon, North Sector.

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

Definition in file wstag741.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   0x8

Definition at line 41 of file wstag741.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)

Definition at line 155 of file wstag741.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_700 - 1)

Definition at line 156 of file wstag741.c.

◆ STAGE_FILE

#define STAGE_FILE   0x751

Definition at line 157 of file wstag741.c.

Function Documentation

◆ createSpritePair()

void * createSpritePair ( s32  x,
s32  y 
)

Creates a StageSpritePair at (x, y)

Definition at line 2 of file create_sprite_pair.inc.c.

Referenced by updateEvent9015().

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

◆ updateStage()

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

Back from the battle after event 1295, starts event 1296, with Fire Master, unless it has played.

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

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

Definition at line 25 of file wstag741.c.

Here is the call graph for this function:

◆ endEvent1295()

void endEvent1295 ( void  )

After event 1295, with Fire Master: starts the stage's event battle 0 and keeps it from playing again.

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

< action: FIELDSTG_battleFuncs.startEventBattle

Definition at line 56 of file wstag741.c.

◆ endEvent1296()

void endEvent1296 ( void  )

After event 1296, with Fire Master: gives the player the Mind Chip and keeps it from playing again.

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

Definition at line 65 of file wstag741.c.

◆ endEvent9000()

void endEvent9000 ( void  )

After the trap of event 9000 goes off: keeps it from going off again.

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

Definition at line 71 of file wstag741.c.

◆ endEvent9001()

void endEvent9001 ( void  )

After the trap of event 9001 goes off: keeps it from going off again.

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

Definition at line 76 of file wstag741.c.

◆ endEvent9002()

void endEvent9002 ( void  )

After the trap of event 9002 goes off: keeps it from going off again.

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

Definition at line 81 of file wstag741.c.

◆ endEvent9003()

void endEvent9003 ( void  )

After the trap of event 9003 goes off: keeps it from going off again.

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

Definition at line 86 of file wstag741.c.

◆ endEvent9004()

void endEvent9004 ( void  )

After the trap of event 9004 goes off: keeps it from going off again.

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

Definition at line 91 of file wstag741.c.

◆ endEvent9005()

void endEvent9005 ( void  )

After the trap of event 9005 goes off: keeps it from going off again.

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

Definition at line 96 of file wstag741.c.

◆ endEvent9006()

void endEvent9006 ( void  )

After the trap of event 9006 goes off: keeps it from going off again.

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

Definition at line 101 of file wstag741.c.

◆ endEvent9007()

void endEvent9007 ( void  )

After the trap of event 9007 goes off: keeps it from going off again.

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

Definition at line 106 of file wstag741.c.

◆ endEvent9008()

void endEvent9008 ( void  )

After the trap of event 9008 goes off: keeps it from going off again.

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

Definition at line 111 of file wstag741.c.

◆ endEvent9009()

void endEvent9009 ( void  )

After the trap of event 9009 goes off: keeps it from going off again.

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

Definition at line 116 of file wstag741.c.

◆ endEvent9010()

void endEvent9010 ( void  )

After the trap of event 9010 goes off: keeps it from going off again.

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

Definition at line 121 of file wstag741.c.

◆ endEvent9011()

void endEvent9011 ( void  )

After the trap of event 9011 goes off: keeps it from going off again.

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

Definition at line 126 of file wstag741.c.

◆ endEvent9012()

void endEvent9012 ( void  )

After the trap of event 9012 goes off: keeps it from going off again.

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

Definition at line 131 of file wstag741.c.

◆ endEvent9013()

void endEvent9013 ( void  )

After the trap of event 9013 goes off: keeps it from going off again.

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

Definition at line 136 of file wstag741.c.

◆ endEvent9014()

void endEvent9014 ( void  )

After the trap of event 9014 goes off: keeps it from going off again.

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

Definition at line 141 of file wstag741.c.

◆ endEvent9015()

void endEvent9015 ( void  )

After the trap of event 9015 goes off: keeps it from going off again.

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

Definition at line 146 of file wstag741.c.

◆ setupStage()

void setupStage ( void  )

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

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_0023: the Ice, Fire and Dark Dungeons

< BGM_0023: the Ice, Fire and Dark Dungeons

< 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 160 of file wstag741.c.

Variable Documentation

◆ stageColor

const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0x00 }

the color the setup copies to FIELDSTG_state.spriteColor

the color the setup copies to FIELDSTG_state.spriteColor

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

Definition at line 8 of file wstag741.c.

Referenced by setupStage().

◆ partyActorIds

s32 partyActorIds[]
Initial value:
= {
2, 4, 8,
}

Defined below, after the code that uses them.

The actor ids of the party's three partners, as FIELDSTG's partner lists.

Definition at line 240 of file wstag741.c.

◆ updateSpritePairFrames_0

AnimFrame updateSpritePairFrames_0[]
Initial value:
= {
{ 50, 4 }, { 51, 4 }, { 52, 4 }, { 53, 4 },
{ 54, 4 }, { 55, 4 }, { 255, 0x3E7 },
}

Definition at line 243 of file wstag741.c.

◆ updateSpritePairFrames_1

AnimFrame updateSpritePairFrames_1[]
Initial value:
= {
{ 0x12C, 4 }, { 56, 4 }, { 57, 4 }, { 58, 4 },
{ 59, 4 }, { 60, 4 }, { 61, 4 }, { 62, 4 },
{ 63, 4 }, { 64, 4 }, { 65, 4 }, { 66, 4 },
{ 67, 4 }, { 255, 0x3E7 },
}

Definition at line 247 of file wstag741.c.

◆ updateSpritePairFrames

AnimFrame* updateSpritePairFrames[]
Initial value:
= {
}
AnimFrame updateSpritePairFrames_0[]
Definition wstag741.c:243
AnimFrame updateSpritePairFrames_1[]
Definition wstag741.c:247

Definition at line 253 of file wstag741.c.

◆ script1295

s16 script1295[]
Initial value:
= {
0x600, 1 , 2 ,
0x102, 2 , 0x215 , 0x2AC , 3 ,
0x100, 0xCC , 0x200 , 0x2A1 ,
0x101, 0xCC , 1 , 7 ,
0x101, 0x32D , 0x337 , 2 ,
0x302, 2 ,
0x101, 2 , 1 , 3 ,
0x300, 0x1E ,
0x200, 0 , 1 , 0xCC , 2 ,
0x301 ,
0x300, 0x1E ,
0x200, 0 , 2 , 2 , 1 ,
0x101, 2 , 7 , 3 ,
0x301 ,
0x101, 2 , 1 , 3 ,
0x300, 0x1E ,
0x200, 0 , 3 , 0xCC , 2 ,
0x301 ,
0x200, 0 , 4 , 2 , 1 ,
0x101, 2 , 7 , 3 ,
0x301 ,
0x101, 2 , 1 , 3 ,
0x300, 0x1E ,
0 ,
}

Definition at line 182 of file wstag741.c.

◆ script1296

s16 script1296[]

Definition at line 208 of file wstag741.c.

◆ area0Battle0

AreaBattle area0Battle0 = { 136, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 256 of file wstag741.c.

◆ area0Battle1

AreaBattle area0Battle1 = { 136, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 257 of file wstag741.c.

◆ area0Battle2

AreaBattle area0Battle2 = { 136, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 258 of file wstag741.c.

◆ area0Battle3

AreaBattle area0Battle3 = { 183, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 259 of file wstag741.c.

◆ area0Battle4

AreaBattle area0Battle4 = { 183, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 260 of file wstag741.c.

◆ area0Battle5

AreaBattle area0Battle5 = { 183, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 261 of file wstag741.c.

◆ area0Battle6

AreaBattle area0Battle6 = { 118, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 262 of file wstag741.c.

◆ area0Battle7

AreaBattle area0Battle7 = { 118, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 263 of file wstag741.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
5,
}
AreaBattle area0Battle7
Definition wstag741.c:263
AreaBattle area0Battle1
Definition wstag741.c:257
AreaBattle area0Battle6
Definition wstag741.c:262
AreaBattle area0Battle3
Definition wstag741.c:259
AreaBattle area0Battle5
Definition wstag741.c:261
AreaBattle area0Battle0
Definition wstag741.c:256
AreaBattle area0Battle2
Definition wstag741.c:258
AreaBattle area0Battle4
Definition wstag741.c:260

Definition at line 264 of file wstag741.c.

◆ area1Battle0

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

Definition at line 269 of file wstag741.c.

◆ area1Battle1

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

Definition at line 270 of file wstag741.c.

◆ area1Battle2

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

Definition at line 271 of file wstag741.c.

◆ area1Battle3

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

Definition at line 272 of file wstag741.c.

◆ area1Battle4

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

Definition at line 273 of file wstag741.c.

◆ area1Battle5

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

Definition at line 274 of file wstag741.c.

◆ area1Battle6

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

Definition at line 275 of file wstag741.c.

◆ area1Battle7

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

Definition at line 276 of file wstag741.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag741.c:275
AreaBattle area1Battle2
Definition wstag741.c:271
AreaBattle area1Battle4
Definition wstag741.c:273
AreaBattle area1Battle5
Definition wstag741.c:274
AreaBattle area1Battle3
Definition wstag741.c:272
AreaBattle area1Battle0
Definition wstag741.c:269
AreaBattle area1Battle1
Definition wstag741.c:270
AreaBattle area1Battle7
Definition wstag741.c:276

Definition at line 277 of file wstag741.c.

◆ area2Battle0

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

Definition at line 282 of file wstag741.c.

◆ area2Battle1

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

Definition at line 283 of file wstag741.c.

◆ area2Battle2

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

Definition at line 284 of file wstag741.c.

◆ area2Battle3

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

Definition at line 285 of file wstag741.c.

◆ area2Battle4

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

Definition at line 286 of file wstag741.c.

◆ area2Battle5

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

Definition at line 287 of file wstag741.c.

◆ area2Battle6

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

Definition at line 288 of file wstag741.c.

◆ area2Battle7

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

Definition at line 289 of file wstag741.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag741.c:289
AreaBattle area2Battle6
Definition wstag741.c:288
AreaBattle area2Battle0
Definition wstag741.c:282
AreaBattle area2Battle4
Definition wstag741.c:286
AreaBattle area2Battle2
Definition wstag741.c:284
AreaBattle area2Battle1
Definition wstag741.c:283
AreaBattle area2Battle5
Definition wstag741.c:287
AreaBattle area2Battle3
Definition wstag741.c:285

Definition at line 290 of file wstag741.c.

◆ area3Battle0

AreaBattle area3Battle0 = { 28, 24, (0x60000000 | ( 0x23 ) << 18 | ( 0 )) }

Definition at line 295 of file wstag741.c.

◆ area3Battle1

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

Definition at line 296 of file wstag741.c.

◆ area3Battle2

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

Definition at line 297 of file wstag741.c.

◆ area3Battle3

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

Definition at line 298 of file wstag741.c.

◆ area3Battle4

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

Definition at line 299 of file wstag741.c.

◆ area3Battle5

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

Definition at line 300 of file wstag741.c.

◆ area3Battle6

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

Definition at line 301 of file wstag741.c.

◆ area3Battle7

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

Definition at line 302 of file wstag741.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag741.c:299
AreaBattle area3Battle3
Definition wstag741.c:298
AreaBattle area3Battle0
Definition wstag741.c:295
AreaBattle area3Battle2
Definition wstag741.c:297
AreaBattle area3Battle1
Definition wstag741.c:296
AreaBattle area3Battle6
Definition wstag741.c:301
AreaBattle area3Battle5
Definition wstag741.c:300
AreaBattle area3Battle7
Definition wstag741.c:302

Definition at line 303 of file wstag741.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag741.c:303
BattleList area1Battles
Definition wstag741.c:277
BattleList area2Battles
Definition wstag741.c:290
BattleList area0Battles
Definition wstag741.c:264

Definition at line 308 of file wstag741.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 },
{ 0x180, 0x100, 0x180, 0x158, 0x100, 0x58, 0x140, 0x1FB },
{ 0x180, 0x100, 0x1A6, 0x158, 0x198, 0x58, 0x150, 0x1FB },
}

Definition at line 311 of file wstag741.c.

Referenced by setupStage().

◆ actor2Talk0Conditions

u16 actor2Talk0Conditions[] = { (0x7000 | ( 0x1D )) , 1, 0xFFFF }

Definition at line 321 of file wstag741.c.

◆ actor2Talk1Conditions

u16 actor2Talk1Conditions[] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF }

Definition at line 322 of file wstag741.c.

◆ actor2Talk2Conditions

u16 actor2Talk2Conditions[] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }

Definition at line 323 of file wstag741.c.

◆ actor2Talk3Conditions

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

Definition at line 324 of file wstag741.c.

◆ actor3Talk0Conditions

u16 actor3Talk0Conditions[] = { (0x7000 | ( 0x1D )) , 1, 0xFFFF }

Definition at line 325 of file wstag741.c.

◆ actor3Talk1Conditions

u16 actor3Talk1Conditions[] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF }

Definition at line 326 of file wstag741.c.

◆ actor3Talk2Conditions

u16 actor3Talk2Conditions[] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }

Definition at line 327 of file wstag741.c.

◆ actor3Talk3Conditions

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

Definition at line 328 of file wstag741.c.

◆ actor0Talks

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

Definition at line 329 of file wstag741.c.

◆ actor1Talks

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

Definition at line 333 of file wstag741.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ actor2Talk0Conditions, ((void *)0) , 0x211 },
{ actor2Talk1Conditions, ((void *)0) , 0x212 },
{ actor2Talk2Conditions, ((void *)0) , 0x213 },
{ actor2Talk3Conditions, ((void *)0) , 0x206 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk1Conditions[]
Definition wstag741.c:322
u16 actor2Talk3Conditions[]
Definition wstag741.c:324
u16 actor2Talk2Conditions[]
Definition wstag741.c:323
u16 actor2Talk0Conditions[]
Definition wstag741.c:321

Definition at line 337 of file wstag741.c.

◆ actor3Talks

FieldTalk actor3Talks[]
Initial value:
= {
{ actor3Talk0Conditions, ((void *)0) , 0x211 },
{ actor3Talk1Conditions, ((void *)0) , 0x212 },
{ actor3Talk2Conditions, ((void *)0) , 0x213 },
{ actor3Talk3Conditions, ((void *)0) , 0x215 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor3Talk3Conditions[]
Definition wstag741.c:328
u16 actor3Talk0Conditions[]
Definition wstag741.c:325
u16 actor3Talk2Conditions[]
Definition wstag741.c:327
u16 actor3Talk1Conditions[]
Definition wstag741.c:326

Definition at line 344 of file wstag741.c.

◆ actor0Conditions

u16 actor0Conditions[]
Initial value:
= {
(( 0x40 ) << 8 | ( 0x85 )) , 0,
(0x7000 | ( 0x1A )) , 1,
0xFFFF ,
}

Definition at line 351 of file wstag741.c.

◆ actor1Conditions

u16 actor1Conditions[]
Initial value:
= {
(0x7000 | ( 0x1A )) , 1,
(( 0x40 ) << 8 | ( 0x85 )) , 1,
0xFFFF ,
}

Definition at line 356 of file wstag741.c.

◆ actor2Conditions

u16 actor2Conditions[]
Initial value:
= {
(0x7000 | ( 8 )) , 1,
(( 0x40 ) << 8 | ( 0x85 )) , 0,
(0x7000 | ( 0x1A )) , 0,
0xFFFF ,
}

Definition at line 361 of file wstag741.c.

◆ actor3Conditions

u16 actor3Conditions[]
Initial value:
= {
(0x7000 | ( 8 )) , 1,
(( 0x40 ) << 8 | ( 0x85 )) , 1,
(0x7000 | ( 0x1A )) , 0,
0xFFFF ,
}

Definition at line 367 of file wstag741.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x9D, 4, 512, 673, 7 }

Definition at line 373 of file wstag741.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x9D, 4, 464, 648, 7 }

Definition at line 374 of file wstag741.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0xCC, 5, 512, 673, 7 }

Definition at line 375 of file wstag741.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0xCC, 5, 464, 648, 7 }

Definition at line 376 of file wstag741.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag741.c:373
FieldActorEntry actor2
Definition wstag741.c:375
FieldActorEntry actor1
Definition wstag741.c:374
FieldActorEntry actor3
Definition wstag741.c:376

Definition at line 377 of file wstag741.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 4, 0x50, 1, 0x50, 0x63, 6, 0, 224, 601, 638, 0 },
{ 1, 0, 0x40, 4, 0x50, 1, 0x50, 0x63, 5, 0, 253, 334, 371, 0 },
{ 1, 0, 0x40, 4, 0x50, 1, 0x50, 0x63, 5, 0, 465, 242, 274, 0 },
{ 1, 0, 0x40, 4, 0x50, 1, 0x50, 0x63, 6, 0, 607, 402, 441, 0 },
{ 1, 0, 0x40, 4, 0x50, 1, 0x50, 0x63, 4, 0, 647, 343, 371, 0 },
{ 1, 0, 0x40, 4, 0x50, 1, 0x50, 0x63, 4, 0, 699, 740, 781, 0 },
{ 1, 0, 0x40, 4, 0x50, 1, 0x50, 0x63, 4, 0, 760, 579, 615, 0 },
{ 1, 0, 0x40, 4, 0xA, 1, 0xA, 0x1D, 5, 0, 213, 576, 638, 0 },
{ 1, 0, 0x40, 4, 0xA, 1, 0xA, 0x1D, 6, 0, 267, 297, 371, 0 },
{ 1, 0, 0x40, 4, 0xA, 1, 0xA, 0x1D, 4, 0, 472, 403, 466, 0 },
{ 1, 0, 0x40, 4, 0xA, 1, 0xA, 0x1D, 5, 0, 616, 385, 441, 0 },
{ 1, 0, 0x40, 4, 0xA, 1, 0xA, 0x1D, 6, 0, 855, 692, 756, 0 },
{ 1, 0, 0x40, 4, 0x1E, 1, 0x1E, 0x31, 5, 0, 331, 427, 493, 0 },
{ 1, 0, 0x40, 4, 0x1E, 1, 0x1E, 0x31, 6, 0, 465, 211, 274, 0 },
{ 1, 0, 0x40, 4, 0x1E, 1, 0x1E, 0x31, 4, 0, 698, 429, 493, 0 },
{ 1, 0, 0x40, 4, 0x1E, 1, 0x1E, 0x31, 5, 0, 699, 715, 781, 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 384 of file wstag741.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2D2, 0x70, 0x2EC, 5, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2D4, 0x448, 0x288, 1, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xBA )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2328, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xBB )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2329, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xBC )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x232A, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xBD )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x232B, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xBE )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x232C, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xBF )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x232D, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xC0 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x232E, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xC1 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x232F, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xC2 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2330, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xC3 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2331, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xC4 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2332, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xC5 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2333, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xC6 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2334, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xC7 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2335, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xC8 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2336, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xC9 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2337, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0x84 )) , 0 }, { (0x7000 | ( 0x1A )) , 0 } }, 8 , 0x50F, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 403 of file wstag741.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_0023.
Definition wstag741.c:160

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 425 of file wstag741.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1295, script1295, ( ( 0x14B - 1) << 16 | ( 0x15 )), ((void *)0) , endEvent1295 },
{ 1296, script1296, ( ( 0x14B - 1) << 16 | ( 0x16 )), ((void *)0) , endEvent1296 },
{ 9000, ((void *)0) , 0, startEvents9000To9015, endEvent9000 },
{ 9001, ((void *)0) , 0, startEvents9000To9015, endEvent9001 },
{ 9002, ((void *)0) , 0, startEvents9000To9015, endEvent9002 },
{ 9003, ((void *)0) , 0, startEvents9000To9015, endEvent9003 },
{ 9004, ((void *)0) , 0, startEvents9000To9015, endEvent9004 },
{ 9005, ((void *)0) , 0, startEvents9000To9015, endEvent9005 },
{ 9006, ((void *)0) , 0, startEvents9000To9015, endEvent9006 },
{ 9007, ((void *)0) , 0, startEvents9000To9015, endEvent9007 },
{ 9008, ((void *)0) , 0, startEvents9000To9015, endEvent9008 },
{ 9009, ((void *)0) , 0, startEvents9000To9015, endEvent9009 },
{ 9010, ((void *)0) , 0, startEvents9000To9015, endEvent9010 },
{ 9011, ((void *)0) , 0, startEvents9000To9015, endEvent9011 },
{ 9012, ((void *)0) , 0, startEvents9000To9015, endEvent9012 },
{ 9013, ((void *)0) , 0, startEvents9000To9015, endEvent9013 },
{ 9014, ((void *)0) , 0, startEvents9000To9015, endEvent9014 },
{ 9015, ((void *)0) , 0, startEvents9000To9015, endEvent9015 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void * startEvents9000To9015(void)
Starts events 9000 to 9015 (updateEvent9015), with StagePartyChildren.
void endEvent9011(void)
After the trap of event 9011 goes off: keeps it from going off again.
Definition wstag741.c:126
void endEvent9014(void)
After the trap of event 9014 goes off: keeps it from going off again.
Definition wstag741.c:141
void endEvent9015(void)
After the trap of event 9015 goes off: keeps it from going off again.
Definition wstag741.c:146
void endEvent1295(void)
After event 1295, with Fire Master: starts the stage's event battle 0 and keeps it from playing again...
Definition wstag741.c:56
s16 script1295[]
Definition wstag741.c:182
void endEvent9005(void)
After the trap of event 9005 goes off: keeps it from going off again.
Definition wstag741.c:96
void endEvent9013(void)
After the trap of event 9013 goes off: keeps it from going off again.
Definition wstag741.c:136
void endEvent9004(void)
After the trap of event 9004 goes off: keeps it from going off again.
Definition wstag741.c:91
void endEvent9006(void)
After the trap of event 9006 goes off: keeps it from going off again.
Definition wstag741.c:101
void endEvent9007(void)
After the trap of event 9007 goes off: keeps it from going off again.
Definition wstag741.c:106
void endEvent1296(void)
After event 1296, with Fire Master: gives the player the Mind Chip and keeps it from playing again.
Definition wstag741.c:65
void endEvent9001(void)
After the trap of event 9001 goes off: keeps it from going off again.
Definition wstag741.c:76
void endEvent9009(void)
After the trap of event 9009 goes off: keeps it from going off again.
Definition wstag741.c:116
void endEvent9000(void)
After the trap of event 9000 goes off: keeps it from going off again.
Definition wstag741.c:71
void endEvent9010(void)
After the trap of event 9010 goes off: keeps it from going off again.
Definition wstag741.c:121
void endEvent9003(void)
After the trap of event 9003 goes off: keeps it from going off again.
Definition wstag741.c:86
s16 script1296[]
Definition wstag741.c:208
void endEvent9012(void)
After the trap of event 9012 goes off: keeps it from going off again.
Definition wstag741.c:131
void endEvent9008(void)
After the trap of event 9008 goes off: keeps it from going off again.
Definition wstag741.c:111
void endEvent9002(void)
After the trap of event 9002 goes off: keeps it from going off again.
Definition wstag741.c:81

Definition at line 428 of file wstag741.c.

Referenced by setupStage().