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

WSTAG780: Street Corner, Kusanagi City (the Real World). More...

Include dependency graph for wstag780.c:

Go to the source code of this file.

Macros

#define SPRITES   0x1C5
 The file of the stage's sprites, which the versions number differently.
 
#define STAGE_CHILDREN_SIZE   0xC
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_700 - 1)
 
#define STAGE_FILE   0x1C5
 
#define STAGE_ARCHIVE   0x320
 

Functions

void drawFlyer (StageFlyer *task)
 Draws the sprite at (x, y), flipped when it goes right.
 
void updateFlyer (StageFlyer *task)
 Moves the sprite diagonally unless it is still, animates it and ends it off screen.
 
void * createFlyer (s32 up, s32 right, s32 still, s32 anim)
 Creates a flyer at the start the direction and stillness pick.
 
void drawGlow (StageGlow *task)
 Draws the picture of file SPRITES with the frame of the level.
 
void updateGlow (StageGlow *task)
 Raises the level with a sound, waits, lowers it and ends, drawing it.
 
void * createCommand802 (s32 arg)
 Command 802 of the event scripts: the glow (updateGlow) of the MAGAMI Online Center's events.
 
void drawEffect (StageEffect *task, void *arg)
 Draws the sprite of the effect at (x, y) at depth 4 of LAYER while it runs.
 
void updateEffect (StageEffect *task)
 A looping sprite animation at the place key1 picks, started at a random point.
 
void * createEffect (s32 key)
 Creates the task of updateEffect with KEY as its key1.
 
s32 stepTileLoopAnimation (StageTileAnim *obj, AnimFrame *frames, s32 depth)
 Steps OBJ's animation through FRAMES by the frame time (at most 4), looping at the end (frame 0xFF), and returns its frame.
 
void updateTileLoop2 (StageTileLoop2 *task)
 Shows and loops the animations of the map objects with animations 1 and 2.
 
void * createTileLoop2 (void)
 Creates the looping map objects with animations 1 and 2 (updateTileLoop2)
 
void updateEffectSet (StageTask *task, void **children)
 Creates the six objects of updateEffect (keys 0-5) and the object of updateTileLoop2.
 
void * createEffectSet (void)
 Creates the stage's six effects and its looping map objects (updateEffectSet)
 
void releaseFlyers (StageFlyerGate *task, void **children)
 Lets out the flyers of the sets that are on, where their children are free.
 
void drawFlyerGate (StageFlyerGate *task)
 Draws the three pictures of the gate.
 
void updateFlyerGate (StageFlyerGate *task, void **children)
 Swaps the pictures every 0x79 frames, letting out the flyers.
 
void handleCommand800 (Task *task, s32 id)
 Stops the object (substate 0) for map 0x324, starts it (substate 1) for 0x320.
 
void * createCommand800 (s32 arg)
 Creates the task of updateFlyerGate with id ARG.
 
void drawByteAnims (StageByteAnims *task)
 Draws the 40 quads, those of kind 0 and 1 with the frames of the animations.
 
void updateByteAnims (StageByteAnims *task)
 Plays its two byte-pair animations, restarting one when its animation changes, and draws.
 
void handleCommand801 (StageByteAnims *task, s32 id)
 Switches the animations to 2 and 5 with a sound for map 0x322.
 
void * createCommand801 (s32 arg)
 Command 801 of the event scripts: the two animations of updateByteAnims in the MAGAMI Online Center's events.
 
void updateStage (StageTask *task, void **children)
 Creates an object and the event object of the story progress.
 
void endEvent0 (void)
 After event 0, with Junior, Ivy and Teddy: moves the story on to STORY_START.
 
void endEvent885 (void)
 After event 885: lets event 886 of WSTAG750 start.
 
void endEvent1500 (void)
 The end of event 1500, only in the European version: the story goes on to its extra chapter.
 
void setupStage (void)
 Sets the stage up: its map, actors and events, playing BGM00000, or BGM00001 at STORY_JUNGLE_SOUND, BGM00002 at 0x20 and BGM00003 at 0x27.
 

Variables

u8 flyerFrames []
 Defined below, after the code that uses them.
 
Vec2 flyerStarts [2][2][2]
 
StageAnimSpot updateEffectSpots []
 
