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

WSTAG486: Phoenix Bay, South 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 wstag486.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_400 - 1)
 
#define STAGE_FILE   0x5BE
 

Functions

void endEvent745 (void)
 After event 745, with Trooper: sets flag 0x40A8.
 
void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0014.
 

Variables

const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0x00 }
 the color the setup copies to FIELDSTG_state.spriteColor
 
s16 script745 []
 
AreaBattle area0Battle0 = { 109, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 109, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 109, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 176, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 176, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 176, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 157, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 157, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList area0Battles
 
AreaBattle area1Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList area1Battles
 
AreaBattle area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList area2Battles
 
AreaBattle area3Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle3 = { 331, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle4 = { 332, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle6 = { 177, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle7 = { 106, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList area3Battles
 
FieldBattles stageBattles []
 
ActorImage stageImages []
 
u16 actor14Talk0Conditions [] = { (( 0x1A ) << 8 | ( 0x35 )) , 0, 0xFFFF }
 
u16 actor14Talk0Actions [] = { (0x9000 | ( 0x4A )) , 1, (( 0x1A ) << 8 | ( 0x35 )) , 1, 0xFFFF }
 
u16 actor14Talk1Conditions [] = { (( 0x1A ) << 8 | ( 0x35 )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
FieldTalk actor6Talks []
 
FieldTalk actor7Talks []
 
FieldTalk actor8Talks []
 
FieldTalk actor9Talks []
 
FieldTalk actor10Talks []
 
FieldTalk actor11Talks []
 
FieldTalk actor12Talks []
 
FieldTalk actor13Talks []
 
FieldTalk actor14Talks []
 
u16 actor0Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor1Conditions []
 
u16 actor2Conditions [] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF }
 
u16 actor3Conditions []
 
u16 actor5Conditions []
 
u16 actor6Conditions [] = { (0x6000 | ( STORY_BLUE_ID_PASS )) , 1, (( 0x1A ) << 8 | ( 0x35 )) , 1, 0xFFFF }
 
u16 actor7Conditions [] = { (0x6000 | ( STORY_JUNGLE_SOUND )) , 1, 0xFFFF }
 
u16 actor8Conditions [] = { (0x7000 | ( 0x1F )) , 1, 0xFFFF }
 
u16 actor9Conditions []
 
u16 actor10Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor11Conditions []
 
u16 actor12Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor13Conditions [] = { (0x6000 | ( STORY_JUNGLE_SOUND )) , 1, 0xFFFF }
 
u16 actor14Conditions [] = { (( 0x1A ) << 8 | ( 0x35 )) , 0, (0x6000 | ( STORY_BLUE_ID_PASS )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x2D, 4, 944, 185, 1 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x31, 5, 1394, 778, 7 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x33, 6, 1394, 778, 7 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x34, 7, 944, 185, 1 }
 
FieldActorEntry actor4 = { ((void *)0) , actor4Talks, 0x3F, 8, 529, 249, 1 }
 
FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x45, 9, 1376, 265, 7 }
 
FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x45, 9, 1376, 265, 7 }
 
FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x46, 0xA, 1344, 208, 3 }
 
FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x46, 0xA, 1344, 208, 5 }
 
FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x9D, 0xB, 944, 185, 1 }
 
FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x9D, 0xB, 944, 185, 1 }
 
FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x9E, 0xC, 1394, 778, 7 }
 
FieldActorEntry actor12 = { actor12Conditions, actor12Talks, 0x9E, 0xC, 1394, 778, 7 }
 
FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x132, 0xD, 1313, 233, 3 }
 
FieldActorEntry actor14 = { actor14Conditions, actor14Talks, 0x132, 0xD, 1313, 233, 3 }
 
FieldActorEntry * stageActors []
 
StageTile stageObjects []
 The tables and color setupStage gives FIELDSTG_state (FieldState)
 
StageSlot stageSlots []
 
void(* stageFuncs [])(void)
 The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a tween, which define STAGE_TWEEN before they include this file, and in the others an array of just setupStage.
 
