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

WSTAG928: Amaterasu Inn 1F, 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 wstag928.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)
 
#define STAGE_FILE   0x8EF
 
#define STAGE_FILE_8   0x1A2
 
#define EVENT_TEXT_FILE   EXTRA_TEXT
 

Functions

void endEvent1612 (void)
 After event 1612, with Guardromon: applies 0x7C0C, an action that does nothing (applyAction's mode changes 0x7C are only 0 and 1)
 
void setupStage (void)
 Sets the stage up: its map, actors and events, playing SHOP1BGM.
 

Variables

s16 script1612 []
 Defined below, after the tables that use them.
 
ActorImage stageImages []
 
u16 actor0Talk0Actions [] = { 0x7A28, 1, 0xFFFF }
 
u16 actor1Talk0Actions [] = { (0x9000 | ( 0x70 )) , 1, 0xFFFF }
 
u16 actor2Talk0Conditions [] = { (( 0x18 ) << 8 | ( 5 )) , 1, 0xFFFF }
 
u16 actor2Talk1Conditions [] = { (( 0x18 ) << 8 | ( 5 )) , 0, (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor2Talk1Actions [] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor2Talk2Conditions []
 
u16 actor2Talk2Actions [] = { (( 0 ) << 8 | ( 1 )) , 1, 0xFFFF }
 
u16 actor2Talk3Conditions []
 
u16 actor2Talk3Actions [] = { (( 0 ) << 8 | ( 2 )) , 1, 0xFFFF }
 
u16 actor2Talk4Conditions []
 
u16 actor2Talk4Actions [] = { (( 0 ) << 8 | ( 3 )) , 1, 0xFFFF }
 
u16 actor2Talk5Conditions []
 
u16 actor2Talk5Actions [] = { (( 0 ) << 8 | ( 4 )) , 1, 0xFFFF }
 
u16 actor2Talk6Conditions []
 
u16 actor2Talk6Actions []
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x14, 4, 188, 154, 7 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x15, 5, 175, 192, 7 }
 
FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x3F, 6, 145, 289, 7 }
 
FieldActorEntry actor3 = { ((void *)0) , actor3Talks, 0x177, 7, 88, 332, 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

WSTAG928: Amaterasu Inn 1F, Amaterasu City, in the extra chapter.

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

Definition in file wstag928.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)

Definition at line 22 of file wstag928.c.

◆ STAGE_FILE

#define STAGE_FILE   0x8EF

Definition at line 23 of file wstag928.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x1A2

Definition at line 24 of file wstag928.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   EXTRA_TEXT

Definition at line 180 of file wstag928.c.

Function Documentation

◆ endEvent1612()

void endEvent1612 ( void  )

After event 1612, with Guardromon: applies 0x7C0C, an action that does nothing (applyAction's mode changes 0x7C are only 0 and 1)

Definition at line 17 of file wstag928.c.

◆ 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 31 of file wstag928.c.

Variable Documentation

◆ script1612

s16 script1612
Initial value:
= {
0x102, 2 , 0xCF , 0xD0 , 3 ,
0x100, 0x15 , 0xAF , 0xC0 ,
0x101, 0x15 , 1 , 7 ,
0x101, 0x32D , 0x337 , 2 ,
0x302, 2 ,
0x101, 2 , 1 , 3 ,
0x300, 0x24 ,
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, 0xC0A , 0 , 0 , 0 ,
0 ,
}

Defined below, after the tables that use them.

Definition at line 185 of file wstag928.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, 0x14A, 0x18A, 0x28, 0x8A, 0x160, 0x1FF },
{ 0x140, 0x100, 0x152, 0x187, 0x48, 0x87, 0x170, 0x1FF },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0x140, 0x100, 0x166, 0x18B, 0x98, 0x8B, 0x160, 0x1FE },
}

Definition at line 53 of file wstag928.c.

Referenced by setupStage().

◆ actor0Talk0Actions

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

Definition at line 65 of file wstag928.c.

◆ actor1Talk0Actions

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