AnimFrame * updateTileLoop2Frames []
 
StageQuadTexture drawByteAnimsTextures []
 
StageQuad drawByteAnimsQuads []
 
u8 * byteAnims []
 
s16 script0 []
 
s16 script684 []
 
s16 script742 []
 
s16 script885 []
 
s16 script971 []
 
s16 script1500 []
 
AnimFrame updateEffectSpots_4 []
 
AnimFrame updateEffectSpots_0 []
 
AnimFrame updateTileLoop2Frames_0 []
 
AnimFrame updateTileLoop2Frames_1 []
 
u8 byteAnims_0 []
 
u8 byteAnims_1 []
 
u8 byteAnims_2 []
 
u8 byteAnims_3 []
 
u8 byteAnims_4 []
 
u8 byteAnims_5 []
 
ActorImage stageImages []
 
FieldTalk actor6Talks []
 
u16 actor0Conditions [] = { (0x6000 | ( STORY_START )) , 1, 0xFFFF }
 
u16 actor1Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor2Conditions [] = { (0x6000 | ( STORY_START )) , 1, 0xFFFF }
 
u16 actor3Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor4Conditions [] = { (0x6000 | ( STORY_START )) , 1, 0xFFFF }
 
u16 actor5Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor12Conditions [] = { (0x6000 | ( STORY_ASUKA_HEADQUARTERS )) , 1, 0xFFFF }
 
u16 actor13Conditions [] = { (0x6000 | ( STORY_ASUKA_HEADQUARTERS )) , 1, 0xFFFF }
 
u16 actor14Conditions [] = { (0x6000 | ( STORY_ASUKA_HEADQUARTERS )) , 1, 0xFFFF }
 
u16 actor15Conditions [] = { (0x6000 | ( STORY_ASUKA_HEADQUARTERS )) , 1, 0xFFFF }
 
u16 actor16Conditions [] = { (0x6000 | ( STORY_ASUKA_HEADQUARTERS )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, ((void *)0) , 1, 4, 0, 0, 1 }
 
FieldActorEntry actor1 = { actor1Conditions, ((void *)0) , 1, 4, 0, 0, 1 }
 
FieldActorEntry actor2 = { actor2Conditions, ((void *)0) , 0xB, 5, 0, 0, 1 }
 
FieldActorEntry actor3 = { actor3Conditions, ((void *)0) , 0xB, 5, 0, 0, 1 }
 
FieldActorEntry actor4 = { actor4Conditions, ((void *)0) , 0xC, 6, 0, 0, 1 }
 
FieldActorEntry actor5 = { actor5Conditions, ((void *)0) , 0xC, 6, 0, 0, 1 }
 
FieldActorEntry actor6 = { ((void *)0) , actor6Talks, 0x10, 7, 0, 0, 1 }
 
FieldActorEntry actor7 = { ((void *)0) , ((void *)0) , 0x2D, 8, 0, 0, 1 }
 
FieldActorEntry actor8 = { ((void *)0) , ((void *)0) , 0x2F, 9, 0, 0, 1 }
 
FieldActorEntry actor9 = { ((void *)0) , ((void *)0) , 0x31, 0xA, 0, 0, 1 }
 
FieldActorEntry actor10 = { ((void *)0) , ((void *)0) , 0x35, 0xB, 0, 0, 1 }
 
FieldActorEntry actor11 = { ((void *)0) , ((void *)0) , 0x38, 0xC, 0, 0, 1 }
 
FieldActorEntry actor12 = { actor12Conditions, ((void *)0) , 0x9D, 0xD, 0, 0, 1 }
 
FieldActorEntry actor13 = { actor13Conditions, ((void *)0) , 0x9E, 0xE, 0, 0, 1 }
 
FieldActorEntry actor14 = { actor14Conditions, ((void *)0) , 0x110, 0xF, 0, 0, 1 }
 
FieldActorEntry actor15 = { actor15Conditions, ((void *)0) , 0x111, 0x10, 0, 0, 1 }
 
FieldActorEntry actor16 = { actor16Conditions, ((void *)0) , 0x112, 0x11, 0, 0, 1 }
 
FieldActorEntry * stageActors []
 
StageTile stageObjects []
 The tables and color setupStage gives FIELDSTG_state (FieldState)
 
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

WSTAG780: Street Corner, Kusanagi City (the Real World).

Junior's town outside the MAGAMI Online Center; the news of the undersea base attack and the ending.

Definition in file wstag780.c.

Macro Definition Documentation

◆ SPRITES

#define SPRITES   0x1C5

The file of the stage's sprites, which the versions number differently.

Definition at line 22 of file wstag780.c.

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   0xC

Definition at line 610 of file wstag780.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)

