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

WSTAG631: S Noise Desert, 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 wstag631.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)
 
#define STAGE_FILE   0x61F
 

Functions

void setupStage (void)
 Sets the stage up: its map, actors and battles, playing the ambience ENV_0016.
 

Variables

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 = { 238, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle1 = { 286, 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 actor1Talk0Conditions [] = { (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor1Talk0Actions [] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor1Talk1Conditions [] = { (( 0 ) << 8 | ( 0 )) , 1, (0x7200 | ( 7 )) , 0, 0xFFFF }
 
u16 actor1Talk2Conditions [] = { (( 0 ) << 8 | ( 0 )) , 1, (0x7200 | ( 7 )) , 1, (0x7200 | ( 9 )) , 0, 0xFFFF }
 
u16 actor1Talk2Actions [] = { ((0x7600 + ( 0 ) * 0x200) | ( 0x36 )) , 1, 0xFFFF }
 
u16 actor1Talk3Conditions []
 
u16 actor1Talk3Actions []
 
u16 actor1Talk4Conditions []
 
u16 actor2Talk0Conditions [] = { (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor2Talk0Actions [] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor2Talk1Conditions [] = { (( 0 ) << 8 | ( 0 )) , 1, (0x7200 | ( 0xA )) , 0, 0xFFFF }
 
u16 actor2Talk2Conditions [] = { (( 0 ) << 8 | ( 0 )) , 1, (0x7200 | ( 0xA )) , 1, (( 0xE ) << 8 | ( 0x4A )) , 0, 0xFFFF }
 
u16 actor2Talk2Actions [] = { (0x7400 | ( 0 )) , 1, (( 0xE ) << 8 | ( 0x4A )) , 1, 0xFFFF }
 
u16 actor2Talk3Conditions []
 
u16 actor2Talk4Conditions []
 
u16 actor2Talk4Actions [] = { ((0x7600 + ( 1 ) * 0x200) | ( 0x36 )) , 1, 0xFFFF }
 
u16 actor3Talk0Conditions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, 0xFFFF }
 
u16 actor3Talk1Conditions [] = { (( 0 ) << 8 | ( 0x10 )) , 0, 0xFFFF }
 
u16 actor3Talk1Actions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, 0xFFFF }
 
u16 actor3Talk2Conditions [] = { (( 0 ) << 8 | ( 0x10 )) , 1, 0xFFFF }
 
u16 actor3Talk2Actions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0x10 )) , 0, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor10Talks []
 
FieldTalk actor11Talks []
 
FieldTalk actor13Talks []
 
FieldTalk actor14Talks []
 
FieldTalk actor15Talks []
 
u16 actor0Conditions []
 
u16 actor1Conditions []
 
u16 actor2Conditions []
 
u16 actor3Conditions []
 
u16 actor4Conditions []
 
u16 actor5Conditions []
 
u16 actor6Conditions []
 
u16 actor7Conditions []
 
u16 actor8Conditions []
 
u16 actor9Conditions []
 
u16 actor10Conditions []
 
u16 actor11Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor12Conditions []
 
u16 actor13Conditions []
 
u16 actor14Conditions []
 
u16 actor15Conditions []
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x32, 4, 752, 289, 1 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x45, 5, 432, 273, 7 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x45, 5, 432, 273, 7 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x45, 5, 432, 273, 7 }
 
FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x45, 5, 432, 273, 7 }
 
FieldActorEntry actor5 = { actor5Conditions, ((void *)0) , 0x46, 6, 143, 672, 1 }
 
FieldActorEntry actor6 = { actor6Conditions, ((void *)0) , 0x47, 7, 177, 689, 1 }
 
FieldActorEntry actor7 = { actor7Conditions, ((void *)0) , 0x48, 8, 207, 657, 1 }
 
FieldActorEntry actor8 = { actor8Conditions, ((void *)0) , 0x49, 9, 232, 620, 1 }
 
FieldActorEntry actor9 = { actor9Conditions, ((void *)0) , 0x4A, 0xA, 263, 628, 1 }
 
FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x9D, 0xB, 752, 289, 1 }
 
FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x9D, 0xB, 752, 289, 1 }
 
FieldActorEntry actor12 = { actor12Conditions, ((void *)0) , 0xA4, 0xC, 280, 645, 1 }
 
FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x132, 0xD, 272, 601, 1 }
 
FieldActorEntry actor14 = { actor14Conditions, actor14Talks, 0x133, 0xE, 303, 607, 1 }
 
FieldActorEntry actor15 = { actor15Conditions, actor15Talks, 0x134, 0xF, 321, 624, 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.
 

Detailed Description

WSTAG631: S Noise Desert, West Sector.

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

Definition in file wstag631.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)

Definition at line 16 of file wstag631.c.

◆ STAGE_FILE

#define STAGE_FILE   0x61F

Definition at line 17 of file wstag631.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map, actors and battles, 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 20 of file wstag631.c.

Variable Documentation

◆ area0Battle0

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

Definition at line 40 of file wstag631.c.

◆ area0Battle1

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

Definition at line 41 of file wstag631.c.

◆ area0Battle2

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

Definition at line 42 of file wstag631.c.

◆ area0Battle3

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

Definition at line 43 of file wstag631.c.

◆ area0Battle4

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

Definition at line 44 of file wstag631.c.

◆ area0Battle5

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

Definition at line 45 of file wstag631.c.

◆ area0Battle6

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

Definition at line 46 of file wstag631.c.

◆ area0Battle7

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

Definition at line 47 of file wstag631.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
3,
}
AreaBattle area0Battle7
Definition wstag631.c:47
AreaBattle area0Battle1
Definition wstag631.c:41
AreaBattle area0Battle6
Definition wstag631.c:46
AreaBattle area0Battle3
Definition wstag631.c:43
AreaBattle area0Battle5
Definition wstag631.c:45
AreaBattle area0Battle0
Definition wstag631.c:40
AreaBattle area0Battle2
Definition wstag631.c:42
AreaBattle area0Battle4
Definition wstag631.c:44

Definition at line 48 of file wstag631.c.

◆ area1Battle0

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

Definition at line 53 of file wstag631.c.

◆ area1Battle1

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

Definition at line 54 of file wstag631.c.

◆ area1Battle2

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

Definition at line 55 of file wstag631.c.

◆ area1Battle3

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

Definition at line 56 of file wstag631.c.

◆ area1Battle4

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

Definition at line 57 of file wstag631.c.

◆ area1Battle5

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

Definition at line 58 of file wstag631.c.

◆ area1Battle6

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

Definition at line 59 of file wstag631.c.

◆ area1Battle7

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

Definition at line 60 of file wstag631.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag631.c:59
AreaBattle area1Battle2
Definition wstag631.c:55
AreaBattle area1Battle4
Definition wstag631.c:57
AreaBattle area1Battle5
Definition wstag631.c:58
AreaBattle area1Battle3
Definition wstag631.c:56
AreaBattle area1Battle0
Definition wstag631.c:53
AreaBattle area1Battle1
Definition wstag631.c:54
AreaBattle area1Battle7
Definition wstag631.c:60

Definition at line 61 of file wstag631.c.

◆ area2Battle0

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

Definition at line 66 of file wstag631.c.

◆ area2Battle1

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

Definition at line 67 of file wstag631.c.

◆ area2Battle2

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

Definition at line 68 of file wstag631.c.

◆ area2Battle3

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

Definition at line 69 of file wstag631.c.

◆ area2Battle4

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

Definition at line 70 of file wstag631.c.

◆ area2Battle5

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

Definition at line 71 of file wstag631.c.

◆ area2Battle6

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

Definition at line 72 of file wstag631.c.

◆ area2Battle7

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

