Skip to Content
The Alchemy Project

include/field/field_engine.h

What the field engine's object (field_engine.c) defines for the code outside it: encounters, the field's actors, the leader's walking, the scene's cues, treasure spots, screen transitions and the palette fade.

Included by battle_effect_internal.h, battle_music.c, world_map_encounter_rules.c, script_psynergy.c, debug.h, script.h, script_commands.h, script_inline.h and speaker.h.

Macros

NameDescription
#defineEXIT_KEEP_DESTINATION 999The exit request whose destination is already in MainRoutineStateWork.next and .entrance, so that gmTakeExit leaves them as they are.
#defineCUE_RESULT_MESSAGE_END 65536A cue result below it is a message number, and from it on the address of the function to run: every function lies above it, so one word holds either.
#defineCUE_KIND_MASK 0xfA cue's control bits 3..0, its kind (CUE_KIND).
#definePSYNERGY_PHASE_MASK (7u << 28)A Psynergy cue's control bits 30..28, its phase (PSYNERGY_PHASE).
#defineEXAMINE_CUE_MASK 0x1ffAn examine cue's control bits 8..0, its kind and what it is on, as EXAMINE_CUE() packs them.
#defineCUE_FACING_MASK 0xf000A cue's control bits 15..12: the heading CUE_FLAG_FACING compares, in sixteenths of a turn.
#defineFIND_TYPE_MASK 0xfff00000A search result's type, its top twelve bits (FIND_ITEM to FIND_MIMIC).
#defineFIND_FUNCTION_BITS 0x0f000000Bits 27..24 of a search result, set only in a function's address: the result is then a function to call.
#defineFIND_CHEST_LOCK_MASK 0xf0000Bits 19..16 of a chest's search result, which fdExamineMetatile compares only with FIND_CHEST_LOCKED.
#defineFIND_CHEST_LOCKED 0x10000A chest that stays shut while a party member (up to ALLY_MAX) leads: "can't open it..." (MsgCantOpenIt).
#defineACT_ID_MASK 0x3ffBits 9..0.
#defineACT_UNIT_SHIFT 10Bits 13..10.
#defineABILITY_ID (c) ((c) & ACT_ID_MASK)The Psynergy.
#defineACT_ITEM_ID (c) ((c) & ACT_ID_MASK)
#defineACT_UNIT (c) (((c) >> ACT_UNIT_SHIFT) & 15)Who uses it.
#defineACT_PACKED 0x2000Use it without paying PP.
#defineCLOAK_END (ACT_PACKED | ABILITY_CLOAK)The Psynergy request that ends Cloak, without paying PP.
#defineFIELD_METATILE_MASK 0xfff00000A 16.16 coordinate's whole metatile: a map grid metatile is 16 pixels square.
#defineFIELD_METATILE_SHIFT 20A 16.16 coordinate's shift to its map grid metatile: 16 bits of fraction and 4 of the metatile's 16 pixels.
#defineFIELD_METATILE (coordinate) ((coordinate) >> FIELD_METATILE_SHIFT)The map grid metatile a 16.16 coordinate lies in, counted from 0 along its axis.
#defineFIELD_HALF_METATILE (coordinate)The half metatile, 8 pixels, a 16.16 coordinate lies in, counted from 0 along its axis.
#defineFIELD_HALF_METATILE_ORIGIN (halfMetatile)The 16.16 coordinate of a half metatile's first pixel, FIELD_HALF_METATILE undone.
#defineFIELD_PIXEL_MASK 0xffff0000A 16.16 coordinate's whole pixels, its fraction cleared.
#defineFIELD_METATILE_ORIGIN (metatile) ((metatile) << FIELD_METATILE_SHIFT)The 16.16 coordinate of a map grid metatile's first pixel, FIELD_METATILE undone.
#defineFIELD_METATILE_CENTER (metatile)The 16.16 coordinate of the middle of a map grid metatile.
#defineFIELD_PUSH_TICKS 12The ticks the leader pushes against a step cue, a ledge, a gap or a wall before it runs, jumps or climbs (FIELD_STATE.blockedSteps).
#defineTREASURE_SPOT_MAX 10-------------------------------------------------------------------------- The map's treasure spots (chests and Psynergy Stones) -------------------------------------------------------------------------- The most treasure spots a map places.
#defineTREASURE_SPOT_FIRST_ID 100The ids a treasure spot's cue answers to; the map's list of spots ends at column and row 255.
#defineTREASURE_SPOT_LAST_ID 239
#defineTREASURE_SPOT_LIST_END 255

