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

WSTAG685: Underground Cave, Byakko City. More...

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

Go to the source code of this file.

Macros

#define STAGE_CHILDREN_SIZE   4
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_01)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_600 - 1)
 
#define STAGE_FILE   0x4C4
 

Functions

void updateStage (StageTask *task, void **children)
 Creates the event object of story progress 0xF.
 
void endEvent413 (void)
 After event 413, with the player: moves the story on to STORY_NUMEMON_FOUND.
 
void endEvent421 (void)
 After event 421, with Numemon: sets flag 0x4020.
 
void endEvent690 (void)
 After event 690, with General: moves the story on to STORY_CODE_PASSES_NEEDED.
 
void setupStage (void)
 Sets the stage up: its map, actors and events, playing the ambience ENV_0020.
 

Variables

s16 script413 []
 
s16 script421 []
 
s16 script690 []
 
ActorImage stageImages []
 
u16 actor5Talk0Conditions [] = { (0x6000 | ( STORY_NUMEMON_FOUND )) , 1, 0xFFFF }
 
u16 actor5Talk1Conditions [] = { (0x7000 | ( 8 )) , 1, 0xFFFF }
 
u16 actor6Talk0Conditions [] = { (0x6000 | ( STORY_KNIGHTMON_REPROGRAMMED )) , 1, 0xFFFF }
 
u16 actor6Talk1Conditions []
 
u16 actor9Talk0Conditions [] = { (0x6000 | ( STORY_KNIGHTMON_REPROGRAMMED )) , 1, 0xFFFF }
 
u16 actor9Talk1Conditions []
 
u16 actor13Talk0Conditions [] = { (0x6000 | ( STORY_KNIGHTMON_REPROGRAMMED )) , 0, 0xFFFF }
 
u16 actor13Talk1Conditions [] = { (0x6000 | ( STORY_KNIGHTMON_REPROGRAMMED )) , 1, 0xFFFF }
 
u16 actor13Talk1Actions [] = { (0x9000 | ( 0x43 )) , 1, 0xFFFF }
 
u16 actor22Talk0Actions [] = { (( 0x1A ) << 8 | ( 3 )) , 1, 0xFFFF }
 
u16 actor23Talk0Actions [] = { (( 0x1A ) << 8 | ( 3 )) , 1, 0xFFFF }
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
FieldTalk actor6Talks []
 
FieldTalk actor7Talks []
 
FieldTalk actor8Talks []
 
FieldTalk actor9Talks []
 
FieldTalk actor10Talks []
 
FieldTalk actor11Talks []
 
FieldTalk actor13Talks []
 
FieldTalk actor14Talks []
 
FieldTalk actor15Talks []
 
FieldTalk actor16Talks []
 
FieldTalk actor17Talks []
 
FieldTalk actor18Talks []
 
FieldTalk actor19Talks []
 
FieldTalk actor20Talks []
 
FieldTalk actor22Talks []
 
FieldTalk actor23Talks []
 
FieldTalk actor24Talks []
 
FieldTalk actor25Talks []
 
FieldTalk actor26Talks []
 
u16 actor0Conditions [] = { (0x6000 | ( STORY_DE_SINCERITY )) , 1, 0xFFFF }
 
u16 actor1Conditions [] = { (0x7000 | ( 4 )) , 1, 0xFFFF }
 
u16 actor2Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor3Conditions [] = { (0x7000 | ( 4 )) , 1, 0xFFFF }
 
u16 actor4Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor6Conditions [] = { (0x7000 | ( 0x18 )) , 1, 0xFFFF }
 
u16 actor7Conditions [] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF }
 
u16 actor8Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor9Conditions [] = { (0x7000 | ( 0x18 )) , 1, 0xFFFF }
 
u16 actor10Conditions [] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF }
 
u16 actor11Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor12Conditions [] = { (0x6000 | ( STORY_NUMEMON_FOUND )) , 1, 0xFFFF }
 
u16 actor13Conditions [] = { (0x7000 | ( 0x18 )) , 1, 0xFFFF }
 
u16 actor14Conditions [] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF }
 
u16 actor15Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor16Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor17Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor18Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor19Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor20Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor21Conditions [] = { (0x6000 | ( STORY_DE_SINCERITY )) , 1, 0xFFFF }
 