Definition at line 73 of file wstag631.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag631.c:73
AreaBattle area2Battle6
Definition wstag631.c:72
AreaBattle area2Battle0
Definition wstag631.c:66
AreaBattle area2Battle4
Definition wstag631.c:70
AreaBattle area2Battle2
Definition wstag631.c:68
AreaBattle area2Battle1
Definition wstag631.c:67
AreaBattle area2Battle5
Definition wstag631.c:71
AreaBattle area2Battle3
Definition wstag631.c:69

Definition at line 74 of file wstag631.c.

◆ area3Battle0

AreaBattle area3Battle0 = { 238, 5, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 79 of file wstag631.c.

◆ area3Battle1

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

Definition at line 80 of file wstag631.c.

◆ area3Battle2

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

Definition at line 81 of file wstag631.c.

◆ area3Battle3

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

Definition at line 82 of file wstag631.c.

◆ area3Battle4

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

Definition at line 83 of file wstag631.c.

◆ area3Battle5

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

Definition at line 84 of file wstag631.c.

◆ area3Battle6

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

Definition at line 85 of file wstag631.c.

◆ area3Battle7

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

Definition at line 86 of file wstag631.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag631.c:83
AreaBattle area3Battle3
Definition wstag631.c:82
AreaBattle area3Battle0
Definition wstag631.c:79
AreaBattle area3Battle2
Definition wstag631.c:81
AreaBattle area3Battle1
Definition wstag631.c:80
AreaBattle area3Battle6
Definition wstag631.c:85
AreaBattle area3Battle5
Definition wstag631.c:84
AreaBattle area3Battle7
Definition wstag631.c:86

Definition at line 87 of file wstag631.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag631.c:87
BattleList area1Battles
Definition wstag631.c:61
BattleList area2Battles
Definition wstag631.c:74
BattleList area0Battles
Definition wstag631.c:48

Definition at line 92 of file wstag631.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, 0x162, 0x100, 0x88, 0, 0x140, 0x1FF },
{ 0x140, 0x100, 0x16A, 0x100, 0xA8, 0, 0x150, 0x1FF },
{ 0x140, 0x100, 0x172, 0x100, 0xC8, 0, 0x160, 0x1FF },
{ 0x140, 0x100, 0x162, 0x128, 0x88, 0x28, 0x170, 0x1FF },
{ 0x140, 0x100, 0x16A, 0x128, 0xA8, 0x28, 0x140, 0x1FE },
{ 0x140, 0x100, 0x172, 0x128, 0xC8, 0x28, 0x150, 0x1FE },
{ 0x140, 0x100, 0x162, 0x150, 0x88, 0x50, 0x160, 0x1FE },
{ 0x140, 0x100, 0x172, 0x178, 0xC8, 0x78, 0x170, 0x1FE },
{ 0x140, 0x100, 0x16A, 0x150, 0xA8, 0x50, 0x140, 0x1FD },
{ 0x140, 0x100, 0x172, 0x150, 0xC8, 0x50, 0x150, 0x1FD },
{ 0x140, 0x100, 0x162, 0x178, 0x88, 0x78, 0x160, 0x1FD },
{ 0x140, 0x100, 0x16A, 0x178, 0xA8, 0x78, 0x170, 0x1FD },
}

Definition at line 95 of file wstag631.c.

Referenced by setupStage().

◆ actor1Talk0Conditions

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

Definition at line 115 of file wstag631.c.

◆ actor1Talk0Actions

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

Definition at line 116 of file wstag631.c.

◆ actor1Talk1Conditions

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

Definition at line 117 of file wstag631.c.

◆ actor1Talk2Conditions

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

Definition at line 118 of file wstag631.c.

◆ actor1Talk2Actions

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

Definition at line 119 of file wstag631.c.

◆ actor1Talk3Conditions

u16 actor1Talk3Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 0 )) , 1,
(0x7200 | ( 7 )) , 1,
(0x7200 | ( 9 )) , 1,
(( 0xE ) << 8 | ( 0x29 )) , 0,
0xFFFF ,
}

Definition at line 120 of file wstag631.c.

◆ actor1Talk3Actions

