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

WSTAG551: South Badland, West Sector. More...

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

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_500 - 1)
 
#define STAGE_FILE   0x5D2
 

Functions

void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing BGM_0018; BGM_0029 instead except at STORY_PRESIDENT_ARRESTED once flag 0x1A0A is set.
 

Variables

s16 script1226 []
 
AreaBattle area0Battle0 = { 132, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 132, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 132, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 132, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 133, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 133, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 169, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 169, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList area0Battles
 
AreaBattle area1Battle0 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle1 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle2 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle3 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle4 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle5 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle6 = { 0, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle7 = { 0, 3, (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 = { 234, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle1 = { 282, 3, (0x60000000 | ( 3 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle4 = { 334, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle5 = { 169, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle7 = { 180, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList area3Battles
 
FieldBattles stageBattles []
 
ActorImage stageImages []
 
u16 actor0Talk0Actions [] = { (0x9000 | ( 0x12 )) , 1, 0xFFFF }
 
u16 actor1Talk0Conditions [] = { (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor1Talk0Actions [] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor1Talk1Conditions [] = { (( 0 ) << 8 | ( 0 )) , 1, (0x7200 | ( 7 )) , 0, 0xFFFF }
 
u16 actor1Talk2Conditions [] = { (0x7200 | ( 7 )) , 1, (( 0 ) << 8 | ( 0 )) , 1, (0x7200 | ( 9 )) , 0, 0xFFFF }
 
u16 actor1Talk2Actions [] = { ((0x7600 + ( 0 ) * 0x200) | ( 0x32 )) , 1, 0xFFFF }
 
u16 actor1Talk3Conditions []
 
u16 actor1Talk3Actions [] = { (0x7400 | ( 0 )) , 1, (( 0xE ) << 8 | ( 0x25 )) , 1, 0xFFFF }
 
u16 actor1Talk4Conditions []
 
u16 actor2Talk0Conditions [] = { (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor2Talk0Actions [] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor2Talk1Conditions [] = { (0x7200 | ( 0xA )) , 0, (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor2Talk2Conditions [] = { (( 0 ) << 8 | ( 0 )) , 1, (( 0xE ) << 8 | ( 0x46 )) , 0, (0x7200 | ( 0xA )) , 1, 0xFFFF }
 
u16 actor2Talk2Actions [] = { (0x7400 | ( 0 )) , 1, (( 0xE ) << 8 | ( 0x46 )) , 1, 0xFFFF }
 
u16 actor2Talk3Conditions []
 
u16 actor2Talk4Conditions []
 
u16 actor2Talk4Actions [] = { ((0x7600 + ( 1 ) * 0x200) | ( 0x32 )) , 1, 0xFFFF }
 
u16 actor3Talk0Conditions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, 0xFFFF }
 
u16 actor3Talk1Conditions [] = { (( 0 ) << 8 | ( 0x10 )) , 0, 0xFFFF }
 
u16 actor3Talk1Actions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, 0xFFFF }
 
u16 actor3Talk2Conditions [] = { (( 0 ) << 8 | ( 0x10 )) , 1, 0xFFFF }
 
u16 actor3Talk2Actions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0x10 )) , 0, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
u16 actor0Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor1Conditions []
 
u16 actor2Conditions []
 
u16 actor3Conditions []
 
u16 actor4Conditions []
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x15, 4, 369, 209, 7 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x45, 5, 752, 690, 5 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x45, 5, 752, 690, 5 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x45, 5, 752, 690, 5 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x45, 5, 752, 690, 5 }
 
FieldActorEntry * stageActors []
 
StageTile stageObjects []
 The tables and color setupStage gives FIELDSTG_state (FieldState)
 
StageSlot stageSlots []
 
void(* stageFuncs [])(void)
 The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a tween, which define STAGE_TWEEN before they include this file, and in the others an array of just setupStage.
 
FieldEvent stageEvents []
 

Detailed Description

WSTAG551: South Badland, West Sector.

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

Definition in file wstag551.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)

Definition at line 17 of file wstag551.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_500 - 1)

Definition at line 18 of file wstag551.c.

◆ STAGE_FILE

#define STAGE_FILE   0x5D2

Definition at line 19 of file wstag551.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map, actors, battles and events, playing BGM_0018; BGM_0029 instead except at STORY_PRESIDENT_ARRESTED once flag 0x1A0A is set.

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_0018: the Badlands

< BGM_0018: the Badlands

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

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

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

< BGM_0029: the cities and their streets instead of their music while the story is at a crisis (Knightmon reprogrammed, the A.o.A's headquarters, the Amaterasu server's Oinkmon)

< BGM_0029: the cities and their streets instead of their music while the story is at a crisis (Knightmon reprogrammed, the A.o.A's headquarters, the Amaterasu server's Oinkmon)

Definition at line 25 of file wstag551.c.

Variable Documentation

◆ script1226

s16 script1226[]
Initial value:
= {
0x102, 2 , 0x190 , 0xE0 , 3 ,
0x100, 0x15 , 0x171 , 0xD1 ,
0x101, 0x15 , 1 , 7 ,
0x101, 0x32D , 0x337 , 2 ,
0x302, 2 ,
0x101, 2 , 1 , 3 ,
0x300, 6 ,
0x300, 0x1E ,
0x200, 0 , 1 , 0x15 , 0 ,
0x301 ,
0x300, 0x1E ,
0x101, 0x15 , 0x36 , 7 ,
0x101, 0x32D , 0x375 , 2 ,
0x303, 0x15 ,
0x101, 0x15 , 0x37 , 7 ,
0x300, 0x5A ,
0x304, 0xC0E , 0 , 0 , 0 ,
0 ,
}

Definition at line 50 of file wstag551.c.

◆ area0Battle0

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

Definition at line 70 of file wstag551.c.

◆ area0Battle1

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

Definition at line 71 of file wstag551.c.

◆ area0Battle2

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

Definition at line 72 of file wstag551.c.

◆ area0Battle3

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

Definition at line 73 of file wstag551.c.

◆ area0Battle4

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

Definition at line 74 of file wstag551.c.

◆ area0Battle5

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

Definition at line 75 of file wstag551.c.

◆ area0Battle6

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

Definition at line 76 of file wstag551.c.

◆ area0Battle7

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

Definition at line 77 of file wstag551.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
3,
}
AreaBattle area0Battle7
Definition wstag551.c:77
AreaBattle area0Battle1
Definition wstag551.c:71
AreaBattle area0Battle6
Definition wstag551.c:76
AreaBattle area0Battle3
Definition wstag551.c:73
AreaBattle area0Battle5
Definition wstag551.c:75
AreaBattle area0Battle0
Definition wstag551.c:70
AreaBattle area0Battle2
Definition wstag551.c:72
AreaBattle area0Battle4
Definition wstag551.c:74

Definition at line 78 of file wstag551.c.

◆ area1Battle0

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

Definition at line 83 of file wstag551.c.

◆ area1Battle1

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

Definition at line 84 of file wstag551.c.

◆ area1Battle2

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

Definition at line 85 of file wstag551.c.

◆ area1Battle3

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

Definition at line 86 of file wstag551.c.

◆ area1Battle4

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

Definition at line 87 of file wstag551.c.

◆ area1Battle5

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

Definition at line 88 of file wstag551.c.

◆ area1Battle6

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

Definition at line 89 of file wstag551.c.

◆ area1Battle7

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

Definition at line 90 of file wstag551.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag551.c:89
AreaBattle area1Battle2
Definition wstag551.c:85
AreaBattle area1Battle4
Definition wstag551.c:87
AreaBattle area1Battle5
Definition wstag551.c:88
AreaBattle area1Battle3
Definition wstag551.c:86
AreaBattle area1Battle0
Definition wstag551.c:83
AreaBattle area1Battle1
Definition wstag551.c:84
AreaBattle area1Battle7
Definition wstag551.c:90

Definition at line 91 of file wstag551.c.

◆ area2Battle0

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

Definition at line 96 of file wstag551.c.

◆ area2Battle1

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

Definition at line 97 of file wstag551.c.

◆ area2Battle2

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

Definition at line 98 of file wstag551.c.

◆ area2Battle3

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

Definition at line 99 of file wstag551.c.

◆ area2Battle4

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

Definition at line 100 of file wstag551.c.

◆ area2Battle5

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

Definition at line 101 of file wstag551.c.

◆ area2Battle6

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

Definition at line 102 of file wstag551.c.

◆ area2Battle7

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

Definition at line 103 of file wstag551.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag551.c:103
AreaBattle area2Battle6
Definition wstag551.c:102
AreaBattle area2Battle0
Definition wstag551.c:96
AreaBattle area2Battle4
Definition wstag551.c:100
AreaBattle area2Battle2
Definition wstag551.c:98
AreaBattle area2Battle1
Definition wstag551.c:97
AreaBattle area2Battle5
Definition wstag551.c:101
AreaBattle area2Battle3
Definition wstag551.c:99

Definition at line 104 of file wstag551.c.

◆ area3Battle0

AreaBattle area3Battle0 = { 234, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 109 of file wstag551.c.

◆ area3Battle1

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

Definition at line 110 of file wstag551.c.

◆ area3Battle2

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

Definition at line 111 of file wstag551.c.

◆ area3Battle3

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

Definition at line 112 of file wstag551.c.

◆ area3Battle4

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

Definition at line 113 of file wstag551.c.

◆ area3Battle5

AreaBattle area3Battle5 = { 169, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 114 of file wstag551.c.

◆ area3Battle6

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

Definition at line 115 of file wstag551.c.

◆ area3Battle7

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

Definition at line 116 of file wstag551.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag551.c:113
AreaBattle area3Battle3
Definition wstag551.c:112
AreaBattle area3Battle0
Definition wstag551.c:109
AreaBattle area3Battle2
Definition wstag551.c:111
AreaBattle area3Battle1
Definition wstag551.c:110
AreaBattle area3Battle6
Definition wstag551.c:115
AreaBattle area3Battle5
Definition wstag551.c:114
AreaBattle area3Battle7
Definition wstag551.c:116

Definition at line 117 of file wstag551.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag551.c:117
BattleList area1Battles
Definition wstag551.c:91
BattleList area2Battles
Definition wstag551.c:104
BattleList area0Battles
Definition wstag551.c:78

Definition at line 122 of file wstag551.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, 0x160, 0x145, 0x80, 0x45, 0x150, 0x1FF },
{ 0x140, 0x100, 0x16E, 0x18D, 0xB8, 0x8D, 0x160, 0x1FF },
}

Definition at line 125 of file wstag551.c.

Referenced by setupStage().

◆ actor0Talk0Actions

u16 actor0Talk0Actions[] = { (0x9000 | ( 0x12 )) , 1, 0xFFFF }

Definition at line 135 of file wstag551.c.

◆ actor1Talk0Conditions

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

Definition at line 136 of file wstag551.c.

◆ actor1Talk0Actions

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

Definition at line 137 of file wstag551.c.

◆ actor1Talk1Conditions

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

Definition at line 138 of file wstag551.c.

◆ actor1Talk2Conditions

u16 actor1Talk2Conditions[] = { (0x7200 | ( 7 )) , 1, (( 0 ) << 8 | ( 0 )) , 1, (0x7200 | ( 9 )) , 0, 0xFFFF }

Definition at line 139 of file wstag551.c.

◆ actor1Talk2Actions

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

Definition at line 140 of file wstag551.c.

◆ actor1Talk3Conditions

u16 actor1Talk3Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 0 )) , 1,
(0x7200 | ( 9 )) , 1,
(( 0xE ) << 8 | ( 0x25 )) , 0,
(0x7200 | ( 7 )) , 1,
0xFFFF ,
}

Definition at line 141 of file wstag551.c.

◆ actor1Talk3Actions

u16 actor1Talk3Actions[] = { (0x7400 | ( 0 )) , 1, (( 0xE ) << 8 | ( 0x25 )) , 1, 0xFFFF }

Definition at line 148 of file wstag551.c.

◆ actor1Talk4Conditions

u16 actor1Talk4Conditions[]
Initial value:
= {
(0x7200 | ( 7 )) , 1,
(( 0 ) << 8 | ( 0 )) , 1,
(0x7200 | ( 9 )) , 1,
(( 0xE ) << 8 | ( 0x25 )) , 1,
0xFFFF ,
}

Definition at line 149 of file wstag551.c.

◆ actor2Talk0Conditions

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

Definition at line 156 of file wstag551.c.

◆ actor2Talk0Actions

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

Definition at line 157 of file wstag551.c.

◆ actor2Talk1Conditions

u16 actor2Talk1Conditions[] = { (0x7200 | ( 0xA )) , 0, (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 158 of file wstag551.c.

◆ actor2Talk2Conditions

u16 actor2Talk2Conditions[] = { (( 0 ) << 8 | ( 0 )) , 1, (( 0xE ) << 8 | ( 0x46 )) , 0, (0x7200 | ( 0xA )) , 1, 0xFFFF }

Definition at line 159 of file wstag551.c.

◆ actor2Talk2Actions

u16 actor2Talk2Actions[] = { (0x7400 | ( 0 )) , 1, (( 0xE ) << 8 | ( 0x46 )) , 1, 0xFFFF }

Definition at line 160 of file wstag551.c.

◆ actor2Talk3Conditions

u16 actor2Talk3Conditions[]
Initial value:
= {
(0x7200 | ( 0xA )) , 1,
(( 0 ) << 8 | ( 0 )) , 1,
(( 0xE ) << 8 | ( 0x46 )) , 1,
(0x7200 | ( 0xC )) , 0,
0xFFFF ,
}

Definition at line 161 of file wstag551.c.

◆ actor2Talk4Conditions

u16 actor2Talk4Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 0 )) , 1,
(( 0xE ) << 8 | ( 0x46 )) , 1,
(0x7200 | ( 0xC )) , 1,
(0x7200 | ( 0xA )) , 1,
0xFFFF ,
}

Definition at line 168 of file wstag551.c.

◆ actor2Talk4Actions

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

Definition at line 175 of file wstag551.c.

◆ actor3Talk0Conditions

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

Definition at line 176 of file wstag551.c.

◆ actor3Talk1Conditions

u16 actor3Talk1Conditions[] = { (( 0 ) << 8 | ( 0x10 )) , 0, 0xFFFF }

Definition at line 177 of file wstag551.c.

◆ actor3Talk1Actions

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

Definition at line 178 of file wstag551.c.

◆ actor3Talk2Conditions

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

Definition at line 179 of file wstag551.c.

◆ actor3Talk2Actions

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

Definition at line 180 of file wstag551.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x2CF },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag551.c:135

Definition at line 181 of file wstag551.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ actor1Talk1Conditions, ((void *)0) , 0x245 },
{ actor1Talk4Conditions, ((void *)0) , 0x248 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk3Actions[]
Definition wstag551.c:148
u16 actor1Talk2Actions[]
Definition wstag551.c:140
u16 actor1Talk1Conditions[]
Definition wstag551.c:138
u16 actor1Talk0Conditions[]
Definition wstag551.c:136
u16 actor1Talk0Actions[]
Definition wstag551.c:137
u16 actor1Talk2Conditions[]
Definition wstag551.c:139
u16 actor1Talk4Conditions[]
Definition wstag551.c:149
u16 actor1Talk3Conditions[]
Definition wstag551.c:141

Definition at line 185 of file wstag551.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ actor2Talk1Conditions, ((void *)0) , 0x24E },
{ actor2Talk3Conditions, ((void *)0) , 0x248 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk1Conditions[]
Definition wstag551.c:158
u16 actor2Talk3Conditions[]
Definition wstag551.c:161
u16 actor2Talk4Actions[]
Definition wstag551.c:175
u16 actor2Talk0Actions[]
Definition wstag551.c:157
u16 actor2Talk2Conditions[]
Definition wstag551.c:159
u16 actor2Talk0Conditions[]
Definition wstag551.c:156
u16 actor2Talk2Actions[]
Definition wstag551.c:160
u16 actor2Talk4Conditions[]
Definition wstag551.c:168

Definition at line 193 of file wstag551.c.

◆ actor3Talks

FieldTalk actor3Talks[]
Initial value:
= {
{ actor3Talk0Conditions, ((void *)0) , 0x39D },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor3Talk0Conditions[]
Definition wstag551.c:176
u16 actor3Talk2Conditions[]
Definition wstag551.c:179
u16 actor3Talk1Conditions[]
Definition wstag551.c:177
u16 actor3Talk1Actions[]
Definition wstag551.c:178
u16 actor3Talk2Actions[]
Definition wstag551.c:180

Definition at line 201 of file wstag551.c.

◆ actor4Talks

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

Definition at line 207 of file wstag551.c.

◆ actor0Conditions

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

Definition at line 211 of file wstag551.c.

◆ actor1Conditions

u16 actor1Conditions[]
Initial value:
= {
(0x7000 | ( 0x19 )) , 1,
(( 0 ) << 8 | ( 0x11 )) , 0,
(0x8000 | ( 0 ) << 9 | ( 0x192 )), 1,
(0x8000 | ( 0 ) << 9 | ( 0x14 )), 0,
0xFFFF ,
}

Definition at line 212 of file wstag551.c.

◆ actor2Conditions

u16 actor2Conditions[]
Initial value:
= {
(0x7000 | ( 0x19 )) , 1,
(( 0 ) << 8 | ( 0x11 )) , 0,
(0x8000 | ( 0 ) << 9 | ( 0x192 )), 1,
(0x8000 | ( 0 ) << 9 | ( 0x14 )), 1,
0xFFFF ,
}

Definition at line 219 of file wstag551.c.

◆ actor3Conditions

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

Definition at line 226 of file wstag551.c.

◆ actor4Conditions

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

Definition at line 232 of file wstag551.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x15, 4, 369, 209, 7 }

Definition at line 237 of file wstag551.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x45, 5, 752, 690, 5 }

Definition at line 238 of file wstag551.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x45, 5, 752, 690, 5 }

Definition at line 239 of file wstag551.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x45, 5, 752, 690, 5 }

Definition at line 240 of file wstag551.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x45, 5, 752, 690, 5 }

