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

WSTAG521: Zhu Que Hall, Zhu Que City. More...

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

Go to the source code of this file.

Macros

#define STAGE_CHILDREN_SIZE   4
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_03)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_500 - 1)
 
#define STAGE_FILE   0x5CA
 

Functions

void updateStage (StageTask *task, void **children)
 Creates the event object of story progress 0x1C.
 
void endEvent750 (void)
 After event 750, with Zhu Que Chief: lets event 751 start and starts the stage's event battle 0.
 
void endEvent751 (void)
 After event 751, with the player: moves the story on to STORY_BULBMON_BEATEN and gives the player the Red ID Pass.
 
void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing BGM_0016; BGM_0029 instead except at STORY_PRESIDENT_ARRESTED once flag 0x1A0A is set.
 

Variables

s16 script750 []
 
s16 script751 []
 
AreaBattle area0Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 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 = { 16, 18, (0x60000000 | ( 0x23 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle1 = { 306, 18, (0x60000000 | ( 0x23 ) << 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 actor16Talk0Actions [] = { (0x9000 | ( 0x49 )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
FieldTalk actor6Talks []
 
FieldTalk actor10Talks []
 
FieldTalk actor11Talks []
 
FieldTalk actor12Talks []
 
FieldTalk actor13Talks []
 
FieldTalk actor14Talks []
 
FieldTalk actor15Talks []
 
FieldTalk actor16Talks []
 
FieldTalk actor17Talks []
 
u16 actor0Conditions []
 
u16 actor1Conditions []
 
u16 actor2Conditions []
 
u16 actor3Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor4Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor5Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor6Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor10Conditions []
 
u16 actor11Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor12Conditions []
 
u16 actor13Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor14Conditions []
 
u16 actor15Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor16Conditions [] = { (( 0x40 ) << 8 | ( 0x52 )) , 0, 0xFFFF }
 
u16 actor17Conditions [] = { (0x6000 | ( STORY_BLUE_ID_PASS )) , 1, 0xFFFF }
 
u16 actor18Conditions [] = { (0x6000 | ( STORY_BLUE_ID_PASS )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x2E, 4, 517, 289, 1 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x31, 5, 321, 193, 3 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x39, 6, 241, 217, 3 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x40, 7, 241, 217, 3 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x41, 8, 517, 289, 3 }
 
FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x42, 9, 321, 193, 3 }
 
FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x90, 0xA, 417, 201, 3 }
 
FieldActorEntry actor7 = { ((void *)0) , ((void *)0) , 0x93, 0xB, 198, 184, 6 }
 
FieldActorEntry actor8 = { ((void *)0) , ((void *)0) , 0x94, 0xC, 223, 172, 7 }
 
FieldActorEntry actor9 = { ((void *)0) , ((void *)0) , 0x95, 0xD, 248, 160, 7 }
 
FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x9D, 0xE, 241, 217, 3 }
 
FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x9D, 0xE, 241, 217, 3 }
 
FieldActorEntry actor12 = { actor12Conditions, actor12Talks, 0x9E, 0xF, 321, 193, 3 }
 
FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x9E, 0xF, 321, 193, 3 }
 
FieldActorEntry actor14 = { actor14Conditions, actor14Talks, 0x9F, 0x10, 517, 289, 1 }
 
FieldActorEntry actor15 = { actor15Conditions, actor15Talks, 0x9F, 0x10, 517, 289, 1 }
 
FieldActorEntry actor16 = { actor16Conditions, actor16Talks, 0xD2, 0x11, 417, 201, 3 }
 
FieldActorEntry actor17 = { actor17Conditions, actor17Talks, 0x119, 0x12, 520, 252, 3 }
 
FieldActorEntry actor18 = { actor18Conditions, ((void *)0) , 0x13C, 0x13, 0, 0, 1 }
 
FieldActorEntry * stageActors []
 
StageTile stageObjects []
 The tables and color setupStage gives FIELDSTG_state (FieldState)
 
StageSlot stageSlots []
 
void(* stageFuncs [])(void)
 The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a tween, which define STAGE_TWEEN before they include this file, and in the others an array of just setupStage.
 
FieldEvent stageEvents []
 

Detailed Description

WSTAG521: Zhu Que Hall, Zhu Que City.

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

Definition in file wstag521.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   4

Definition at line 26 of file wstag521.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_03)

Definition at line 52 of file wstag521.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_500 - 1)

Definition at line 53 of file wstag521.c.

◆ STAGE_FILE

#define STAGE_FILE   0x5CA

Definition at line 54 of file wstag521.c.

Function Documentation

◆ updateStage()

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

Creates the event object of story progress 0x1C.

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

Definition at line 10 of file wstag521.c.

Here is the call graph for this function:

◆ endEvent750()

void endEvent750 ( void  )

After event 750, with Zhu Que Chief: lets event 751 start and starts the stage's event battle 0.

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

< action: FIELDSTG_battleFuncs.startEventBattle

Definition at line 33 of file wstag521.c.

◆ endEvent751()

void endEvent751 ( void  )

After event 751, with the player: moves the story on to STORY_BULBMON_BEATEN and gives the player the Red ID Pass.

Definition at line 42 of file wstag521.c.

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map, actors, battles and events, playing BGM_0016; 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_0016: Suzaku City and its Hall

< BGM_0016: Suzaku City and its Hall

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

< 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 60 of file wstag521.c.

Variable Documentation

◆ script750

s16 script750[]

Definition at line 84 of file wstag521.c.

◆ script751

s16 script751[]

Definition at line 124 of file wstag521.c.

◆ area0Battle0

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

Definition at line 155 of file wstag521.c.

◆ area0Battle1

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

Definition at line 156 of file wstag521.c.

◆ area0Battle2

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

Definition at line 157 of file wstag521.c.

◆ area0Battle3

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

Definition at line 158 of file wstag521.c.

◆ area0Battle4

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

Definition at line 159 of file wstag521.c.

◆ area0Battle5

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

Definition at line 160 of file wstag521.c.

◆ area0Battle6

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

Definition at line 161 of file wstag521.c.

◆ area0Battle7

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

Definition at line 162 of file wstag521.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
0,
}
AreaBattle area0Battle7
Definition wstag521.c:162
AreaBattle area0Battle1
Definition wstag521.c:156
AreaBattle area0Battle6
Definition wstag521.c:161
AreaBattle area0Battle3
Definition wstag521.c:158
AreaBattle area0Battle5
Definition wstag521.c:160
AreaBattle area0Battle0
Definition wstag521.c:155
AreaBattle area0Battle2
Definition wstag521.c:157
AreaBattle area0Battle4
Definition wstag521.c:159

