Skip to Content
The Alchemy Project

src/scene/venus_lighthouse_aerie.c

Lighthouse Aerie (SceneIdVenusLighthouseAerie), the top of Venus Lighthouse and the only scene of this overlay. More…

Macros

NameDescription
#defineFLAG_SHAMANS_ROD_CARRIED_BY FLAG_AREA_TEMP(0x45)An area flag, plus the party member (0 to 3) who carried the Shaman's Rod when it was handed over before the aerie's first battle.
#defineFLAG_VENUS_AERIE_FUSION_SLIDING FLAG_SCENE_TEMP(0x34)Saturos and Menardi slide together as they fuse.
#defineFLAG_VENUS_AERIE_FUSION_GROWING FLAG_SCENE_TEMP(0x35)Saturos and Menardi grow as they fuse.
#defineFLAG_VENUS_AERIE_BEACON_ERUPTED FLAG_SCENE_TEMP(0x36)The beacon has erupted, and its particles rise higher.
#defineFLAG_VENUS_AERIE_PARTY_LIFTED FLAG_SCENE_TEMP(0x37)The beacon's light has lifted the party and flashed white.
#defineFLAG_VENUS_AERIE_ON_PLATFORM FLAG_SCENE_TEMP(0x50)The leader stands on one of the floating platforms.
#definePSYNERGY_RINGS_SOUND SE_PSYNERGY_SPARKLEThe sound the rings of light play here (psynergy_rings.c).

Enumerations

NameDescription
enumanonymous enum { ACTOR_BEACON_STATUE_SOUTHWEST, ACTOR_BEACON_STATUE_NORTHWEST … }The aerie's actors, in the order of its actor placements (its entrances and exits are in scene_exits.h); Garet, Ivan, Mia and Sheba keep their character numbers.
enumanonymous enum { FLAG_AERIE_FIRST_BATTLE_BEGUN, FLAG_AERIE_SECOND_BATTLE_BEGU … }Area flags that choose the aerie's field music after each battle.
enumVENUS_LIGHTHOUSE_AERIE_METATILE_BEHAVIOR { METATILE_BEHAVIOR_VENUS_LIGHTHOUSE_AERIE_BEFORE_BEACON, META … }The metatile behaviors the aerie's step cues answer.
enumanonymous enum { MENARDI_ANIMATION_STAND_WINDSWEPT, MENARDI_ANIMATION_LIE, ME … }Animations the aerie plays by number beyond ACTOR_ANIMATION.
enumanonymous enum { PARTICLE_DRAG_X, PARTICLE_DRAG_Z }A drifting particle loses a PARTICLE_DRAG_X-th of its x speed and a PARTICLE_DRAG_Z-th of its z speed each tick.
enumanonymous enum { PSYNERGY_RINGS_INTERVAL }The ticks between the Psynergy rings round a flashing actor.
enumanonymous enum { BURST_DIRECTIONS }A burst of particles flies out in BURST_DIRECTIONS directions round a turn, the first one twice.
enumanonymous enum { RISE_QUARTER_PIXELS }An actor the light lifts rises this many quarter pixels, one a tick.

Functions