Definition at line 66 of file wstag928.c.

◆ actor2Talk0Conditions

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

Definition at line 67 of file wstag928.c.

◆ actor2Talk1Conditions

u16 actor2Talk1Conditions[] = { (( 0x18 ) << 8 | ( 5 )) , 0, (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 68 of file wstag928.c.

◆ actor2Talk1Actions

u16 actor2Talk1Actions[] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 69 of file wstag928.c.

◆ actor2Talk2Conditions

u16 actor2Talk2Conditions[]
Initial value:
= {
(( 0x18 ) << 8 | ( 5 )) , 0,
(( 0 ) << 8 | ( 0 )) , 1,
(( 0 ) << 8 | ( 1 )) , 0,
0xFFFF ,
}

Definition at line 70 of file wstag928.c.

◆ actor2Talk2Actions

u16 actor2Talk2Actions[] = { (( 0 ) << 8 | ( 1 )) , 1, 0xFFFF }

Definition at line 76 of file wstag928.c.

◆ actor2Talk3Conditions

u16 actor2Talk3Conditions[]
Initial value:
= {
(( 0x18 ) << 8 | ( 5 )) , 0,
(( 0 ) << 8 | ( 0 )) , 1,
(( 0 ) << 8 | ( 1 )) , 1,
(( 0 ) << 8 | ( 2 )) , 0,
0xFFFF ,
}

Definition at line 77 of file wstag928.c.

◆ actor2Talk3Actions

u16 actor2Talk3Actions[] = { (( 0 ) << 8 | ( 2 )) , 1, 0xFFFF }

Definition at line 84 of file wstag928.c.

◆ actor2Talk4Conditions

u16 actor2Talk4Conditions[]
Initial value:
= {
(( 0x18 ) << 8 | ( 5 )) , 0,
(( 0 ) << 8 | ( 0 )) , 1,
(( 0 ) << 8 | ( 1 )) , 1,
(( 0 ) << 8 | ( 2 )) , 1,
(( 0 ) << 8 | ( 3 )) , 0,
0xFFFF ,
}

Definition at line 85 of file wstag928.c.

◆ actor2Talk4Actions

u16 actor2Talk4Actions[] = { (( 0 ) << 8 | ( 3 )) , 1, 0xFFFF }

Definition at line 93 of file wstag928.c.

◆ actor2Talk5Conditions

u16 actor2Talk5Conditions[]
Initial value:
= {
(( 0x18 ) << 8 | ( 5 )) , 0,
(( 0 ) << 8 | ( 0 )) , 1,
(( 0 ) << 8 | ( 1 )) , 1,
(( 0 ) << 8 | ( 2 )) , 1,
(( 0 ) << 8 | ( 4 )) , 0,
(( 0 ) << 8 | ( 3 )) , 1,
0xFFFF ,
}

Definition at line 94 of file wstag928.c.

◆ actor2Talk5Actions

u16 actor2Talk5Actions[] = { (( 0 ) << 8 | ( 4 )) , 1, 0xFFFF }

Definition at line 103 of file wstag928.c.

◆ actor2Talk6Conditions

u16 actor2Talk6Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 3 )) , 1,
(( 0x18 ) << 8 | ( 5 )) , 0,
(( 0 ) << 8 | ( 0 )) , 1,
(( 0 ) << 8 | ( 1 )) , 1,
(( 0 ) << 8 | ( 2 )) , 1,
(( 0 ) << 8 | ( 4 )) , 1,
0xFFFF ,
}

Definition at line 104 of file wstag928.c.

◆ actor2Talk6Actions

u16 actor2Talk6Actions[]
Initial value:
= {
(0x7000 | ( 0x13 )) , 1,
(( 0x18 ) << 8 | ( 5 )) , 1,
(0x7000 | ( 0x92 )) , 1,
0xFFFF ,
}

Definition at line 113 of file wstag928.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x2B },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag928.c:65

Definition at line 119 of file wstag928.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , actor1Talk0Actions, 0x2C },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk0Actions[]
Definition wstag928.c:66

