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

WSTAG505: Suzaku Inn, Suzaku 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 wstag505.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_01)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_500 - 1)
 
#define STAGE_FILE   0x23C
 
#define STAGE_ARCHIVE   0x3DB
 

Functions

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

Variables

s16 script1220 []
 
ActorImage stageImages []
 
u16 actor0Talk0Actions [] = { 0x7A22, 1, 0xFFFF }
 
u16 actor1Talk0Actions [] = { (0x9000 | ( 0xF )) , 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 []
 
FieldTalk actor12Talks []
 
FieldTalk actor13Talks []
 
u16 actor2Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor3Conditions [] = { (0x6000 | ( STORY_LOOKING_FOR_TEDDY )) , 1, 0xFFFF }
 
u16 actor4Conditions [] = { (0x6000 | ( STORY_TEDDY_FOUND )) , 1, 0xFFFF }
 
u16 actor5Conditions [] = { (0x7000 | ( 0x16 )) , 1, 0xFFFF }
 
u16 actor6Conditions [] = { (0x7000 | ( 0x17 )) , 1, 0xFFFF }
 
u16 actor7Conditions [] = { (0x6000 | ( STORY_KNIGHTMON_REPROGRAMMED )) , 1, 0xFFFF }
 
u16 actor8Conditions [] = { (0x6000 | ( STORY_CODE_PASSES_NEEDED )) , 1, 0xFFFF }
 
u16 actor9Conditions [] = { (0x6000 | ( STORY_BULBMON_FOUND )) , 1, 0xFFFF }
 
u16 actor10Conditions [] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF }
 
u16 actor11Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor12Conditions [] = { (0x6000 | ( STORY_ZANBAMON_DRIVEN_OFF )) , 1, 0xFFFF }
 
u16 actor13Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x14, 4, 673, 370, 1 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x15, 5, 752, 401, 1 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x36, 6, 273, 217, 1 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x36, 6, 550, 222, 5 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x36, 6, 550, 222, 5 }
 
FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x36, 6, 550, 222, 5 }
 
FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x36, 6, 550, 222, 5 }
 
FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x36, 6, 550, 222, 5 }
 
FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x36, 6, 550, 222, 5 }
 
FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x36, 6, 550, 222, 5 }
 
FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x36, 6, 550, 222, 5 }
 
FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x36, 6, 550, 222, 5 }
 
FieldActorEntry actor12 = { actor12Conditions, actor12Talks, 0x36, 6, 550, 222, 5 }
 
FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x9D, 7, 550, 222, 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

WSTAG505: Suzaku Inn, Suzaku City.

Definition in file wstag505.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_01)

Definition at line 17 of file wstag505.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_500 - 1)

Definition at line 18 of file wstag505.c.

◆ STAGE_FILE

#define STAGE_FILE   0x23C

Definition at line 19 of file wstag505.c.

◆ STAGE_ARCHIVE

#define STAGE_ARCHIVE   0x3DB

Definition at line 20 of file wstag505.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 23 of file wstag505.c.

Variable Documentation

◆ script1220

s16 script1220[]
Initial value:
= {
0x102, 2 , 0x2D0 , 0x1A0 , 5 ,
0x100, 0x15 , 0x2F0 , 0x191 ,
0x101, 0x15 , 1 , 1 ,
0x101, 0x32D , 0x337 , 2 ,
0x302, 2 ,
0x101, 2 , 1 , 5 ,
0x300, 6 ,
0x300, 0x1E ,
0x200, 0 , 1 , 0x15 , 0 ,
0x301 ,
0x300, 0x1E ,
0x101, 0x15 , 0x36 , 1 ,
0x101, 0x32D , 0x375 , 2 ,
0x303, 0x15 ,
0x101, 0x15 , 0x37 , 1 ,
0x300, 0x5A ,
0x304, 0xC04 , 0 , 0 , 0 ,
0 ,
}

Definition at line 42 of file wstag505.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, 0x176, 0x125, 0xD8, 0x25, 0x140, 0x1FF },
{ 0x140, 0x100, 0x156, 0x143, 0x58, 0x43, 0x150, 0x1FF },
{ 0x140, 0x100, 0x140, 0x16F, 0, 0x6F, 0x160, 0x1FF },
{ 0x140, 0x100, 0x148, 0x16F, 0x20, 0x6F, 0x170, 0x1FF },
}

Definition at line 62 of file wstag505.c.

Referenced by setupStage().

◆ actor0Talk0Actions

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

Definition at line 74 of file wstag505.c.

◆ actor1Talk0Actions

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

Definition at line 75 of file wstag505.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 5 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag505.c:74

Definition at line 76 of file wstag505.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , actor1Talk0Actions, 2 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk0Actions[]
Definition wstag505.c:75

Definition at line 80 of file wstag505.c.

◆ actor2Talks

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

Definition at line 84 of file wstag505.c.

◆ actor3Talks

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

Definition at line 88 of file wstag505.c.

◆ actor4Talks

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

Definition at line 92 of file wstag505.c.

◆ actor5Talks

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

Definition at line 96 of file wstag505.c.

◆ actor6Talks

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

Definition at line 100 of file wstag505.c.

◆ actor7Talks

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

Definition at line 104 of file wstag505.c.

◆ actor8Talks

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

Definition at line 108 of file wstag505.c.

◆ actor9Talks

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

Definition at line 112 of file wstag505.c.

◆ actor10Talks

FieldTalk actor10Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x8C },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 116 of file wstag505.c.