Definition at line 163 of file wstag521.c.

◆ area1Battle0

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

Definition at line 168 of file wstag521.c.

◆ area1Battle1

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

Definition at line 169 of file wstag521.c.

◆ area1Battle2

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

Definition at line 170 of file wstag521.c.

◆ area1Battle3

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

Definition at line 171 of file wstag521.c.

◆ area1Battle4

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

Definition at line 172 of file wstag521.c.

◆ area1Battle5

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

Definition at line 173 of file wstag521.c.

◆ area1Battle6

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

Definition at line 174 of file wstag521.c.

◆ area1Battle7

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

Definition at line 175 of file wstag521.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag521.c:174
AreaBattle area1Battle2
Definition wstag521.c:170
AreaBattle area1Battle4
Definition wstag521.c:172
AreaBattle area1Battle5
Definition wstag521.c:173
AreaBattle area1Battle3
Definition wstag521.c:171
AreaBattle area1Battle0
Definition wstag521.c:168
AreaBattle area1Battle1
Definition wstag521.c:169
AreaBattle area1Battle7
Definition wstag521.c:175

Definition at line 176 of file wstag521.c.

◆ area2Battle0

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

Definition at line 181 of file wstag521.c.

◆ area2Battle1

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

Definition at line 182 of file wstag521.c.