FieldEvent stageEvents []
 

Detailed Description

WSTAG486: Phoenix Bay, South Sector.

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

Definition in file wstag486.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)

Definition at line 23 of file wstag486.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_400 - 1)

Definition at line 24 of file wstag486.c.

◆ STAGE_FILE

#define STAGE_FILE   0x5BE

Definition at line 25 of file wstag486.c.

Function Documentation

◆ endEvent745()

void endEvent745 ( void  )

After event 745, with Trooper: sets flag 0x40A8.

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

Definition at line 14 of file wstag486.c.

◆ setupStage()

void setupStage ( void  )

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

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

Definition at line 28 of file wstag486.c.

Variable Documentation

◆ stageColor

const CVECTOR stageColor = { 0x80, 0x80, 0x80, 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 8 of file wstag486.c.

Referenced by setupStage().

◆ script745

s16 script745[]

Definition at line 50 of file wstag486.c.

◆ area0Battle0

AreaBattle area0Battle0 = { 109, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 91 of file wstag486.c.

◆ area0Battle1

AreaBattle area0Battle1 = { 109, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 92 of file wstag486.c.

◆ area0Battle2

AreaBattle area0Battle2 = { 109, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 93 of file wstag486.c.

◆ area0Battle3

AreaBattle area0Battle3 = { 176, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 94 of file wstag486.c.

◆ area0Battle4

AreaBattle area0Battle4 = { 176, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 95 of file wstag486.c.

◆ area0Battle5

AreaBattle area0Battle5 = { 176, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 96 of file wstag486.c.

◆ area0Battle6

AreaBattle area0Battle6 = { 157, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 97 of file wstag486.c.

◆ area0Battle7

AreaBattle area0Battle7 = { 157, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 98 of file wstag486.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
3,
}
AreaBattle area0Battle7
Definition wstag486.c:98
AreaBattle area0Battle1
Definition wstag486.c:92
AreaBattle area0Battle6
Definition wstag486.c:97
AreaBattle area0Battle3
Definition wstag486.c:94
AreaBattle area0Battle5
Definition wstag486.c:96
AreaBattle area0Battle0
Definition wstag486.c:91
AreaBattle area0Battle2
Definition wstag486.c:93
AreaBattle area0Battle4
Definition wstag486.c:95

Definition at line 99 of file wstag486.c.

◆ area1Battle0

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

Definition at line 104 of file wstag486.c.

◆ area1Battle1

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

Definition at line 105 of file wstag486.c.

◆ area1Battle2

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

Definition at line 106 of file wstag486.c.

◆ area1Battle3

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

Definition at line 107 of file wstag486.c.

◆ area1Battle4

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

Definition at line 108 of file wstag486.c.

◆ area1Battle5

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

Definition at line 109 of file wstag486.c.

◆ area1Battle6

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

Definition at line 110 of file wstag486.c.

◆ area1Battle7

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

Definition at line 111 of file wstag486.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag486.c:110
AreaBattle area1Battle2
Definition wstag486.c:106
AreaBattle area1Battle4
Definition wstag486.c:108
AreaBattle area1Battle5
Definition wstag486.c:109
AreaBattle area1Battle3
Definition wstag486.c:107
AreaBattle area1Battle0
Definition wstag486.c:104
AreaBattle area1Battle1
Definition wstag486.c:105
AreaBattle area1Battle7
Definition wstag486.c:111

Definition at line 112 of file wstag486.c.

◆ area2Battle0

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

Definition at line 117 of file wstag486.c.

◆ area2Battle1

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

Definition at line 118 of file wstag486.c.

◆ area2Battle2

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

Definition at line 119 of file wstag486.c.

◆ area2Battle3

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

Definition at line 120 of file wstag486.c.

◆ area2Battle4

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

Definition at line 121 of file wstag486.c.

◆ area2Battle5

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

Definition at line 122 of file wstag486.c.

◆ area2Battle6

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

Definition at line 123 of file wstag486.c.

◆ area2Battle7

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

Definition at line 124 of file wstag486.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag486.c:124
AreaBattle area2Battle6
Definition wstag486.c:123
AreaBattle area2Battle0
Definition wstag486.c:117
AreaBattle area2Battle4
Definition wstag486.c:121
AreaBattle area2Battle2
Definition wstag486.c:119
AreaBattle area2Battle1
Definition wstag486.c:118
AreaBattle area2Battle5
Definition wstag486.c:122
AreaBattle area2Battle3
Definition wstag486.c:120

Definition at line 125 of file wstag486.c.

◆ area3Battle0

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

Definition at line 130 of file wstag486.c.

◆ area3Battle1

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

Definition at line 131 of file wstag486.c.

◆ area3Battle2

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

Definition at line 132 of file wstag486.c.

◆ area3Battle3

AreaBattle area3Battle3 = { 331, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 133 of file wstag486.c.

◆ area3Battle4

AreaBattle area3Battle4 = { 332, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 134 of file wstag486.c.

◆ area3Battle5

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

Definition at line 135 of file wstag486.c.

◆ area3Battle6

AreaBattle area3Battle6 = { 177, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 136 of file wstag486.c.

◆ area3Battle7

AreaBattle area3Battle7 = { 106, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 137 of file wstag486.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag486.c:134
AreaBattle area3Battle3
Definition wstag486.c:133
AreaBattle area3Battle0
Definition wstag486.c:130
AreaBattle area3Battle2
Definition wstag486.c:132
AreaBattle area3Battle1
Definition wstag486.c:131
AreaBattle area3Battle6
Definition wstag486.c:136
AreaBattle area3Battle5
Definition wstag486.c:135
AreaBattle area3Battle7
Definition wstag486.c:137

Definition at line 138 of file wstag486.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag486.c:138
BattleList area1Battles
Definition wstag486.c:112
BattleList area2Battles
Definition wstag486.c:125
BattleList area0Battles
Definition wstag486.c:99

Definition at line 143 of file wstag486.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, 0x178, 0x170, 0xE0, 0x70, 0x170, 0x1FF },
{ 0x140, 0x100, 0x164, 0x1B0, 0x90, 0xB0, 0x160, 0x1FE },
{ 0x140, 0x100, 0x16C, 0x1B0, 0xB0, 0xB0, 0x170, 0x1FE },
{ 0x140, 0x100, 0x174, 0x1B0, 0xD0, 0xB0, 0x160, 0x1FD },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0x140, 0x100, 0x156, 0x1C0, 0x58, 0xC0, 0x170, 0x1FD },
{ 0x140, 0x100, 0x140, 0x1CB, 0, 0xCB, 0x160, 0x1FC },
{ 0x140, 0x100, 0x176, 0x1D8, 0xD8, 0xD8, 0x170, 0x1FC },
{ 0x180, 0x100, 0x194, 0x100, 0x150, 0, 0x150, 0x1FB },
{ 0x140, 0x100, 0x148, 0x1CB, 0x20, 0xCB, 0x160, 0x1FB },
}

Definition at line 146 of file wstag486.c.

Referenced by setupStage().

◆ actor14Talk0Conditions

u16 actor14Talk0Conditions[] = { (( 0x1A ) << 8 | ( 0x35 )) , 0, 0xFFFF }

Definition at line 164 of file wstag486.c.

◆ actor14Talk0Actions

u16 actor14Talk0Actions[] = { (0x9000 | ( 0x4A )) , 1, (( 0x1A ) << 8 | ( 0x35 )) , 1, 0xFFFF }

Definition at line 165 of file wstag486.c.

◆ actor14Talk1Conditions

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

Definition at line 166 of file wstag486.c.

◆ actor0Talks

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

Definition at line 167 of file wstag486.c.

◆ actor1Talks

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

Definition at line 171 of file wstag486.c.

◆ actor2Talks

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

Definition at line 175 of file wstag486.c.

◆ actor3Talks

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

Definition at line 179 of file wstag486.c.

◆ actor4Talks

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

Definition at line 183 of file wstag486.c.

◆ actor5Talks

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

Definition at line 187 of file wstag486.c.

◆ actor6Talks

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

Definition at line 191 of file wstag486.c.

◆ actor7Talks

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

Definition at line 195 of file wstag486.c.

◆ actor8Talks

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

Definition at line 199 of file wstag486.c.

◆ actor9Talks

FieldTalk actor9Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0xFB },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 203 of file wstag486.c.

◆ actor10Talks

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

Definition at line 207 of file wstag486.c.

◆ actor11Talks

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

Definition at line 211 of file wstag486.c.

◆ actor12Talks

FieldTalk actor12Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x100 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 215 of file wstag486.c.

◆ actor13Talks

FieldTalk actor13Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x324 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 219 of file wstag486.c.

◆ actor14Talks

FieldTalk actor14Talks[]
Initial value:
= {
{ actor14Talk1Conditions, ((void *)0) , 0x326 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor14Talk1Conditions[]
Definition wstag486.c:166
u16 actor14Talk0Actions[]
Definition wstag486.c:165
u16 actor14Talk0Conditions[]
Definition wstag486.c:164

Definition at line 223 of file wstag486.c.

◆ actor0Conditions

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

Definition at line 228 of file wstag486.c.

◆ actor1Conditions

u16 actor1Conditions[]
Initial value:
= {
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1,
(( 0x1A ) << 8 | ( 0xA )) , 1,
0xFFFF ,
}
@ STORY_PRESIDENT_ARRESTED
WSTAG226 (Login Room, Amaterasu City), event 935, after the President of MAGAMI gives himself up (WST...
Definition story.h:136

Definition at line 229 of file wstag486.c.

◆ actor2Conditions

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

Definition at line 234 of file wstag486.c.

◆ actor3Conditions

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

Definition at line 235 of file wstag486.c.

◆ actor5Conditions

u16 actor5Conditions[]
Initial value:
= {
(0x6000 | ( STORY_BLUE_ID_PASS )) , 0,
(0x7000 | ( 0x1F )) , 1,
0xFFFF ,
}
@ STORY_BLUE_ID_PASS
WSTAG421 (Qing Long City), event 743: with the Blue ID Pass a Trooper takes the player for the Qing L...
Definition story.h:109

Definition at line 240 of file wstag486.c.

◆ actor6Conditions

u16 actor6Conditions[] = { (0x6000 | ( STORY_BLUE_ID_PASS )) , 1, (( 0x1A ) << 8 | ( 0x35 )) , 1, 0xFFFF }

Definition at line 245 of file wstag486.c.

◆ actor7Conditions

u16 actor7Conditions[] = { (0x6000 | ( STORY_JUNGLE_SOUND )) , 1, 0xFFFF }

Definition at line 246 of file wstag486.c.

◆ actor8Conditions

u16 actor8Conditions[] = { (0x7000 | ( 0x1F )) , 1, 0xFFFF }

Definition at line 247 of file wstag486.c.

◆ actor9Conditions

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

Definition at line 248 of file wstag486.c.

◆ actor10Conditions

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

Definition at line 253 of file wstag486.c.

◆ actor11Conditions

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

Definition at line 254 of file wstag486.c.

◆ actor12Conditions

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

Definition at line 259 of file wstag486.c.

◆ actor13Conditions

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

Definition at line 260 of file wstag486.c.

◆ actor14Conditions

u16 actor14Conditions[] = { (( 0x1A ) << 8 | ( 0x35 )) , 0, (0x6000 | ( STORY_BLUE_ID_PASS )) , 1, 0xFFFF }

Definition at line 261 of file wstag486.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x2D, 4, 944, 185, 1 }

Definition at line 262 of file wstag486.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x31, 5, 1394, 778, 7 }

Definition at line 263 of file wstag486.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x33, 6, 1394, 778, 7 }

Definition at line 264 of file wstag486.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x34, 7, 944, 185, 1 }

Definition at line 265 of file wstag486.c.

◆ actor4

FieldActorEntry actor4 = { ((void *)0) , actor4Talks, 0x3F, 8, 529, 249, 1 }

Definition at line 266 of file wstag486.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x45, 9, 1376, 265, 7 }

Definition at line 267 of file wstag486.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x45, 9, 1376, 265, 7 }

Definition at line 268 of file wstag486.c.

◆ actor7

FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x46, 0xA, 1344, 208, 3 }

Definition at line 269 of file wstag486.c.

◆ actor8

FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x46, 0xA, 1344, 208, 5 }

Definition at line 270 of file wstag486.c.

◆ actor9

FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x9D, 0xB, 944, 185, 1 }

Definition at line 271 of file wstag486.c.

◆ actor10

FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x9D, 0xB, 944, 185, 1 }

Definition at line 272 of file wstag486.c.

◆ actor11

FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x9E, 0xC, 1394, 778, 7 }