Enumerations

NameDescription
enumLEADER_MOVEMENT_MODE { LEADER_MOVEMENT_WALK, LEADER_MOVEMENT_CLIMB, LEADER_MOVEMENT … }MainRoutineStateWork.movementMode: how the field engine hands the party leader back to the player (fdEngineRun).
enumWINDOW_TRANSITION_MODE { WINDOW_TRANSITION_BARS, WINDOW_TRANSITION_SHAPE, WINDOW_TRAN … }A window transition's shape: SCENE_TRANSITION(TRANSITION_WINDOW, mode)'s low byte, which fdScreenTransitionUpdateScanlineTable draws.
enumENCOUNTER_ZONE_ID { ENCOUNTER_ZONE_NONE, ENCOUNTER_ZONE_WORLD_MAP_VALE_VAULT, EN … }The encounter table's zones (encounter_zones.c's entries) that code names: the World Map's, two to a region (its open ground, then its forest), and the rows no step on a map rolls.
enumITEM_DISPLAY_FLAG { ITEM_DISPLAY_SPARKLES, ITEM_DISPLAY_RAISED }fdItemDisplayShowPicture's and fdItemDisplayShowItem's flags.

Variables

NameDescription
extern const Uint8MindReadCasterPaletteCycle []Mind Read's caster's palette cycle, two ticks a step (field_engine_tables.c).
extern const Uint16WorldMapCursorDirectionAngles []The World Map cursor's angle for each +Control Pad direction, and its markers' blend cycle (field_engine_tables.c).
extern const Uint8WorldMapMarkerBlendCycle []The World Map markers' blend weight in sixteenths, against the picture's 16 less it ((TickCount >> 1) & 31, fdMapScreenUpdateMarkers): solid for 32 ticks, then down to half and back over the next 32.

Description

What the field engine's object (field_engine.c) defines for the code outside it: encounters, the field's actors, the leader's walking, the scene's cues, treasure spots, screen transitions and the palette fade.

Macros in detail

EXIT_KEEP_DESTINATION

#define EXIT_KEEP_DESTINATION 999

The exit request whose destination is already in MainRoutineStateWork.next and .entrance, so that gmTakeExit leaves them as they are.

Referenced by fdEngineRun(), fdScriptLeaveFor(), fdScriptSetDestination(), fdScriptSetRestartPoint(), fdUseItem(), fdUsePsynergy(), gmTakeExit() and scInit().

Definition at line 17 of file field_engine.h.

CUE_RESULT_MESSAGE_END

#define CUE_RESULT_MESSAGE_END 65536

A cue result below it is a message number, and from it on the address of the function to run: every function lies above it, so one word holds either.

Referenced by fdRunPsynergyScript(), fdRunRaisedCue(), fdRunStepCueOrExit(), fdTalkToActor() and fdUseItem().

Definition at line 126 of file field_engine.h.

CUE_KIND_MASK

#define CUE_KIND_MASK 0xf

A cue's control bits 3..0, its kind (CUE_KIND).

Referenced by fdEffectSpawnRevealMarkers(), fdExamineCueIgnoresCondition(), fdFindCue(), fdFindItemCue() and fdFindPsynergyCue().

Definition at line 132 of file field_engine.h.

PSYNERGY_PHASE_MASK

#define PSYNERGY_PHASE_MASK (7u << 28)

A Psynergy cue's control bits 30..28, its phase (PSYNERGY_PHASE).

Referenced by fdFindPsynergyCue().

Definition at line 134 of file field_engine.h.

EXAMINE_CUE_MASK

#define EXAMINE_CUE_MASK 0x1ff

An examine cue's control bits 8..0, its kind and what it is on, as EXAMINE_CUE() packs them.

Referenced by fdExamineCueIgnoresCondition(), fdExamineMetatile() and fdPlaceTreasureSpots().

Definition at line 137 of file field_engine.h.

CUE_FACING_MASK

#define CUE_FACING_MASK 0xf000

A cue's control bits 15..12: the heading CUE_FLAG_FACING compares, in sixteenths of a turn.

Referenced by fdFindCue().

Definition at line 140 of file field_engine.h.

FIND_TYPE_MASK

#define FIND_TYPE_MASK 0xfff00000

A search result's type, its top twelve bits (FIND_ITEM to FIND_MIMIC).

Referenced by fdEffectSpawnRevealMarkers(), fdExamineCueIgnoresCondition(), fdExamineMetatile() and fdPlaceTreasureSpots().

