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

FIELDSTG.PRO's data, after its code: its tables point to each other, to FIELDSTG's functions and to the stage overlays'. More...

#include "field/field_mode.h"
#include "field/stages.h"
Include dependency graph for fieldstg.c:

Go to the source code of this file.

Macros

#define STORY_TEXT_FILE   (TEXT_EVENTS_260 - 1)
 The story events' text file, counted from TEXT_FILE(1) as FieldEvent.text is.
 
#define STORY_TEXT(n)   (STORY_TEXT_FILE << 16 | (n))
 

Variables

BattleEnemy FIELDSTG_enemies []
 The encounters' enemies, one encounter's after another; the first, none, fills the places of the encounters with fewer than three.
 
Encounter FIELDSTG_encounters []
 The battles that can start on the field (FIELDSTG_startEncounter)
 
s16 FIELDSTG_liftShake []
 FIELDSTG_updateLift's shakes, up to 1000.
 
ChoiceText FIELDSTG_choices [16]
 
ProgressEvent FIELDSTG_progressEvents []
 
AnimFrame FIELDSTG_cutsceneAnim []
 FIELDSTG_playCutsceneAnim's animations: kind 0's,.
 
AnimFrame FIELDSTG_cutsceneLoopAnim []
 and kind 1's two
 
AnimFrame FIELDSTG_cutsceneLoopAnim2 []
 
AnimFrame FIELDSTG_effectAnim0 []
 
AnimFrame FIELDSTG_effectAnim1 []
 
AnimFrame FIELDSTG_effectAnim1b []
 
AnimFrame FIELDSTG_effectAnim2 []
 
AnimFrame FIELDSTG_effectAnim2b []
 
AnimFrame FIELDSTG_effectAnim3 []
 
AnimFrame * FIELDSTG_effectAnims [][4]
 FIELDSTG_updateEffect's animations of each set.
 
u8 FIELDSTG_slotLayouts [][4][5][6]
 FIELDSTG_pickViewTiles's slot layouts: [layout][quadrant][row][column].
 
u8 FIELDSTG_dirLayouts [][2]
 the layout and its flips for each direction
 
u8 FIELDSTG_slotOffsets [][2][2]
 the slots' offset in tiles: [quadrant][x, y][unflipped, flipped]
 
s32 FIELDSTG_spriteDepths []
 depth of each layer of a StreamTask's sprites
 
Vec2 FIELDSTG_slotImages []
 VRAM position of each StreamTask slot's image.
 
AreaName FIELDSTG_areaNames []
 
BannerBox FIELDSTG_bannerBoxes [10]
 FIELDSTG_updateBanner's boxes.
 
u8 FIELDSTG_triggerAnims [][9]
 FIELDSTG_stepBalloonAnim's animations: (frame, time) pairs up to 0xFF.
 