u16 actor22Conditions [] = { (0x6000 | ( STORY_NUMEMON_FOUND )) , 1, 0xFFFF }
 
u16 actor23Conditions [] = { (0x6000 | ( STORY_NUMEMON_FOUND )) , 1, 0xFFFF }
 
u16 actor24Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor25Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor26Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, ((void *)0) , 1, 4, 0, 0, 1 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x25, 5, 386, 129, 1 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x25, 5, 386, 129, 1 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x26, 6, 415, 145, 7 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x26, 6, 415, 145, 7 }
 
FieldActorEntry actor5 = { ((void *)0) , actor5Talks, 0x3F, 7, 1040, 298, 1 }
 
FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x45, 8, 561, 305, 1 }
 
FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x45, 8, 561, 305, 1 }
 
FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x45, 8, 561, 305, 1 }
 
FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x46, 9, 993, 321, 5 }
 
FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x46, 9, 993, 321, 5 }
 
FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x46, 9, 993, 321, 5 }
 
FieldActorEntry actor12 = { actor12Conditions, ((void *)0) , 0x69, 0xA, 1045, 295, 5 }
 
FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x98, 0xB, 560, 449, 7 }
 
FieldActorEntry actor14 = { actor14Conditions, actor14Talks, 0x98, 0xB, 560, 449, 7 }
 
FieldActorEntry actor15 = { actor15Conditions, actor15Talks, 0x98, 0xB, 560, 449, 7 }
 
FieldActorEntry actor16 = { actor16Conditions, actor16Talks, 0x9D, 0xC, 560, 449, 7 }
 
FieldActorEntry actor17 = { actor17Conditions, actor17Talks, 0x9E, 0xD, 561, 305, 1 }
 
FieldActorEntry actor18 = { actor18Conditions, actor18Talks, 0x9F, 0xE, 993, 321, 5 }
 
FieldActorEntry actor19 = { actor19Conditions, actor19Talks, 0xA0, 0xF, 386, 129, 1 }
 
FieldActorEntry actor20 = { actor20Conditions, actor20Talks, 0xA1, 0x10, 415, 145, 7 }
 
FieldActorEntry actor21 = { actor21Conditions, ((void *)0) , 0x11F, 0x11, 0, 0, 1 }
 
FieldActorEntry actor22 = { actor22Conditions, actor22Talks, 0x132, 0x12, 328, 142, 7 }
 
FieldActorEntry actor23 = { actor23Conditions, actor23Talks, 0x133, 0x13, 354, 128, 7 }
 
FieldActorEntry actor24 = { actor24Conditions, actor24Talks, 0x16D, 0x14, 825, 269, 7 }
 
FieldActorEntry actor25 = { actor25Conditions, actor25Talks, 0x16F, 0x15, 560, 449, 7 }
 
FieldActorEntry actor26 = { actor26Conditions, actor26Talks, 0x171, 0x16, 561, 305, 1 }
 
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

WSTAG685: Underground Cave, Byakko City.

Definition in file wstag685.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   4

Definition at line 25 of file wstag685.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_01)

Definition at line 48 of file wstag685.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_600 - 1)

Definition at line 49 of file wstag685.c.

◆ STAGE_FILE

#define STAGE_FILE   0x4C4

Definition at line 50 of file wstag685.c.

Function Documentation

◆ updateStage()

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

Creates the event object of story progress 0xF.

Definition at line 9 of file wstag685.c.

Here is the call graph for this function:

◆ endEvent413()

void endEvent413 ( void  )

After event 413, with the player: moves the story on to STORY_NUMEMON_FOUND.

Definition at line 29 of file wstag685.c.

◆ endEvent421()

void endEvent421 ( void  )

After event 421, with Numemon: sets flag 0x4020.

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

Definition at line 34 of file wstag685.c.

◆ endEvent690()

void endEvent690 ( void  )

After event 690, with General: moves the story on to STORY_CODE_PASSES_NEEDED.

Definition at line 39 of file wstag685.c.

◆ setupStage()

void setupStage ( void  )

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

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_0020: the Underground Cave

< ENV_0020: the Underground Cave

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

Definition at line 53 of file wstag685.c.

Variable Documentation

◆ script413

