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

WSTAG621: Secret Room, West 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 wstag621.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)
 
#define STAGE_FILE   0x617
 

Functions

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

Variables

ActorImage stageImages []
 
u16 actor0Talk0Conditions [] = { (0x7000 | ( 0x1D )) , 1, 0xFFFF }
 
u16 actor0Talk1Conditions [] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF }
 
u16 actor0Talk2Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor1Talk0Conditions [] = { (0x7000 | ( 0x1D )) , 1, 0xFFFF }
 
u16 actor1Talk1Conditions [] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF }
 
u16 actor1Talk2Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor2Talk0Conditions [] = { (0x7000 | ( 0x1D )) , 1, 0xFFFF }
 
u16 actor2Talk1Conditions [] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF }
 
u16 actor2Talk2Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor9Talk0Conditions [] = { (0x8000 | ( 3 ) << 9 | ( 0x68 )), 1, 0xFFFF }
 
u16 actor9Talk1Conditions [] = { (0x8000 | ( 3 ) << 9 | ( 0x68 )), 0, (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor9Talk1Actions [] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor9Talk2Conditions [] = { (0x8000 | ( 3 ) << 9 | ( 0x68 )), 0, (( 0 ) << 8 | ( 0 )) , 1, (0x8000 | ( 2 ) << 9 | ( 0x64 )), 0, 0xFFFF }
 
u16 actor9Talk3Conditions [] = { (0x8000 | ( 3 ) << 9 | ( 0x68 )), 0, (( 0 ) << 8 | ( 0 )) , 1, (0x8000 | ( 2 ) << 9 | ( 0x64 )), 1, 0xFFFF }
 
u16 actor9Talk3Actions []
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor6Talks []
 
FieldTalk actor7Talks []
 
FieldTalk actor8Talks []
 
FieldTalk actor9Talks []
 
u16 actor0Conditions [] = { (0x7000 | ( 0x1E )) , 1, 0xFFFF }
 
u16 actor1Conditions [] = { (0x7000 | ( 0x1E )) , 1, 0xFFFF }
 
u16 actor2Conditions [] = { (0x7000 | ( 0x1E )) , 1, 0xFFFF }
 
u16 actor6Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor7Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor8Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor9Conditions []
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x20, 4, 385, 417, 3 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x24, 5, 449, 360, 5 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x59, 6, 515, 414, 7 }
 
FieldActorEntry actor3 = { ((void *)0) , ((void *)0) , 0x9A, 7, 641, 350, 0 }
 
FieldActorEntry actor4 = { ((void *)0) , ((void *)0) , 0x9B, 8, 593, 325, 1 }
 
FieldActorEntry actor5 = { ((void *)0) , ((void *)0) , 0x9C, 9, 545, 301, 2 }
 
FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x9D, 0xA, 385, 417, 3 }
 
FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x9E, 0xB, 449, 360, 5 }
 
FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x9F, 0xC, 515, 414, 7 }
 
FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0xAC, 0xD, 400, 232, 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

WSTAG621: Secret Room, West Sector.

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

Definition in file wstag621.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)

Definition at line 16 of file wstag621.c.

◆ STAGE_FILE

#define STAGE_FILE   0x617

Definition at line 17 of file wstag621.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map and actors, playing BGM_0019.

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.

< BGM_0019: the Secret Room, the rebels' hideout

< BGM_0019: the Secret Room, the rebels' hideout

< a cell's value: a direction (3 bits) and a StageSlot (5)

Definition at line 20 of file wstag621.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 },
{ 0x140, 0x100, 0x174, 0x150, 0xD0, 0x50, 0x160, 0x1F6 },
{ 0x140, 0x100, 0x14C, 0x178, 0x30, 0x78, 0x160, 0x1F5 },
{ 0x140, 0x100, 0x154, 0x178, 0x50, 0x78, 0x170, 0x1F5 },
{ 0x140, 0x100, 0x16C, 0x190, 0xB0, 0x90, 0x140, 0x1F4 },
{ 0x140, 0x100, 0x140, 0x198, 0, 0x98, 0x160, 0x1F4 },
{ 0x140, 0x100, 0x174, 0x198, 0xD0, 0x98, 0x170, 0x1F4 },
{ 0x140, 0x100, 0x148, 0x1A0, 0x20, 0xA0, 0x140, 0x1F3 },
{ 0x140, 0x100, 0x150, 0x1A0, 0x40, 0xA0, 0x150, 0x1F3 },
{ 0x140, 0x100, 0x158, 0x1A0, 0x60, 0xA0, 0x160, 0x1F3 },
{ 0x140, 0x100, 0x15C, 0x178, 0x70, 0x78, 0x170, 0x1F3 },
}

Definition at line 38 of file wstag621.c.

Referenced by setupStage().