Definition at line 273 of file wstag486.c.

◆ actor12

FieldActorEntry actor12 = { actor12Conditions, actor12Talks, 0x9E, 0xC, 1394, 778, 7 }

Definition at line 274 of file wstag486.c.

◆ actor13

FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x132, 0xD, 1313, 233, 3 }

Definition at line 275 of file wstag486.c.

◆ actor14

FieldActorEntry actor14 = { actor14Conditions, actor14Talks, 0x132, 0xD, 1313, 233, 3 }

Definition at line 276 of file wstag486.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag486.c:262
FieldActorEntry actor6
Definition wstag486.c:268
FieldActorEntry actor5
Definition wstag486.c:267
FieldActorEntry actor2
Definition wstag486.c:264
FieldActorEntry actor10
Definition wstag486.c:272
FieldActorEntry actor4
Definition wstag486.c:266
FieldActorEntry actor8
Definition wstag486.c:270
FieldActorEntry actor9
Definition wstag486.c:271
FieldActorEntry actor12
Definition wstag486.c:274
FieldActorEntry actor7
Definition wstag486.c:269
FieldActorEntry actor13
Definition wstag486.c:275
FieldActorEntry actor11
Definition wstag486.c:273
FieldActorEntry actor1
Definition wstag486.c:263
FieldActorEntry actor3
Definition wstag486.c:265
FieldActorEntry actor14
Definition wstag486.c:276