Definition at line 143 of file field_engine.h.

FIND_FUNCTION_BITS

#define FIND_FUNCTION_BITS 0x0f000000

Bits 27..24 of a search result, set only in a function's address: the result is then a function to call.

Referenced by fdExamineMetatile().

Definition at line 146 of file field_engine.h.

FIND_CHEST_LOCK_MASK

#define FIND_CHEST_LOCK_MASK 0xf0000

Bits 19..16 of a chest's search result, which fdExamineMetatile compares only with FIND_CHEST_LOCKED. No chest of the game sets them, so none is locked.

Referenced by fdExamineMetatile().

Definition at line 149 of file field_engine.h.

FIND_CHEST_LOCKED

#define FIND_CHEST_LOCKED 0x10000

A chest that stays shut while a party member (up to ALLY_MAX) leads: "can't open it..." (MsgCantOpenIt).

Referenced by fdExamineMetatile().

Definition at line 152 of file field_engine.h.

ACT_ID_MASK

#define ACT_ID_MASK 0x3ff

Bits 9..0.

Definition at line 159 of file field_engine.h.

ACT_UNIT_SHIFT

#define ACT_UNIT_SHIFT 10

Bits 13..10.

Referenced by mnItemMenuRun() and scColossoRaiseTakePlaceOnPsynergy().

Definition at line 161 of file field_engine.h.

ABILITY_ID

#define ABILITY_ID(c) ((c) & ACT_ID_MASK)

The Psynergy.

Referenced by fdPartyCheckShortcut(), fdRunPsynergyEndScripts() and fdUsePsynergy().

Definition at line 163 of file field_engine.h.

ACT_ITEM_ID

#define ACT_ITEM_ID(c) ((c) & ACT_ID_MASK)

Referenced by fdUseItem().

Definition at line 164 of file field_engine.h.

ACT_UNIT

#define ACT_UNIT(c) (((c) >> ACT_UNIT_SHIFT) & 15)

Who uses it.

Referenced by fdPartyCheckShortcut(), fdRunPsynergyEndScripts(), fdUseItem() and fdUsePsynergy().

Definition at line 166 of file field_engine.h.

ACT_PACKED

#define ACT_PACKED 0x2000

Use it without paying PP.

Referenced by fdEndBusyAndReveal(), fdPsynergyWatchLeaderDistance(), fdUpdateWalking() and fdUsePsynergy().

Definition at line 168 of file field_engine.h.

CLOAK_END

#define CLOAK_END (ACT_PACKED | ABILITY_CLOAK)

The Psynergy request that ends Cloak, without paying PP.

Referenced by fdPsynergyCheckCloakTile(), fdPsynergyStartCloak(), scLunpaFortressCheckGroundFloorPatrol(), scLunpaFortressCheckHallPatrol() and scLunpaFortressCheckPatrolPair().

Definition at line 170 of file field_engine.h.

FIELD_METATILE_MASK

#define FIELD_METATILE_MASK 0xfff00000

A 16.16 coordinate's whole metatile: a map grid metatile is 16 pixels square.

Referenced by fdEntrancePlayArrivalAnimation(), fdExitPrepareAnimation(), fdItemDisplayShowItemInFront(), fdPsynergySteerPushedTarget(), fdTryJumpForward(), scActorFloatLogWithLeader(), scAltinPeakStopCartAndJumpOff(), scAltinPeakTurnCartLeft(), scAltinPeakTurnCartRight(), scColosseumAzartMatchMoveRidingLog(), scColosseumNavampaMatchRollLongLog(), scColosseumNavampaMatchShovedByPiston(), scColosseumNavampaMatchShovedOffWalkway(), scColosseumSatrageMatchMoveRidingLog(), scColossoFindActorAhead(), scCrossboneIsleRideLog(), scCrossboneIsleSteppingStonesTryJumpAcrossPillar(), scCrossboneIsleTryHop(), scKolimaForestFloodgateRollLog(), scLeaderSlideOnIce(), scMercuryLighthouseAerieJumpToNextPlatform(), scMercuryLighthouseChargeLights(), scMercuryLighthouseHopAcrossPool(), scMogallForestFirstAreaJumpNorth(), scMogallForestFirstAreaJumpSouth(), scTunnelRuinsHopLeaderTo(), scValeCaveLeapOffRidingLog(), scVenusLighthouseAerieJumpToNextPlatform(), scVenusLighthouseJumpAcrossGap() and scXianJumpOverSpilledWater().

Definition at line 173 of file field_engine.h.