◆ area2Battle2

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

Definition at line 183 of file wstag521.c.

◆ area2Battle3

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

Definition at line 184 of file wstag521.c.

◆ area2Battle4

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

Definition at line 185 of file wstag521.c.

◆ area2Battle5

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

Definition at line 186 of file wstag521.c.

◆ area2Battle6

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

Definition at line 187 of file wstag521.c.

◆ area2Battle7

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

Definition at line 188 of file wstag521.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag521.c:188
AreaBattle area2Battle6
Definition wstag521.c:187
AreaBattle area2Battle0
Definition wstag521.c:181
AreaBattle area2Battle4
Definition wstag521.c:185
AreaBattle area2Battle2
Definition wstag521.c:183
AreaBattle area2Battle1
Definition wstag521.c:182
AreaBattle area2Battle5
Definition wstag521.c:186
AreaBattle area2Battle3
Definition wstag521.c:184

Definition at line 189 of file wstag521.c.

◆ area3Battle0

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

Definition at line 194 of file wstag521.c.

◆ area3Battle1

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

Definition at line 195 of file wstag521.c.

◆ area3Battle2

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

Definition at line 196 of file wstag521.c.

◆ area3Battle3

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

Definition at line 197 of file wstag521.c.

◆ area3Battle4

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

Definition at line 198 of file wstag521.c.

◆ area3Battle5

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

Definition at line 199 of file wstag521.c.

◆ area3Battle6

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

Definition at line 200 of file wstag521.c.

◆ area3Battle7

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

Definition at line 201 of file wstag521.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag521.c:198
AreaBattle area3Battle3
Definition wstag521.c:197
AreaBattle area3Battle0
Definition wstag521.c:194
AreaBattle area3Battle2
Definition wstag521.c:196
AreaBattle area3Battle1
Definition wstag521.c:195
AreaBattle area3Battle6
Definition wstag521.c:200
AreaBattle area3Battle5
Definition wstag521.c:199
AreaBattle area3Battle7
Definition wstag521.c:201

Definition at line 202 of file wstag521.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag521.c:202
BattleList area1Battles
Definition wstag521.c:176
BattleList area2Battles
Definition wstag521.c:189
BattleList area0Battles
Definition wstag521.c:163

Definition at line 207 of file wstag521.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, 0x170, 0x19D, 0xC0, 0x9D, 0x160, 0x1FF },
{ 0x140, 0x100, 0x174, 0x175, 0xD0, 0x75, 0x170, 0x1FF },
{ 0x140, 0x100, 0x140, 0x19E, 0, 0x9E, 0x160, 0x1FE },
{ 0x140, 0x100, 0x156, 0x1A6, 0x58, 0xA6, 0x170, 0x1FE },
{ 0x140, 0x100, 0x15E, 0x1A6, 0x78, 0xA6, 0x150, 0x1FD },
{ 0x140, 0x100, 0x148, 0x1B2, 0x20, 0xB2, 0x160, 0x1FD },
{ 0x140, 0x100, 0x16A, 0x175, 0xA8, 0x75, 0x170, 0x1FD },
{ 0x140, 0x100, 0x158, 0x17E, 0x60, 0x7E, 0x150, 0x1FC },
{ 0x140, 0x100, 0x160, 0x17E, 0x80, 0x7E, 0x160, 0x1FC },
{ 0x140, 0x100, 0x14E, 0x18A, 0x38, 0x8A, 0x170, 0x1FC },
{ 0x140, 0x100, 0x166, 0x1BD, 0x98, 0xBD, 0x150, 0x1FB },
{ 0x140, 0x100, 0x16E, 0x1BD, 0xB8, 0xBD, 0x160, 0x1FB },
{ 0x140, 0x100, 0x176, 0x1BD, 0xD8, 0xBD, 0x170, 0x1FB },
{ 0x140, 0x100, 0x14E, 0x15A, 0x38, 0x5A, 0x150, 0x1FA },
{ 0x140, 0x100, 0x140, 0x1BE, 0, 0xBE, 0x160, 0x1FA },
{ 0x140, 0x100, 0x17A, 0x100, 0xE8, 0, 0x170, 0x1FA },
}