u8 FIELDSTG_triggerAnimsPad = 0x03
 Nothing reads it: the padding after FIELDSTG_triggerAnims, up to the word FIELDSTG_nearDirs starts at, which the USA and European versions fill with a byte of their own (the Japanese version leaves the alignment's zero)
 
u8 FIELDSTG_nearDirs [][8]
 whether two directions are at most 45 degrees apart
 
s16 FIELDSTG_file5DModes []
 the modes that load the field file 0x5D (FIELDSTG_requestInnNames)
 
u8 FIELDSTG_iconAnim0 [][2]
 
u8 FIELDSTG_iconAnim1 [][2]
 
u8 FIELDSTG_iconAnim2 [][2]
 
u8 FIELDSTG_iconAnim3 [][2]
 
u8(*[] FIELDSTG_iconAnims )[2]
 FIELDSTG_updateActorIcon's animation of each substate.
 
IconOffset FIELDSTG_iconPath []
 up to (0, 0)
 
s32 FIELDSTG_iconPathStep = 0
 the step in FIELDSTG_iconPath
 
TileMove FIELDSTG_tileMoves []
 
s16 FIELDSTG_eventIds []
 the events FIELDSTG_startListedEvent starts
 
u8 FIELDSTG_spotAnim [][2]
 animation of FIELDSTG_updateHiddenSpots: (frame, time) pairs up to 0xFF
 
u8 FIELDSTG_dirAnim0 []
 
u8 FIELDSTG_dirAnim1 []
 
u8 FIELDSTG_dirAnim2 []
 
u8 FIELDSTG_dirAnim3 []
 
u8 FIELDSTG_dirAnim4 []
 
u8 FIELDSTG_dirAnim5 []
 
u8 FIELDSTG_dirAnim6 []
 
u8 FIELDSTG_dirAnim7 []
 
u8 * FIELDSTG_dirAnims []
 FIELDSTG_updateSpotEffect's animation for each direction.
 
s32 FIELDSTG_dirDepths []
 and its depth offset
 
u8 FIELDSTG_gaugeRow0 []
 
u8 FIELDSTG_gaugeRow1 []
 
u8 FIELDSTG_gaugeRow2 []
 
u8 FIELDSTG_gaugeRow3 []
 
u8 FIELDSTG_gaugeRow4 []
 
u8 FIELDSTG_gaugeRow5 []
 
u8 FIELDSTG_gaugeRow6 []
 
u8 FIELDSTG_gaugeRow7 []
 
u8 FIELDSTG_gaugeRow8 []
 
u8 * FIELDSTG_gaugeRows []
 The rows of FIELDSTG_runGauge's gauges, 2 bits a cell.
 
Vec2 FIELDSTG_shakeOffsets []
 the camera's shake offsets
 
u8 FIELDSTG_probes [][5]
 the probes of each direction (FIELDSTG_checkFlightProbes)
 
Vec2 FIELDSTG_probePos []
 a probe's position
 
u8 FIELDSTG_probeSteps [][2]
 a probe's offset: bit 0 set, bit 7 negative
 
s32 FIELDSTG_padDirs []
 the direction of each combination of the pad directions
 
StandIn FIELDSTG_standIns []
 up to character 0
 
s32 FIELDSTG_turnedPartners []
 the partners' kinds (Actor.key2): the ones FIELDSTG_startActorGauge turns, FIELDSTG_haltPartners stops and FIELDSTG_resumePartners makes follow again
 
s32 FIELDSTG_haltedPartners []
 
s32 FIELDSTG_followingPartners []
 
Vec2 FIELDSTG_dirSteps []
 tile offset of each direction
 
FieldImages FIELDSTG_images
 The field's own image and its actors' (FieldState.images)
 
u16 FIELDSTG_talkFlags []
 The FLAGS_00 conditions and actions of the field's talks: (code, value) pairs up to CODES_END, one list a line, each padded with a 0 to a word as the stages' separate lists are (flag 0x1C3D: the lift is up, Lift)
 
FieldTalk FIELDSTG_talks []
 What the field's characters say: a list for each, up to the entry without conditions, then an empty one.
 
u16 FIELDSTG_actorFlags []
 The conditions of the field's characters, as FIELDSTG_talkFlags.
 
FieldActorEntry FIELDSTG_actors []
 The field's characters (FieldState.actors)
 
FieldActorEntry * FIELDSTG_actorList []
 
StageTile FIELDSTG_mapObjects []
 The field's map objects (FieldState.objects), up to the first margin 0.
 
StageSlot FIELDSTG_slots []
 What the player can trigger on the field's map (FieldState.slots), up to type 0.
 
void(* FIELDSTG_initFuncs [])(void) = {FIELDSTG_setupField}
 
void(* FIELDSTG_tweenStart )(PanelAnim *tween, s32 in) = FIELDSTG_startTween
 FIELDSTG_startTween.
 
s32(* FIELDSTG_tweenUpdate )(PanelAnim *tween) = FIELDSTG_updateTween
 FIELDSTG_updateTween.
 
FieldEvent FIELDSTG_events []
 The story events (FIELDSTG_setupField), up to the first id -1: the scripts are WSTAG260's, the stage that FIELDSTG_stages starts with FIELDSTG_createStoryEvents.
 
FieldState FIELDSTG_state
 
s32 FIELDSTG_fileEntries []
 by character (Actor.key1)
 
u8 FIELDSTG_actorWidths []
 by character, in pixels (FieldState.getActorWidth)
 
StageEntry FIELDSTG_extraStages []
 The European and Japanese versions' extra chapter's stages (STORY_EXTRA), the modes they take over first: the table has no end of its own, so FIELDSTG_pickStage's search runs on into FIELDSTG_stages after it.
 
StageEntry FIELDSTG_stages []
 
ScriptTimer FIELDSTG_scriptTimer = {0, 0, FIELDSTG_resetScriptTimer, FIELDSTG_findActor}
 
void(* FIELDSTG_scriptHelpers [])()
 the script helpers (FIELDSTG_toScreenPos...)
 
ScriptCommand FIELDSTG_scriptCommands []
 The script commands (FIELDSTG_findScriptCommand), up to the first id 0.
 
void(* FIELDSTG_checkBattle )() = FIELDSTG_countBattleSteps
 FIELDSTG_countBattleSteps.
 
FieldBattleFuncs FIELDSTG_battleFuncs
 
s32 FIELDSTG_battleRates []
 how much each area lowers GAME.battleSteps, the steps to the next battle
 
FieldMap FIELDSTG_map
 
s32 FIELDSTG_boxFrame = -1
 the frame FIELDSTG_boxes was filled in
 
Vec2 FIELDSTG_dirVectors [][8]
 a direction's vector, scaled by 4096
 
u8 FIELDSTG_mirrorDirs []
 
s16 FIELDSTG_heldVoice = 0
 the voice of FIELDSTG_handleFieldCommand's held sound
 
Vec2 FIELDSTG_mapSize = {0, 0}
 FIELDSTG_getMapSize's.
 
StageTile * FIELDSTG_objectCursor = ((void *)0)
 FIELDSTG_findNextObject's search of the map objects.
 
s32 FIELDSTG_objectId = 0
 and the id it looks for
 
Vec2 FIELDSTG_tiles [5][6] = {{{0}}}
 FIELDSTG_playBattleTransition's.
 
s32 FIELDSTG_battleFileStep = 0
 FIELDSTG_playBattleTransition's: 0 and 1 wait for the CD, 2 the battle's files are asked for.
 
s32 FIELDSTG_transitionUnused = 0
 among FIELDSTG_playBattleTransition's; nothing uses it
 
RECT FIELDSTG_screenRect = {0, 0, 0, 0}
 
s16 FIELDSTG_slideVoice = 0
 the voice of the slide's sound (ACTOR_SLIDE, SOUND_TRAP_ICE)
 
u16 FIELDSTG_slideVoicePad = 0x4E49
 Nothing reads it: the padding after FIELDSTG_slideVoice, which the European version fills (the Japanese version leaves the alignment's zero)
 
Box FIELDSTG_boxes [20] = {{0}}
 the characters' boxes (FIELDSTG_isTileFree)
 
s32 FIELDSTG_boxCount = 0
 and their number
 

Detailed Description

FIELDSTG.PRO's data, after its code: its tables point to each other, to FIELDSTG's functions and to the stage overlays'.

The versions differ where #if says.

FIELDSTG.PRO was at least five objects: each one's jump tables are aligned to 8 from the start of its own rodata, and the tables at 0x800824C4, 0x80082598, 0x800825CC and 0x800825E0 (USA) each start right where the one before ends, 4 bytes past a multiple of 8 from the start of the object before, so each one starts a new object (lift.c, event.c, banner.c and trigger.c). Where each object's code starts is only known to be between the function with the last jump table of the object before and the one with its first, and the data is all here; the files between are FIELDSTG's modules, cut where no jump table moves.

Definition in file fieldstg.c.

Macro Definition Documentation

◆ STORY_TEXT_FILE

#define STORY_TEXT_FILE   (TEXT_EVENTS_260 - 1)

The story events' text file, counted from TEXT_FILE(1) as FieldEvent.text is.

Definition at line 2566 of file fieldstg.c.

◆ STORY_TEXT

#define STORY_TEXT (   n)    (STORY_TEXT_FILE << 16 | (n))

Definition at line 2568 of file fieldstg.c.

Variable Documentation

◆ FIELDSTG_enemies

BattleEnemy FIELDSTG_enemies[]

The encounters' enemies, one encounter's after another; the first, none, fills the places of the encounters with fewer than three.

Definition at line 22 of file fieldstg.c.

◆ FIELDSTG_encounters

Encounter FIELDSTG_encounters[]

The battles that can start on the field (FIELDSTG_startEncounter)

FIELDSTG's data (fieldstg.c), in its order.

Definition at line 948 of file fieldstg.c.

Referenced by FIELDSTG_startEncounter().

◆ FIELDSTG_liftShake

s16 FIELDSTG_liftShake[]
Initial value:
= {
1, 2, 1, 0, -1, -2, -1, 0, 1000, 0,
}

FIELDSTG_updateLift's shakes, up to 1000.

Definition at line 1286 of file fieldstg.c.

Referenced by FIELDSTG_updateLift().

◆ FIELDSTG_choices

ChoiceText FIELDSTG_choices[16]
Initial value:
= {
{0x1190002, {0x535, 0x536}},
{0x1190005, {0x53A, 0x53B}},
{0x1190009, {0x53F, 0x540}},
{0x119000D, {0x544, 0x545}},
{0x1190011, {0x549, 0x54A}},
{0x1190015, {0x54E, 0x54F}},
{0x1190019, {0x553, 0x554}},
{0x119001D, {0x558, 0x559}},
{0x1190021, {0x55D, 0x55E}},
{0x1190025, {0x562, 0x563}},
{0x1190029, {0x567, 0x568}},
{0x119002D, {0x56C, 0x56D}},
{0x1190031, {0x571, 0x572}},
{0x1190035, {0x576, 0x577}},
{0x1190039, {0x57B, 0x57C}},
{0x119003D, {0x580, 0x581}},
}

Definition at line 1309 of file fieldstg.c.

Referenced by FIELDSTG_runChoice().

◆ FIELDSTG_progressEvents

ProgressEvent FIELDSTG_progressEvents[]
Initial value:
= {
{STORY_SEIRYU_BADGE, (( 4 ) << 8 | ( 0 )) , (0x7000 | ( 0x74 )) , 0x533, 0x534},
{STORY_SEPIKMON_MASK_LOST, (( 4 ) << 8 | ( 1 )) , (0x7000 | ( 0x74 )) , 0x538, 0x539},
{STORY_LOOKING_FOR_TEDDY, (( 4 ) << 8 | ( 2 )) , (0x7000 | ( 0x75 )) , 0x53D, 0x53E},
{STORY_TEDDY_FOUND, (( 4 ) << 8 | ( 3 )) , (0x7000 | ( 0x75 )) , 0x542, 0x543},
{STORY_NUMEMON_FOUND, (( 4 ) << 8 | ( 4 )) , (0x7000 | ( 0x76 )) , 0x547, 0x548},
{STORY_CONTROL_ROOM, (( 4 ) << 8 | ( 5 )) , (0x7000 | ( 0x76 )) , 0x54C, 0x54D},
{STORY_KNIGHTMON_REPROGRAMMED, (( 4 ) << 8 | ( 6 )) , (0x7000 | ( 0x77 )) , 0x551, 0x552},
{STORY_BULBMON_FOUND, (( 4 ) << 8 | ( 7 )) , (0x7000 | ( 0x77 )) , 0x556, 0x557},
{STORY_BLUE_ID_PASS, (( 4 ) << 8 | ( 8 )) , (0x7000 | ( 0x78 )) , 0x55B, 0x55C},
{STORY_DE_KNOWLEDGE, (( 4 ) << 8 | ( 9 )) , (0x7000 | ( 0x78 )) , 0x560, 0x561},
{STORY_GENBU_BADGE, (( 4 ) << 8 | ( 0xA )) , (0x7000 | ( 0x79 )) , 0x565, 0x566},
{STORY_WAY_TO_AMATERASU, (( 4 ) << 8 | ( 0xB )) , (0x7000 | ( 0x79 )) , 0x56A, 0x56B},
{STORY_BLACK_ID_PASS, (( 4 ) << 8 | ( 0xC )) , (0x7000 | ( 0x7A )) , 0x56F, 0x570},
{STORY_AMATERASU_BRIDGE, (( 4 ) << 8 | ( 0xD )) , (0x7000 | ( 0x7B )) , 0x574, 0x575},
{STORY_PRESIDENT_ARRESTED, (( 4 ) << 8 | ( 0xE )) , (0x7000 | ( 0x7C )) , 0x579, 0x57A},
{STORY_ASUKA_HEADQUARTERS, (( 4 ) << 8 | ( 0xF )) , (0x7000 | ( 0x7D )) , 0x57E, 0x57F},
{-1, 0, 0, 0, 0},
}
@ STORY_BLACK_ID_PASS
WSTAG756 (Battle Gate), event 911: the Black ID Pass.
Definition story.h:131
@ STORY_PRESIDENT_ARRESTED
WSTAG226 (Login Room, Amaterasu City), event 935, after the President of MAGAMI gives himself up (WST...
Definition story.h:136
@ STORY_BULBMON_FOUND
WSTAG520 (Suzaku Hall), event 695: another earthquake; Bulbmon digs the holes.
Definition story.h:103
@ 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
@ STORY_SEPIKMON_MASK_LOST
WSTAG480 (Jungle Grave), event 171: Sepikmon will say how to beat Zanbamon once the player finds his ...
Definition story.h:49
@ STORY_AMATERASU_BRIDGE
WSTAG206 (Amaterasu Bridge), event 922: an Attacker holds the bridge.
Definition story.h:133
@ STORY_CONTROL_ROOM
WSTAG325 (Control Room, Asuka City), event 560: a Soldier guards the way.
Definition story.h:90
@ STORY_NUMEMON_FOUND
WSTAG685 (Underground Cave, Byakko City), event 413: the rock blocking the hole is Numemon.
Definition story.h:73
@ STORY_KNIGHTMON_REPROGRAMMED
WSTAG210 (Main Lobby, Asuka City), event 685: the A.o.A have reprogrammed Knightmon,...
Definition story.h:97
@ STORY_TEDDY_FOUND
WSTAG212, event 352: Teddy is found; MAGAMI is part of the A.o.A, and the player sets off to beat the...
Definition story.h:67
@ STORY_LOOKING_FOR_TEDDY
WSTAG212, event 273: Kail and the player will put on the Agumon Suits to look for Teddy.
Definition story.h:61
@ STORY_WAY_TO_AMATERASU
WSTAG305, events 893 and 895: the way into Amaterasu City, the A.o.A's headquarters,...
Definition story.h:126
@ STORY_DE_KNOWLEDGE
WSTAG526 (Zhu Que UG Lake), event 760: the fight with Zanbamon (the DE Knowledge)
Definition story.h:115
@ STORY_GENBU_BADGE
WSTAG755 (Battle Gate), event 781: the Xuen Wu Chief, who holds the Black ID Pass,...
Definition story.h:118
@ STORY_ASUKA_HEADQUARTERS
WSTAG310 (A.o.A Headquarters, Asuka City), event 961.
Definition story.h:138
@ STORY_SEIRYU_BADGE
WSTAG420, event 71: the Seiryu Leader is beaten (the Silver ID and the Seiryu Badge),...
Definition story.h:39

Definition at line 1328 of file fieldstg.c.

Referenced by FIELDSTG_runStoryEvents().

◆ FIELDSTG_cutsceneAnim

AnimFrame FIELDSTG_cutsceneAnim[]
Initial value:
= {
{0, 1}, {0, 13}, {1, 14}, {2, 15},
{3, 14}, {0, 13}, {1, 14}, {2, 15},
{3, 14}, {0, 6}, {1, 6}, {2, 6},
{4, 7}, {5, 5}, {6, 4}, {7, 4},
{8, 4}, {9, 4}, {-1, -1},
}

FIELDSTG_playCutsceneAnim's animations: kind 0's,.

Definition at line 1347 of file fieldstg.c.

Referenced by FIELDSTG_playCutsceneAnim().

◆ FIELDSTG_cutsceneLoopAnim

AnimFrame FIELDSTG_cutsceneLoopAnim[]
Initial value:
= {
{0, 1}, {1, 8}, {2, 6}, {3, 4},
{4, 4}, {3, 4}, {4, 4}, {3, 6},
{4, 4}, {3, 4}, {-1, 7},
}

and kind 1's two

Definition at line 1354 of file fieldstg.c.

Referenced by FIELDSTG_playCutsceneAnim().

◆ FIELDSTG_cutsceneLoopAnim2

AnimFrame FIELDSTG_cutsceneLoopAnim2[]
Initial value:
= {
{0, 1}, {9, 18}, {5, 4}, {6, 5},
{7, 4}, {8, 4}, {6, 4}, {7, 4},
{8, 4}, {-1, 5},
}

Definition at line 1359 of file fieldstg.c.

Referenced by FIELDSTG_playCutsceneAnim().

◆ FIELDSTG_effectAnim0

AnimFrame FIELDSTG_effectAnim0[]
Initial value:
= {
{0, 4}, {1, 4}, {2, 4}, {3, 4},
{4, 4}, {5, 4}, {6, 4}, {7, 4},
{8, 4}, {9, 4}, {10, 4}, {11, 4},
{12, 4}, {13, 4}, {14, 4}, {15, 4},
{16, 4}, {17, 4}, {18, 4}, {19, 4},
{20, 4}, {21, 4}, {22, 4}, {23, 4},
{24, 4}, {25, 4}, {26, 4}, {27, 4},
{28, 4}, {29, 4}, {30, 4}, {31, 4},
{0xFF, 999},
}

Definition at line 1364 of file fieldstg.c.

◆ FIELDSTG_effectAnim1

AnimFrame FIELDSTG_effectAnim1[]
Initial value:
= {
{0x12C, 28}, {32, 4}, {33, 24}, {34, 4},
{0xFF, 999},
}

Definition at line 1375 of file fieldstg.c.

◆ FIELDSTG_effectAnim1b

AnimFrame FIELDSTG_effectAnim1b[]
Initial value:
= {
{0x12C, 28}, {35, 4}, {36, 24}, {37, 4},
{0xFF, 999},
}

Definition at line 1379 of file fieldstg.c.

◆ FIELDSTG_effectAnim2

AnimFrame FIELDSTG_effectAnim2[]
Initial value:
= {
{0x12C, 104}, {38, 4}, {39, 4}, {40, 4},
{41, 4}, {42, 4}, {43, 4}, {0xFF, 999},
}

Definition at line 1383 of file fieldstg.c.

◆ FIELDSTG_effectAnim2b

AnimFrame FIELDSTG_effectAnim2b[]
Initial value:
= {
{0x12C, 104}, {44, 4}, {45, 4}, {46, 4},
{47, 4}, {48, 4}, {49, 4}, {0xFF, 0},
}

Definition at line 1387 of file fieldstg.c.

◆ FIELDSTG_effectAnim3

AnimFrame FIELDSTG_effectAnim3[]
Initial value:
= {
{0x12C, 128}, {50, 4}, {51, 4}, {52, 4},
{53, 4}, {54, 4}, {55, 4}, {56, 4},
{57, 4}, {58, 4}, {59, 4}, {0xFF, 999},
}

Definition at line 1391 of file fieldstg.c.

◆ FIELDSTG_effectAnims

AnimFrame* FIELDSTG_effectAnims[][4]
Initial value:
= {
}
AnimFrame FIELDSTG_effectAnim3[]
Definition fieldstg.c:1391
AnimFrame FIELDSTG_effectAnim1[]
Definition fieldstg.c:1375
AnimFrame FIELDSTG_effectAnim2[]
Definition fieldstg.c:1383
AnimFrame FIELDSTG_effectAnim0[]
Definition fieldstg.c:1364
AnimFrame FIELDSTG_effectAnim2b[]
Definition fieldstg.c:1387
AnimFrame FIELDSTG_effectAnim1b[]
Definition fieldstg.c:1379

FIELDSTG_updateEffect's animations of each set.

Definition at line 1396 of file fieldstg.c.

Referenced by FIELDSTG_updateEffect().

◆ FIELDSTG_slotLayouts

u8 FIELDSTG_slotLayouts[][4][5][6]

FIELDSTG_pickViewTiles's slot layouts: [layout][quadrant][row][column].

Definition at line 1400 of file fieldstg.c.

Referenced by FIELDSTG_pickViewTiles().

◆ FIELDSTG_dirLayouts

u8 FIELDSTG_dirLayouts[][2]
Initial value:
= {
{0x00, 0x01}, {0x02, 0x01}, {0x01, 0x00}, {0x02, 0x00},
{0x00, 0x00}, {0x02, 0x02}, {0x01, 0x02}, {0x02, 0x03},
}

the layout and its flips for each direction

Definition at line 1492 of file fieldstg.c.

Referenced by FIELDSTG_pickViewTiles().

◆ FIELDSTG_slotOffsets

u8 FIELDSTG_slotOffsets[][2][2]
Initial value:
= {
{{0x02, 0x01}, {0x02, 0x01}},
{{0x01, 0x01}, {0x02, 0x01}},
{{0x02, 0x01}, {0x01, 0x01}},
{{0x01, 0x01}, {0x01, 0x01}},
}

the slots' offset in tiles: [quadrant][x, y][unflipped, flipped]

Definition at line 1496 of file fieldstg.c.

Referenced by FIELDSTG_pickViewTiles().

◆ FIELDSTG_spriteDepths

s32 FIELDSTG_spriteDepths[]
Initial value:
= {
7, 3, 11,
}

depth of each layer of a StreamTask's sprites

Definition at line 1502 of file fieldstg.c.

Referenced by FIELDSTG_drawStream().

◆ FIELDSTG_slotImages

Vec2 FIELDSTG_slotImages[]
Initial value:
= {
{640, 0},
{640, 128},
{768, 0},
{768, 128},
{896, 0},
{896, 128},
{640, 256},
{640, 384},
{768, 256},
{768, 384},
{896, 256},
{896, 384},
}

VRAM position of each StreamTask slot's image.

Definition at line 1505 of file fieldstg.c.

Referenced by FIELDSTG_loadStreamSprites().

◆ FIELDSTG_areaNames

AreaName FIELDSTG_areaNames[]

Definition at line 1519 of file fieldstg.c.

Referenced by FIELDSTG_showAreaName().

◆ FIELDSTG_bannerBoxes

BannerBox FIELDSTG_bannerBoxes[10]
Initial value:
= {
{0, {320, 41}, {0, 1}, 0xFFE400, 1, 124, 320, 8, 0},
{0, {0, 87}, {320, 0}, 0xFFE400, 2, 86, 88, 2, 0},
{0, {0, 0}, {2, 240}, 0xFFE400, 1, 31, 32, 2, 0},
{0, {0, 0}, {1, 240}, 0xFFE400, 1, 13, 14, 2, 0},
{0, {227, 0}, {1, 0}, 0xFFE400, 2, 0, 240, 16, 0},
{0, {320, 40}, {0, 3}, 0xC83E3E, 1, 124, 320, 8, 0},
{0, {0, 87}, {320, 0}, 0xC83E3E, 2, 81, 93, 2, 0},
{0, {0, 0}, {8, 240}, 0xC83E3E, 1, 27, 36, 2, 0},
{0, {125, 16}, {116, 0}, 0x800000, 2, 16, 47, 2, 0},
{0, {0, 87}, {320, 0}, 0x800000, 2, 66, 97, 2, 0},
}

FIELDSTG_updateBanner's boxes.

Definition at line 1761 of file fieldstg.c.

Referenced by FIELDSTG_updateBanner().

◆ FIELDSTG_triggerAnims

u8 FIELDSTG_triggerAnims[][9]
Initial value:
= {
{0x00, 0x3C, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
{0x01, 0x0A, 0x02, 0x0A, 0xFF, 0x00, 0x00, 0x00, 0x00},
{0x03, 0x16, 0x04, 0x16, 0xFF, 0x00, 0x00, 0x00, 0x00},
{0x05, 0x04, 0x06, 0x05, 0x07, 0x04, 0x35, 0x3C, 0xFF},
{0x08, 0x16, 0x09, 0x16, 0xFF, 0x00, 0x00, 0x00, 0x00},
{0x0A, 0x16, 0x0B, 0x16, 0xFF, 0x00, 0x00, 0x00, 0x00},
{0x10, 0x16, 0x11, 0x16, 0xFF, 0x00, 0x00, 0x00, 0x00},
{0x0E, 0x16, 0x0F, 0x16, 0xFF, 0x00, 0x00, 0x00, 0x00},
{0x0C, 0x16, 0x0D, 0x16, 0xFF, 0x00, 0x00, 0x00, 0x00},
{0x12, 0x16, 0x13, 0x16, 0xFF, 0x00, 0x00, 0x00, 0x00},
{0x45, 0x16, 0x46, 0x16, 0xFF, 0x00, 0x00, 0x00, 0x00},
}

FIELDSTG_stepBalloonAnim's animations: (frame, time) pairs up to 0xFF.

Definition at line 1773 of file fieldstg.c.

Referenced by FIELDSTG_stepBalloonAnim().

◆ FIELDSTG_triggerAnimsPad

u8 FIELDSTG_triggerAnimsPad = 0x03

Nothing reads it: the padding after FIELDSTG_triggerAnims, up to the word FIELDSTG_nearDirs starts at, which the USA and European versions fill with a byte of their own (the Japanese version leaves the alignment's zero)

Definition at line 1792 of file fieldstg.c.

◆ FIELDSTG_nearDirs

u8 FIELDSTG_nearDirs[][8]
Initial value:
= {
{0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
{0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00},
{0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00},
{0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00},
{0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00},
{0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00},
{0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01},
{0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01},
}

whether two directions are at most 45 degrees apart

Definition at line 1794 of file fieldstg.c.

Referenced by FIELDSTG_findTrigger().

◆ FIELDSTG_file5DModes

s16 FIELDSTG_file5DModes[]
Initial value:
= {
0x020A, 0x0223, 0x022F, 0x0238, 0x023F, 0x025B, 0x025D, 0x0263,
0x026F, 0x026D, 0x0279, 0x0292, 0x029D, 0x02A5, 0x02AC, 0x02C4,
0x02C6, 0x02CB, 0x02D6, 0x0249, 0x02B3, 0x0000,
}

the modes that load the field file 0x5D (FIELDSTG_requestInnNames)

Definition at line 1804 of file fieldstg.c.

Referenced by FIELDSTG_requestInnNames().

◆ FIELDSTG_iconAnim0

u8 FIELDSTG_iconAnim0[][2]
Initial value:
= {
{0x23, 8}, {0x24, 8}, {0x25, 8}, {0x26, 8},
{0xFF, 0}, {0x00, 0},
}

Definition at line 1809 of file fieldstg.c.

◆ FIELDSTG_iconAnim1

u8 FIELDSTG_iconAnim1[][2]
Initial value:
= {
{0x23, 3}, {0x27, 4}, {0x28, 4}, {0x2D, 4},
{0x2E, 4}, {0x2F, 3}, {0x30, 2}, {0x2E, 2},
{0x2D, 2}, {0x2E, 2}, {0x30, 2}, {0x2E, 2},
{0x2D, 2}, {0x2E, 2}, {0x30, 2}, {0x2E, 2},
{0x2D, 2}, {0x2E, 2}, {0x30, 2}, {0x31, 2},
{0x2B, 2}, {0x29, 2}, {0x2A, 2}, {0xFF, 19},
}

Definition at line 1813 of file fieldstg.c.

◆ FIELDSTG_iconAnim2

u8 FIELDSTG_iconAnim2[][2]
Initial value:
= {
{0x29, 6}, {0x2E, 3}, {0x30, 3}, {0x28, 6},
{0x2C, 8}, {0x23, 8}, {0x24, 8}, {0x25, 8},
{0x26, 8}, {0xFF, 5},
}

Definition at line 1821 of file fieldstg.c.

◆ FIELDSTG_iconAnim3

u8 FIELDSTG_iconAnim3[][2]
Initial value:
= {
{0x23, 3}, {0x27, 4}, {0x28, 4}, {0x2D, 4},
{0x2E, 4}, {0x2F, 3}, {0x30, 2}, {0x2E, 2},
{0x2D, 2}, {0x2E, 2}, {0x30, 2}, {0x2E, 2},
{0x2D, 2}, {0x2E, 2}, {0x30, 2}, {0x2E, 2},
{0x2D, 2}, {0x2E, 2}, {0x30, 2}, {0x2F, 2},
{0x2E, 2}, {0x2D, 2}, {0x28, 3}, {0x23, 3},
{0x23, 8}, {0x24, 8}, {0x25, 8}, {0x26, 8},
{0xFF, 24}, {0x00, 0},
}

Definition at line 1826 of file fieldstg.c.

◆ FIELDSTG_iconAnims

u8(*[] FIELDSTG_iconAnims)[2]
Initial value:
= {
}
u8 FIELDSTG_iconAnim1[][2]
Definition fieldstg.c:1813
u8 FIELDSTG_iconAnim3[][2]
Definition fieldstg.c:1826
u8 FIELDSTG_iconAnim0[][2]
Definition fieldstg.c:1809
u8 FIELDSTG_iconAnim2[][2]
Definition fieldstg.c:1821

FIELDSTG_updateActorIcon's animation of each substate.

Definition at line 1836 of file fieldstg.c.

Referenced by FIELDSTG_updateActorIcon().

◆ FIELDSTG_iconPath

IconOffset FIELDSTG_iconPath[]
Initial value:
= {
{-5, -4}, {-5, -4}, {-5, -4}, {-5, -9},
{-6, -13}, {-8, -17}, {-10, -20}, {-12, -23},
{-13, -23}, {-14, -23}, {-15, -22}, {-16, -21},
{-17, -20}, {-16, -22}, {-16, -22}, {0, 0},
}

up to (0, 0)

Definition at line 1839 of file fieldstg.c.

Referenced by FIELDSTG_updateActorIcon().

◆ FIELDSTG_iconPathStep

s32 FIELDSTG_iconPathStep = 0

the step in FIELDSTG_iconPath

Definition at line 1845 of file fieldstg.c.

Referenced by FIELDSTG_updateActorIcon().

◆ FIELDSTG_tileMoves

TileMove FIELDSTG_tileMoves[]

Definition at line 1846 of file fieldstg.c.

Referenced by moveTransitionTile().

◆ FIELDSTG_eventIds

s16 FIELDSTG_eventIds[]
Initial value:
= {
1522, 1200, 1201, 8, 9, 1512, 54, 1514,
1516, 140, 142, 1205, 1210, 1211, 1215, 1220,
1221, 1457, 1458, 1230, 1231, 1235, 1236, 1240,
1241, 1245, 1510, 1518, 1520, 1250, 1251, 240,
205, 290, 67, 890, 560, 1265, 1267, 1269,
1271, 1273, 1275, 1277, 1279, 300, 70, 60,
1299, 1301, 1302, 1303, 1304, 1260, 1262, 950,
1281, 1283, 1285, 1287, 1289, 1291, 320, 320,
695, 375, 260, 690, 430, 820, 735, 1310,
736, 750, 745, 895, 1320, 1325, 13, 14,
1421, 1423, 1425, 1427, 1429, 1430, 1436, 1438,
1440, 1442, 1444, 1445, 1415, 220, 510, 143,
144, 1450, 1321, 1326, 1455, 1459, 1460, 1461,
1462, 1463, 1464, 1431, 1446, 1602, 1604, 1606,
1612, 1614, 1616, 1618, 1620, 1622, 1624, 1626,
1628, 1646, 1648,
785,
}

the events FIELDSTG_startListedEvent starts

Definition at line 1910 of file fieldstg.c.

Referenced by FIELDSTG_startListedEvent().

◆ FIELDSTG_spotAnim

u8 FIELDSTG_spotAnim[][2]
Initial value:
= {
{0x00, 0x00},
{0x39, 0x06},
{0x3A, 0x04},
{0x3B, 0x04},
{0x3C, 0x08},
{0x3D, 0x08},
{0x3E, 0x08},
{0x3F, 0x0A},
{0x40, 0x08},
{0x38, 0x08},
{0xFF, 0x00},
{0x05, 0x00},
}

animation of FIELDSTG_updateHiddenSpots: (frame, time) pairs up to 0xFF

Definition at line 1931 of file fieldstg.c.

Referenced by FIELDSTG_updateHiddenSpots().

◆ FIELDSTG_dirAnim0

u8 FIELDSTG_dirAnim0[]
Initial value:
= {
0x00, 0x08, 0x5B, 0x04, 0x5C, 0x04, 0x5D, 0x04,
0x5E, 0x04, 0x5F, 0x04, 0xFF, 0x00, 0x00, 0x00,
}

Definition at line 1948 of file fieldstg.c.

◆ FIELDSTG_dirAnim1

u8 FIELDSTG_dirAnim1[]
Initial value:
= {
0x00, 0x08, 0x56, 0x04, 0x57, 0x04, 0x58, 0x04,
0x59, 0x04, 0x5A, 0x04, 0xFF, 0x00, 0x00, 0x00,
}

Definition at line 1952 of file fieldstg.c.

◆ FIELDSTG_dirAnim2

u8 FIELDSTG_dirAnim2[]
Initial value:
= {
0x00, 0x08, 0x51, 0x04, 0x52, 0x04, 0x53, 0x04,
0x54, 0x04, 0x55, 0x04, 0xFF, 0x00, 0x00, 0x00,
}

Definition at line 1956 of file fieldstg.c.

◆ FIELDSTG_dirAnim3

u8 FIELDSTG_dirAnim3[]
Initial value:
= {
0x00, 0x08, 0x4C, 0x04, 0x4D, 0x04, 0x4E, 0x04,
0x4F, 0x04, 0x50, 0x04, 0xFF, 0x00, 0x00, 0x00,
}

Definition at line 1960 of file fieldstg.c.

◆ FIELDSTG_dirAnim4

u8 FIELDSTG_dirAnim4[]
Initial value:
= {
0x00, 0x08, 0x47, 0x04, 0x48, 0x04, 0x49, 0x04,
0x4A, 0x04, 0x4B, 0x04, 0xFF, 0x00, 0x00, 0x00,
}

Definition at line 1964 of file fieldstg.c.

◆ FIELDSTG_dirAnim5

u8 FIELDSTG_dirAnim5[]
Initial value:
= {
0x00, 0x08, 0x14, 0x04, 0x15, 0x04, 0x16, 0x04,
0x17, 0x04, 0x18, 0x04, 0xFF, 0x00, 0x00, 0x00,
}

Definition at line 1968 of file fieldstg.c.

◆ FIELDSTG_dirAnim6

u8 FIELDSTG_dirAnim6[]
Initial value:
= {
0x00, 0x08, 0x19, 0x04, 0x1A, 0x04, 0x1B, 0x04,
0x1C, 0x04, 0x1D, 0x04, 0xFF, 0x00, 0x00, 0x00,
}

Definition at line 1972 of file fieldstg.c.

◆ FIELDSTG_dirAnim7

u8 FIELDSTG_dirAnim7[]
Initial value:
= {
0x00, 0x08, 0x1E, 0x04, 0x1F, 0x04, 0x20, 0x04,
0x21, 0x04, 0x22, 0x04, 0xFF, 0x00, 0x00, 0x00,
}

Definition at line 1976 of file fieldstg.c.

◆ FIELDSTG_dirAnims

u8* FIELDSTG_dirAnims[]
Initial value:
= {
}
u8 FIELDSTG_dirAnim4[]
Definition fieldstg.c:1964
u8 FIELDSTG_dirAnim3[]
Definition fieldstg.c:1960
u8 FIELDSTG_dirAnim2[]
Definition fieldstg.c:1956
u8 FIELDSTG_dirAnim0[]
Definition fieldstg.c:1948
u8 FIELDSTG_dirAnim5[]
Definition fieldstg.c:1968
u8 FIELDSTG_dirAnim7[]
Definition fieldstg.c:1976
u8 FIELDSTG_dirAnim1[]
Definition fieldstg.c:1952
u8 FIELDSTG_dirAnim6[]
Definition fieldstg.c:1972

FIELDSTG_updateSpotEffect's animation for each direction.

Definition at line 1980 of file fieldstg.c.

Referenced by FIELDSTG_updateSpotEffect().

◆ FIELDSTG_dirDepths

s32 FIELDSTG_dirDepths[]
Initial value:
= {
1, 1, 1, -1,
-1, -1, 1, 1,
}

and its depth offset

Definition at line 1984 of file fieldstg.c.

Referenced by FIELDSTG_updateSpotEffect().

◆ FIELDSTG_gaugeRow0

u8 FIELDSTG_gaugeRow0[]
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xAA, 0xAA, 0x95, 0xAA, 0x0A, 0x00,
}

Definition at line 1988 of file fieldstg.c.

◆ FIELDSTG_gaugeRow1

u8 FIELDSTG_gaugeRow1[]
Initial value:
= {
0xAA, 0x15, 0x00, 0x95, 0xAA, 0x15, 0x00, 0x15, 0x00, 0x54, 0xAA, 0x56,
}

Definition at line 1991 of file fieldstg.c.

◆ FIELDSTG_gaugeRow2

u8 FIELDSTG_gaugeRow2[]
Initial value:
= {
0xAA, 0x56, 0xAA, 0xAA, 0xAA, 0x02, 0x00, 0x00, 0x00, 0x00, 0xA8, 0xAA,
}

Definition at line 1994 of file fieldstg.c.

◆ FIELDSTG_gaugeRow3

u8 FIELDSTG_gaugeRow3[]
Initial value:
= {
0x80, 0xAA, 0x2A, 0x00, 0xA8, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0x00, 0x54,
}

Definition at line 1997 of file fieldstg.c.

◆ FIELDSTG_gaugeRow4

u8 FIELDSTG_gaugeRow4[]
Initial value:
= {
0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0x5A, 0xA9, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
}

Definition at line 2000 of file fieldstg.c.

◆ FIELDSTG_gaugeRow5

u8 FIELDSTG_gaugeRow5[]
Initial value:
= {
0xAA, 0x0A, 0x00, 0x00, 0x00, 0x00, 0xA8, 0xAA, 0xAA, 0xAA, 0xAA, 0x56,
}

Definition at line 2003 of file fieldstg.c.

◆ FIELDSTG_gaugeRow6

u8 FIELDSTG_gaugeRow6[]
Initial value:
= {
0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0x2A, 0x00, 0xA8, 0xAA,
}

Definition at line 2006 of file fieldstg.c.

◆ FIELDSTG_gaugeRow7

u8 FIELDSTG_gaugeRow7[]
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x55, 0xA5, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
}

Definition at line 2009 of file fieldstg.c.

◆ FIELDSTG_gaugeRow8

u8 FIELDSTG_gaugeRow8[]
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
}

Definition at line 2013 of file fieldstg.c.

◆ FIELDSTG_gaugeRows

u8* FIELDSTG_gaugeRows[]
Initial value:
= {
}
u8 FIELDSTG_gaugeRow3[]
Definition fieldstg.c:1997
u8 FIELDSTG_gaugeRow8[]
Definition fieldstg.c:2013
u8 FIELDSTG_gaugeRow7[]
Definition fieldstg.c:2009
u8 FIELDSTG_gaugeRow4[]
Definition fieldstg.c:2000
u8 FIELDSTG_gaugeRow0[]
Definition fieldstg.c:1988
u8 FIELDSTG_gaugeRow2[]
Definition fieldstg.c:1994
u8 FIELDSTG_gaugeRow6[]
Definition fieldstg.c:2006
u8 FIELDSTG_gaugeRow1[]
Definition fieldstg.c:1991
u8 FIELDSTG_gaugeRow5[]
Definition fieldstg.c:2003

The rows of FIELDSTG_runGauge's gauges, 2 bits a cell.

The USA version has no row 8 (for GAME.randomGauges used up) and reads past the table, a null pointer

Definition at line 2020 of file fieldstg.c.

Referenced by FIELDSTG_runGauge().

◆ FIELDSTG_shakeOffsets

Vec2 FIELDSTG_shakeOffsets[]
Initial value:
= {
{0, 0},
{-1, -1},
{-1, 1},
{1, -1},
{1, 1},
}

the camera's shake offsets

Definition at line 2027 of file fieldstg.c.

Referenced by FIELDSTG_scrollCamera().

◆ FIELDSTG_probes

u8 FIELDSTG_probes[][5]
Initial value:
= {
{0x0A, 0x05, 0x04, 0x06, 0x03},
{0x0E, 0x06, 0x05, 0x07, 0x04},
{0x0B, 0x07, 0x06, 0x00, 0x05},
{0x0F, 0x07, 0x00, 0x06, 0x01},
{0x08, 0x00, 0x01, 0x07, 0x02},
{0x0C, 0x02, 0x01, 0x03, 0x00},
{0x09, 0x02, 0x03, 0x01, 0x04},
{0x0D, 0x03, 0x04, 0x02, 0x05},
}

the probes of each direction (FIELDSTG_checkFlightProbes)

Definition at line 2034 of file fieldstg.c.

Referenced by FIELDSTG_checkFlightProbes().

◆ FIELDSTG_probePos

Vec2 FIELDSTG_probePos[]
Initial value:
= {
{-6, -8},
{6, -8},
{8, -6},
{8, 6},
{6, 8},
{-6, 8},
{-8, 6},
{-8, -6},
{0, -8},
{8, 0},
{0, 8},
{-8, 0},
{8, -8},
{8, 8},
{-8, 8},
{-8, -8},
}

a probe's position

Definition at line 2044 of file fieldstg.c.

Referenced by FIELDSTG_checkFlightProbes().

◆ FIELDSTG_probeSteps

u8 FIELDSTG_probeSteps[][2]
Initial value:
= {
{0x00, 0x81},
{0x00, 0x81},
{0x01, 0x00},
{0x01, 0x00},
{0x00, 0x01},
{0x00, 0x01},
{0x81, 0x00},
{0x81, 0x00},
{0x00, 0x81},
{0x01, 0x00},
{0x00, 0x01},
{0x81, 0x00},
{0x01, 0x81},
{0x01, 0x01},
{0x81, 0x01},
{0x81, 0x81},
}

a probe's offset: bit 0 set, bit 7 negative

Definition at line 2062 of file fieldstg.c.

Referenced by FIELDSTG_checkFlightProbes().

◆ FIELDSTG_padDirs

s32 FIELDSTG_padDirs[]
Initial value:
= {
0, 4, 6, 5,
0, 0, 7, 0,
2, 3, 0, 0,
1, 0, 0, 0,
}

the direction of each combination of the pad directions

Definition at line 2080 of file fieldstg.c.

Referenced by FIELDSTG_moveByPad().

◆ FIELDSTG_standIns

StandIn FIELDSTG_standIns[]
Initial value:
= {
{0x0070, 0x0020},
{0x0071, 0x0024},
{0x00DB, 0x0014},
{0x00DC, 0x00CE},
{0x00DD, 0x0029},
{0x00DE, 0x0028},
{0x00DF, 0x002A},
{0x00E0, 0x0019},
{0x00E1, 0x0033},
{0x0100, 0x0034},
{0x010C, 0x010B},
{0x010E, 0x009D},
{0x010F, 0x009E},
{0x011C, 0x004B},
{0x0120, 0x000C},
{0x0000, 0x0000},
}

up to character 0

Definition at line 2086 of file fieldstg.c.

Referenced by FIELDSTG_talkToActorAt().

◆ FIELDSTG_turnedPartners

s32 FIELDSTG_turnedPartners[]
Initial value:
= {
2, 4, 8,
}

the partners' kinds (Actor.key2): the ones FIELDSTG_startActorGauge turns, FIELDSTG_haltPartners stops and FIELDSTG_resumePartners makes follow again

Definition at line 2104 of file fieldstg.c.

Referenced by FIELDSTG_startActorGauge().

◆ FIELDSTG_haltedPartners

s32 FIELDSTG_haltedPartners[]
Initial value:
= {
2, 4, 8,
}

Definition at line 2107 of file fieldstg.c.

Referenced by FIELDSTG_haltPartners().

◆ FIELDSTG_followingPartners

s32 FIELDSTG_followingPartners[]
Initial value:
= {
2, 4, 8,
}

Definition at line 2110 of file fieldstg.c.

Referenced by FIELDSTG_resumePartners().

◆ FIELDSTG_dirSteps

Vec2 FIELDSTG_dirSteps[]
Initial value:
= {
{0, 16},
{-11, 11},
{-16, 0},
{-11, -11},
{0, -16},
{11, -11},
{16, 0},
{11, 11},
}

tile offset of each direction

Definition at line 2113 of file fieldstg.c.

Referenced by FIELDSTG_getFacingTile().

◆ FIELDSTG_images

FieldImages FIELDSTG_images
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},
{0x1C0, 0x100, 0x1E2, 0x13E, 0x288, 0x3E, 0x160, 0x1FE},
{0x1C0, 0x100, 0x1EA, 0x13E, 0x2A8, 0x3E, 0x170, 0x1FE},
{0x1C0, 0x100, 0x1F2, 0x13E, 0x2C8, 0x3E, 0x140, 0x1FD},
{0x1C0, 0x100, 0x1CA, 0x140, 0x228, 0x40, 0x150, 0x1FD},
{0x1C0, 0x100, 0x1D2, 0x15C, 0x248, 0x5C, 0x160, 0x1FD},
{0x1C0, 0x100, 0x1DA, 0x15C, 0x268, 0x5C, 0x170, 0x1FD},
{0x1C0, 0x100, 0x1C0, 0x162, 0x200, 0x62, 0x140, 0x1FC},
{0x180, 0x100, 0x1A0, 0x1DB, 0x180, 0xDB, 0x150, 0x1FC},
{0, 0, 0, 0, 0, 0, 0, 0},
{0x1C0, 0x100, 0x1C0, 0x18A, 0x200, 0x8A, 0x160, 0x1FC},
{0x1C0, 0x100, 0x1EA, 0x196, 0x2A8, 0x96, 0x170, 0x1FC},
{0x1C0, 0x100, 0x1C8, 0x198, 0x220, 0x98, 0x140, 0x1FB},
{0x1C0, 0x100, 0x1DC, 0x199, 0x270, 0x99, 0x150, 0x1FB},
{0x1C0, 0x100, 0x1D0, 0x19C, 0x240, 0x9C, 0x160, 0x1FB},
{0x1C0, 0x100, 0x1F2, 0x1A6, 0x2C8, 0xA6, 0x170, 0x1FB},
{0x1C0, 0x100, 0x1C0, 0x1AA, 0x200, 0xAA, 0x140, 0x1FA},
},
}

