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

WSTAG246: Wedge's 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 wstag246.c:

Go to the source code of this file.

Macros

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

Functions

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

Variables

ActorImage stageImages []
 
u16 actor0Talk0Actions [] = { 0x7A11, 1, 0xFFFF }
 
u16 actor1Talk0Actions [] = { 0x7A0F, 1, 0xFFFF }
 
u16 actor9Talk0Actions [] = { 0x7A10, 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 []
 
FieldTalk actor14Talks []
 
FieldTalk actor15Talks []
 
u16 actor2Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor3Conditions []
 
u16 actor4Conditions []
 
u16 actor5Conditions []
 
u16 actor6Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor7Conditions []
 
u16 actor8Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor10Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, (0x8000 | ( 0 ) << 9 | ( 8 )), 1, 0xFFFF }
 
u16 actor11Conditions []
 
u16 actor12Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 8 )), 0, (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor13Conditions []
 
u16 actor14Conditions []
 
u16 actor15Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x16, 4, 449, 281, 7 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x17, 5, 304, 369, 7 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x2E, 6, 287, 433, 5 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x2E, 6, 287, 433, 5 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x34, 7, 480, 338, 3 }
 
FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x9D, 8, 480, 338, 3 }
 
FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x9D, 8, 480, 338, 3 }
 
FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x9E, 9, 287, 433, 5 }
 
FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x9E, 9, 287, 433, 5 }
 
FieldActorEntry actor9 = { ((void *)0) , actor9Talks, 0xB7, 0xA, 359, 308, 7 }
 
FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0xFF, 0xB, 144, 352, 1 }
 
FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0xFF, 0xB, 152, 397, 7 }
 
FieldActorEntry actor12 = { actor12Conditions, actor12Talks, 0xFF, 0xB, 152, 397, 7 }
 
FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0xFF, 0xB, 144, 352, 1 }
 
FieldActorEntry actor14 = { actor14Conditions, actor14Talks, 0x119, 0xC, 152, 397, 7 }
 
FieldActorEntry actor15 = { actor15Conditions, actor15Talks, 0x119, 0xC, 152, 397, 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.
 

Detailed Description

WSTAG246: Wedge's Shop, Amaterasu City.

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

Definition in file wstag246.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_03)

Definition at line 16 of file wstag246.c.

◆ STAGE_FILE

#define STAGE_FILE   0x4E7

Definition at line 17 of file wstag246.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 wstag246.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 },
{ 0x180, 0x100, 0x1B0, 0x16E, 0x1C0, 0x6E, 0x150, 0x1FF },
{ 0x180, 0x100, 0x1B0, 0x196, 0x1C0, 0x96, 0x160, 0x1FF },
{ 0x180, 0x100, 0x1B0, 0x1DE, 0x1C0, 0xDE, 0x170, 0x1FF },
{ 0x180, 0x100, 0x1B0, 0x1B6, 0x1C0, 0xB6, 0x150, 0x1FE },
{ 0x1C0, 0x100, 0x1F2, 0x100, 0x2C8, 0, 0x160, 0x1FE },
{ 0x1C0, 0x100, 0x1F2, 0x120, 0x2C8, 0x20, 0x170, 0x1FE },
{ 0x1C0, 0x100, 0x1E2, 0x13F, 0x288, 0x3F, 0x150, 0x1FD },
{ 0x180, 0x100, 0x1A0, 0x1C4, 0x180, 0xC4, 0x160, 0x1FD },
{ 0x1C0, 0x100, 0x1EA, 0x13F, 0x2A8, 0x3F, 0x170, 0x1FD },
}

Definition at line 38 of file wstag246.c.

Referenced by setupStage().

◆ actor0Talk0Actions

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

Definition at line 55 of file wstag246.c.

◆ actor1Talk0Actions

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

Definition at line 56 of file wstag246.c.

◆ actor9Talk0Actions

u16 actor9Talk0Actions[] = { 0x7A10, 1, 0xFFFF }

