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

WSTAG646: Mirage Tower, West 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 wstag646.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_600 - 1)
 
#define STAGE_FILE   0x62B
 

Functions

void endEvent735 (void)
 After event 735, with Tamer Heinrich and Kenny: keeps it from playing again.
 
void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0016.
 

Variables

s16 script735 []
 
AreaBattle area0Battle0 = { 72, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 72, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 72, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 72, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 72, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 72, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 72, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 72, 5, (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 = { 239, 5, (0x60000000 | ( 3 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle1 = { 287, 5, (0x60000000 | ( 3 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList area3Battles
 
FieldBattles stageBattles []
 
ActorImage stageImages []
 
u16 actor0Talk0Conditions [] = { (0x8000 | ( 3 ) << 9 | ( 0x8E )), 1, 0xFFFF }
 
u16 actor0Talk1Conditions [] = { (( 0 ) << 8 | ( 1 )) , 0, (0x8000 | ( 3 ) << 9 | ( 0x8E )), 0, 0xFFFF }
 
u16 actor0Talk1Actions [] = { (( 0 ) << 8 | ( 1 )) , 1, 0xFFFF }
 
u16 actor0Talk2Conditions [] = { (( 0 ) << 8 | ( 1 )) , 1, (0x8000 | ( 3 ) << 9 | ( 0x8E )), 0, (0x8000 | ( 2 ) << 9 | ( 0x8A )), 0, 0xFFFF }
 
u16 actor0Talk3Conditions [] = { (( 0 ) << 8 | ( 1 )) , 1, (0x8000 | ( 3 ) << 9 | ( 0x8E )), 0, (0x8000 | ( 2 ) << 9 | ( 0x8A )), 1, 0xFFFF }
 
u16 actor0Talk3Actions []
 
u16 actor1Talk0Actions [] = { (( 0x1A ) << 8 | ( 0xB )) , 1, (0x9000 | ( 0x46 )) , 1, 0xFFFF }
 
u16 actor2Talk0Conditions []
 
u16 actor2Talk1Conditions []
 
u16 actor2Talk2Conditions []
 
u16 actor2Talk2Actions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, 0xFFFF }
 
u16 actor2Talk3Conditions []
 
u16 actor2Talk3Actions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, 0xFFFF }
 
u16 actor2Talk4Conditions []
 
u16 actor2Talk4Actions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0x10 )) , 0, 0xFFFF }
 
u16 actor2Talk5Conditions []
 
u16 actor2Talk5Actions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0x10 )) , 0, 0xFFFF }
 
u16 actor3Talk0Conditions [] = { (0x7000 | ( 0x19 )) , 1, 0xFFFF }
 
u16 actor3Talk1Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor4Talk0Conditions []
 