u16 actor1Talk3Actions[]
Initial value:
= {
(0x7400 | ( 0 )) , 1,
(( 0xE ) << 8 | ( 0x29 )) , 1,
0xFFFF ,
}

Definition at line 127 of file wstag631.c.

◆ actor1Talk4Conditions

u16 actor1Talk4Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 0 )) , 1,
(0x7200 | ( 7 )) , 1,
(0x7200 | ( 9 )) , 1,
(( 0xE ) << 8 | ( 0x29 )) , 1,
0xFFFF ,
}

Definition at line 132 of file wstag631.c.

◆ actor2Talk0Conditions

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

Definition at line 139 of file wstag631.c.

◆ actor2Talk0Actions

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

Definition at line 140 of file wstag631.c.

◆ actor2Talk1Conditions

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

Definition at line 141 of file wstag631.c.

◆ actor2Talk2Conditions

u16 actor2Talk2Conditions[] = { (( 0 ) << 8 | ( 0 )) , 1, (0x7200 | ( 0xA )) , 1, (( 0xE ) << 8 | ( 0x4A )) , 0, 0xFFFF }

Definition at line 142 of file wstag631.c.

◆ actor2Talk2Actions

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

Definition at line 143 of file wstag631.c.

◆ actor2Talk3Conditions

u16 actor2Talk3Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 0 )) , 1,
(0x7200 | ( 0xA )) , 1,
(( 0xE ) << 8 | ( 0x4A )) , 1,
(0x7200 | ( 0xC )) , 0,
0xFFFF ,
}

Definition at line 144 of file wstag631.c.

◆ actor2Talk4Conditions

u16 actor2Talk4Conditions[]
Initial value:
= {
(( 0 ) << 8 | ( 0 )) , 1,
(0x7200 | ( 0xA )) , 1,
(( 0xE ) << 8 | ( 0x4A )) , 1,
(0x7200 | ( 0xC )) , 1,
0xFFFF ,
}

Definition at line 151 of file wstag631.c.

◆ actor2Talk4Actions

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

Definition at line 158 of file wstag631.c.

◆ actor3Talk0Conditions

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

Definition at line 159 of file wstag631.c.

◆ actor3Talk1Conditions

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

Definition at line 160 of file wstag631.c.

◆ actor3Talk1Actions

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

Definition at line 161 of file wstag631.c.

◆ actor3Talk2Conditions

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

Definition at line 162 of file wstag631.c.

◆ actor3Talk2Actions

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

Definition at line 163 of file wstag631.c.

◆ actor0Talks

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

