Skip to Content
The Alchemy Project

include/field/scene_tables.h

The scene table formats: the scene table, entrances, exits, actor placements and cues.

Included by test_scenes.c, actor_placement.c, battle_background_rules.c, battle_music.c, field_effect_tables.c, field_engine_internal.h, field_psynergy_internal.h, script_commands_internal.h, script_commands_scripts.c, script_commands_tables.c, world_map_cursor_angles.c, main_routine.c, screens_internal.h, field_engine.h, field_state.h, airs_rock.h, jupiter_lighthouse_aerie.h, lemurian_ship.h, scene.h, trial_road.h and tundaria_tower.h.

Structures

NameDescription
structSCENEA scene's row in ScenesWork: its overlay's resource, its area, its scene type, its map and its attributes.
structSCENE_ENTRANCEWhere the party arrives by one of a scene's entrances, which way the leader faces, and the camera's bounds there.
structACTOR_PLACEAn actor a scene places: its sprite, the condition for placing it, how it behaves, where it stands and which way it faces, and how it turns to talk.
structCUEA row of a scene's cue table.
structCUE_VIEWA cue as the field reads it while the scene runs: the target is one byte.
structSCENE_REGIONA scene's exit region: the box that, while its condition holds, takes the party leader out through the exit whose number is its value (fdCheckExitRegions).
structSCENE_ENTRY_TABLEThe table a scene overlay starts with (OverlayArea): a stub word and an entry point for each of its tables.

Macros

NameDescription
#defineFACING_QUARTER (facing) ((facing) & 0xc000)The quarter of a turn a facing lies in, what is past it dropped: east, south, west or north.
#defineFACING_EIGHTH (facing) ((facing) & 0xe000)The eighth of a turn a facing lies in, what is past it dropped.
#defineFACING_EIGHTH_INDEX (facing) ((facing) >> 13)The eighth of a turn a facing lies in, as a number from 0 (east) to 7.
#defineFACING_SIXTEENTH (facing) ((facing) & 0xf000)The sixteenth of a turn a facing lies in, what is past it dropped.
#defineFACING_INDEX (facing) ((facing) >> 12)The sixteenth of a turn a facing lies in, as a number from 0 (east) to 15, which indexes the scenes' sixteen-direction step tables.
#defineFACING_FROM_INDEX (index) ((index) << 12)The facing at the start of the sixteenth of a turn numbered index.
#defineFACING_NEAREST_CARDINAL (facing)The cardinal heading nearest to facing: the shop counters turn a customer this way.
#defineIF_FLAG_SET (flag) ((flag) | CONDITION_FLAG_SET)A condition that holds while flag is set.
#defineSCENE_EXITS (scene) ((Uint32)&SceneId##scene)An exit table's header word: the scene whose exits follow, named by its name (SCENE_EXITS(Alhafra)).
#defineSCENE_EXIT (exit, scene, entrance)One exit: exit kind exit leads to entrance of the scene scene.
#defineEXIT_SCENE_MASK 0xfffAn exit word's scene.
#defineENTRANCE (word) (((word) & 0xff000) >> 12)An exit word's entrance.
#defineEXIT_ID (word) (((word) & 0x0ff00000) >> 20)An exit word's exit kind.
#defineEXIT_HAS_FLAG 0x10000000An exit word's bit 28: a flag word follows it.
#defineEXIT_ID_ANY 255The exit kind that matches whatever exit the scene ended on.
#defineEXIT_KEEP_DESTINATION 999The exit kind that leaves for the scene and entrance already chosen (a battle, Retreat, a script's destination): gmTakeExit keeps them.
#defineSCENE_EXIT_UNLESS (exit, scene, entrance, flag)An exit with a flag word after it: the exit is taken unless flag is set, and when it is set the search goes on to the next exit.
#defineEXIT_FLAG_NONE 0xffffffffAn exit's flag word of -1 stands for no flag: gmTakeExit takes the exit whatever the flags hold, so a chain of exits always ends somewhere.
#defineSCENE_EXITS_END 511The last header word: it ends the last scene's exits and the table.
#defineACTOR_PLACEMENT_SHARE_PREVIOUS_SPRITE 0x01ACTOR_PLACE.flags: the actor takes the previous actor's sprite resource instead of loading its own, when both are single sprites.
#defineACTOR_PLACEMENT_AT_SCENE_POINT 0x02ACTOR_PLACE.flags: x is the number of a scene point to stand on, not a position (fdFindActorPlacement).
#defineACTOR_PLACEMENT (One row of a scene's actor placements, its spot in plain pixels.
#defineCUE_SUBJECT_OWN_EFFECT 0x400CUE.subject bit 10: a Psynergy cue runs in place of its field Psynergy, as Mind Read on someone who notices it does; an item cue's script shows its own message in place of the "uses" message (MsgActorUsesItem); an examine cue shows no checking message.
#defineSHIP_SEA_EXAMINE_CODE 99The examine code the search finds aboard the ship facing open sea (World Map collision 3), for the World Map's examine cue on it (scWorldMapGazeIntoPond).
#defineCUE_SUBJECT_QUIET 0x200CUE.subject bit 9 on a Psynergy cue: the cast neither flashes the caster nor announces the ability (FIELD_EFFECT_STATE.flashCaster and .announceName).
#defineCUE_SUBJECT_FACING 0xf000An item cue's subject: the heading it needs in bits 15..12, whether it needs one, and its target, an actor or a metatile behavior.
#defineCUE_SUBJECT_NEEDS_FACING 0x0800
#defineCUE_SUBJECT_TARGET 0xff
#defineCUE_FACING_SUBJECT (facing, target)A cue's subject that answers only while the leader faces facing.
#defineCUE_RESULT_MESSAGE_END 65536A cue's value below this is a message, from it a script.
#defineFIND_ITEM (item) (0x00100000 | (item))What a search finds, an examine cue's value: an item, coins or a message.
#defineFIND_COINS (coins) (0x00200000 | (coins))
#defineFIND_MESSAGE (message) (0x00400000 | (message))
#defineFIND_TYPE_MASK 0xfff00000A search result's type, its top twelve bits (FIND_ITEM to FIND_MESSAGE).
#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.
#defineSCRIPT_REF (event) ((Uint32)(event))
#defineCUE_TABLE_END 0xffffffff
#defineCUE_KIND_MASK 0xfA cue's control bits 3..0, its kind.
#defineCUE_FACING_MASK 0xf000A cue's control bits 15..12: the heading CUE_FLAG_FACING compares, in sixteenths of a turn.
#defineSTEP_CUE_FLAG_WALKING 0x200A step cue that needs the leader to have pushed against it for more than FIELD_PUSH_TICKS, or 2 ticks with STEP_CUE_FLAG_QUICK.
#defineSTEP_CUE_FLAG_QUICK 0x800With STEP_CUE_FLAG_WALKING, 2 ticks of pushing are enough.
#defineCUE_FLAG_FACING 0x400A script that needs the leader to face within an eighth of a turn of the heading in control bits 15..12.
#defineSTEP_CUE_WALKING (CUE_STEP | STEP_CUE_FLAG_WALKING)
#defineSTEP_CUE_FACING (facing) (CUE_STEP | CUE_FLAG_FACING | (facing))facing is an FACING; only its top four bits are compared.
#defineSTEP_CUE_WALKING_INTO (facing)
#defineEXAMINE_CUE (target) (CUE_EXAMINE | (target) << 4)
#defineEXAMINE_CUE_FACING (facing) (CUE_EXAMINE | CUE_FLAG_FACING | (facing))An examine cue searched while facing the given way, as a counter is searched across.
#defineTALK_CUE_FACING (facing) (CUE_TALK | CUE_FLAG_FACING | (facing))A talk cue that answers only while the leader faces the given way, so one actor can answer differently from each side.
#defineFIELD_PSYNERGY_FINISHED 999The phase a field Psynergy's state is left in once it has finished, which the cast waits for; its acting scripts get it as their stage the last time they run.
#definePOUND_STAGE_LANDED 1The stage Pound's acting scripts get: 0 until the fist lands, then POUND_STAGE_LANDED.
#defineSCOOP_STAGE_DUG 1The stages Scoop's acting scripts get on a tick of the dig, 0 on the rest: SCOOP_STAGE_DUG on the tick the ground is dug (SCOOP_DUG_TICK), and SCOOP_STAGE_DUG_UP on tick 50, as what was buried comes up.
#defineSCOOP_STAGE_DUG_UP 2
#definePSYNERGY_PHASE_SHIFT 28A Psynergy cue's phase bits, 31..28.
#definePSYNERGY_PHASE_MASK (15u << PSYNERGY_PHASE_SHIFT)
#definePSYNERGY_CUE (phase)The control word of a Psynergy cue (CUE_PSYNERGY) in the given phase, as fdFindPsynergyCue compares it (bits 31..28 phase | 3..0 kind).
#definePSYNERGY_CUE_ANY PSYNERGY_CUE(PSYNERGY_PHASE_ANY)
#defineCUE_PSYNERGY_ON_ACTOR 0x10A Psynergy cue on the actor the leader faces.
#definePSYNERGY_ON_ACTOR (ability)
#definePSYNERGY_PHASE_ON_ACTOR (ability, phase)A Psynergy cue on an actor at one phase of the cast, as PSYNERGY_ANYWHERE is for any target.
#definePSYNERGY_PHASE_ON_METATILE (ability, phase)A Psynergy cue on the metatile behavior ahead, at one phase of the cast.
#defineCUE_ITEM_ON_ACTOR 0x10Using an item on a metatile behavior, or on an actor; the item is an ITEM_ID (item_ids.h) or an ITEM_FILTER_ value.
#defineUSE_ITEM (item) (CUE_ITEM | (item) << 8)
#defineUSE_ITEM_ON_ACTOR (item) (CUE_ITEM | CUE_ITEM_ON_ACTOR | (item) << 8)
#defineCUE_PSYNERGY_ANYWHERE 0x80A Psynergy cue for any target, not a particular actor or metatile.
#definePSYNERGY_ANYWHERE (ability, phase)
#defineENCOUNTER_BATTLE_MUSIC_MARKER 0x8000The bit that marks a song in EncounterBattleMusic; encounter keys have it clear.
#defineENCOUNTER_BATTLE_MUSIC (song)A song's row in EncounterBattleMusic, before the encounters that take it: the song (a MUS_ id) with ENCOUNTER_BATTLE_MUSIC_MARKER set.
#defineENCOUNTER_KEY (zone, slot) (((zone) << 4) + (slot))An encounter's row in EncounterBattleMusic: slot of encounter zone.

