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

WSTAG435: Gale Tower, Seiryu 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 wstag435.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_01)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_400 - 1)
 
#define STAGE_FILE   0x1C1
 
#define STAGE_ARCHIVE   0x3E0
 

Functions

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

Variables

s16 script950 []
 
ActorImage stageImages []
 
u16 actor1Talk0Conditions [] = { (( 0x1A ) << 8 | ( 1 )) , 0, 0xFFFF }
 
u16 actor1Talk1Conditions [] = { (( 0x1A ) << 8 | ( 1 )) , 1, 0xFFFF }
 
u16 actor1Talk1Actions [] = { (0x9000 | ( 0x37 )) , 1, (( 0x1A ) << 8 | ( 0xA )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
FieldTalk actor6Talks []
 
FieldTalk actor7Talks []
 
FieldTalk actor8Talks []
 
FieldTalk actor9Talks []
 
FieldTalk actor10Talks []
 
FieldTalk actor11Talks []
 
FieldTalk actor12Talks []
 
FieldTalk actor13Talks []
 
u16 actor0Conditions [] = { (0x6000 | ( STORY_GENJI_BEATEN )) , 1, 0xFFFF }
 
u16 actor1Conditions []
 
u16 actor2Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor3Conditions []
 
u16 actor4Conditions [] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF }
 
u16 actor5Conditions [] = { (0x7000 | ( 0x18 )) , 1, 0xFFFF }
 
u16 actor6Conditions [] = { (0x7000 | ( 0x17 )) , 1, 0xFFFF }
 
u16 actor7Conditions [] = { (0x7000 | ( 0x16 )) , 1, 0xFFFF }
 
u16 actor8Conditions [] = { (0x6000 | ( STORY_TEDDY_FOUND )) , 1, 0xFFFF }
 
u16 actor9Conditions [] = { (0x6000 | ( STORY_LOOKING_FOR_TEDDY )) , 1, 0xFFFF }
 
u16 actor10Conditions [] = { (0x7000 | ( 0x15 )) , 1, 0xFFFF }
 
u16 actor11Conditions [] = { (0x6000 | ( STORY_AGUMON_SUITS )) , 1, 0xFFFF }
 
u16 actor12Conditions [] = { (0x7000 | ( 0x3C )) , 1, 0xFFFF }
 
u16 actor13Conditions [] = { (0x6000 | ( STORY_TEDDY_FOUND )) , 1, 0xFFFF }
 
u16 actor14Conditions []
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x3E, 4, 256, 455, 1 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x3E, 4, 256, 455, 1 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x3E, 4, 255, 456, 1 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x3E, 4, 256, 455, 1 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x3E, 4, 256, 455, 1 }
 
FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x3E, 4, 256, 455, 1 }
 
FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x3E, 4, 256, 455, 1 }
 
FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x3E, 4, 256, 455, 1 }
 
FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x3E, 4, 256, 455, 1 }
 
FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x3E, 4, 256, 455, 1 }
 
FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x3E, 4, 256, 455, 1 }
 
FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x67, 5, 288, 408, 1 }
 
FieldActorEntry actor12 = { actor12Conditions, actor12Talks, 0x67, 5, 288, 408, 1 }
 
FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x67, 5, 288, 408, 1 }
 
FieldActorEntry actor14 = { actor14Conditions, ((void *)0) , 0x185, 6, 0, 0, 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

WSTAG435: Gale Tower, Seiryu City.

Definition in file wstag435.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_01)

Definition at line 17 of file wstag435.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_400 - 1)

Definition at line 18 of file wstag435.c.

◆ STAGE_FILE

#define STAGE_FILE   0x1C1

Definition at line 19 of file wstag435.c.

◆ STAGE_ARCHIVE

#define STAGE_ARCHIVE   0x3E0

Definition at line 20 of file wstag435.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map, actors and events, playing the ambience ENV_0008.

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.

