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

WSTAG931: Wedge's Shop, Amaterasu City, in the extra chapter. More...

#include "common.h"
#include "field/stage.h"
#include "common/update_stage.inc.c"
#include "common/start_stage.inc.c"
Include dependency graph for wstag931.c:

Go to the source code of this file.

Macros

#define STAGE_CHILDREN_SIZE   4
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)
 
#define STAGE_FILE   0x8F5
 
#define STAGE_FILE_8   0x1A6
 
#define EVENT_TEXT_FILE   EXTRA_TEXT
 

Functions

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

Variables

s16 script1614 []
 Defined below, after the tables that use them.
 
ActorImage stageImages []
 
u16 actor0Talk0Actions [] = { 0x7A11, 1, 0xFFFF }
 
u16 actor1Talk0Actions [] = { 0x7A0F, 1, 0xFFFF }
 
u16 actor3Talk0Actions [] = { 0x7A10, 1, 0xFFFF }
 
u16 actor4Talk0Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x25 )), 0, 0xFFFF }
 
u16 actor4Talk1Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x25 )), 1, (( 0x18 ) << 8 | ( 7 )) , 0, 0xFFFF }
 
u16 actor4Talk1Actions [] = { (0x9000 | ( 0x71 )) , 1, (( 0x18 ) << 8 | ( 7 )) , 1, 0xFFFF }
 
u16 actor4Talk2Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x25 )), 1, (( 0x18 ) << 8 | ( 7 )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
u16 actor4Conditions [] = { (( 0x18 ) << 8 | ( 7 )) , 0, 0xFFFF }
 
u16 actor5Conditions [] = { (( 0x18 ) << 8 | ( 7 )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x16, 4, 449, 281, 7 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x17, 5, 304, 369, 7 }
 
FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x34, 6, 287, 432, 3 }
 
FieldActorEntry actor3 = { ((void *)0) , actor3Talks, 0xB7, 7, 359, 308, 7 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0xFF, 8, 152, 397, 7 }
 
FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0xFF, 8, 144, 352, 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.
 
FieldEvent stageEvents []
 

Detailed Description

WSTAG931: Wedge's Shop, Amaterasu City, in the extra chapter.

The European version's: in its extra chapter (STORY_EXTRA), mode 636 starts it instead of WSTAG246.

Definition in file wstag931.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   4

Definition at line 11 of file wstag931.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)

Definition at line 15 of file wstag931.c.

◆ STAGE_FILE

#define STAGE_FILE   0x8F5

Definition at line 16 of file wstag931.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x1A6

Definition at line 17 of file wstag931.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   EXTRA_TEXT

Definition at line 136 of file wstag931.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 24 of file wstag931.c.

Variable Documentation

◆ script1614

s16 script1614
Initial value:
= {
0x600, 1 , 2 ,
0x102, 2 , 0xB0 , 0x198 , 3 ,
0x100, 0xFF , 0x98 , 0x18D ,
0x101, 0xFF , 1 , 7 ,
0x101, 0x32D , 0x337 , 2 ,
0x302, 2 ,
0x101, 2 , 1 , 3 ,
0x300, 0x1E ,
0x101, 0x323 , 0x325 , 0xFF ,
0x300, 0x3C ,
0x101, 0x323 , 0x326 , 0xFF ,
0x300, 0x1E ,
0x200, 0 , 1 , 0xFF , 2 ,
0x301 ,
0x300, 0x1E ,
0x102, 0xFF , 0x68 , 0x174 , 3 ,
0x302, 0xFF ,
0x102, 0xFF , 0x90 , 0x160 , 5 ,
0x302, 0xFF ,
0x101, 0xFF , 1 , 1 ,
0x300, 0x1E ,
0 ,
}

Defined below, after the tables that use them.

Definition at line 141 of file wstag931.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 },
{ 0x1C0, 0x100, 0x1F4, 0x140, 0x2D0, 0x40, 0x150, 0x1FF },
{ 0x140, 0x100, 0x162, 0x1DC, 0x88, 0xDC, 0x160, 0x1FF },
{ 0x1C0, 0x100, 0x1CE, 0x1A4, 0x238, 0xA4, 0x170, 0x1FF },
{ 0x140, 0x100, 0x174, 0x1DC, 0xD0, 0xDC, 0x150, 0x1FE },
{ 0x1C0, 0x100, 0x1D6, 0x1A9, 0x258, 0xA9, 0x160, 0x1FE },
}

Definition at line 46 of file wstag931.c.

Referenced by setupStage().

◆ actor0Talk0Actions

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

Definition at line 59 of file wstag931.c.

◆ actor1Talk0Actions

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

Definition at line 60 of file wstag931.c.

◆ actor3Talk0Actions

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

Definition at line 61 of file wstag931.c.

