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

WSTAG925: Login Room, Amaterasu City, in the extra chapter. More...

Include dependency graph for wstag925.c:

Go to the source code of this file.

Macros

#define STAGE_CHILDREN_SIZE   4
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)
 
#define STAGE_FILE   0x8E9
 
#define STAGE_FILE_8   0x19E
 
#define EVENT_TEXT_FILE   EXTRA_TEXT
 

Functions

void updateStage (StageTask *task, void **children)
 Creates the event object of flag 0x40CD while it is clear.
 
void endEvent1600 (void)
 After event 1600, with the Tour Leader (Digimon Online's practice): heals the party's HP and MP (the European special action 0x53) and keeps it from playing again.
 
void setupStage (void)
 Sets the stage up: its map, actors and events, playing the ambience ENV_0011.
 
void updateTileEffect (StageTileEffect *task)
 Moves the map objects with animations 1 to 3 to (x, y) and plays their animations once with a sound, then hides them and kills itself.
 
void * createCommand855 (s32 id)
 Creates the StageTileEffect of updateTileEffect at (0x150, 0x112) with the given id.
 

Variables

AnimFrame * updateTileEffectFrames []
 Defined below, after the code that uses them.
 
s8 tileEffectSortY []
 
s8 tileEffectY []
 
s16 script1600 []
 Defined below, after the tables that use them.
 
ActorImage stageImages []
 
FieldTalk actor1Talks []
 
u16 actor0Conditions [] = { (( 0x40 ) << 8 | ( 0xCD )) , 0, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, ((void *)0) , 1, 4, 0, 0, 1 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0xD, 5, 265, 397, 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.
 
FieldEvent stageEvents []
 
AnimFrame updateTileEffectFrames_0 []
 
AnimFrame updateTileEffectFrames_2 []
 
AnimFrame updateTileEffectFrames_1 []
 

Detailed Description

WSTAG925: Login Room, Amaterasu City, in the extra chapter.

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

Definition in file wstag925.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   4

Definition at line 31 of file wstag925.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)

Definition at line 45 of file wstag925.c.

◆ STAGE_FILE

#define STAGE_FILE   0x8E9

Definition at line 46 of file wstag925.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x19E

Definition at line 47 of file wstag925.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   EXTRA_TEXT

Definition at line 210 of file wstag925.c.

Function Documentation

◆ updateStage()

void updateStage ( StageTask *  task,
void **  children 
)

Creates the event object of flag 0x40CD while it is clear.

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

Definition at line 15 of file wstag925.c.

Here is the call graph for this function:

◆ endEvent1600()

void endEvent1600 ( void  )

After event 1600, with the Tour Leader (Digimon Online's practice): heals the party's HP and MP (the European special action 0x53) and keeps it from playing again.

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

< SPECIAL_CONDITIONS entry 0x53

Definition at line 39 of file wstag925.c.

◆ setupStage()

void setupStage ( void  )

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

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_0011: Asuka's Digimon Lab and Login Room

< ENV_0011: Asuka's Digimon Lab and Login Room

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

Definition at line 54 of file wstag925.c.

◆ updateTileEffect()

void updateTileEffect ( StageTileEffect *  task)

Moves the map objects with animations 1 to 3 to (x, y) and plays their animations once with a sound, then hides them and kills itself.

Definition at line 78 of file wstag925.c.

Referenced by createCommand855().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createCommand855()

void * createCommand855 ( s32  id)

Creates the StageTileEffect of updateTileEffect at (0x150, 0x112) with the given id.

Definition at line 156 of file wstag925.c.

Here is the call graph for this function:

Variable Documentation

◆ updateTileEffectFrames

AnimFrame* updateTileEffectFrames[]
Initial value:
= {
}
AnimFrame updateTileEffectFrames_0[]
Definition wstag925.c:264
AnimFrame updateTileEffectFrames_2[]
Definition wstag925.c:268
AnimFrame updateTileEffectFrames_1[]
Definition wstag925.c:275

Defined below, after the code that uses them.

Definition at line 281 of file wstag925.c.

Referenced by updateTileEffect().

◆ tileEffectSortY

s8 tileEffectSortY[]
Initial value:
= {
30, 30, 30, 0,
}

Definition at line 284 of file wstag925.c.

Referenced by updateTileEffect().

◆ tileEffectY

s8 tileEffectY[]
Initial value:
= {
0, -47, -47,
}

Definition at line 287 of file wstag925.c.

Referenced by updateTileEffect().

◆ script1600

s16 script1600

Defined below, after the tables that use them.

Definition at line 215 of file wstag925.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, 0x1B8, 0x28, 0xB8, 0x170, 0x1FE },
{ 0x140, 0x100, 0x170, 0x1B0, 0xC0, 0xB0, 0x160, 0x1FD },
}

