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

WSTAG231: Arena Front Desk, 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 wstag231.c:

Go to the source code of this file.

Macros

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

Functions

void setupStage (void)
 Sets the stage up: its map and actors, playing KANRIBGM; BGM_0029 instead except at STORY_PRESIDENT_ARRESTED once flag 0x1A0A is set.
 

Variables

ActorImage stageImages []
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
FieldTalk actor6Talks []
 
FieldTalk actor7Talks []
 
FieldTalk actor8Talks []
 
FieldTalk actor10Talks []
 
u16 actor0Conditions []
 
u16 actor1Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor2Conditions []
 
u16 actor3Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor4Conditions []
 
u16 actor5Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor6Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor7Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor8Conditions []
 
u16 actor9Conditions []
 
u16 actor10Conditions []
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x20, 4, 272, 344, 7 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x20, 4, 272, 344, 7 }
 
FieldActorEntry actor2 = { actor2Conditions, ((void *)0) , 0x24, 5, 240, 329, 3 }
 
FieldActorEntry actor3 = { actor3Conditions, ((void *)0) , 0x24, 5, 240, 329, 3 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x25, 6, 237, 202, 3 }
 
FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x2D, 7, 288, 176, 1 }
 
FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x30, 8, 352, 239, 1 }
 
FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x36, 9, 237, 202, 3 }
 
FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x9D, 0xA, 272, 344, 7 }
 
FieldActorEntry actor9 = { actor9Conditions, ((void *)0) , 0x9E, 0xB, 240, 329, 3 }
 
FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x9F, 0xC, 237, 202, 3 }
 
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

WSTAG231: Arena Front Desk, Amaterasu City.

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

Definition in file wstag231.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_03)

Definition at line 16 of file wstag231.c.

◆ STAGE_FILE

#define STAGE_FILE   0x4B4

Definition at line 17 of file wstag231.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map and actors, playing KANRIBGM; BGM_0029 instead except at STORY_PRESIDENT_ARRESTED once flag 0x1A0A is set.

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.

< KANRIBGM: the cities' Main Lobby, Admin Center, Digimon Arena, Master Room

< KANRIBGM: the cities' Main Lobby, Admin Center, Digimon Arena, Master Room

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

< 0x1A 0x00-0x40: FLAGS_00, GAME.flags02-flags40

< BGM_0029: the cities and their streets instead of their music while the story is at a crisis (Knightmon reprogrammed, the A.o.A's headquarters, the Amaterasu server's Oinkmon)

< BGM_0029: the cities and their streets instead of their music while the story is at a crisis (Knightmon reprogrammed, the A.o.A's headquarters, the Amaterasu server's Oinkmon)

Definition at line 23 of file wstag231.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, 0x15C, 0x161, 0x70, 0x61, 0x170, 0x1FF },
{ 0x140, 0x100, 0x164, 0x161, 0x90, 0x61, 0x160, 0x1FE },
{ 0x140, 0x100, 0x174, 0x148, 0xD0, 0x48, 0x170, 0x1FE },
{ 0x140, 0x100, 0x170, 0x198, 0xC0, 0x98, 0x150, 0x1FD },
{ 0x140, 0x100, 0x16C, 0x161, 0xB0, 0x61, 0x160, 0x1FD },
{ 0x140, 0x100, 0x140, 0x175, 0, 0x75, 0x170, 0x1FD },
{ 0x140, 0x100, 0x150, 0x175, 0x40, 0x75, 0x150, 0x1FC },
{ 0x140, 0x100, 0x174, 0x178, 0xD0, 0x78, 0x160, 0x1FC },
{ 0x140, 0x100, 0x158, 0x189, 0x60, 0x89, 0x170, 0x1FC },
}

Definition at line 45 of file wstag231.c.

Referenced by setupStage().

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x1AC },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 62 of file wstag231.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x1B0 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 66 of file wstag231.c.

◆ actor4Talks

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

Definition at line 70 of file wstag231.c.

◆ actor5Talks

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

Definition at line 74 of file wstag231.c.

◆ actor6Talks

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

Definition at line 78 of file wstag231.c.

◆ actor7Talks

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

Definition at line 82 of file wstag231.c.

◆ actor8Talks

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

Definition at line 86 of file wstag231.c.