u16 actor4Talk0Actions [] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor4Talk1Conditions [] = { (( 0 ) << 8 | ( 0 )) , 0, (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor4Talk1Actions [] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor4Talk2Conditions [] = { (( 0 ) << 8 | ( 0 )) , 1, (0x7200 | ( 7 )) , 0, 0xFFFF }
 
u16 actor4Talk3Conditions [] = { (( 0 ) << 8 | ( 0 )) , 1, (0x7200 | ( 7 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x14 )), 0, 0xFFFF }
 
u16 actor4Talk3Actions [] = { ((0x7600 + ( 0 ) * 0x200) | ( 0x37 )) , 1, 0xFFFF }
 
u16 actor4Talk4Conditions []
 
u16 actor4Talk5Conditions []
 
u16 actor4Talk5Actions [] = { (0x7400 | ( 0 )) , 1, (( 0xE ) << 8 | ( 0x2A )) , 1, 0xFFFF }
 
u16 actor4Talk6Conditions []
 
u16 actor4Talk7Conditions []
 
u16 actor4Talk7Actions [] = { ((0x7600 + ( 1 ) * 0x200) | ( 0x37 )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
u16 actor0Conditions []
 
u16 actor1Conditions []
 
u16 actor2Conditions []
 
u16 actor3Conditions []
 
u16 actor4Conditions []
 
u16 actor5Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x1C, 4, 720, 393, 1 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x2D, 5, 624, 264, 1 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x31, 6, 648, 277, 1 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x31, 6, 648, 277, 1 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x31, 6, 648, 277, 1 }
 
FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x9D, 7, 648, 277, 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

WSTAG646: Mirage Tower, West Sector.

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

Definition in file wstag646.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)

Definition at line 22 of file wstag646.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_600 - 1)

Definition at line 23 of file wstag646.c.

◆ STAGE_FILE

#define STAGE_FILE   0x62B

Definition at line 24 of file wstag646.c.

Function Documentation

◆ endEvent735()

void endEvent735 ( void  )

After event 735, with Tamer Heinrich and Kenny: keeps it from playing again.

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

Definition at line 13 of file wstag646.c.

◆ setupStage()

void setupStage ( void  )

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

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_0016: the West Sector's deserts and the Mirage Tower

< ENV_0016: the West Sector's deserts and the Mirage Tower

< 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 27 of file wstag646.c.

Variable Documentation

◆ script735

s16 script735[]

Definition at line 48 of file wstag646.c.

◆ area0Battle0

AreaBattle area0Battle0 = { 72, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 103 of file wstag646.c.

◆ area0Battle1

AreaBattle area0Battle1 = { 72, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 104 of file wstag646.c.

◆ area0Battle2

AreaBattle area0Battle2 = { 72, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 105 of file wstag646.c.

◆ area0Battle3

AreaBattle area0Battle3 = { 72, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 106 of file wstag646.c.

◆ area0Battle4

AreaBattle area0Battle4 = { 72, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 107 of file wstag646.c.

◆ area0Battle5

AreaBattle area0Battle5 = { 72, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 108 of file wstag646.c.

◆ area0Battle6

AreaBattle area0Battle6 = { 72, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 109 of file wstag646.c.

◆ area0Battle7

AreaBattle area0Battle7 = { 72, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 110 of file wstag646.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
3,
}
AreaBattle area0Battle7
Definition wstag646.c:110
AreaBattle area0Battle1
Definition wstag646.c:104
AreaBattle area0Battle6
Definition wstag646.c:109
AreaBattle area0Battle3
Definition wstag646.c:106
AreaBattle area0Battle5
Definition wstag646.c:108
AreaBattle area0Battle0
Definition wstag646.c:103
AreaBattle area0Battle2
Definition wstag646.c:105
AreaBattle area0Battle4
Definition wstag646.c:107

Definition at line 111 of file wstag646.c.

◆ area1Battle0

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

Definition at line 116 of file wstag646.c.

◆ area1Battle1

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

Definition at line 117 of file wstag646.c.

◆ area1Battle2

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

Definition at line 118 of file wstag646.c.

◆ area1Battle3

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

Definition at line 119 of file wstag646.c.

◆ area1Battle4

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

Definition at line 120 of file wstag646.c.

◆ area1Battle5

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

Definition at line 121 of file wstag646.c.

◆ area1Battle6

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

Definition at line 122 of file wstag646.c.

◆ area1Battle7

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

Definition at line 123 of file wstag646.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag646.c:122
AreaBattle area1Battle2
Definition wstag646.c:118
AreaBattle area1Battle4
Definition wstag646.c:120
AreaBattle area1Battle5
Definition wstag646.c:121
AreaBattle area1Battle3
Definition wstag646.c:119
AreaBattle area1Battle0
Definition wstag646.c:116
AreaBattle area1Battle1
Definition wstag646.c:117
AreaBattle area1Battle7
Definition wstag646.c:123

Definition at line 124 of file wstag646.c.

◆ area2Battle0

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

Definition at line 129 of file wstag646.c.

◆ area2Battle1

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

Definition at line 130 of file wstag646.c.

◆ area2Battle2

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

Definition at line 131 of file wstag646.c.

◆ area2Battle3

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

Definition at line 132 of file wstag646.c.

◆ area2Battle4

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

Definition at line 133 of file wstag646.c.

◆ area2Battle5

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

Definition at line 134 of file wstag646.c.

◆ area2Battle6

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

Definition at line 135 of file wstag646.c.

◆ area2Battle7

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

Definition at line 136 of file wstag646.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag646.c:136
AreaBattle area2Battle6
Definition wstag646.c:135
AreaBattle area2Battle0
Definition wstag646.c:129
AreaBattle area2Battle4
Definition wstag646.c:133
AreaBattle area2Battle2
Definition wstag646.c:131
AreaBattle area2Battle1
Definition wstag646.c:130
AreaBattle area2Battle5
Definition wstag646.c:134
AreaBattle area2Battle3
Definition wstag646.c:132

Definition at line 137 of file wstag646.c.

◆ area3Battle0

AreaBattle area3Battle0 = { 239, 5, (0x60000000 | ( 3 ) << 18 | ( 0 )) }

Definition at line 142 of file wstag646.c.

◆ area3Battle1

AreaBattle area3Battle1 = { 287, 5, (0x60000000 | ( 3 ) << 18 | ( 0 )) }

Definition at line 143 of file wstag646.c.

◆ area3Battle2

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

Definition at line 144 of file wstag646.c.

◆ area3Battle3

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

Definition at line 145 of file wstag646.c.

◆ area3Battle4

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

Definition at line 146 of file wstag646.c.

◆ area3Battle5

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

Definition at line 147 of file wstag646.c.

◆ area3Battle6

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

Definition at line 148 of file wstag646.c.

◆ area3Battle7

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

Definition at line 149 of file wstag646.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag646.c:146
AreaBattle area3Battle3
Definition wstag646.c:145
AreaBattle area3Battle0
Definition wstag646.c:142
AreaBattle area3Battle2
Definition wstag646.c:144
AreaBattle area3Battle1
Definition wstag646.c:143
AreaBattle area3Battle6
Definition wstag646.c:148
AreaBattle area3Battle5
Definition wstag646.c:147
AreaBattle area3Battle7
Definition wstag646.c:149

Definition at line 150 of file wstag646.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag646.c:150
BattleList area1Battles
Definition wstag646.c:124
BattleList area2Battles
Definition wstag646.c:137
BattleList area0Battles
Definition wstag646.c:111

Definition at line 155 of file wstag646.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, 0x140, 0x13D, 0, 0x3D, 0x150, 0x1FF },
{ 0x140, 0x100, 0x150, 0x15D, 0x40, 0x5D, 0x160, 0x1FF },
{ 0x140, 0x100, 0x148, 0x13D, 0x20, 0x3D, 0x170, 0x1FF },
{ 0x140, 0x100, 0x150, 0x13D, 0x40, 0x3D, 0x150, 0x1FE },
}

Definition at line 158 of file wstag646.c.

Referenced by setupStage().

◆ actor0Talk0Conditions

u16 actor0Talk0Conditions[] = { (0x8000 | ( 3 ) << 9 | ( 0x8E )), 1, 0xFFFF }

Definition at line 170 of file wstag646.c.

◆ actor0Talk1Conditions

u16 actor0Talk1Conditions[] = { (( 0 ) << 8 | ( 1 )) , 0, (0x8000 | ( 3 ) << 9 | ( 0x8E )), 0, 0xFFFF }

Definition at line 171 of file wstag646.c.

◆ actor0Talk1Actions

u16 actor0Talk1Actions[] = { (( 0 ) << 8 | ( 1 )) , 1, 0xFFFF }

Definition at line 172 of file wstag646.c.

◆ actor0Talk2Conditions

u16 actor0Talk2Conditions[] = { (( 0 ) << 8 | ( 1 )) , 1, (0x8000 | ( 3 ) << 9 | ( 0x8E )), 0, (0x8000 | ( 2 ) << 9 | ( 0x8A )), 0, 0xFFFF }

Definition at line 173 of file wstag646.c.

◆ actor0Talk3Conditions

u16 actor0Talk3Conditions[] = { (( 0 ) << 8 | ( 1 )) , 1, (0x8000 | ( 3 ) << 9 | ( 0x8E )), 0, (0x8000 | ( 2 ) << 9 | ( 0x8A )), 1, 0xFFFF }

Definition at line 174 of file wstag646.c.

◆ actor0Talk3Actions

u16 actor0Talk3Actions[]
Initial value:
= {
(0x8000 | ( 3 ) << 9 | ( 0x8E )), 1,
(0x8000 | ( 3 ) << 9 | ( 0x8D )), 0,
(0x8000 | ( 2 ) << 9 | ( 0x8A )), 0,
(0x7000 | ( 0x13 )) , 1,
0xFFFF ,
}

Definition at line 175 of file wstag646.c.

◆ actor1Talk0Actions

u16 actor1Talk0Actions[] = { (( 0x1A ) << 8 | ( 0xB )) , 1, (0x9000 | ( 0x46 )) , 1, 0xFFFF }

Definition at line 182 of file wstag646.c.

◆ actor2Talk0Conditions

u16 actor2Talk0Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 0x11 )) , 0,
(0x7000 | ( 0x19 )) , 1,
0xFFFF ,
}

Definition at line 183 of file wstag646.c.

◆ actor2Talk1Conditions

u16 actor2Talk1Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 0x11 )) , 0,
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 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 188 of file wstag646.c.

◆ actor2Talk2Conditions

u16 actor2Talk2Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 0x10 )) , 0,
(0x7000 | ( 0x19 )) , 1,
0xFFFF ,
}