Definition at line 167 of file wstag925.c.

Referenced by setupStage().

◆ actor1Talks

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

Definition at line 177 of file wstag925.c.

◆ actor0Conditions

u16 actor0Conditions[] = { (( 0x40 ) << 8 | ( 0xCD )) , 0, 0xFFFF }

Definition at line 181 of file wstag925.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, ((void *)0) , 1, 4, 0, 0, 1 }

Definition at line 182 of file wstag925.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0xD, 5, 265, 397, 3 }

Definition at line 183 of file wstag925.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag925.c:182
FieldActorEntry actor1
Definition wstag925.c:183

Definition at line 184 of file wstag925.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 0, 1, 0x50, 6, 0x46, 0, 0, 0, 0, 0, 112, 274, 0, 0 },
{ 1, 0, 0x40, 6, 0x3F, 1, 0x3F, 0x42, 6, 0, 116, 258, 0, 0 },
{ 1, 0, 0x40, 6, 0x3F, 1, 0x3F, 0x42, 6, 0, 228, 282, 0, 0 },
{ 1, 0, 0x40, 6, 0x3F, 1, 0x3F, 0x42, 6, 0, 340, 258, 0, 0 },
{ 1, 0, 0x40, 6, 0x3F, 1, 0x3F, 0x42, 6, 0, 355, 346, 0, 0 },
{ 0, 2, 0x50, 4, 0x48, 0, 0, 0, 0, 0, 112, 227, 301, 0 },
{ 0, 3, 0x50, 4, 0x55, 0, 0, 0, 0, 0, 112, 227, 294, 0 },
{ 1, 0, 0x40, 4, 0x3B, 1, 0x3B, 0x3E, 6, 0, 116, 274, 300, 0 },
{ 1, 0, 0x40, 4, 0x3B, 1, 0x3B, 0x3E, 6, 0, 228, 298, 324, 0 },
{ 1, 0, 0x40, 4, 0x3B, 1, 0x3B, 0x3E, 6, 0, 340, 274, 300, 0 },
{ 1, 0, 0x40, 4, 0x3B, 1, 0x3B, 0x3E, 6, 0, 355, 362, 388, 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 189 of file wstag925.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x273, 0x2DA, 0x17E, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 203 of file wstag925.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_0011.
Definition wstag925.c:54

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 207 of file wstag925.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1600, script1600, ( ( 0x159 - 1) << 16 | ( 0 )), ((void *)0) , endEvent1600 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
s16 script1600[]
Defined below, after the tables that use them.
Definition wstag925.c:215
void endEvent1600(void)
After event 1600, with the Tour Leader (Digimon Online's practice): heals the party's HP and MP (the ...
Definition wstag925.c:39

Definition at line 211 of file wstag925.c.

Referenced by setupStage().

◆ updateTileEffectFrames_0

AnimFrame updateTileEffectFrames_0[]
Initial value:
= {
{ 70, 4 }, { 71, 4 }, { 70, 4 }, { 71, 4 },
{ 255, 0x3E7 },
}

Definition at line 264 of file wstag925.c.

◆ updateTileEffectFrames_2

AnimFrame updateTileEffectFrames_2[]
Initial value:
= {
{ 0x12C, 56 }, { 85, 6 }, { 86, 6 }, { 87, 4 },
{ 88, 4 }, { 89, 4 }, { 90, 4 }, { 88, 4 },
{ 89, 4 }, { 90, 4 }, { 88, 4 }, { 89, 4 },
{ 90, 4 }, { 88, 4 }, { 89, 4 }, { 90, 4 },
{ 88, 4 }, { 89, 4 }, { 90, 4 }, { 255, 0x3E7 },
}

Definition at line 268 of file wstag925.c.

◆ updateTileEffectFrames_1

AnimFrame updateTileEffectFrames_1[]
Initial value:
= {
{ 0x12C, 16 }, { 72, 4 }, { 73, 4 }, { 74, 4 },
{ 73, 4 }, { 75, 6 }, { 76, 6 }, { 77, 14 },
{ 78, 114 }, { 79, 6 }, { 80, 6 }, { 81, 6 },
{ 82, 6 }, { 83, 6 }, { 84, 8 }, { 255, 0x3E7 },
}

Definition at line 275 of file wstag925.c.