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

WSTAG957: Zephyr 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 wstag957.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)
 
#define STAGE_FILE   0x929
 
#define STAGE_FILE_8   0x24C
 

Functions

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

Variables

ActorImage stageImages []
 
u16 actor0Talk0Actions [] = { 0x7A2A, 1, 0xFFFF }
 
u16 actor1Talk0Actions [] = { 0x7A15, 1, 0xFFFF }
 
u16 actor2Talk0Actions [] = { 0x7A14, 1, 0xFFFF }
 
u16 actor3Talk0Actions [] = { 0x7A47, 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor6Talks []
 
u16 actor3Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 1, 0xFFFF }
 
u16 actor4Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 0, 0xFFFF }
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x14, 4, 345, 197, 7 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x16, 5, 408, 341, 7 }
 
FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x17, 6, 330, 380, 7 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0xCE, 7, 128, 201, 7 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0xCE, 7, 128, 201, 7 }
 
FieldActorEntry actor5 = { ((void *)0) , ((void *)0) , 0xDB, 8, 345, 213, 7 }
 
FieldActorEntry actor6 = { ((void *)0) , actor6Talks, 0x179, 9, 384, 418, 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.
 

Detailed Description

WSTAG957: Zephyr Tower, Qing Long City, in the extra chapter.

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

Definition in file wstag957.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)

Definition at line 14 of file wstag957.c.

◆ STAGE_FILE

#define STAGE_FILE   0x929

Definition at line 15 of file wstag957.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x24C

Definition at line 16 of file wstag957.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map and actors, 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 23 of file wstag957.c.

Variable Documentation

◆ 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, 0x15C, 0x1A7, 0x70, 0xA7, 0x170, 0x1FF },
{ 0x140, 0x100, 0x176, 0x173, 0xD8, 0x73, 0x170, 0x1FE },
{ 0x140, 0x100, 0x160, 0x147, 0x80, 0x47, 0x170, 0x1FD },
{ 0x180, 0x100, 0x1A0, 0x100, 0x180, 0, 0x170, 0x1FC },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0x180, 0x100, 0x190, 0x11A, 0x140, 0x1A, 0x170, 0x1FB },
}

Definition at line 41 of file wstag957.c.

Referenced by setupStage().

◆ actor0Talk0Actions

u16 actor0Talk0Actions[] = { 0x7A2A, 1, 0xFFFF }

Definition at line 55 of file wstag957.c.

◆ actor1Talk0Actions

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

Definition at line 56 of file wstag957.c.

◆ actor2Talk0Actions

u16 actor2Talk0Actions[] = { 0x7A14, 1, 0xFFFF }

Definition at line 57 of file wstag957.c.

◆ actor3Talk0Actions

u16 actor3Talk0Actions[] = { 0x7A47, 1, 0xFFFF }

Definition at line 58 of file wstag957.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x2B },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag957.c:55

Definition at line 59 of file wstag957.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , actor1Talk0Actions, 0x35 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk0Actions[]
Definition wstag957.c:56

Definition at line 63 of file wstag957.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ ((void *)0) , actor2Talk0Actions, 0x36 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk0Actions[]
Definition wstag957.c:57

Definition at line 67 of file wstag957.c.

◆ actor3Talks

FieldTalk actor3Talks[]
Initial value:
= {
{ ((void *)0) , actor3Talk0Actions, 0x87 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor3Talk0Actions[]
Definition wstag957.c:58

Definition at line 71 of file wstag957.c.

◆ actor4Talks

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

Definition at line 75 of file wstag957.c.

◆ actor6Talks

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

Definition at line 79 of file wstag957.c.

◆ actor3Conditions

u16 actor3Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 1, 0xFFFF }

Definition at line 83 of file wstag957.c.

◆ actor4Conditions

u16 actor4Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 0, 0xFFFF }

Definition at line 84 of file wstag957.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x14, 4, 345, 197, 7 }