Enumerations

NameDescription
enumFACING { FACING_EAST, FACING_EAST_SOUTHEAST, FACING_SOUTHEAST, FACING … }The sixteen headings an actor faces, in turns from east, clockwise on the screen: the eight between the main ones turn an actor a little past a main heading, which picks the side its sprite leans to.
enumanonymous enum { FACING_STEP }A sixteenth of a turn, half the step between two headings.
enumanonymous enum { FACING_NUDGE }A sliver of a turn off a heading: an actor turning round to face the opposite way turns by the side the nudge leans to.
enumanonymous enum { SCENE_TABLE_END }In the first column of a scene table, ends the table.
enumanonymous enum { CONDITION_ALWAYS, CONDITION_FLAG_SET }A table row's condition: CONDITION_ALWAYS, a flag number that must be clear, or IF_FLAG_SET of a flag that must be set (fdGameFlagIsConditionActive).
enumMOVEMENT_TYPE { MOVEMENT_TYPE_STAND, MOVEMENT_TYPE_WANDER, MOVEMENT_TYPE_WAN … }The movement types an actor placement's behavior can name, which fdActorSetMovementType turns into scripts.
enumACTOR_TALK_FACING { TALK_FACING_PARTY, TALK_FACING_PARTY_AND_BACK, TALK_FACING_K … }How a placed actor turns when the leader talks to it (fdTalkToActor).
enumEXIT_STYLE { EXIT_STYLE_NORMAL, EXIT_STYLE_SILENT, EXIT_STYLE_STAIRS_UP, … }An exit cue's control bits 6..4: how the leader leaves (fdRunStepCueOrExit).
enumEXAMINE { EXAMINE_SILENT, EXAMINE_CHEST, EXAMINE_JAR, EXAMINE_BARREL, … }What an examine cue is on, EXAMINE_CUE()'s control bits 8..4.
enumACTOR_ID { ACTOR_ISAAC, ACTOR_GARET, ACTOR_IVAN, ACTOR_MIA, ACTOR_FELIX … }Actor ids: 0 to 7 the party's characters, the placed actors from 8.
enumCUE_KIND { CUE_TALK, CUE_EXIT, CUE_STEP, CUE_EXAMINE, CUE_ITEM, CUE_PSY … }CUE.kind's low four bits: what the cue answers.
enumPSYNERGY_PHASE { PSYNERGY_PHASE_AFTER_CAST, PSYNERGY_PHASE_BEFORE_CAST, PSYNE … }When a Psynergy cue runs around its field Psynergy, control bits 31..28.
enumPSYNERGY_TARGET { PSYNERGY_TARGET_ACTOR, PSYNERGY_TARGET_ANYWHERE, PSYNERGY_TA … }What fdSelectPsynergyTarget chooses: a metatile behavior as it is, an actor's id with PSYNERGY_TARGET_ACTOR, or PSYNERGY_TARGET_ANYWHERE.

Variables

NameDescription
extern const SCENEScenesWork []Every scene's row, by scene number (field/scenes.s).
extern SCENE_ENTRANCESceneEntrances []A scene overlay's own entrances, actor placements and cues, which its getters return.
extern ACTOR_PLACEActorPlacements []The room's people: the party's four rows, then PSYNERGY_TEST_ACTOR_ID's.
extern const ACTOR_PLACEFieldDefaultPlacements []The leader's placement and the end of its table, which the field copies into its state as it starts.
extern CUESceneCues []The room's scripts: talking to its people, Mind Read on them, the metatiles examined, and the field Psynergy each spot answers.

Description

The scene table formats: the scene table, entrances, exits, actor placements and cues.

Macros in detail

FACING_QUARTER

#define FACING_QUARTER(facing) ((facing) & 0xc000)

The quarter of a turn a facing lies in, what is past it dropped: east, south, west or north.

Referenced by scAirsRockBlowGust(), scCavernsStartMovingAngaraBlock() and scEasternAlhafraRollLog().

Definition at line 70 of file scene_tables.h.

FACING_EIGHTH

#define FACING_EIGHTH(facing) ((facing) & 0xe000)

The eighth of a turn a facing lies in, what is past it dropped.

Definition at line 72 of file scene_tables.h.

FACING_EIGHTH_INDEX

#define FACING_EIGHTH_INDEX(facing) ((facing) >> 13)

The eighth of a turn a facing lies in, as a number from 0 (east) to 7.

Referenced by fdWhirlwindCarryLeader(), scAirsRockInsideRideWhirlwind(), scAirsRockRideWhirlwind() and scWhirlwindCarryLeaderLower().

Definition at line 74 of file scene_tables.h.

FACING_SIXTEENTH

#define FACING_SIXTEENTH(facing) ((facing) & 0xf000)

The sixteenth of a turn a facing lies in, what is past it dropped.

Referenced by fdActorMoveByKeys(), scActorIsFacingNear() and scYallamStopIfFacingNear().

Definition at line 76 of file scene_tables.h.

FACING_INDEX

#define FACING_INDEX(facing) ((facing) >> 12)

The sixteenth of a turn a facing lies in, as a number from 0 (east) to 15, which indexes the scenes' sixteen-direction step tables.

Referenced by scActorStopAtPushTarget(), scMarsLighthouseTowersPushStoneAlongLedge(), scPushedActorAdvancePair(), scPushTargetFindAhead(), scPushTargetPush(), scYampiDesertCaveFindPushedLog(), scYampiDesertCavePushLog() and scYampiDesertCaveStopLeaderAtLog().

Definition at line 79 of file scene_tables.h.

FACING_FROM_INDEX

#define FACING_FROM_INDEX(index) ((index) << 12)

The facing at the start of the sixteenth of a turn numbered index.

Referenced by scActorStopAtPushTarget(), scMarsLighthouseTowersPushStoneAlongLedge() and scYampiDesertCaveStopLeaderAtLog().

Definition at line 81 of file scene_tables.h.

FACING_NEAREST_CARDINAL

#define FACING_NEAREST_CARDINAL(facing)

The cardinal heading nearest to facing: the shop counters turn a customer this way.

Referenced by fdLeaderSlideOnIce(), fdLeaderSlideOnIceAhead(), scAlhafraRoomsTalkToInnkeeper(), scAlhafraRoomsTalkToItemMerchant(), scAlhafraRoomsTalkToPriest(), scApojiiIslandsMindReadSon(), scApojiiIslandsTalkToGeneralStorekeeper(), scApojiiIslandsTalkToInnkeeper(), scApojiiIslandsTalkToSon(), scDailaAskAfterTaviAndRiki(), scDailaRoomsTalkToArmorMerchant(), scDailaRoomsTalkToArmorMerchantOnceTaviIsRescued(), scDailaRoomsTalkToHealer(), scDailaRoomsTalkToHealerOnceTaviIsRescued(), scDailaRoomsTalkToInnkeeper(), scDailaRoomsTalkToInnkeeperOnceTaviIsRescued(), scDailaRoomsTalkToWeaponMerchant(), scDailaRoomsTalkToWeaponMerchantOnceTaviIsRescued(), scDailaTaviAndRikiAreHome(), scGarohRoomsTalkToArmorVendor(), scGarohRoomsTalkToInnkeeper(), scGarohRoomsTalkToItemShopkeeper(), scGarohRoomsTalkToPriest(), scGarohRoomsTalkToWeaponsVendor(), scIzumoRoomsTalkToInnkeeper(), scIzumoRoomsTalkToMerchant(), scIzumoRoomsTalkToPriest(), scLeaderSlideOnIceFromEdge(), scLohoReadInnSign(), scLohoTalkAboutCannon(), scMadraRoomsTalkToHealer(), scMadraRoomsTalkToInnkeeper(), scMadraTalkToArmorMerchant(), scMadraTalkToItemMerchant(), scMadraTalkToWeaponMerchant(), scMikasallaRoomsTalkToApojiiHealer(), scMikasallaRoomsTalkToGeneralStorekeeper(), scMikasallaRoomsTalkToHealer(), scMikasallaRoomsTalkToInnkeeper(), scMikasallaRoomsTalkToYallamHealer(), scNaribwePraiseFortuneTeller(), scNaribwePraiseFortuneTellerOnReturn(), scNaribweRoomsTalkToArmorMerchant(), scNaribweRoomsTalkToArmorMerchantOnReturn(), scNaribweRoomsTalkToInnkeeper(), scNaribweRoomsTalkToInnkeeperOnReturn(), scNaribweRoomsTalkToWeaponMerchant(), scNaribweRoomsTalkToWeaponMerchantOnReturn(), scNaribweTalkToPilgrim(), scNaribweTalkToPilgrimOnReturn() and 5 more.

