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

WSTAG365: 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 wstag365.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_06)
 
#define STAGE_FILE   0x23A
 
#define STAGE_ARCHIVE   0x3D7
 

Functions

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

Variables

ActorImage stageImages []
 
u16 actor10Talk0Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x18E )), 0, 0xFFFF }
 
u16 actor10Talk0Actions [] = { (0x8000 | ( 0 ) << 9 | ( 0x18E )), 1, (0x7000 | ( 0x13 )) , 1, 0xFFFF }
 
u16 actor10Talk1Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x18E )), 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
FieldTalk actor6Talks []
 
FieldTalk actor7Talks []
 
FieldTalk actor8Talks []
 
FieldTalk actor9Talks []
 
FieldTalk actor10Talks []
 
FieldTalk actor11Talks []
 
u16 actor0Conditions [] = { (0x6000 | ( STORY_GENJI_BEATEN )) , 1, 0xFFFF }
 
u16 actor1Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor2Conditions [] = { (0x6000 | ( STORY_LOOKING_FOR_TEDDY )) , 1, 0xFFFF }
 
u16 actor3Conditions [] = { (0x7000 | ( 0x16 )) , 1, 0xFFFF }
 
u16 actor4Conditions [] = { (0x7000 | ( 0x18 )) , 1, 0xFFFF }
 
u16 actor5Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor6Conditions [] = { (0x7000 | ( 0x15 )) , 1, 0xFFFF }
 
u16 actor7Conditions [] = { (0x6000 | ( STORY_TEDDY_FOUND )) , 1, 0xFFFF }
 
u16 actor8Conditions [] = { (0x7000 | ( 0x17 )) , 1, 0xFFFF }
 
u16 actor9Conditions [] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF }
 
u16 actor10Conditions []
 
u16 actor11Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x2D, 4, 241, 201, 5 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x2D, 4, 241, 201, 3 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x2D, 4, 241, 201, 5 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x2D, 4, 241, 201, 5 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x2D, 4, 241, 201, 5 }
 
FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x2D, 4, 241, 201, 5 }
 
FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x2D, 4, 241, 201, 5 }
 
FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x2D, 4, 241, 201, 5 }
 
FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x2D, 4, 241, 201, 5 }
 
FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x2D, 4, 241, 201, 5 }
 
FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x40, 5, 192, 633, 1 }
 
FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x9D, 6, 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.
 

Detailed Description

WSTAG365: Forest Inn BF, East Sector.

Definition in file wstag365.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_06)

Definition at line 16 of file wstag365.c.

◆ STAGE_FILE

#define STAGE_FILE   0x23A

Definition at line 17 of file wstag365.c.

◆ STAGE_ARCHIVE

#define STAGE_ARCHIVE   0x3D7

Definition at line 18 of file wstag365.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map and actors, 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 21 of file wstag365.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, 0x176, 0x150, 0xD8, 0x50, 0x160, 0x1FF },
{ 0x140, 0x100, 0x15E, 0x138, 0x78, 0x38, 0x170, 0x1FF },
{ 0x140, 0x100, 0x166, 0x14C, 0x98, 0x4C, 0x160, 0x1FE },
}

Definition at line 39 of file wstag365.c.

Referenced by setupStage().

◆ actor10Talk0Conditions

u16 actor10Talk0Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0x18E )), 0, 0xFFFF }

Definition at line 50 of file wstag365.c.

◆ actor10Talk0Actions

u16 actor10Talk0Actions[] = { (0x8000 | ( 0 ) << 9 | ( 0x18E )), 1, (0x7000 | ( 0x13 )) , 1, 0xFFFF }

Definition at line 51 of file wstag365.c.

◆ actor10Talk1Conditions

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

Definition at line 52 of file wstag365.c.

◆ actor0Talks

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

Definition at line 53 of file wstag365.c.

◆ actor1Talks

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

Definition at line 57 of file wstag365.c.

◆ actor2Talks

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

Definition at line 61 of file wstag365.c.

◆ actor3Talks

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

Definition at line 65 of file wstag365.c.

◆ actor4Talks

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

Definition at line 69 of file wstag365.c.

◆ actor5Talks

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

Definition at line 73 of file wstag365.c.

◆ actor6Talks

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

Definition at line 77 of file wstag365.c.

◆ actor7Talks

FieldTalk actor7Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x108 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 81 of file wstag365.c.

◆ actor8Talks

FieldTalk actor8Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x109 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 85 of file wstag365.c.

◆ actor9Talks

FieldTalk actor9Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x10B },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 89 of file wstag365.c.

◆ actor10Talks