Definition at line 636 of file wstag780.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_700 - 1)

Definition at line 637 of file wstag780.c.

◆ STAGE_FILE

#define STAGE_FILE   0x1C5

Definition at line 638 of file wstag780.c.

◆ STAGE_ARCHIVE

#define STAGE_ARCHIVE   0x320

Definition at line 639 of file wstag780.c.

Function Documentation

◆ drawFlyer()

void drawFlyer ( StageFlyer *  task)

Draws the sprite at (x, y), flipped when it goes right.

< the map, its objects and characters, and the menus

Definition at line 26 of file wstag780.c.

Referenced by updateFlyer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateFlyer()

void updateFlyer ( StageFlyer *  task)

Moves the sprite diagonally unless it is still, animates it and ends it off screen.

Definition at line 44 of file wstag780.c.

Referenced by createFlyer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createFlyer()

void * createFlyer ( s32  up,
s32  right,
s32  still,
s32  anim 
)

Creates a flyer at the start the direction and stillness pick.

Definition at line 88 of file wstag780.c.

Referenced by releaseFlyers().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawGlow()

void drawGlow ( StageGlow *  task)

Draws the picture of file SPRITES with the frame of the level.

< the map, its objects and characters, and the menus

Definition at line 105 of file wstag780.c.

Referenced by updateGlow().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateGlow()

void updateGlow ( StageGlow *  task)

Raises the level with a sound, waits, lowers it and ends, drawing it.

Definition at line 116 of file wstag780.c.

Referenced by createCommand802().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createCommand802()

void * createCommand802 ( s32  arg)

Command 802 of the event scripts: the glow (updateGlow) of the MAGAMI Online Center's events.

Definition at line 161 of file wstag780.c.

Here is the call graph for this function:

◆ drawEffect()

void drawEffect ( StageEffect *  task,
void *  arg 
)

Draws the sprite of the effect at (x, y) at depth 4 of LAYER while it runs.

Definition at line 168 of file wstag780.c.

Referenced by updateEffect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateEffect()

void updateEffect ( StageEffect *  task)

A looping sprite animation at the place key1 picks, started at a random point.

< the map, its objects and characters, and the menus

Definition at line 182 of file wstag780.c.

Referenced by createEffect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createEffect()

void * createEffect ( s32  key)

Creates the task of updateEffect with KEY as its key1.

Definition at line 208 of file wstag780.c.

Referenced by updateEffectSet().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stepTileLoopAnimation()

s32 stepTileLoopAnimation ( StageTileAnim *  obj,
AnimFrame *  frames,
s32  depth 
)

Steps OBJ's animation through FRAMES by the frame time (at most 4), looping at the end (frame 0xFF), and returns its frame.

depth is 0 for the caller

Definition at line 220 of file wstag780.c.

Referenced by stepTileLoopAnimation(), and updateTileLoop2().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateTileLoop2()

void updateTileLoop2 ( StageTileLoop2 *  task)

Shows and loops the animations of the map objects with animations 1 and 2.

Definition at line 245 of file wstag780.c.

Referenced by createTileLoop2().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createTileLoop2()

void * createTileLoop2 ( void  )

Creates the looping map objects with animations 1 and 2 (updateTileLoop2)

Definition at line 284 of file wstag780.c.

Referenced by updateEffectSet().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateEffectSet()

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

Creates the six objects of updateEffect (keys 0-5) and the object of updateTileLoop2.

Definition at line 289 of file wstag780.c.

Referenced by createEffectSet().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createEffectSet()

void * createEffectSet ( void  )

Creates the stage's six effects and its looping map objects (updateEffectSet)

Definition at line 309 of file wstag780.c.

Referenced by updateStage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ releaseFlyers()

void releaseFlyers ( StageFlyerGate *  task,
void **  children 
)