◆ actor0Talk0Conditions

u16 actor0Talk0Conditions[] = { (0x7000 | ( 0x1D )) , 1, 0xFFFF }

Definition at line 56 of file wstag621.c.

◆ actor0Talk1Conditions

u16 actor0Talk1Conditions[] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF }

Definition at line 57 of file wstag621.c.

◆ actor0Talk2Conditions

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

Definition at line 58 of file wstag621.c.

◆ actor1Talk0Conditions

u16 actor1Talk0Conditions[] = { (0x7000 | ( 0x1D )) , 1, 0xFFFF }

Definition at line 59 of file wstag621.c.

◆ actor1Talk1Conditions

u16 actor1Talk1Conditions[] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF }

Definition at line 60 of file wstag621.c.

◆ actor1Talk2Conditions

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

Definition at line 61 of file wstag621.c.

◆ actor2Talk0Conditions

u16 actor2Talk0Conditions[] = { (0x7000 | ( 0x1D )) , 1, 0xFFFF }

Definition at line 62 of file wstag621.c.

◆ actor2Talk1Conditions

u16 actor2Talk1Conditions[] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF }

Definition at line 63 of file wstag621.c.

◆ actor2Talk2Conditions

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

Definition at line 64 of file wstag621.c.

◆ actor9Talk0Conditions

u16 actor9Talk0Conditions[] = { (0x8000 | ( 3 ) << 9 | ( 0x68 )), 1, 0xFFFF }

Definition at line 65 of file wstag621.c.

◆ actor9Talk1Conditions

u16 actor9Talk1Conditions[] = { (0x8000 | ( 3 ) << 9 | ( 0x68 )), 0, (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 66 of file wstag621.c.

◆ actor9Talk1Actions

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

Definition at line 67 of file wstag621.c.

◆ actor9Talk2Conditions

u16 actor9Talk2Conditions[] = { (0x8000 | ( 3 ) << 9 | ( 0x68 )), 0, (( 0 ) << 8 | ( 0 )) , 1, (0x8000 | ( 2 ) << 9 | ( 0x64 )), 0, 0xFFFF }

Definition at line 68 of file wstag621.c.

◆ actor9Talk3Conditions

u16 actor9Talk3Conditions[] = { (0x8000 | ( 3 ) << 9 | ( 0x68 )), 0, (( 0 ) << 8 | ( 0 )) , 1, (0x8000 | ( 2 ) << 9 | ( 0x64 )), 1, 0xFFFF }

Definition at line 69 of file wstag621.c.

◆ actor9Talk3Actions

u16 actor9Talk3Actions[]
Initial value:
= {
(0x8000 | ( 3 ) << 9 | ( 0x68 )), 1,
(0x8000 | ( 3 ) << 9 | ( 0x67 )), 0,
(0x8000 | ( 2 ) << 9 | ( 0x64 )), 0,
(0x7000 | ( 0x13 )) , 1,
0xFFFF ,
}

Definition at line 70 of file wstag621.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ actor0Talk0Conditions, ((void *)0) , 0x11F },
{ actor0Talk1Conditions, ((void *)0) , 0x120 },
{ actor0Talk2Conditions, ((void *)0) , 0x127 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Conditions[]
Definition wstag621.c:56
u16 actor0Talk1Conditions[]
Definition wstag621.c:57
u16 actor0Talk2Conditions[]
Definition wstag621.c:58

Definition at line 77 of file wstag621.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ actor1Talk0Conditions, ((void *)0) , 0x122 },
{ actor1Talk1Conditions, ((void *)0) , 0x123 },
{ actor1Talk2Conditions, ((void *)0) , 0x128 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk1Conditions[]
Definition wstag621.c:60
u16 actor1Talk0Conditions[]
Definition wstag621.c:59
u16 actor1Talk2Conditions[]
Definition wstag621.c:61

Definition at line 83 of file wstag621.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ actor2Talk0Conditions, ((void *)0) , 0x125 },
{ actor2Talk1Conditions, ((void *)0) , 0x126 },
{ actor2Talk2Conditions, ((void *)0) , 0x129 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk1Conditions[]
Definition wstag621.c:63
u16 actor2Talk2Conditions[]
Definition wstag621.c:64
u16 actor2Talk0Conditions[]
Definition wstag621.c:62

Definition at line 89 of file wstag621.c.

◆ actor6Talks

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

Definition at line 95 of file wstag621.c.

◆ actor7Talks

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

Definition at line 99 of file wstag621.c.

◆ actor8Talks

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

Definition at line 103 of file wstag621.c.

◆ actor9Talks

FieldTalk actor9Talks[]
Initial value:
= {
{ actor9Talk0Conditions, ((void *)0) , 0x2FE },
{ actor9Talk2Conditions, ((void *)0) , 0x300 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor9Talk1Actions[]
Definition wstag621.c:67
u16 actor9Talk0Conditions[]
Definition wstag621.c:65
u16 actor9Talk1Conditions[]
Definition wstag621.c:66
u16 actor9Talk3Actions[]
Definition wstag621.c:70
u16 actor9Talk2Conditions[]
Definition wstag621.c:68
u16 actor9Talk3Conditions[]
Definition wstag621.c:69

Definition at line 107 of file wstag621.c.

◆ actor0Conditions

u16 actor0Conditions[] = { (0x7000 | ( 0x1E )) , 1, 0xFFFF }

Definition at line 114 of file wstag621.c.

◆ actor1Conditions

u16 actor1Conditions[] = { (0x7000 | ( 0x1E )) , 1, 0xFFFF }

Definition at line 115 of file wstag621.c.

◆ actor2Conditions

u16 actor2Conditions[] = { (0x7000 | ( 0x1E )) , 1, 0xFFFF }

Definition at line 116 of file wstag621.c.

◆ actor6Conditions

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

Definition at line 117 of file wstag621.c.

◆ actor7Conditions

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

Definition at line 118 of file wstag621.c.

◆ actor8Conditions

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

Definition at line 119 of file wstag621.c.

◆ actor9Conditions

u16 actor9Conditions[]
Initial value:
= {
(0x7000 | ( 0x42 )) , 1,
(0x7000 | ( 0x4A )) , 1,
(0x8000 | ( 3 ) << 9 | ( 0x67 )), 1,
(0x8000 | ( 3 ) << 9 | ( 0x68 )), 0,
0xFFFF ,
}

Definition at line 120 of file wstag621.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x20, 4, 385, 417, 3 }

Definition at line 127 of file wstag621.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x24, 5, 449, 360, 5 }

Definition at line 128 of file wstag621.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x59, 6, 515, 414, 7 }

Definition at line 129 of file wstag621.c.

◆ actor3

FieldActorEntry actor3 = { ((void *)0) , ((void *)0) , 0x9A, 7, 641, 350, 0 }

Definition at line 130 of file wstag621.c.

◆ actor4

FieldActorEntry actor4 = { ((void *)0) , ((void *)0) , 0x9B, 8, 593, 325, 1 }

Definition at line 131 of file wstag621.c.

◆ actor5

FieldActorEntry actor5 = { ((void *)0) , ((void *)0) , 0x9C, 9, 545, 301, 2 }

Definition at line 132 of file wstag621.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x9D, 0xA, 385, 417, 3 }