Definition at line 193 of file wstag646.c.

◆ actor2Talk2Actions

u16 actor2Talk2Actions[] = { (( 0 ) << 8 | ( 0x11 )) , 0, 0xFFFF }

Definition at line 198 of file wstag646.c.

◆ actor2Talk3Conditions

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

Definition at line 199 of file wstag646.c.

◆ actor2Talk3Actions

u16 actor2Talk3Actions[] = { (( 0 ) << 8 | ( 0x11 )) , 0, 0xFFFF }

Definition at line 204 of file wstag646.c.

◆ actor2Talk4Conditions

u16 actor2Talk4Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 0x10 )) , 1,
(0x7000 | ( 0x19 )) , 1,
0xFFFF ,
}

Definition at line 205 of file wstag646.c.

◆ actor2Talk4Actions

u16 actor2Talk4Actions[] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0x10 )) , 0, 0xFFFF }

Definition at line 210 of file wstag646.c.

◆ actor2Talk5Conditions

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

Definition at line 211 of file wstag646.c.

◆ actor2Talk5Actions

u16 actor2Talk5Actions[] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0x10 )) , 0, 0xFFFF }

Definition at line 216 of file wstag646.c.

◆ actor3Talk0Conditions

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

Definition at line 217 of file wstag646.c.

◆ actor3Talk1Conditions

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