Definition at line 164 of file wstag631.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ actor1Talk1Conditions, ((void *)0) , 0x245 },
{ actor1Talk4Conditions, ((void *)0) , 0x248 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk3Actions[]
Definition wstag631.c:127
u16 actor1Talk2Actions[]
Definition wstag631.c:119
u16 actor1Talk1Conditions[]
Definition wstag631.c:117
u16 actor1Talk0Conditions[]
Definition wstag631.c:115
u16 actor1Talk0Actions[]
Definition wstag631.c:116
u16 actor1Talk2Conditions[]
Definition wstag631.c:118
u16 actor1Talk4Conditions[]
Definition wstag631.c:132
u16 actor1Talk3Conditions[]
Definition wstag631.c:120

Definition at line 168 of file wstag631.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ actor2Talk1Conditions, ((void *)0) , 0x24E },
{ actor2Talk3Conditions, ((void *)0) , 0x248 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk1Conditions[]
Definition wstag631.c:141
u16 actor2Talk3Conditions[]
Definition wstag631.c:144
u16 actor2Talk4Actions[]
Definition wstag631.c:158
u16 actor2Talk0Actions[]
Definition wstag631.c:140
u16 actor2Talk2Conditions[]
Definition wstag631.c:142
u16 actor2Talk0Conditions[]
Definition wstag631.c:139
u16 actor2Talk2Actions[]
Definition wstag631.c:143
u16 actor2Talk4Conditions[]
Definition wstag631.c:151

Definition at line 176 of file wstag631.c.

◆ actor3Talks

FieldTalk actor3Talks[]
Initial value:
= {
{ actor3Talk0Conditions, ((void *)0) , 0x39B },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor3Talk0Conditions[]
Definition wstag631.c:159
u16 actor3Talk2Conditions[]
Definition wstag631.c:162
u16 actor3Talk1Conditions[]
Definition wstag631.c:160
u16 actor3Talk1Actions[]
Definition wstag631.c:161
u16 actor3Talk2Actions[]
Definition wstag631.c:163

Definition at line 184 of file wstag631.c.

◆ actor4Talks

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

Definition at line 190 of file wstag631.c.

◆ actor10Talks

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

Definition at line 194 of file wstag631.c.

◆ actor11Talks

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

Definition at line 198 of file wstag631.c.

◆ actor13Talks

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

Definition at line 202 of file wstag631.c.

◆ actor14Talks

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

Definition at line 206 of file wstag631.c.

◆ actor15Talks

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

Definition at line 210 of file wstag631.c.

◆ actor0Conditions

u16 actor0Conditions[]
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 214 of file wstag631.c.

◆ actor1Conditions

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

Definition at line 219 of file wstag631.c.

◆ actor2Conditions

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

Definition at line 226 of file wstag631.c.

◆ actor3Conditions

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

Definition at line 233 of file wstag631.c.

◆ actor4Conditions

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

Definition at line 239 of file wstag631.c.

◆ actor5Conditions

u16 actor5Conditions[]
Initial value:
= {
(0x7000 | ( 0x21 )) , 1,
(0x6000 | ( STORY_AMATERASU_BRIDGE )) , 0,
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 0,
0xFFFF ,
}
@ STORY_AMATERASU_BRIDGE
WSTAG206 (Amaterasu Bridge), event 922: an Attacker holds the bridge.
Definition story.h:133

Definition at line 244 of file wstag631.c.

◆ actor6Conditions

u16 actor6Conditions[]
Initial value:
= {
(0x7000 | ( 0x21 )) , 1,
(0x6000 | ( STORY_AMATERASU_BRIDGE )) , 0,
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 0,
0xFFFF ,
}

Definition at line 250 of file wstag631.c.

◆ actor7Conditions

u16 actor7Conditions[]
Initial value:
= {
(0x7000 | ( 0x21 )) , 1,
(0x6000 | ( STORY_AMATERASU_BRIDGE )) , 0,
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 0,
0xFFFF ,
}

Definition at line 256 of file wstag631.c.

◆ actor8Conditions

u16 actor8Conditions[]
Initial value:
= {
(0x7000 | ( 0x21 )) , 1,
(0x6000 | ( STORY_AMATERASU_BRIDGE )) , 0,
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 0,
0xFFFF ,
}

Definition at line 262 of file wstag631.c.

◆ actor9Conditions

u16 actor9Conditions[]
Initial value:
= {
(0x7000 | ( 0x21 )) , 1,
(0x6000 | ( STORY_AMATERASU_BRIDGE )) , 0,
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 0,
0xFFFF ,
}

Definition at line 268 of file wstag631.c.

◆ actor10Conditions

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

Definition at line 274 of file wstag631.c.

◆ actor11Conditions

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

Definition at line 279 of file wstag631.c.

◆ actor12Conditions

u16 actor12Conditions[]
Initial value:
= {
(0x7000 | ( 0x21 )) , 1,
(0x6000 | ( STORY_AMATERASU_BRIDGE )) , 0,
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 0,
0xFFFF ,
}

Definition at line 280 of file wstag631.c.

◆ actor13Conditions

u16 actor13Conditions[]
Initial value:
= {
(0x7000 | ( 0x21 )) , 1,
(0x6000 | ( STORY_AMATERASU_BRIDGE )) , 0,
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 0,
0xFFFF ,
}

Definition at line 286 of file wstag631.c.

◆ actor14Conditions

u16 actor14Conditions[]
Initial value:
= {
(0x7000 | ( 0x21 )) , 1,
(0x6000 | ( STORY_AMATERASU_BRIDGE )) , 0,
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 0,
0xFFFF ,
}

Definition at line 292 of file wstag631.c.

◆ actor15Conditions

u16 actor15Conditions[]
Initial value:
= {
(0x7000 | ( 0x21 )) , 1,
(0x6000 | ( STORY_AMATERASU_BRIDGE )) , 0,
(0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 0,
0xFFFF ,
}

Definition at line 298 of file wstag631.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x32, 4, 752, 289, 1 }

Definition at line 304 of file wstag631.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x45, 5, 432, 273, 7 }

Definition at line 305 of file wstag631.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x45, 5, 432, 273, 7 }