◆ actor4Talk0Conditions

u16 actor4Talk0Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0x25 )), 0, 0xFFFF }

Definition at line 62 of file wstag931.c.

◆ actor4Talk1Conditions

u16 actor4Talk1Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0x25 )), 1, (( 0x18 ) << 8 | ( 7 )) , 0, 0xFFFF }

Definition at line 63 of file wstag931.c.

◆ actor4Talk1Actions

u16 actor4Talk1Actions[] = { (0x9000 | ( 0x71 )) , 1, (( 0x18 ) << 8 | ( 7 )) , 1, 0xFFFF }

Definition at line 64 of file wstag931.c.

◆ actor4Talk2Conditions

u16 actor4Talk2Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0x25 )), 1, (( 0x18 ) << 8 | ( 7 )) , 1, 0xFFFF }

Definition at line 65 of file wstag931.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x33 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag931.c:59

Definition at line 66 of file wstag931.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , actor1Talk0Actions, 0x32 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk0Actions[]
Definition wstag931.c:60

Definition at line 70 of file wstag931.c.

◆ actor2Talks

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

Definition at line 74 of file wstag931.c.

◆ actor3Talks

FieldTalk actor3Talks[]
Initial value:
= {
{ ((void *)0) , actor3Talk0Actions, 0x34 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor3Talk0Actions[]
Definition wstag931.c:61

Definition at line 78 of file wstag931.c.

◆ actor4Talks

FieldTalk actor4Talks[]
Initial value:
= {
{ actor4Talk0Conditions, ((void *)0) , 0x83 },
{ actor4Talk2Conditions, ((void *)0) , 0x85 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor4Talk1Actions[]
Definition wstag931.c:64
u16 actor4Talk1Conditions[]
Definition wstag931.c:63
u16 actor4Talk0Conditions[]
Definition wstag931.c:62
u16 actor4Talk2Conditions[]
Definition wstag931.c:65

Definition at line 82 of file wstag931.c.

◆ actor5Talks

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

Definition at line 88 of file wstag931.c.

◆ actor4Conditions

u16 actor4Conditions[] = { (( 0x18 ) << 8 | ( 7 )) , 0, 0xFFFF }

Definition at line 92 of file wstag931.c.

◆ actor5Conditions

u16 actor5Conditions[] = { (( 0x18 ) << 8 | ( 7 )) , 1, 0xFFFF }

Definition at line 93 of file wstag931.c.

◆ actor0

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

Definition at line 94 of file wstag931.c.

◆ actor1

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

Definition at line 95 of file wstag931.c.

◆ actor2

FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x34, 6, 287, 432, 3 }

Definition at line 96 of file wstag931.c.

◆ actor3

FieldActorEntry actor3 = { ((void *)0) , actor3Talks, 0xB7, 7, 359, 308, 7 }

Definition at line 97 of file wstag931.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0xFF, 8, 152, 397, 7 }

Definition at line 98 of file wstag931.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0xFF, 8, 144, 352, 1 }

Definition at line 99 of file wstag931.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag931.c:94
FieldActorEntry actor5
Definition wstag931.c:99
FieldActorEntry actor2
Definition wstag931.c:96
FieldActorEntry actor4
Definition wstag931.c:98
FieldActorEntry actor1
Definition wstag931.c:95
FieldActorEntry actor3
Definition wstag931.c:97

Definition at line 100 of file wstag931.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, 0, 0x40, 6, 3, 1, 3, 8, 4, 0, 485, 145, 0, 0 },
{ 1, 0, 0x40, 6, 9, 1, 9, 0xE, 4, 0, 541, 172, 0, 0 },
{ 1, 0x64, 0x40, 6, 0x12, 0, 0, 0, 0, 0, 304, 99, 0, 0 },
{ 1, 0x65, 0x40, 6, 0x13, 0, 0, 0, 0, 0, 64, 285, 0, 0 },
{ 1, 0, 0xA0, 4, 0, 0, 0, 0, 0, 0, 144, 257, 380, 0 },
{ 1, 0, 0xA0, 4, 1, 0, 0, 0, 0, 0, 256, 257, 337, 0 },
{ 1, 0, 0xA0, 4, 2, 0, 0, 0, 0, 0, 384, 261, 287, 0 },
{ 1, 0, 0x60, 4, 0xF, 0, 0, 0, 0, 0, 240, 73, 150, 0 },
{ 1, 0, 0x60, 4, 0x10, 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 109 of file wstag931.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 124 of file wstag931.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 wstag931.c:24

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

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1614, script1614, ( ( 0x159 - 1) << 16 | ( 7 )), ((void *)0) , ((void *)0) },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
s16 script1614[]
Defined below, after the tables that use them.
Definition wstag931.c:141

Definition at line 137 of file wstag931.c.

Referenced by setupStage().