The field's own image and its actors' (FieldState.images)

the field's own stage (FIELDSTG_setupField)

Definition at line 2124 of file fieldstg.c.

Referenced by FIELDSTG_setupField().

◆ FIELDSTG_talkFlags

u16 FIELDSTG_talkFlags[]
Initial value:
= {
(( 0x1C ) << 8 | ( 0x3D )) , 0, 0xFFFF , 0,
(0x9000 | ( 0x4C )) , 1, (( 0x1C ) << 8 | ( 0x3D )) , 1, 0xFFFF , 0,
(( 0x1C ) << 8 | ( 0x3D )) , 1, 0xFFFF , 0,
(0x9000 | ( 0x4D )) , 1, (( 0x1C ) << 8 | ( 0x3D )) , 0, 0xFFFF , 0,
(( 0x1C ) << 8 | ( 0x3D )) , 0, 0xFFFF , 0,
(0x9000 | ( 0x4C )) , 1, (( 0x1C ) << 8 | ( 0x3D )) , 1, 0xFFFF , 0,
(( 0x1C ) << 8 | ( 0x3D )) , 1, 0xFFFF , 0,
(0x9000 | ( 0x4D )) , 1, (( 0x1C ) << 8 | ( 0x3D )) , 0, 0xFFFF , 0,
}

