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

WSTAG560: Pelche Oasis, 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 wstag560.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_06)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_500 - 1)
 
#define STAGE_FILE   0x2B0
 
#define STAGE_ARCHIVE   0x324
 

Functions

void endEvent1459 (void)
 After event 1459, with Guardromon: applies 0x7C16, an action that does nothing (applyAction's mode changes 0x7C are only 0 and 1)
 
void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0025.
 

Variables

const CVECTOR stageColor = { 0x54, 0x67, 0x96, 0x00 }
 the color the setup copies to FIELDSTG_state.spriteColor
 
s16 script1459 []
 
AreaBattle area0Battle0 = { 148, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 148, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 148, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 148, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 154, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 154, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 154, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 154, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList area0Battles
 
AreaBattle area1Battle0 = { 148, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle1 = { 148, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle2 = { 148, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle3 = { 148, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle4 = { 154, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle5 = { 154, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle6 = { 154, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle7 = { 154, 8, (0x60000000 | ( 2 ) << 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 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle4 = { 330, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle7 = { 61, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
BattleList area3Battles
 
FieldBattles stageBattles []
 
ActorImage stageImages []
 
u16 actor0Talk0Actions [] = { 0x7A30, 1, 0xFFFF }
 
u16 actor1Talk0Actions [] = { (0x9000 | ( 0x65 )) , 1, 0xFFFF }
 
u16 actor2Talk0Actions []
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
u16 actor2Conditions [] = { (( 2 ) << 8 | ( 0x29 )) , 0, 0xFFFF }
 
u16 actor3Conditions []
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x14, 4, 450, 368, 1 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x15, 5, 247, 291, 7 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x21, 6, 502, 546, 1 }
 
FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x65, 7, 608, 240, 5 }
 
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

WSTAG560: Pelche Oasis, West Sector.

Definition in file wstag560.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_06)

Definition at line 26 of file wstag560.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_500 - 1)

Definition at line 27 of file wstag560.c.

◆ STAGE_FILE

#define STAGE_FILE   0x2B0

Definition at line 28 of file wstag560.c.

◆ STAGE_ARCHIVE

#define STAGE_ARCHIVE   0x324

Definition at line 29 of file wstag560.c.

Function Documentation

◆ endEvent1459()

void endEvent1459 ( void  )

After event 1459, with Guardromon: applies 0x7C16, an action that does nothing (applyAction's mode changes 0x7C are only 0 and 1)

Definition at line 16 of file wstag560.c.

◆ setupStage()

void setupStage ( void  )

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

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_0025: the Pelche Oasis

< ENV_0025: the Pelche Oasis

< 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 32 of file wstag560.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 7 of file wstag560.c.

Referenced by setupStage().

◆ script1459

s16 script1459[]
Initial value:
= {
0x102, 2 , 0x117 , 0x133 , 3 ,
0x100, 0x15 , 0xF7 , 0x123 ,
0x101, 0x15 , 1 , 7 ,
0x101, 0x32D , 0x337 , 2 ,
0x302, 2 ,
0x101, 2 , 1 , 3 ,
0x300, 0x24 ,
0x200, 0 , 1 , 0x15 , 0 ,
0x301 ,
0x300, 0x1E ,
0x101, 0x15 , 0x36 , 7 ,
0x101, 0x32D , 0x375 , 2 ,
0x303, 0x15 ,
0x101, 0x15 , 0x37 , 7 ,
0x300, 0x5A ,
0x304, 0xC14 , 0 , 0 , 0 ,
0 ,
0x6004,
}

Definition at line 54 of file wstag560.c.

◆ area0Battle0

AreaBattle area0Battle0 = { 148, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 81 of file wstag560.c.

◆ area0Battle1

AreaBattle area0Battle1 = { 148, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 82 of file wstag560.c.

◆ area0Battle2

AreaBattle area0Battle2 = { 148, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 83 of file wstag560.c.

◆ area0Battle3

AreaBattle area0Battle3 = { 148, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 84 of file wstag560.c.

◆ area0Battle4

AreaBattle area0Battle4 = { 154, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 85 of file wstag560.c.

◆ area0Battle5

AreaBattle area0Battle5 = { 154, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 86 of file wstag560.c.

◆ area0Battle6

AreaBattle area0Battle6 = { 154, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 87 of file wstag560.c.

◆ area0Battle7

AreaBattle area0Battle7 = { 154, 3, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 88 of file wstag560.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
3,
}
AreaBattle area0Battle7
Definition wstag560.c:88
AreaBattle area0Battle1
Definition wstag560.c:82
AreaBattle area0Battle6
Definition wstag560.c:87
AreaBattle area0Battle3
Definition wstag560.c:84
AreaBattle area0Battle5
Definition wstag560.c:86
AreaBattle area0Battle0
Definition wstag560.c:81
AreaBattle area0Battle2
Definition wstag560.c:83
AreaBattle area0Battle4
Definition wstag560.c:85

Definition at line 89 of file wstag560.c.

◆ area1Battle0

AreaBattle area1Battle0 = { 148, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 94 of file wstag560.c.

◆ area1Battle1

AreaBattle area1Battle1 = { 148, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 95 of file wstag560.c.

◆ area1Battle2

AreaBattle area1Battle2 = { 148, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 96 of file wstag560.c.

◆ area1Battle3

AreaBattle area1Battle3 = { 148, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 97 of file wstag560.c.

◆ area1Battle4

AreaBattle area1Battle4 = { 154, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 98 of file wstag560.c.

◆ area1Battle5

AreaBattle area1Battle5 = { 154, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 99 of file wstag560.c.

◆ area1Battle6

AreaBattle area1Battle6 = { 154, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 100 of file wstag560.c.

◆ area1Battle7

AreaBattle area1Battle7 = { 154, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 101 of file wstag560.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
3,
}
AreaBattle area1Battle6
Definition wstag560.c:100
AreaBattle area1Battle2
Definition wstag560.c:96
AreaBattle area1Battle4
Definition wstag560.c:98
AreaBattle area1Battle5
Definition wstag560.c:99
AreaBattle area1Battle3
Definition wstag560.c:97
AreaBattle area1Battle0
Definition wstag560.c:94
AreaBattle area1Battle1
Definition wstag560.c:95
AreaBattle area1Battle7
Definition wstag560.c:101

Definition at line 102 of file wstag560.c.

◆ area2Battle0

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

Definition at line 107 of file wstag560.c.

◆ area2Battle1

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

Definition at line 108 of file wstag560.c.

◆ area2Battle2

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

Definition at line 109 of file wstag560.c.

◆ area2Battle3

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

Definition at line 110 of file wstag560.c.

◆ area2Battle4

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

Definition at line 111 of file wstag560.c.

◆ area2Battle5

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

Definition at line 112 of file wstag560.c.

◆ area2Battle6

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

Definition at line 113 of file wstag560.c.

◆ area2Battle7

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

Definition at line 114 of file wstag560.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag560.c:114
AreaBattle area2Battle6
Definition wstag560.c:113
AreaBattle area2Battle0
Definition wstag560.c:107
AreaBattle area2Battle4
Definition wstag560.c:111
AreaBattle area2Battle2
Definition wstag560.c:109
AreaBattle area2Battle1
Definition wstag560.c:108
AreaBattle area2Battle5
Definition wstag560.c:112
AreaBattle area2Battle3
Definition wstag560.c:110

Definition at line 115 of file wstag560.c.

◆ area3Battle0

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

Definition at line 120 of file wstag560.c.

◆ area3Battle1

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

Definition at line 121 of file wstag560.c.

◆ area3Battle2

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

Definition at line 122 of file wstag560.c.

◆ area3Battle3

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

Definition at line 123 of file wstag560.c.

◆ area3Battle4

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

Definition at line 124 of file wstag560.c.

◆ area3Battle5

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

Definition at line 125 of file wstag560.c.

◆ area3Battle6

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

Definition at line 126 of file wstag560.c.

◆ area3Battle7

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

Definition at line 127 of file wstag560.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag560.c:124
AreaBattle area3Battle3
Definition wstag560.c:123
AreaBattle area3Battle0
Definition wstag560.c:120
AreaBattle area3Battle2
Definition wstag560.c:122
AreaBattle area3Battle1
Definition wstag560.c:121
AreaBattle area3Battle6
Definition wstag560.c:126
AreaBattle area3Battle5
Definition wstag560.c:125
AreaBattle area3Battle7
Definition wstag560.c:127

Definition at line 128 of file wstag560.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag560.c:128
BattleList area1Battles
Definition wstag560.c:102
BattleList area2Battles
Definition wstag560.c:115
BattleList area0Battles
Definition wstag560.c:89

Definition at line 133 of file wstag560.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, 0x176, 0x19D, 0xD8, 0x9D, 0x160, 0x1FF },
{ 0x1C0, 0x100, 0x1EA, 0x176, 0x2A8, 0x76, 0x170, 0x1FF },
{ 0x140, 0x100, 0x176, 0x1BD, 0xD8, 0xBD, 0x150, 0x1FE },
{ 0x140, 0x100, 0x176, 0x175, 0xD8, 0x75, 0x160, 0x1FE },
}

Definition at line 136 of file wstag560.c.

Referenced by setupStage().

◆ actor0Talk0Actions

u16 actor0Talk0Actions[] = { 0x7A30, 1, 0xFFFF }

Definition at line 148 of file wstag560.c.

◆ actor1Talk0Actions

u16 actor1Talk0Actions[] = { (0x9000 | ( 0x65 )) , 1, 0xFFFF }

Definition at line 149 of file wstag560.c.

◆ actor2Talk0Actions

u16 actor2Talk0Actions[]
Initial value:
= {
(( 2 ) << 8 | ( 0x29 )) , 1,
(0x8000 | ( 1 ) << 9 | ( 0x36 )), 1,
(0x7000 | ( 0x13 )) , 1,
0xFFFF ,
}

Definition at line 150 of file wstag560.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x309 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag560.c:148

Definition at line 156 of file wstag560.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , actor1Talk0Actions, 0x168 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk0Actions[]
Definition wstag560.c:149

Definition at line 160 of file wstag560.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ ((void *)0) , actor2Talk0Actions, 0x26E },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk0Actions[]
Definition wstag560.c:150

Definition at line 164 of file wstag560.c.

◆ actor3Talks

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

Definition at line 168 of file wstag560.c.

◆ actor2Conditions

u16 actor2Conditions[] = { (( 2 ) << 8 | ( 0x29 )) , 0, 0xFFFF }

Definition at line 172 of file wstag560.c.

◆ actor3Conditions

u16 actor3Conditions[]
Initial value:
= {
(0x7000 | ( 0x16 )) , 1,
(0x6000 | ( STORY_LISA_SAVED )) , 0,
0xFFFF ,
}
@ STORY_LISA_SAVED
WSTAG605 (Operation Room), event 511: the player saves Lisa from WaruMonzaemon (the Rusty Rifle)
Definition story.h:79

Definition at line 173 of file wstag560.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x14, 4, 450, 368, 1 }

Definition at line 178 of file wstag560.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x15, 5, 247, 291, 7 }

Definition at line 179 of file wstag560.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x21, 6, 502, 546, 1 }

Definition at line 180 of file wstag560.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x65, 7, 608, 240, 5 }

Definition at line 181 of file wstag560.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag560.c:178
FieldActorEntry actor2
Definition wstag560.c:180
FieldActorEntry actor1
Definition wstag560.c:179
FieldActorEntry actor3
Definition wstag560.c:181

Definition at line 182 of file wstag560.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 1, 1, 1, 6, 8, 0, 410, 231, 0, 0 },
{ 1, 0, 0x40, 2, 1, 1, 1, 6, 8, 0, 554, 520, 0, 0 },
{ 1, 0, 0x80, 2, 7, 0, 0, 0, 0, 0, 0, 384, 0, 0 },
{ 1, 0, 0x80, 2, 8, 0, 0, 0, 0, 0, 384, 384, 0, 0 },
{ 1, 0, 0x70, 2, 9, 0, 0, 0, 0, 0, 20, 512, 0, 0 },
{ 1, 0, 0x78, 2, 0xA, 0, 0, 0, 0, 0, 264, 523, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 94, 473, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 254, 516, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 367, 431, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 1, 0x32, 0x34, 0xA, 0, 386, 432, 0, 0 },
{ 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 160, 396, 0, 0 },
{ 1, 0, 0x40, 6, 0x35, 1, 0x35, 0x37, 0xA, 0, 298, 481, 0, 0 },
{ 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 268, 346, 0, 0 },
{ 1, 0, 0x40, 6, 0x3B, 1, 0x3B, 0x3D, 0xA, 0, 347, 389, 0, 0 },
{ 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 155, 525, 0, 0 },
{ 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 197, 568, 0, 0 },
{ 1, 0, 0x40, 6, 0x41, 1, 0x41, 0x43, 0xA, 0, 208, 580, 0, 0 },
{ 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 124, 412, 0, 0 },
{ 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 201, 372, 0, 0 },
{ 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 226, 530, 0, 0 },
{ 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 291, 355, 0, 0 },
{ 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 309, 520, 0, 0 },
{ 1, 0, 0x40, 6, 0x44, 1, 0x44, 0x46, 0xA, 0, 419, 451, 0, 0 },
{ 1, 0, 0x40, 0xA, 0x47, 1, 0x47, 0x49, 6, 0, 204, 396, 0, 0 },
{ 1, 0, 0x40, 0xA, 0x4A, 1, 0x4A, 0x4D, 6, 0, 213, 360, 0, 0 },
{ 1, 0, 0x68, 0xA, 0x4E, 2, 0, 2, 6, 0, 181, 376, 0, 0 },
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 584, 137, 169, 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 189 of file wstag560.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x248, 0x610, 0x240, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x24A, 0x80, 0x178, 7, 0, 0, 0 },
{ { { (0x7000 | ( 0x93 )) , 1 }, { 0xFFFF , 0 } }, 10 , 0x2E2, 0xB0, 0x148, 7, 0, 5, 1 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0xFFC8, 0x3C, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0xFFD0, 0xFFF8, 0, 0, 0, 0, 0 },
{ { { (0x8000 | ( 0 ) << 9 | ( 5 )), 1 }, { 0xFFFF , 0 } }, 7 , 0x40, 0xFFF0, 0, 0, 0, 0, 0 },
{ { { (0x7000 | ( 0x93 )) , 1 }, { 0xFFFF , 0 } }, 10 , 0x2E2, 0xB0, 0x148, 7, 0, 5, 1 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 219 of file wstag560.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_0025.
Definition wstag560.c:32

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 229 of file wstag560.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1459, script1459, ( ( 0x13D - 1) << 16 | ( 0x26 )), ((void *)0) , endEvent1459 },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void endEvent1459(void)
After event 1459, with Guardromon: applies 0x7C16, an action that does nothing (applyAction's mode ch...
Definition wstag560.c:16
s16 script1459[]
Definition wstag560.c:54

Definition at line 232 of file wstag560.c.

Referenced by setupStage().