Definition at line 277 of file wstag486.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]

The tables and color setupStage gives FIELDSTG_state (FieldState)

Definition at line 295 of file wstag486.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2A9, 0x48E, 0x3F8, 3, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2AB, 0xA0, 0x390, 5, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2A7, 0x3E8, 0x9C, 7, 0, 0, 0 },
{ { { (0x7000 | ( 0x93 )) , 1 }, { 0xFFFF , 0 } }, 10 , 0x2E5, 0x240, 0x120, 1, 0, 0xE, 1 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0, 0x38, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0xFFC0, 0x28, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0xFFC0, 0x38, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0xFFC0, 0xFFF0, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0, 0xFFD0, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0x20, 0x20, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0x30, 0x30, 0, 0, 0, 0, 0 },
{ { { (0x7000 | ( 0x93 )) , 1 }, { 0xFFFF , 0 } }, 10 , 0x2E5, 0x240, 0x120, 1, 0, 0xE, 1 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 353 of file wstag486.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.
Definition wstag486.c:28

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 368 of file wstag486.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 745, script745, ( ( 0x136 - 1) << 16 | ( 0x2C )), ((void *)0) , endEvent745 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void endEvent745(void)
After event 745, with Trooper: sets flag 0x40A8.
Definition wstag486.c:14
s16 script745[]
Definition wstag486.c:50

Definition at line 371 of file wstag486.c.

Referenced by setupStage().