s16 script413[]
Initial value:
= {
0x100, 1 , 0x330 , 0x108 ,
0x101, 1 , 0x10 , 7 ,
0x100, 0x11F , 0x340 , 0x10D ,
0x101, 0x11F , 1 , 7 ,
0x300, 0x3C ,
0x101, 0x32D , 0x37E , 1 ,
0x300, 0x3C ,
0x101, 1 , 0x27 , 7 ,
0x303, 1 ,
0x101, 1 , 0x26 , 7 ,
0x100, 0x11F , 0 , 0 ,
0x101, 0x11F , 1 , 0 ,
0x303, 1 ,
0x101, 1 , 1 , 7 ,
0x300, 0x1E ,
0x101, 1 , 0x3A , 7 ,
0x300, 0x5A ,
0x200, 0 , 1 , 1 , 2 ,
0x101, 1 , 1 , 1 ,
0x301 ,
0x300, 0x1E ,
0x200, 0 , 2 , 1 , 2 ,
0x301 ,
0x304, 0x260 , 0x330 , 0x108 , 1 ,
0 ,
}

Definition at line 72 of file wstag685.c.

◆ script421

s16 script421[]

Definition at line 99 of file wstag685.c.

◆ script690

s16 script690[]

Definition at line 141 of file wstag685.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, 0x1A6, 0, 0xA6, 0x150, 0x1FF },
{ 0x140, 0x100, 0x16E, 0x158, 0xB8, 0x58, 0x160, 0x1FF },
{ 0x140, 0x100, 0x176, 0x158, 0xD8, 0x58, 0x170, 0x1FF },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0x140, 0x100, 0x164, 0x180, 0x90, 0x80, 0x150, 0x1FE },
{ 0x140, 0x100, 0x16C, 0x188, 0xB0, 0x88, 0x160, 0x1FE },
{ 0x140, 0x100, 0x15E, 0x1A8, 0x78, 0xA8, 0x170, 0x1FE },
{ 0x140, 0x100, 0x174, 0x188, 0xD0, 0x88, 0x140, 0x1FD },
{ 0x140, 0x100, 0x166, 0x1B0, 0x98, 0xB0, 0x150, 0x1FD },
{ 0x140, 0x100, 0x16E, 0x1B0, 0xB8, 0xB0, 0x160, 0x1FD },
{ 0x140, 0x100, 0x176, 0x1B0, 0xD8, 0xB0, 0x170, 0x1FD },
{ 0x140, 0x100, 0x148, 0x1B5, 0x20, 0xB5, 0x140, 0x1FC },
{ 0x140, 0x100, 0x150, 0x1BD, 0x40, 0xBD, 0x150, 0x1FC },
{ 0x140, 0x100, 0x168, 0x1D0, 0xA0, 0xD0, 0x160, 0x1FC },
{ 0x140, 0x100, 0x14E, 0x18D, 0x38, 0x8D, 0x170, 0x1FC },
{ 0x140, 0x100, 0x156, 0x195, 0x58, 0x95, 0x140, 0x1FB },
{ 0x140, 0x100, 0x140, 0x1C6, 0, 0xC6, 0x150, 0x1FB },
{ 0x140, 0x100, 0x158, 0x1C8, 0x60, 0xC8, 0x160, 0x1FB },
{ 0x140, 0x100, 0x160, 0x1D0, 0x80, 0xD0, 0x170, 0x1FB },
}

Definition at line 206 of file wstag685.c.

Referenced by setupStage().

◆ actor5Talk0Conditions

u16 actor5Talk0Conditions[] = { (0x6000 | ( STORY_NUMEMON_FOUND )) , 1, 0xFFFF }

Definition at line 233 of file wstag685.c.

◆ actor5Talk1Conditions

u16 actor5Talk1Conditions[] = { (0x7000 | ( 8 )) , 1, 0xFFFF }

Definition at line 234 of file wstag685.c.

◆ actor6Talk0Conditions

u16 actor6Talk0Conditions[] = { (0x6000 | ( STORY_KNIGHTMON_REPROGRAMMED )) , 1, 0xFFFF }

Definition at line 235 of file wstag685.c.

◆ actor6Talk1Conditions

u16 actor6Talk1Conditions[]
Initial value:
= {
(0x6000 | ( STORY_KNIGHTMON_REPROGRAMMED )) , 0,
(0x7000 | ( 0x18 )) , 1,
0xFFFF ,
}
@ STORY_KNIGHTMON_REPROGRAMMED
WSTAG210 (Main Lobby, Asuka City), event 685: the A.o.A have reprogrammed Knightmon,...
Definition story.h:97

