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

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

Include dependency graph for wstag740.c:

Go to the source code of this file.

Macros

#define STAGE_CHILDREN_SIZE   4
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_02)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_700 - 1)
 
#define STAGE_FILE   0x6DD
 

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 800, starts event 801, with Fire Knight, unless it has played.
 
void endEvent800 (void)
 After event 800, with Fire Knight: starts the stage's event battle 0 and keeps it from playing again.
 
void endEvent801 (void)
 After event 801, with Fire Knight: gives the player the Divine Rod 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 script800 []
 
s16 script801 []
 
AreaBattle area0Battle0 = { 119, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 119, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 119, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 168, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 168, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 168, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 111, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 111, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList area0Battles
 
AreaBattle area1Battle0 = { 0, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle1 = { 0, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle2 = { 0, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle3 = { 0, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle4 = { 0, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle5 = { 0, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle6 = { 0, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle7 = { 0, 24, (0x60000000 | ( 2 ) << 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 = { 20, 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 = { 168, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList area3Battles
 
FieldBattles stageBattles []
 
ActorImage stageImages []
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
u16 actor0Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor1Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor2Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor3Conditions []
 
u16 actor4Conditions []
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x9D, 4, 464, 648, 7 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0xC9, 5, 464, 648, 7 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0xC9, 5, 464, 648, 7 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0xC9, 5, 512, 673, 7 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0xC9, 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

WSTAG740: Fire Dungeon, North Sector.

Definition in file wstag740.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   4

Definition at line 37 of file wstag740.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_02)

Definition at line 151 of file wstag740.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_700 - 1)

Definition at line 152 of file wstag740.c.

◆ STAGE_FILE

#define STAGE_FILE   0x6DD

Definition at line 153 of file wstag740.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.

◆ updateStage()

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

Back from the battle after event 800, starts event 801, with Fire Knight, unless it has played.

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

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

Definition at line 21 of file wstag740.c.

Here is the call graph for this function:

◆ endEvent800()

void endEvent800 ( void  )

After event 800, with Fire Knight: 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 52 of file wstag740.c.

◆ endEvent801()

void endEvent801 ( void  )

After event 801, with Fire Knight: gives the player the Divine Rod and keeps it from playing again.

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

Definition at line 61 of file wstag740.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 67 of file wstag740.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 72 of file wstag740.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 77 of file wstag740.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 82 of file wstag740.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 87 of file wstag740.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 92 of file wstag740.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 97 of file wstag740.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 102 of file wstag740.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 107 of file wstag740.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 112 of file wstag740.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 117 of file wstag740.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 122 of file wstag740.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 127 of file wstag740.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 132 of file wstag740.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 137 of file wstag740.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 142 of file wstag740.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 156 of file wstag740.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 7 of file wstag740.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 234 of file wstag740.c.

Referenced by updateEvent9015().

◆ updateSpritePairFrames_0

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

Definition at line 237 of file wstag740.c.

Referenced by updateSpritePair().

◆ 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 241 of file wstag740.c.

Referenced by updateSpritePair().

◆ updateSpritePairFrames

AnimFrame * updateSpritePairFrames
Initial value:
= {
}
AnimFrame updateSpritePairFrames_1[]
Definition wstag740.c:241
AnimFrame updateSpritePairFrames_0[]
Definition wstag740.c:237

Definition at line 247 of file wstag740.c.

Referenced by updateSpritePair().

◆ script800

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

Definition at line 178 of file wstag740.c.

◆ script801

s16 script801[]
Initial value:
= {
0x600, 1 , 0xC9 ,
0x100, 2 , 0x215 , 0x2AC ,
0x101, 2 , 1 , 3 ,
0x100, 0xC9 , 0x200 , 0x2A1 ,
0x101, 0xC9 , 1 , 7 ,
0x300, 0x78 ,
0x200, 0 , 1 , 0xC9 , 0 ,
0x301 ,
0x300, 0x1E ,
0x101, 0xC9 , 1 , 3 ,
0x300, 0x1E ,
0x102, 0xC9 , 0x1D0 , 0x288 , 3 ,
0x302, 0xC9 ,
0x101, 0xC9 , 1 , 7 ,
0x300, 0x1E ,
0x102, 2 , 0x200 , 0x2A1 , 3 ,
0x302, 2 ,
0x101, 2 , 1 , 3 ,
0x300, 0x1E ,
0x200, 0 , 2 , 0xC9 , 2 ,
0x301 ,
0x600, 1 , 2 ,
0x300, 0x1E ,
0 ,
}

Definition at line 207 of file wstag740.c.

◆ area0Battle0

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

Definition at line 250 of file wstag740.c.

◆ area0Battle1

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

Definition at line 251 of file wstag740.c.

◆ area0Battle2

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

Definition at line 252 of file wstag740.c.

◆ area0Battle3

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

Definition at line 253 of file wstag740.c.

◆ area0Battle4

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

Definition at line 254 of file wstag740.c.

◆ area0Battle5

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

Definition at line 255 of file wstag740.c.

◆ area0Battle6

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

Definition at line 256 of file wstag740.c.

◆ area0Battle7

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

Definition at line 257 of file wstag740.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
4,
}
AreaBattle area0Battle7
Definition wstag740.c:257
AreaBattle area0Battle1
Definition wstag740.c:251
AreaBattle area0Battle6
Definition wstag740.c:256
AreaBattle area0Battle3
Definition wstag740.c:253
AreaBattle area0Battle5
Definition wstag740.c:255
AreaBattle area0Battle0
Definition wstag740.c:250
AreaBattle area0Battle2
Definition wstag740.c:252
AreaBattle area0Battle4
Definition wstag740.c:254

Definition at line 258 of file wstag740.c.

◆ area1Battle0

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

Definition at line 263 of file wstag740.c.

◆ area1Battle1

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

Definition at line 264 of file wstag740.c.

◆ area1Battle2

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

Definition at line 265 of file wstag740.c.

◆ area1Battle3

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

Definition at line 266 of file wstag740.c.

◆ area1Battle4

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

Definition at line 267 of file wstag740.c.

◆ area1Battle5

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

Definition at line 268 of file wstag740.c.

◆ area1Battle6

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

Definition at line 269 of file wstag740.c.

◆ area1Battle7

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

Definition at line 270 of file wstag740.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag740.c:269
AreaBattle area1Battle2
Definition wstag740.c:265
AreaBattle area1Battle4
Definition wstag740.c:267
AreaBattle area1Battle5
Definition wstag740.c:268
AreaBattle area1Battle3
Definition wstag740.c:266
AreaBattle area1Battle0
Definition wstag740.c:263
AreaBattle area1Battle1
Definition wstag740.c:264
AreaBattle area1Battle7
Definition wstag740.c:270

Definition at line 271 of file wstag740.c.

◆ area2Battle0

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

Definition at line 276 of file wstag740.c.

◆ area2Battle1

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

Definition at line 277 of file wstag740.c.

◆ area2Battle2

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

Definition at line 278 of file wstag740.c.

◆ area2Battle3

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

Definition at line 279 of file wstag740.c.

◆ area2Battle4

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

Definition at line 280 of file wstag740.c.

◆ area2Battle5

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

Definition at line 281 of file wstag740.c.

◆ area2Battle6

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

Definition at line 282 of file wstag740.c.

◆ area2Battle7

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

Definition at line 283 of file wstag740.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag740.c:283
AreaBattle area2Battle6
Definition wstag740.c:282
AreaBattle area2Battle0
Definition wstag740.c:276
AreaBattle area2Battle4
Definition wstag740.c:280
AreaBattle area2Battle2
Definition wstag740.c:278
AreaBattle area2Battle1
Definition wstag740.c:277
AreaBattle area2Battle5
Definition wstag740.c:281
AreaBattle area2Battle3
Definition wstag740.c:279

Definition at line 284 of file wstag740.c.

◆ area3Battle0

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

Definition at line 289 of file wstag740.c.

◆ area3Battle1

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

Definition at line 290 of file wstag740.c.

◆ area3Battle2

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

Definition at line 291 of file wstag740.c.

◆ area3Battle3

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

Definition at line 292 of file wstag740.c.

◆ area3Battle4

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

Definition at line 293 of file wstag740.c.

◆ area3Battle5

AreaBattle area3Battle5 = { 168, 24, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 294 of file wstag740.c.

◆ area3Battle6

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

Definition at line 295 of file wstag740.c.

◆ area3Battle7

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

Definition at line 296 of file wstag740.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag740.c:293
AreaBattle area3Battle3
Definition wstag740.c:292
AreaBattle area3Battle0
Definition wstag740.c:289
AreaBattle area3Battle2
Definition wstag740.c:291
AreaBattle area3Battle1
Definition wstag740.c:290
AreaBattle area3Battle6
Definition wstag740.c:295
AreaBattle area3Battle5
Definition wstag740.c:294
AreaBattle area3Battle7
Definition wstag740.c:296

Definition at line 297 of file wstag740.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag740.c:297
BattleList area1Battles
Definition wstag740.c:271
BattleList area2Battles
Definition wstag740.c:284
BattleList area0Battles
Definition wstag740.c:258

Definition at line 302 of file wstag740.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, 0x170, 0x1FC },
{ 0x180, 0x100, 0x1A6, 0x158, 0x198, 0x58, 0x140, 0x1FB },
}

Definition at line 305 of file wstag740.c.

Referenced by setupStage().

◆ actor0Talks

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

Definition at line 315 of file wstag740.c.

◆ actor1Talks

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

Definition at line 319 of file wstag740.c.

◆ actor2Talks

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

Definition at line 323 of file wstag740.c.

◆ actor3Talks

FieldTalk actor3Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x206 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 327 of file wstag740.c.

◆ actor4Talks

FieldTalk actor4Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x206 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 331 of file wstag740.c.

◆ actor0Conditions

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

Definition at line 335 of file wstag740.c.

◆ actor1Conditions

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

Definition at line 336 of file wstag740.c.

◆ actor2Conditions

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

Definition at line 337 of file wstag740.c.

◆ actor3Conditions

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

Definition at line 338 of file wstag740.c.

◆ actor4Conditions

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

Definition at line 343 of file wstag740.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x9D, 4, 464, 648, 7 }

Definition at line 348 of file wstag740.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0xC9, 5, 464, 648, 7 }

Definition at line 349 of file wstag740.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0xC9, 5, 464, 648, 7 }

Definition at line 350 of file wstag740.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0xC9, 5, 512, 673, 7 }

Definition at line 351 of file wstag740.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0xC9, 5, 464, 648, 7 }

Definition at line 352 of file wstag740.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag740.c:348
FieldActorEntry actor2
Definition wstag740.c:350
FieldActorEntry actor4
Definition wstag740.c:352
FieldActorEntry actor1
Definition wstag740.c:349
FieldActorEntry actor3
Definition wstag740.c:351

Definition at line 353 of file wstag740.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 361 of file wstag740.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x26A, 0x70, 0x2EC, 5, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x26C, 0x448, 0x288, 1, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xAA )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2328, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xAB )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2329, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xAC )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x232A, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xAD )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x232B, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xAE )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x232C, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xAF )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x232D, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xB0 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x232E, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xB1 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x232F, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xB2 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2330, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xB3 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2331, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xB4 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2332, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xB5 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2333, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xB6 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2334, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xB7 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2335, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xB8 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2336, 0, 0, 0, 0, 0, 0 },
{ { { (( 0x40 ) << 8 | ( 0xB9 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2337, 0, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 0x11 )), 1 }, { (( 0x40 ) << 8 | ( 0x3F )) , 0 } }, 8 , 0x320, 0, 0, 0, 0, 0, 0 },
{ { { (( 0 ) << 8 | ( 0xF )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2338, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 380 of file wstag740.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 wstag740.c:156

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 403 of file wstag740.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 800, script800, ( ( 0x14B - 1) << 16 | ( 0xC )), ((void *)0) , endEvent800 },
{ 801, script801, ( ( 0x14B - 1) << 16 | ( 0xD )), ((void *)0) , endEvent801 },
{ 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 },
{ 9016, ((void *)0) , 0, FIELDSTG_startEventBattle5, ((void *)0) },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void * FIELDSTG_startEventBattle5(void)
Starts battle 5 of the fourth area: the end of the stages' events 9000.
Definition field.c:1010
void * startEvents9000To9015(void)
Starts events 9000 to 9015 (updateEvent9015), with StagePartyChildren.
void endEvent800(void)
After event 800, with Fire Knight: starts the stage's event battle 0 and keeps it from playing again.
Definition wstag740.c:52
void endEvent9011(void)
After the trap of event 9011 goes off: keeps it from going off again.
Definition wstag740.c:122
s16 script800[]
Definition wstag740.c:178
void endEvent801(void)
After event 801, with Fire Knight: gives the player the Divine Rod and keeps it from playing again.
Definition wstag740.c:61
void endEvent9014(void)
After the trap of event 9014 goes off: keeps it from going off again.
Definition wstag740.c:137
void endEvent9015(void)
After the trap of event 9015 goes off: keeps it from going off again.
Definition wstag740.c:142
void endEvent9005(void)
After the trap of event 9005 goes off: keeps it from going off again.
Definition wstag740.c:92
void endEvent9013(void)
After the trap of event 9013 goes off: keeps it from going off again.
Definition wstag740.c:132
void endEvent9004(void)
After the trap of event 9004 goes off: keeps it from going off again.
Definition wstag740.c:87
void endEvent9006(void)
After the trap of event 9006 goes off: keeps it from going off again.
Definition wstag740.c:97
void endEvent9007(void)
After the trap of event 9007 goes off: keeps it from going off again.
Definition wstag740.c:102
void endEvent9001(void)
After the trap of event 9001 goes off: keeps it from going off again.
Definition wstag740.c:72
void endEvent9009(void)
After the trap of event 9009 goes off: keeps it from going off again.
Definition wstag740.c:112
s16 script801[]
Definition wstag740.c:207
void endEvent9000(void)
After the trap of event 9000 goes off: keeps it from going off again.
Definition wstag740.c:67
void endEvent9010(void)
After the trap of event 9010 goes off: keeps it from going off again.
Definition wstag740.c:117
void endEvent9003(void)
After the trap of event 9003 goes off: keeps it from going off again.
Definition wstag740.c:82
void endEvent9012(void)
After the trap of event 9012 goes off: keeps it from going off again.
Definition wstag740.c:127
void endEvent9008(void)
After the trap of event 9008 goes off: keeps it from going off again.
Definition wstag740.c:107
void endEvent9002(void)
After the trap of event 9002 goes off: keeps it from going off again.
Definition wstag740.c:77

Definition at line 406 of file wstag740.c.

Referenced by setupStage().