Lets out the flyers of the sets that are on, where their children are free.

Definition at line 314 of file wstag780.c.

Referenced by updateFlyerGate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawFlyerGate()

void drawFlyerGate ( StageFlyerGate *  task)

Draws the three pictures of the gate.

< the map, its objects and characters, and the menus

Definition at line 345 of file wstag780.c.

Referenced by updateFlyerGate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateFlyerGate()

void updateFlyerGate ( StageFlyerGate *  task,
void **  children 
)

Swaps the pictures every 0x79 frames, letting out the flyers.

Definition at line 392 of file wstag780.c.

Referenced by createCommand800().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handleCommand800()

void handleCommand800 ( Task *  task,
s32  id 
)

Stops the object (substate 0) for map 0x324, starts it (substate 1) for 0x320.

Definition at line 448 of file wstag780.c.

◆ createCommand800()

void * createCommand800 ( s32  arg)

Creates the task of updateFlyerGate with id ARG.

Definition at line 462 of file wstag780.c.

Here is the call graph for this function:

◆ drawByteAnims()

void drawByteAnims ( StageByteAnims *  task)

Draws the 40 quads, those of kind 0 and 1 with the frames of the animations.

< the map, its objects and characters, and the menus

Definition at line 467 of file wstag780.c.

Referenced by updateByteAnims().

Here is the caller graph for this function:

◆ updateByteAnims()

void updateByteAnims ( StageByteAnims *  task)

Plays its two byte-pair animations, restarting one when its animation changes, and draws.

Definition at line 524 of file wstag780.c.

Referenced by createCommand801().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handleCommand801()

void handleCommand801 ( StageByteAnims *  task,
s32  id 
)

Switches the animations to 2 and 5 with a sound for map 0x322.

Definition at line 565 of file wstag780.c.

◆ createCommand801()

void * createCommand801 ( s32  arg)

Command 801 of the event scripts: the two animations of updateByteAnims in the MAGAMI Online Center's events.

Definition at line 577 of file wstag780.c.

Referenced by updateStage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateStage()

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

Creates an object and the event object of the story progress.

Definition at line 582 of file wstag780.c.

Here is the call graph for this function:

◆ endEvent0()

void endEvent0 ( void  )

After event 0, with Junior, Ivy and Teddy: moves the story on to STORY_START.

Definition at line 614 of file wstag780.c.

◆ endEvent885()

void endEvent885 ( void  )

After event 885: lets event 886 of WSTAG750 start.

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

Definition at line 619 of file wstag780.c.

◆ endEvent1500()

void endEvent1500 ( void  )

The end of event 1500, only in the European version: the story goes on to its extra chapter.

Definition at line 625 of file wstag780.c.

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map, actors and events, playing BGM00000, or BGM00001 at STORY_JUNGLE_SOUND, BGM00002 at 0x20 and BGM00003 at 0x27.

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.

< BGM00000: the Street Corner (Kusanagi City)

< BGM00000: the Street Corner (Kusanagi City)

< BGM00001: the Street Corner at STORY_JUNGLE_SOUND

< BGM00001: the Street Corner at STORY_JUNGLE_SOUND

< BGM00002: the Street Corner at STORY_REAL_WORLD

< BGM00002: the Street Corner at STORY_REAL_WORLD

< BGM00003: the Street Corner at STORY_ASUKA_HEADQUARTERS

< BGM00003: the Street Corner at STORY_ASUKA_HEADQUARTERS

Definition at line 645 of file wstag780.c.

Variable Documentation

◆ flyerFrames

u8 flyerFrames
Initial value:
= {
50, 52, 53, 55, 56, 57, 56, 57,
}

Defined below, after the code that uses them.

Definition at line 1164 of file wstag780.c.

Referenced by updateFlyer().

◆ flyerStarts

Vec2 flyerStarts
Initial value:
= {
{ { { 640, 72 }, { 432, 176 } }, { { 0, 224 }, { 0, 0 } } },
{ { { 448, 392 }, { 0, 0 } }, { { 112, 392 }, { 0, 0 } } },
}

Definition at line 1167 of file wstag780.c.

Referenced by createFlyer().

◆ updateEffectSpots