< ENV_0008: the Gale Tower

< ENV_0008: the Gale Tower

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

Definition at line 23 of file wstag435.c.

Variable Documentation

◆ script950

s16 script950[]

Definition at line 42 of file wstag435.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, 0x162, 0x100, 0x88, 0, 0x150, 0x1FF },
{ 0x140, 0x100, 0x172, 0x100, 0xC8, 0, 0x160, 0x1FF },
{ 0x140, 0x100, 0x17A, 0x100, 0xE8, 0, 0x170, 0x1FF },
}

Definition at line 101 of file wstag435.c.

Referenced by setupStage().

◆ actor1Talk0Conditions

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

Definition at line 112 of file wstag435.c.

◆ actor1Talk1Conditions

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

Definition at line 113 of file wstag435.c.

◆ actor1Talk1Actions

u16 actor1Talk1Actions[] = { (0x9000 | ( 0x37 )) , 1, (( 0x1A ) << 8 | ( 0xA )) , 1, 0xFFFF }

Definition at line 114 of file wstag435.c.

◆ actor0Talks

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

Definition at line 115 of file wstag435.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ actor1Talk0Conditions, ((void *)0) , 0x6E },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk1Conditions[]
Definition wstag435.c:113
u16 actor1Talk0Conditions[]
Definition wstag435.c:112
u16 actor1Talk1Actions[]
Definition wstag435.c:114

Definition at line 119 of file wstag435.c.

◆ actor2Talks

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

Definition at line 124 of file wstag435.c.

◆ actor3Talks

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

Definition at line 128 of file wstag435.c.

◆ actor4Talks

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

Definition at line 132 of file wstag435.c.

◆ actor5Talks

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

Definition at line 136 of file wstag435.c.

◆ actor6Talks

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

Definition at line 140 of file wstag435.c.

◆ actor7Talks

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

Definition at line 144 of file wstag435.c.

◆ actor8Talks

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

Definition at line 148 of file wstag435.c.

◆ actor9Talks

FieldTalk actor9Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x6E },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 152 of file wstag435.c.

◆ actor10Talks

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

Definition at line 156 of file wstag435.c.

◆ actor11Talks

FieldTalk actor11Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x16F },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 160 of file wstag435.c.

◆ actor12Talks

FieldTalk actor12Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x16F },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 164 of file wstag435.c.

◆ actor13Talks

FieldTalk actor13Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x16F },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 168 of file wstag435.c.

◆ actor0Conditions

u16 actor0Conditions[] = { (0x6000 | ( STORY_GENJI_BEATEN )) , 1, 0xFFFF }

Definition at line 172 of file wstag435.c.

◆ actor1Conditions

u16 actor1Conditions[]
Initial value:
= {
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1,
(( 0x1A ) << 8 | ( 0xA )) , 0,
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 173 of file wstag435.c.

◆ actor2Conditions

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

Definition at line 178 of file wstag435.c.

◆ actor3Conditions

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

Definition at line 179 of file wstag435.c.

◆ actor4Conditions

u16 actor4Conditions[] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF }

Definition at line 184 of file wstag435.c.

◆ actor5Conditions

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

Definition at line 185 of file wstag435.c.

◆ actor6Conditions

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

Definition at line 186 of file wstag435.c.

◆ actor7Conditions

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

Definition at line 187 of file wstag435.c.

◆ actor8Conditions

u16 actor8Conditions[] = { (0x6000 | ( STORY_TEDDY_FOUND )) , 1, 0xFFFF }

Definition at line 188 of file wstag435.c.

◆ actor9Conditions

u16 actor9Conditions[] = { (0x6000 | ( STORY_LOOKING_FOR_TEDDY )) , 1, 0xFFFF }

Definition at line 189 of file wstag435.c.

◆ actor10Conditions

u16 actor10Conditions[] = { (0x7000 | ( 0x15 )) , 1, 0xFFFF }