Definition at line 241 of file wstag551.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag551.c:237
FieldActorEntry actor2
Definition wstag551.c:239
FieldActorEntry actor4
Definition wstag551.c:241
FieldActorEntry actor1
Definition wstag551.c:238
FieldActorEntry actor3
Definition wstag551.c:240

Definition at line 242 of file wstag551.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 3, 0, 0, 0, 0, 0, 40, 512, 0, 0 },
{ 1, 0, 0x40, 2, 3, 0, 0, 0, 0, 0, 472, 160, 0, 0 },
{ 1, 0, 0x40, 6, 0x2C, 1, 0x2C, 0x3B, 0xA, 0, 362, 998, 0, 0 },
{ 1, 0, 0x40, 6, 0x2C, 1, 0x2C, 0x3B, 0xA, 0, 634, 946, 0, 0 },
{ 1, 0, 0x40, 6, 0x2C, 1, 0x2C, 0x3B, 0xA, 0, 964, 182, 0, 0 },
{ 1, 0, 0x40, 6, 0x2C, 1, 0x2C, 0x3B, 0xA, 0, 1102, 947, 0, 0 },
{ 1, 0, 0x40, 6, 0x2C, 1, 0x2C, 0x3B, 0xA, 0, 1169, 396, 0, 0 },
{ 1, 0, 0x40, 6, 0x3C, 1, 0x3C, 0x46, 0xA, 0, 202, 926, 0, 0 },
{ 1, 0, 0x40, 6, 0x3C, 1, 0x3C, 0x46, 0xA, 0, 495, 1034, 0, 0 },
{ 1, 0, 0x40, 6, 0x3C, 1, 0x3C, 0x46, 0xA, 0, 986, 1028, 0, 0 },
{ 1, 0, 0x40, 6, 0x3C, 1, 0x3C, 0x46, 0xA, 0, 1213, 654, 0, 0 },
{ 1, 0, 0x40, 6, 0, 0, 0, 0, 0, 0, 678, 464, 0, 0 },
{ 1, 0, 0x4A, 6, 2, 0, 0, 0, 0, 0, 1178, 782, 0, 0 },
{ 1, 0, 0x40, 4, 0x13, 0, 0, 0, 0, 0, 697, 464, 478, 0 },
{ 1, 0, 0x4B, 4, 1, 0, 0, 0, 0, 0, 160, 219, 243, 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 250 of file wstag551.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2B2, 0x610, 0x540, 3, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 4 , 7, 0, 0, 0, 0, 0, 0 },
{ { { (0x7000 | ( 0x94 )) , 1 }, { 0xFFFF , 0 } }, 9 , 0x2E8, 0x240, 0xD0, 1, 0, 3, 5 },
{ { { (0x7000 | ( 0x94 )) , 1 }, { 0xFFFF , 0 } }, 9 , 0x2E9, 0xB0, 0xF8, 7, 0, 6, 1 },
{ { { (0x7000 | ( 0x94 )) , 1 }, { 0xFFFF , 0 } }, 9 , 0x2E9, 0xB0, 0xF8, 7, 0, 0xB, 1 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 6, 0x479, 0x2B0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 6, 0x469, 0x318, 0, 0, 0, 0 },
{ { { (0x7000 | ( 0x93 )) , 1 }, { 0xFFFF , 0 } }, 10 , 0x2E2, 0xB0, 0x148, 7, 0, 0x13, 1 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0xFFE0, 0x2C, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0x20, 0x30, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0xC, 0x30, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0xFFEC, 0x30, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0x30, 0xFFE8, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0, 0xFFE0, 0, 0, 0, 0, 0 },
{ { { (0x7000 | ( 0x93 )) , 1 }, { 0xFFFF , 0 } }, 10 , 0x2E2, 0xB0, 0x148, 7, 0, 0x13, 1 },
{ { { (( 0 ) << 8 | ( 0xF )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2328, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 268 of file wstag551.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_0018; BGM_0029 instead except at ...
Definition wstag551.c:25

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 287 of file wstag551.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1226, script1226, ( ( 0x13D - 1) << 16 | ( 0xB )), ((void *)0) , ((void *)0) },
{ 9000, ((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
s16 script1226[]
Definition wstag551.c:50

Definition at line 290 of file wstag551.c.

Referenced by setupStage().