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

WSTAG251: Junk Shop, Amaterasu 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 wstag251.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_03)
 
#define STAGE_FILE   0x4E4
 

Functions

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

Variables

ActorImage stageImages []
 
u16 actor0Talk0Actions [] = { 0x7A13, 1, 0xFFFF }
 
u16 actor1Talk0Actions [] = { 0x7A12, 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
u16 actor2Conditions []
 
u16 actor3Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor4Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor5Conditions []
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x16, 4, 451, 178, 7 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x17, 5, 382, 331, 1 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x2D, 6, 533, 171, 5 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x36, 7, 533, 171, 5 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x39, 8, 195, 402, 1 }
 
FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x3A, 9, 195, 402, 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.
 

Detailed Description

WSTAG251: Junk Shop, Amaterasu City.

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

Definition in file wstag251.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_03)

Definition at line 16 of file wstag251.c.

◆ STAGE_FILE

#define STAGE_FILE   0x4E4

Definition at line 17 of file wstag251.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

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

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.

< SHOP1BGM: the inns, shops and towers

< SHOP1BGM: the inns, shops and towers

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

Definition at line 20 of file wstag251.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, 0x158, 0x1C8, 0x60, 0xC8, 0x140, 0x1FE },
{ 0x180, 0x100, 0x180, 0x100, 0x100, 0, 0x150, 0x1FE },
{ 0x140, 0x100, 0x178, 0x1D8, 0xE0, 0xD8, 0x160, 0x1FE },
{ 0x180, 0x100, 0x18A, 0x100, 0x128, 0, 0x170, 0x1FE },
{ 0x180, 0x100, 0x1A6, 0x100, 0x198, 0, 0x140, 0x1FD },
{ 0x180, 0x100, 0x1AE, 0x100, 0x1B8, 0, 0x150, 0x1FD },
}

Definition at line 38 of file wstag251.c.

Referenced by setupStage().

◆ actor0Talk0Actions

u16 actor0Talk0Actions[] = { 0x7A13, 1, 0xFFFF }

Definition at line 52 of file wstag251.c.

◆ actor1Talk0Actions

u16 actor1Talk0Actions[] = { 0x7A12, 1, 0xFFFF }

Definition at line 53 of file wstag251.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x1A9 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag251.c:52

Definition at line 54 of file wstag251.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , actor1Talk0Actions, 0x1AA },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk0Actions[]
Definition wstag251.c:53

Definition at line 58 of file wstag251.c.

◆ actor2Talks

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

Definition at line 62 of file wstag251.c.

◆ actor3Talks

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

Definition at line 66 of file wstag251.c.

◆ actor4Talks

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

Definition at line 70 of file wstag251.c.

◆ actor5Talks

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

Definition at line 74 of file wstag251.c.

◆ actor2Conditions

u16 actor2Conditions[]
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 78 of file wstag251.c.

◆ actor3Conditions

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

Definition at line 83 of file wstag251.c.

◆ actor4Conditions

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

Definition at line 84 of file wstag251.c.

◆ actor5Conditions

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

Definition at line 85 of file wstag251.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x16, 4, 451, 178, 7 }

Definition at line 90 of file wstag251.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x17, 5, 382, 331, 1 }

Definition at line 91 of file wstag251.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x2D, 6, 533, 171, 5 }

Definition at line 92 of file wstag251.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x36, 7, 533, 171, 5 }

Definition at line 93 of file wstag251.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x39, 8, 195, 402, 1 }

Definition at line 94 of file wstag251.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x3A, 9, 195, 402, 1 }

Definition at line 95 of file wstag251.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag251.c:90
FieldActorEntry actor5
Definition wstag251.c:95
FieldActorEntry actor2
Definition wstag251.c:92
FieldActorEntry actor4
Definition wstag251.c:94
FieldActorEntry actor1
Definition wstag251.c:91
FieldActorEntry actor3
Definition wstag251.c:93

Definition at line 96 of file wstag251.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x3D, 4, 0, 224, 268, 0, 0 },
{ 1, 0, 0x40, 6, 0x4D, 1, 0x4D, 0x50, 8, 0, 73, 439, 0, 0 },
{ 1, 0, 0x40, 6, 0x51, 1, 0x51, 0x60, 0xA, 0, 90, 278, 0, 0 },
{ 1, 0, 0x40, 6, 0x51, 1, 0x51, 0x60, 0xA, 0, 133, 435, 0, 0 },
{ 1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x48, 0xA, 0, 67, 338, 0, 0 },
{ 1, 0, 0x40, 6, 0, 0, 0, 0, 0, 0, 314, 248, 0, 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 105 of file wstag251.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x27C, 0x150, 0x98, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x27C, 0x60, 0x150, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 114 of file wstag251.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map and actors, playing SHOP1BGM.
Definition wstag251.c:20

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 119 of file wstag251.c.