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.
#include "types.h"#include "fixed_math.h"#include "field/field_engine_functions.h"#include "field/field_engine_script.h"#include "field/field_particle.h"#include "field/screen_transition.h"
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
| Name | Description | |
|---|---|---|
#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. |
#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. |
#define | CUE_KIND_MASK 0xf | A cue's control bits 3..0, its kind (CUE_KIND). |
#define | PSYNERGY_PHASE_MASK (7u << 28) | A Psynergy cue's control bits 30..28, its phase (PSYNERGY_PHASE). |
#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. |
#define | CUE_FACING_MASK 0xf000 | A cue's control bits 15..12: the heading CUE_FLAG_FACING compares, in sixteenths of a turn. |
#define | FIND_TYPE_MASK 0xfff00000 | A search result's type, its top twelve bits (FIND_ITEM to FIND_MIMIC). |
#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. |
#define | FIND_CHEST_LOCK_MASK 0xf0000 | Bits 19..16 of a chest's search result, which fdExamineMetatile compares only with 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). |
#define | ACT_ID_MASK 0x3ff | Bits 9..0. |
#define | ACT_UNIT_SHIFT 10 | Bits 13..10. |
#define | ABILITY_ID (c) ((c) & ACT_ID_MASK) | The Psynergy. |
#define | ACT_ITEM_ID (c) ((c) & ACT_ID_MASK) | |
#define | ACT_UNIT (c) (((c) >> ACT_UNIT_SHIFT) & 15) | Who uses it. |
#define | ACT_PACKED 0x2000 | Use it without paying PP. |
#define | CLOAK_END (ACT_PACKED | ABILITY_CLOAK) | The Psynergy request that ends Cloak, without paying PP. |
#define | FIELD_METATILE_MASK 0xfff00000 | A 16.16 coordinate's whole metatile: a map grid metatile is 16 pixels square. |
#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. |
#define | FIELD_METATILE (coordinate) ((coordinate) >> FIELD_METATILE_SHIFT) | The map grid metatile a 16.16 coordinate lies in, counted from 0 along its axis. |
#define | FIELD_HALF_METATILE (coordinate) | The half metatile, 8 pixels, a 16.16 coordinate lies in, counted from 0 along its axis. |
#define | FIELD_HALF_METATILE_ORIGIN (halfMetatile) | The 16.16 coordinate of a half metatile's first pixel, FIELD_HALF_METATILE undone. |
#define | FIELD_PIXEL_MASK 0xffff0000 | A 16.16 coordinate's whole pixels, its fraction cleared. |
#define | FIELD_METATILE_ORIGIN (metatile) ((metatile) << FIELD_METATILE_SHIFT) | The 16.16 coordinate of a map grid metatile's first pixel, FIELD_METATILE undone. |
#define | FIELD_METATILE_CENTER (metatile) | The 16.16 coordinate of the middle of a map grid metatile. |
#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). |
#define | TREASURE_SPOT_MAX 10 | -------------------------------------------------------------------------- The map's treasure spots (chests and Psynergy Stones) -------------------------------------------------------------------------- The most treasure spots a map places. |
#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. |
#define | TREASURE_SPOT_LAST_ID 239 | |
#define | TREASURE_SPOT_LIST_END 255 |
Enumerations
| Name | Description | |
|---|---|---|
enum | LEADER_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). |
enum | WINDOW_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. |
enum | ENCOUNTER_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. |
enum | ITEM_DISPLAY_FLAG { ITEM_DISPLAY_SPARKLES, ITEM_DISPLAY_RAISED } | fdItemDisplayShowPicture's and fdItemDisplayShowItem's flags. |
Variables
| Name | Description | |
|---|---|---|
extern const Uint8 | MindReadCasterPaletteCycle [] | Mind Read's caster's palette cycle, two ticks a step (field_engine_tables.c). |
extern const Uint16 | WorldMapCursorDirectionAngles [] | The World Map cursor's angle for each +Control Pad direction, and its markers' blend cycle (field_engine_tables.c). |
extern const Uint8 | WorldMapMarkerBlendCycle [] | 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).
| Enumerator | Value | Description |
|---|---|---|
LEADER_MOVEMENT_WALK | 0 | Walking: the pad moves the leader, on the World Map or a layered map. |
LEADER_MOVEMENT_CLIMB | 1 | On a climbable wall, moved 8 pixels a step. |
LEADER_MOVEMENT_AIRBORNE | 2 | Carried 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.
| Enumerator | Value | Description |
|---|---|---|
WINDOW_TRANSITION_BARS | 0 | A bar on each line, at random. |
WINDOW_TRANSITION_SHAPE | 1 | A shape from ScreenTransitionShapes. |
WINDOW_TRANSITION_NOISE | 2 | Ragged lines from the left edge. |
WINDOW_TRANSITION_CIRCLE | 3 | A circle at the screen's centre. |
WINDOW_TRANSITION_INTERLACED_WIPE | 4 | Alternate lines wiping in from the left and the right. |
WINDOW_TRANSITION_LEADER_INVERSE | 7 | As WINDOW_TRANSITION_LEADER with inside and outside swapped and the progress run the other way; it flickers. |
WINDOW_TRANSITION_RIPPLE | 8 | An ellipse around a point (the state's centre) whose outline ripples: Reveal's. |
WINDOW_TRANSITION_LEADER | 9 | An ellipse wider than tall around the party leader, 16 pixels above its feet. |
WINDOW_TRANSITION_LEADER_LOW | 77 | An 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.
| Enumerator | Value | Description |
|---|---|---|
ENCOUNTER_ZONE_NONE | 0 | No battles. |
ENCOUNTER_ZONE_WORLD_MAP_VALE_VAULT | 7 | |
ENCOUNTER_ZONE_WORLD_MAP_VALE_VAULT_FOREST | 8 | |
ENCOUNTER_ZONE_SCRIPTED_VALE_VAULT | 12 | The 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_KOLIMA | 13 | |
ENCOUNTER_ZONE_WORLD_MAP_BILIBIN_KOLIMA_FOREST | 14 | |
ENCOUNTER_ZONE_WORLD_MAP_SNOWFIELD | 29 | |
ENCOUNTER_ZONE_WORLD_MAP_SNOW_FOREST | 30 | |
ENCOUNTER_ZONE_SCRIPTED_TRET_MERCURY | 36 | The script battles of Tret Tree (Tret) and Mercury Lighthouse (the Lizard Man, then Saturos at the aerie). |
ENCOUNTER_ZONE_WORLD_MAP_FUCHIN | 37 | |
ENCOUNTER_ZONE_WORLD_MAP_FUCHIN_FOREST | 38 | |
ENCOUNTER_ZONE_WORLD_MAP_XIAN_ALTIN | 45 | |
ENCOUNTER_ZONE_WORLD_MAP_XIAN_ALTIN_FOREST | 46 | |
ENCOUNTER_ZONE_SCRIPTED_MOGALL_ALTIN_LAMAKAN | 53 | The 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_KALAY | 54 | |
ENCOUNTER_ZONE_WORLD_MAP_KALAY_FOREST | 55 | |
ENCOUNTER_ZONE_TOLBI_SHIP | 62 | The monster attacks |
ENCOUNTER_ZONE_CROSSBONE_ISLE_FIRST_GUARDS | 63 | on 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_TOLBI | 64 | |
ENCOUNTER_ZONE_WORLD_MAP_TOLBI_FOREST | 65 | |
ENCOUNTER_ZONE_COLOSSO | 72 | The battles that end the Colosso finals' matches, the slot chosen by how the match went. |
ENCOUNTER_ZONE_WORLD_MAP_SUHALLA | 80 | |
ENCOUNTER_ZONE_WORLD_MAP_SUHALLA_FOREST | 81 | |
ENCOUNTER_ZONE_CROSSBONE_ISLE_LAST_GUARDS | 84 | The 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_SCRIPTED | 98 | The script battles: |
ENCOUNTER_ZONE_MIMIC | 99 | Lunpa 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_DJINN | 100 | The Djinn battles, one zone for each element in element order. |
ENCOUNTER_ZONE_MERCURY_DJINN | 101 | |
ENCOUNTER_ZONE_MARS_DJINN | 102 | |
ENCOUNTER_ZONE_JUPITER_DJINN | 103 |
Definition at line 59 of file field_engine.h.
ITEM_DISPLAY_FLAG
enum ITEM_DISPLAY_FLAG
fdItemDisplayShowPicture's and fdItemDisplayShowItem's flags.
| Enumerator | Value | Description |
|---|---|---|
ITEM_DISPLAY_SPARKLES | 1 | sparkles appear round the picture |
ITEM_DISPLAY_RAISED | 2 | the leader holds it up over his head |
Definition at line 213 of file field_engine.h.