FieldTalk actor10Talks[]
Initial value:
= {
{ actor10Talk1Conditions, ((void *)0) , 0x328 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor10Talk1Conditions[]
Definition wstag365.c:52
u16 actor10Talk0Conditions[]
Definition wstag365.c:50
u16 actor10Talk0Actions[]
Definition wstag365.c:51

Definition at line 93 of file wstag365.c.

◆ actor11Talks

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

Definition at line 98 of file wstag365.c.

◆ actor0Conditions

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

Definition at line 102 of file wstag365.c.

◆ actor1Conditions

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

Definition at line 103 of file wstag365.c.

◆ actor2Conditions

u16 actor2Conditions[] = { (0x6000 | ( STORY_LOOKING_FOR_TEDDY )) , 1, 0xFFFF }

Definition at line 104 of file wstag365.c.

◆ actor3Conditions

u16 actor3Conditions[] = { (0x7000 | ( 0x16 )) , 1, 0xFFFF }

Definition at line 105 of file wstag365.c.

◆ actor4Conditions

u16 actor4Conditions[] = { (0x7000 | ( 0x18 )) , 1, 0xFFFF }

Definition at line 106 of file wstag365.c.

◆ actor5Conditions

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

Definition at line 107 of file wstag365.c.

◆ actor6Conditions

u16 actor6Conditions[] = { (0x7000 | ( 0x15 )) , 1, 0xFFFF }

Definition at line 108 of file wstag365.c.

◆ actor7Conditions

u16 actor7Conditions[] = { (0x6000 | ( STORY_TEDDY_FOUND )) , 1, 0xFFFF }

Definition at line 109 of file wstag365.c.

◆ actor8Conditions

u16 actor8Conditions[] = { (0x7000 | ( 0x17 )) , 1, 0xFFFF }

Definition at line 110 of file wstag365.c.

◆ actor9Conditions

u16 actor9Conditions[] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF }

Definition at line 111 of file wstag365.c.

◆ actor10Conditions

u16 actor10Conditions[]
Initial value:
= {
(0x6000 | ( STORY_FAKE_BLUE_CARD )) , 1,
(( 0x1C ) << 8 | ( 0x47 )) , 1,
0xFFFF ,
}
@ STORY_FAKE_BLUE_CARD
WSTAG410 (East Station), event 90: the Blue Card the player was given turns out to be a fake.
Definition story.h:42

Definition at line 112 of file wstag365.c.

◆ actor11Conditions

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

Definition at line 117 of file wstag365.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x2D, 4, 241, 201, 5 }

Definition at line 118 of file wstag365.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x2D, 4, 241, 201, 3 }

Definition at line 119 of file wstag365.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x2D, 4, 241, 201, 5 }

Definition at line 120 of file wstag365.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x2D, 4, 241, 201, 5 }

Definition at line 121 of file wstag365.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x2D, 4, 241, 201, 5 }

Definition at line 122 of file wstag365.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x2D, 4, 241, 201, 5 }

Definition at line 123 of file wstag365.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x2D, 4, 241, 201, 5 }

Definition at line 124 of file wstag365.c.

◆ actor7

FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x2D, 4, 241, 201, 5 }

Definition at line 125 of file wstag365.c.

◆ actor8

FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x2D, 4, 241, 201, 5 }

Definition at line 126 of file wstag365.c.

◆ actor9

FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x2D, 4, 241, 201, 5 }

Definition at line 127 of file wstag365.c.

◆ actor10

FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x40, 5, 192, 633, 1 }

Definition at line 128 of file wstag365.c.

◆ actor11

FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x9D, 6, 241, 201, 5 }

Definition at line 129 of file wstag365.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag365.c:118
FieldActorEntry actor6
Definition wstag365.c:124
FieldActorEntry actor5
Definition wstag365.c:123
FieldActorEntry actor2
Definition wstag365.c:120
FieldActorEntry actor10
Definition wstag365.c:128
FieldActorEntry actor4
Definition wstag365.c:122
FieldActorEntry actor8
Definition wstag365.c:126
FieldActorEntry actor9
Definition wstag365.c:127
FieldActorEntry actor7
Definition wstag365.c:125
FieldActorEntry actor11
Definition wstag365.c:129
FieldActorEntry actor1
Definition wstag365.c:119
FieldActorEntry actor3
Definition wstag365.c:121

Definition at line 130 of file wstag365.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 145 of file wstag365.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x223, 0x156, 0x1B0, 3, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 161 of file wstag365.c.

Referenced by setupStage().

◆ stageFuncs

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

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 165 of file wstag365.c.