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

WSTAG948: Protocol Forest, East Sector, in the extra chapter. More...

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

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_09)
 
#define STAGE_FILE   0x917
 
#define STAGE_FILE_8   0x1BC
 

Functions

void setupStage (void)
 Sets the stage up: its map, actors and battles, playing the ambience ENV10_00.
 

Variables

ActorImage stageImages []
 
u16 actor1Talk0Conditions [] = { (( 0 ) << 8 | ( 0x11 )) , 1, (( 0 ) << 8 | ( 0x10 )) , 0, 0xFFFF }
 
u16 actor1Talk0Actions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor1Talk1Conditions [] = { (( 0 ) << 8 | ( 0x11 )) , 1, (( 0 ) << 8 | ( 0x10 )) , 1, 0xFFFF }
 
u16 actor1Talk1Actions []
 
u16 actor1Talk2Conditions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor1Talk2Actions [] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor1Talk3Conditions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor1Talk3Actions [] = { ((0x7600 + ( 1 ) * 0x200) | ( 0x51 )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
u16 actor0Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 0, 0xFFFF }
 
u16 actor1Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 1, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x33, 4, 320, 736, 3 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x33, 4, 320, 736, 3 }
 
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.
 
AreaBattle area0Battle0 = { 44, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 44, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 44, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 44, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 47, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 47, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 47, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 47, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList area0Battles
 
AreaBattle area1Battle0 = { 148, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle1 = { 148, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle2 = { 148, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle3 = { 148, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle4 = { 149, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle5 = { 149, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle6 = { 149, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle7 = { 149, 8, (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 = { 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 []
 

Detailed Description

WSTAG948: Protocol Forest, East Sector, in the extra chapter.

The European version's: in its extra chapter (STORY_EXTRA), mode 660 starts it instead of WSTAG371.

Definition in file wstag948.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_09)

Definition at line 14 of file wstag948.c.

◆ STAGE_FILE

#define STAGE_FILE   0x917

Definition at line 15 of file wstag948.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x1BC

Definition at line 16 of file wstag948.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

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

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.

< ENV10_00: the Protocol Forest

< ENV10_00: the Protocol Forest

< 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 23 of file wstag948.c.

Variable Documentation

◆ 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, 0x160, 0x100, 0x80, 0, 0x140, 0x1FF },
}

Definition at line 43 of file wstag948.c.

Referenced by setupStage().

◆ actor1Talk0Conditions

u16 actor1Talk0Conditions[] = { (( 0 ) << 8 | ( 0x11 )) , 1, (( 0 ) << 8 | ( 0x10 )) , 0, 0xFFFF }

Definition at line 52 of file wstag948.c.

◆ actor1Talk0Actions

u16 actor1Talk0Actions[] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 53 of file wstag948.c.

◆ actor1Talk1Conditions

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

Definition at line 54 of file wstag948.c.

◆ actor1Talk1Actions

u16 actor1Talk1Actions[]
Initial value:
= {
(( 0 ) << 8 | ( 0x11 )) , 0,
(( 0 ) << 8 | ( 0x10 )) , 0,
(( 0 ) << 8 | ( 0 )) , 0,
0xFFFF ,
}

Definition at line 55 of file wstag948.c.

◆ actor1Talk2Conditions

u16 actor1Talk2Conditions[] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 61 of file wstag948.c.

◆ actor1Talk2Actions

u16 actor1Talk2Actions[] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 62 of file wstag948.c.

◆ actor1Talk3Conditions

u16 actor1Talk3Conditions[] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 63 of file wstag948.c.

◆ actor1Talk3Actions

u16 actor1Talk3Actions[] = { ((0x7600 + ( 1 ) * 0x200) | ( 0x51 )) , 1, 0xFFFF }

Definition at line 64 of file wstag948.c.

◆ actor0Talks

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

Definition at line 65 of file wstag948.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk3Actions[]
Definition wstag948.c:64
u16 actor1Talk2Actions[]
Definition wstag948.c:62
u16 actor1Talk1Conditions[]
Definition wstag948.c:54
u16 actor1Talk0Conditions[]
Definition wstag948.c:52
u16 actor1Talk1Actions[]
Definition wstag948.c:55
u16 actor1Talk0Actions[]
Definition wstag948.c:53
u16 actor1Talk2Conditions[]
Definition wstag948.c:61
u16 actor1Talk3Conditions[]
Definition wstag948.c:63

Definition at line 69 of file wstag948.c.

◆ actor0Conditions

u16 actor0Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 0, 0xFFFF }

Definition at line 76 of file wstag948.c.

◆ actor1Conditions

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

Definition at line 77 of file wstag948.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x33, 4, 320, 736, 3 }

Definition at line 78 of file wstag948.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x33, 4, 320, 736, 3 }

Definition at line 79 of file wstag948.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag948.c:78
FieldActorEntry actor1
Definition wstag948.c:79

Definition at line 80 of file wstag948.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 0, 0, 0, 0, 0, 0, 1024, 448, 0, 0 },
{ 1, 0, 0x40, 2, 1, 0, 0, 0, 0, 0, 1088, 448, 0, 0 },
{ 1, 0, 0x40, 2, 2, 0, 0, 0, 0, 0, 896, 576, 0, 0 },
{ 1, 0, 0x40, 2, 3, 0, 0, 0, 0, 0, 960, 576, 0, 0 },
{ 1, 0, 0x40, 2, 4, 0, 0, 0, 0, 0, 1024, 576, 0, 0 },
{ 1, 0, 0x40, 2, 5, 0, 0, 0, 0, 0, 1088, 576, 0, 0 },
{ 1, 0, 0x40, 2, 6, 0, 0, 0, 0, 0, 1024, 640, 0, 0 },
{ 1, 0, 0x40, 2, 7, 0, 0, 0, 0, 0, 1088, 640, 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 85 of file wstag948.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x295, 0x5E, 0x40E, 5, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x291, 0x374, 0x9B, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 96 of file wstag948.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map, actors and battles, playing the ambience ENV10_00.
Definition wstag948.c:23

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 101 of file wstag948.c.

◆ area0Battle0

AreaBattle area0Battle0 = { 44, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 104 of file wstag948.c.

◆ area0Battle1

AreaBattle area0Battle1 = { 44, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 105 of file wstag948.c.

◆ area0Battle2

AreaBattle area0Battle2 = { 44, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 106 of file wstag948.c.

◆ area0Battle3

AreaBattle area0Battle3 = { 44, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 107 of file wstag948.c.

◆ area0Battle4

AreaBattle area0Battle4 = { 47, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 108 of file wstag948.c.

◆ area0Battle5

AreaBattle area0Battle5 = { 47, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 109 of file wstag948.c.

◆ area0Battle6

AreaBattle area0Battle6 = { 47, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 110 of file wstag948.c.

◆ area0Battle7

AreaBattle area0Battle7 = { 47, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 111 of file wstag948.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
3,
}
AreaBattle area0Battle7
Definition wstag948.c:111
AreaBattle area0Battle1
Definition wstag948.c:105
AreaBattle area0Battle6
Definition wstag948.c:110
AreaBattle area0Battle3
Definition wstag948.c:107
AreaBattle area0Battle5
Definition wstag948.c:109
AreaBattle area0Battle0
Definition wstag948.c:104
AreaBattle area0Battle2
Definition wstag948.c:106
AreaBattle area0Battle4
Definition wstag948.c:108

Definition at line 112 of file wstag948.c.

◆ area1Battle0

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

Definition at line 117 of file wstag948.c.

◆ area1Battle1

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

Definition at line 118 of file wstag948.c.

◆ area1Battle2

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

Definition at line 119 of file wstag948.c.

◆ area1Battle3

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

Definition at line 120 of file wstag948.c.

◆ area1Battle4

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

Definition at line 121 of file wstag948.c.

◆ area1Battle5

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

Definition at line 122 of file wstag948.c.

◆ area1Battle6

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

Definition at line 123 of file wstag948.c.

◆ area1Battle7

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

Definition at line 124 of file wstag948.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
2,
}
AreaBattle area1Battle6
Definition wstag948.c:123
AreaBattle area1Battle2
Definition wstag948.c:119
AreaBattle area1Battle4
Definition wstag948.c:121
AreaBattle area1Battle5
Definition wstag948.c:122
AreaBattle area1Battle3
Definition wstag948.c:120
AreaBattle area1Battle0
Definition wstag948.c:117
AreaBattle area1Battle1
Definition wstag948.c:118
AreaBattle area1Battle7
Definition wstag948.c:124

Definition at line 125 of file wstag948.c.

◆ area2Battle0

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

Definition at line 130 of file wstag948.c.

◆ area2Battle1

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

Definition at line 131 of file wstag948.c.

◆ area2Battle2

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

Definition at line 132 of file wstag948.c.

◆ area2Battle3

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

Definition at line 133 of file wstag948.c.

◆ area2Battle4

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

Definition at line 134 of file wstag948.c.

◆ area2Battle5

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

Definition at line 135 of file wstag948.c.

◆ area2Battle6

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

Definition at line 136 of file wstag948.c.

◆ area2Battle7

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

Definition at line 137 of file wstag948.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag948.c:137
AreaBattle area2Battle6
Definition wstag948.c:136
AreaBattle area2Battle0
Definition wstag948.c:130
AreaBattle area2Battle4
Definition wstag948.c:134
AreaBattle area2Battle2
Definition wstag948.c:132
AreaBattle area2Battle1
Definition wstag948.c:131
AreaBattle area2Battle5
Definition wstag948.c:135
AreaBattle area2Battle3
Definition wstag948.c:133

Definition at line 138 of file wstag948.c.

◆ area3Battle0

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

Definition at line 143 of file wstag948.c.

◆ area3Battle1

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

Definition at line 144 of file wstag948.c.

◆ area3Battle2

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

Definition at line 145 of file wstag948.c.

◆ area3Battle3

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

Definition at line 146 of file wstag948.c.

◆ area3Battle4

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

Definition at line 147 of file wstag948.c.

◆ area3Battle5

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

Definition at line 148 of file wstag948.c.

◆ area3Battle6

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

Definition at line 149 of file wstag948.c.

◆ area3Battle7

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

Definition at line 150 of file wstag948.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag948.c:147
AreaBattle area3Battle3
Definition wstag948.c:146
AreaBattle area3Battle0
Definition wstag948.c:143
AreaBattle area3Battle2
Definition wstag948.c:145
AreaBattle area3Battle1
Definition wstag948.c:144
AreaBattle area3Battle6
Definition wstag948.c:149
AreaBattle area3Battle5
Definition wstag948.c:148
AreaBattle area3Battle7
Definition wstag948.c:150

Definition at line 151 of file wstag948.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag948.c:151
BattleList area1Battles
Definition wstag948.c:125
BattleList area2Battles
Definition wstag948.c:138
BattleList area0Battles
Definition wstag948.c:112

Definition at line 156 of file wstag948.c.

Referenced by setupStage().