The FLAGS_00 conditions and actions of the field's talks: (code, value) pairs up to CODES_END, one list a line, each padded with a 0 to a word as the stages' separate lists are (flag 0x1C3D: the lift is up, Lift)

Definition at line 2152 of file fieldstg.c.

◆ FIELDSTG_talks

FieldTalk FIELDSTG_talks[]

What the field's characters say: a list for each, up to the entry without conditions, then an empty one.

Definition at line 2164 of file fieldstg.c.

◆ FIELDSTG_actorFlags

u16 FIELDSTG_actorFlags[]

The conditions of the field's characters, as FIELDSTG_talkFlags.

Definition at line 2266 of file fieldstg.c.

◆ FIELDSTG_actors

FieldActorEntry FIELDSTG_actors[]

The field's characters (FieldState.actors)

Definition at line 2384 of file fieldstg.c.

◆ FIELDSTG_actorList

FieldActorEntry* FIELDSTG_actorList[]

Definition at line 2501 of file fieldstg.c.

Referenced by FIELDSTG_setupField().

◆ FIELDSTG_mapObjects

StageTile FIELDSTG_mapObjects[]
Initial value:
= {
{1, 1, 0x44, 2, 0x52, 2, 0, 1, 4, 0, 312, 282, 0, 0},
{1, 2, 0x40, 2, 0x4A, 1, 0x4A, 0x51, 4, 0, 135, 358, 0, 0},
{1, 0, 0x40, 6, 0x3E, 1, 0x3E, 0x43, 4, 0, 357, 161, 0, 0},
{1, 0, 0x40, 6, 1, 0, 0, 0, 0, 0, 192, 417, 0, 0},
{1, 0, 0x40, 6, 2, 1, 2, 7, 4, 0, 357, 161, 0, 0},
{1, 3, 0xCD, 6, 0, 0, 0, 0, 0, 0, 160, 338, 0, 0},
{1, 0, 0x40, 0xA, 0x44, 1, 0x44, 0x49, 4, 0, 357, 241, 0, 0},
{1, 0, 0x40, 0xA, 8, 1, 8, 0xD, 4, 0, 357, 241, 0, 0},
{1, 0, 0x40, 0xA, 0xF, 1, 0xF, 0x13, 4, 0, 62, 326, 0, 0},
{1, 0, 0x48, 0xA, 0x14, 0, 0, 0, 0, 0, 128, 202, 0, 0},
{1, 0, 0x49, 0xA, 0x15, 0, 0, 0, 0, 0, 200, 183, 0, 0},
{1, 0, 0x40, 4, 0x32, 1, 0x32, 0x37, 4, 0, 357, 161, 200, 0},
{1, 0, 0x40, 8, 0x38, 1, 0x38, 0x3D, 4, 0, 357, 241, 280, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}

The field's map objects (FieldState.objects), up to the first margin 0.

Definition at line 2534 of file fieldstg.c.

Referenced by FIELDSTG_setupField().

◆ FIELDSTG_slots

StageSlot FIELDSTG_slots[]
Initial value:
= {
{{{0xFFFF, 0}, {0xFFFF, 0}}, 1, 0x201, 0x368, 0xF4, 1, 0, 0, 0},
{{{0xFFFF, 0}, {0xFFFF, 0}}, 1, 0x212, 0x2FE, 0xA5, 1, 0, 0, 0},
{{{0xFFFF, 0}, {0xFFFF, 0}}, 6, 1, 0, 0, 0, 0, 0, 0},
{{{0xFFFF, 0}, {0xFFFF, 0}}, 5, 8, 0, 0, 0, 0, 0, 0},
{{{0xFFFF, 0}, {0xFFFF, 0}}, 0, 0, 0, 0, 0, 0, 0, 0},
}

What the player can trigger on the field's map (FieldState.slots), up to type 0.

Definition at line 2552 of file fieldstg.c.

Referenced by FIELDSTG_setupField().

◆ FIELDSTG_initFuncs

void(* FIELDSTG_initFuncs[])(void) ( void  ) = {FIELDSTG_setupField}

Definition at line 2559 of file fieldstg.c.

Referenced by FIELDSTG_createStoryEvents().

◆ FIELDSTG_tweenStart

void(* FIELDSTG_tweenStart) (PanelAnim *tween, s32 in) ( PanelAnim *  tween,
s32  in 
) = FIELDSTG_startTween

FIELDSTG_startTween.

Definition at line 2560 of file fieldstg.c.

Referenced by FIELDSTG_runChoice().

◆ FIELDSTG_tweenUpdate

s32(* FIELDSTG_tweenUpdate) (PanelAnim *tween) ( PanelAnim *  tween) = FIELDSTG_updateTween

FIELDSTG_updateTween.

Definition at line 2561 of file fieldstg.c.

Referenced by FIELDSTG_runChoice().

◆ FIELDSTG_events

FieldEvent FIELDSTG_events[]

The story events (FIELDSTG_setupField), up to the first id -1: the scripts are WSTAG260's, the stage that FIELDSTG_stages starts with FIELDSTG_createStoryEvents.

Definition at line 2572 of file fieldstg.c.

Referenced by FIELDSTG_setupField().

◆ FIELDSTG_state

FieldState FIELDSTG_state
Initial value:
= {
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, {0}, {0, 0},
0, {0}, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, {0, 0}, 0,
}
s32 FIELDSTG_getActorWidth(s32 index)
The width of character index.
Definition state.c:12
s32 FIELDSTG_getFileEntry(s32 index)
The file entry index of FIELDSTG_fileEntries.
Definition state.c:7
void FIELDSTG_pickStage(void)
Picks the stage overlay of the mode (FIELDSTG_stages, in the European version's extra chapter FIELDST...
Definition state.c:19
FieldBattles * FIELDSTG_findBattles(FieldBattles *list, s32 id)
The battles of the place id in a stage's list, or NULL.
Definition state.c:51

Definition at line 2641 of file fieldstg.c.

Referenced by createCharacters(), createParty(), drawEffect(), drawEffect(), drawFaller(), drawFloaterPart(), drawPairSprite(), drawStageEffect(), FIELDSTG_controlFlight(), FIELDSTG_controlPlayer(), FIELDSTG_countBattleSteps(), FIELDSTG_createActor(), FIELDSTG_createBanner(), FIELDSTG_createHiddenSpots(), FIELDSTG_createSpeech(), FIELDSTG_createTalk(), FIELDSTG_drawCoverBlock(), FIELDSTG_drawMapObject(), FIELDSTG_drawStream(), FIELDSTG_findObject(), FIELDSTG_launchActor(), FIELDSTG_leaveFieldAfter(), FIELDSTG_loadFieldFiles(), FIELDSTG_moveByPad(), FIELDSTG_openInn(), FIELDSTG_pickStage(), FIELDSTG_requestSlotFiles(), FIELDSTG_runActorAction(), FIELDSTG_runEvent(), FIELDSTG_runLaunch(), FIELDSTG_runStoryEvents(), FIELDSTG_setOffTrigger(), FIELDSTG_setupField(), FIELDSTG_startActorGauge(), FIELDSTG_startAreaBattle(), FIELDSTG_startClimbDown(), FIELDSTG_startClimbUp(), FIELDSTG_startDrop(), FIELDSTG_startEncounter(), FIELDSTG_startEvent(), FIELDSTG_startEventBattle(), FIELDSTG_startEventBattle5(), FIELDSTG_talkToActorAt(), FIELDSTG_updateActor(), FIELDSTG_updateBalloon(), FIELDSTG_updateBanner(), FIELDSTG_updateField(), FIELDSTG_updateHiddenSpots(), FIELDSTG_updateLift(), FIELDSTG_updateMapObjects(), FIELDSTG_updateTriggers(), FIELDSTG_warpActor(), findTileSix(), findTileSixW(), findTileSixW(), openFieldMenu(), runClimbOffBottom(), runClimbOffTop(), runDrop(), runGauge(), runSearch(), runSlide(), runStopSlide(), runTalk(), runUse(), setupStage(), showField(), showObjectGroups(), startEvent9000(), startEvent9001(), startField(), updateClutTile(), updateCommand833(), updateCommand834(), updateMover(), updateRisers(), updateSoundTile(), updateStage(), updateStage(), updateStillTile(), updateTileAnims(), updateTileAt(), updateTileCursors(), updateTileDuo(), updateTileEffect(), updateTileLift(), updateTileLoop2(), updateTileOnce(), updateTilePair(), updateTilePair16(), updateTilePairN(), updateTileQuad(), updateTileSeqs(), updateTileSeqs8(), updateTileSet(), updateTileSolo(), updateTileSwitch(), updateTileTask(), updateTileTimer(), updateTimer(), updateWanderer(), and updateWanderPair().

◆ FIELDSTG_fileEntries

s32 FIELDSTG_fileEntries[]

by character (Actor.key1)

Definition at line 2761 of file fieldstg.c.

Referenced by FIELDSTG_getFileEntry().

◆ FIELDSTG_actorWidths

u8 FIELDSTG_actorWidths[]

by character, in pixels (FieldState.getActorWidth)

Definition at line 2920 of file fieldstg.c.

Referenced by FIELDSTG_getActorWidth().

◆ FIELDSTG_extraStages

StageEntry FIELDSTG_extraStages[]

The European and Japanese versions' extra chapter's stages (STORY_EXTRA), the modes they take over first: the table has no end of its own, so FIELDSTG_pickStage's search runs on into FIELDSTG_stages after it.

the extra chapter's, which run on into FIELDSTG_stages

Definition at line 2977 of file fieldstg.c.

Referenced by FIELDSTG_pickStage().

◆ FIELDSTG_stages

StageEntry FIELDSTG_stages[]

Definition at line 3337 of file fieldstg.c.

Referenced by FIELDSTG_pickStage().

◆ FIELDSTG_scriptTimer

ScriptTimer FIELDSTG_scriptTimer = {0, 0, FIELDSTG_resetScriptTimer, FIELDSTG_findActor}

Definition at line 3580 of file fieldstg.c.

Referenced by FIELDSTG_resetScriptTimer(), and FIELDSTG_waitScriptTime().

◆ FIELDSTG_scriptHelpers

void(* FIELDSTG_scriptHelpers[])() ( )
Initial value:
= {
}
void FIELDSTG_waitScriptTime(s32 time, s32 *pc)
A script's wait: counts time down, then moves the script on.
Definition script.c:16
void FIELDSTG_toScreenPos(Vec2 *pos)
Turns a map position into a screen one.
Definition script.c:48
void FIELDSTG_waitWalkDone(s32 id, s32 *pc)
A script's wait for the actor id to reach its goal.
Definition script.c:39
void FIELDSTG_clearScriptFlag(void)
A script helper: clears the script flag of character 1, or else of character 2.
Definition script.c:59
void FIELDSTG_waitAnimDone(s32 id, s32 *pc)
A script's wait for the animation of the actor id to end.
Definition script.c:30

the script helpers (FIELDSTG_toScreenPos...)

Definition at line 3581 of file fieldstg.c.

Referenced by FIELDSTG_createTalk(), and FIELDSTG_getSpeechPos().

◆ FIELDSTG_scriptCommands

ScriptCommand FIELDSTG_scriptCommands[]

The script commands (FIELDSTG_findScriptCommand), up to the first id 0.

Most of their functions are those of the stage whose event scripts run the command (include/field/stages.h), and they take different arguments. FIELDSTG's own creates are cast: they return their task, or nothing, where the stages' return it as an s32

Definition at line 3590 of file fieldstg.c.

Referenced by FIELDSTG_findScriptCommand().

◆ FIELDSTG_checkBattle

void(* FIELDSTG_checkBattle) () ( ) = FIELDSTG_countBattleSteps

FIELDSTG_countBattleSteps.

Definition at line 3652 of file fieldstg.c.

Referenced by FIELDSTG_playStepSounds().

◆ FIELDSTG_battleFuncs

FieldBattleFuncs FIELDSTG_battleFuncs
Initial value:
= {
}
void FIELDSTG_startEventBattle(s32 index)
Starts battle index of the fourth area, the one events start.
Definition battle.c:61
void FIELDSTG_startAreaBattle(void)
Starts one of the eight battles of the player's battle area, at random.
Definition battle.c:18

Definition at line 3653 of file fieldstg.c.

Referenced by applyAction(), FIELDSTG_runGauge(), and FIELDSTG_updateHiddenSpots().

◆ FIELDSTG_battleRates

s32 FIELDSTG_battleRates[]
Initial value:
= {
2000, 3, 4, 6,
9, 18,
}

how much each area lowers GAME.battleSteps, the steps to the next battle

Definition at line 3656 of file fieldstg.c.

Referenced by FIELDSTG_countBattleSteps().

◆ FIELDSTG_map

FieldMap FIELDSTG_map
Initial value:
= {
{0, 0, 0, 0, 0, 0, 0, 0},
0,
0,
((void *)0) ,
((void *)0) ,
((void *)0) ,
((void *)0) ,
((void *)0) ,
((void *)0) ,
}
void FIELDSTG_setMapFile(s32 index, s32 value)
Sets the file of map index (FieldMap.setFile)
Definition map.c:46
s32 FIELDSTG_isTileFree(Vec2 *pos)
Whether nothing stands at pos: no character's box (gathered once a frame) and no object.
Definition map.c:103
void FIELDSTG_setFirstMap(s32 index)
Puts the player on map index when the mode is new (FieldMap.setFirstMap)
Definition map.c:51
void FIELDSTG_getWalkStep(Vec2 *pos, s32 scale, s32 dir, Vec2 *out)
A step of scale in a direction on the map the player is on, along the slope of its cell (FieldMap....
Definition map.c:150
void FIELDSTG_getFlyStep(Vec2 *pos, s32 scale, s32 dir, Vec2 *out)
A step of scale in a direction, on the flat (FieldMap.getFlyStep)
Definition map.c:164
s32 FIELDSTG_getMapCell(s32 index, Vec2 *pos)
The cell of map index at pos, down the tree from the grid to the pixel (FieldMap.getCell); 1 without ...
Definition map.c:64
void FIELDSTG_setMap(s32 index)
Puts the player on map index (FieldMap.setMap)
Definition map.c:58

Definition at line 3660 of file fieldstg.c.

Referenced by FIELDSTG_checkFlightProbe(), FIELDSTG_controlFlight(), FIELDSTG_countBattleSteps(), FIELDSTG_findTrigger(), FIELDSTG_getMapCell(), FIELDSTG_offerTrigger(), FIELDSTG_runActorAction(), FIELDSTG_selectMap(), FIELDSTG_setMapFile(), FIELDSTG_setupField(), FIELDSTG_startAreaBattle(), runSlide(), setupStage(), startEvent9000(), startEvent9001(), and startField().

◆ FIELDSTG_boxFrame

s32 FIELDSTG_boxFrame = -1

the frame FIELDSTG_boxes was filled in

Definition at line 3678 of file fieldstg.c.

Referenced by FIELDSTG_isTileFree().

◆ FIELDSTG_dirVectors

Vec2 FIELDSTG_dirVectors[][8]

a direction's vector, scaled by 4096

Definition at line 3679 of file fieldstg.c.

Referenced by FIELDSTG_getFlyStep(), and FIELDSTG_getWalkStep().

◆ FIELDSTG_mirrorDirs

u8 FIELDSTG_mirrorDirs[]
Initial value:
= {
0x00, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01,
}

Definition at line 3751 of file fieldstg.c.

Referenced by FIELDSTG_getWalkStep().

◆ FIELDSTG_heldVoice

s16 FIELDSTG_heldVoice = 0

the voice of FIELDSTG_handleFieldCommand's held sound

Definition at line 3754 of file fieldstg.c.

Referenced by playHeldSound(), and stopHeldSound().

◆ FIELDSTG_mapSize

Vec2 FIELDSTG_mapSize = {0, 0}

FIELDSTG_getMapSize's.

Definition at line 3755 of file fieldstg.c.

Referenced by FIELDSTG_getMapSize().

◆ FIELDSTG_objectCursor

StageTile* FIELDSTG_objectCursor = ((void *)0)

FIELDSTG_findNextObject's search of the map objects.

Definition at line 3756 of file fieldstg.c.

Referenced by FIELDSTG_findNextObject(), and FIELDSTG_findObject().

◆ FIELDSTG_objectId

s32 FIELDSTG_objectId = 0

and the id it looks for

Definition at line 3757 of file fieldstg.c.

Referenced by FIELDSTG_findNextObject(), and FIELDSTG_findObject().

◆ FIELDSTG_tiles

Vec2 FIELDSTG_tiles[5][6] = {{{0}}}

FIELDSTG_playBattleTransition's.

Definition at line 3758 of file fieldstg.c.

Referenced by FIELDSTG_playBattleTransition(), moveTransitionTile(), and placeTransitionTiles().

◆ FIELDSTG_battleFileStep

s32 FIELDSTG_battleFileStep = 0

FIELDSTG_playBattleTransition's: 0 and 1 wait for the CD, 2 the battle's files are asked for.

Definition at line 3759 of file fieldstg.c.

Referenced by FIELDSTG_playBattleTransition(), and waitToRequestBattleFiles().

◆ FIELDSTG_transitionUnused

s32 FIELDSTG_transitionUnused = 0

among FIELDSTG_playBattleTransition's; nothing uses it

Definition at line 3760 of file fieldstg.c.

◆ FIELDSTG_screenRect

RECT FIELDSTG_screenRect = {0, 0, 0, 0}

Definition at line 3761 of file fieldstg.c.

Referenced by FIELDSTG_playBattleTransition().

◆ FIELDSTG_slideVoice

s16 FIELDSTG_slideVoice = 0

the voice of the slide's sound (ACTOR_SLIDE, SOUND_TRAP_ICE)

Definition at line 3762 of file fieldstg.c.

Referenced by runSlide(), and runStopSlide().

◆ FIELDSTG_slideVoicePad

u16 FIELDSTG_slideVoicePad = 0x4E49

Nothing reads it: the padding after FIELDSTG_slideVoice, which the European version fills (the Japanese version leaves the alignment's zero)

Definition at line 3768 of file fieldstg.c.

◆ FIELDSTG_boxes

Box FIELDSTG_boxes[20] = {{0}}

the characters' boxes (FIELDSTG_isTileFree)

Definition at line 3770 of file fieldstg.c.

Referenced by FIELDSTG_isTileFree().

◆ FIELDSTG_boxCount

s32 FIELDSTG_boxCount = 0

and their number

Definition at line 3771 of file fieldstg.c.

Referenced by FIELDSTG_isTileFree().