Definition at line 133 of file wstag621.c.

◆ actor7

FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x9E, 0xB, 449, 360, 5 }

Definition at line 134 of file wstag621.c.

◆ actor8

FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x9F, 0xC, 515, 414, 7 }

Definition at line 135 of file wstag621.c.

◆ actor9

FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0xAC, 0xD, 400, 232, 7 }

Definition at line 136 of file wstag621.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag621.c:127
FieldActorEntry actor6
Definition wstag621.c:133
FieldActorEntry actor5
Definition wstag621.c:132
FieldActorEntry actor2
Definition wstag621.c:129
FieldActorEntry actor4
Definition wstag621.c:131
FieldActorEntry actor8
Definition wstag621.c:135
FieldActorEntry actor9
Definition wstag621.c:136
FieldActorEntry actor7
Definition wstag621.c:134
FieldActorEntry actor1
Definition wstag621.c:128
FieldActorEntry actor3
Definition wstag621.c:130

Definition at line 137 of file wstag621.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 0x40, 2, 0, 3, 6, 0, 521, 212, 0, 0 },
{ 1, 0, 0x40, 2, 0x40, 2, 0, 3, 6, 0, 569, 236, 0, 0 },
{ 1, 0, 0x40, 2, 0x41, 2, 0, 3, 6, 0, 617, 260, 0, 0 },
{ 1, 0, 0x40, 2, 0x43, 2, 0, 5, 6, 0, 392, 163, 0, 0 },
{ 1, 0, 0x40, 2, 0x44, 2, 0, 5, 6, 0, 369, 205, 0, 0 },
{ 1, 0, 0x40, 6, 0x3F, 2, 0, 3, 6, 0, 360, 389, 0, 0 },
{ 1, 0, 0x40, 6, 0x42, 2, 0, 5, 6, 0, 361, 186, 0, 0 },
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 377, 371, 399, 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 150 of file wstag621.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2BE, 0x2D4, 0xC4, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 5, 0x1D0, 0xF8, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 5, 0x1E0, 0x150, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 161 of file wstag621.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map and actors, playing BGM_0019.
Definition wstag621.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 167 of file wstag621.c.