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

WSTAG361: Forest Inn, 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 wstag361.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   0x595
 

Functions

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

Variables

s16 script1205 []
 
ActorImage stageImages []
 
u16 actor0Talk0Actions [] = { 0x7A29, 1, 0xFFFF }
 
u16 actor1Talk0Actions [] = { (0x9000 | ( 0xB )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x14, 4, 345, 308, 7 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x15, 5, 121, 165, 7 }
 
FieldActorEntry actor2 = { ((void *)0) , ((void *)0) , 0x78, 6, 374, 268, 5 }
 
FieldActorEntry actor3 = { ((void *)0) , ((void *)0) , 0xDB, 7, 346, 325, 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

WSTAG361: Forest Inn, East Sector.

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

Definition in file wstag361.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_04)

Definition at line 17 of file wstag361.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_300 - 1)

Definition at line 18 of file wstag361.c.

◆ STAGE_FILE

#define STAGE_FILE   0x595

Definition at line 19 of file wstag361.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map, actors and events, 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 22 of file wstag361.c.

Variable Documentation

◆ script1205

s16 script1205[]
Initial value:
= {
0x102, 2 , 0x99 , 0xB5 , 3 ,
0x100, 0x15 , 0x79 , 0xA5 ,
0x101, 0x15 , 1 , 7 ,
0x101, 0x32D , 0x337 , 2 ,
0x302, 2 ,
0x101, 2 , 1 , 3 ,
0x300, 6 ,
0x300, 0x1E ,
0x200, 0 , 1 , 0x15 , 0 ,
0x301 ,
0x300, 0x1E ,
0x101, 0x15 , 0x36 , 7 ,
0x101, 0x32D , 0x375 , 2 ,
0x303, 0x15 ,
0x101, 0x15 , 0x37 , 7 ,
0x300, 0x5A ,
0x304, 0xC0B , 0 , 0 , 0 ,
0 ,
}

Definition at line 41 of file wstag361.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, 0x140, 0x166, 0, 0x66, 0x150, 0x1FB },
{ 0x140, 0x100, 0x170, 0x100, 0xC0, 0, 0x160, 0x1FB },
{ 0x140, 0x100, 0x168, 0x169, 0xA0, 0x69, 0x170, 0x1FB },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 61 of file wstag361.c.

Referenced by setupStage().

◆ actor0Talk0Actions

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

Definition at line 73 of file wstag361.c.

◆ actor1Talk0Actions

u16 actor1Talk0Actions[] = { (0x9000 | ( 0xB )) , 1, 0xFFFF }

Definition at line 74 of file wstag361.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x2CE },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag361.c:73

Definition at line 75 of file wstag361.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , actor1Talk0Actions, 0x2CF },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk0Actions[]
Definition wstag361.c:74

Definition at line 79 of file wstag361.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x14, 4, 345, 308, 7 }

Definition at line 83 of file wstag361.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x15, 5, 121, 165, 7 }

Definition at line 84 of file wstag361.c.

◆ actor2

FieldActorEntry actor2 = { ((void *)0) , ((void *)0) , 0x78, 6, 374, 268, 5 }

Definition at line 85 of file wstag361.c.

◆ actor3

FieldActorEntry actor3 = { ((void *)0) , ((void *)0) , 0xDB, 7, 346, 325, 7 }

Definition at line 86 of file wstag361.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag361.c:83
FieldActorEntry actor2
Definition wstag361.c:85
FieldActorEntry actor1
Definition wstag361.c:84
FieldActorEntry actor3
Definition wstag361.c:86

Definition at line 87 of file wstag361.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]

The tables and color setupStage gives FIELDSTG_state (FieldState)

Definition at line 94 of file wstag361.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x291, 0x80, 0x31C, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x293, 0x88, 0xBC, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 6, 0xFA, 0x126, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 6, 0x10B, 0x188, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 126 of file wstag361.c.

Referenced by setupStage().

◆ stageFuncs

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

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 133 of file wstag361.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1205, script1205, ( ( 0x128 - 1) << 16 | ( 0x1A )), ((void *)0) , ((void *)0) },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
s16 script1205[]
Definition wstag361.c:41

Definition at line 136 of file wstag361.c.

Referenced by setupStage().