Definition at line 236 of file wstag685.c.

◆ actor9Talk0Conditions

u16 actor9Talk0Conditions[] = { (0x6000 | ( STORY_KNIGHTMON_REPROGRAMMED )) , 1, 0xFFFF }

Definition at line 241 of file wstag685.c.

◆ actor9Talk1Conditions

u16 actor9Talk1Conditions[]
Initial value:
= {
(0x7000 | ( 0x18 )) , 1,
(0x6000 | ( STORY_KNIGHTMON_REPROGRAMMED )) , 0,
0xFFFF ,
}

Definition at line 242 of file wstag685.c.

◆ actor13Talk0Conditions

u16 actor13Talk0Conditions[] = { (0x6000 | ( STORY_KNIGHTMON_REPROGRAMMED )) , 0, 0xFFFF }

Definition at line 247 of file wstag685.c.

◆ actor13Talk1Conditions

u16 actor13Talk1Conditions[] = { (0x6000 | ( STORY_KNIGHTMON_REPROGRAMMED )) , 1, 0xFFFF }

Definition at line 248 of file wstag685.c.

◆ actor13Talk1Actions

u16 actor13Talk1Actions[] = { (0x9000 | ( 0x43 )) , 1, 0xFFFF }

Definition at line 249 of file wstag685.c.

◆ actor22Talk0Actions

u16 actor22Talk0Actions[] = { (( 0x1A ) << 8 | ( 3 )) , 1, 0xFFFF }

Definition at line 250 of file wstag685.c.

◆ actor23Talk0Actions

u16 actor23Talk0Actions[] = { (( 0x1A ) << 8 | ( 3 )) , 1, 0xFFFF }

Definition at line 251 of file wstag685.c.

◆ actor1Talks

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

Definition at line 252 of file wstag685.c.

◆ actor2Talks

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

Definition at line 256 of file wstag685.c.

◆ actor3Talks

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

Definition at line 260 of file wstag685.c.

◆ actor4Talks

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

Definition at line 264 of file wstag685.c.

◆ actor5Talks