NameDescription
static voidscVenusLighthouseAerieFloatPlatforms (void)Stepping onto the floor at either end of a row of platforms (metatiles (12, 12) and (25, 12) beside the middle of the aerie, and (31, 10) on the tower in the north-east), and just before each jump, sets all six platforms bobbing in the air again, so the one Isaac stood on no longer holds still.
static voidscVenusLighthouseAerieOverhearSaturosAndMenardi (void)A floating platform carries Isaac up beside the tower in the north-east of the aerie onto its top, and the party looks across to the beacon, where Saturos and Menardi argue with Felix over Sheba and the lighthouses still to light.
static voidscVenusLighthouseAerieShowPartyMember (Sint32 actorId, Sint32 shown)Shows or hides one companion, setting its movement speed when shown.
static voidscVenusLighthouseAerieFlashActorPalette (ACTOR *actor)Flashes the actor white two ticks in four, with Psynergy rings every PSYNERGY_RINGS_INTERVAL ticks.
static voidscSpawnPsynergyRings (ACTOR *parent)Sets off a golden ring around the actor, its two halves (field_effect_vertical.c) drawn from the Psynergy's cached tiles, with the sound the includer names as PSYNERGY_RINGS_SOUND.
static voidscVenusLighthouseAerieUpdateShebaPalette (void)Sheba glows through changing colours, with rings of Psynergy, each tick while she reads the party's minds.
static voidscVenusLighthouseAerieCombineSaturosAndMenardi (void)After the first battle, Saturos and Menardi rise again.
static voidscVenusLighthouseAerieFlashScreen (void)The aerie flashes white and goes back to the dark red it turns while a thin beam of light rises from the beacon and Saturos and Menardi glow with its power.
static voidscVenusLighthouseAerieSpawnUpperOrbitParticles (void)Sparkles rise around the beam of light over the beacon, more of them and higher once it has erupted.
static voidscVenusLighthouseAerieUpdateFusion (void)Each tick of the fusion: Saturos and Menardi, facing east, flicker in turn, one shown while the other is hidden, so that they seem to merge.
static voidscVenusLighthouseAerieFinishSaturosAndMenardiBattle (void)Plays Saturos and Menardi's defeat, the party's discussion and the beacon's eruption.
static voidscVenusLighthouseAerieShowShebaInDanger (void)A look back from the World Map shows Sheba in danger (VENUS_LIGHTHOUSE_AERIE_AFTER_BEACON_LIT, after the World Map's lighthouse transition).
static voidscVenusLighthouseAerieStageShebasFall (void)Back from the World Map, stages the broken aerie for Sheba's fall and the party's escape (VENUS_LIGHTHOUSE_AERIE_FROM_WORLD_MAP).
static voidscVenusLighthouseAerieShowSaturosAndMenardiFall (void)Shows Saturos and Menardi falling into the beacon after their final defeat.
static voidscVenusLighthouseAerieDiscussSaturosAndMenardiDefeat (void)The party wonders whether they have really won, and Felix, still on the aerie with Sheba, tells them it is not over and that he will light the other beacons.
static voidscVenusLighthouseAerieEruptBeacon (void)The beacon erupts.
static voidscVenusLighthouseAerieRestorePartyOnBrokenAerie (void)After the World Map's lighthouse transition: the screen clears from white on the broken aerie, the party knocked down on its east half and the orb of light glowing over the beacon again.
static voidscVenusLighthouseAerieTryToPreventFall (void)Shows Felix urging Sheba, hanging from the broken aerie's edge, to hold on.
static voidscVenusLighthouseAeriePlayShebasFall (void)Shows Sheba falling, Felix jumping after her and the party escaping.
static voidscVenusLighthouseAerieStopActorMotion (ACTOR *actor)Stops an actor where it stands, with no move under way.
static voidscVenusLighthouseAerieUpdateBeaconRise (void)Each tick as the beacon's light lifts the party away: a flash and a shake, then from tick 24 the orb rises from below the aerie, held at tick 25 until it is above the floor and at 26 until it is 40 pixels up, with particles circling it to tick 34; the screen fades to white at 36, and at 48 the party is lifted (FLAG_VENUS_AERIE_PARTY_LIFTED).
static voidscVenusLighthouseAerieAdvanceActorRise (ACTOR *actor)Lifts one of the party, Felix or Sheba off the aerie as the beacon's light takes them, a quarter pixel a tick up to 8 pixels.
static voidscVenusLighthouseAerieSpawnSideOrbitParticles (void)Each tick on the broken aerie, the orb of light glows over the beacon, pulsing between its own size and 13/10 of it.
static voidscVenusLighthouseAerieUpdateOrbitingEffect (ACTOR *actor)Moves a sparkle round the orb of light on its ellipse.
static Sint32scVenusLighthouseAeriePulseActorScale (ACTOR *actor)The heavy breathing of someone worn out: Saturos and Menardi lying hurt after the first battle, and Isaac as he gets up after Sheba's fall.
static voidscVenusLighthouseAerieUpdateDriftingParticle (ACTOR *actor)A particle of the bursts that fly out of Saturos and Menardi as they draw on the beacon: it slows as it drifts, turning and shrinking.
static voidscVenusLighthouseAerieStepSpriteRotation (ACTOR *actor)Felix's sprite turns as he dives off the broken aerie after Sheba, 5/128 of a turn a tick, until he has turned over: from upright, 13 ticks and about half a turn.
const SCENE_ENTRANCE *scGetEntrances (void)The six rooms share one entrance table.
const SCENE_EXIT_REGION *scGetExitRegions (void)The scene has no exit regions: its regions entry returns none.
const Uint32 *scGetExits (void)Both scenes share one exit table.
const ACTOR_PLACE *scGetActorPlacements (void)Returns the beacon's statues, the platforms, Saturos and Menardi, Felix and Sheba, the party and the beacon effects.
static voidscVenusLighthouseAerieJumpToNextPlatform (void)Walking off the edge of the floor or of a platform toward the next one, Isaac springs and leaps two metatiles across onto it, if there is somewhere to land.
static voidscVenusLighthouseAerieLandOnPlatform (void)As Isaac lands on a platform, it stops bobbing, dips under him and springs back up.
const CUE *scGetCues (void)The aerie's scripts: the platforms, and the beacon where Saturos and Menardi wait.
Sint32scInit (void)Sets up the beacon's statues and the six platforms.
static voidscVenusLighthouseAerieShowMessage (Sint32 speaker)Shows the script's next line, then waits ten ticks.
static voidscVenusLighthouseAerieFaceActor (Sint32 actorId, Sint32 facing)Turns one actor and waits ten ticks.
static voidscVenusLighthouseAerieConfrontSaturosAndMenardi (void)Isaac walks up to the beacon in the middle of the aerie (metatiles (20, 14) and (21, 14)) and the party confronts Saturos and Menardi.
static voidscVenusLighthouseAerieCycleActorPalette (ACTOR *actor)Cycles the actor through palettes 0 to 5, with Psynergy rings every PSYNERGY_RINGS_INTERVAL ticks.
static inline voidscVenusLighthouseAerieAimBurst (Sint32 velocity[3], Sint32 angle)Aims one particle of a burst along angle, its speed across three times and its speed in depth twice the unit circle's, so that the burst spreads in a flat ellipse over the floor.
static inline voidscVenusLighthouseAerieShowGroupEmote (Sint32 emote, Sint32 waitTicks)Gives Felix, Sheba and the party the same reaction, then waits after Mia.
static voidscVenusLighthouseAerieUpdateUpperOrbit (ACTOR *effect)A sparkle circling the beam of light over the beacon, a thirty-second of a turn a tick, in a flat ellipse.
static voidscVenusLighthouseAerieUpdateRisingOrbit (ACTOR *actor)A sparkle circling the orb of light as it rises out of the beacon, in an ellipse that widens as the orb climbs.
static inline Sint32scVenusLighthouseAerieHasArrived (ACTOR *actor)Whether an actor has no move target left: it has reached where it was sent, or was never sent anywhere.

Variables

NameDescription
extern Sint32VenusLighthouseAerieJoinLeaderScript []Garet, Ivan and Mia walk up to Isaac on the tower once the party has agreed to stop Saturos and Menardi, and step out of sight into him.
extern Sint32VenusLighthouseAerieStepBackWestScript []Everyone steps half a metatile apart as the first battle begins: the party, Felix and Sheba west, Saturos and Menardi east.
extern Sint32VenusLighthouseAerieStepBackEastScript []
extern Sint32VenusLighthouseAerieBreatheHeavilyScript []Breathes heavily for as long as it runs (scVenusLighthouseAeriePulseActorScale).
extern Sint32VenusLighthouseAerieBeamOpenScript []Widens a beam segment from a sliver.
extern Sint32VenusLighthouseAerieBeamNarrowScript []Narrows a beam segment again as Saturos and Menardi take its power.
extern Sint32VenusLighthouseAerieBeamRiseScript []Narrows each segment of the erupting beam, for longer than VenusLighthouseAerieBeamNarrowScript.
extern Sint32VenusLighthouseAerieBeamCloseScript []Lifts a beam segment four pixels a tick, then takes it off the stage.
extern Sint32VenusLighthouseAerieBeamEndScript []Lifts the beam's flattened bottom two pixels a tick, then takes it off the stage.
extern Sint32VenusLighthouseAerieOrbitParticleScript []A sparkle round the beam over the beacon rises 16 pixels and is gone.
extern Sint32VenusLighthouseAerieRiseParticleScript []A sparkle round the rising orb sinks 16 pixels and is gone.
extern Sint32VenusLighthouseAerieWalkOutScript []Felix, then Sheba, walk off down the aerie's stairs after the first battle.
extern Sint32VenusLighthouseAerieOrbPulseScript []The orb rising out of the beacon narrows and widens again, four ticks each way, as long as it shows.
extern Sint32VenusLighthouseAerieShebaFallScript []Sheba drops from the broken aerie, 90 pixels over two seconds, and is gone.
extern Sint32VenusLighthouseAerieFelixDiveScript []Felix dives after her, much faster, and is gone.
extern Sint32VenusLighthouseAeriePartyExitScript []Garet, Ivan and Mia walk off ahead of Isaac as the party leaves to find Jenna.
extern Sint32VenusLighthouseAerieLookAboutScript []The party looks about them at random.
extern SCENE_ENTRANCEVenusLighthouseAerieEntrances []
extern Uint32VenusLighthouseAerieExits []
extern ACTOR_PLACEVenusLighthouseAerieActorPlacements []
extern Sint32VenusLighthouseAerieLandedPlatformThe floating platform the leader has landed on, 0 when none.
extern CUEVenusLighthouseAerieCues []
extern Sint32BeaconSparkScript []A spark is drawn at seven fifths of its size for half a second, then gone.
static Sint32BeaconRiseTimerSet to 240 as the light starts lifting the party, and never read.
static Sint32BeaconRiseStepThe ticks scVenusLighthouseAerieUpdateBeaconRise has run, held while the orb rises.
const Sint32 *FieldEffectDurationScripts []The resident copy of the scripts EFFECT_SCRIPT_MASK picks, by enum EFFECT_DURATION.

Description

Lighthouse Aerie (SceneIdVenusLighthouseAerie), the top of Venus Lighthouse and the only scene of this overlay.

What happens here is one chain of scripts cut by two battles and two trips to the World Map. Each part starts in scInit from the entrance the part before sent the party to. Every arrival blocks Retreat and sets FLAG_IN_VENUS_LIGHTHOUSE.

The parts, in the order the entrances chain them:

A lost battle returns to VENUS_LIGHTHOUSE_AERIE_AFTER_DEFEAT, which gives the Shaman's Rod back to whoever carried it and leaves for Lalivero Sanctum (VENUS_LIGHTHOUSE_AERIE_TO_TIMBER_ROOMS_B).

Macros in detail

FLAG_SHAMANS_ROD_CARRIED_BY

#define FLAG_SHAMANS_ROD_CARRIED_BY FLAG_AREA_TEMP(0x45)

An area flag, plus the party member (0 to 3) who carried the Shaman's Rod when it was handed over before the aerie's first battle. A defeat gives it back.

Referenced by scInit() and scVenusLighthouseAerieConfrontSaturosAndMenardi().

Definition at line 132 of file venus_lighthouse_aerie.c.

FLAG_VENUS_AERIE_FUSION_SLIDING

#define FLAG_VENUS_AERIE_FUSION_SLIDING FLAG_SCENE_TEMP(0x34)

Saturos and Menardi slide together as they fuse.

Referenced by scVenusLighthouseAerieCombineSaturosAndMenardi() and scVenusLighthouseAerieUpdateFusion().

Definition at line 319 of file venus_lighthouse_aerie.c.

FLAG_VENUS_AERIE_FUSION_GROWING

#define FLAG_VENUS_AERIE_FUSION_GROWING FLAG_SCENE_TEMP(0x35)

Saturos and Menardi grow as they fuse.

Referenced by scVenusLighthouseAerieCombineSaturosAndMenardi() and scVenusLighthouseAerieUpdateFusion().

Definition at line 321 of file venus_lighthouse_aerie.c.

FLAG_VENUS_AERIE_BEACON_ERUPTED

#define FLAG_VENUS_AERIE_BEACON_ERUPTED FLAG_SCENE_TEMP(0x36)

The beacon has erupted, and its particles rise higher.

Referenced by scVenusLighthouseAerieEruptBeacon() and scVenusLighthouseAerieSpawnUpperOrbitParticles().

Definition at line 323 of file venus_lighthouse_aerie.c.

FLAG_VENUS_AERIE_PARTY_LIFTED

#define FLAG_VENUS_AERIE_PARTY_LIFTED FLAG_SCENE_TEMP(0x37)

The beacon's light has lifted the party and flashed white.

Referenced by scVenusLighthouseAerieEruptBeacon() and scVenusLighthouseAerieUpdateBeaconRise().

Definition at line 325 of file venus_lighthouse_aerie.c.

FLAG_VENUS_AERIE_ON_PLATFORM

#define FLAG_VENUS_AERIE_ON_PLATFORM FLAG_SCENE_TEMP(0x50)

The leader stands on one of the floating platforms.

Referenced by scVenusLighthouseAerieJumpToNextPlatform(), scVenusLighthouseAerieLandOnPlatform() and VenusLighthouseAerieCues.

Definition at line 327 of file venus_lighthouse_aerie.c.

PSYNERGY_RINGS_SOUND

#define PSYNERGY_RINGS_SOUND SE_PSYNERGY_SPARKLE

The sound the rings of light play here (psynergy_rings.c).

Referenced by scSpawnPsynergyRings().

Definition at line 1434 of file venus_lighthouse_aerie.c.

Enumerations in detail

anonymous enum

enum { ACTOR_BEACON_STATUE_SOUTHWEST, ACTOR_BEACON_STATUE_NORTHWEST, ACTOR_BEACON_STATUE_NORTHEAST, ACTOR_BEACON_STATUE_SOUTHEAST, … }

The aerie's actors, in the order of its actor placements (its entrances and exits are in scene_exits.h); Garet, Ivan, Mia and Sheba keep their character numbers.

EnumeratorValueDescription
ACTOR_BEACON_STATUE_SOUTHWESTACTOR_FIRST_PLACEDThe four statues around the beacon (SPRITE_STATUE_WITH_WREATH), the east two drawn mirrored. When the beacon erupts and splits the aerie, the west two move west with their half and the east two east.
ACTOR_BEACON_STATUE_NORTHWEST
ACTOR_BEACON_STATUE_NORTHEAST
ACTOR_BEACON_STATUE_SOUTHEAST
ACTOR_FIRST_PLATFORMSix round platforms (SPRITE_FLOATING_PLATFORM) the leader jumps across, each dipping under him as he lands, and the one that carries him up to the aerie.
ACTOR_LAST_PLATFORMACTOR_FIRST_PLATFORM + 5
ACTOR_RISING_PLATFORM
ACTOR_MENARDI
ACTOR_SATUROS
ACTOR_FELIX
ACTOR_VENUS_STAR_SHADOWA blank actor (SPRITE_BLANK) that runs across the floor under the Venus Star as Saturos throws it into the beacon, so that only its shadow shows, the star's shadow.
ACTOR_BEACON_ORBThe orb the rising particles circle as the party is lifted away: SPRITE_BLUE_ORB drawn in SPRITE_COLOR_GBR, which turns its blue to green, and later solid white (SPRITE_COLOR_WHITE). The beacon's beam, in five segments
ACTOR_BEAM_BOTTOM(SPRITE_PIPE_NORTH_SOUTH) from the bottom up; particles circle the lowest.
ACTOR_BEAM_LOWER
ACTOR_BEAM_MIDDLE
ACTOR_BEAM_UPPER
ACTOR_BEAM_TOP

Definition at line 93 of file venus_lighthouse_aerie.c.

anonymous enum

enum { FLAG_AERIE_FIRST_BATTLE_BEGUN, FLAG_AERIE_SECOND_BATTLE_BEGUN }

Area flags that choose the aerie's field music after each battle.

They work by the scene's field music rules (SceneMusicRules, field/music_rules.s). The music is MUS_SILENCE before the first battle, MUS_BABIS_THEME once the first has begun and MUS_ELEMENTAL_STARS once the second has.

VenusLighthouseFirstFloor and VenusLighthouseFourthFloor, in the same area, keep their Psynergy Stones in the same two flags, which no one goes back down to see.

EnumeratorValueDescription
FLAG_AERIE_FIRST_BATTLE_BEGUNFLAG_AREA_TEMP(0x50)
FLAG_AERIE_SECOND_BATTLE_BEGUNFLAG_AREA_TEMP(0x51)

Definition at line 144 of file venus_lighthouse_aerie.c.

VENUS_LIGHTHOUSE_AERIE_METATILE_BEHAVIOR

enum VENUS_LIGHTHOUSE_AERIE_METATILE_BEHAVIOR

The metatile behaviors the aerie's step cues answer.

EnumeratorValueDescription
METATILE_BEHAVIOR_VENUS_LIGHTHOUSE_AERIE_BEFORE_BEACON5before the beacon,
METATILE_BEHAVIOR_VENUS_LIGHTHOUSE_AERIE_PLATFORM10where Isaac confronts Saturos and Menardi a floating platform's metatiles
METATILE_BEHAVIOR_VENUS_LIGHTHOUSE_AERIE_FLOOR_BY_PLATFORMS11The floor beside the platforms, from which the leader jumps onto them.

Definition at line 176 of file venus_lighthouse_aerie.c.

anonymous enum

enum { MENARDI_ANIMATION_STAND_WINDSWEPT, MENARDI_ANIMATION_LIE, MENARDI_ANIMATION_TIP, MENARDI_ANIMATION_SLUMP, … }

Animations the aerie plays by number beyond ACTOR_ANIMATION.

They come from each sprite's animation table (graphics/sprite/<name>.tsv). The party's are reached through their animation lists.

EnumeratorValueDescription
MENARDI_ANIMATION_STAND_WINDSWEPT5Menardi standing, her hair blown back (menardi.tsv).
MENARDI_ANIMATION_LIE7Lying on her side.
MENARDI_ANIMATION_TIP8Menardi falling into the lighthouse, as SATUROS_ANIMATION_TIP to _SINK.
MENARDI_ANIMATION_SLUMP9
MENARDI_ANIMATION_SINK10
ANIM_PARTY_KNOCKED_DOWN18Garet on his knees, Ivan and Mia lying down, as the party lies on the broken aerie (garet.tsv to mia.tsv).
ANIM_LEADER_KNOCKED_DOWN19Isaac lying on his back (isaac.tsv).

Definition at line 193 of file venus_lighthouse_aerie.c.

anonymous enum

enum { PARTICLE_DRAG_X, PARTICLE_DRAG_Z }

A drifting particle loses a PARTICLE_DRAG_X-th of its x speed and a PARTICLE_DRAG_Z-th of its z speed each tick.

EnumeratorValueDescription
PARTICLE_DRAG_X22
PARTICLE_DRAG_Z20

Definition at line 249 of file venus_lighthouse_aerie.c.

anonymous enum

enum { PSYNERGY_RINGS_INTERVAL }

The ticks between the Psynergy rings round a flashing actor.

EnumeratorValueDescription
PSYNERGY_RINGS_INTERVAL15

Definition at line 1396 of file venus_lighthouse_aerie.c.

anonymous enum

enum { BURST_DIRECTIONS }

A burst of particles flies out in BURST_DIRECTIONS directions round a turn, the first one twice.

EnumeratorValueDescription
BURST_DIRECTIONS16

Definition at line 1448 of file venus_lighthouse_aerie.c.

anonymous enum

enum { RISE_QUARTER_PIXELS }

An actor the light lifts rises this many quarter pixels, one a tick.

EnumeratorValueDescription
RISE_QUARTER_PIXELS32

Definition at line 3540 of file venus_lighthouse_aerie.c.

Functions in detail

scVenusLighthouseAerieFloatPlatforms

static void scVenusLighthouseAerieFloatPlatforms(void)

Stepping onto the floor at either end of a row of platforms (metatiles (12, 12) and (25, 12) beside the middle of the aerie, and (31, 10) on the tower in the north-east), and just before each jump, sets all six platforms bobbing in the air again, so the one Isaac stood on no longer holds still.

References fdActorGet().

Referenced by scVenusLighthouseAerieJumpToNextPlatform() and VenusLighthouseAerieCues.

Definition at lines 150 and 421 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieOverhearSaturosAndMenardi

static void scVenusLighthouseAerieOverhearSaturosAndMenardi(void)

A floating platform carries Isaac up beside the tower in the north-east of the aerie onto its top, and the party looks across to the beacon, where Saturos and Menardi argue with Felix over Sheba and the lighthouses still to light.

References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorMoveToAndWait(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetDestination(), fdActorSetScript(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForAnimationChange(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraGetActor(), fdCameraWaitForMove(), fdMapGridCenterOnFollowedPoint(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), scFieldScriptShowMessageThenWait(), scVenusLighthouseAerieFaceActor(), scVenusLighthouseAerieShowMessage(), scVenusLighthouseAerieShowPartyMember(), sySoundPlay(), sySynch() and VenusLighthouseAerieJoinLeaderScript.

Referenced by scInit().

Definition at lines 151 and 547 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieShowPartyMember

static void scVenusLighthouseAerieShowPartyMember(Sint32 actorId, Sint32 shown)

Shows or hides one companion, setting its movement speed when shown.

References fdActorGet(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags() and Sint32.

Referenced by scVenusLighthouseAerieOverhearSaturosAndMenardi().

Definition at lines 152 and 886 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieFlashActorPalette

static void scVenusLighthouseAerieFlashActorPalette(ACTOR *actor)

Flashes the actor white two ticks in four, with Psynergy rings every PSYNERGY_RINGS_INTERVAL ticks.

References fdActorSetColorMode(), scSpawnPsynergyRings(), syMathRemainderUnsigned() and TickCount.

Referenced by scVenusLighthouseAerieConfrontSaturosAndMenardi().

Definition at lines 153 and 1403 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieUpdateShebaPalette

static void scVenusLighthouseAerieUpdateShebaPalette(void)

Sheba glows through changing colours, with rings of Psynergy, each tick while she reads the party's minds.

References fdActorGet() and scVenusLighthouseAerieCycleActorPalette().

Referenced by scVenusLighthouseAerieConfrontSaturosAndMenardi().

Definition at lines 155 and 1441 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieCombineSaturosAndMenardi

static void scVenusLighthouseAerieCombineSaturosAndMenardi(void)

After the first battle, Saturos and Menardi rise again. Saturos throws the Venus Star into the beacon, Felix and Sheba leave, and the two fuse into the Fusion Dragon for the second battle (VENUS_LIGHTHOUSE_AERIE_AFTER_FIRST_BATTLE).

References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorMoveToAndWait(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetDestination(), fdActorSetScript(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorStop(), fdActorWaitForMove(), fdActorWalkToAndWait(), fdCameraGetActor(), fdMapGridCopyMetatileAttributes(), fdMapGridRedraw(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdRequestBattleFromEncounterTable(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptPlaySound(), fdScriptSetAfterBattleDestination(), fdScriptSetDefeatDestination(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagSet(), gmItemLoadIcon(), gmPartyRestorePpInLighthouse(), mnVRAMLoad(), scFieldActorCreate(), scVenusLighthouseAerieAimBurst(), scVenusLighthouseAerieFaceActor(), scVenusLighthouseAerieFlashScreen(), scVenusLighthouseAerieShowGroupEmote(), scVenusLighthouseAerieShowMessage(), scVenusLighthouseAerieSpawnUpperOrbitParticles(), scVenusLighthouseAerieStopActorMotion(), scVenusLighthouseAerieUpdateDriftingParticle(), scVenusLighthouseAerieUpdateFusion(), Sint32 and 9 more.

Referenced by scInit().

Definition at lines 156 and 1488 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieFlashScreen

static void scVenusLighthouseAerieFlashScreen(void)

The aerie flashes white and goes back to the dark red it turns while a thin beam of light rises from the beacon and Saturos and Menardi glow with its power.

References fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), sySoundPlay() and sySynch().

Referenced by scVenusLighthouseAerieCombineSaturosAndMenardi().

Definition at lines 157 and 2121 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieSpawnUpperOrbitParticles

static void scVenusLighthouseAerieSpawnUpperOrbitParticles(void)

Sparkles rise around the beam of light over the beacon, more of them and higher once it has erupted.

References fdActorGet(), fdActorSetSpriteColor(), fdActorStartScript(), fdScriptGetFlag(), gmFlagGet(), scFieldActorCreate(), scVenusLighthouseAerieUpdateUpperOrbit(), Sint32, syMathRemainderUnsigned(), syRandomNext(), sySin(), TickCount and VenusLighthouseAerieOrbitParticleScript.

Referenced by scVenusLighthouseAerieCombineSaturosAndMenardi(), scVenusLighthouseAerieEruptBeacon() and scVenusLighthouseAerieShowSaturosAndMenardiFall().

Definition at lines 158 and 2178 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieUpdateFusion

static void scVenusLighthouseAerieUpdateFusion(void)

Each tick of the fusion: Saturos and Menardi, facing east, flicker in turn, one shown while the other is hidden, so that they seem to merge. While FLAG_VENUS_AERIE_FUSION_GROWING is set both glow white and grow to a quarter larger, and while FLAG_VENUS_AERIE_FUSION_SLIDING is set they slide together toward the beacon.

References fdActorGet(), fdActorSetSpriteColorById(), gmFlagGet(), scVenusLighthouseAerieHasArrived(), Sint32 and TickCount.

Referenced by scVenusLighthouseAerieCombineSaturosAndMenardi().

Definition at lines 159 and 2244 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieFinishSaturosAndMenardiBattle

static void scVenusLighthouseAerieFinishSaturosAndMenardiBattle(void)

Plays Saturos and Menardi's defeat, the party's discussion and the beacon's eruption.

References fdScriptEnd(), fdScriptStart(), scVenusLighthouseAerieDiscussSaturosAndMenardiDefeat(), scVenusLighthouseAerieEruptBeacon() and scVenusLighthouseAerieShowSaturosAndMenardiFall().

Referenced by scInit().

Definition at lines 160 and 2308 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieShowShebaInDanger

static void scVenusLighthouseAerieShowShebaInDanger(void)

A look back from the World Map shows Sheba in danger (VENUS_LIGHTHOUSE_AERIE_AFTER_BEACON_LIT, after the World Map's lighthouse transition).

References fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWaitTransitionTicks(), gmFlagSet(), scVenusLighthouseAerieRestorePartyOnBrokenAerie(), scVenusLighthouseAerieTryToPreventFall() and syImportScriptSetExitRequest().

Referenced by scInit().

Definition at lines 161 and 2320 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieStageShebasFall

static void scVenusLighthouseAerieStageShebasFall(void)

Back from the World Map, stages the broken aerie for Sheba's fall and the party's escape (VENUS_LIGHTHOUSE_AERIE_FROM_WORLD_MAP).

References fdActorGet(), fdActorReleaseById(), fdActorSetAnimation(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdCameraGetActor(), fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagSet(), scVenusLighthouseAeriePlayShebasFall(), scVenusLighthouseAerieSpawnSideOrbitParticles(), scVenusLighthouseAerieStopActorMotion(), syImportScriptSetExitRequest(), sySetTickEvent() and sySynch().

Referenced by scInit().

Definition at lines 162 and 2339 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieShowSaturosAndMenardiFall

static void scVenusLighthouseAerieShowSaturosAndMenardiFall(void)

Shows Saturos and Menardi falling into the beacon after their final defeat.

References fdActorGet(), fdActorReleaseById(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdCameraGetActor(), fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatileAttributes(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), scVenusLighthouseAerieShowMessage(), scVenusLighthouseAerieSpawnUpperOrbitParticles(), sySetTickEvent(), sySoundPlay() and sySynch().

Referenced by scVenusLighthouseAerieFinishSaturosAndMenardiBattle().

Definition at lines 163 and 2428 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieDiscussSaturosAndMenardiDefeat

static void scVenusLighthouseAerieDiscussSaturosAndMenardiDefeat(void)

The party wonders whether they have really won, and Felix, still on the aerie with Sheba, tells them it is not over and that he will light the other beacons.

References fdActorFaceDirection(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetDestination(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptShowMessageThenWait(), fdScriptWait(), scVenusLighthouseAerieFaceActor(), scVenusLighthouseAerieShowMessage(), Sint32 and sySoundPlay().

Referenced by scVenusLighthouseAerieFinishSaturosAndMenardiBattle().

Definition at lines 164 and 2536 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieEruptBeacon

static void scVenusLighthouseAerieEruptBeacon(void)

The beacon erupts. Its beam shoots up in a flash of white as the aerie shakes and splits, its halves and statues moving apart with the party on the east half; Sheba is left hanging from the west edge with Felix kneeling over her. Then an orb of light rises out of the beacon, its light lifts everyone off the aerie, and the screen goes white for the World Map.

References BeaconRiseStep, BeaconRiseTimer, fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorShowEmote(), fdActorSnapshot(), fdActorStartRepeatedMotion(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptFinishScreenTransition(), fdScriptSetDestination(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagGet(), gmFlagSet(), scVenusLighthouseAerieShowMessage(), scVenusLighthouseAerieSpawnUpperOrbitParticles(), scVenusLighthouseAerieStopActorMotion(), scVenusLighthouseAerieUpdateBeaconRise(), syCloseEvent(), sySetTickEvent(), sySoundPlay(), sySynch(), VenusLighthouseAerieBeamCloseScript, VenusLighthouseAerieBeamEndScript, VenusLighthouseAerieBeamOpenScript and VenusLighthouseAerieBeamRiseScript.

Referenced by scVenusLighthouseAerieFinishSaturosAndMenardiBattle().

Definition at lines 165 and 2694 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieRestorePartyOnBrokenAerie

static void scVenusLighthouseAerieRestorePartyOnBrokenAerie(void)

After the World Map's lighthouse transition: the screen clears from white on the broken aerie, the party knocked down on its east half and the orb of light glowing over the beacon again.

References fdActorGet(), fdActorReleaseById(), fdActorRestore(), fdActorSetAnimation(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptStartScreenTransition(), scVenusLighthouseAerieSpawnSideOrbitParticles(), scVenusLighthouseAerieStopActorMotion(), sySetTickEvent(), sySoundPlay() and sySynch().

Referenced by scVenusLighthouseAerieShowShebaInDanger().

Definition at lines 166 and 2917 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieTryToPreventFall

static void scVenusLighthouseAerieTryToPreventFall(void)

Shows Felix urging Sheba, hanging from the broken aerie's edge, to hold on.

References fdActorRunRepeatedMotion(), fdActorSetAttachedEffect(), fdActorStartRepeatedMotion(), fdCameraWaitForMove(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptWait(), scFieldScriptShowMessageThenWait(), scVenusLighthouseAerieShowMessage() and sySoundPlay().

Referenced by scVenusLighthouseAerieShowShebaInDanger().

Definition at lines 167 and 2994 of file venus_lighthouse_aerie.c.

scVenusLighthouseAeriePlayShebasFall

static void scVenusLighthouseAeriePlayShebasFall(void)

Shows Sheba falling, Felix jumping after her and the party escaping.

References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorMoveToAndWait(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorStop(), fdActorSystemResumeProjectionAndHideLayers(), fdActorSystemSuspendProjectionAndShowSprites(), fdActorWaitForScriptEndById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdScriptAskYesNoWithActorAnimation(), fdScriptFinishScreenTransition(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptWait(), fdScriptWaitTransitionTicks(), mnFieldMessageShowCentered(), scFieldScriptShowMessageThenWait(), scVenusLighthouseAerieFaceActor(), scVenusLighthouseAerieShowMessage(), scVenusLighthouseAerieStepSpriteRotation(), scVenusLighthouseAerieStopActorMotion(), Sint32, sySoundPlay(), sySynch(), VenusLighthouseAerieBreatheHeavilyScript, VenusLighthouseAerieFelixDiveScript, VenusLighthouseAerieLookAboutScript, VenusLighthouseAeriePartyExitScript and VenusLighthouseAerieShebaFallScript.

Referenced by scVenusLighthouseAerieStageShebasFall().

Definition at lines 168 and 3028 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieStopActorMotion

static void scVenusLighthouseAerieStopActorMotion(ACTOR *actor)

Stops an actor where it stands, with no move under way.

Referenced by scVenusLighthouseAerieAdvanceActorRise(), scVenusLighthouseAerieCombineSaturosAndMenardi(), scVenusLighthouseAerieEruptBeacon(), scVenusLighthouseAeriePlayShebasFall(), scVenusLighthouseAerieRestorePartyOnBrokenAerie(), scVenusLighthouseAerieStageShebasFall() and scVenusLighthouseAerieUpdateBeaconRise().

Definition at lines 169 and 3393 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieUpdateBeaconRise

static void scVenusLighthouseAerieUpdateBeaconRise(void)

Each tick as the beacon's light lifts the party away: a flash and a shake, then from tick 24 the orb rises from below the aerie, held at tick 25 until it is above the floor and at 26 until it is 40 pixels up, with particles circling it to tick 34; the screen fades to white at 36, and at 48 the party is lifted (FLAG_VENUS_AERIE_PARTY_LIFTED).

References BeaconRiseStep, fdActorGet(), fdActorSetScript(), fdActorSetSpriteColor(), fdActorStartScript(), fdActorStop(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptSetFlag(), scFieldActorCreate(), scVenusLighthouseAerieAdvanceActorRise(), scVenusLighthouseAerieStopActorMotion(), scVenusLighthouseAerieUpdateRisingOrbit(), Sint32, syRandomNext(), sySin(), sySoundPlay(), TickCount, VenusLighthouseAerieOrbPulseScript and VenusLighthouseAerieRiseParticleScript.

Referenced by scVenusLighthouseAerieEruptBeacon().

Definition at lines 170 and 3409 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieAdvanceActorRise

static void scVenusLighthouseAerieAdvanceActorRise(ACTOR *actor)

Lifts one of the party, Felix or Sheba off the aerie as the beacon's light takes them, a quarter pixel a tick up to 8 pixels.

References scVenusLighthouseAerieStopActorMotion().

Referenced by scVenusLighthouseAerieUpdateBeaconRise().

Definition at lines 171 and 3547 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieSpawnSideOrbitParticles

static void scVenusLighthouseAerieSpawnSideOrbitParticles(void)

Each tick on the broken aerie, the orb of light glows over the beacon, pulsing between its own size and 13/10 of it. Every 16 ticks a sparkle sets out to circle it on a flat ellipse of its own.

The orb shows only while the view's top is at most 129 pixels down the map, on the aerie. Below that the view is down the tower's side, on Felix holding on to Sheba as she slips (Sheba's fall, VENUS_LIGHTHOUSE_AERIE_FROM_WORLD_MAP), and the orb waits at (0, 0) until the view comes back up.

References BeaconSparkScript, fdActorGet(), fdActorSetSpriteColor(), fdActorStartScript(), scFieldActorCreate(), scVenusLighthouseAerieUpdateOrbitingEffect(), Sint32, syRandomNext(), sySin() and TickCount.

Referenced by scVenusLighthouseAerieRestorePartyOnBrokenAerie() and scVenusLighthouseAerieStageShebasFall().

Definition at lines 172 and 3576 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieUpdateOrbitingEffect

static void scVenusLighthouseAerieUpdateOrbitingEffect(ACTOR *actor)

Moves a sparkle round the orb of light on its ellipse.

References Sint32, syCos() and sySin().

Referenced by scVenusLighthouseAerieSpawnSideOrbitParticles().

Definition at lines 173 and 3639 of file venus_lighthouse_aerie.c.

scVenusLighthouseAeriePulseActorScale

static Sint32 scVenusLighthouseAeriePulseActorScale(ACTOR *actor)

The heavy breathing of someone worn out: Saturos and Menardi lying hurt after the first battle, and Isaac as he gets up after Sheba's fall. The sprite stretches taller and narrower and settles back over six ticks, then keeps still for 80 to 159 ticks before the next breath.

References Sint32, syMathRemainderUnsigned() and syRandomNext().

Referenced by VenusLighthouseAerieBreatheHeavilyScript.

Definition at line 217 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieUpdateDriftingParticle

static void scVenusLighthouseAerieUpdateDriftingParticle(ACTOR *actor)

A particle of the bursts that fly out of Saturos and Menardi as they draw on the beacon: it slows as it drifts, turning and shrinking.

References Sint32.

Referenced by scVenusLighthouseAerieCombineSaturosAndMenardi().

Definition at line 257 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieStepSpriteRotation

static void scVenusLighthouseAerieStepSpriteRotation(ACTOR *actor)

Felix's sprite turns as he dives off the broken aerie after Sheba, 5/128 of a turn a tick, until he has turned over: from upright, 13 ticks and about half a turn.

References Sint32.

Referenced by scVenusLighthouseAeriePlayShebasFall().

Definition at line 277 of file venus_lighthouse_aerie.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References VenusLighthouseAerieEntrances.

Definition at line 293 of file venus_lighthouse_aerie.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 298 of file venus_lighthouse_aerie.c.

scGetExits

const Uint32 *scGetExits(void)

References VenusLighthouseAerieExits.

Definition at line 303 of file venus_lighthouse_aerie.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

Returns the beacon's statues, the platforms, Saturos and Menardi, Felix and Sheba, the party and the beacon effects.

References VenusLighthouseAerieActorPlacements.

Definition at line 310 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieJumpToNextPlatform

static void scVenusLighthouseAerieJumpToNextPlatform(void)

Walking off the edge of the floor or of a platform toward the next one, Isaac springs and leaps two metatiles across onto it, if there is somewhere to land.

References fdActorGet(), fdActorMoveToAndWait(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), gmFlagClear(), scFieldActorCheckMovementCollision(), scVenusLighthouseAerieFloatPlatforms(), Sint32, sySoundPlay(), sySynch() and syVectorAddPolarOffset().

Referenced by VenusLighthouseAerieCues.

Definition at line 332 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieLandOnPlatform

static void scVenusLighthouseAerieLandOnPlatform(void)

As Isaac lands on a platform, it stops bobbing, dips under him and springs back up.

References fdActorGet(), fdScriptEnd(), fdScriptStart(), gmFlagSet(), scActorFindNearestFloatingPlatform(), Sint32, sySynch() and VenusLighthouseAerieLandedPlatform.

Referenced by VenusLighthouseAerieCues.

Definition at line 377 of file venus_lighthouse_aerie.c.

scGetCues

const CUE *scGetCues(void)

The aerie's scripts: the platforms, and the beacon where Saturos and Menardi wait.

References VenusLighthouseAerieCues.

Definition at line 435 of file venus_lighthouse_aerie.c.

scInit

Sint32 scInit(void)

Sets up the beacon's statues and the six platforms.

References fdActorGet(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdScriptStart(), gmFlagGet(), gmFlagSet(), gmInventoryAddItem(), MainRoutineStateWork, scActorFindNearestFloatingPlatform(), scVenusLighthouseAerieCombineSaturosAndMenardi(), scVenusLighthouseAerieFinishSaturosAndMenardiBattle(), scVenusLighthouseAerieOverhearSaturosAndMenardi(), scVenusLighthouseAerieShowShebaInDanger(), scVenusLighthouseAerieStageShebasFall(), Sint32, syImportScriptSetExitRequest() and sySynch().

Definition at line 441 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieShowMessage

static void scVenusLighthouseAerieShowMessage(Sint32 speaker)

Shows the script's next line, then waits ten ticks.

References fdScriptShowMessage(), fdScriptWait() and Sint32.

Referenced by scVenusLighthouseAerieCombineSaturosAndMenardi(), scVenusLighthouseAerieConfrontSaturosAndMenardi(), scVenusLighthouseAerieDiscussSaturosAndMenardiDefeat(), scVenusLighthouseAerieEruptBeacon(), scVenusLighthouseAerieOverhearSaturosAndMenardi(), scVenusLighthouseAeriePlayShebasFall(), scVenusLighthouseAerieShowSaturosAndMenardiFall() and scVenusLighthouseAerieTryToPreventFall().

Definition at line 531 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieFaceActor

static void scVenusLighthouseAerieFaceActor(Sint32 actorId, Sint32 facing)

Turns one actor and waits ten ticks.

References fdActorFaceDirection() and Sint32.

Referenced by scVenusLighthouseAerieCombineSaturosAndMenardi(), scVenusLighthouseAerieConfrontSaturosAndMenardi(), scVenusLighthouseAerieDiscussSaturosAndMenardiDefeat(), scVenusLighthouseAerieOverhearSaturosAndMenardi() and scVenusLighthouseAeriePlayShebasFall().

Definition at line 538 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieConfrontSaturosAndMenardi

static void scVenusLighthouseAerieConfrontSaturosAndMenardi(void)

Isaac walks up to the beacon in the middle of the aerie (metatiles (20, 14) and (21, 14)) and the party confronts Saturos and Menardi. Saturos offers a deal for the Shaman's Rod, the party hands it over for Sheba's sake, Saturos keeps her all the same, and the battle begins.

References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetPosFX(), fdActorSetScript(), fdActorSetSpriteColorById(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraGetActor(), fdRequestBattleFromEncounterTable(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetAfterBattleDestination(), fdScriptSetDefeatDestination(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagSet(), gmPartyInventoryFindMember(), gmPartyInventoryRemove(), mnFieldMessageShow(), scEndScriptPsynergy(), scFieldScriptShowMessageThenWait(), scStartScriptPsynergy(), scVenusLighthouseAerieFaceActor(), scVenusLighthouseAerieFlashActorPalette(), scVenusLighthouseAerieShowMessage(), scVenusLighthouseAerieUpdateShebaPalette(), Sint32, syCloseEvent(), sySetTickEvent(), sySoundPlay(), sySynch(), VenusLighthouseAerieStepBackEastScript and VenusLighthouseAerieStepBackWestScript.

Referenced by VenusLighthouseAerieCues.

Definition at line 905 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieCycleActorPalette

static void scVenusLighthouseAerieCycleActorPalette(ACTOR *actor)

Cycles the actor through palettes 0 to 5, with Psynergy rings every PSYNERGY_RINGS_INTERVAL ticks.

References fdActorSetColorMode(), scSpawnPsynergyRings(), syMathRemainderUnsigned() and TickCount.

Referenced by scVenusLighthouseAerieUpdateShebaPalette().

Definition at line 1421 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieAimBurst

static inline void scVenusLighthouseAerieAimBurst(Sint32 velocity[3], Sint32 angle)

Aims one particle of a burst along angle, its speed across three times and its speed in depth twice the unit circle's, so that the burst spreads in a flat ellipse over the floor.

References Sint32, syCos() and sySin().

Referenced by scVenusLighthouseAerieCombineSaturosAndMenardi().

Definition at line 1456 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieShowGroupEmote

static inline void scVenusLighthouseAerieShowGroupEmote(Sint32 emote, Sint32 waitTicks)

Gives Felix, Sheba and the party the same reaction, then waits after Mia.

References fdActorShowEmote() and Sint32.

Referenced by scVenusLighthouseAerieCombineSaturosAndMenardi().

Definition at line 1473 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieUpdateUpperOrbit

static void scVenusLighthouseAerieUpdateUpperOrbit(ACTOR *effect)

A sparkle circling the beam of light over the beacon, a thirty-second of a turn a tick, in a flat ellipse.

References fdActorGet(), syCos() and sySin().

Referenced by scVenusLighthouseAerieSpawnUpperOrbitParticles().

Definition at line 2134 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieUpdateRisingOrbit

static void scVenusLighthouseAerieUpdateRisingOrbit(ACTOR *actor)

A sparkle circling the orb of light as it rises out of the beacon, in an ellipse that widens as the orb climbs.

References fdActorGet(), Sint32, syCos() and sySin().

Referenced by scVenusLighthouseAerieUpdateBeaconRise().

Definition at line 2148 of file venus_lighthouse_aerie.c.

scVenusLighthouseAerieHasArrived

static inline Sint32 scVenusLighthouseAerieHasArrived(ACTOR *actor)

Whether an actor has no move target left: it has reached where it was sent, or was never sent anywhere.

References Sint32.

Referenced by scVenusLighthouseAerieUpdateFusion().

Definition at line 2229 of file venus_lighthouse_aerie.c.

Variables in detail

VenusLighthouseAerieJoinLeaderScript

extern Sint32 VenusLighthouseAerieJoinLeaderScript[]

Sint32 VenusLighthouseAerieJoinLeaderScript[]

Garet, Ivan and Mia walk up to Isaac on the tower once the party has agreed to stop Saturos and Menardi, and step out of sight into him.

References Sint32.

Referenced by scVenusLighthouseAerieOverhearSaturosAndMenardi().

Definition at lines 66 and 3664 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieStepBackWestScript

extern Sint32 VenusLighthouseAerieStepBackWestScript[]

Sint32 VenusLighthouseAerieStepBackWestScript[]

Everyone steps half a metatile apart as the first battle begins: the party, Felix and Sheba west, Saturos and Menardi east.

References Sint32.

Referenced by scVenusLighthouseAerieConfrontSaturosAndMenardi().

Definition at lines 67 and 3676 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieStepBackEastScript

extern Sint32 VenusLighthouseAerieStepBackEastScript[]

Sint32 VenusLighthouseAerieStepBackEastScript[]

References Sint32.

Referenced by scVenusLighthouseAerieConfrontSaturosAndMenardi().

Definition at lines 68 and 3685 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieBreatheHeavilyScript

extern Sint32 VenusLighthouseAerieBreatheHeavilyScript[]

Sint32 VenusLighthouseAerieBreatheHeavilyScript[]

Breathes heavily for as long as it runs (scVenusLighthouseAeriePulseActorScale).

References scVenusLighthouseAeriePulseActorScale() and Sint32.

Referenced by scVenusLighthouseAerieCombineSaturosAndMenardi() and scVenusLighthouseAeriePlayShebasFall().

Definition at lines 69 and 3696 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieBeamOpenScript

extern Sint32 VenusLighthouseAerieBeamOpenScript[]

Sint32 VenusLighthouseAerieBeamOpenScript[]

Widens a beam segment from a sliver.

References Sint32.

Referenced by scVenusLighthouseAerieCombineSaturosAndMenardi() and scVenusLighthouseAerieEruptBeacon().

Definition at lines 70 and 3702 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieBeamNarrowScript

extern Sint32 VenusLighthouseAerieBeamNarrowScript[]

Sint32 VenusLighthouseAerieBeamNarrowScript[]

Narrows a beam segment again as Saturos and Menardi take its power.

References Sint32.

Referenced by scVenusLighthouseAerieCombineSaturosAndMenardi().

Definition at lines 71 and 3710 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieBeamRiseScript

extern Sint32 VenusLighthouseAerieBeamRiseScript[]

Sint32 VenusLighthouseAerieBeamRiseScript[]

Narrows each segment of the erupting beam, for longer than VenusLighthouseAerieBeamNarrowScript.

References Sint32.

Referenced by scVenusLighthouseAerieEruptBeacon().

Definition at lines 72 and 3719 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieBeamCloseScript

extern Sint32 VenusLighthouseAerieBeamCloseScript[]

Sint32 VenusLighthouseAerieBeamCloseScript[]

Lifts a beam segment four pixels a tick, then takes it off the stage.

References Sint32.

Referenced by scVenusLighthouseAerieEruptBeacon().

Definition at lines 73 and 3727 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieBeamEndScript

extern Sint32 VenusLighthouseAerieBeamEndScript[]

Sint32 VenusLighthouseAerieBeamEndScript[]

Lifts the beam's flattened bottom two pixels a tick, then takes it off the stage.

References Sint32.

Referenced by scVenusLighthouseAerieEruptBeacon().

Definition at lines 74 and 3738 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieOrbitParticleScript

extern Sint32 VenusLighthouseAerieOrbitParticleScript[]

Sint32 VenusLighthouseAerieOrbitParticleScript[]

A sparkle round the beam over the beacon rises 16 pixels and is gone.

References Sint32.

Referenced by scVenusLighthouseAerieSpawnUpperOrbitParticles().

Definition at lines 75 and 3748 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieRiseParticleScript

extern Sint32 VenusLighthouseAerieRiseParticleScript[]

Sint32 VenusLighthouseAerieRiseParticleScript[]

A sparkle round the rising orb sinks 16 pixels and is gone.

References Sint32.

Referenced by scVenusLighthouseAerieUpdateBeaconRise().

Definition at lines 76 and 3762 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieWalkOutScript

extern Sint32 VenusLighthouseAerieWalkOutScript[]

Sint32 VenusLighthouseAerieWalkOutScript[]

Felix, then Sheba, walk off down the aerie's stairs after the first battle.

References Sint32.

Referenced by scVenusLighthouseAerieCombineSaturosAndMenardi().

Definition at lines 77 and 3776 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieOrbPulseScript

extern Sint32 VenusLighthouseAerieOrbPulseScript[]

Sint32 VenusLighthouseAerieOrbPulseScript[]

The orb rising out of the beacon narrows and widens again, four ticks each way, as long as it shows.

References Sint32.

Referenced by scVenusLighthouseAerieUpdateBeaconRise().

Definition at lines 78 and 3798 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieShebaFallScript

extern Sint32 VenusLighthouseAerieShebaFallScript[]

Sint32 VenusLighthouseAerieShebaFallScript[]

Sheba drops from the broken aerie, 90 pixels over two seconds, and is gone.

References Sint32.

Referenced by scVenusLighthouseAeriePlayShebasFall().

Definition at lines 79 and 3811 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieFelixDiveScript

extern Sint32 VenusLighthouseAerieFelixDiveScript[]

Sint32 VenusLighthouseAerieFelixDiveScript[]

Felix dives after her, much faster, and is gone.

References Sint32.

Referenced by scVenusLighthouseAeriePlayShebasFall().

Definition at lines 80 and 3821 of file venus_lighthouse_aerie.c.

VenusLighthouseAeriePartyExitScript

extern Sint32 VenusLighthouseAeriePartyExitScript[]

Sint32 VenusLighthouseAeriePartyExitScript[]

Garet, Ivan and Mia walk off ahead of Isaac as the party leaves to find Jenna.

References Sint32.

Referenced by scVenusLighthouseAeriePlayShebasFall().

Definition at lines 81 and 3832 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieLookAboutScript

extern Sint32 VenusLighthouseAerieLookAboutScript[]

Sint32 VenusLighthouseAerieLookAboutScript[]

The party looks about them at random.

References scLookAboutRandomly() and Sint32.

Referenced by scVenusLighthouseAeriePlayShebasFall().

Definition at lines 82 and 3841 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieEntrances

extern SCENE_ENTRANCE VenusLighthouseAerieEntrances[]

SCENE_ENTRANCE VenusLighthouseAerieEntrances[]

Referenced by scGetEntrances().

Definition at lines 83 and 3847 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieExits

extern Uint32 VenusLighthouseAerieExits[]

Uint32 VenusLighthouseAerieExits[]

Referenced by scGetExits().

Definition at lines 84 and 3862 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieActorPlacements

extern ACTOR_PLACE VenusLighthouseAerieActorPlacements[]

ACTOR_PLACE VenusLighthouseAerieActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 85 and 3877 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieLandedPlatform

extern Sint32 VenusLighthouseAerieLandedPlatform

Sint32 VenusLighthouseAerieLandedPlatform

The floating platform the leader has landed on, 0 when none.

References Sint32.

Referenced by scVenusLighthouseAerieLandOnPlatform().

Definition at lines 86 and 3933 of file venus_lighthouse_aerie.c.

VenusLighthouseAerieCues

extern CUE VenusLighthouseAerieCues[]

CUE VenusLighthouseAerieCues[]

References scVenusLighthouseAerieConfrontSaturosAndMenardi(), scVenusLighthouseAerieFloatPlatforms(), scVenusLighthouseAerieJumpToNextPlatform() and scVenusLighthouseAerieLandOnPlatform().

Referenced by scGetCues().

Definition at lines 87 and 3936 of file venus_lighthouse_aerie.c.

BeaconRiseTimer

static Sint32 BeaconRiseTimer

Set to 240 as the light starts lifting the party, and never read.

References Sint32.

Referenced by scVenusLighthouseAerieEruptBeacon().

Definition at line 2684 of file venus_lighthouse_aerie.c.

BeaconRiseStep

static Sint32 BeaconRiseStep

The ticks scVenusLighthouseAerieUpdateBeaconRise has run, held while the orb rises.

References Sint32.

Referenced by scVenusLighthouseAerieEruptBeacon() and scVenusLighthouseAerieUpdateBeaconRise().

Definition at line 2686 of file venus_lighthouse_aerie.c.

FieldEffectDurationScripts

const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

Definition at line 3656 of file venus_lighthouse_aerie.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailFLAG_SHAMANS_ROD_CARRIED_BYFLAG_VENUS_AERIE_FUSION_SLIDINGFLAG_VENUS_AERIE_FUSION_GROWINGFLAG_VENUS_AERIE_BEACON_ERUPTEDFLAG_VENUS_AERIE_PARTY_LIFTEDFLAG_VENUS_AERIE_ON_PLATFORMPSYNERGY_RINGS_SOUNDEnumerations in detailanonymous enumanonymous enumVENUS_LIGHTHOUSE_AERIE_METATILE_BEHAVIORanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumFunctions in detailscVenusLighthouseAerieFloatPlatformsscVenusLighthouseAerieOverhearSaturosAndMenardiscVenusLighthouseAerieShowPartyMemberscVenusLighthouseAerieFlashActorPalettescVenusLighthouseAerieUpdateShebaPalettescVenusLighthouseAerieCombineSaturosAndMenardiscVenusLighthouseAerieFlashScreenscVenusLighthouseAerieSpawnUpperOrbitParticlesscVenusLighthouseAerieUpdateFusionscVenusLighthouseAerieFinishSaturosAndMenardiBattlescVenusLighthouseAerieShowShebaInDangerscVenusLighthouseAerieStageShebasFallscVenusLighthouseAerieShowSaturosAndMenardiFallscVenusLighthouseAerieDiscussSaturosAndMenardiDefeatscVenusLighthouseAerieEruptBeaconscVenusLighthouseAerieRestorePartyOnBrokenAeriescVenusLighthouseAerieTryToPreventFallscVenusLighthouseAeriePlayShebasFallscVenusLighthouseAerieStopActorMotionscVenusLighthouseAerieUpdateBeaconRisescVenusLighthouseAerieAdvanceActorRisescVenusLighthouseAerieSpawnSideOrbitParticlesscVenusLighthouseAerieUpdateOrbitingEffectscVenusLighthouseAeriePulseActorScalescVenusLighthouseAerieUpdateDriftingParticlescVenusLighthouseAerieStepSpriteRotationscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscVenusLighthouseAerieJumpToNextPlatformscVenusLighthouseAerieLandOnPlatformscGetCuesscInitscVenusLighthouseAerieShowMessagescVenusLighthouseAerieFaceActorscVenusLighthouseAerieConfrontSaturosAndMenardiscVenusLighthouseAerieCycleActorPalettescVenusLighthouseAerieAimBurstscVenusLighthouseAerieShowGroupEmotescVenusLighthouseAerieUpdateUpperOrbitscVenusLighthouseAerieUpdateRisingOrbitscVenusLighthouseAerieHasArrivedVariables in detailVenusLighthouseAerieJoinLeaderScriptVenusLighthouseAerieStepBackWestScriptVenusLighthouseAerieStepBackEastScriptVenusLighthouseAerieBreatheHeavilyScriptVenusLighthouseAerieBeamOpenScriptVenusLighthouseAerieBeamNarrowScriptVenusLighthouseAerieBeamRiseScriptVenusLighthouseAerieBeamCloseScriptVenusLighthouseAerieBeamEndScriptVenusLighthouseAerieOrbitParticleScriptVenusLighthouseAerieRiseParticleScriptVenusLighthouseAerieWalkOutScriptVenusLighthouseAerieOrbPulseScriptVenusLighthouseAerieShebaFallScriptVenusLighthouseAerieFelixDiveScriptVenusLighthouseAeriePartyExitScriptVenusLighthouseAerieLookAboutScriptVenusLighthouseAerieEntrancesVenusLighthouseAerieExitsVenusLighthouseAerieActorPlacementsVenusLighthouseAerieLandedPlatformVenusLighthouseAerieCuesBeaconRiseTimerBeaconRiseStepFieldEffectDurationScripts