Definition at line 85 of file wstag957.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x16, 5, 408, 341, 7 }

Definition at line 86 of file wstag957.c.

◆ actor2

FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x17, 6, 330, 380, 7 }

Definition at line 87 of file wstag957.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0xCE, 7, 128, 201, 7 }

Definition at line 88 of file wstag957.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0xCE, 7, 128, 201, 7 }

Definition at line 89 of file wstag957.c.

◆ actor5

FieldActorEntry actor5 = { ((void *)0) , ((void *)0) , 0xDB, 8, 345, 213, 7 }

Definition at line 90 of file wstag957.c.

◆ actor6

FieldActorEntry actor6 = { ((void *)0) , actor6Talks, 0x179, 9, 384, 418, 3 }

Definition at line 91 of file wstag957.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag957.c:85
FieldActorEntry actor6
Definition wstag957.c:91
FieldActorEntry actor5
Definition wstag957.c:90
FieldActorEntry actor2
Definition wstag957.c:87
FieldActorEntry actor4
Definition wstag957.c:89
FieldActorEntry actor1
Definition wstag957.c:86
FieldActorEntry actor3
Definition wstag957.c:88

Definition at line 92 of file wstag957.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 304, 189, 222, 0 },
{ 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 290, 166, 222, 0 },
{ 1, 0, 0x40, 4, 2, 0, 0, 0, 0, 0, 328, 195, 215, 0 },
{ 1, 0, 0x40, 4, 3, 0, 0, 0, 0, 0, 336, 187, 207, 0 },
{ 1, 0, 0x40, 4, 4, 0, 0, 0, 0, 0, 352, 180, 199, 0 },
{ 1, 0, 0x40, 4, 5, 0, 0, 0, 0, 0, 367, 164, 199, 0 },
{ 1, 0, 0x40, 4, 6, 0, 0, 0, 0, 0, 472, 281, 331, 0 },
{ 1, 0, 0x40, 4, 7, 0, 0, 0, 0, 0, 496, 352, 399, 0 },
{ 1, 0, 0x40, 4, 8, 0, 0, 0, 0, 0, 271, 382, 399, 0 },
{ 1, 0, 0x40, 4, 9, 0, 0, 0, 0, 0, 289, 374, 391, 0 },
{ 1, 0, 0x40, 4, 0xA, 0, 0, 0, 0, 0, 336, 350, 367, 0 },
{ 1, 0, 0x40, 4, 0xB, 0, 0, 0, 0, 0, 353, 343, 358, 0 },
{ 1, 0, 0x40, 4, 0xC, 0, 0, 0, 0, 0, 366, 323, 351, 0 },
{ 1, 0, 0x40, 4, 0xD, 0, 0, 0, 0, 0, 416, 309, 326, 0 },
{ 1, 0, 0x40, 4, 0xE, 0, 0, 0, 0, 0, 435, 292, 319, 0 },
{ 1, 0, 0x40, 4, 0xF, 0, 0, 0, 0, 0, 176, 155, 211, 0 },
{ 1, 0, 0x40, 4, 0x10, 0, 0, 0, 0, 0, 160, 148, 199, 0 },
{ 1, 0, 0x40, 4, 0x11, 0, 0, 0, 0, 0, 144, 140, 191, 0 },
{ 1, 0, 0x40, 4, 0x12, 0, 0, 0, 0, 0, 128, 132, 184, 0 },
{ 1, 0, 0x40, 4, 0x13, 0, 0, 0, 0, 0, 118, 127, 179, 0 },
{ 1, 0, 0x64, 4, 0x14, 0, 0, 0, 0, 0, 448, 251, 310, 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 102 of file wstag957.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x29C, 0x1E8, 0x1AC, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 4, 0x100, 0xB0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 4, 0x10F, 0xF6, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 4, 0xB0, 0xD8, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 4, 0xBF, 0x11E, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 126 of file wstag957.c.

Referenced by setupStage().

◆ stageFuncs

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