FieldTalk actor5Talks[]
Initial value:
= {
{ actor5Talk0Conditions, ((void *)0) , 0x140 },
{ actor5Talk1Conditions, ((void *)0) , 0x12A },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor5Talk0Conditions[]
Definition wstag685.c:233
u16 actor5Talk1Conditions[]
Definition wstag685.c:234

Definition at line 268 of file wstag685.c.

◆ actor6Talks

FieldTalk actor6Talks[]
Initial value:
= {
{ actor6Talk0Conditions, ((void *)0) , 0x172 },
{ actor6Talk1Conditions, ((void *)0) , 0x12B },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor6Talk1Conditions[]
Definition wstag685.c:236
u16 actor6Talk0Conditions[]
Definition wstag685.c:235

Definition at line 273 of file wstag685.c.

◆ actor7Talks

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

Definition at line 278 of file wstag685.c.

◆ actor8Talks

FieldTalk actor8Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x131 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 282 of file wstag685.c.

◆ actor9Talks

FieldTalk actor9Talks[]
Initial value:
= {
{ actor9Talk0Conditions, ((void *)0) , 0x173 },
{ actor9Talk1Conditions, ((void *)0) , 0x12C },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor9Talk0Conditions[]
Definition wstag685.c:241
u16 actor9Talk1Conditions[]
Definition wstag685.c:242

Definition at line 286 of file wstag685.c.

◆ actor10Talks

FieldTalk actor10Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x12F },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 291 of file wstag685.c.

◆ actor11Talks

FieldTalk actor11Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x132 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 295 of file wstag685.c.

◆ actor13Talks

FieldTalk actor13Talks[]
Initial value:
= {
{ actor13Talk0Conditions, ((void *)0) , 0x12D },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor13Talk1Actions[]
Definition wstag685.c:249
u16 actor13Talk0Conditions[]
Definition wstag685.c:247
u16 actor13Talk1Conditions[]
Definition wstag685.c:248

Definition at line 299 of file wstag685.c.

◆ actor14Talks

FieldTalk actor14Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x130 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 304 of file wstag685.c.

◆ actor15Talks

FieldTalk actor15Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x133 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 308 of file wstag685.c.

◆ actor16Talks

FieldTalk actor16Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x136 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 312 of file wstag685.c.

◆ actor17Talks

FieldTalk actor17Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x134 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 316 of file wstag685.c.

◆ actor18Talks

FieldTalk actor18Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x135 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 320 of file wstag685.c.

◆ actor19Talks

FieldTalk actor19Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x13E },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 324 of file wstag685.c.

◆ actor20Talks

FieldTalk actor20Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x13F },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 328 of file wstag685.c.

◆ actor22Talks

FieldTalk actor22Talks[]
Initial value:
= {
{ ((void *)0) , actor22Talk0Actions, 0x129 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor22Talk0Actions[]
Definition wstag685.c:250

Definition at line 332 of file wstag685.c.

◆ actor23Talks

FieldTalk actor23Talks[]
Initial value:
= {
{ ((void *)0) , actor23Talk0Actions, 0x15C },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor23Talk0Actions[]
Definition wstag685.c:251

Definition at line 336 of file wstag685.c.

◆ actor24Talks

FieldTalk actor24Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x137 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 340 of file wstag685.c.

◆ actor25Talks

FieldTalk actor25Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x138 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 344 of file wstag685.c.

◆ actor26Talks

FieldTalk actor26Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x139 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 348 of file wstag685.c.

◆ actor0Conditions

u16 actor0Conditions[] = { (0x6000 | ( STORY_DE_SINCERITY )) , 1, 0xFFFF }

Definition at line 352 of file wstag685.c.

◆ actor1Conditions

u16 actor1Conditions[] = { (0x7000 | ( 4 )) , 1, 0xFFFF }

Definition at line 353 of file wstag685.c.

◆ actor2Conditions

u16 actor2Conditions[] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }

Definition at line 354 of file wstag685.c.

◆ actor3Conditions

u16 actor3Conditions[] = { (0x7000 | ( 4 )) , 1, 0xFFFF }

Definition at line 355 of file wstag685.c.

◆ actor4Conditions

u16 actor4Conditions[] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }

Definition at line 356 of file wstag685.c.

◆ actor6Conditions

u16 actor6Conditions[] = { (0x7000 | ( 0x18 )) , 1, 0xFFFF }

Definition at line 357 of file wstag685.c.

◆ actor7Conditions

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

Definition at line 358 of file wstag685.c.

◆ actor8Conditions

u16 actor8Conditions[] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }

Definition at line 359 of file wstag685.c.

◆ actor9Conditions

u16 actor9Conditions[] = { (0x7000 | ( 0x18 )) , 1, 0xFFFF }

Definition at line 360 of file wstag685.c.

◆ actor10Conditions

u16 actor10Conditions[] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF }

Definition at line 361 of file wstag685.c.

◆ actor11Conditions

u16 actor11Conditions[] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }

Definition at line 362 of file wstag685.c.

◆ actor12Conditions

u16 actor12Conditions[] = { (0x6000 | ( STORY_NUMEMON_FOUND )) , 1, 0xFFFF }

Definition at line 363 of file wstag685.c.

◆ actor13Conditions

u16 actor13Conditions[] = { (0x7000 | ( 0x18 )) , 1, 0xFFFF }

Definition at line 364 of file wstag685.c.

◆ actor14Conditions

u16 actor14Conditions[] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF }

Definition at line 365 of file wstag685.c.

◆ actor15Conditions

u16 actor15Conditions[] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }

Definition at line 366 of file wstag685.c.

◆ actor16Conditions

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

Definition at line 367 of file wstag685.c.

◆ actor17Conditions

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

Definition at line 368 of file wstag685.c.

◆ actor18Conditions

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

Definition at line 369 of file wstag685.c.

◆ actor19Conditions

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

Definition at line 370 of file wstag685.c.

◆ actor20Conditions

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

Definition at line 371 of file wstag685.c.

◆ actor21Conditions

u16 actor21Conditions[] = { (0x6000 | ( STORY_DE_SINCERITY )) , 1, 0xFFFF }

Definition at line 372 of file wstag685.c.

◆ actor22Conditions

u16 actor22Conditions[] = { (0x6000 | ( STORY_NUMEMON_FOUND )) , 1, 0xFFFF }

Definition at line 373 of file wstag685.c.

◆ actor23Conditions