Definition at line 85 of file scene_tables.h.

IF_FLAG_SET

#define IF_FLAG_SET(flag) ((flag) | CONDITION_FLAG_SET)

A condition that holds while flag is set.

Referenced by ActorPlacements, AlhafraCuesOnceBriggsIsCaught, AlhafraRoomsCuesOnceBriggsIsCaught, AlhafraRoomsCuesOnceTheMastIsCleared, AnemosInnerSanctumBoulderCues, AnemosInnerSanctumCrackedFloorCues, AnemosInnerSanctumDullahanCues, AnemosInnerSanctumElevatorCues, AttekaInletHarborActorPlacements, AttekaInletHarborActorPlacementsOnceSetOut, AttekaInletHarborActorPlacementsOnceWinged, AttekaInletHeightsActorPlacements, AttekaInletHeightsActorPlacementsOnceWinged, ChampaCliffCavesForgeCues, ChampaCliffCavesLowerCues, ChampaCliffCavesMiddleCues, ChampaCliffCavesUpperCues, ContigoVillageCues, DehkanPlateauCannonCues, DehkanPlateauCavesCues, DehkanPlateauEntranceCues, DehkanPlateauPillarsCues, DehkanPlateauTightropesCues, GabombaStatueSteelCues, GondowanCliffsActorPlacements, GondowanCliffsCues, KibomboMountainsNorthCues, KibomboStatueGroundsCeremonyCues, KibomboStatueGroundsCues, LinkLobbyUnusedPlacements, LohoRoomsCues, LohoTownCues, MadraPlacements, MadraPlacementsOnReturn, MadraRoomsJailCues, MadraRoomsJailPlacements, MadraRoomsSecondRoomsPlacements, MagmaRockInsideCrackedPillarsCues, MagmaRockInsideLowerRoomsCues, MarsLighthouseEntranceCues, MarsLighthouseHallInscriptionsCues, MarsLighthouseHiddenCircleCues, scAnemosInnerSanctumDullahanShadowChallenges(), scAquaRockSetUpStreams(), SceneCues, scGabombaCatacombsUncoverMadPlant(), scGaiaRockInsideCycloneMadPlant(), scJupiterLighthouseUncoverMadPlant(), scTaopoSwampStartMadPlantBattle(), scTreasureIsleMeetStarMagician() and 13 more.

Definition at line 103 of file scene_tables.h.

SCENE_EXITS

#define SCENE_EXITS(scene) ((Uint32)&SceneId##scene)

An exit table's header word: the scene whose exits follow, named by its name (SCENE_EXITS(Alhafra)). The table is read by gmTakeExit as the scene ends, with the exit kind it ended on.

Referenced by DailaExits, DailaFloodedExits, DailaRoomsExits, DailaRoomsExitsOnceTaviIsRescued, IdejimaExits, LemuriaDockExits, LemuriaDockExitsToOtherWayIn and SceneExits.

Definition at line 127 of file scene_tables.h.

SCENE_EXIT

#define SCENE_EXIT(exit, scene, entrance)

One exit: exit kind exit leads to entrance of the scene scene. EXIT_ID_ANY matches any exit; kind 0 or the next header sends the party to the first exit's scene. The fields are added rather than ORed so the scene can be its SceneId symbol, which the linker fills in; they never overlap. bits: 27..20 exit kind | 19..12 entrance | 11..0 scene

Referenced by IdejimaExits and SceneExits.

Definition at line 133 of file scene_tables.h.

EXIT_SCENE_MASK

#define EXIT_SCENE_MASK 0xfff

An exit word's scene.

Referenced by gmTakeExit().

Definition at line 137 of file scene_tables.h.

ENTRANCE

#define ENTRANCE(word) (((word) & 0xff000) >> 12)

An exit word's entrance.

Referenced by gmTakeExit().

Definition at line 139 of file scene_tables.h.

EXIT_ID

#define EXIT_ID(word) (((word) & 0x0ff00000) >> 20)

An exit word's exit kind.

Referenced by gmTakeExit().

Definition at line 141 of file scene_tables.h.

EXIT_HAS_FLAG

#define EXIT_HAS_FLAG 0x10000000

An exit word's bit 28: a flag word follows it.

Referenced by gmTakeExit().

Definition at line 143 of file scene_tables.h.

EXIT_ID_ANY

#define EXIT_ID_ANY 255

The exit kind that matches whatever exit the scene ended on.

Referenced by gmTakeExit().

Definition at line 145 of file scene_tables.h.

EXIT_KEEP_DESTINATION

#define EXIT_KEEP_DESTINATION 999

