src/scene/alhafran_cave.c
The Alhafran Cave under the town, in two scenes that share this overlay: the cave behind the rear entrance by the mayor's home, which the hungry boy's father lets the party into once they give the boy Large Bread (SceneIdAlhafranCave), and the town's jail with the caves beyond it (SceneIdAlhafraJail). More…
#include "game/game.h"#include "macros.h"#include "field/field_engine.h"#include "field/field_engine_script.h"#include "scene/scene.h"#include "scene/ground_effects.h"#include "field/script_inline.h"#include "edition.h"#include "field/call.h"#include "text/msg_ids.h"#include "field/actor_script.h"#include "scene/dehkan_plateau.h"#include "shared/pillar_place.c"#include "shared/pound_sink_target.c"#include "shared/actor_set_metatile_open.c"#include "shared/scene_entrances_default.c"
Macros
| Name | Description | |
|---|---|---|
#define | OWN_fdActorTakeLeaderLayer | This unit declares its own form of fdActorTakeLeaderLayer, below. |
#define | OWN_fdActorCycleSpriteColors | This unit declares its own form of fdActorCycleSpriteColors, below. |
#define | FLAG_BRIDGE_METATILES_RAISED FLAG_SCENE_TEMP(0x04) | Set while the ground under the cave's bridges stands at their height, so that the leader walks over them rather than under. |
#define | FLAG_JAIL_ROPE_TIED FLAG_SCENE_TEMP(0x00) | Set once Lash has tied the jail's rope. |
#define | FLAG_JAIL_STAKE_POUNDED FLAG_SCENE_TEMP(0x01) | Set once Pound has sunk the jail's stake. |
#define | FLAG_ALHAFRAN_CAVE_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x03) | Set once Frost has frozen the cave's puddle. |
Enumerations
| Name | Description | |
|---|---|---|
enum | ALHAFRAN_CAVE_ACTOR_ID { ACTOR_CAVE_FIRST_BRIDGE, ACTOR_CAVE_SECOND_BRIDGE, ACTOR_CAV … } | The cave's actors (SceneIdAlhafranCave), numbering the rows of AlhafranCaveCaveActorPlacements. |
enum | ALHAFRA_JAIL_ACTOR_ID { ACTOR_CRATE, ACTOR_JAIL_STAKE, ACTOR_JAIL_ROPE_LOW_POST, ACT … } | The jail's actors (SceneIdAlhafraJail), numbering the rows of AlhafranCaveJailActorPlacements. |
enum | ALHAFRAN_CAVE_WAY { EXIT_DOWN_THE_STAIRS, EXIT_UP_THE_STAIRS, ENTRANCE_UP_THE_ST … } | The cave's stairs between its two levels: down at metatile (30, 40) and up at metatile (9, 5). |
enum | ALHAFRA_JAIL_WAY { EXIT_DOWN_UNDER_CRATE, EXIT_BACK_TO_CRATE, ENTRANCE_UNDER_CR … } | The jail's tunnel behind the cell: down through the hole the crate hides (metatile (45, 10)) to the tunnel's far end (metatile (22, 15)), and back up through the hole. |
enum | anonymous enum { METATILE_BEHAVIOR_LOWER_BRIDGES, METATILE_BEHAVIOR_RAISE_BRI … } | The metatile behaviours the step cues answer: in the cave, the ledge's metatiles that raise the ground under the bridges (metatile (18, 8)) and lower it again (metatiles (17, 7) and (15, 25)); in the jail, the way in from the town past the guard (metatiles (49, 16) to (49, 19)). |
Functions
| Name | Description | |
|---|---|---|
void | scPillarPlace (const Uint16 *table) | Unused: places the pillars of a list as shared/pillar_place.c does, reading its halfwords as signed. |
void | scAlhafranCaveTakeLeadersLayer (void) | An actor's update: it takes the party leader's display layer. |
void | scAlhafranCaveRaiseBridgeMetatiles (void) | Nothing visible happens as Felix walks east onto metatile (18, 8), on the ledge 32 pixels up along the cave's north wall; the game raises the ground under the southern stone bridge (metatiles (25, 19) to (27, 19)) and under the broken bridge's two ends (metatiles (18, 24) and (21, 24)) to the height of the ledges they join, so that from the ledges he walks over the bridges rather than under them. |
void | scAlhafranCaveLowerBridgeMetatiles (void) | Nothing visible happens as Felix walks past metatile (17, 7) or (15, 25); the game lowers the ground under the bridges to the cave's floor again, so that down there he walks under them. |
void | scAlhafranCaveCastSand (void) | Felix casts Sand in the cave: the world turns grey and he sinks into the floor as a mound of sand. |
void | scAlhafranCaveStartMovingCrate (void) | Nothing more than the move itself happens as Felix starts casting Move on the crate in the jail. |
void | scAlhafranCaveFinishMovingCrate (void) | Nothing more than the move itself happens once Move has set the jail's crate down. |
void | scAlhafranCaveCycleKeyColors (void) | The key's update while Eoleo's Psynergy holds it: its colours cycle. |
void | scAlhafranCaveSetUpCave (void) | Sets up the cave: its bridges, the broken bridge, the pillars, the puddle, and the metatiles under the bridges if the leader was on the ledges. |
void | scAlhafranCaveSetUpJail (void) | Sets up the jail and the cave: who is held and who visits, by how far the story has gone (Briggs caught, his family's visit, the mast cleared), and the crate pushed aside as the party climbs up through the hole under it. |
void | fdActorCycleSpriteColors (void) | Declared as this file calls them, with no arguments and no result, though their definitions take the actor (and fdActorTakeLeaderLayer returns an Sint32). |
void | fdActorTakeLeaderLayer (void) | Gives an actor the leader's sprite priority, so it is drawn in front of and behind what he is, and keeps it there. |
BSS_DATA | ALIGNED (16) | The top of the jail's crate, drawn each tick where the crate stands (scAlhafranCaveDrawCrateSprite). |
const SCENE_ENTRANCE * | scGetEntrances (void) | Where the party can enter: the cave under the spring has its own entrances. |
const SCENE_REGION * | scGetExitRegions (void) | The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room. |
const Uint32 * | scGetExits (void) | The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN. |
const ACTOR_PLACE * | scGetActorPlacements (void) | The current scene's actors: the cave's or the jail's. |
void | scAlhafranCavePoundStake (Sint32 mode, Sint32 frame) | Felix casts Pound on the stake in the caves beyond the jail and drives it into the ground. |
void | scAlhafranCaveTalkToBriggs (Sint32 id) | Felix talks to Briggs in his cell, who asks whether he has stopped by for a visit, and answers yes or no. |
void | scAlhafranCaveFreezePuddle (void) | Felix casts Frost on the puddle below the three chests in the cave, and it freezes into a pillar of ice that lifts the way up to them. |
const CUE * | scGetCues (void) | The current scene's cues: the cave's or the jail's. |
void | scAlhafranCaveCheckUpperLevel (void) | Nothing visible: each tick the game notes whether Felix stands on the cave's upper level, for wading. |
Sint32 | scAlhafranCaveDrawCrateSprite (void) | The jail's event: draws the crate's top where the crate stands. |
Sint32 | scInit (void) | Sets up the cave or the jail. |
Sint32 | scPrepareMap (void) | Once the mast is cleared and the jail stands empty, the passage where the tunnel from under the crate comes out (ENTRANCE_TUNNEL_END) is drawn into the rope's cave. |
void | scAlhafranCaveIdleEvent (void) | An empty event, added as Eoleo starts crying and never removed; it does nothing. |
void | scAlhafranCaveChauchaAndEoleoVisit (void) | Felix walks west into the jail after Briggs is caught (metatiles (49, 16) to (49, 19)): the guard asks if he is here to see Briggs, and Briggs's wife Chaucha and their son Eoleo visit him. |
Variables
| Name | Description | |
|---|---|---|
extern Sint32 | AlhafranCaveGuardStepsAsideScript [] | |
extern Uint32 | AlhafranCaveVisitorsLeaveScript [] | |
extern Sint16 | AlhafranCavePuddles [] | The puddle Frost freezes into a pillar, and the flag set while it stands. |
extern Uint16 | AlhafranCavePoundStakes [] | The jail's stake that Pound sinks: its actor, its kind and the flag set once it is sunk. |
extern Uint8 | MsgYouHereTo [] | |
EFFECT_SPR | AlhafranCaveCrateSprite | The top of the jail's crate, drawn each tick where the crate stands (scAlhafranCaveDrawCrateSprite). |
Sint32 | AlhafranCaveIdleEventTick | The tick count of scAlhafranCaveIdleEvent, cleared as the event is added, as other scenes clear the count their script's event keeps; the event is empty, so nothing counts it or reads it. |
extern ACTOR_PLACE | AlhafranCaveCaveActorPlacements [] | |
extern ACTOR_PLACE | AlhafranCaveJailActorPlacements [] | |
extern CUE | AlhafranCaveCaveCues [] | |
extern CUE | AlhafranCaveJailCues [] | |
Uint32 | SceneExits [] | The room has no exits of its own. |
Description
The Alhafran Cave under the town, in two scenes that share this overlay: the
cave behind the rear entrance by the mayor's home, which the hungry boy's
father lets the party into once they give the boy Large Bread
(SceneIdAlhafranCave), and the town's jail with the caves beyond it
(SceneIdAlhafraJail).
After Briggs and his crew are jailed, his wife Chaucha and their son Eoleo
visit him as Felix walks into the jail, and the boy lifts the cell's key with
Psynergy of his own until his father stops him
(scAlhafranCaveChauchaAndEoleoVisit). In the caves, Pound and Lash reach
three chests; once Briggs has escaped, a pillar no longer blocks the way, and
Frost on a puddle makes a pillar of ice up to three more
(scAlhafranCaveFreezePuddle).
Macros in detail
OWN_fdActorTakeLeaderLayer
#define OWN_fdActorTakeLeaderLayer
This unit declares its own form of fdActorTakeLeaderLayer, below.
Definition at line 16 of file alhafran_cave.c.
OWN_fdActorCycleSpriteColors
#define OWN_fdActorCycleSpriteColors
This unit declares its own form of fdActorCycleSpriteColors, below.
Definition at line 18 of file alhafran_cave.c.
FLAG_BRIDGE_METATILES_RAISED
#define FLAG_BRIDGE_METATILES_RAISED FLAG_SCENE_TEMP(0x04)
Set while the ground under the cave's bridges stands at their height, so that the leader walks over them rather than under.
Referenced by scAlhafranCaveLowerBridgeMetatiles(), scAlhafranCaveRaiseBridgeMetatiles() and scAlhafranCaveSetUpCave().
Definition at line 57 of file alhafran_cave.c.
FLAG_JAIL_ROPE_TIED
#define FLAG_JAIL_ROPE_TIED FLAG_SCENE_TEMP(0x00)
Set once Lash has tied the jail's rope.
Referenced by AlhafranCaveJailCues and scAlhafranCaveSetUpJail().
Definition at line 59 of file alhafran_cave.c.
FLAG_JAIL_STAKE_POUNDED
#define FLAG_JAIL_STAKE_POUNDED FLAG_SCENE_TEMP(0x01)
Set once Pound has sunk the jail's stake.
Referenced by AlhafranCaveJailCues and AlhafranCavePoundStakes.
Definition at line 61 of file alhafran_cave.c.
FLAG_ALHAFRAN_CAVE_PUDDLE_FROZEN
#define FLAG_ALHAFRAN_CAVE_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x03)
Set once Frost has frozen the cave's puddle.
Referenced by AlhafranCaveCaveCues, AlhafranCaveJailCues and AlhafranCavePuddles.
Definition at line 63 of file alhafran_cave.c.
Enumerations in detail
ALHAFRAN_CAVE_ACTOR_ID
enum ALHAFRAN_CAVE_ACTOR_ID
The cave's actors (SceneIdAlhafranCave), numbering the rows of
AlhafranCaveCaveActorPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_CAVE_FIRST_BRIDGE | ACTOR_FIRST_PLACED | Three stone bridges, raised twelve pixels over the channel and the chasm. |
ACTOR_CAVE_SECOND_BRIDGE | ||
ACTOR_CAVE_THIRD_BRIDGE | ||
ACTOR_CAVE_BROKEN_BRIDGE_WEST_END | A broken bridge: its two ends on their legs (SPRITE_WOODEN_SIGN, in its animations 2 and 3) and its middle fallen below them, turned a sixteenth of a turn. | |
ACTOR_CAVE_BROKEN_BRIDGE_EAST_END | ||
ACTOR_CAVE_BROKEN_BRIDGE_MIDDLE | ||
ACTOR_CAVE_PILLAR_AT_LADDER | Two stone pillars, one in front of a ladder | |
ACTOR_CAVE_PILLAR_IN_PASSAGE | and one across a passage, that stand 16 pixels west once the mast is cleared and the jail is empty. | |
ACTOR_CAVE_PUDDLE | The puddle Frost freezes into a pillar of ice. |
Definition at line 75 of file alhafran_cave.c.
ALHAFRA_JAIL_ACTOR_ID
enum ALHAFRA_JAIL_ACTOR_ID
The jail's actors (SceneIdAlhafraJail), numbering the rows of
AlhafranCaveJailActorPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_CRATE | ACTOR_FIRST_PLACED | The crate Move pushes. |
ACTOR_JAIL_STAKE | The stake Pound sinks. | |
ACTOR_JAIL_ROPE_LOW_POST | The posts of the rope Lash ties, on the | |
ACTOR_JAIL_ROPE_HIGH_POST | floor and on the ledge. | |
ACTOR_JAIL_BROKEN_BRIDGE_WEST_END | A broken bridge's two ends and its fallen middle, as the cave's. | |
ACTOR_JAIL_BROKEN_BRIDGE_EAST_END | ||
ACTOR_JAIL_BROKEN_BRIDGE_MIDDLE | ||
ACTOR_JAIL_KEY | The key on the guard's table outside the cell, which Eoleo lifts with a Move hand of his own. | |
ACTOR_PIRATE_WHO_HATES_PRISON | Briggs and his crew in their cell, once Briggs is caught. "I hate prison. The food is terrible..." | |
ACTOR_PIRATE_ON_THE_BOAT | "It sounds like the mayor of Alhafra lost | |
ACTOR_BRIGGS | interest in fixing that boat." | |
ACTOR_PIRATE_BLAMING_THE_PARTY | "Everything would have been fine if it hadn't been for you meddling kids..." | |
ACTOR_PIRATE_GUARDING_EOLEOS_SECRET | "I saw you staring at Eoleo..." | |
ACTOR_EOLEO | ||
ACTOR_CHAUCHA | ||
ACTOR_BORED_GUARD | "Everything's so boring here... Why doesn't anybody do | |
ACTOR_GUARD | anything...?" |
Definition at line 98 of file alhafran_cave.c.
ALHAFRAN_CAVE_WAY
enum ALHAFRAN_CAVE_WAY
The cave's stairs between its two levels: down at metatile (30, 40) and up at metatile (9, 5). A way's exit and the entrance at its other end share its number.
| Enumerator | Value | Description |
|---|---|---|
EXIT_DOWN_THE_STAIRS | 2 | |
EXIT_UP_THE_STAIRS | 3 | |
ENTRANCE_UP_THE_STAIRS | 2 | |
ENTRANCE_DOWN_THE_STAIRS | 3 |
Definition at line 132 of file alhafran_cave.c.
ALHAFRA_JAIL_WAY
enum ALHAFRA_JAIL_WAY
The jail's tunnel behind the cell: down through the hole the crate hides (metatile (45, 10)) to the tunnel's far end (metatile (22, 15)), and back up through the hole.
| Enumerator | Value | Description |
|---|---|---|
EXIT_DOWN_UNDER_CRATE | 9 | |
EXIT_BACK_TO_CRATE | 10 | |
ENTRANCE_UNDER_CRATE | 9 | Climbing up through the hole, the crate pushed |
ENTRANCE_TUNNEL_END | 10 | aside. |
Definition at line 143 of file alhafran_cave.c.
anonymous enum
enum { METATILE_BEHAVIOR_LOWER_BRIDGES, METATILE_BEHAVIOR_RAISE_BRIDGES, METATILE_BEHAVIOR_INTO_THE_JAIL }
The metatile behaviours the step cues answer: in the cave, the ledge's metatiles that raise the ground under the bridges (metatile (18, 8)) and lower it again (metatiles (17, 7) and (15, 25)); in the jail, the way in from the town past the guard (metatiles (49, 16) to (49, 19)).
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_LOWER_BRIDGES | 20 | |
METATILE_BEHAVIOR_RAISE_BRIDGES | 21 | |
METATILE_BEHAVIOR_INTO_THE_JAIL | 20 |
Definition at line 156 of file alhafran_cave.c.
Functions in detail
scAlhafranCaveTakeLeadersLayer
void scAlhafranCaveTakeLeadersLayer(void)
An actor's update: it takes the party leader's display layer.
References fdActorTakeLeaderLayer().
Referenced by scAlhafranCaveSetUpJail().
Definition at lines 34 and 932 of file alhafran_cave.c.
scAlhafranCaveRaiseBridgeMetatiles
void scAlhafranCaveRaiseBridgeMetatiles(void)
Nothing visible happens as Felix walks east onto metatile (18, 8), on the
ledge 32 pixels up along the cave's north wall; the game raises the ground
under the southern stone bridge (metatiles (25, 19) to (27, 19)) and under
the broken bridge's two ends (metatiles (18, 24) and (21, 24)) to the height
of the ledges they join, so that from the ledges he walks over the bridges
rather than under them. Walking back west along the ledge onto metatile (17,
7), the metatile north-west of it, lowers them again
(scAlhafranCaveLowerBridgeMetatiles).
The ground goes up four steps, and the metatile north-west of the southern bridge becomes a wall so that he cannot step off its end.
References fdMapGridSetMetatileHeight(), fdScriptSetFlag(), scFieldMapGridSetMetatileBehavior() and scFieldMapGridSetMetatileHeight().
Referenced by AlhafranCaveCaveCues and scAlhafranCaveSetUpCave().
Definition at lines 37 and 255 of file alhafran_cave.c.
scAlhafranCaveLowerBridgeMetatiles
void scAlhafranCaveLowerBridgeMetatiles(void)
Nothing visible happens as Felix walks past metatile (17, 7) or (15, 25); the game lowers the ground under the bridges to the cave's floor again, so that down there he walks under them.
References fdMapGridSetMetatileHeight(), fdScriptClearFlag(), scFieldMapGridSetMetatileBehavior() and scFieldMapGridSetMetatileHeight().
Referenced by AlhafranCaveCaveCues.
Definition at lines 38 and 270 of file alhafran_cave.c.
scAlhafranCaveCastSand
void scAlhafranCaveCastSand(void)
Felix casts Sand in the cave: the world turns grey and he sinks into the floor as a mound of sand. The game draws the mound's sand trail at priority 2 here rather than the usual 3.
Referenced by AlhafranCaveCaveCues.
Definition at lines 39 and 284 of file alhafran_cave.c.
scAlhafranCaveStartMovingCrate
void scAlhafranCaveStartMovingCrate(void)
Nothing more than the move itself happens as Felix starts casting Move on the crate in the jail.
Referenced by AlhafranCaveJailCues.
Definition at lines 40 and 204 of file alhafran_cave.c.
scAlhafranCaveFinishMovingCrate
void scAlhafranCaveFinishMovingCrate(void)
Nothing more than the move itself happens once Move has set the jail's crate down.
Referenced by AlhafranCaveJailCues.
Definition at lines 41 and 210 of file alhafran_cave.c.
scAlhafranCaveCycleKeyColors
void scAlhafranCaveCycleKeyColors(void)
The key's update while Eoleo's Psynergy holds it: its colours cycle.
References fdActorCycleSpriteColors().
Referenced by scAlhafranCaveChauchaAndEoleoVisit().
Definition at lines 42 and 938 of file alhafran_cave.c.
scAlhafranCaveSetUpCave
void scAlhafranCaveSetUpCave(void)
Sets up the cave: its bridges, the broken bridge, the pillars, the puddle, and the metatiles under the bridges if the leader was on the ledges.
References AlhafranCavePuddles, fdActorGet(), fdActorSetAnimation(), fdActorSetMovementType(), fdActorSetSpriteColorMode(), fdFlagBlockPlaceAllMarkingEdges(), fdMapGridCopyMetatilesLayered(), fdMapGridSetMetatileHeight(), fdScriptGetFlag(), MainRoutineStateWork, scAlhafranCaveCheckUpperLevel(), scAlhafranCaveRaiseBridgeMetatiles(), scFieldActorSetSpritePriority(), scFieldActorSetSpriteRotationById() and sySetTickEvent().
Referenced by scInit().
Definition at lines 43 and 365 of file alhafran_cave.c.
scAlhafranCaveSetUpJail
void scAlhafranCaveSetUpJail(void)
Sets up the jail and the cave: who is held and who visits, by how far the story has gone (Briggs caught, his family's visit, the mast cleared), and the crate pushed aside as the party climbs up through the hole under it.
References AlhafranCaveCrateSprite, AlhafranCavePoundStakes, Call4(), fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdActorSetSpriteColorMode(), fdActorSetSpriteFlags(), fdEffectSpriteInitWithFadeOverlay(), fdEffectStartBlankOverlay(), fdFadeOverlayFillTiles(), fdRopeInit(), fdRopePlace(), fdScriptGetFlag(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scAlhafranCaveDrawCrateSprite(), scAlhafranCaveTakeLeadersLayer(), scFieldActorSetSpritePriority(), scFieldActorSetSpriteRotationById(), scFieldActorWaitForMoveById(), scFieldSetTickEvent(), scPillarPlace() and Sint32.
Referenced by scInit().
Definition at lines 44 and 449 of file alhafran_cave.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 163 of file alhafran_cave.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 168 of file alhafran_cave.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 173 of file alhafran_cave.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
The current scene's actors: the cave's or the jail's.
References AlhafranCaveCaveActorPlacements, AlhafranCaveJailActorPlacements, MainRoutineStateWork and Sint32.
Definition at line 184 of file alhafran_cave.c.
scAlhafranCavePoundStake
void scAlhafranCavePoundStake(Sint32 mode, Sint32 frame)
Felix casts Pound on the stake in the caves beyond the jail and drives it into the ground.
References AlhafranCavePoundStakes, fdPoundSinkTarget() and Sint32.
Referenced by AlhafranCaveJailCues.
Definition at line 197 of file alhafran_cave.c.
scAlhafranCaveTalkToBriggs
void scAlhafranCaveTalkToBriggs(Sint32 id)
Felix talks to Briggs in his cell, who asks whether he has stopped by for a visit, and answers yes or no.
References fdScriptOpenMessage(), fdScriptShowMessage(), scFieldPartyGetLeaderActor(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptSetMessageId(), scFieldScriptWait() and Sint32.
Referenced by AlhafranCaveJailCues.
Definition at line 216 of file alhafran_cave.c.
scAlhafranCaveFreezePuddle
void scAlhafranCaveFreezePuddle(void)
Felix casts Frost on the puddle below the three chests in the cave, and it freezes into a pillar of ice that lifts the way up to them.
References AlhafranCavePuddles and fdFlagBlockApplyFlags().
Referenced by AlhafranCaveCaveCues and AlhafranCaveJailCues.
Definition at line 239 of file alhafran_cave.c.
scGetCues
const CUE *scGetCues(void)
The current scene's cues: the cave's or the jail's.
References AlhafranCaveCaveCues, AlhafranCaveJailCues, MainRoutineStateWork and Sint32.
Definition at line 292 of file alhafran_cave.c.
scAlhafranCaveCheckUpperLevel
void scAlhafranCaveCheckUpperLevel(void)
Nothing visible: each tick the game notes whether Felix stands on the cave's upper level, for wading.
References fdActorGet() and MainRoutineStateWork.
Referenced by scAlhafranCaveSetUpCave().
Definition at line 305 of file alhafran_cave.c.
scAlhafranCaveDrawCrateSprite
Sint32 scAlhafranCaveDrawCrateSprite(void)
The jail's event: draws the crate's top where the crate stands.
References AlhafranCaveCrateSprite, fdActorGet(), fdEffectSpriteDrawAtWorldXYZ() and Sint32.
Referenced by scAlhafranCaveSetUpJail().
Definition at line 316 of file alhafran_cave.c.
scInit
Sint32 scInit(void)
Sets up the cave or the jail.
References MainRoutineStateWork, scAlhafranCaveSetUpCave(), scAlhafranCaveSetUpJail() and Sint32.
Definition at line 328 of file alhafran_cave.c.
scPrepareMap
Sint32 scPrepareMap(void)
Once the mast is cleared and the jail stands empty, the passage where the
tunnel from under the crate comes out (ENTRANCE_TUNNEL_END) is drawn into the
rope's cave.
References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered(), fdScriptGetFlag(), MainRoutineStateWork and Sint32.
Definition at line 562 of file alhafran_cave.c.
scAlhafranCaveIdleEvent
void scAlhafranCaveIdleEvent(void)
An empty event, added as Eoleo starts crying and never removed; it does nothing.
Referenced by scAlhafranCaveChauchaAndEoleoVisit().
Definition at line 576 of file alhafran_cave.c.
scAlhafranCaveChauchaAndEoleoVisit
void scAlhafranCaveChauchaAndEoleoVisit(void)
Felix walks west into the jail after Briggs is caught (metatiles (49, 16) to (49, 19)): the guard asks if he is here to see Briggs, and Briggs's wife Chaucha and their son Eoleo visit him. Eoleo lifts the cell's key off the guard's table with Psynergy of his own until Briggs cries out his name, then bursts into tears, and Chaucha takes him home. It happens once, and not after the mast is cleared.
References AlhafranCaveGuardStepsAsideScript, AlhafranCaveIdleEventTick, AlhafranCaveVisitorsLeaveScript, fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSelectAnimation(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetMovementType(), fdActorSetScript(), fdActorSetSpriteColorMode(), fdActorShowEmote(), fdActorWalkBy(), fdActorWalkByAndWait(), fdActorWalkToAndWait(), fdBattleEffectEndArcEffect(), fdBattleEffectSetObjectUpdateMode(), fdBattleEffectStartArcEffect(), fdBattleEffectWaitForArcGroups(), fdCameraWaitForArrival(), fdEffectBurstHand(), fdEffectGrowHandAndWait(), fdEffectSpawnMoveHand(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), fdScriptStartColorTransition(), fdStartColorTransition(), fdStartPaletteTransition(), MainRoutineStateWork, MsgYouHereTo, scAlhafranCaveCycleKeyColors(), scAlhafranCaveIdleEvent(), scFieldActorJump(), scFieldActorSetMoveTargetFX(), scFieldActorSetSpritePriority(), scFieldActorStartRepeatedMotion(), scFieldActorStop(), scFieldActorWaitForScriptEndById(), scFieldActorWatchAndSetScript(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scScriptCameraFollowActor(), Sint32, syGameFlagGet() and 1 more.
Referenced by AlhafranCaveJailCues.
Definition at line 586 of file alhafran_cave.c.
Variables in detail
AlhafranCaveGuardStepsAsideScript
extern Sint32 AlhafranCaveGuardStepsAsideScript[]
Sint32 AlhafranCaveGuardStepsAsideScript[]
References Sint32.
Referenced by scAlhafranCaveChauchaAndEoleoVisit().
Definition at lines 35 and 953 of file alhafran_cave.c.
AlhafranCaveVisitorsLeaveScript
extern Uint32 AlhafranCaveVisitorsLeaveScript[]
Uint32 AlhafranCaveVisitorsLeaveScript[]
Referenced by scAlhafranCaveChauchaAndEoleoVisit().
Definition at lines 36 and 967 of file alhafran_cave.c.
AlhafranCavePuddles
extern Sint16 AlhafranCavePuddles[]
Sint16 AlhafranCavePuddles[]
The puddle Frost freezes into a pillar, and the flag set while it stands.
Referenced by scAlhafranCaveFreezePuddle() and scAlhafranCaveSetUpCave().
Definition at lines 45 and 949 of file alhafran_cave.c.
AlhafranCavePoundStakes
extern Uint16 AlhafranCavePoundStakes[]
Uint16 AlhafranCavePoundStakes[]
The jail's stake that Pound sinks: its actor, its kind and the flag set once it is sunk.
Referenced by scAlhafranCavePoundStake() and scAlhafranCaveSetUpJail().
Definition at lines 46 and 983 of file alhafran_cave.c.
MsgYouHereTo
extern Uint8 MsgYouHereTo[]
Referenced by scAlhafranCaveChauchaAndEoleoVisit().
Definition at line 47 of file alhafran_cave.c.
AlhafranCaveCrateSprite
EFFECT_SPR AlhafranCaveCrateSprite
The top of the jail's crate, drawn each tick where the crate stands
(scAlhafranCaveDrawCrateSprite).
Referenced by scAlhafranCaveDrawCrateSprite() and scAlhafranCaveSetUpJail().
Definition at line 67 of file alhafran_cave.c.
AlhafranCaveIdleEventTick
Sint32 AlhafranCaveIdleEventTick
The tick count of scAlhafranCaveIdleEvent, cleared as the event is added, as
other scenes clear the count their script's event keeps; the event is empty,
so nothing counts it or reads it.
References Sint32.
Referenced by scAlhafranCaveChauchaAndEoleoVisit().
Definition at line 71 of file alhafran_cave.c.
AlhafranCaveCaveActorPlacements
extern ACTOR_PLACE AlhafranCaveCaveActorPlacements[]
ACTOR_PLACE AlhafranCaveCaveActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 178 and 1020 of file alhafran_cave.c.
AlhafranCaveJailActorPlacements
extern ACTOR_PLACE AlhafranCaveJailActorPlacements[]
ACTOR_PLACE AlhafranCaveJailActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 179 and 1042 of file alhafran_cave.c.
AlhafranCaveCaveCues
extern CUE AlhafranCaveCaveCues[]
CUE AlhafranCaveCaveCues[]
References scAlhafranCaveCastSand(), scAlhafranCaveFreezePuddle(), scAlhafranCaveLowerBridgeMetatiles() and scAlhafranCaveRaiseBridgeMetatiles().
Referenced by scGetCues().
Definition at lines 180 and 1081 of file alhafran_cave.c.
AlhafranCaveJailCues
extern CUE AlhafranCaveJailCues[]
CUE AlhafranCaveJailCues[]
References scAlhafranCaveChauchaAndEoleoVisit(), scAlhafranCaveFinishMovingCrate(), scAlhafranCaveFreezePuddle(), scAlhafranCavePoundStake(), scAlhafranCaveStartMovingCrate() and scAlhafranCaveTalkToBriggs().
Referenced by scGetCues().
Definition at lines 181 and 1098 of file alhafran_cave.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 989 of file alhafran_cave.c.