Definition at line 210 of file wstag521.c.

Referenced by setupStage().

◆ actor16Talk0Actions

u16 actor16Talk0Actions[] = { (0x9000 | ( 0x49 )) , 1, 0xFFFF }

Definition at line 234 of file wstag521.c.

◆ actor0Talks

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

Definition at line 235 of file wstag521.c.

◆ actor1Talks

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

Definition at line 239 of file wstag521.c.

◆ actor2Talks

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

Definition at line 243 of file wstag521.c.

◆ actor3Talks

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

Definition at line 247 of file wstag521.c.

◆ actor4Talks

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

Definition at line 251 of file wstag521.c.

◆ actor5Talks

FieldTalk actor5Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x129 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 255 of file wstag521.c.

◆ actor6Talks

FieldTalk actor6Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x127 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 259 of file wstag521.c.

◆ actor10Talks

FieldTalk actor10Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x121 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 263 of file wstag521.c.

◆ actor11Talks

FieldTalk actor11Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x123 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 267 of file wstag521.c.

◆ actor12Talks

FieldTalk actor12Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x124 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 271 of file wstag521.c.

◆ actor13Talks

FieldTalk actor13Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x120 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 275 of file wstag521.c.

◆ actor14Talks

FieldTalk actor14Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x11E },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 279 of file wstag521.c.

◆ actor15Talks

FieldTalk actor15Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x126 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 283 of file wstag521.c.

◆ actor16Talks

FieldTalk actor16Talks[]
Initial value:
= {
{ ((void *)0) , actor16Talk0Actions, 0x11D },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor16Talk0Actions[]
Definition wstag521.c:234

Definition at line 287 of file wstag521.c.

◆ actor17Talks

FieldTalk actor17Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x200 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 291 of file wstag521.c.

◆ actor0Conditions

u16 actor0Conditions[]
Initial value:
= {
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1,
(( 0x1A ) << 8 | ( 0xA )) , 1,
0xFFFF ,
}
@ STORY_PRESIDENT_ARRESTED
WSTAG226 (Login Room, Amaterasu City), event 935, after the President of MAGAMI gives himself up (WST...
Definition story.h:136

Definition at line 295 of file wstag521.c.

◆ actor1Conditions

u16 actor1Conditions[]
Initial value:
= {
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1,
(( 0x1A ) << 8 | ( 0xA )) , 1,
0xFFFF ,
}

Definition at line 300 of file wstag521.c.

◆ actor2Conditions

u16 actor2Conditions[]
Initial value:
= {
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1,
(( 0x1A ) << 8 | ( 0xA )) , 1,
0xFFFF ,
}

Definition at line 305 of file wstag521.c.

◆ actor3Conditions

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

Definition at line 310 of file wstag521.c.

◆ actor4Conditions

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

Definition at line 311 of file wstag521.c.

◆ actor5Conditions

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

Definition at line 312 of file wstag521.c.

◆ actor6Conditions

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

Definition at line 313 of file wstag521.c.

◆ actor10Conditions

u16 actor10Conditions[]
Initial value:
= {
(0x7000 | ( 0x1E )) , 1,
(( 0x1A ) << 8 | ( 0xA )) , 0,
0xFFFF ,
}

Definition at line 314 of file wstag521.c.

◆ actor11Conditions

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

Definition at line 319 of file wstag521.c.

◆ actor12Conditions

u16 actor12Conditions[]
Initial value:
= {
(0x7000 | ( 0x1E )) , 1,
(( 0x1A ) << 8 | ( 0xA )) , 0,
0xFFFF ,
}

Definition at line 320 of file wstag521.c.

◆ actor13Conditions

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

Definition at line 325 of file wstag521.c.

◆ actor14Conditions

u16 actor14Conditions[]
Initial value:
= {
(0x7000 | ( 0x3D )) , 1,
(( 0x1A ) << 8 | ( 0xA )) , 0,
0xFFFF ,
}

Definition at line 326 of file wstag521.c.

◆ actor15Conditions

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

Definition at line 331 of file wstag521.c.

◆ actor16Conditions

u16 actor16Conditions[] = { (( 0x40 ) << 8 | ( 0x52 )) , 0, 0xFFFF }

Definition at line 332 of file wstag521.c.

◆ actor17Conditions

u16 actor17Conditions[] = { (0x6000 | ( STORY_BLUE_ID_PASS )) , 1, 0xFFFF }

Definition at line 333 of file wstag521.c.

◆ actor18Conditions

u16 actor18Conditions[] = { (0x6000 | ( STORY_BLUE_ID_PASS )) , 1, 0xFFFF }

Definition at line 334 of file wstag521.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x2E, 4, 517, 289, 1 }

Definition at line 335 of file wstag521.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x31, 5, 321, 193, 3 }

