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

WSTAG237: Underground Path, Asuka City. More...

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

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_05)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_200 - 1)
 
#define STAGE_FILE   0x2B8
 
#define STAGE_ARCHIVE   0x33F
 

Functions

void endEvent300 (void)
 After event 300, with Kail: moves the story on to STORY_AGUMON_DISGUISE.
 
void setupStage (void)
 Sets the stage up: its map, actors and events, playing ASKA_BGM.
 

Variables

s16 script300 []
 
ActorImage stageImages []
 
u16 actor0Talk0Actions [] = { (0x9000 | ( 0x2D )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
u16 actor0Conditions [] = { (0x6000 | ( STORY_LOOKING_FOR_TEDDY )) , 1, (0x8000 | ( 0 ) << 9 | ( 0xF )), 1, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0xB, 4, 417, 145, 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

WSTAG237: Underground Path, Asuka City.

Definition in file wstag237.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_05)

Definition at line 22 of file wstag237.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_200 - 1)

Definition at line 23 of file wstag237.c.

◆ STAGE_FILE

#define STAGE_FILE   0x2B8

Definition at line 24 of file wstag237.c.

◆ STAGE_ARCHIVE

#define STAGE_ARCHIVE   0x33F

Definition at line 25 of file wstag237.c.

Function Documentation

◆ endEvent300()

void endEvent300 ( void  )

After event 300, with Kail: moves the story on to STORY_AGUMON_DISGUISE.

Definition at line 12 of file wstag237.c.

◆ setupStage()

void setupStage ( void  )

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

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.

< ASKA_BGM: the Central Sector's streets and bridges, the Underground Path

< ASKA_BGM: the Central Sector's streets and bridges, the Underground Path

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

Definition at line 28 of file wstag237.c.

Variable Documentation

◆ script300

s16 script300[]
Initial value:
= {
0x600, 1 , 2 ,
0x102, 2 , 0x17C , 0xA1 , 5 ,
0x100, 0xB , 0x1A1 , 0x91 ,
0x101, 0xB , 1 , 1 ,
0x101, 0x32D , 0x337 , 2 ,
0x302, 2 ,
0x101, 2 , 1 , 5 ,
0x300, 0x1E ,
0x200, 0 , 1 , 0xB , 2 ,
0x101, 0xB , 7 , 1 ,
0x301 ,
0x101, 0xB , 1 , 1 ,
0x300, 0x1E ,
0x200, 0 , 2 , 2 , 0 ,
0x101, 2 , 7 , 5 ,
0x301 ,
0x101, 2 , 1 , 5 ,
0x300, 0x1E ,
0x200, 0 , 3 , 0xB , 2 ,
0x101, 0xB , 7 , 1 ,
0x301 ,
0x101, 0xB , 1 , 1 ,
0x300, 0x1E ,
0x304, 0x203 , 0x60 , 0x190 , 5 ,
0 ,
}

Definition at line 47 of file wstag237.c.

◆ 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, 0x148, 0x130, 0x20, 0x30, 0x170, 0x1FF },
}

Definition at line 74 of file wstag237.c.

Referenced by setupStage().

◆ actor0Talk0Actions

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

Definition at line 83 of file wstag237.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x58 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag237.c:83

Definition at line 84 of file wstag237.c.

◆ actor0Conditions

u16 actor0Conditions[] = { (0x6000 | ( STORY_LOOKING_FOR_TEDDY )) , 1, (0x8000 | ( 0 ) << 9 | ( 0xF )), 1, 0xFFFF }

Definition at line 88 of file wstag237.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0xB, 4, 417, 145, 7 }

Definition at line 89 of file wstag237.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag237.c:89

Definition at line 90 of file wstag237.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 0x32, 2, 0, 1, 6, 0, 261, 137, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 1, 6, 0, 53, 223, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 1, 6, 0, 173, 179, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 1, 6, 0, 325, 105, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 2, 0, 1, 6, 0, 435, 83, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 2, 0, 1, 6, 0, 523, 127, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 2, 0, 1, 6, 0, 555, 239, 0, 0 },
{ 1, 0x64, 0x40, 6, 1, 0, 0, 0, 0, 0, 286, 127, 0, 0 },
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 224, 144, 184, 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 94 of file wstag237.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x201, 0xF0, 0x108, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x21B, 0x138, 0x64, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x20A, 0xA7, 0x153, 3, 0x64, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 6, 0x203, 0xC2, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 6, 0x212, 0x128, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 106 of file wstag237.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map, actors and events, playing ASKA_BGM.
Definition wstag237.c:28

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 114 of file wstag237.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 300, script300, ( ( 0x113 - 1) << 16 | ( 0x1B )), ((void *)0) , endEvent300 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void endEvent300(void)
After event 300, with Kail: moves the story on to STORY_AGUMON_DISGUISE.
Definition wstag237.c:12
s16 script300[]
Definition wstag237.c:47

Definition at line 117 of file wstag237.c.

Referenced by setupStage().