FIELD_METATILE_SHIFT

#define FIELD_METATILE_SHIFT 20

A 16.16 coordinate's shift to its map grid metatile: 16 bits of fraction and 4 of the metatile's 16 pixels.

Definition at line 176 of file field_engine.h.

FIELD_METATILE

#define FIELD_METATILE(coordinate) ((coordinate) >> FIELD_METATILE_SHIFT)

The map grid metatile a 16.16 coordinate lies in, counted from 0 along its axis.

Referenced by fdActorSystemPlaceSprites(), fdEffectSpawnRevealMarkers(), fdMapGridCopyMetatileIndexRect(), fdMapGridCopyMetatileRect(), fdMapGridCopyMetatileTilesRect(), fdMapGridGetMetatileBehaviorAt(), fdMapGridSetMetatileBehaviorAt(), scActorFindAtMetatile(), scActorFindAtPos(), scAlpineCrossingFeizhiArrives(), scAltinCheckStatueMoved(), scAltinPeakSettleSpritzRoomPillar(), scAltmillerCaveDropPillarIntoPit(), scBabiLighthouseHopClearOfPillar(), scBabiLighthousePushPillarOrClimbDownHole(), scBabiLighthouseRedrawPillarMetatiles(), scBabiLighthouseUpdateMovedPillar(), scBilibinCaveUpdateThirdPuddleFromTorches(), scBilibinPullJillFromRiver(), scBilibinUpdateCratesMetatiles(), scBilibinUpdateTreasuryStatueMetatiles(), scBilibinUpdateVillageStatueMetatiles(), scColosseumAzartMatchRollLogEastWest(), scColosseumAzartMatchRollLogNorthSouth(), scColosseumAzartMatchStampHopSquare(), scColosseumAzartMatchUpdateRockMetatiles(), scColosseumNavampaMatchCheckLongLogMetatile(), scColosseumNavampaMatchMoveStone(), scColosseumNavampaMatchRollLongLog(), scColosseumNavampaMatchSetWeightOnScales(), scColosseumNavampaMatchUpdateEastEndCollision(), scColosseumNavampaMatchUpdateLogAreaStoneMetatiles(), scColosseumNavampaMatchUpdateWallWedge(), scColosseumSatrageMatchDemonstrateLogPush(), scColosseumSatrageMatchMoveMiniMazePillar(), scColosseumSatrageMatchMoveWallPillar(), scColosseumSatrageMatchRideLog(), scColosseumSatrageMatchRollLogToMetatile(), scColosseumSatrageMatchUpdateRollingLogCollision(), scColossoAskDoneCheering(), scColossoOfferCheeringSpot(), scColossoTakePlaceForMatch(), scCrossboneIsleMoveNorthSouthLogMetatiles(), scCrossboneIsleMovePillar(), scCrossboneIsleMoveWestEastLogMetatiles(), scCrossboneIslePlaceNorthSouthLog(), scCrossboneIslePlaceWestEastLog(), scCrossboneIsleRideLogANorth(), scCrossboneIsleRideLogASouth(), scCrossboneIsleRideLogBNorth() and 115 more.

Definition at line 179 of file field_engine.h.

FIELD_HALF_METATILE

#define FIELD_HALF_METATILE(coordinate)

The half metatile, 8 pixels, a 16.16 coordinate lies in, counted from 0 along its axis.

Referenced by scColosseumAzartMatchSetLayerOnVineMetatile(), scImilUpdateFootprints(), scKalayUpdateTunnelPassages(), scLogRoomsAFindStopAtPos(), scMercuryLighthouseEntranceMiaWatchesLeader(), scSolSanctumStatueCenterStatueMoved(), scTunnelRuinsUpdateGroundMaskLeader() and scXianTalkToWaterCarrier().

Definition at line 182 of file field_engine.h.

FIELD_HALF_METATILE_ORIGIN

#define FIELD_HALF_METATILE_ORIGIN(halfMetatile)

The 16.16 coordinate of a half metatile's first pixel, FIELD_HALF_METATILE undone.

Referenced by scColosseumSatrageMatchRollLogToMetatile(), scMercuryLighthouseDropLeaderToColumn() and scVenusLighthousePuffSandAtSlideHead().

Definition at line 186 of file field_engine.h.

FIELD_PIXEL_MASK

#define FIELD_PIXEL_MASK 0xffff0000

A 16.16 coordinate's whole pixels, its fraction cleared.