u16 actor23Conditions[] = { (0x6000 | ( STORY_NUMEMON_FOUND )) , 1, 0xFFFF }

Definition at line 374 of file wstag685.c.

◆ actor24Conditions

u16 actor24Conditions[] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }

Definition at line 375 of file wstag685.c.

◆ actor25Conditions

u16 actor25Conditions[] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }

Definition at line 376 of file wstag685.c.

◆ actor26Conditions

u16 actor26Conditions[] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }

Definition at line 377 of file wstag685.c.

◆ actor0

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

Definition at line 378 of file wstag685.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x25, 5, 386, 129, 1 }

Definition at line 379 of file wstag685.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x25, 5, 386, 129, 1 }

Definition at line 380 of file wstag685.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x26, 6, 415, 145, 7 }

Definition at line 381 of file wstag685.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x26, 6, 415, 145, 7 }

Definition at line 382 of file wstag685.c.

◆ actor5

FieldActorEntry actor5 = { ((void *)0) , actor5Talks, 0x3F, 7, 1040, 298, 1 }

Definition at line 383 of file wstag685.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x45, 8, 561, 305, 1 }

Definition at line 384 of file wstag685.c.

◆ actor7

FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x45, 8, 561, 305, 1 }

Definition at line 385 of file wstag685.c.

◆ actor8

FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x45, 8, 561, 305, 1 }

Definition at line 386 of file wstag685.c.

◆ actor9

FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x46, 9, 993, 321, 5 }

Definition at line 387 of file wstag685.c.

◆ actor10

FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x46, 9, 993, 321, 5 }

Definition at line 388 of file wstag685.c.

◆ actor11

FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x46, 9, 993, 321, 5 }

Definition at line 389 of file wstag685.c.

◆ actor12

FieldActorEntry actor12 = { actor12Conditions, ((void *)0) , 0x69, 0xA, 1045, 295, 5 }

Definition at line 390 of file wstag685.c.

◆ actor13

FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x98, 0xB, 560, 449, 7 }

Definition at line 391 of file wstag685.c.

◆ actor14

FieldActorEntry actor14 = { actor14Conditions, actor14Talks, 0x98, 0xB, 560, 449, 7 }

Definition at line 392 of file wstag685.c.

◆ actor15

FieldActorEntry actor15 = { actor15Conditions, actor15Talks, 0x98, 0xB, 560, 449, 7 }

Definition at line 393 of file wstag685.c.

◆ actor16

FieldActorEntry actor16 = { actor16Conditions, actor16Talks, 0x9D, 0xC, 560, 449, 7 }

Definition at line 394 of file wstag685.c.

◆ actor17

FieldActorEntry actor17 = { actor17Conditions, actor17Talks, 0x9E, 0xD, 561, 305, 1 }

Definition at line 395 of file wstag685.c.

◆ actor18

FieldActorEntry actor18 = { actor18Conditions, actor18Talks, 0x9F, 0xE, 993, 321, 5 }

Definition at line 396 of file wstag685.c.

◆ actor19

FieldActorEntry actor19 = { actor19Conditions, actor19Talks, 0xA0, 0xF, 386, 129, 1 }

Definition at line 397 of file wstag685.c.

◆ actor20

FieldActorEntry actor20 = { actor20Conditions, actor20Talks, 0xA1, 0x10, 415, 145, 7 }

Definition at line 398 of file wstag685.c.

◆ actor21

FieldActorEntry actor21 = { actor21Conditions, ((void *)0) , 0x11F, 0x11, 0, 0, 1 }

Definition at line 399 of file wstag685.c.

◆ actor22

FieldActorEntry actor22 = { actor22Conditions, actor22Talks, 0x132, 0x12, 328, 142, 7 }

Definition at line 400 of file wstag685.c.

◆ actor23

FieldActorEntry actor23 = { actor23Conditions, actor23Talks, 0x133, 0x13, 354, 128, 7 }

Definition at line 401 of file wstag685.c.

◆ actor24

FieldActorEntry actor24 = { actor24Conditions, actor24Talks, 0x16D, 0x14, 825, 269, 7 }

Definition at line 402 of file wstag685.c.

◆ actor25

FieldActorEntry actor25 = { actor25Conditions, actor25Talks, 0x16F, 0x15, 560, 449, 7 }