Definition at line 218 of file wstag646.c.

◆ actor4Talk0Conditions

u16 actor4Talk0Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 0 )) , 0,
(0x7000 | ( 0x19 )) , 1,
0xFFFF ,
}

Definition at line 219 of file wstag646.c.

◆ actor4Talk0Actions

u16 actor4Talk0Actions[] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 224 of file wstag646.c.

◆ actor4Talk1Conditions

u16 actor4Talk1Conditions[] = { (( 0 ) << 8 | ( 0 )) , 0, (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }

Definition at line 225 of file wstag646.c.

◆ actor4Talk1Actions

u16 actor4Talk1Actions[] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 226 of file wstag646.c.

◆ actor4Talk2Conditions

u16 actor4Talk2Conditions[] = { (( 0 ) << 8 | ( 0 )) , 1, (0x7200 | ( 7 )) , 0, 0xFFFF }

Definition at line 227 of file wstag646.c.

◆ actor4Talk3Conditions

u16 actor4Talk3Conditions[] = { (( 0 ) << 8 | ( 0 )) , 1, (0x7200 | ( 7 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x14 )), 0, 0xFFFF }

Definition at line 228 of file wstag646.c.

◆ actor4Talk3Actions

u16 actor4Talk3Actions[] = { ((0x7600 + ( 0 ) * 0x200) | ( 0x37 )) , 1, 0xFFFF }

Definition at line 229 of file wstag646.c.

◆ actor4Talk4Conditions

u16 actor4Talk4Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 0 )) , 1,
(0x7200 | ( 7 )) , 1,
(0x8000 | ( 0 ) << 9 | ( 0x14 )), 1,
(0x7200 | ( 9 )) , 0,
0xFFFF ,
}

Definition at line 230 of file wstag646.c.

◆ actor4Talk5Conditions

u16 actor4Talk5Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 0 )) , 1,
(0x7200 | ( 7 )) , 1,
(0x8000 | ( 0 ) << 9 | ( 0x14 )), 1,
(0x7200 | ( 9 )) , 1,
(( 0xE ) << 8 | ( 0x2A )) , 0,
0xFFFF ,
}

Definition at line 237 of file wstag646.c.

◆ actor4Talk5Actions

u16 actor4Talk5Actions[] = { (0x7400 | ( 0 )) , 1, (( 0xE ) << 8 | ( 0x2A )) , 1, 0xFFFF }

Definition at line 245 of file wstag646.c.

◆ actor4Talk6Conditions

u16 actor4Talk6Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 0 )) , 1,
(0x7200 | ( 7 )) , 1,
(0x8000 | ( 0 ) << 9 | ( 0x14 )), 1,
(0x7200 | ( 9 )) , 1,
(( 0xE ) << 8 | ( 0x2A )) , 1,
(0x7200 | ( 0xB )) , 0,
0xFFFF ,
}