Referenced by fdActorGetScreenPos(), fdActorSystemPlaceSprites(), fdCameraWorldToScreen(), fdMapGridGetScreenRelativePos(), fdScreenTransitionUpdateScanlineTable() and scLemurianShipUpdateGlowSwellAndSpray().

Definition at line 189 of file field_engine.h.

FIELD_METATILE_ORIGIN

#define FIELD_METATILE_ORIGIN(metatile) ((metatile) << FIELD_METATILE_SHIFT)

The 16.16 coordinate of a map grid metatile's first pixel, FIELD_METATILE undone.

Referenced by scColosseumNavampaMatchUpdateEastEndCollision(), scCrossboneIsleSteppingStonesLowerActorToLedge(), scKolimaForestFloodgateCreateLogs() and scKolimaForestFloodgateRollLog().

Definition at line 192 of file field_engine.h.

FIELD_METATILE_CENTER

#define FIELD_METATILE_CENTER(metatile)

The 16.16 coordinate of the middle of a map grid metatile.

Referenced by fdPlaceTreasureSpots(), fdTreasureSpotSetActorPos(), scColossoPlaceFriendsAtCheeringSpots(), scCrossboneIsleSteppingStonesLowerActorToLedge(), scInit(), scKolimaForestFloodgateCreateLogs(), scValeCaveCenterActorOnMetatile() and scXianTalkToWaterCarrier().

Definition at line 194 of file field_engine.h.

FIELD_PUSH_TICKS

#define FIELD_PUSH_TICKS 12

The ticks the leader pushes against a step cue, a ledge, a gap or a wall before it runs, jumps or climbs (FIELD_STATE.blockedSteps).

Referenced by fdFindCue(), fdRunPushMetatile() and scCrossboneIsleKeysHopOntoPostBelow().

Definition at line 199 of file field_engine.h.

TREASURE_SPOT_MAX

#define TREASURE_SPOT_MAX 10


The map's treasure spots (chests and Psynergy Stones)

The most treasure spots a map places.

Referenced by fdPlaceTreasureSpots(), fdTreasureSpotFindSlot() and fdTreasureSpotMoveLeaderAway().

Definition at line 205 of file field_engine.h.

TREASURE_SPOT_FIRST_ID

#define TREASURE_SPOT_FIRST_ID 100

The ids a treasure spot's cue answers to; the map's list of spots ends at column and row 255.

Referenced by fdEffectSpawnRevealMarkers() and fdPlaceTreasureSpots().

Definition at line 208 of file field_engine.h.

TREASURE_SPOT_LAST_ID

#define TREASURE_SPOT_LAST_ID 239

Referenced by fdEffectSpawnRevealMarkers() and fdPlaceTreasureSpots().

Definition at line 209 of file field_engine.h.

TREASURE_SPOT_LIST_END

#define TREASURE_SPOT_LIST_END 255

Referenced by fdEffectSpawnRevealMarkers() and fdPlaceTreasureSpots().

Definition at line 210 of file field_engine.h.

Enumerations in detail

LEADER_MOVEMENT_MODE

enum LEADER_MOVEMENT_MODE

MainRoutineStateWork.movementMode: how the field engine hands the party leader back to the player (fdEngineRun).

EnumeratorValueDescription
LEADER_MOVEMENT_WALK0Walking: the pad moves the leader, on the World Map or a layered map.
LEADER_MOVEMENT_CLIMB1On a climbable wall, moved 8 pixels a step.
LEADER_MOVEMENT_AIRBORNE2Carried through the air (Suhalla Desert's storms, the World Map's airborne travel): only the configured keys are checked.

Definition at line 21 of file field_engine.h.

WINDOW_TRANSITION_MODE

enum WINDOW_TRANSITION_MODE

A window transition's shape: SCENE_TRANSITION(TRANSITION_WINDOW, mode)'s low byte, which fdScreenTransitionUpdateScanlineTable draws.

EnumeratorValueDescription
WINDOW_TRANSITION_BARS0A bar on each line, at random.
WINDOW_TRANSITION_SHAPE1A shape from ScreenTransitionShapes.
WINDOW_TRANSITION_NOISE2Ragged lines from the left edge.
WINDOW_TRANSITION_CIRCLE3A circle at the screen's centre.
WINDOW_TRANSITION_INTERLACED_WIPE4Alternate lines wiping in from the left and the right.
WINDOW_TRANSITION_LEADER_INVERSE7As WINDOW_TRANSITION_LEADER with inside and outside swapped and the progress run the other way; it flickers.
WINDOW_TRANSITION_RIPPLE8An ellipse around a point (the state's centre) whose outline ripples: Reveal's.
WINDOW_TRANSITION_LEADER9An ellipse wider than tall around the party leader, 16 pixels above its feet.
WINDOW_TRANSITION_LEADER_LOW77An ellipse a little taller than wide, 8 pixels above the leader's feet.

Definition at line 33 of file field_engine.h.

ENCOUNTER_ZONE_ID

enum ENCOUNTER_ZONE_ID

The encounter table's zones (encounter_zones.c's entries) that code names: the World Map's, two to a region (its open ground, then its forest), and the rows no step on a map rolls.

