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

WSTAG441: South Station, South 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 wstag441.c:

Go to the source code of this file.

Macros

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

Functions

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

Variables

const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0x00 }
 the color the setup copies to FIELDSTG_state.spriteColor
 
ActorImage stageImages []
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
FieldTalk actor6Talks []
 
FieldTalk actor7Talks []
 
u16 actor0Conditions []
 
u16 actor1Conditions []
 
u16 actor2Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor3Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor4Conditions []
 
u16 actor5Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor6Conditions []
 
u16 actor7Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x31, 4, 145, 329, 5 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x32, 5, 177, 313, 7 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x39, 6, 177, 313, 7 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x3A, 7, 145, 329, 5 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x9D, 8, 177, 313, 7 }
 
FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x9D, 8, 177, 313, 7 }
 
FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x9E, 9, 145, 329, 5 }
 
FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x9E, 9, 145, 329, 5 }
 
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

WSTAG441: South Station, South Sector.

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

Definition in file wstag441.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)

Definition at line 17 of file wstag441.c.

◆ STAGE_FILE

#define STAGE_FILE   0x6FD

Definition at line 18 of file wstag441.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map and actors, playing BGM_0012; 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.

< BGM_0012: the East and South Stations

< BGM_0012: the East and South Stations

< 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 24 of file wstag441.c.

Variable Documentation

◆ stageColor

const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0x00 }

the color the setup copies to FIELDSTG_state.spriteColor

the color the setup copies to FIELDSTG_state.spriteColor

It starts the stage, before its jump tables: in wstag924.c GCC would align them to 8 bytes after it, so it is a file of its own, linked first

Definition at line 12 of file wstag441.c.

Referenced by setupStage().

◆ 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, 0x168, 0x130, 0xA0, 0x30, 0x170, 0x1FE },
{ 0x140, 0x100, 0x140, 0x14A, 0, 0x4A, 0x160, 0x1FD },
{ 0x140, 0x100, 0x150, 0x14A, 0x40, 0x4A, 0x170, 0x1FD },
{ 0x140, 0x100, 0x158, 0x150, 0x60, 0x50, 0x160, 0x1FC },
{ 0x140, 0x100, 0x160, 0x150, 0x80, 0x50, 0x170, 0x1FC },
{ 0x140, 0x100, 0x170, 0x150, 0xC0, 0x50, 0x160, 0x1FB },
}

Definition at line 47 of file wstag441.c.

Referenced by setupStage().

◆ actor0Talks

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

Definition at line 61 of file wstag441.c.

◆ actor1Talks

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

Definition at line 65 of file wstag441.c.

◆ actor2Talks

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

Definition at line 69 of file wstag441.c.

◆ actor3Talks

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

Definition at line 73 of file wstag441.c.

◆ actor4Talks

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

Definition at line 77 of file wstag441.c.

◆ actor5Talks

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

Definition at line 81 of file wstag441.c.

◆ actor6Talks

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

Definition at line 85 of file wstag441.c.

◆ actor7Talks

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

Definition at line 89 of file wstag441.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 93 of file wstag441.c.

◆ actor1Conditions

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

Definition at line 98 of file wstag441.c.

◆ actor2Conditions

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

Definition at line 103 of file wstag441.c.

◆ actor3Conditions

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

Definition at line 104 of file wstag441.c.

◆ actor4Conditions

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

Definition at line 105 of file wstag441.c.

◆ actor5Conditions

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

Definition at line 110 of file wstag441.c.

◆ actor6Conditions

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

Definition at line 111 of file wstag441.c.

◆ actor7Conditions

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

Definition at line 116 of file wstag441.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x31, 4, 145, 329, 5 }

Definition at line 117 of file wstag441.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x32, 5, 177, 313, 7 }

Definition at line 118 of file wstag441.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x39, 6, 177, 313, 7 }

Definition at line 119 of file wstag441.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x3A, 7, 145, 329, 5 }

Definition at line 120 of file wstag441.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x9D, 8, 177, 313, 7 }

Definition at line 121 of file wstag441.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x9D, 8, 177, 313, 7 }

Definition at line 122 of file wstag441.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x9E, 9, 145, 329, 5 }

Definition at line 123 of file wstag441.c.

◆ actor7

FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x9E, 9, 145, 329, 5 }

Definition at line 124 of file wstag441.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag441.c:117
FieldActorEntry actor6
Definition wstag441.c:123
FieldActorEntry actor5
Definition wstag441.c:122
FieldActorEntry actor2
Definition wstag441.c:119
FieldActorEntry actor4
Definition wstag441.c:121
FieldActorEntry actor7
Definition wstag441.c:124
FieldActorEntry actor1
Definition wstag441.c:118
FieldActorEntry actor3
Definition wstag441.c:120

Definition at line 125 of file wstag441.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 6, 0x32, 2, 0, 5, 9, 0, 435, 247, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 1, 0x33, 0x38, 9, 0, 443, 254, 0, 0 },
{ 1, 0, 0x40, 6, 0x3A, 1, 0x3A, 0x3F, 6, 0, 377, 384, 0, 0 },
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 482, 177, 200, 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 136 of file wstag441.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2A1, 0x208, 0x9C, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 143 of file wstag441.c.

Referenced by setupStage().

◆ stageFuncs

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