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

WSTAG958: Qing Long Tower, Qing Long 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 wstag958.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)
 
#define STAGE_FILE   0x92B
 
#define STAGE_FILE_8   0x221
 
#define EVENT_TEXT_FILE   EXTRA_TEXT
 

Functions

void endEvent1646 (void)
 After event 1646, with Guardromon: applies 0x7C0E, an action that does nothing (applyAction's mode changes 0x7C are only 0 and 1)
 
void setupStage (void)
 Sets the stage up: its map, actors and events, playing SHOP1BGM.
 

Variables

s16 script1646 []
 Defined below, after the tables that use them.
 
ActorImage stageImages []
 
u16 actor0Talk0Actions [] = { (0x9000 | ( 0x79 )) , 1, 0xFFFF }
 
u16 actor1Talk0Actions [] = { 0x7C00, 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x15, 4, 408, 414, 1 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x18, 5, 320, 515, 7 }
 
FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x30, 6, 171, 403, 7 }
 
FieldActorEntry actor3 = { ((void *)0) , actor3Talks, 0x32, 7, 513, 241, 5 }
 
FieldActorEntry actor4 = { ((void *)0) , actor4Talks, 0x39, 8, 352, 488, 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

WSTAG958: Qing Long Tower, Qing Long City, in the extra chapter.

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

Definition in file wstag958.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)

Definition at line 22 of file wstag958.c.

◆ STAGE_FILE

#define STAGE_FILE   0x92B

Definition at line 23 of file wstag958.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x221

Definition at line 24 of file wstag958.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   EXTRA_TEXT

Definition at line 128 of file wstag958.c.

Function Documentation

◆ endEvent1646()

void endEvent1646 ( void  )

After event 1646, with Guardromon: applies 0x7C0E, an action that does nothing (applyAction's mode changes 0x7C are only 0 and 1)

Definition at line 17 of file wstag958.c.

◆ setupStage()

void setupStage ( void  )

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

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.

< SHOP1BGM: the inns, shops and towers

< SHOP1BGM: the inns, shops and towers

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

Definition at line 31 of file wstag958.c.

Variable Documentation

◆ script1646

s16 script1646
Initial value:
= {
0x102, 2 , 0x178 , 0x1AC , 5 ,
0x100, 0x15 , 0x198 , 0x19E ,
0x101, 0x15 , 1 , 1 ,
0x101, 0x32D , 0x337 , 2 ,
0x302, 2 ,
0x101, 2 , 1 , 5 ,
0x300, 0x24 ,
0x200, 0 , 1 , 0x15 , 0 ,
0x301 ,
0x300, 0x1E ,
0x101, 0x15 , 0x36 , 1 ,
0x101, 0x32D , 0x375 , 2 ,
0x303, 0x15 ,
0x101, 0x15 , 0x37 , 1 ,
0x300, 0x5A ,
0x304, 0xC0C , 0 , 0 , 0 ,
0 ,
}

Defined below, after the tables that use them.

Definition at line 133 of file wstag958.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, 0x166, 0x16E, 0x98, 0x6E, 0x160, 0x1FD },
{ 0x140, 0x100, 0x172, 0x16E, 0xC8, 0x6E, 0x170, 0x1FD },
{ 0x180, 0x100, 0x1A6, 0x100, 0x198, 0, 0x150, 0x1FC },
{ 0x180, 0x100, 0x1AE, 0x100, 0x1B8, 0, 0x160, 0x1FC },
{ 0x140, 0x100, 0x176, 0x148, 0xD8, 0x48, 0x170, 0x1FC },
}

Definition at line 53 of file wstag958.c.

Referenced by setupStage().

◆ actor0Talk0Actions

u16 actor0Talk0Actions[] = { (0x9000 | ( 0x79 )) , 1, 0xFFFF }

Definition at line 66 of file wstag958.c.

◆ actor1Talk0Actions

u16 actor1Talk0Actions[] = { 0x7C00, 1, 0xFFFF }

Definition at line 67 of file wstag958.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x2C },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag958.c:66

Definition at line 68 of file wstag958.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , actor1Talk0Actions, 0x7B },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk0Actions[]
Definition wstag958.c:67

Definition at line 72 of file wstag958.c.

◆ actor2Talks

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

Definition at line 76 of file wstag958.c.

◆ actor3Talks

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

Definition at line 80 of file wstag958.c.

◆ actor4Talks

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

Definition at line 84 of file wstag958.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x15, 4, 408, 414, 1 }

Definition at line 88 of file wstag958.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x18, 5, 320, 515, 7 }

Definition at line 89 of file wstag958.c.

◆ actor2

FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x30, 6, 171, 403, 7 }

Definition at line 90 of file wstag958.c.

◆ actor3

FieldActorEntry actor3 = { ((void *)0) , actor3Talks, 0x32, 7, 513, 241, 5 }

Definition at line 91 of file wstag958.c.

◆ actor4

FieldActorEntry actor4 = { ((void *)0) , actor4Talks, 0x39, 8, 352, 488, 3 }

Definition at line 92 of file wstag958.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag958.c:88
FieldActorEntry actor2
Definition wstag958.c:90
FieldActorEntry actor4
Definition wstag958.c:92
FieldActorEntry actor1
Definition wstag958.c:89
FieldActorEntry actor3
Definition wstag958.c:91

Definition at line 93 of file wstag958.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 6, 0x32, 2, 0, 1, 0xA, 0, 283, 466, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 2, 0, 1, 0xA, 0, 428, 134, 0, 0 },
{ 1, 0, 0x40, 6, 0x34, 2, 0, 1, 0xA, 0, 307, 484, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 1, 0xA, 0, 287, 459, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 1, 0xA, 0, 297, 464, 0, 0 },
{ 1, 0, 0x40, 6, 4, 1, 4, 9, 4, 0, 350, 338, 0, 0 },
{ 1, 0, 0x40, 6, 0xA, 1, 0xA, 0xD, 4, 0, 293, 279, 0, 0 },
{ 1, 0, 0x40, 6, 0xE, 1, 0xE, 0x11, 4, 0, 298, 381, 0, 0 },
{ 1, 0, 0x40, 6, 0x12, 1, 0x12, 0x15, 4, 0, 293, 427, 0, 0 },
{ 1, 0, 0x40, 4, 0x35, 2, 0, 1, 0xA, 0, 333, 483, 503, 0 },
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 501, 393, 406, 0 },
{ 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 451, 436, 456, 0 },
{ 1, 0, 0x40, 4, 2, 0, 0, 0, 0, 0, 436, 464, 482, 0 },
{ 1, 0, 0x40, 4, 3, 0, 0, 0, 0, 0, 320, 474, 503, 0 },
{ 1, 0, 0x40, 4, 0x16, 0, 0, 0, 0, 0, 438, 274, 292, 0 },
{ 1, 0, 0x40, 4, 0x17, 0, 0, 0, 0, 0, 464, 277, 302, 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 101 of file wstag958.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x29C, 0x2F8, 0x104, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x29C, 0x1E8, 0xA4, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 120 of file wstag958.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map, actors and events, playing SHOP1BGM.
Definition wstag958.c:31

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 125 of file wstag958.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1646, script1646, ( ( 0x159 - 1) << 16 | ( 0xF )), ((void *)0) , endEvent1646 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void endEvent1646(void)
After event 1646, with Guardromon: applies 0x7C0E, an action that does nothing (applyAction's mode ch...
Definition wstag958.c:17
s16 script1646[]
Defined below, after the tables that use them.
Definition wstag958.c:133

Definition at line 129 of file wstag958.c.

Referenced by setupStage().