EnumeratorValueDescription
ENCOUNTER_ZONE_NONE0No battles.
ENCOUNTER_ZONE_WORLD_MAP_VALE_VAULT7
ENCOUNTER_ZONE_WORLD_MAP_VALE_VAULT_FOREST8
ENCOUNTER_ZONE_SCRIPTED_VALE_VAULT12The script battles of Vale's stormy night (its monsters, and the travelers who catch Isaac in Vale's plaza), Vault's thieves and the World Map's Djinn tutorial battle.
ENCOUNTER_ZONE_WORLD_MAP_BILIBIN_KOLIMA13
ENCOUNTER_ZONE_WORLD_MAP_BILIBIN_KOLIMA_FOREST14
ENCOUNTER_ZONE_WORLD_MAP_SNOWFIELD29
ENCOUNTER_ZONE_WORLD_MAP_SNOW_FOREST30
ENCOUNTER_ZONE_SCRIPTED_TRET_MERCURY36The script battles of Tret Tree (Tret) and Mercury Lighthouse (the Lizard Man, then Saturos at the aerie).
ENCOUNTER_ZONE_WORLD_MAP_FUCHIN37
ENCOUNTER_ZONE_WORLD_MAP_FUCHIN_FOREST38
ENCOUNTER_ZONE_WORLD_MAP_XIAN_ALTIN45
ENCOUNTER_ZONE_WORLD_MAP_XIAN_ALTIN_FOREST46
ENCOUNTER_ZONE_SCRIPTED_MOGALL_ALTIN_LAMAKAN53The script battles of Mogall Forest, Altin Peak and Lamakan Desert, whose last two slots hold the battles with the Ant Lions and the Manticore.
ENCOUNTER_ZONE_WORLD_MAP_KALAY54
ENCOUNTER_ZONE_WORLD_MAP_KALAY_FOREST55
ENCOUNTER_ZONE_TOLBI_SHIP62The monster attacks
ENCOUNTER_ZONE_CROSSBONE_ISLE_FIRST_GUARDS63on the Tolbi-bound ship, the Kraken's last. The monsters behind the east doors of Crossbone Isle Cave's first four floors, one slot a floor.
ENCOUNTER_ZONE_WORLD_MAP_TOLBI64
ENCOUNTER_ZONE_WORLD_MAP_TOLBI_FOREST65
ENCOUNTER_ZONE_COLOSSO72The battles that end the Colosso finals' matches, the slot chosen by how the match went.
ENCOUNTER_ZONE_WORLD_MAP_SUHALLA80
ENCOUNTER_ZONE_WORLD_MAP_SUHALLA_FOREST81
ENCOUNTER_ZONE_CROSSBONE_ISLE_LAST_GUARDS84The monsters behind the east doors of Crossbone Isle Cave's next five floors, one slot a floor, then Deadbeard on the Pirate Ship.
ENCOUNTER_ZONE_SCRIPTED98The script battles:
ENCOUNTER_ZONE_MIMIC99Lunpa Fortress, Suhalla Desert, Venus Lighthouse Aerie and the World Map; its first slot is the Aerie's second battle. Mimic chests, by the chest's slot.
ENCOUNTER_ZONE_VENUS_DJINN100The Djinn battles, one zone for each element in element order.
ENCOUNTER_ZONE_MERCURY_DJINN101
ENCOUNTER_ZONE_MARS_DJINN102
ENCOUNTER_ZONE_JUPITER_DJINN103

Definition at line 59 of file field_engine.h.

ITEM_DISPLAY_FLAG

enum ITEM_DISPLAY_FLAG

fdItemDisplayShowPicture's and fdItemDisplayShowItem's flags.

EnumeratorValueDescription
ITEM_DISPLAY_SPARKLES1sparkles appear round the picture
ITEM_DISPLAY_RAISED2the leader holds it up over his head

Definition at line 213 of file field_engine.h.