StageAnimSpot updateEffectSpots
Initial value:
= {
{ updateEffectSpots_0, 20, 130 },
{ updateEffectSpots_0, 80, 180 },
{ updateEffectSpots_0, 120, 230 },
{ updateEffectSpots_0, 170, 0x118 },
{ updateEffectSpots_4, 0x15E, 210 },
{ updateEffectSpots_4, 0x12C, 240 },
{ ((void *)0) , 0, 0 },
{ ((void *)0) , 0, 0 },
{ ((void *)0) , 0, 0 },
{ ((void *)0) , 0, 0 },
}
AnimFrame updateEffectSpots_0[]
Definition wstag780.c:1174
AnimFrame updateEffectSpots_4[]
Definition wstag780.c:1171

Definition at line 1177 of file wstag780.c.

Referenced by updateEffect().

◆ updateTileLoop2Frames

AnimFrame * updateTileLoop2Frames
Initial value:
= {
}
AnimFrame updateTileLoop2Frames_0[]
Definition wstag780.c:1189
AnimFrame updateTileLoop2Frames_1[]
Definition wstag780.c:1197

Definition at line 1204 of file wstag780.c.

Referenced by updateTileLoop2().

◆ drawByteAnimsTextures

StageQuadTexture drawByteAnimsTextures

Definition at line 1207 of file wstag780.c.

Referenced by drawByteAnims().

◆ drawByteAnimsQuads

StageQuad drawByteAnimsQuads

Definition at line 1292 of file wstag780.c.

Referenced by drawByteAnims().

◆ byteAnims

u8 * byteAnims
Initial value:
= {
((void *)0) ,
}
u8 byteAnims_2[]
Definition wstag780.c:1364
u8 byteAnims_5[]
Definition wstag780.c:1384
u8 byteAnims_4[]
Definition wstag780.c:1380
u8 byteAnims_0[]
Definition wstag780.c:1354
u8 byteAnims_3[]
Definition wstag780.c:1374
u8 byteAnims_1[]
Definition wstag780.c:1360

Definition at line 1398 of file wstag780.c.

Referenced by updateByteAnims().

◆ script0

s16 script0[]

Definition at line 676 of file wstag780.c.

◆ script684

s16 script684[]

Definition at line 818 of file wstag780.c.

◆ script742

s16 script742[]

Definition at line 875 of file wstag780.c.

◆ script885

s16 script885[]
Initial value:
= {
0x601, 1 , 0xE0 , 0xA0 ,
0x100, 2 , 0 , 0 ,
0x101, 2 , 1 , 1 ,
0x101, 0x321 , 0x321 , 0x321 ,
0x300, 0x78 ,
0x300, 0x1E ,
0x101, 0x321 , 0x322 , 0x321 ,
0x300, 0x5A ,
0x300, 0x12 ,
0x200, 0 , 1 , 2 , 4 ,
0x301 ,
0x300, 0x12 ,
0x300, 0x12 ,
0x304, 0x26D , 0x15E , 0xCA , 7 ,
0 ,
}

Definition at line 925 of file wstag780.c.

◆ script971

s16 script971[]

Definition at line 942 of file wstag780.c.

◆ script1500

s16 script1500[]

Definition at line 1019 of file wstag780.c.

◆ updateEffectSpots_4

AnimFrame updateEffectSpots_4[]
Initial value:
= {
{ 50, 4 }, { 51, 4 }, { 255, 0 },
}

Definition at line 1171 of file wstag780.c.

◆ updateEffectSpots_0

AnimFrame updateEffectSpots_0[]
Initial value:
= {
{ 53, 4 }, { 54, 4 }, { 255, 0 },
}

Definition at line 1174 of file wstag780.c.

◆ updateTileLoop2Frames_0

AnimFrame updateTileLoop2Frames_0[]
Initial value:
= {
{ 10, 12 }, { 11, 12 }, { 12, 12 }, { 13, 12 },
{ 14, 12 }, { 15, 20 }, { 16, 4 }, { 17, 4 },
{ 15, 4 }, { 13, 4 }, { 18, 4 }, { 11, 4 },
{ 13, 4 }, { 15, 4 }, { 13, 4 }, { 16, 4 },
{ 16, 4 }, { 15, 4 }, { 18, 4 }, { 17, 4 },
{ 11, 4 }, { 255, 0 },
}