Definition at line 306 of file wstag631.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x45, 5, 432, 273, 7 }

Definition at line 307 of file wstag631.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x45, 5, 432, 273, 7 }

Definition at line 308 of file wstag631.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, ((void *)0) , 0x46, 6, 143, 672, 1 }

Definition at line 309 of file wstag631.c.

◆ actor6

FieldActorEntry actor6 = { actor6Conditions, ((void *)0) , 0x47, 7, 177, 689, 1 }

Definition at line 310 of file wstag631.c.

◆ actor7

FieldActorEntry actor7 = { actor7Conditions, ((void *)0) , 0x48, 8, 207, 657, 1 }

Definition at line 311 of file wstag631.c.

◆ actor8

FieldActorEntry actor8 = { actor8Conditions, ((void *)0) , 0x49, 9, 232, 620, 1 }

Definition at line 312 of file wstag631.c.

◆ actor9

FieldActorEntry actor9 = { actor9Conditions, ((void *)0) , 0x4A, 0xA, 263, 628, 1 }

Definition at line 313 of file wstag631.c.

◆ actor10

FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x9D, 0xB, 752, 289, 1 }

Definition at line 314 of file wstag631.c.

◆ actor11

FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x9D, 0xB, 752, 289, 1 }

Definition at line 315 of file wstag631.c.

◆ actor12

FieldActorEntry actor12 = { actor12Conditions, ((void *)0) , 0xA4, 0xC, 280, 645, 1 }

Definition at line 316 of file wstag631.c.

◆ actor13

FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x132, 0xD, 272, 601, 1 }

Definition at line 317 of file wstag631.c.

◆ actor14

FieldActorEntry actor14 = { actor14Conditions, actor14Talks, 0x133, 0xE, 303, 607, 1 }

Definition at line 318 of file wstag631.c.

◆ actor15

FieldActorEntry actor15 = { actor15Conditions, actor15Talks, 0x134, 0xF, 321, 624, 1 }

Definition at line 319 of file wstag631.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag631.c:304
FieldActorEntry actor6
Definition wstag631.c:310
FieldActorEntry actor5
Definition wstag631.c:309
FieldActorEntry actor2
Definition wstag631.c:306
FieldActorEntry actor10
Definition wstag631.c:314
FieldActorEntry actor4
Definition wstag631.c:308
FieldActorEntry actor8
Definition wstag631.c:312
FieldActorEntry actor9
Definition wstag631.c:313
FieldActorEntry actor15
Definition wstag631.c:319
FieldActorEntry actor12
Definition wstag631.c:316
FieldActorEntry actor7
Definition wstag631.c:311
FieldActorEntry actor13
Definition wstag631.c:317
FieldActorEntry actor11
Definition wstag631.c:315
FieldActorEntry actor1
Definition wstag631.c:305
FieldActorEntry actor3
Definition wstag631.c:307
FieldActorEntry actor14
Definition wstag631.c:318

Definition at line 320 of file wstag631.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 541, 275, 326, 0 },
{ 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 364, 459, 509, 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 339 of file wstag631.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2B2, 0x90, 0x540, 5, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2C1, 0x340, 0xF0, 1, 0, 1, 1 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 344 of file wstag631.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map, actors and battles, playing the ambience ENV_0016.
Definition wstag631.c:20

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 349 of file wstag631.c.