Definition at line 246 of file wstag646.c.

◆ actor4Talk7Conditions

u16 actor4Talk7Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 0 )) , 1,
(0x7200 | ( 7 )) , 1,
(0x8000 | ( 0 ) << 9 | ( 0x14 )), 1,
(0x7200 | ( 9 )) , 1,
(( 0xE ) << 8 | ( 0x2A )) , 1,
(0x7200 | ( 0xB )) , 1,
0xFFFF ,
}

Definition at line 255 of file wstag646.c.

◆ actor4Talk7Actions

u16 actor4Talk7Actions[] = { ((0x7600 + ( 1 ) * 0x200) | ( 0x37 )) , 1, 0xFFFF }

Definition at line 264 of file wstag646.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ actor0Talk0Conditions, ((void *)0) , 0x2FA },
{ actor0Talk2Conditions, ((void *)0) , 0x2FC },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Conditions[]
Definition wstag646.c:170
u16 actor0Talk1Conditions[]
Definition wstag646.c:171
u16 actor0Talk3Conditions[]
Definition wstag646.c:174
u16 actor0Talk1Actions[]
Definition wstag646.c:172
u16 actor0Talk2Conditions[]
Definition wstag646.c:173
u16 actor0Talk3Actions[]
Definition wstag646.c:175

Definition at line 265 of file wstag646.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , actor1Talk0Actions, 0x1D9 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk0Actions[]
Definition wstag646.c:182

Definition at line 272 of file wstag646.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ actor2Talk0Conditions, ((void *)0) , 0x1E8 },
{ actor2Talk1Conditions, ((void *)0) , 0x13 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk1Conditions[]
Definition wstag646.c:188
u16 actor2Talk5Actions[]
Definition wstag646.c:216
u16 actor2Talk3Conditions[]
Definition wstag646.c:199
u16 actor2Talk4Actions[]
Definition wstag646.c:210
u16 actor2Talk2Conditions[]
Definition wstag646.c:193
u16 actor2Talk3Actions[]
Definition wstag646.c:204
u16 actor2Talk5Conditions[]
Definition wstag646.c:211
u16 actor2Talk0Conditions[]
Definition wstag646.c:183
u16 actor2Talk2Actions[]
Definition wstag646.c:198
u16 actor2Talk4Conditions[]
Definition wstag646.c:205

Definition at line 276 of file wstag646.c.

◆ actor3Talks

FieldTalk actor3Talks[]
Initial value:
= {
{ actor3Talk0Conditions, ((void *)0) , 0x1E8 },
{ actor3Talk1Conditions, ((void *)0) , 0x13 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor3Talk0Conditions[]
Definition wstag646.c:217
u16 actor3Talk1Conditions[]
Definition wstag646.c:218

Definition at line 285 of file wstag646.c.

◆ actor4Talks

FieldTalk actor4Talks[]
Initial value:
= {
{ actor4Talk2Conditions, ((void *)0) , 0x16 },
{ actor4Talk4Conditions, ((void *)0) , 0x1E2 },
{ actor4Talk6Conditions, ((void *)0) , 0x1E4 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor4Talk3Conditions[]
Definition wstag646.c:228
u16 actor4Talk1Actions[]
Definition wstag646.c:226
u16 actor4Talk6Conditions[]
Definition wstag646.c:246
u16 actor4Talk4Conditions[]
Definition wstag646.c:230
u16 actor4Talk1Conditions[]
Definition wstag646.c:225
u16 actor4Talk5Conditions[]
Definition wstag646.c:237
u16 actor4Talk7Conditions[]
Definition wstag646.c:255
u16 actor4Talk0Conditions[]
Definition wstag646.c:219
u16 actor4Talk5Actions[]
Definition wstag646.c:245
u16 actor4Talk0Actions[]
Definition wstag646.c:224
u16 actor4Talk3Actions[]
Definition wstag646.c:229
u16 actor4Talk2Conditions[]
Definition wstag646.c:227
u16 actor4Talk7Actions[]
Definition wstag646.c:264

Definition at line 290 of file wstag646.c.

◆ actor5Talks

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

Definition at line 301 of file wstag646.c.

◆ actor0Conditions

u16 actor0Conditions[]
Initial value:
= {
(0x7000 | ( 0x49 )) , 1,
(0x7000 | ( 0x51 )) , 1,
(0x8000 | ( 3 ) << 9 | ( 0x8D )), 1,
(0x8000 | ( 3 ) << 9 | ( 0x8E )), 0,
0xFFFF ,
}

Definition at line 305 of file wstag646.c.

◆ actor1Conditions

u16 actor1Conditions[]
Initial value:
= {
(0x7000 | ( 0x1E )) , 1,
(( 0x40 ) << 8 | ( 0x49 )) , 0,
0xFFFF ,
}

Definition at line 312 of file wstag646.c.

◆ actor2Conditions

u16 actor2Conditions[]
Initial value:
= {
(0x8000 | ( 0 ) << 9 | ( 0x192 )), 1,
(( 0 ) << 8 | ( 0x11 )) , 1,
(0x7000 | ( 0x1E )) , 1,
0xFFFF ,
}

Definition at line 317 of file wstag646.c.

◆ actor3Conditions

u16 actor3Conditions[]
Initial value:
= {
(0x8000 | ( 0 ) << 9 | ( 0x192 )), 0,
(0x7000 | ( 0x1E )) , 1,
0xFFFF ,
}

Definition at line 323 of file wstag646.c.

◆ actor4Conditions

u16 actor4Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 0x11 )) , 0,
(0x8000 | ( 0 ) << 9 | ( 0x192 )), 1,
(0x7000 | ( 0x1E )) , 1,
0xFFFF ,
}

Definition at line 328 of file wstag646.c.

◆ actor5Conditions

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

Definition at line 334 of file wstag646.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x1C, 4, 720, 393, 1 }

Definition at line 335 of file wstag646.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x2D, 5, 624, 264, 1 }