◆ actor10Talks

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

Definition at line 90 of file wstag231.c.

◆ actor0Conditions

u16 actor0Conditions[]
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 94 of file wstag231.c.

◆ actor1Conditions

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

Definition at line 99 of file wstag231.c.

◆ actor2Conditions

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

Definition at line 100 of file wstag231.c.

◆ actor3Conditions

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

Definition at line 105 of file wstag231.c.

◆ actor4Conditions

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

Definition at line 106 of file wstag231.c.

◆ actor5Conditions

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

Definition at line 111 of file wstag231.c.

◆ actor6Conditions

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

Definition at line 112 of file wstag231.c.

◆ actor7Conditions

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

Definition at line 113 of file wstag231.c.

◆ actor8Conditions

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

Definition at line 114 of file wstag231.c.

◆ actor9Conditions

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

Definition at line 119 of file wstag231.c.

◆ actor10Conditions

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

Definition at line 124 of file wstag231.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x20, 4, 272, 344, 7 }

Definition at line 129 of file wstag231.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x20, 4, 272, 344, 7 }

Definition at line 130 of file wstag231.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, ((void *)0) , 0x24, 5, 240, 329, 3 }

Definition at line 131 of file wstag231.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, ((void *)0) , 0x24, 5, 240, 329, 3 }

Definition at line 132 of file wstag231.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x25, 6, 237, 202, 3 }

Definition at line 133 of file wstag231.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x2D, 7, 288, 176, 1 }

Definition at line 134 of file wstag231.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x30, 8, 352, 239, 1 }

Definition at line 135 of file wstag231.c.

◆ actor7

FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x36, 9, 237, 202, 3 }

Definition at line 136 of file wstag231.c.

◆ actor8

FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x9D, 0xA, 272, 344, 7 }

Definition at line 137 of file wstag231.c.

◆ actor9

FieldActorEntry actor9 = { actor9Conditions, ((void *)0) , 0x9E, 0xB, 240, 329, 3 }

Definition at line 138 of file wstag231.c.

◆ actor10

FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x9F, 0xC, 237, 202, 3 }

Definition at line 139 of file wstag231.c.

◆ stageActors

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

Definition at line 140 of file wstag231.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 3, 0, 0, 0, 0, 0, 192, 256, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 1, 4, 0, 144, 104, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 1, 4, 0, 168, 92, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 1, 4, 0, 224, 64, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 2, 0, 0xB, 8, 0, 127, 112, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 2, 0, 0xB, 8, 0, 127, 144, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 2, 0, 0xB, 8, 0, 159, 96, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 2, 0, 0xB, 8, 0, 159, 128, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 2, 0, 0xB, 8, 0, 191, 80, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 2, 0, 0xB, 8, 0, 191, 112, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 2, 0, 0xB, 8, 0, 223, 64, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 2, 0, 0xB, 8, 0, 223, 96, 0, 0 },
{ 1, 0, 0x40, 6, 0x34, 2, 0, 0xB, 8, 0, 196, 289, 0, 0 },
{ 1, 0, 0x40, 6, 0x34, 2, 0, 0xB, 8, 0, 226, 274, 0, 0 },
{ 1, 0, 0x40, 6, 0x35, 2, 0, 0xB, 8, 0, 212, 266, 0, 0 },
{ 1, 0, 0x40, 6, 0x35, 2, 0, 0xB, 8, 0, 212, 281, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 0xB, 8, 0, 196, 275, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 0xB, 8, 0, 226, 260, 0, 0 },
{ 1, 0, 0x40, 6, 0x37, 1, 0x37, 0x39, 0xA, 0, 200, 290, 0, 0 },
{ 1, 0, 0x40, 6, 2, 0, 0, 0, 0, 0, 256, 336, 0, 0 },
{ 1, 0, 0x40, 4, 0x3A, 1, 0x3A, 0x3C, 0xA, 0, 256, 286, 315, 0 },
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 304, 312, 329, 0 },
{ 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 256, 280, 315, 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 154 of file wstag231.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x273, 0x200, 0x11C, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 180 of file wstag231.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map and actors, playing KANRIBGM; BGM_0029 instead except at STORY_PRESIDENT_A...
Definition wstag231.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 184 of file wstag231.c.