Definition at line 403 of file wstag685.c.

◆ actor26

FieldActorEntry actor26 = { actor26Conditions, actor26Talks, 0x171, 0x16, 561, 305, 1 }

Definition at line 404 of file wstag685.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag685.c:378
FieldActorEntry actor6
Definition wstag685.c:384
FieldActorEntry actor25
Definition wstag685.c:403
FieldActorEntry actor24
Definition wstag685.c:402
FieldActorEntry actor17
Definition wstag685.c:395
FieldActorEntry actor18
Definition wstag685.c:396
FieldActorEntry actor5
Definition wstag685.c:383
FieldActorEntry actor2
Definition wstag685.c:380
FieldActorEntry actor23
Definition wstag685.c:401
FieldActorEntry actor19
Definition wstag685.c:397
FieldActorEntry actor22
Definition wstag685.c:400
FieldActorEntry actor10
Definition wstag685.c:388
FieldActorEntry actor4
Definition wstag685.c:382
FieldActorEntry actor8
Definition wstag685.c:386
FieldActorEntry actor9
Definition wstag685.c:387
FieldActorEntry actor20
Definition wstag685.c:398
FieldActorEntry actor15
Definition wstag685.c:393
FieldActorEntry actor12
Definition wstag685.c:390
FieldActorEntry actor16
Definition wstag685.c:394
FieldActorEntry actor7
Definition wstag685.c:385
FieldActorEntry actor13
Definition wstag685.c:391
FieldActorEntry actor11
Definition wstag685.c:389
FieldActorEntry actor1
Definition wstag685.c:379
FieldActorEntry actor21
Definition wstag685.c:399
FieldActorEntry actor3
Definition wstag685.c:381
FieldActorEntry actor26
Definition wstag685.c:404
FieldActorEntry actor14
Definition wstag685.c:392

Definition at line 405 of file wstag685.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 6, 0x32, 2, 0, 1, 6, 0, 177, 76, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 1, 6, 0, 244, 43, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 1, 6, 0, 350, 54, 0, 0 },
{ 1, 0, 0x80, 6, 4, 0, 0, 0, 0, 0, 390, 289, 0, 0 },
{ 1, 0, 0x58, 4, 0, 0, 0, 0, 0, 0, 1025, 223, 307, 0 },
{ 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 492, 452, 508, 0 },
{ 1, 0, 0x42, 4, 2, 0, 0, 0, 0, 0, 625, 443, 501, 0 },
{ 1, 0, 0x5B, 4, 3, 0, 0, 0, 0, 0, 639, 378, 454, 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 435 of file wstag685.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x25E, 0x290, 0x1F0, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 4 , 9, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 8, 0x1C4, 0xA0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 8, 0x1D5, 0x12C, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 4, 0x1BF, 0x150, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 4, 0x1AF, 0x198, 0, 0, 0, 0 },
{ { { (( 0x1A ) << 8 | ( 3 )) , 1 }, { (0x6000 | ( STORY_NUMEMON_FOUND )) , 1 } }, 8 , 0x1A5, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}
@ STORY_NUMEMON_FOUND
WSTAG685 (Underground Cave, Byakko City), event 413: the rock blocking the hole is Numemon.
Definition story.h:73

Definition at line 446 of file wstag685.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_0020.
Definition wstag685.c:53

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 456 of file wstag685.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 413, script413, ( ( 0x144 - 1) << 16 | ( 3 )), ((void *)0) , endEvent413 },
{ 421, script421, ( ( 0x144 - 1) << 16 | ( 4 )), ((void *)0) , endEvent421 },
{ 690, script690, ( ( 0x144 - 1) << 16 | ( 0x1B )), ((void *)0) , endEvent690 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
s16 script421[]
Definition wstag685.c:99
void endEvent690(void)
After event 690, with General: moves the story on to STORY_CODE_PASSES_NEEDED.
Definition wstag685.c:39
void endEvent421(void)
After event 421, with Numemon: sets flag 0x4020.
Definition wstag685.c:34
s16 script413[]
Definition wstag685.c:72
void endEvent413(void)
After event 413, with the player: moves the story on to STORY_NUMEMON_FOUND.
Definition wstag685.c:29
s16 script690[]
Definition wstag685.c:141

Definition at line 459 of file wstag685.c.

Referenced by setupStage().