Definition at line 336 of file wstag646.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x31, 6, 648, 277, 1 }

Definition at line 337 of file wstag646.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x31, 6, 648, 277, 1 }

Definition at line 338 of file wstag646.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x31, 6, 648, 277, 1 }

Definition at line 339 of file wstag646.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x9D, 7, 648, 277, 1 }

Definition at line 340 of file wstag646.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag646.c:335
FieldActorEntry actor5
Definition wstag646.c:340
FieldActorEntry actor2
Definition wstag646.c:337
FieldActorEntry actor4
Definition wstag646.c:339
FieldActorEntry actor1
Definition wstag646.c:336
FieldActorEntry actor3
Definition wstag646.c:338

Definition at line 341 of file wstag646.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 6, 4, 0, 0, 0, 0, 0, 562, 254, 0, 0 },
{ 1, 0, 0x40, 4, 0x53, 2, 0, 0xF, 8, 0, 604, 194, 256, 0 },
{ 1, 0, 0x40, 4, 0x54, 2, 0, 0xF, 8, 0, 604, 194, 252, 0 },
{ 1, 0, 0x40, 4, 0x55, 2, 0, 0xF, 8, 0, 604, 194, 248, 0 },
{ 1, 0, 0x40, 4, 0x56, 2, 0, 0xF, 8, 0, 604, 194, 244, 0 },
{ 1, 0, 0x40, 4, 0x57, 2, 0, 0xF, 8, 0, 604, 194, 240, 0 },
{ 1, 0, 0x40, 4, 0x58, 2, 0, 0xF, 8, 0, 604, 194, 236, 0 },
{ 1, 0, 0x40, 4, 0x59, 2, 0, 0xF, 8, 0, 604, 194, 232, 0 },
{ 1, 0, 0x40, 4, 0x5A, 2, 0, 0xF, 8, 0, 604, 194, 228, 0 },
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 566, 208, 264, 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 350 of file wstag646.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2C4, 0x27A, 0x256, 3, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2C1, 0x110, 0x108, 7, 0, 1, 6 },
{ { { (( 0x40 ) << 8 | ( 0x49 )) , 0 }, { 0xFFFF , 0 } }, 8 , 0x2DF, 0, 0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 363 of file wstag646.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_0016.
Definition wstag646.c:27

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 369 of file wstag646.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 735, script735, ( ( 0x144 - 1) << 16 | ( 0x1D )), ((void *)0) , endEvent735 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void endEvent735(void)
After event 735, with Tamer Heinrich and Kenny: keeps it from playing again.
Definition wstag646.c:13
s16 script735[]
Definition wstag646.c:48

Definition at line 372 of file wstag646.c.

Referenced by setupStage().