Definition at line 336 of file wstag521.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x39, 6, 241, 217, 3 }

Definition at line 337 of file wstag521.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x40, 7, 241, 217, 3 }

Definition at line 338 of file wstag521.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x41, 8, 517, 289, 3 }

Definition at line 339 of file wstag521.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x42, 9, 321, 193, 3 }

Definition at line 340 of file wstag521.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x90, 0xA, 417, 201, 3 }

Definition at line 341 of file wstag521.c.

◆ actor7

FieldActorEntry actor7 = { ((void *)0) , ((void *)0) , 0x93, 0xB, 198, 184, 6 }

Definition at line 342 of file wstag521.c.

◆ actor8

FieldActorEntry actor8 = { ((void *)0) , ((void *)0) , 0x94, 0xC, 223, 172, 7 }

Definition at line 343 of file wstag521.c.

◆ actor9

FieldActorEntry actor9 = { ((void *)0) , ((void *)0) , 0x95, 0xD, 248, 160, 7 }

Definition at line 344 of file wstag521.c.

◆ actor10

FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x9D, 0xE, 241, 217, 3 }

Definition at line 345 of file wstag521.c.

◆ actor11

FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x9D, 0xE, 241, 217, 3 }

Definition at line 346 of file wstag521.c.

◆ actor12

FieldActorEntry actor12 = { actor12Conditions, actor12Talks, 0x9E, 0xF, 321, 193, 3 }

Definition at line 347 of file wstag521.c.

◆ actor13

FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x9E, 0xF, 321, 193, 3 }

Definition at line 348 of file wstag521.c.

◆ actor14

FieldActorEntry actor14 = { actor14Conditions, actor14Talks, 0x9F, 0x10, 517, 289, 1 }

Definition at line 349 of file wstag521.c.

◆ actor15

FieldActorEntry actor15 = { actor15Conditions, actor15Talks, 0x9F, 0x10, 517, 289, 1 }

Definition at line 350 of file wstag521.c.

◆ actor16

FieldActorEntry actor16 = { actor16Conditions, actor16Talks, 0xD2, 0x11, 417, 201, 3 }

Definition at line 351 of file wstag521.c.

◆ actor17

FieldActorEntry actor17 = { actor17Conditions, actor17Talks, 0x119, 0x12, 520, 252, 3 }

Definition at line 352 of file wstag521.c.

◆ actor18

FieldActorEntry actor18 = { actor18Conditions, ((void *)0) , 0x13C, 0x13, 0, 0, 1 }