Definition at line 57 of file wstag246.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x1A8 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag246.c:55

Definition at line 58 of file wstag246.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , actor1Talk0Actions, 0x1A4 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk0Actions[]
Definition wstag246.c:56

Definition at line 62 of file wstag246.c.

◆ actor2Talks

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

Definition at line 66 of file wstag246.c.

◆ actor3Talks

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

Definition at line 70 of file wstag246.c.

◆ actor4Talks

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

Definition at line 74 of file wstag246.c.

◆ actor5Talks

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

Definition at line 78 of file wstag246.c.

◆ actor6Talks

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

Definition at line 82 of file wstag246.c.

◆ actor7Talks

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

Definition at line 86 of file wstag246.c.

◆ actor8Talks

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

Definition at line 90 of file wstag246.c.

◆ actor9Talks

FieldTalk actor9Talks[]
Initial value:
= {
{ ((void *)0) , actor9Talk0Actions, 0x1A6 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor9Talk0Actions[]
Definition wstag246.c:57

Definition at line 94 of file wstag246.c.

◆ actor10Talks

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

Definition at line 98 of file wstag246.c.

◆ actor11Talks

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

Definition at line 102 of file wstag246.c.

◆ actor12Talks

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

Definition at line 106 of file wstag246.c.

◆ actor13Talks

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

Definition at line 110 of file wstag246.c.

◆ actor14Talks

FieldTalk actor14Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x68 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 114 of file wstag246.c.

◆ actor15Talks

FieldTalk actor15Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x6A },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 118 of file wstag246.c.

◆ actor2Conditions

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

Definition at line 122 of file wstag246.c.

◆ actor3Conditions

u16 actor3Conditions[]
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 123 of file wstag246.c.

◆ actor4Conditions

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

Definition at line 128 of file wstag246.c.

◆ actor5Conditions

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

Definition at line 133 of file wstag246.c.

◆ actor6Conditions

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

Definition at line 138 of file wstag246.c.

◆ actor7Conditions

u16 actor7Conditions[]
Initial value:
= {
(( 0x1A ) << 8 | ( 0xA )) , 0,
(0x7000 | ( 0x1C )) , 1,
0xFFFF ,
}

Definition at line 139 of file wstag246.c.

◆ actor8Conditions

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

Definition at line 144 of file wstag246.c.

◆ actor10Conditions

u16 actor10Conditions[] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, (0x8000 | ( 0 ) << 9 | ( 8 )), 1, 0xFFFF }

Definition at line 145 of file wstag246.c.

◆ actor11Conditions

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

Definition at line 146 of file wstag246.c.

◆ actor12Conditions

u16 actor12Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 8 )), 0, (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }

Definition at line 152 of file wstag246.c.

◆ actor13Conditions

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

Definition at line 153 of file wstag246.c.

◆ actor14Conditions

u16 actor14Conditions[]
Initial value:
= {
(0x7000 | ( 0x1C )) , 1,
(( 0x1A ) << 8 | ( 0xA )) , 0,
0xFFFF ,
}

Definition at line 159 of file wstag246.c.

◆ actor15Conditions

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

Definition at line 164 of file wstag246.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x16, 4, 449, 281, 7 }

Definition at line 165 of file wstag246.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x17, 5, 304, 369, 7 }

Definition at line 166 of file wstag246.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x2E, 6, 287, 433, 5 }

Definition at line 167 of file wstag246.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x2E, 6, 287, 433, 5 }

Definition at line 168 of file wstag246.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x34, 7, 480, 338, 3 }

Definition at line 169 of file wstag246.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x9D, 8, 480, 338, 3 }

Definition at line 170 of file wstag246.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x9D, 8, 480, 338, 3 }

Definition at line 171 of file wstag246.c.

◆ actor7

FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x9E, 9, 287, 433, 5 }

Definition at line 172 of file wstag246.c.

◆ actor8

FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x9E, 9, 287, 433, 5 }