◆ actor11Talks

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

Definition at line 120 of file wstag505.c.

◆ actor12Talks

FieldTalk actor12Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x6F },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 124 of file wstag505.c.

◆ actor13Talks

FieldTalk actor13Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x8E },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 128 of file wstag505.c.

◆ actor2Conditions

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

Definition at line 132 of file wstag505.c.

◆ actor3Conditions

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

Definition at line 133 of file wstag505.c.

◆ actor4Conditions

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

Definition at line 134 of file wstag505.c.

◆ actor5Conditions

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

Definition at line 135 of file wstag505.c.

◆ actor6Conditions

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

Definition at line 136 of file wstag505.c.

◆ actor7Conditions

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

Definition at line 137 of file wstag505.c.

◆ actor8Conditions

u16 actor8Conditions[] = { (0x6000 | ( STORY_CODE_PASSES_NEEDED )) , 1, 0xFFFF }

Definition at line 138 of file wstag505.c.

◆ actor9Conditions

u16 actor9Conditions[] = { (0x6000 | ( STORY_BULBMON_FOUND )) , 1, 0xFFFF }

Definition at line 139 of file wstag505.c.

◆ actor10Conditions

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

Definition at line 140 of file wstag505.c.

◆ actor11Conditions

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

Definition at line 141 of file wstag505.c.

◆ actor12Conditions

u16 actor12Conditions[] = { (0x6000 | ( STORY_ZANBAMON_DRIVEN_OFF )) , 1, 0xFFFF }

Definition at line 142 of file wstag505.c.

◆ actor13Conditions

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

Definition at line 143 of file wstag505.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x14, 4, 673, 370, 1 }

Definition at line 144 of file wstag505.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x15, 5, 752, 401, 1 }

Definition at line 145 of file wstag505.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x36, 6, 273, 217, 1 }

Definition at line 146 of file wstag505.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x36, 6, 550, 222, 5 }

Definition at line 147 of file wstag505.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x36, 6, 550, 222, 5 }

Definition at line 148 of file wstag505.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x36, 6, 550, 222, 5 }

Definition at line 149 of file wstag505.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x36, 6, 550, 222, 5 }

Definition at line 150 of file wstag505.c.

◆ actor7

FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x36, 6, 550, 222, 5 }

Definition at line 151 of file wstag505.c.

◆ actor8

FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x36, 6, 550, 222, 5 }

Definition at line 152 of file wstag505.c.

◆ actor9

FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x36, 6, 550, 222, 5 }

Definition at line 153 of file wstag505.c.

◆ actor10

FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x36, 6, 550, 222, 5 }

Definition at line 154 of file wstag505.c.

◆ actor11

FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x36, 6, 550, 222, 5 }

Definition at line 155 of file wstag505.c.

◆ actor12

FieldActorEntry actor12 = { actor12Conditions, actor12Talks, 0x36, 6, 550, 222, 5 }

Definition at line 156 of file wstag505.c.

◆ actor13

FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x9D, 7, 550, 222, 5 }

Definition at line 157 of file wstag505.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag505.c:144
FieldActorEntry actor6
Definition wstag505.c:150
FieldActorEntry actor5
Definition wstag505.c:149
FieldActorEntry actor2
Definition wstag505.c:146
FieldActorEntry actor10
Definition wstag505.c:154
FieldActorEntry actor4
Definition wstag505.c:148
FieldActorEntry actor8
Definition wstag505.c:152
FieldActorEntry actor9
Definition wstag505.c:153
FieldActorEntry actor12
Definition wstag505.c:156
FieldActorEntry actor7
Definition wstag505.c:151
FieldActorEntry actor13
Definition wstag505.c:157
FieldActorEntry actor11
Definition wstag505.c:155
FieldActorEntry actor1
Definition wstag505.c:145
FieldActorEntry actor3
Definition wstag505.c:147

Definition at line 158 of file wstag505.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x50, 4, 0, 0, 0, 0, 0, 0, 510, 318, 407, 0 },
{ 1, 0, 0x80, 4, 1, 0, 0, 0, 0, 0, 671, 351, 374, 0 },
{ 1, 0, 0x80, 4, 2, 0, 0, 0, 0, 0, 676, 315, 367, 0 },
{ 1, 0, 0xE0, 4, 3, 0, 0, 0, 0, 0, 608, 315, 374, 0 },
{ 1, 0, 0x40, 4, 4, 0, 0, 0, 0, 0, 175, 201, 239, 0 },
{ 1, 0, 0x40, 4, 5, 0, 0, 0, 0, 0, 207, 185, 224, 0 },
{ 1, 0, 0x40, 4, 6, 0, 0, 0, 0, 0, 237, 176, 208, 0 },
{ 1, 0, 0x40, 4, 7, 0, 0, 0, 0, 0, 632, 227, 236, 0 },
{ 1, 0, 0x40, 4, 8, 0, 0, 0, 0, 0, 615, 191, 229, 0 },
{ 1, 0, 0x40, 4, 9, 0, 0, 0, 0, 0, 575, 174, 212, 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 175 of file wstag505.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x23E, 0xE8, 0x17C, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 188 of file wstag505.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 wstag505.c:23

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 wstag505.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1220, script1220, ( ( 0x13D - 1) << 16 | ( 8 )), ((void *)0) , ((void *)0) },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
s16 script1220[]
Definition wstag505.c:42

Definition at line 195 of file wstag505.c.

Referenced by setupStage().