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

WSTAG926: Arena Front Desk, Amaterasu City, in the extra chapter. More...

#include "common.h"
#include "field/stage.h"
#include "common/update_stage.inc.c"
#include "common/start_stage.inc.c"
Include dependency graph for wstag926.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)
 
#define STAGE_FILE   0x8EB
 
#define STAGE_FILE_8   0x1A0
 
#define EVENT_TEXT_FILE   EXTRA_TEXT
 

Functions

void setupStage (void)
 Sets the stage up: its map, actors and events, playing KANRIBGM.
 
void updateTileTimer (StageTileTimer *task)
 Shows the map object with animation 1 and moves it and the player down a pixel a frame for 150 frames.
 
void * createCommand854 (s32 arg)
 Command 854 of the event scripts: the lift that takes the player down to the Arena in event 1606 (updateTileTimer)
 

Variables

s16 script1606 []
 Defined below, after the tables that use them.
 
ActorImage stageImages []
 
u16 actor0Talk0Conditions [] = { (0x7000 | ( 0x54 )) , 0, 0xFFFF }
 
u16 actor0Talk1Conditions []
 
u16 actor0Talk1Actions [] = { (0x9000 | ( 0x6F )) , 1, 0xFFFF }
 
u16 actor0Talk2Conditions []
 
FieldTalk actor0Talks []
 
FieldTalk actor2Talks []
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x20, 4, 272, 344, 7 }
 
FieldActorEntry actor1 = { ((void *)0) , ((void *)0) , 0x24, 5, 240, 329, 3 }
 
FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x175, 6, 203, 218, 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 []
 

Detailed Description

WSTAG926: Arena Front Desk, Amaterasu City, in the extra chapter.

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

Definition in file wstag926.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)

Definition at line 14 of file wstag926.c.

◆ STAGE_FILE

#define STAGE_FILE   0x8EB

Definition at line 15 of file wstag926.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x1A0

Definition at line 16 of file wstag926.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   EXTRA_TEXT

Definition at line 163 of file wstag926.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

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

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)

Definition at line 23 of file wstag926.c.

◆ updateTileTimer()

void updateTileTimer ( StageTileTimer *  task)

Shows the map object with animation 1 and moves it and the player down a pixel a frame for 150 frames.

< every character (FIELDSTG_createActor)

Definition at line 43 of file wstag926.c.

Referenced by createCommand854().

Here is the caller graph for this function:

◆ createCommand854()

void * createCommand854 ( s32  arg)

Command 854 of the event scripts: the lift that takes the player down to the Arena in event 1606 (updateTileTimer)

Definition at line 81 of file wstag926.c.

Here is the call graph for this function:

Variable Documentation

◆ script1606

s16 script1606

Defined below, after the tables that use them.

Definition at line 168 of file wstag926.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, 0x174, 0x148, 0xD0, 0x48, 0x170, 0x1FF },
{ 0x140, 0x100, 0x15C, 0x161, 0x70, 0x61, 0x160, 0x1FE },
{ 0x140, 0x100, 0x16C, 0x161, 0xB0, 0x61, 0x170, 0x1FE },
}

Definition at line 88 of file wstag926.c.

Referenced by setupStage().

◆ actor0Talk0Conditions

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

Definition at line 99 of file wstag926.c.

◆ actor0Talk1Conditions

u16 actor0Talk1Conditions[]
Initial value:
= {
(0x7000 | ( 0x54 )) , 1,
(( 0x10 ) << 8 | ( 0xC )) , 0,
0xFFFF ,
}

Definition at line 100 of file wstag926.c.

◆ actor0Talk1Actions

u16 actor0Talk1Actions[] = { (0x9000 | ( 0x6F )) , 1, 0xFFFF }

Definition at line 105 of file wstag926.c.

◆ actor0Talk2Conditions

u16 actor0Talk2Conditions[]
Initial value:
= {
(0x7000 | ( 0x54 )) , 1,
(( 0x10 ) << 8 | ( 0xC )) , 1,
0xFFFF ,
}

Definition at line 106 of file wstag926.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ actor0Talk0Conditions, ((void *)0) , 0x27 },
{ actor0Talk2Conditions, ((void *)0) , 0x29 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Conditions[]
Definition wstag926.c:99
u16 actor0Talk1Conditions[]
Definition wstag926.c:100
u16 actor0Talk1Actions[]
Definition wstag926.c:105
u16 actor0Talk2Conditions[]
Definition wstag926.c:106

Definition at line 111 of file wstag926.c.

◆ actor2Talks

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

Definition at line 117 of file wstag926.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x20, 4, 272, 344, 7 }

Definition at line 121 of file wstag926.c.

◆ actor1

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

Definition at line 122 of file wstag926.c.

◆ actor2

FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x175, 6, 203, 218, 3 }

Definition at line 123 of file wstag926.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag926.c:121
FieldActorEntry actor2
Definition wstag926.c:123
FieldActorEntry actor1
Definition wstag926.c:122

Definition at line 124 of file wstag926.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, 1, 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 130 of file wstag926.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 156 of file wstag926.c.

Referenced by setupStage().

◆ stageFuncs

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

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1606, script1606, ( ( 0x159 - 1) << 16 | ( 3 )), ((void *)0) , ((void *)0) },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
s16 script1606[]
Defined below, after the tables that use them.
Definition wstag926.c:168

Definition at line 164 of file wstag926.c.

Referenced by setupStage().