Definition at line 1189 of file wstag780.c.

◆ updateTileLoop2Frames_1

AnimFrame updateTileLoop2Frames_1[]
Initial value:
= {
{ 18, 12 }, { 19, 12 }, { 20, 12 }, { 21, 12 },
{ 22, 12 }, { 23, 20 }, { 24, 4 }, { 25, 4 },
{ 22, 4 }, { 19, 4 }, { 21, 4 }, { 18, 4 },
{ 23, 4 }, { 20, 4 }, { 19, 4 }, { 25, 4 },
{ 22, 4 }, { 19, 4 }, { 18, 4 }, { 255, 0 },
}

Definition at line 1197 of file wstag780.c.

◆ byteAnims_0

u8 byteAnims_0[]
Initial value:
= {
0, 4, 1, 4, 2, 4, 3, 4,
4, 4, 5, 4, 6, 4, 7, 4,
8, 4, 9, 4, 10, 4, 11, 4,
0, 0, 0, 0,
}

Definition at line 1354 of file wstag780.c.

◆ byteAnims_1

u8 byteAnims_1[]
Initial value:
= {
31, 8, 32, 8, 33, 8, 34, 8,
35, 8, 36, 8, 37, 8, 0, 0,
}

Definition at line 1360 of file wstag780.c.

◆ byteAnims_2

u8 byteAnims_2[]
Initial value:
= {
12, 10, 13, 4, 14, 4, 15, 4,
16, 4, 17, 4, 18, 4, 19, 8,
20, 8, 19, 8, 20, 8, 19, 8,
20, 8, 19, 4, 21, 8, 22, 4,
23, 4, 24, 4, 25, 4, 26, 26,
26, 26, 27, 26, 26, 12, 28, 12,
29, 12, 29, 12, 30, 12, 29, 12,
28, 12, 26, 12, 19, 0, 0, 0,
}

Definition at line 1364 of file wstag780.c.

◆ byteAnims_3

u8 byteAnims_3[]
Initial value:
= {
38, 4, 39, 4, 40, 4, 41, 4,
42, 4, 43, 4, 44, 4, 45, 4,
46, 4, 47, 4, 48, 4, 49, 4,
0, 0, 0, 0,
}

Definition at line 1374 of file wstag780.c.

◆ byteAnims_4

u8 byteAnims_4[]
Initial value:
= {
69, 4, 70, 4, 71, 4, 72, 4,
73, 4, 74, 4, 75, 4, 0, 0,
}

Definition at line 1380 of file wstag780.c.

◆ byteAnims_5

u8 byteAnims_5[]
Initial value:
= {
50, 10, 51, 4, 52, 4, 53, 4,
54, 4, 55, 4, 56, 4, 57, 8,
58, 8, 57, 8, 58, 8, 57, 8,
58, 8, 57, 4, 59, 8, 60, 4,
61, 4, 62, 4, 63, 4, 64, 26,
64, 26, 65, 26, 64, 12, 66, 12,
67, 12, 67, 12, 68, 12, 67, 12,
66, 12, 64, 12, 76, 120, 77, 120,
64, 26, 64, 26, 65, 26, 64, 12,
66, 12, 67, 12, 67, 12, 68, 12,
67, 12, 66, 12, 64, 12, 78, 120,
79, 120, 19, 0,
}

Definition at line 1384 of file wstag780.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, 0x176, 0x1B4, 0xD8, 0xB4, 0x170, 0x1EC },
{ 0x140, 0x100, 0x162, 0x1D8, 0x88, 0xD8, 0x170, 0x1EB },
{ 0x1C0, 0x100, 0x1EA, 0x150, 0x2A8, 0x50, 0x170, 0x1EA },
{ 0x180, 0x100, 0x1B6, 0x100, 0x1D8, 0, 0x170, 0x1E9 },
{ 0x140, 0x100, 0x14E, 0x18A, 0x38, 0x8A, 0x170, 0x1E8 },
{ 0x1C0, 0x100, 0x1CA, 0x150, 0x228, 0x50, 0x170, 0x1E7 },
{ 0x1C0, 0x100, 0x1D2, 0x150, 0x248, 0x50, 0x170, 0x1E6 },
{ 0x1C0, 0x100, 0x1DA, 0x150, 0x268, 0x50, 0x170, 0x1E5 },
{ 0x1C0, 0x100, 0x1E2, 0x150, 0x288, 0x50, 0x170, 0x1E4 },
{ 0x1C0, 0x100, 0x1F2, 0x150, 0x2C8, 0x50, 0x170, 0x1E3 },
{ 0x1C0, 0x100, 0x1EA, 0x170, 0x2A8, 0x70, 0x170, 0x1E2 },
{ 0x1C0, 0x100, 0x1F2, 0x170, 0x2C8, 0x70, 0x170, 0x1E1 },
{ 0x1C0, 0x100, 0x1C0, 0x178, 0x200, 0x78, 0x170, 0x1E0 },
{ 0x1C0, 0x100, 0x1C8, 0x178, 0x220, 0x78, 0x170, 0x1DF },
}

