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

WSTAG340: Shell Beach, Central 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 wstag340.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_02)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_300 - 1)
 
#define STAGE_FILE   0x3A2
 

Functions

void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0014; BGM_0029 instead at story steps 0x27 to 0x28; battle list 0 before STORY_SUZAKU_BADGE, 1 from then on.
 

Variables

const CVECTOR stageColor = { 0x54, 0x67, 0x96, 0x00 }
 the color the setup copies to FIELDSTG_state.spriteColor
 
s16 script1310 []
 
AreaBattle place0Area0Battle0 = { 39, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area0Battle1 = { 39, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area0Battle2 = { 39, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area0Battle3 = { 39, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area0Battle4 = { 40, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area0Battle5 = { 40, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area0Battle6 = { 40, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area0Battle7 = { 40, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList place0Area0Battles
 
AreaBattle place0Area1Battle0 = { 37, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area1Battle1 = { 37, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area1Battle2 = { 37, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area1Battle3 = { 37, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area1Battle4 = { 37, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area1Battle5 = { 37, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area1Battle6 = { 37, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area1Battle7 = { 37, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList place0Area1Battles
 
AreaBattle place0Area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place0Area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place0Area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place0Area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place0Area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place0Area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place0Area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place0Area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList place0Area2Battles
 
AreaBattle place0Area3Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place0Area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place0Area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place0Area3Battle3 = { 327, 13, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area3Battle4 = { 328, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place0Area3Battle6 = { 49, 13, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place0Area3Battle7 = { 54, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList place0Area3Battles
 
AreaBattle place1Area0Battle0 = { 39, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area0Battle1 = { 39, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area0Battle2 = { 39, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area0Battle3 = { 39, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area0Battle4 = { 40, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area0Battle5 = { 40, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area0Battle6 = { 40, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area0Battle7 = { 40, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList place1Area0Battles
 
AreaBattle place1Area1Battle0 = { 59, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area1Battle1 = { 59, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area1Battle2 = { 59, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area1Battle3 = { 59, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area1Battle4 = { 59, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area1Battle5 = { 59, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area1Battle6 = { 59, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area1Battle7 = { 59, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList place1Area1Battles
 
AreaBattle place1Area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place1Area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place1Area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place1Area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place1Area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place1Area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place1Area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place1Area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList place1Area2Battles
 
AreaBattle place1Area3Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place1Area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place1Area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place1Area3Battle3 = { 327, 13, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area3Battle4 = { 328, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle place1Area3Battle6 = { 49, 13, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle place1Area3Battle7 = { 54, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList place1Area3Battles
 
FieldBattles stageBattles []
 
ActorImage stageImages []
 
u16 actor2Talk0Conditions [] = { (( 0x1A ) << 8 | ( 0x36 )) , 0, 0xFFFF }
 
u16 actor2Talk0Actions [] = { (( 0x1A ) << 8 | ( 0x36 )) , 1, 0xFFFF }
 
u16 actor2Talk1Conditions [] = { (( 0x1A ) << 8 | ( 0x36 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x192 )), 0, 0xFFFF }
 
u16 actor2Talk2Conditions []
 
u16 actor2Talk2Actions [] = { (( 0x1A ) << 8 | ( 0x21 )) , 1, 0xFFFF }
 
u16 actor2Talk3Conditions []
 
u16 actor2Talk3Actions [] = { (0x8000 | ( 0 ) << 9 | ( 5 )), 1, (0x9000 | ( 0x47 )) , 1, 0xFFFF }
 
u16 actor2Talk4Conditions []
 
u16 actor3Talk0Conditions [] = { (( 0x1A ) << 8 | ( 0x36 )) , 0, 0xFFFF }
 
u16 actor3Talk0Actions [] = { (( 0x1A ) << 8 | ( 0x36 )) , 1, 0xFFFF }
 
u16 actor3Talk1Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 0, (( 0x1A ) << 8 | ( 0x36 )) , 1, 0xFFFF }
 
u16 actor3Talk2Conditions []
 
u16 actor3Talk2Actions [] = { (( 0x1A ) << 8 | ( 0x21 )) , 1, 0xFFFF }
 
u16 actor3Talk3Conditions []
 
u16 actor3Talk3Actions [] = { (0x8000 | ( 0 ) << 9 | ( 5 )), 1, (0x9000 | ( 0x47 )) , 1, 0xFFFF }
 
u16 actor3Talk4Conditions []
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
u16 actor0Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor1Conditions []
 
u16 actor2Conditions []
 
u16 actor3Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, (0x8000 | ( 0 ) << 9 | ( 5 )), 0, 0xFFFF }
 
u16 actor4Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, (0x8000 | ( 0 ) << 9 | ( 5 )), 1, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x9D, 4, 412, 642, 1 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x11A, 5, 412, 642, 1 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x11A, 5, 412, 642, 1 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x11A, 5, 412, 642, 1 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x11A, 5, 412, 642, 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

WSTAG340: Shell Beach, Central Sector.

Definition in file wstag340.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_02)

Definition at line 17 of file wstag340.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_300 - 1)

Definition at line 18 of file wstag340.c.

◆ STAGE_FILE

#define STAGE_FILE   0x3A2

Definition at line 19 of file wstag340.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0014; BGM_0029 instead at story steps 0x27 to 0x28; battle list 0 before STORY_SUZAKU_BADGE, 1 from then on.

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_0014: Shell Beach, Plug Cape, Phoenix Bay and South Cape

< ENV_0014: Shell Beach, Plug Cape, Phoenix Bay and South Cape

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

< a cell's value: its battle area (FieldBattles), or 0

< BGM_0029: the cities and their streets instead of their music while the story is at a crisis (Knightmon reprogrammed, the A.o.A's headquarters, the Amaterasu server's Oinkmon)

< BGM_0029: the cities and their streets instead of their music while the story is at a crisis (Knightmon reprogrammed, the A.o.A's headquarters, the Amaterasu server's Oinkmon)

Definition at line 26 of file wstag340.c.

Variable Documentation

◆ stageColor

const CVECTOR stageColor = { 0x54, 0x67, 0x96, 0x00 }

the color the setup copies to FIELDSTG_state.spriteColor

the color the setup copies to FIELDSTG_state.spriteColor

It starts the stage, before its jump tables: in wstag924.c GCC would align them to 8 bytes after it, so it is a file of its own, linked first

Definition at line 11 of file wstag340.c.

Referenced by setupStage().

◆ script1310

s16 script1310[]
Initial value:
= {
0x102, 2 , 0x1C0 , 0x270 , 1 ,
0x101, 0x11A , 7 , 5 ,
0x101, 0x32D , 0x337 , 2 ,
0x302, 2 ,
0x101, 2 , 1 , 1 ,
0x300, 0x1E ,
0x200, 0 , 1 , 0x11A , 1 ,
0x301 ,
0x101, 0x323 , 0x325 , 2 ,
0x101, 0x32D , 0x34A , 2 ,
0x300, 0x78 ,
0x101, 0x323 , 0x326 , 2 ,
0x300, 0x1E ,
0x200, 0 , 2 , 2 , 2 ,
0x101, 2 , 7 , 1 ,
0x301 ,
0x101, 2 , 1 , 1 ,
0x300, 0x1E ,
0x200, 0 , 3 , 0x11A , 1 ,
0x301 ,
0x101, 0x11A , 7 , 3 ,
0x300, 0x1E ,
0x101, 0x11A , 1 , 1 ,
0x300, 0x1E ,
0 ,
}

Definition at line 57 of file wstag340.c.

◆ place0Area0Battle0

AreaBattle place0Area0Battle0 = { 39, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 84 of file wstag340.c.

◆ place0Area0Battle1

AreaBattle place0Area0Battle1 = { 39, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 85 of file wstag340.c.

◆ place0Area0Battle2

AreaBattle place0Area0Battle2 = { 39, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 86 of file wstag340.c.

◆ place0Area0Battle3

AreaBattle place0Area0Battle3 = { 39, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 87 of file wstag340.c.

◆ place0Area0Battle4

AreaBattle place0Area0Battle4 = { 40, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 88 of file wstag340.c.

◆ place0Area0Battle5

AreaBattle place0Area0Battle5 = { 40, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 89 of file wstag340.c.

◆ place0Area0Battle6

AreaBattle place0Area0Battle6 = { 40, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 90 of file wstag340.c.

◆ place0Area0Battle7

AreaBattle place0Area0Battle7 = { 40, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 91 of file wstag340.c.

◆ place0Area0Battles

BattleList place0Area0Battles
Initial value:
= {
3,
}
AreaBattle place0Area0Battle6
Definition wstag340.c:90
AreaBattle place0Area0Battle1
Definition wstag340.c:85
AreaBattle place0Area0Battle2
Definition wstag340.c:86
AreaBattle place0Area0Battle4
Definition wstag340.c:88
AreaBattle place0Area0Battle7
Definition wstag340.c:91
AreaBattle place0Area0Battle3
Definition wstag340.c:87
AreaBattle place0Area0Battle5
Definition wstag340.c:89
AreaBattle place0Area0Battle0
Definition wstag340.c:84

Definition at line 92 of file wstag340.c.

◆ place0Area1Battle0

AreaBattle place0Area1Battle0 = { 37, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 97 of file wstag340.c.

◆ place0Area1Battle1

AreaBattle place0Area1Battle1 = { 37, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 98 of file wstag340.c.

◆ place0Area1Battle2

AreaBattle place0Area1Battle2 = { 37, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 99 of file wstag340.c.

◆ place0Area1Battle3

AreaBattle place0Area1Battle3 = { 37, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 100 of file wstag340.c.

◆ place0Area1Battle4

AreaBattle place0Area1Battle4 = { 37, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 101 of file wstag340.c.

◆ place0Area1Battle5

AreaBattle place0Area1Battle5 = { 37, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 102 of file wstag340.c.

◆ place0Area1Battle6

AreaBattle place0Area1Battle6 = { 37, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 103 of file wstag340.c.

◆ place0Area1Battle7

AreaBattle place0Area1Battle7 = { 37, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 104 of file wstag340.c.

◆ place0Area1Battles

BattleList place0Area1Battles
Initial value:
= {
3,
}
AreaBattle place0Area1Battle2
Definition wstag340.c:99
AreaBattle place0Area1Battle7
Definition wstag340.c:104
AreaBattle place0Area1Battle5
Definition wstag340.c:102
AreaBattle place0Area1Battle0
Definition wstag340.c:97
AreaBattle place0Area1Battle4
Definition wstag340.c:101
AreaBattle place0Area1Battle6
Definition wstag340.c:103
AreaBattle place0Area1Battle3
Definition wstag340.c:100
AreaBattle place0Area1Battle1
Definition wstag340.c:98

Definition at line 105 of file wstag340.c.

◆ place0Area2Battle0

AreaBattle place0Area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 110 of file wstag340.c.

◆ place0Area2Battle1

AreaBattle place0Area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 111 of file wstag340.c.

◆ place0Area2Battle2

AreaBattle place0Area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 112 of file wstag340.c.

◆ place0Area2Battle3

AreaBattle place0Area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 113 of file wstag340.c.

◆ place0Area2Battle4

AreaBattle place0Area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 114 of file wstag340.c.

◆ place0Area2Battle5

AreaBattle place0Area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 115 of file wstag340.c.

◆ place0Area2Battle6

AreaBattle place0Area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 116 of file wstag340.c.

◆ place0Area2Battle7

AreaBattle place0Area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 117 of file wstag340.c.

◆ place0Area2Battles

BattleList place0Area2Battles
Initial value:
= {
0,
}
AreaBattle place0Area2Battle1
Definition wstag340.c:111
AreaBattle place0Area2Battle0
Definition wstag340.c:110
AreaBattle place0Area2Battle6
Definition wstag340.c:116
AreaBattle place0Area2Battle4
Definition wstag340.c:114
AreaBattle place0Area2Battle3
Definition wstag340.c:113
AreaBattle place0Area2Battle2
Definition wstag340.c:112
AreaBattle place0Area2Battle7
Definition wstag340.c:117
AreaBattle place0Area2Battle5
Definition wstag340.c:115

Definition at line 118 of file wstag340.c.

◆ place0Area3Battle0

AreaBattle place0Area3Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 123 of file wstag340.c.

◆ place0Area3Battle1

AreaBattle place0Area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 124 of file wstag340.c.

◆ place0Area3Battle2

AreaBattle place0Area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 125 of file wstag340.c.

◆ place0Area3Battle3

AreaBattle place0Area3Battle3 = { 327, 13, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 126 of file wstag340.c.

◆ place0Area3Battle4

AreaBattle place0Area3Battle4 = { 328, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 127 of file wstag340.c.

◆ place0Area3Battle5

AreaBattle place0Area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 128 of file wstag340.c.

◆ place0Area3Battle6

AreaBattle place0Area3Battle6 = { 49, 13, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 129 of file wstag340.c.

◆ place0Area3Battle7

AreaBattle place0Area3Battle7 = { 54, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 130 of file wstag340.c.

◆ place0Area3Battles

BattleList place0Area3Battles
Initial value:
= {
0,
}
AreaBattle place0Area3Battle0
Definition wstag340.c:123
AreaBattle place0Area3Battle7
Definition wstag340.c:130
AreaBattle place0Area3Battle1
Definition wstag340.c:124
AreaBattle place0Area3Battle2
Definition wstag340.c:125
AreaBattle place0Area3Battle4
Definition wstag340.c:127
AreaBattle place0Area3Battle6
Definition wstag340.c:129
AreaBattle place0Area3Battle3
Definition wstag340.c:126
AreaBattle place0Area3Battle5
Definition wstag340.c:128

Definition at line 131 of file wstag340.c.

◆ place1Area0Battle0

AreaBattle place1Area0Battle0 = { 39, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 136 of file wstag340.c.

◆ place1Area0Battle1

AreaBattle place1Area0Battle1 = { 39, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 137 of file wstag340.c.

◆ place1Area0Battle2

AreaBattle place1Area0Battle2 = { 39, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 138 of file wstag340.c.

◆ place1Area0Battle3

AreaBattle place1Area0Battle3 = { 39, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 139 of file wstag340.c.

◆ place1Area0Battle4

AreaBattle place1Area0Battle4 = { 40, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 140 of file wstag340.c.

◆ place1Area0Battle5

AreaBattle place1Area0Battle5 = { 40, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 141 of file wstag340.c.

◆ place1Area0Battle6

AreaBattle place1Area0Battle6 = { 40, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 142 of file wstag340.c.

◆ place1Area0Battle7

AreaBattle place1Area0Battle7 = { 40, 1, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 143 of file wstag340.c.

◆ place1Area0Battles

BattleList place1Area0Battles
Initial value:
= {
3,
}
AreaBattle place1Area0Battle3
Definition wstag340.c:139
AreaBattle place1Area0Battle6
Definition wstag340.c:142
AreaBattle place1Area0Battle1
Definition wstag340.c:137
AreaBattle place1Area0Battle2
Definition wstag340.c:138
AreaBattle place1Area0Battle0
Definition wstag340.c:136
AreaBattle place1Area0Battle5
Definition wstag340.c:141
AreaBattle place1Area0Battle7
Definition wstag340.c:143
AreaBattle place1Area0Battle4
Definition wstag340.c:140

Definition at line 144 of file wstag340.c.

◆ place1Area1Battle0

AreaBattle place1Area1Battle0 = { 59, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 149 of file wstag340.c.

◆ place1Area1Battle1

AreaBattle place1Area1Battle1 = { 59, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 150 of file wstag340.c.

◆ place1Area1Battle2

AreaBattle place1Area1Battle2 = { 59, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 151 of file wstag340.c.

◆ place1Area1Battle3

AreaBattle place1Area1Battle3 = { 59, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 152 of file wstag340.c.

◆ place1Area1Battle4

AreaBattle place1Area1Battle4 = { 59, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 153 of file wstag340.c.

◆ place1Area1Battle5

AreaBattle place1Area1Battle5 = { 59, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 154 of file wstag340.c.

◆ place1Area1Battle6

AreaBattle place1Area1Battle6 = { 59, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 155 of file wstag340.c.

◆ place1Area1Battle7

AreaBattle place1Area1Battle7 = { 59, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 156 of file wstag340.c.

◆ place1Area1Battles

BattleList place1Area1Battles
Initial value:
= {
3,
}
AreaBattle place1Area1Battle2
Definition wstag340.c:151
AreaBattle place1Area1Battle5
Definition wstag340.c:154
AreaBattle place1Area1Battle7
Definition wstag340.c:156
AreaBattle place1Area1Battle4
Definition wstag340.c:153
AreaBattle place1Area1Battle1
Definition wstag340.c:150
AreaBattle place1Area1Battle3
Definition wstag340.c:152
AreaBattle place1Area1Battle6
Definition wstag340.c:155
AreaBattle place1Area1Battle0
Definition wstag340.c:149

Definition at line 157 of file wstag340.c.

◆ place1Area2Battle0

AreaBattle place1Area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 162 of file wstag340.c.

◆ place1Area2Battle1

AreaBattle place1Area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 163 of file wstag340.c.

◆ place1Area2Battle2

AreaBattle place1Area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 164 of file wstag340.c.

◆ place1Area2Battle3

AreaBattle place1Area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 165 of file wstag340.c.

◆ place1Area2Battle4

AreaBattle place1Area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 166 of file wstag340.c.

◆ place1Area2Battle5

AreaBattle place1Area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 167 of file wstag340.c.

◆ place1Area2Battle6

AreaBattle place1Area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 168 of file wstag340.c.

◆ place1Area2Battle7

AreaBattle place1Area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 169 of file wstag340.c.

◆ place1Area2Battles

BattleList place1Area2Battles
Initial value:
= {
0,
}
AreaBattle place1Area2Battle4
Definition wstag340.c:166
AreaBattle place1Area2Battle7
Definition wstag340.c:169
AreaBattle place1Area2Battle0
Definition wstag340.c:162
AreaBattle place1Area2Battle2
Definition wstag340.c:164
AreaBattle place1Area2Battle3
Definition wstag340.c:165
AreaBattle place1Area2Battle1
Definition wstag340.c:163
AreaBattle place1Area2Battle5
Definition wstag340.c:167
AreaBattle place1Area2Battle6
Definition wstag340.c:168

Definition at line 170 of file wstag340.c.

◆ place1Area3Battle0

AreaBattle place1Area3Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 175 of file wstag340.c.

◆ place1Area3Battle1

AreaBattle place1Area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 176 of file wstag340.c.

◆ place1Area3Battle2

AreaBattle place1Area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 177 of file wstag340.c.

◆ place1Area3Battle3

AreaBattle place1Area3Battle3 = { 327, 13, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 178 of file wstag340.c.

◆ place1Area3Battle4

AreaBattle place1Area3Battle4 = { 328, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 179 of file wstag340.c.

◆ place1Area3Battle5

AreaBattle place1Area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 180 of file wstag340.c.

◆ place1Area3Battle6

AreaBattle place1Area3Battle6 = { 49, 13, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 181 of file wstag340.c.

◆ place1Area3Battle7

AreaBattle place1Area3Battle7 = { 54, 2, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 182 of file wstag340.c.

◆ place1Area3Battles

BattleList place1Area3Battles
Initial value:
= {
0,
}
AreaBattle place1Area3Battle3
Definition wstag340.c:178
AreaBattle place1Area3Battle5
Definition wstag340.c:180
AreaBattle place1Area3Battle7
Definition wstag340.c:182
AreaBattle place1Area3Battle2
Definition wstag340.c:177
AreaBattle place1Area3Battle0
Definition wstag340.c:175
AreaBattle place1Area3Battle6
Definition wstag340.c:181
AreaBattle place1Area3Battle1
Definition wstag340.c:176
AreaBattle place1Area3Battle4
Definition wstag340.c:179

Definition at line 183 of file wstag340.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList place0Area3Battles
Definition wstag340.c:131
BattleList place0Area2Battles
Definition wstag340.c:118
BattleList place1Area1Battles
Definition wstag340.c:157
BattleList place0Area1Battles
Definition wstag340.c:105
BattleList place1Area0Battles
Definition wstag340.c:144
BattleList place1Area2Battles
Definition wstag340.c:170
BattleList place1Area3Battles
Definition wstag340.c:183
BattleList place0Area0Battles
Definition wstag340.c:92

Definition at line 188 of file wstag340.c.

Referenced by setupStage().

◆ 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, 0x172, 0x181, 0xC8, 0x81, 0x150, 0x1FF },
{ 0x140, 0x100, 0x172, 0x1A1, 0xC8, 0xA1, 0x160, 0x1FF },
}

Definition at line 192 of file wstag340.c.

Referenced by setupStage().

◆ actor2Talk0Conditions

u16 actor2Talk0Conditions[] = { (( 0x1A ) << 8 | ( 0x36 )) , 0, 0xFFFF }

Definition at line 202 of file wstag340.c.

◆ actor2Talk0Actions

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

Definition at line 203 of file wstag340.c.

◆ actor2Talk1Conditions

u16 actor2Talk1Conditions[] = { (( 0x1A ) << 8 | ( 0x36 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x192 )), 0, 0xFFFF }

Definition at line 204 of file wstag340.c.

◆ actor2Talk2Conditions

u16 actor2Talk2Conditions[]
Initial value:
= {
(( 0x1A ) << 8 | ( 0x36 )) , 1,
(0x7000 | ( 0x3A )) , 0,
(0x8000 | ( 0 ) << 9 | ( 0x192 )), 1,
0xFFFF ,
}

Definition at line 205 of file wstag340.c.

◆ actor2Talk2Actions

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

Definition at line 211 of file wstag340.c.

◆ actor2Talk3Conditions

u16 actor2Talk3Conditions[]
Initial value:
= {
(( 0x1A ) << 8 | ( 0x36 )) , 1,
(0x7000 | ( 0x3A )) , 1,
(0x8000 | ( 0 ) << 9 | ( 5 )), 0,
(0x8000 | ( 0 ) << 9 | ( 0x192 )), 1,
0xFFFF ,
}

Definition at line 212 of file wstag340.c.

◆ actor2Talk3Actions

u16 actor2Talk3Actions[] = { (0x8000 | ( 0 ) << 9 | ( 5 )), 1, (0x9000 | ( 0x47 )) , 1, 0xFFFF }

Definition at line 219 of file wstag340.c.

◆ actor2Talk4Conditions

u16 actor2Talk4Conditions[]
Initial value:
= {
(( 0x1A ) << 8 | ( 0x36 )) , 1,
(0x7000 | ( 0x3A )) , 1,
(0x8000 | ( 0 ) << 9 | ( 5 )), 1,
(0x8000 | ( 0 ) << 9 | ( 0x192 )), 1,
0xFFFF ,
}

Definition at line 220 of file wstag340.c.

◆ actor3Talk0Conditions

u16 actor3Talk0Conditions[] = { (( 0x1A ) << 8 | ( 0x36 )) , 0, 0xFFFF }

Definition at line 227 of file wstag340.c.

◆ actor3Talk0Actions

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

Definition at line 228 of file wstag340.c.

◆ actor3Talk1Conditions

u16 actor3Talk1Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 0, (( 0x1A ) << 8 | ( 0x36 )) , 1, 0xFFFF }

Definition at line 229 of file wstag340.c.

◆ actor3Talk2Conditions

u16 actor3Talk2Conditions[]
Initial value:
= {
(( 0x1A ) << 8 | ( 0x36 )) , 1,
(0x8000 | ( 0 ) << 9 | ( 0x192 )), 1,
(0x7000 | ( 0x3A )) , 0,
0xFFFF ,
}

Definition at line 230 of file wstag340.c.

◆ actor3Talk2Actions

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

Definition at line 236 of file wstag340.c.

◆ actor3Talk3Conditions

u16 actor3Talk3Conditions[]
Initial value:
= {
(0x8000 | ( 0 ) << 9 | ( 0x192 )), 1,
(0x7000 | ( 0x3A )) , 1,
(0x8000 | ( 0 ) << 9 | ( 5 )), 0,
(( 0x1A ) << 8 | ( 0x36 )) , 1,
0xFFFF ,
}

Definition at line 237 of file wstag340.c.

◆ actor3Talk3Actions

u16 actor3Talk3Actions[] = { (0x8000 | ( 0 ) << 9 | ( 5 )), 1, (0x9000 | ( 0x47 )) , 1, 0xFFFF }

Definition at line 244 of file wstag340.c.

◆ actor3Talk4Conditions

u16 actor3Talk4Conditions[]
Initial value:
= {
(( 0x1A ) << 8 | ( 0x36 )) , 1,
(0x8000 | ( 0 ) << 9 | ( 0x192 )), 1,
(0x7000 | ( 0x3A )) , 1,
(0x8000 | ( 0 ) << 9 | ( 5 )), 1,
0xFFFF ,
}

Definition at line 245 of file wstag340.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x293 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 252 of file wstag340.c.

◆ actor1Talks

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

Definition at line 256 of file wstag340.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ actor2Talk1Conditions, ((void *)0) , 0x28F },
{ actor2Talk4Conditions, ((void *)0) , 0x292 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk1Conditions[]
Definition wstag340.c:204
u16 actor2Talk3Conditions[]
Definition wstag340.c:212
u16 actor2Talk0Actions[]
Definition wstag340.c:203
u16 actor2Talk2Conditions[]
Definition wstag340.c:205
u16 actor2Talk3Actions[]
Definition wstag340.c:219
u16 actor2Talk0Conditions[]
Definition wstag340.c:202
u16 actor2Talk2Actions[]
Definition wstag340.c:211
u16 actor2Talk4Conditions[]
Definition wstag340.c:220

Definition at line 260 of file wstag340.c.

◆ actor3Talks

FieldTalk actor3Talks[]
Initial value:
= {
{ actor3Talk1Conditions, ((void *)0) , 0x28F },
{ actor3Talk4Conditions, ((void *)0) , 0x292 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor3Talk3Conditions[]
Definition wstag340.c:237
u16 actor3Talk4Conditions[]
Definition wstag340.c:245
u16 actor3Talk0Conditions[]
Definition wstag340.c:227
u16 actor3Talk2Conditions[]
Definition wstag340.c:230
u16 actor3Talk1Conditions[]
Definition wstag340.c:229
u16 actor3Talk2Actions[]
Definition wstag340.c:236
u16 actor3Talk3Actions[]
Definition wstag340.c:244
u16 actor3Talk0Actions[]
Definition wstag340.c:228

Definition at line 268 of file wstag340.c.

◆ actor4Talks

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

Definition at line 276 of file wstag340.c.

◆ actor0Conditions

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

Definition at line 280 of file wstag340.c.

◆ actor1Conditions

u16 actor1Conditions[]
Initial value:
= {
(0x7000 | ( 0x22 )) , 1,
(0x8000 | ( 0 ) << 9 | ( 5 )), 1,
0xFFFF ,
}

Definition at line 281 of file wstag340.c.

◆ actor2Conditions

u16 actor2Conditions[]
Initial value:
= {
(0x7000 | ( 0x22 )) , 1,
(0x8000 | ( 0 ) << 9 | ( 5 )), 0,
0xFFFF ,
}

Definition at line 286 of file wstag340.c.

◆ actor3Conditions

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

Definition at line 291 of file wstag340.c.

◆ actor4Conditions

u16 actor4Conditions[] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, (0x8000 | ( 0 ) << 9 | ( 5 )), 1, 0xFFFF }

Definition at line 292 of file wstag340.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x9D, 4, 412, 642, 1 }

Definition at line 293 of file wstag340.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x11A, 5, 412, 642, 1 }

Definition at line 294 of file wstag340.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x11A, 5, 412, 642, 1 }

Definition at line 295 of file wstag340.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x11A, 5, 412, 642, 1 }

Definition at line 296 of file wstag340.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x11A, 5, 412, 642, 1 }

Definition at line 297 of file wstag340.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag340.c:293
FieldActorEntry actor2
Definition wstag340.c:295
FieldActorEntry actor4
Definition wstag340.c:297
FieldActorEntry actor1
Definition wstag340.c:294
FieldActorEntry actor3
Definition wstag340.c:296

Definition at line 298 of file wstag340.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]

The tables and color setupStage gives FIELDSTG_state (FieldState)

Definition at line 306 of file wstag340.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x21D, 0x102, 0x3AC, 5, 0, 0, 0 },
{ { { (0x7000 | ( 0x93 )) , 1 }, { 0xFFFF , 0 } }, 10 , 0x2E3, 0x380, 0x70, 1, 0, 4, 1 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0xFFC0, 0x3C, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0xFFC0, 8, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0xFFC0, 0xFFE8, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0, 0x40, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 352 of file wstag340.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0014; BGM_0029 inste...
Definition wstag340.c:26

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 361 of file wstag340.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1310, script1310, ( ( 0x128 - 1) << 16 | ( 0x26 )), ((void *)0) , ((void *)0) },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
s16 script1310[]
Definition wstag340.c:57

Definition at line 364 of file wstag340.c.

Referenced by setupStage().