Definition at line 353 of file wstag521.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag521.c:335
FieldActorEntry actor6
Definition wstag521.c:341
FieldActorEntry actor17
Definition wstag521.c:352
FieldActorEntry actor18
Definition wstag521.c:353
FieldActorEntry actor5
Definition wstag521.c:340
FieldActorEntry actor2
Definition wstag521.c:337
FieldActorEntry actor10
Definition wstag521.c:345
FieldActorEntry actor4
Definition wstag521.c:339
FieldActorEntry actor8
Definition wstag521.c:343
FieldActorEntry actor9
Definition wstag521.c:344
FieldActorEntry actor15
Definition wstag521.c:350
FieldActorEntry actor12
Definition wstag521.c:347
FieldActorEntry actor16
Definition wstag521.c:351
FieldActorEntry actor7
Definition wstag521.c:342
FieldActorEntry actor13
Definition wstag521.c:348
FieldActorEntry actor11
Definition wstag521.c:346
FieldActorEntry actor1
Definition wstag521.c:336
FieldActorEntry actor3
Definition wstag521.c:338
FieldActorEntry actor14
Definition wstag521.c:349

Definition at line 354 of file wstag521.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 6, 0x32, 2, 0, 1, 4, 0, 323, 114, 0, 0 },
{ 1, 0, 0xA0, 6, 0xA, 0, 0, 0, 0, 0, 367, 110, 0, 0 },
{ 1, 0, 0x40, 4, 7, 0, 0, 0, 0, 0, 205, 181, 199, 0 },
{ 1, 0, 0x40, 4, 8, 0, 0, 0, 0, 0, 237, 165, 183, 0 },
{ 1, 0, 0x40, 4, 9, 0, 0, 0, 0, 0, 270, 149, 167, 0 },
{ 1, 0, 0x40, 4, 0x33, 2, 0, 1, 4, 0, 186, 161, 199, 0 },
{ 1, 0, 0x40, 4, 0x33, 2, 0, 1, 4, 0, 218, 145, 183, 0 },
{ 1, 0, 0x40, 4, 0x33, 2, 0, 1, 4, 0, 252, 129, 167, 0 },
{ 1, 0, 0x58, 4, 0, 0, 0, 0, 0, 0, 521, 189, 272, 0 },
{ 1, 0, 0xA0, 4, 1, 0, 0, 0, 0, 0, 367, 110, 256, 0 },
{ 1, 0, 0x40, 4, 2, 0, 0, 0, 0, 0, 230, 243, 272, 0 },
{ 1, 0, 0x40, 4, 3, 0, 0, 0, 0, 0, 259, 221, 255, 0 },
{ 1, 0, 0x58, 4, 4, 0, 0, 0, 0, 0, 171, 118, 198, 0 },
{ 1, 0, 0x55, 4, 5, 0, 0, 0, 0, 0, 138, 106, 182, 0 },
{ 1, 0, 0x5C, 4, 6, 0, 0, 0, 0, 0, 263, 68, 153, 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 376 of file wstag521.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2AB, 0x32A, 0x9C, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2AB, 0x238, 0x8C, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 4, 0x1CE, 0xE6, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 4, 0x1BE, 0x12E, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 6, 0x220, 0x150, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 6, 0x230, 0x1B8, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 394 of file wstag521.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_0016; BGM_0029 instead except at ...
Definition wstag521.c:60

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 wstag521.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 750, script750, ( ( 0x13D - 1) << 16 | ( 0x22 )), ((void *)0) , endEvent750 },
{ 751, script751, ( ( 0x13D - 1) << 16 | ( 0x1E )), ((void *)0) , endEvent751 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void endEvent751(void)
After event 751, with the player: moves the story on to STORY_BULBMON_BEATEN and gives the player the...
Definition wstag521.c:42
void endEvent750(void)
After event 750, with Zhu Que Chief: lets event 751 start and starts the stage's event battle 0.
Definition wstag521.c:33
s16 script751[]
Definition wstag521.c:124
s16 script750[]
Definition wstag521.c:84

Definition at line 406 of file wstag521.c.

Referenced by setupStage().