The exit kind that leaves for the scene and entrance already chosen (a battle, Retreat, a script's destination): gmTakeExit keeps them.

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

Definition at line 148 of file scene_tables.h.

SCENE_EXIT_UNLESS

#define SCENE_EXIT_UNLESS(exit, scene, entrance, flag)

An exit with a flag word after it: the exit is taken unless flag is set, and when it is set the search goes on to the next exit.

Referenced by DailaExits, DailaFloodedExits, DailaRoomsExits, DailaRoomsExitsOnceTaviIsRescued, LemuriaDockExits, LemuriaDockExitsToOtherWayIn and SceneExits.

Definition at line 151 of file scene_tables.h.

EXIT_FLAG_NONE

#define EXIT_FLAG_NONE 0xffffffff

An exit's flag word of -1 stands for no flag: gmTakeExit takes the exit whatever the flags hold, so a chain of exits always ends somewhere.

Referenced by DailaExits, DailaFloodedExits, DailaRoomsExits, DailaRoomsExitsOnceTaviIsRescued, LemuriaDockExits, LemuriaDockExitsToOtherWayIn and SceneExits.

Definition at line 155 of file scene_tables.h.

SCENE_EXITS_END

#define SCENE_EXITS_END 511

The last header word: it ends the last scene's exits and the table.

Referenced by DailaExits, DailaFloodedExits, DailaRoomsExits, DailaRoomsExitsOnceTaviIsRescued, gmTakeExit(), IdejimaExits, LemuriaDockExits, LemuriaDockExitsToOtherWayIn and SceneExits.

Definition at line 157 of file scene_tables.h.

ACTOR_PLACEMENT_SHARE_PREVIOUS_SPRITE

#define ACTOR_PLACEMENT_SHARE_PREVIOUS_SPRITE 0x01

ACTOR_PLACE.flags: the actor takes the previous actor's sprite resource instead of loading its own, when both are single sprites.

Referenced by ActorPlacements, AirsRockInsideTightropesPlacements, AirsRockInsideTurningBridgePlacements, AirsRockSummitPlacements, AlhafranCaveJailActorPlacements, AnemosInnerSanctumMimicStonesPlacements, AquaRockSlopesPlacements, ChampaActorPlacements, ChampaActorPlacementsOnceBriggsSailed, ContigoGeoglyphPlacements, DehkanPlateauCannonPlacements, DehkanPlateauCavesPlacements, DehkanPlateauEntrancePlacements, DehkanPlateauPillarsPlacements, DehkanPlateauTightropesPlacements, EasternAlhafraPlacements, EasternAlhafraPlacementsAfterBriggsCaught, fdScriptSpawnActorTable(), GabombaStatueChamberIdolActorPlacements, GabombaStatueChamberWitchDoctorActorPlacements, GabombaStatueEntranceActorPlacements, GabombaStatueEyesActorPlacements, GabombaStatueLowerCogsActorPlacements, GabombaStatueMouseActorPlacements, GabombaStatueSteelActorPlacements, GabombaStatueUpperCogsActorPlacements, GaiaRockDancingIdolActorPlacements, GarohPathActorPlacements, GarohVillageActorPlacements, GarohVillageDayActorPlacements, GarohWerewolfCaveActorPlacements, IsletCaveSentinelRoomPlacements, IsletsEastTundariaActorPlacements, KandoreanTempleFogRoomPlacements, KandoreanTempleLiftRoomPlacements, KandoreanTemplePoisRoomPlacements, KibomboCeremonyActorPlacements, KibomboHousesActorPlacements, KibomboMountainsSouthPlacements, KibomboStatueGroundsActorPlacements, KibomboStatueGroundsCeremonyActorPlacements, KibomboVillageActorPlacements, LemurianShipHoldPlacements, LinkLobbyUnusedPlacements, MadraCatacombsChampaTunnelPlacements, MadraCatacombsVillagePlacements, MagmaRockCliffHighWestPlacements, MagmaRockCliffLowWestPlacements, MagmaRockInsideCrackedPillarsPlacements, MagmaRockInsideEmberStonePlacements and 19 more.

Definition at line 177 of file scene_tables.h.

ACTOR_PLACEMENT_AT_SCENE_POINT

#define ACTOR_PLACEMENT_AT_SCENE_POINT 0x02

ACTOR_PLACE.flags: x is the number of a scene point to stand on, not a position (fdFindActorPlacement).

Referenced by AirsRockCliffPlacements, AirsRockInsideEntrancePlacements, AirsRockInsideFaceVentsPlacements, AirsRockInsideHallPlacements, AirsRockInsidePairedStakesPlacements, AirsRockInsideRevealTabletPlacements, AirsRockInsideStatuesPlacements, AirsRockInsideTightropesPlacements, AirsRockInsideTurningBridgePlacements, AirsRockInsideWindStonePlacements, AnemosInnerSanctumBoulderPlacements, AnemosInnerSanctumCrackedFloorPlacements, AnemosInnerSanctumElevatorPlacements, AnemosInnerSanctumMimicStonesPlacements, DehkanPlateauPillarsPlacements, DehkanPlateauTightropesPlacements, fdScriptSpawnActorTable(), GondowanCliffsHideoutPlacements, KandoreanTempleChestbeaterRoomPlacements, KandoreanTempleFogRoomPlacements, KandoreanTempleLiftRoomPlacements, KandoreanTempleVentRoomPlacements, MagmaRockCliffHighEastPlacements, MagmaRockCliffHighWestPlacements, MagmaRockCliffLowEastPlacements, MagmaRockCliffLowWestPlacements, MagmaRockInsideBlazeTabletPlacements, MagmaRockInsideChainsPlacements, MagmaRockInsideCrackedPillarsPlacements, MagmaRockInsideEmberStonePlacements, MagmaRockInsideEntrancePlacements, MagmaRockInsideFuryPlacements, MagmaRockInsideLowerRoomsPlacements, MagmaRockInsidePlacements, MagmaRockPlacements, MagmaRockSummitPlacements, TundariaTowerBurstBroochActorPlacements, TundariaTowerCenterProngActorPlacements, TundariaTowerIceColumnsActorPlacements and TundariaTowerPillarsActorPlacements.

Definition at line 180 of file scene_tables.h.

ACTOR_PLACEMENT

#define ACTOR_PLACEMENT(

One row of a scene's actor placements, its spot in plain pixels.

Referenced by ActorPlacements, AirsRockCliffPlacements, AirsRockEntrancePlacements, AirsRockInsideHallPlacements, AirsRockInsideRevealTabletPlacements, AirsRockSummitPlacements, AlhafraActorPlacements, AlhafraActorPlacementsOnceBriggsIsCaught, AlhafraActorPlacementsOnceTheMastIsCleared, AlhafraActorPlacementsOnceTheShipIsStolen, AlhafraManorActorPlacementsOnceTheMastIsCleared, AlhafranCaveCaveActorPlacements, AlhafranCaveJailActorPlacements, AlhafraRoomsActorPlacementsOnceBriggsIsCaught, AlhafraRoomsActorPlacementsOnceTheMastIsCleared, AnemosInnerSanctumDullahanPlacements, AnemosInnerSanctumMimicStonesPlacements, AngaraCavernPlacements, AnkohlRuinsFifthFloorPlacements, AnkohlRuinsFirstFloorPlacements, AnkohlRuinsFourthFloorPlacements, AnkohlRuinsSecondFloorPlacements, AnkohlRuinsThirdFloorPlacements, ApojiiIslandsHazePlacements, ApojiiIslandsShopsPlacements, ApojiiIslandsVillagePlacements, AquaRockSlopesPlacements, AquaRockSummitPlacements, AttekaInletHarborActorPlacements, AttekaInletHarborActorPlacementsOnceSetOut, AttekaInletHarborActorPlacementsOnceWinged, AttekaInletHeightsActorPlacements, AttekaInletHeightsActorPlacementsOnceWinged, CavernsPlacements, ChampaActorPlacements, ChampaActorPlacementsOnceBriggsSailed, ChampaCliffCavesForgePlacements, ChampaCliffCavesForgePlacementsAfterAvimander, ChampaCliffCavesForgePlacementsBriggsHome, ChampaCliffCavesLowerPlacements, ChampaCliffCavesLowerPlacementsAfterAvimander, ChampaCliffCavesLowerPlacementsBriggsHome, ChampaCliffCavesMiddlePlacements, ChampaCliffCavesMiddlePlacementsAfterAvimander, ChampaCliffCavesMiddlePlacementsBriggsHome, ChampaCliffCavesUpperPlacements, ChampaCliffCavesUpperPlacementsAfterAvimander, ChampaCliffCavesUpperPlacementsBriggsHome, ChampaRoomsActorPlacements, ChampaRoomsIsletActorPlacements and 200 more.

Definition at line 183 of file scene_tables.h.

CUE_SUBJECT_OWN_EFFECT

#define CUE_SUBJECT_OWN_EFFECT 0x400

CUE.subject bit 10: a Psynergy cue runs in place of its field Psynergy, as Mind Read on someone who notices it does; an item cue's script shows its own message in place of the "uses" message (MsgActorUsesItem); an examine cue shows no checking message.

Referenced by AlhafraCues, AlhafraRoomsCues, fdExamineMetatile(), fdUseItem(), fdUsePsynergy(), GarohVillageDayCues, IdejimaCuesWake, IzumoCuesOnceTheSerpentIsSlain, IzumoRoomsCuesOnceTheSerpentIsSlain, KandoreanTempleGateCues, MadraCuesBeforeRaid, MadraRoomsJailCues, SceneCues and YampiDesertSpringCues.

Definition at line 249 of file scene_tables.h.

SHIP_SEA_EXAMINE_CODE

#define SHIP_SEA_EXAMINE_CODE 99

The examine code the search finds aboard the ship facing open sea (World Map collision 3), for the World Map's examine cue on it (scWorldMapGazeIntoPond).

Referenced by fdActorGetCueMetatileAheadOfCurrent() and SceneCues.

Definition at line 252 of file scene_tables.h.

CUE_SUBJECT_QUIET

#define CUE_SUBJECT_QUIET 0x200

CUE.subject bit 9 on a Psynergy cue: the cast neither flashes the caster nor announces the ability (FIELD_EFFECT_STATE.flashCaster and .announceName).

Referenced by fdUsePsynergy().

Definition at line 255 of file scene_tables.h.

CUE_SUBJECT_FACING

#define CUE_SUBJECT_FACING 0xf000

An item cue's subject: the heading it needs in bits 15..12, whether it needs one, and its target, an actor or a metatile behavior.

Referenced by fdFindItemCue(), fdFindPsynergyCue() and fdSelectPsynergyTarget().

Definition at line 258 of file scene_tables.h.

CUE_SUBJECT_NEEDS_FACING

#define CUE_SUBJECT_NEEDS_FACING 0x0800

Referenced by fdFindItemCue(), fdFindPsynergyCue() and fdSelectPsynergyTarget().

Definition at line 259 of file scene_tables.h.

CUE_SUBJECT_TARGET

#define CUE_SUBJECT_TARGET 0xff

Referenced by fdFindItemCue(), fdFindPsynergyCue() and fdSelectPsynergyTarget().

Definition at line 260 of file scene_tables.h.

CUE_FACING_SUBJECT

#define CUE_FACING_SUBJECT(facing, target)

A cue's subject that answers only while the leader faces facing.

Definition at line 262 of file scene_tables.h.

CUE_RESULT_MESSAGE_END

#define CUE_RESULT_MESSAGE_END 65536

A cue's value below this is a message, from it a script.

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

Definition at line 265 of file scene_tables.h.

FIND_ITEM

#define FIND_ITEM(item) (0x00100000 | (item))

What a search finds, an examine cue's value: an item, coins or a message.

Referenced by SuhallaGateCliffsCues.

Definition at line 268 of file scene_tables.h.

FIND_COINS

#define FIND_COINS(coins) (0x00200000 | (coins))

Referenced by SceneCues.

Definition at line 269 of file scene_tables.h.

FIND_MESSAGE

#define FIND_MESSAGE(message) (0x00400000 | (message))

Referenced by AlhafraCues, AlhafraCuesOnceBriggsIsCaught, AlhafraCuesOnceTheMastIsCleared, AlhafraCuesOnceTheShipIsStolen, AlhafraRoomsCues, AlhafraRoomsCuesOnceBriggsIsCaught, AlhafraRoomsCuesOnceTheMastIsCleared, ChampaCues, ChampaCuesOnceBriggsSailed, ContigoShopsCues, ContigoShopsReunionCues, DailaCues, DailaFloodedCues, fdExamineMetatile(), GarohRoomsHousesMorningCues, GarohRoomsHousesNightCues, GarohRoomsShopMorningCues, GarohRoomsShopNightCues, GarohVillageCues, GarohVillageDayCues, KandoreanTempleGateCues, LemurianShipCabinCues, LohoTownCues, MadraRoomsCuesAfterRaid, MadraRoomsCuesBeforeRaid, MadraRoomsCuesOnReturn, MadraRoomsSecondRoomsCues, MikasallaRoomsHousesCues, MikasallaVillageCues, NaribweCues, NaribweCuesOnReturn, ProxCaveHomesCues, ProxHousesCues, SceneCues, SettlementsKaltIslandHousesCues and YallamRoomsInnCues.

Definition at line 270 of file scene_tables.h.

FIND_TYPE_MASK

#define FIND_TYPE_MASK 0xfff00000

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

Referenced by fdExamineMetatile().

Definition at line 272 of file scene_tables.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 275 of file scene_tables.h.

SCRIPT_REF

#define SCRIPT_REF(event) ((Uint32)(event))

Referenced by AirsRockCliffCues, AirsRockEntranceCues, AirsRockInsideEntranceCues, AirsRockInsideFaceVentsCues, AirsRockInsideHallCues, AirsRockInsidePairedStakesCues, AirsRockInsidePsynergyStoneCues, AirsRockInsideRevealTabletCues, AirsRockInsideStatuesCues, AirsRockInsideTightropesCues, AirsRockInsideTurningBridgeCues, AirsRockInsideWindStoneCues, AirsRockSummitCues, AlhafraCues, AlhafraCuesOnceBriggsIsCaught, AlhafraCuesOnceTheMastIsCleared, AlhafraCuesOnceTheShipIsStolen, AlhafranCaveCaveCues, AlhafranCaveJailCues, AlhafraRoomsCues, AlhafraRoomsCuesOnceBriggsIsCaught, AlhafraRoomsCuesOnceTheMastIsCleared, AnemosInnerSanctumBoulderCues, AnemosInnerSanctumCrackedFloorCues, AnemosInnerSanctumDullahanCues, AnemosInnerSanctumElevatorCues, AnemosInnerSanctumGateCues, AnemosInnerSanctumMimicStonesCues, AngaraCavernCues, AnkohlRuinsFifthFloorCues, AnkohlRuinsFirstFloorCues, AnkohlRuinsFourthFloorCues, AnkohlRuinsSandRoomsCues, AnkohlRuinsSecondFloorCues, AnkohlRuinsThirdFloorCues, ApojiiIslandsHazeCues, ApojiiIslandsShopsCues, ApojiiIslandsVillageCues, AquaRockSlopesCues, AquaRockSummitCues, AttekaCavernCues, AttekaInletHarborCues, AttekaInletHeightsCues, ChampaCliffCavesForgeCues, ChampaCliffCavesLowerCues, ChampaCliffCavesUpperCues, ChampaCues, ChampaCuesOnceBriggsSailed, ChampaRoomsCues, ChampaRoomsCuesOnceBriggsSailed and 199 more.

Definition at line 276 of file scene_tables.h.

CUE_TABLE_END

#define CUE_TABLE_END 0xffffffff

Referenced by AirsRockCliffCues, AirsRockEntranceCues, AirsRockInsideEntranceCues, AirsRockInsideFaceVentsCues, AirsRockInsideHallCues, AirsRockInsidePairedStakesCues, AirsRockInsidePsynergyStoneCues, AirsRockInsideRevealTabletCues, AirsRockInsideStatuesCues, AirsRockInsideTightropesCues, AirsRockInsideTurningBridgeCues, AirsRockInsideWindStoneCues, AirsRockSummitCues, AlhafraCues, AlhafraCuesOnceBriggsIsCaught, AlhafraCuesOnceTheMastIsCleared, AlhafraCuesOnceTheShipIsStolen, AlhafranCaveCaveCues, AlhafranCaveJailCues, AlhafraRoomsCues, AlhafraRoomsCuesOnceBriggsIsCaught, AlhafraRoomsCuesOnceTheMastIsCleared, AnemosInnerSanctumBoulderCues, AnemosInnerSanctumCrackedFloorCues, AnemosInnerSanctumCues, AnemosInnerSanctumDullahanCues, AnemosInnerSanctumDullahanEmptyCues, AnemosInnerSanctumElevatorCues, AnemosInnerSanctumGateCues, AnemosInnerSanctumMimicStonesCues, AngaraCavernCues, AnkohlRuinsCues, AnkohlRuinsFifthFloorCues, AnkohlRuinsFirstFloorCues, AnkohlRuinsFourthFloorCues, AnkohlRuinsLeftProngCues, AnkohlRuinsSandRoomsCues, AnkohlRuinsSecondFloorCues, AnkohlRuinsThirdFloorCues, ApojiiIslandsCues, ApojiiIslandsHazeCues, ApojiiIslandsShopsCues, ApojiiIslandsVillageCues, AquaRockCues, AquaRockSlopesCues, AquaRockSummitCues, AttekaCavernCues, AttekaInletCues, AttekaInletHarborCues, AttekaInletHeightsCues and 255 more.

Definition at line 277 of file scene_tables.h.

CUE_KIND_MASK

#define CUE_KIND_MASK 0xf

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

Referenced by fdFindCue(), fdFindItemCue(), fdFindPsynergyCue() and fdSelectPsynergyTarget().

Definition at line 290 of file scene_tables.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 293 of file scene_tables.h.

STEP_CUE_FLAG_WALKING

#define STEP_CUE_FLAG_WALKING 0x200

A step cue that needs the leader to have pushed against it for more than FIELD_PUSH_TICKS, or 2 ticks with STEP_CUE_FLAG_QUICK.

Referenced by ContigoGeoglyphCues, ContigoVillageCues, fdFindCue(), fdRunStepCueOrExit(), IsletsSoutheastAngaraCues, KibomboMountainsNorthCues, ProxTownCues and TaopoSwampMudCues.

Definition at line 296 of file scene_tables.h.

STEP_CUE_FLAG_QUICK

#define STEP_CUE_FLAG_QUICK 0x800

With STEP_CUE_FLAG_WALKING, 2 ticks of pushing are enough.

Referenced by ContigoGeoglyphCues, ContigoVillageCues, fdFindCue(), IsletsSoutheastAngaraCues, KibomboMountainsNorthCues, MagmaRockCues, ProxCaveHomesCues, ProxTownCues and TaopoSwampMudCues.

Definition at line 298 of file scene_tables.h.

CUE_FLAG_FACING

#define CUE_FLAG_FACING 0x400

A script that needs the leader to face within an eighth of a turn of the heading in control bits 15..12.

Referenced by AlhafraCues, AlhafraCuesOnceBriggsIsCaught, AlhafraCuesOnceTheMastIsCleared, AlhafraCuesOnceTheShipIsStolen, AlhafraRoomsCues, AlhafraRoomsCuesOnceBriggsIsCaught, AlhafraRoomsCuesOnceTheMastIsCleared, AttekaInletHeightsCues, ContigoGeoglyphCues, ContigoVillageCues, fdFindCue(), GarohVillageCues, GarohVillageDayCues, IsletsSoutheastAngaraCues, KibomboMountainsNorthCues, ProxTownCues, SceneCues, SettlementsAttekaIsletCues, SettlementsHesperiaSettlementCues, TaopoSwampMudCues, YallamCaveCues and YallamCues.

Definition at line 301 of file scene_tables.h.

STEP_CUE_WALKING

#define STEP_CUE_WALKING (CUE_STEP | STEP_CUE_FLAG_WALKING)

Referenced by AnemosInnerSanctumDullahanCues, DehkanPlateauCannonCues, DehkanPlateauEntranceCues, DehkanPlateauPillarsCues, DehkanPlateauTightropesCues, GabombaStatueChamberWitchDoctorCues, GabombaStatueCorridorsCues, GabombaStatueEyesCues, GabombaStatueLowerCogsCues, GabombaStatueMouseCues, GabombaStatueSteelCues, GabombaStatueUpperCogsCues, KandoreanTemplePoisRoomCues, KibomboHousesCues, MagmaRockCliffHighWestCues, MagmaRockCues, MagmaRockInsideCrackedPillarsCues, MagmaRockInsideCues, MagmaRockInsideFuryCues, MagmaRockInsideLowerRoomsCues, MarsLighthouseCrackedIceCues, MarsLighthouseTowersMarsTowerCues, MarsLighthouseTowersMercuryTowerCues, MarsLighthouseTowersVenusTowerCues, ProxCaveHomesCues, SceneCues and YampiDesertSpringCues.

Definition at line 302 of file scene_tables.h.

STEP_CUE_FACING

#define STEP_CUE_FACING(facing) (CUE_STEP | CUE_FLAG_FACING | (facing))

facing is an FACING; only its top four bits are compared.

Referenced by AquaRockSlopesCues, GarohVillageCues, GarohVillageDayCues, GarohWerewolfCaveCues, LohoRoomsCues and SceneCues.

Definition at line 304 of file scene_tables.h.

STEP_CUE_WALKING_INTO

#define STEP_CUE_WALKING_INTO(facing)

Referenced by AirsRockCliffCues, AirsRockInsideEntranceCues, AirsRockInsideHallCues, AirsRockInsideRevealTabletCues, AirsRockSummitCues, AlhafraCues, AlhafraCuesOnceBriggsIsCaught, AlhafraCuesOnceTheMastIsCleared, AlhafraCuesOnceTheShipIsStolen, AngaraCavernCues, AnkohlRuinsFifthFloorCues, ApojiiIslandsHazeCues, ApojiiIslandsVillageCues, AttekaInletHarborCues, ChampaCliffCavesUpperCues, ChampaCues, ChampaCuesOnceBriggsSailed, ContigoGeoglyphCues, DailaCues, DailaRoomsSanctumCuesOnceTaviIsRescued, DehkanPlateauPillarsCues, DehkanPlateauTightropesCues, GabombaStatueChamberIdolCues, GabombaStatueMouseCues, GabombaStatueSteelCues, GabombaStatueUpperCogsCues, GarohVillageCues, GarohVillageDayCues, IdejimaCuesFromDoor, IndraCavernCues, IsletCaveCorridorsCues, IsletCaveHallsCues, IsletsEastTundariaCues, IsletsSoutheastAngaraCues, IsletsWestIndraCues, IzumoCues, IzumoCuesOnceTheSerpentIsSlain, KandoreanTempleChestbeaterRoomCues, KandoreanTempleGateCues, KandoreanTemplePoisRoomCues, KibomboCeremonyCues, KibomboMountainsNorthCues, KibomboStatueGroundsCeremonyCues, KibomboStatueGroundsCues, KibomboVillageCues, LemurianShipCabinCues, LemurianShipDeckMainDeckCues, LemurianShipHoldCues, LemurianShipLedgeRoomCues, LemurianShipLowerDeckCues and 37 more.

Definition at line 305 of file scene_tables.h.

EXAMINE_CUE

#define EXAMINE_CUE(target) (CUE_EXAMINE | (target) << 4)

Referenced by AlhafraCues, AlhafraCuesOnceBriggsIsCaught, AlhafraCuesOnceTheMastIsCleared, AlhafraCuesOnceTheShipIsStolen, AlhafraRoomsCues, AlhafraRoomsCuesOnceBriggsIsCaught, AlhafraRoomsCuesOnceTheMastIsCleared, ContigoShopsCues, ContigoShopsReunionCues, DailaCues, DailaFloodedCues, GarohRoomsHousesMorningCues, GarohRoomsHousesNightCues, GarohRoomsShopMorningCues, GarohRoomsShopNightCues, GarohVillageCues, GarohVillageDayCues, KandoreanTempleGateCues, LemurianShipCabinCues, LohoTownCues, MadraRoomsCuesAfterRaid, MadraRoomsCuesBeforeRaid, MadraRoomsCuesOnReturn, MadraRoomsSecondRoomsCues, MikasallaRoomsHousesCues, MikasallaVillageCues, NaribweCues, NaribweCuesOnReturn, ProxCaveHomesCues, ProxHousesCues, SceneCues, SettlementsKaltIslandHousesCues, SuhallaGateCliffsCues, TaopoSwampStarDustCues and YallamRoomsInnCues.

Definition at line 307 of file scene_tables.h.

EXAMINE_CUE_FACING

#define EXAMINE_CUE_FACING(facing) (CUE_EXAMINE | CUE_FLAG_FACING | (facing))

An examine cue searched while facing the given way, as a counter is searched across.

Referenced by AirsRockInsideRevealTabletCues, ChampaCues, ChampaCuesOnceBriggsSailed, ContigoVillageCues, GabombaStatueChamberWitchDoctorCues, MadraCatacombsVillageCues and MagmaRockInsideBlazeTabletCues.

Definition at line 310 of file scene_tables.h.

TALK_CUE_FACING

#define TALK_CUE_FACING(facing) (CUE_TALK | CUE_FLAG_FACING | (facing))

A talk cue that answers only while the leader faces the given way, so one actor can answer differently from each side.

Referenced by AlhafraCues, AlhafraCuesOnceBriggsIsCaught, AlhafraCuesOnceTheShipIsStolen, AlhafraRoomsCues, AlhafraRoomsCuesOnceBriggsIsCaught, AlhafraRoomsCuesOnceTheMastIsCleared, AttekaInletHeightsCues, ChampaCliffCavesUpperCues, ChampaRoomsCues, ChampaRoomsCuesOnceBriggsSailed, GabombaCatacombsMudCues, LemurianShipPipeRoomCues, MadraRoomsCuesBeforeRaid, MadraRoomsJailCues, MagmaRockInsideEntranceCues, MarsLighthouseIceShaftCues, SceneCues, ShrineOfTheSeaGodSideRoomCues and YallamSongGameCues.

Definition at line 313 of file scene_tables.h.

FIELD_PSYNERGY_FINISHED

#define FIELD_PSYNERGY_FINISHED 999

The phase a field Psynergy's state is left in once it has finished, which the cast waits for; its acting scripts get it as their stage the last time they run.

Referenced by fdCycloneCarryLeader(), fdCycloneLiftLeader(), fdPoundSinkFist(), fdPsynergyArrow(), fdPsynergyBurst(), fdPsynergyCyclone(), fdPsynergyLash(), fdPsynergyParch(), fdPsynergyPound(), fdPsynergyRing(), fdPsynergyScoop(), fdPsynergyUpdateArrow(), fdPsynergyUpdateBurst(), fdPsynergyUpdateLash(), fdPsynergyUpdatePound(), fdScoopUpdate(), fdSummonTabletPlayRunes(), fdTeleportPlaySparks(), fdTeleportPlayWhirl() and scTundariaTowerBurstBrownWall().

Definition at line 430 of file scene_tables.h.

POUND_STAGE_LANDED

#define POUND_STAGE_LANDED 1

The stage Pound's acting scripts get: 0 until the fist lands, then POUND_STAGE_LANDED.

Referenced by dbPsynergyTest2PoundFire(), dbPsynergyTestPoundTorch(), fdPoundSinkTarget(), fdPsynergyUpdatePound(), scAirsRockInsidePoundStake(), scEasternAlhafraPoundStake(), scGabombaStatuePoundBlock(), scGabombaStatuePoundEyesStake(), scGabombaStatueRaiseBlocks(), scIzumoRuinsPoundStake(), scMarsLighthouseEntrancePoundIceCone(), scTrialRoadPoundStake() and scTundariaTowerShrinkIceColumn().

Definition at line 433 of file scene_tables.h.

SCOOP_STAGE_DUG

#define SCOOP_STAGE_DUG 1

The stages Scoop's acting scripts get on a tick of the dig, 0 on the rest: SCOOP_STAGE_DUG on the tick the ground is dug (SCOOP_DUG_TICK), and SCOOP_STAGE_DUG_UP on tick 50, as what was buried comes up.

Referenced by dbPsynergyTest2DigMetatiles(), dbPsynergyTest2GrowActor(), dbPsynergyTest2RaiseStatue(), dbPsynergyTestDigMetatiles(), dbPsynergyTestGrowActor(), dbPsynergyTestRaiseStatue(), dbShopTestDigMetatiles(), dbShopTestGrowActor(), dbShopTestRaiseStatue(), fdPsynergyScoop(), scCavernsScoopOseniaPassage(), scKibomboScoopEastMark(), scKibomboScoopNorthMark(), scKibomboScoopSouthMark(), scKibomboScoopVent(), scKibomboScoopWestMark(), scYampiDesertCaveScoopDjinni(), scYampiDesertOpenGeyser() and scYampiDesertScoopLadderPit().

Definition at line 437 of file scene_tables.h.

SCOOP_STAGE_DUG_UP

#define SCOOP_STAGE_DUG_UP 2

Referenced by dbPsynergyTest2DropActor(), dbPsynergyTest2GrowActor(), dbPsynergyTest2RaiseStatue(), dbPsynergyTestDropActor(), dbPsynergyTestGrowActor(), dbPsynergyTestRaiseStatue(), dbShopTestDropActor(), dbShopTestGrowActor(), dbShopTestRaiseStatue(), fdPsynergyScoop() and scYampiDesertCaveScoopDjinni().

Definition at line 438 of file scene_tables.h.

PSYNERGY_PHASE_SHIFT

#define PSYNERGY_PHASE_SHIFT 28

A Psynergy cue's phase bits, 31..28.

Definition at line 441 of file scene_tables.h.

PSYNERGY_PHASE_MASK

#define PSYNERGY_PHASE_MASK (15u << PSYNERGY_PHASE_SHIFT)

Referenced by fdFindPsynergyCue().

Definition at line 442 of file scene_tables.h.

PSYNERGY_CUE

#define PSYNERGY_CUE(phase)

The control word of a Psynergy cue (CUE_PSYNERGY) in the given phase, as fdFindPsynergyCue compares it (bits 31..28 phase | 3..0 kind).

Referenced by fdPsynergyBlaze(), fdPsynergyBurst(), fdPsynergyDouse(), fdPsynergyEndReveal(), fdPsynergyEndSand(), fdPsynergyForce(), fdPsynergyFrost(), fdPsynergyGrindOnTarget(), fdPsynergyHover(), fdPsynergyParch(), fdPsynergyPound(), fdPsynergyReveal(), fdPsynergyRunTouchedScripts(), fdPsynergyScoop(), fdPsynergySteerPushedTarget(), fdRunPsynergyEndScripts() and fdUsePsynergy().

Definition at line 445 of file scene_tables.h.

PSYNERGY_CUE_ANY

#define PSYNERGY_CUE_ANY PSYNERGY_CUE(PSYNERGY_PHASE_ANY)

Referenced by fdFindPsynergyCue() and fdHasPsynergyCue().

Definition at line 447 of file scene_tables.h.

CUE_PSYNERGY_ON_ACTOR

#define CUE_PSYNERGY_ON_ACTOR 0x10

A Psynergy cue on the actor the leader faces.

Referenced by fdFindPsynergyCue() and fdSelectPsynergyTarget().

Definition at line 450 of file scene_tables.h.

PSYNERGY_ON_ACTOR

#define PSYNERGY_ON_ACTOR(ability)

Referenced by AirsRockCliffCues, AirsRockEntranceCues, AirsRockInsideEntranceCues, AirsRockInsideFaceVentsCues, AirsRockInsideHallCues, AirsRockInsidePairedStakesCues, AirsRockInsideStatuesCues, AirsRockInsideTightropesCues, AirsRockInsideTurningBridgeCues, AirsRockInsideWindStoneCues, AirsRockSummitCues, AlhafraCues, AlhafraCuesOnceBriggsIsCaught, AlhafraCuesOnceTheMastIsCleared, AlhafraCuesOnceTheShipIsStolen, AlhafranCaveCaveCues, AlhafranCaveJailCues, AlhafraRoomsCues, AlhafraRoomsCuesOnceBriggsIsCaught, AlhafraRoomsCuesOnceTheMastIsCleared, AnemosInnerSanctumBoulderCues, AnemosInnerSanctumCrackedFloorCues, AnemosInnerSanctumDullahanCues, AnemosInnerSanctumElevatorCues, AngaraCavernCues, AnkohlRuinsFifthFloorCues, AnkohlRuinsFirstFloorCues, AnkohlRuinsFourthFloorCues, AnkohlRuinsSecondFloorCues, AnkohlRuinsThirdFloorCues, ApojiiIslandsHazeCues, ApojiiIslandsShopsCues, ApojiiIslandsVillageCues, AquaRockSlopesCues, AquaRockSummitCues, AttekaInletHarborCues, AttekaInletHeightsCues, ChampaCliffCavesForgeCues, ChampaCliffCavesLowerCues, ChampaCliffCavesMiddleCues, ChampaCliffCavesUpperCues, ChampaCues, ChampaCuesOnceBriggsSailed, ChampaRoomsCues, ChampaRoomsCuesOnceBriggsSailed, ChampaRoomsIsletCues, ContigoGeoglyphCues, ContigoLuckyDiceCues, ContigoShopsCues, ContigoShopsReunionCues and 145 more.

Definition at line 451 of file scene_tables.h.

PSYNERGY_PHASE_ON_ACTOR

#define PSYNERGY_PHASE_ON_ACTOR(ability, phase)

A Psynergy cue on an actor at one phase of the cast, as PSYNERGY_ANYWHERE is for any target.

Referenced by AirsRockCliffCues, AirsRockEntranceCues, AirsRockInsideEntranceCues, AirsRockInsideFaceVentsCues, AirsRockInsideHallCues, AirsRockInsidePairedStakesCues, AirsRockInsideStatuesCues, AirsRockInsideTightropesCues, AirsRockInsideTurningBridgeCues, AirsRockInsideWindStoneCues, AirsRockSummitCues, AlhafranCaveJailCues, AnemosInnerSanctumBoulderCues, AnemosInnerSanctumCrackedFloorCues, AnemosInnerSanctumElevatorCues, AngaraCavernCues, AnkohlRuinsFifthFloorCues, AnkohlRuinsFirstFloorCues, AnkohlRuinsFourthFloorCues, AnkohlRuinsThirdFloorCues, DehkanPlateauCannonCues, DehkanPlateauEntranceCues, DehkanPlateauPillarsCues, DehkanPlateauPoundCubeCues, DehkanPlateauTightropesCues, GabombaStatueEyesCues, GabombaStatueLowerCogsCues, GaiaRockCues, GaiaRockEntranceCues, GarohEntranceCues, IsletsSoutheastAngaraCues, IzumoCues, IzumoCuesOnceTheSerpentIsSlain, IzumoRuinsLowerCues, IzumoRuinsUpperCues, KandoreanTempleChestbeaterRoomCues, KandoreanTempleLiftRoomCues, KandoreanTempleVentRoomCues, KibomboMountainsNorthCues, KibomboMountainsSouthCues, KibomboVillageCues, LemurianShipLedgeRoomCues, LemurianShipPillarRoomCues, LemurianShipPipeRoomCues, LemurianShipSixJellyRoomCues, MadraCatacombsVillageCues, MagmaRockCliffHighEastCues, MagmaRockCliffHighWestCues, MagmaRockCliffLowEastCues, MagmaRockCliffLowWestCues and 34 more.

Definition at line 455 of file scene_tables.h.

PSYNERGY_PHASE_ON_METATILE

#define PSYNERGY_PHASE_ON_METATILE(ability, phase)

A Psynergy cue on the metatile behavior ahead, at one phase of the cast.

Referenced by AnemosInnerSanctumGateCues, ApojiiIslandsHazeCues, ApojiiIslandsVillageCues, AttekaCavernCues, AttekaInletHeightsCues, ContigoVillageCues, DailaCues, GabombaCatacombsHiddenWallCues, GabombaCatacombsStreamCues, GabombaCatacombsTeleportersCues, GabombaCatacombsTomegathericonCues, GaiaRockEntranceCues, GondowanCliffsCues, IsletCaveHallsCues, IsletsNorthOseniaCues, IzumoCues, IzumoCuesOnceTheSerpentIsSlain, IzumoRuinsLowerCues, JupiterLighthouseBasementCues, KandoreanTempleGateCues, KibomboStatueGroundsCeremonyCues, KibomboStatueGroundsCues, LemurianShipHoldCues, LohoTownCues, MagmaRockCliffHighEastCues, MagmaRockCliffHighWestCues, MagmaRockCliffLowEastCues, MagmaRockCliffLowWestCues, MagmaRockCues, MagmaRockInsideCrackedPillarsCues, MagmaRockInsideEntranceCues, MagmaRockInsideFuryCues, MagmaRockSummitCues, MarsLighthouseBalmCues, MarsLighthouseDragonFaceCues, MarsLighthouseEntranceCues, MarsLighthouseHallInscriptionsCues, MarsLighthouseHiddenCircleCues, MarsLighthouseTowersJupiterTowerCues, MarsLighthouseTowersMarsTowerCues, MikasallaTunnelCues, MikasallaVillageCues, OseniaCavernCues, ProxNorthCues, ProxTownCues, SceneCues, SettlementsGondowanSettlementCues, TaopoSwampFlowerCues, TaopoSwampStarDustCues, TaopoSwampTearStonesCues and 9 more.

Definition at line 469 of file scene_tables.h.

CUE_ITEM_ON_ACTOR

#define CUE_ITEM_ON_ACTOR 0x10

Using an item on a metatile behavior, or on an actor; the item is an ITEM_ID (item_ids.h) or an ITEM_FILTER_ value.

Referenced by fdFindItemCue().

Definition at line 474 of file scene_tables.h.

USE_ITEM

#define USE_ITEM(item) (CUE_ITEM | (item) << 8)

Referenced by MadraCatacombsTabletCues, SceneCues, ShrineOfTheSeaGodIslandCues and ShrineOfTheSeaGodStatueCues.

Definition at line 475 of file scene_tables.h.

USE_ITEM_ON_ACTOR

#define USE_ITEM_ON_ACTOR(item) (CUE_ITEM | CUE_ITEM_ON_ACTOR | (item) << 8)

Referenced by AlhafraCuesOnceBriggsIsCaught, IzumoRoomsCuesOnceTheSerpentIsSlain, LohoTownCues and MadraRoomsCuesOnReturn.

Definition at line 476 of file scene_tables.h.

CUE_PSYNERGY_ANYWHERE

#define CUE_PSYNERGY_ANYWHERE 0x80

A Psynergy cue for any target, not a particular actor or metatile.

Referenced by fdFindPsynergyCue() and fdSelectPsynergyTarget().

Definition at line 479 of file scene_tables.h.

PSYNERGY_ANYWHERE

#define PSYNERGY_ANYWHERE(ability, phase)

Referenced by AirsRockInsideRevealTabletCues, AlhafraCues, AlhafraCuesOnceBriggsIsCaught, AlhafraCuesOnceTheMastIsCleared, AlhafraCuesOnceTheShipIsStolen, AlhafranCaveCaveCues, AnemosInnerSanctumBoulderCues, AnemosInnerSanctumCrackedFloorCues, AnemosInnerSanctumDullahanCues, AnkohlRuinsFifthFloorCues, AnkohlRuinsFirstFloorCues, AnkohlRuinsFourthFloorCues, AnkohlRuinsSandRoomsCues, AnkohlRuinsSecondFloorCues, AnkohlRuinsThirdFloorCues, ApojiiIslandsVillageCues, ChampaCliffCavesForgeCues, ChampaCues, ChampaCuesOnceBriggsSailed, ContigoGeoglyphCues, GabombaCatacombsHiddenWallCues, GaiaRockCues, GarohEntranceCues, GarohPathCues, GarohTunnelsCues, GarohVillageCues, GarohVillageDayCues, GarohWerewolfCaveCues, IsletsEastTundariaCues, IsletsNorthOseniaCues, IsletsSeaOfTimeCues, IzumoCues, IzumoCuesOnceTheSerpentIsSlain, IzumoRuinsUpperCues, MadraCatacombsVillageCues, MarsLighthouseHiddenCircleCues, MarsLighthouseTowersJupiterTowerCues, NaribweCues, NaribweCuesOnReturn, SceneCues, ShrineOfTheSeaGodEntranceCues, ShrineOfTheSeaGodIslandCues, TundariaTowerPillarsCues, YampiDesertBlitzCues, YampiDesertCavernCues, YampiDesertEntranceCues, YampiDesertKingScorpionCues, YampiDesertPsynergyStoneCues, YampiDesertPuddlesCues, YampiDesertSandPassCues and 4 more.

Definition at line 480 of file scene_tables.h.

ENCOUNTER_BATTLE_MUSIC_MARKER

#define ENCOUNTER_BATTLE_MUSIC_MARKER 0x8000

The bit that marks a song in EncounterBattleMusic; encounter keys have it clear.

Referenced by fdEncounterSelectBattleMusic().

Definition at line 530 of file scene_tables.h.

ENCOUNTER_BATTLE_MUSIC

#define ENCOUNTER_BATTLE_MUSIC(song)

A song's row in EncounterBattleMusic, before the encounters that take it: the song (a MUS_ id) with ENCOUNTER_BATTLE_MUSIC_MARKER set.

Referenced by EncounterBattleMusic.

Definition at line 533 of file scene_tables.h.

ENCOUNTER_KEY

#define ENCOUNTER_KEY(zone, slot) (((zone) << 4) + (slot))

An encounter's row in EncounterBattleMusic: slot of encounter zone.

Referenced by EncounterBattleMusic.

Definition at line 536 of file scene_tables.h.

Enumerations in detail

FACING

enum FACING

The sixteen headings an actor faces, in turns from east, clockwise on the screen: the eight between the main ones turn an actor a little past a main heading, which picks the side its sprite leans to.

EnumeratorValueDescription
FACING_EAST0x0000
FACING_EAST_SOUTHEAST0x1000
FACING_SOUTHEAST0x2000
FACING_SOUTH_SOUTHEAST0x3000
FACING_SOUTH0x4000
FACING_SOUTH_SOUTHWEST0x5000
FACING_SOUTHWEST0x6000
FACING_WEST_SOUTHWEST0x7000
FACING_WEST0x8000
FACING_WEST_NORTHWEST0x9000
FACING_NORTHWEST0xa000
FACING_NORTH_NORTHWEST0xb000
FACING_NORTH0xc000
FACING_NORTH_NORTHEAST0xd000
FACING_NORTHEAST0xe000
FACING_EAST_NORTHEAST0xf000

Definition at line 35 of file scene_tables.h.

anonymous enum

enum { FACING_STEP }

A sixteenth of a turn, half the step between two headings.

EnumeratorValueDescription
FACING_STEP0x1000

Definition at line 56 of file scene_tables.h.

anonymous enum

enum { FACING_NUDGE }

A sliver of a turn off a heading: an actor turning round to face the opposite way turns by the side the nudge leans to.

EnumeratorValueDescription
FACING_NUDGE10

Definition at line 63 of file scene_tables.h.

anonymous enum

enum { SCENE_TABLE_END }

In the first column of a scene table, ends the table.

EnumeratorValueDescription
SCENE_TABLE_END-1

Definition at line 89 of file scene_tables.h.

anonymous enum

enum { CONDITION_ALWAYS, CONDITION_FLAG_SET }

A table row's condition: CONDITION_ALWAYS, a flag number that must be clear, or IF_FLAG_SET of a flag that must be set (fdGameFlagIsConditionActive).

EnumeratorValueDescription
CONDITION_ALWAYS-1
CONDITION_FLAG_SET0x1000the flag must be set, not clear

Definition at line 96 of file scene_tables.h.

MOVEMENT_TYPE

enum MOVEMENT_TYPE

The movement types an actor placement's behavior can name, which fdActorSetMovementType turns into scripts.

EnumeratorValueDescription
MOVEMENT_TYPE_STAND1Its script only ends.
MOVEMENT_TYPE_WANDER2
MOVEMENT_TYPE_WANDER_NEAR3
MOVEMENT_TYPE_WANDER_CLOSE4
MOVEMENT_TYPE_FOLLOW_WATCHED5Moves toward the watched actor.
MOVEMENT_TYPE_FACE_LEADER6Watches the leader and turns toward it.
MOVEMENT_TYPE_CLEAR_COLLISION7MovementTypeClearCollisionScript: clears the actor's child and collision flags (fdActorClearSpriteAndCollisionFlags).
MOVEMENT_TYPE_SQUASH8MovementTypeSquashScript: squashes and stretches for ever.
MOVEMENT_TYPE_TAKE_LEADER_LAYER9MovementTypeTakeLeaderLayerScript.
MOVEMENT_TYPE_IGNORE_RISES10MovementTypeIgnoreRisesScript.
MOVEMENT_TYPE_CLEAR_SPRITE_FLAGS11MovementTypeClearSpriteFlagsScript.

Definition at line 197 of file scene_tables.h.

ACTOR_TALK_FACING

enum ACTOR_TALK_FACING

How a placed actor turns when the leader talks to it (fdTalkToActor). With all but TALK_FACING_KEEP the leader stops and each watches the other.

EnumeratorValueDescription
TALK_FACING_PARTY0
TALK_FACING_PARTY_AND_BACK1Faces the party, then turns back to its
TALK_FACING_KEEP2old heading.
TALK_FACING_PARTY_THEN_WATCH3Faces the party, then keeps turning to face the leader once the talk is over (ActorFaceWatchedScript).

Definition at line 221 of file scene_tables.h.

EXIT_STYLE

enum EXIT_STYLE

An exit cue's control bits 6..4: how the leader leaves (fdRunStepCueOrExit).

EnumeratorValueDescription
EXIT_STYLE_NORMAL0x00with SE_MAP_EXIT
EXIT_STYLE_SILENT0x10
EXIT_STYLE_STAIRS_UP0x20With SE_STAIRS_UP and ANIM_LEADER_LEAVE; the next scene plays ANIM_LEADER_ARRIVE (FLAG_ARRIVAL_STAIRS_UP).
EXIT_STYLE_STAIRS_DOWN0x30With SE_STAIRS_DOWN and ANIM_LEADER_LEAVE_ALTERNATE; the next scene plays ANIM_LEADER_ARRIVE_ALTERNATE (FLAG_ARRIVAL_STAIRS_DOWN).
EXIT_STYLE_HIDDEN_LAYER0x50With SE_MAP_EXIT and a hidden layer on
EXIT_STYLE_MASK0x70the leader's sprite (fdExitAddHiddenLeaderLayer).

Definition at line 316 of file scene_tables.h.

EXAMINE

enum EXAMINE

What an examine cue is on, EXAMINE_CUE()'s control bits 8..4. Target n shows message MsgTileChecked + n, "<leader> checked the ...", as the leader checks it, unless the cue has CUE_SUBJECT_OWN_EFFECT; target 0 shows nothing.

EnumeratorValueDescription
EXAMINE_SILENT0
EXAMINE_CHEST1
EXAMINE_JAR
EXAMINE_BARREL
EXAMINE_WALL
EXAMINE_GROUND
EXAMINE_ROCK
EXAMINE_HOLE
EXAMINE_GRAVE
EXAMINE_TREE
EXAMINE_UNDERBRUSH
EXAMINE_DOOR
EXAMINE_CHIMNEY
EXAMINE_WOODEN_BOX
EXAMINE_BED
EXAMINE_BOOKCASE
EXAMINE_STONE_COFFIN
EXAMINE_FIREPLACE
EXAMINE_WATER
EXAMINE_STONE_PILLAR
EXAMINE_STALACTITE
EXAMINE_BOARDS
EXAMINE_FOUNTAIN
EXAMINE_OVEN
EXAMINE_TABLE
EXAMINE_STONE_STATUE
EXAMINE_STONE_TABLET
EXAMINE_SHELF
EXAMINE_WARDROBE
EXAMINE_FIREWOOD
EXAMINE_BOOKS
EXAMINE_WELL
EXAMINE_POND

Definition at line 336 of file scene_tables.h.

ACTOR_ID

enum ACTOR_ID

Actor ids: 0 to 7 the party's characters, the placed actors from 8. A party member's actor takes its character's number as its actor id.

EnumeratorValueDescription
ACTOR_ISAAC
ACTOR_GARET
ACTOR_IVAN
ACTOR_MIA
ACTOR_FELIX
ACTOR_JENNA
ACTOR_SHEBA
ACTOR_PIERS
ACTOR_FIRST_PLACED

Definition at line 377 of file scene_tables.h.

CUE_KIND

enum CUE_KIND

CUE.kind's low four bits: what the cue answers.

EnumeratorValueDescription
CUE_TALK0the A button on an actor; the subject is its id
CUE_EXIT1stepping onto subject behavior (no step cue); value is exit kind
CUE_STEP2stepping onto or pushing against a metatile behavior
CUE_EXAMINE3the A button on what is ahead, when it is no actor
CUE_ITEM4an item used on a metatile or an actor
CUE_PSYNERGY5
CUE_RAISED6raised by code
CUE_TALK_HALTED7talking to an actor Halt has stopped
CUE_PUSH8Pushing any actor, before the push: fdRunPushMetatile calls it with the metatile's attributes and the actor's id. fdFindCue never reads its subject, so a scene may write any value there.
CUE_PUSHED9as CUE_PUSH, once the leader has pushed

Definition at line 391 of file scene_tables.h.

PSYNERGY_PHASE

enum PSYNERGY_PHASE

When a Psynergy cue runs around its field Psynergy, control bits 31..28.

EnumeratorValueDescription
PSYNERGY_PHASE_AFTER_CAST0after the field Psynergy, PSYNERGY_ON_ACTOR's phase
PSYNERGY_PHASE_BEFORE_CAST1once the PP is paid, before the cast
PSYNERGY_PHASE_AFTER_END2after a Psynergy that runs out by itself has ended
PSYNERGY_PHASE_BEFORE_END3as PSYNERGY_PHASE_AFTER_END, before it
PSYNERGY_PHASE_FADES4as Reveal's colours come back
PSYNERGY_PHASE_ACTS5run by the field Psynergy as it acts
PSYNERGY_PHASE_HITS6as Blaze's fire reaches what it is aimed at
PSYNERGY_PHASE_FIRST8before all others, once chosen (after Retreat's question)
PSYNERGY_PHASE_ANY15fdFindPsynergyCue matches every phase

Definition at line 410 of file scene_tables.h.

PSYNERGY_TARGET

enum PSYNERGY_TARGET

What fdSelectPsynergyTarget chooses: a metatile behavior as it is, an actor's id with PSYNERGY_TARGET_ACTOR, or PSYNERGY_TARGET_ANYWHERE.

EnumeratorValueDescription
PSYNERGY_TARGET_ACTOR0x100
PSYNERGY_TARGET_ANYWHERE0x200
PSYNERGY_TARGET_KIND0xff00which of the three
PSYNERGY_TARGET_ID0xffthe metatile behavior or actor

Definition at line 460 of file scene_tables.h.

Variables in detail

ScenesWork

extern const SCENE ScenesWork[]

Every scene's row, by scene number (field/scenes.s).

Referenced by gmFieldGetSceneAttributes(), gmGetArea(), gmLoadOverlay() and gmMainRoutineRun().

Definition at line 30 of file scene_tables.h.