Definition at line 173 of file wstag246.c.

◆ actor9

FieldActorEntry actor9 = { ((void *)0) , actor9Talks, 0xB7, 0xA, 359, 308, 7 }

Definition at line 174 of file wstag246.c.

◆ actor10

FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0xFF, 0xB, 144, 352, 1 }

Definition at line 175 of file wstag246.c.

◆ actor11

FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0xFF, 0xB, 152, 397, 7 }

Definition at line 176 of file wstag246.c.

◆ actor12

FieldActorEntry actor12 = { actor12Conditions, actor12Talks, 0xFF, 0xB, 152, 397, 7 }

Definition at line 177 of file wstag246.c.

◆ actor13

FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0xFF, 0xB, 144, 352, 1 }

Definition at line 178 of file wstag246.c.

◆ actor14

FieldActorEntry actor14 = { actor14Conditions, actor14Talks, 0x119, 0xC, 152, 397, 7 }

Definition at line 179 of file wstag246.c.

◆ actor15

FieldActorEntry actor15 = { actor15Conditions, actor15Talks, 0x119, 0xC, 152, 397, 7 }

Definition at line 180 of file wstag246.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag246.c:165
FieldActorEntry actor6
Definition wstag246.c:171
FieldActorEntry actor5
Definition wstag246.c:170
FieldActorEntry actor2
Definition wstag246.c:167
FieldActorEntry actor10
Definition wstag246.c:175
FieldActorEntry actor4
Definition wstag246.c:169
FieldActorEntry actor8
Definition wstag246.c:173
FieldActorEntry actor9
Definition wstag246.c:174
FieldActorEntry actor15
Definition wstag246.c:180
FieldActorEntry actor12
Definition wstag246.c:177
FieldActorEntry actor7
Definition wstag246.c:172
FieldActorEntry actor13
Definition wstag246.c:178
FieldActorEntry actor11
Definition wstag246.c:176
FieldActorEntry actor1
Definition wstag246.c:166
FieldActorEntry actor3
Definition wstag246.c:168
FieldActorEntry actor14
Definition wstag246.c:179

Definition at line 181 of file wstag246.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 0x11, 2, 0, 1, 4, 0, 384, 79, 0, 0 },
{ 1, 0, 0x40, 2, 0x11, 2, 0, 1, 4, 0, 492, 137, 0, 0 },
{ 1, 0, 0x40, 2, 0x11, 2, 0, 1, 4, 0, 548, 165, 0, 0 },
{ 1, 0x64, 0x40, 6, 5, 0, 0, 0, 0, 0, 304, 99, 0, 0 },
{ 1, 0x65, 0x40, 6, 6, 0, 0, 0, 0, 0, 64, 285, 0, 0 },
{ 1, 0, 0x40, 6, 7, 0, 0, 0, 0, 0, 485, 145, 0, 0 },
{ 1, 0, 0x40, 6, 7, 0, 0, 0, 0, 0, 541, 173, 0, 0 },
{ 1, 0, 0xA0, 4, 0, 0, 0, 0, 0, 0, 144, 257, 380, 0 },
{ 1, 0, 0x78, 4, 1, 0, 0, 0, 0, 0, 256, 257, 337, 0 },
{ 1, 0, 0x40, 4, 2, 0, 0, 0, 0, 0, 384, 262, 287, 0 },
{ 1, 0, 0x64, 4, 3, 0, 0, 0, 0, 0, 240, 73, 150, 0 },
{ 1, 0, 0x64, 4, 4, 0, 0, 0, 0, 0, 0, 255, 335, 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 200 of file wstag246.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x270, 0x1E0, 0x1DA, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x270, 0x240, 0x1AA, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x27D, 0x218, 0xE4, 3, 0x64, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x27D, 0x128, 0x19C, 3, 0x65, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 4, 0x11F, 0xBA, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 4, 0x110, 0xFE, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 215 of file wstag246.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 wstag246.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 224 of file wstag246.c.