Definition at line 190 of file wstag435.c.

◆ actor11Conditions

u16 actor11Conditions[] = { (0x6000 | ( STORY_AGUMON_SUITS )) , 1, 0xFFFF }

Definition at line 191 of file wstag435.c.

◆ actor12Conditions

u16 actor12Conditions[] = { (0x7000 | ( 0x3C )) , 1, 0xFFFF }

Definition at line 192 of file wstag435.c.

◆ actor13Conditions

u16 actor13Conditions[] = { (0x6000 | ( STORY_TEDDY_FOUND )) , 1, 0xFFFF }

Definition at line 193 of file wstag435.c.

◆ actor14Conditions

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

Definition at line 194 of file wstag435.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x3E, 4, 256, 455, 1 }

Definition at line 199 of file wstag435.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x3E, 4, 256, 455, 1 }

Definition at line 200 of file wstag435.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x3E, 4, 255, 456, 1 }

Definition at line 201 of file wstag435.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x3E, 4, 256, 455, 1 }

Definition at line 202 of file wstag435.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x3E, 4, 256, 455, 1 }

Definition at line 203 of file wstag435.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x3E, 4, 256, 455, 1 }

Definition at line 204 of file wstag435.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x3E, 4, 256, 455, 1 }

Definition at line 205 of file wstag435.c.

◆ actor7

FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x3E, 4, 256, 455, 1 }

Definition at line 206 of file wstag435.c.

◆ actor8

FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x3E, 4, 256, 455, 1 }

Definition at line 207 of file wstag435.c.

◆ actor9

FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x3E, 4, 256, 455, 1 }

Definition at line 208 of file wstag435.c.

◆ actor10

FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x3E, 4, 256, 455, 1 }

Definition at line 209 of file wstag435.c.

◆ actor11

FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x67, 5, 288, 408, 1 }

Definition at line 210 of file wstag435.c.

◆ actor12

FieldActorEntry actor12 = { actor12Conditions, actor12Talks, 0x67, 5, 288, 408, 1 }

Definition at line 211 of file wstag435.c.

◆ actor13

FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x67, 5, 288, 408, 1 }

Definition at line 212 of file wstag435.c.

◆ actor14

FieldActorEntry actor14 = { actor14Conditions, ((void *)0) , 0x185, 6, 0, 0, 1 }

Definition at line 213 of file wstag435.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag435.c:199
FieldActorEntry actor6
Definition wstag435.c:205
FieldActorEntry actor5
Definition wstag435.c:204
FieldActorEntry actor2
Definition wstag435.c:201
FieldActorEntry actor10
Definition wstag435.c:209
FieldActorEntry actor4
Definition wstag435.c:203
FieldActorEntry actor8
Definition wstag435.c:207
FieldActorEntry actor9
Definition wstag435.c:208
FieldActorEntry actor12
Definition wstag435.c:211
FieldActorEntry actor7
Definition wstag435.c:206
FieldActorEntry actor13
Definition wstag435.c:212
FieldActorEntry actor11
Definition wstag435.c:210
FieldActorEntry actor1
Definition wstag435.c:200
FieldActorEntry actor3
Definition wstag435.c:202
FieldActorEntry actor14
Definition wstag435.c:213

Definition at line 214 of file wstag435.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0xD0, 2, 0x32, 0, 0, 0, 0, 0, 51, 95, 0, 0 },
{ 1, 0, 0xD0, 2, 0x32, 0, 0, 0, 0, 0, 300, 55, 0, 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 232 of file wstag435.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x22E, 0x350, 0x230, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 237 of file wstag435.c.

Referenced by setupStage().

◆ stageFuncs

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

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 950, script950, ( ( 0x136 - 1) << 16 | ( 0x2D )), ((void *)0) , ((void *)0) },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
s16 script950[]
Definition wstag435.c:42

Definition at line 244 of file wstag435.c.

Referenced by setupStage().