Definition at line 1407 of file wstag780.c.

Referenced by setupStage().

◆ actor6Talks

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

Definition at line 1429 of file wstag780.c.

◆ actor0Conditions

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

Definition at line 1434 of file wstag780.c.

◆ actor1Conditions

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

Definition at line 1435 of file wstag780.c.

◆ actor2Conditions

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

Definition at line 1436 of file wstag780.c.

◆ actor3Conditions

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

Definition at line 1437 of file wstag780.c.

◆ actor4Conditions

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

Definition at line 1438 of file wstag780.c.

◆ actor5Conditions

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

Definition at line 1439 of file wstag780.c.

◆ actor12Conditions

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

Definition at line 1440 of file wstag780.c.

◆ actor13Conditions

u16 actor13Conditions[] = { (0x6000 | ( STORY_ASUKA_HEADQUARTERS )) , 1, 0xFFFF }

Definition at line 1441 of file wstag780.c.

◆ actor14Conditions

u16 actor14Conditions[] = { (0x6000 | ( STORY_ASUKA_HEADQUARTERS )) , 1, 0xFFFF }

Definition at line 1442 of file wstag780.c.

◆ actor15Conditions

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

Definition at line 1443 of file wstag780.c.

◆ actor16Conditions

u16 actor16Conditions[] = { (0x6000 | ( STORY_ASUKA_HEADQUARTERS )) , 1, 0xFFFF }

Definition at line 1444 of file wstag780.c.

◆ actor0

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

Definition at line 1445 of file wstag780.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, ((void *)0) , 1, 4, 0, 0, 1 }

Definition at line 1446 of file wstag780.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, ((void *)0) , 0xB, 5, 0, 0, 1 }

Definition at line 1447 of file wstag780.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, ((void *)0) , 0xB, 5, 0, 0, 1 }

Definition at line 1448 of file wstag780.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, ((void *)0) , 0xC, 6, 0, 0, 1 }

Definition at line 1449 of file wstag780.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, ((void *)0) , 0xC, 6, 0, 0, 1 }

Definition at line 1450 of file wstag780.c.

◆ actor6

FieldActorEntry actor6 = { ((void *)0) , actor6Talks, 0x10, 7, 0, 0, 1 }

Definition at line 1451 of file wstag780.c.

◆ actor7

FieldActorEntry actor7 = { ((void *)0) , ((void *)0) , 0x2D, 8, 0, 0, 1 }

Definition at line 1452 of file wstag780.c.

◆ actor8

FieldActorEntry actor8 = { ((void *)0) , ((void *)0) , 0x2F, 9, 0, 0, 1 }

Definition at line 1453 of file wstag780.c.

◆ actor9

FieldActorEntry actor9 = { ((void *)0) , ((void *)0) , 0x31, 0xA, 0, 0, 1 }

Definition at line 1454 of file wstag780.c.

◆ actor10

FieldActorEntry actor10 = { ((void *)0) , ((void *)0) , 0x35, 0xB, 0, 0, 1 }

Definition at line 1455 of file wstag780.c.

◆ actor11

FieldActorEntry actor11 = { ((void *)0) , ((void *)0) , 0x38, 0xC, 0, 0, 1 }

Definition at line 1456 of file wstag780.c.

◆ actor12

FieldActorEntry actor12 = { actor12Conditions, ((void *)0) , 0x9D, 0xD, 0, 0, 1 }

Definition at line 1457 of file wstag780.c.

