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

WSTAG366: Forest Inn BF, East 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 wstag366.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_04)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_300 - 1)
 
#define STAGE_FILE   0x585
 

Functions

void endEvent720 (void)
 After event 720, with Boy and Courageous Kenny: gives the player the Crony ID and keeps it from playing again.
 
void setupStage (void)
 Sets the stage up: its map, actors and events, playing the ambience ENV_0009.
 

Variables

s16 script720 []
 
ActorImage stageImages []
 
u16 actor0Conditions []
 
FieldActorEntry actor0 = { actor0Conditions, ((void *)0) , 0x2D, 4, 241, 201, 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

WSTAG366: Forest Inn BF, East Sector.

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

Definition in file wstag366.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_04)

Definition at line 26 of file wstag366.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_300 - 1)

Definition at line 27 of file wstag366.c.

◆ STAGE_FILE

#define STAGE_FILE   0x585

Definition at line 28 of file wstag366.c.

Function Documentation

◆ endEvent720()

void endEvent720 ( void  )

After event 720, with Boy and Courageous Kenny: gives the player the Crony ID and keeps it from playing again.

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

Definition at line 16 of file wstag366.c.

◆ setupStage()

void setupStage ( void  )

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

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.

< ENV_0009: the Forest Inn's basement

< ENV_0009: the Forest Inn's basement

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

Definition at line 31 of file wstag366.c.

Variable Documentation

◆ script720

s16 script720[]

Definition at line 50 of file wstag366.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, 0x170, 0x150, 0xC0, 0x50, 0x160, 0x1FF },
}

Definition at line 151 of file wstag366.c.

Referenced by setupStage().

◆ actor0Conditions

u16 actor0Conditions[]
Initial value:
= {
(0x6000 | ( STORY_JUNGLE_SOUND )) , 1,
(( 0x40 ) << 8 | ( 0x1D )) , 0,
0xFFFF ,
}
@ STORY_JUNGLE_SOUND
WSTAG545 (Bug Maze Pit), event 711: Patamon heard a weird sound from the jungle, where its leader wen...
Definition story.h:106

Definition at line 160 of file wstag366.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, ((void *)0) , 0x2D, 4, 241, 201, 5 }

Definition at line 165 of file wstag366.c.

◆ stageActors

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

Definition at line 166 of file wstag366.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 0x34, 2, 0, 7, 4, 0, 97, 134, 0, 0 },
{ 1, 0, 0x40, 2, 0x35, 2, 0, 7, 4, 0, 137, 114, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 321, 137, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 577, 313, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 497, 272, 0, 0 },
{ 1, 0, 0x40, 6, 0x34, 2, 0, 7, 4, 0, 167, 516, 0, 0 },
{ 1, 0, 0x40, 6, 0x35, 2, 0, 7, 4, 0, 187, 293, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 7, 4, 0, 307, 233, 0, 0 },
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 276, 208, 242, 0 },
{ 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 51, 156, 208, 0 },
{ 1, 0, 0x40, 4, 2, 0, 0, 0, 0, 0, 425, 290, 314, 0 },
{ 1, 0, 0x40, 4, 3, 0, 0, 0, 0, 0, 421, 428, 438, 0 },
{ 1, 0, 0x40, 4, 4, 0, 0, 0, 0, 0, 423, 392, 429, 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 170 of file wstag366.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x292, 0x156, 0x1B0, 3, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x245, 0x5E8, 0xDC, 3, 0, 0, 0 },
{ { { (0x6000 | ( STORY_JUNGLE_SOUND )) , 1 }, { (( 0x40 ) << 8 | ( 0x1D )) , 0 } }, 8 , 0x2D0, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 186 of file wstag366.c.

Referenced by setupStage().

◆ stageFuncs

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

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 192 of file wstag366.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 720, script720, ( ( 0x128 - 1) << 16 | ( 0xD )), ((void *)0) , endEvent720 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void endEvent720(void)
After event 720, with Boy and Courageous Kenny: gives the player the Crony ID and keeps it from playi...
Definition wstag366.c:16
s16 script720[]
Definition wstag366.c:50

Definition at line 195 of file wstag366.c.

Referenced by setupStage().