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

WSTAG701: Mountain Inn, North Sector. More...

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

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_700 - 1)
 
#define STAGE_FILE   0x66A
 

Functions

void endEvent1464 (void)
 After event 1464, with Guardromon: applies 0x7C1B, 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 script1464 []
 
ActorImage stageImages []
 
u16 actor0Talk0Actions [] = { 0x7A2F, 1, 0xFFFF }
 
u16 actor1Talk0Actions [] = { (0x9000 | ( 0x6A )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
FieldTalk actor6Talks []
 
FieldTalk actor7Talks []
 
u16 actor2Conditions []
 
u16 actor3Conditions []
 
u16 actor4Conditions []
 
u16 actor5Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor6Conditions []
 
u16 actor7Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x14, 4, 225, 289, 7 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x15, 5, 283, 251, 7 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x33, 6, 145, 297, 7 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x38, 7, 288, 209, 3 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x9D, 8, 288, 209, 3 }
 
FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x9D, 8, 288, 209, 3 }
 
FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x9E, 9, 145, 297, 7 }
 
FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x9E, 9, 145, 297, 7 }
 
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

WSTAG701: Mountain Inn, North Sector.

On the Amaterasu server; its Asuka server twin is WSTAG700.

Definition in file wstag701.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)

Definition at line 25 of file wstag701.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_700 - 1)

Definition at line 26 of file wstag701.c.

◆ STAGE_FILE

#define STAGE_FILE   0x66A

Definition at line 27 of file wstag701.c.

Function Documentation

◆ endEvent1464()

void endEvent1464 ( void  )

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

Definition at line 16 of file wstag701.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 30 of file wstag701.c.

Variable Documentation

◆ script1464

s16 script1464[]
Initial value:
= {
0x102, 2 , 0x13B , 0x10B , 3 ,
0x100, 0x15 , 0x11B , 0xFB ,
0x101, 0x15 , 1 , 7 ,
0x101, 0x32D , 0x337 , 2 ,
0x302, 2 ,
0x101, 2 , 1 , 3 ,
0x300, 0x24 ,
0x200, 0 , 1 , 0x15 , 0 ,
0x301 ,
0x300, 0x1E ,
0x101, 0x15 , 0x36 , 7 ,
0x101, 0x32D , 0x375 , 2 ,
0x303, 0x15 ,
0x101, 0x15 , 0x37 , 7 ,
0x300, 0x5A ,
0x304, 0xC19 , 0 , 0 , 0 ,
0 ,
}

Definition at line 49 of file wstag701.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, 0x140, 0x12B, 0, 0x2B, 0x150, 0x1FF },
{ 0x140, 0x100, 0x160, 0x123, 0x80, 0x23, 0x160, 0x1FF },
{ 0x140, 0x100, 0x16C, 0x123, 0xB0, 0x23, 0x170, 0x1FF },
{ 0x140, 0x100, 0x174, 0x123, 0xD0, 0x23, 0x150, 0x1FE },
{ 0x140, 0x100, 0x148, 0x12B, 0x20, 0x2B, 0x160, 0x1FE },
{ 0x140, 0x100, 0x150, 0x12B, 0x40, 0x2B, 0x170, 0x1FE },
}

Definition at line 68 of file wstag701.c.

Referenced by setupStage().

◆ actor0Talk0Actions

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

Definition at line 82 of file wstag701.c.

◆ actor1Talk0Actions

u16 actor1Talk0Actions[] = { (0x9000 | ( 0x6A )) , 1, 0xFFFF }

Definition at line 83 of file wstag701.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x2CE },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag701.c:82

Definition at line 84 of file wstag701.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , actor1Talk0Actions, 0x2CF },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk0Actions[]
Definition wstag701.c:83

Definition at line 88 of file wstag701.c.

◆ actor2Talks

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

Definition at line 92 of file wstag701.c.

◆ actor3Talks

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

Definition at line 96 of file wstag701.c.

◆ actor4Talks

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

Definition at line 100 of file wstag701.c.

◆ actor5Talks

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

Definition at line 104 of file wstag701.c.

◆ actor6Talks

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

Definition at line 108 of file wstag701.c.

◆ actor7Talks

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

Definition at line 112 of file wstag701.c.

◆ actor2Conditions

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

◆ actor3Conditions

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

Definition at line 121 of file wstag701.c.

◆ actor4Conditions

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

Definition at line 126 of file wstag701.c.

◆ actor5Conditions

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

Definition at line 131 of file wstag701.c.

◆ actor6Conditions

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

Definition at line 132 of file wstag701.c.

◆ actor7Conditions

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

Definition at line 137 of file wstag701.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x14, 4, 225, 289, 7 }

Definition at line 138 of file wstag701.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x15, 5, 283, 251, 7 }

Definition at line 139 of file wstag701.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x33, 6, 145, 297, 7 }

Definition at line 140 of file wstag701.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x38, 7, 288, 209, 3 }

Definition at line 141 of file wstag701.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x9D, 8, 288, 209, 3 }

Definition at line 142 of file wstag701.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x9D, 8, 288, 209, 3 }

Definition at line 143 of file wstag701.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x9E, 9, 145, 297, 7 }

Definition at line 144 of file wstag701.c.

◆ actor7

FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x9E, 9, 145, 297, 7 }

Definition at line 145 of file wstag701.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag701.c:138
FieldActorEntry actor6
Definition wstag701.c:144
FieldActorEntry actor5
Definition wstag701.c:143
FieldActorEntry actor2
Definition wstag701.c:140
FieldActorEntry actor4
Definition wstag701.c:142
FieldActorEntry actor7
Definition wstag701.c:145
FieldActorEntry actor1
Definition wstag701.c:139
FieldActorEntry actor3
Definition wstag701.c:141

Definition at line 146 of file wstag701.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 6, 0x32, 2, 0, 1, 6, 0, 318, 111, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 1, 6, 0, 383, 142, 0, 0 },
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 224, 235, 262, 0 },
{ 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 172, 267, 294, 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 157 of file wstag701.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2CA, 0x248, 0x18C, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 164 of file wstag701.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 wstag701.c:30

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 168 of file wstag701.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1464, script1464, ( ( 0x14B - 1) << 16 | ( 0x27 )), ((void *)0) , endEvent1464 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void endEvent1464(void)
After event 1464, with Guardromon: applies 0x7C1B, an action that does nothing (applyAction's mode ch...
Definition wstag701.c:16
s16 script1464[]
Definition wstag701.c:49

Definition at line 171 of file wstag701.c.

Referenced by setupStage().