◆ actor13

FieldActorEntry actor13 = { actor13Conditions, ((void *)0) , 0x9E, 0xE, 0, 0, 1 }

Definition at line 1458 of file wstag780.c.

◆ actor14

FieldActorEntry actor14 = { actor14Conditions, ((void *)0) , 0x110, 0xF, 0, 0, 1 }

Definition at line 1459 of file wstag780.c.

◆ actor15

FieldActorEntry actor15 = { actor15Conditions, ((void *)0) , 0x111, 0x10, 0, 0, 1 }

Definition at line 1460 of file wstag780.c.

◆ actor16

FieldActorEntry actor16 = { actor16Conditions, ((void *)0) , 0x112, 0x11, 0, 0, 1 }

Definition at line 1461 of file wstag780.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag780.c:1445
FieldActorEntry actor6
Definition wstag780.c:1451
FieldActorEntry actor5
Definition wstag780.c:1450
FieldActorEntry actor2
Definition wstag780.c:1447
FieldActorEntry actor10
Definition wstag780.c:1455
FieldActorEntry actor4
Definition wstag780.c:1449
FieldActorEntry actor8
Definition wstag780.c:1453
FieldActorEntry actor9
Definition wstag780.c:1454
FieldActorEntry actor15
Definition wstag780.c:1460
FieldActorEntry actor12
Definition wstag780.c:1457
FieldActorEntry actor16
Definition wstag780.c:1461
FieldActorEntry actor7
Definition wstag780.c:1452
FieldActorEntry actor13
Definition wstag780.c:1458
FieldActorEntry actor11
Definition wstag780.c:1456
FieldActorEntry actor1
Definition wstag780.c:1446
FieldActorEntry actor3
Definition wstag780.c:1448
FieldActorEntry actor14
Definition wstag780.c:1459

Definition at line 1462 of file wstag780.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 0, 1, 0x40, 2, 0xA, 0, 0, 0, 0, 0, 198, 179, 0, 0 },
{ 0, 2, 0x40, 2, 0x12, 0, 0, 0, 0, 0, 342, 251, 0, 0 },
{ 0, 0, 0x80, 6, 0x32, 0, 0, 0, 0, 0, 363, 206, 0, 0 },
{ 0, 0, 0x80, 6, 0x35, 0, 0, 0, 0, 0, 136, 235, 0, 0 },
{ 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 190, 156, 231, 0 },
{ 1, 0, 0x40, 4, 2, 0, 0, 0, 0, 0, 346, 229, 303, 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 1482 of file wstag780.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map, actors and events, playing BGM00000, or BGM00001 at STORY_JUNGLE_SOUND,...
Definition wstag780.c:645

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 1491 of file wstag780.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 0, script0, ( ( 0x14B - 1) << 16 | ( 0 )), ((void *)0) , endEvent0 },
{ 684, script684, ( ( 0x14B - 1) << 16 | ( 0x20 )), ((void *)0) , ((void *)0) },
{ 742, script742, ( ( 0x14B - 1) << 16 | ( 0x21 )), ((void *)0) , ((void *)0) },
{ 885, script885, ( ( 0x14B - 1) << 16 | ( 0x22 )), ((void *)0) , endEvent885 },
{ 971, script971, ( ( 0x14B - 1) << 16 | ( 0x23 )), ((void *)0) , ((void *)0) },
{ 1500, script1500, ( ( 0x14B - 1) << 16 | ( 0x24 )), ((void *)0) , endEvent1500 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void endEvent0(void)
After event 0, with Junior, Ivy and Teddy: moves the story on to STORY_START.
Definition wstag780.c:614
s16 script0[]
Definition wstag780.c:676
void endEvent1500(void)
The end of event 1500, only in the European version: the story goes on to its extra chapter.
Definition wstag780.c:625
s16 script1500[]
Definition wstag780.c:1019
s16 script971[]
Definition wstag780.c:942
s16 script885[]
Definition wstag780.c:925
s16 script742[]
Definition wstag780.c:875
s16 script684[]
Definition wstag780.c:818
void endEvent885(void)
After event 885: lets event 886 of WSTAG750 start.
Definition wstag780.c:619

Definition at line 1494 of file wstag780.c.

Referenced by setupStage().