Definition at line 123 of file wstag928.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ actor2Talk0Conditions, ((void *)0) , 0x31 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk1Conditions[]
Definition wstag928.c:68
u16 actor2Talk5Actions[]
Definition wstag928.c:103
u16 actor2Talk3Conditions[]
Definition wstag928.c:77
u16 actor2Talk4Actions[]
Definition wstag928.c:93
u16 actor2Talk1Actions[]
Definition wstag928.c:69
u16 actor2Talk2Conditions[]
Definition wstag928.c:70
u16 actor2Talk3Actions[]
Definition wstag928.c:84
u16 actor2Talk6Actions[]
Definition wstag928.c:113
u16 actor2Talk5Conditions[]
Definition wstag928.c:94
u16 actor2Talk0Conditions[]
Definition wstag928.c:67
u16 actor2Talk2Actions[]
Definition wstag928.c:76
u16 actor2Talk6Conditions[]
Definition wstag928.c:104
u16 actor2Talk4Conditions[]
Definition wstag928.c:85

Definition at line 127 of file wstag928.c.

◆ actor3Talks

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

Definition at line 137 of file wstag928.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x14, 4, 188, 154, 7 }

Definition at line 141 of file wstag928.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x15, 5, 175, 192, 7 }

Definition at line 142 of file wstag928.c.

◆ actor2

FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x3F, 6, 145, 289, 7 }

Definition at line 143 of file wstag928.c.

◆ actor3

FieldActorEntry actor3 = { ((void *)0) , actor3Talks, 0x177, 7, 88, 332, 7 }

Definition at line 144 of file wstag928.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag928.c:141
FieldActorEntry actor2
Definition wstag928.c:143
FieldActorEntry actor1
Definition wstag928.c:142
FieldActorEntry actor3
Definition wstag928.c:144

Definition at line 145 of file wstag928.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 6, 2, 0, 1, 4, 0, 78, 77, 0, 0 },
{ 1, 0, 0x40, 2, 6, 2, 0, 1, 4, 0, 97, 115, 0, 0 },
{ 1, 0, 0x40, 2, 6, 2, 0, 1, 4, 0, 135, 231, 0, 0 },
{ 1, 0, 0x40, 2, 6, 2, 0, 1, 4, 0, 141, 44, 0, 0 },
{ 1, 0, 0x40, 2, 6, 2, 0, 1, 4, 0, 261, 63, 0, 0 },
{ 1, 0, 0x40, 2, 6, 2, 0, 1, 4, 0, 326, 95, 0, 0 },
{ 1, 0, 0x40, 2, 7, 2, 0, 1, 4, 0, 165, 76, 0, 0 },
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 256, 151, 184, 0 },
{ 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 215, 20, 86, 0 },
{ 1, 0, 0x40, 4, 2, 0, 0, 0, 0, 0, 144, 185, 200, 0 },
{ 1, 0, 0x40, 4, 3, 0, 0, 0, 0, 0, 125, 175, 194, 0 },
{ 1, 0, 0x40, 4, 4, 0, 0, 0, 0, 0, 148, 127, 167, 0 },
{ 1, 0, 0x40, 4, 5, 0, 0, 0, 0, 0, 240, 127, 162, 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 152 of file wstag928.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x27B, 0x96, 0x114, 5, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x270, 0x2A0, 0x17A, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x27E, 0x15A, 0xBA, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x27A, 0x146, 0xBA, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 4, 0xC8, 0xEC, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 4, 0xB8, 0x132, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 168 of file wstag928.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 wstag928.c:31

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 177 of file wstag928.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1612, script1612, ( ( 0x159 - 1) << 16 | ( 6 )), ((void *)0) , endEvent1612 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void endEvent1612(void)
After event 1612, with Guardromon: applies 0x7C0C, an action that does nothing (applyAction's mode ch...
Definition wstag928.c:17
s16 script1612[]
Defined below, after the tables that use them.
Definition wstag928.c:185

Definition at line 181 of file wstag928.c.

Referenced by setupStage().