src/scene/venus_lighthouse.c
The Venus Lighthouse, as the prologue opens on it: Felix moves a statue onto the floor switch with Psynergy and goes on alone, and Jenna and Kraden, doubting they should leave, meet Alex and set off for Idejima (SceneIdVenusLighthouse).
#include "edition.h"#include "field/actor_script.h"#include "field/script_inline.h"#include "field/field_engine.h"#include "game/game.h"#include "scene/scene.h"#include "text/msg_ids.h"#include "shared/actor_set_sprite_priority.c"#include "scene/pushed_actor.h"#include "../field/field_effect_move.c"#include "shared/position_distance.c"#include "shared/actor_find_at_metatile.c"#include "shared/map_metatile_fill_byte.c"#include "shared/push_leader_steps.c"
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_VENUS_LIGHTHOUSE_SWITCH_HELD FLAG_SCENE_TEMP(0x00) | Set once the statue Felix moved onto the floor switch has sunk into it and holds it down; the barrier no longer throws the leader back. |
#define | FLAG_VENUS_LIGHTHOUSE_ON_GROUND_FLOOR_SWITCH FLAG_SCENE_TEMP(0x01) | Set while the leader stands on the floor switch, pressed down. |
#define | VENUS_COLOR_MARK (mode) (VENUS_COLOR_MARK_TAG << 4 | (mode)) | An actor's timer as VenusGreyStatueScript sets it. |
Enumerations
| Name | Description | |
|---|---|---|
enum | VENUS_LIGHTHOUSE_METATILE_BEHAVIOR { METATILE_BEHAVIOR_VENUS_LIGHTHOUSE_FIRST_RELIEF, METATILE_BE … } | The metatile behaviors the scene's scripts answer, as The Broken Seal numbers them on this floor. |
enum | VENUS_LIGHTHOUSE_WAY { VENUS_LIGHTHOUSE_FRONT_ROOM_TO_RELIEFS, VENUS_LIGHTHOUSE_REL … } | The ways between the rooms of this floor, The Broken Seal's ground floor, by its names: each exit leads to the entrance of the same rooms the other way round. |
enum | VENUS_LIGHTHOUSE_ACTOR_ID { ACTOR_KRADEN, ACTOR_ALEX, ACTOR_FLOOR_SWITCH_STATUE, ACTOR_S … } | The scene's actors, numbering the rows of ActorPlacements: The Broken Seal's ground floor's, with Kraden and Alex in place of Garet and its three scholars set aside in the corner. |
enum | anonymous enum { VENUS_COLOR_MARK_TAG } | The tag that marks the timer. |
enum | anonymous enum { ANIM_ALEX_NOD_SLOWLY, ANIM_ALEX_BOW } | Alex's own animations (alex.tsv), past a person's ANIM_SHAKE_HEAD. |
enum | anonymous enum { SW_VENUS_IMMOVABLE } | The scene's name for the byte Actor keeps for scene code. |
Functions
| Name | Description | |
|---|---|---|
void | scVenusLighthouseConfigurePassageEffect (ACTOR *actor, Sint32 colorMode) | Sets up a passage effect's motion, collision and colour mode. |
ACTOR * | scVenusLighthouseCreateBlendedPassageEffect (Sint32 x, Sint32 y, Sint32 z, Sint32 type) | Unused: creates a mask over a hole, an actor of sprite type drawn solid black and translucent, as The Broken Seal's Venus Lighthouse drops the leader or a pillar through its floor; nothing here calls it. |
ACTOR * | scVenusLighthouseCreateOccludingPassageEffect (Sint32 x, Sint32 y, Sint32 z, Sint32 type) | Unused: creates an actor drawn hidden that keeps the leader on screen while a pillar sinks by him, as The Broken Seal's Venus Lighthouse does; nothing here calls it. |
void | scFieldEffectSpawn (Sint32 x, Sint32 y, Sint32 z, Sint32 velocityX, Sint32 velocityY, Sint32 velocityZ, Uint32 flags, const EFFECT_OPTIONS *options) | Puts a short-lived effect sprite, dust unless options names another, at a point, moving off at the velocity given and drawn at the leader's priority: this overlay's own copy of field_effect_spawn.c. |
void | scPushedActorAdvancePair (void) | Unused: the leader pushes what stands in front of him a metatile on, unless something solid is beyond it or on top of it, the ground beyond refuses it or it is still moving, as The Broken Seal's pushing scenes do; nothing here calls it. |
void | scVenusLighthouseNoOperation (void) | Unused: does nothing; nothing calls it. |
Sint32 | scVenusLighthouseFlashStruckLeader (void *actor) | Flashes the leader white every fourth tick, with the sound of a breaking item every eighth. |
Sint32 | scVenusLighthouseEmitRisingParticles (ACTOR *actor) | The update of the leader the barrier threw back: every eighth tick a small black puff of dust rises from somewhere on him. |
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. |
Sint32 | scVenusLighthouseApplyMarkedColor (ACTOR *actor) | Draws the actor in the colour mode of its VENUS_COLOR_MARK. |
Sint32 | scVenusLighthouseClearScriptedSpriteFlags (void *actor) | Clears the scripted actor's sprite flags and advances its script. |
const ACTOR_PLACE * | scGetActorPlacements (void) | The scene's actor placements: a room of names for its entrance, else the debug room's. |
void | scVenusLighthouseFelixLeaves (void) | The prologue's opening: Felix nods to Jenna and Kraden, moves the statue onto the floor switch with Psynergy, nods again and goes off alone by the room's other stairs, beyond the switch. |
void | scVenusLighthouseDoubtLeaving (void) | Jenna doubts they should have left Felix; Alex appears in sparks and asks after him, and the three go down the stairs to leave the lighthouse. |
void | scVenusLighthouseRepelLeader (void) | Until the statue holds the floor switch down, stepping onto the barrier throws the leader back, dazed and flashing. |
void | scVenusLighthouseStepOnFloorSwitch (void) | Standing on the floor switch presses it (FLAG_VENUS_LIGHTHOUSE_ON_GROUND_FLOOR_SWITCH) and lowers the leader into it; stepping off releases it. |
void | scVenusLighthouseSinkStatue (void) | The statue Felix moved onto the floor switch, in column 42, sinks in and holds it down, and the barrier lets the leader by. |
void | scVenusLighthouseReadRelief (void) | Searching the relief shows its words. |
void | scVenusLighthouseReadTrueHeart (void) | Searching the other relief shows that only a true heart knows the road. |
void | scVenusLighthouseHidePaths (void) | Reveal fades: the two ways it opened are reliefs again (scVenusLighthouseRevealPaths). |
void | scVenusLighthouseRevealPaths (void) | Reveal shows two hidden ways, each from metatiles kept beside the map: the fifth relief in the room of reliefs, metatile (23, 10), becomes an archway, VENUS_LIGHTHOUSE_RELIEFS_TO_CARRY_STONE_WEST, and the True Heart relief by the stairs in the floor switch's room, (47, 57), becomes VENUS_LIGHTHOUSE_FLOOR_SWITCH_TO_GREAT_STATUE. |
const CUE * | scGetCues (void) | The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's. |
Sint32 | scVenusLighthouseIdle (void) | Does nothing: the end of Felix's Move, which leaves the rest to the script. |
void | scVenusLighthouseFelixMovesStatue (void) | Felix casts Move on the statue, which slides onto the floor switch. |
static inline void | scVenusLighthouseGreyStatues (void) | Draws the lady statues grey: the floor switch's, and the nine of the two rooms by the entrance. |
Sint32 | scInit (void) | Opens the room through the window transition, and in the debug room draws the cat 1.7 times its size. |
Sint32 | scPrepareMap (void) | Once Briggs is caught the pool has dried up: its colours take the dry ground's. |
static inline void | scVenusLighthouseGoDownStairs (Sint32 actor, Sint32 side) | Has the actor go down the stairs (fdExitPrepareActorAnimation). |
Variables
| Name | Description | |
|---|---|---|
extern const Sint32 * | FieldEffectDurationScripts [] | The field effects' three scripts by how long an effect lasts: short, medium and long. |
extern Sint32 | PushLeaderSteps [] | One metatile along each facing's nearest direction (PUSH_STEP). |
extern ACTOR_PLACE | VenusLighthouseOpeningActorPlacements [] | |
extern Uint32 | FieldEffectShortScript [] | |
extern Uint32 | FieldEffectMediumScript [] | The flash about the Tomegathericon: held 45 ticks, then put away and freed. |
extern Sint32 | VenusGreyStatueScript [] | The statues' actor script. |
extern Sint32 | VenusMiniatureLighthouseScript [] | The actor script of the World Map's picture of Venus Lighthouse, placed at three fifths of its size, with no collision. |
extern Sint32 | VenusLeaderDazedScript [] | The leader's actor script as the barrier throws him back (scVenusLighthouseRepelLeader). |
extern Uint32 | FieldEffectLongScript [] | |
SCENE_ENTRANCE | SceneEntrances [] | Besides the party's return to the pier after the ship is stolen, four unused spots about the mast: below the huge block, on the dock by its crate, on the deck, and at the top of the sail's east pole. |
Uint32 | SceneExits [] | The room has no exits of its own. |
ACTOR_PLACE | ActorPlacements [] | The room's people: the party's four rows, then PSYNERGY_TEST_ACTOR_ID's. |
CUE | SceneCues [] | The room's scripts: talking to its people, Mind Read on them, the metatiles examined, and the field Psynergy each spot answers. |
Description
The Venus Lighthouse, as the prologue opens on it: Felix moves a statue onto
the floor switch with Psynergy and goes on alone, and Jenna and Kraden,
doubting they should leave, meet Alex and set off for Idejima
(SceneIdVenusLighthouse).
Macros in detail
FLAG_VENUS_LIGHTHOUSE_SWITCH_HELD
#define FLAG_VENUS_LIGHTHOUSE_SWITCH_HELD FLAG_SCENE_TEMP(0x00)
Set once the statue Felix moved onto the floor switch has sunk into it and holds it down; the barrier no longer throws the leader back.
Referenced by SceneCues and scVenusLighthouseSinkStatue().
Definition at line 18 of file venus_lighthouse.c.
FLAG_VENUS_LIGHTHOUSE_ON_GROUND_FLOOR_SWITCH
#define FLAG_VENUS_LIGHTHOUSE_ON_GROUND_FLOOR_SWITCH FLAG_SCENE_TEMP(0x01)
Set while the leader stands on the floor switch, pressed down.
Referenced by scVenusLighthouseDoubtLeaving() and scVenusLighthouseStepOnFloorSwitch().
Definition at line 20 of file venus_lighthouse.c.
VENUS_COLOR_MARK
#define VENUS_COLOR_MARK(mode) (VENUS_COLOR_MARK_TAG << 4 | (mode))
An actor's timer as VenusGreyStatueScript sets it. It holds a tag in the
upper bits and a colour mode (SPR_COL_MODE) in the low four.
Referenced by VenusGreyStatueScript.
Definition at line 137 of file venus_lighthouse.c.
Enumerations in detail
VENUS_LIGHTHOUSE_METATILE_BEHAVIOR
enum VENUS_LIGHTHOUSE_METATILE_BEHAVIOR
The metatile behaviors the scene's scripts answer, as The Broken Seal numbers them on this floor.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_VENUS_LIGHTHOUSE_FIRST_RELIEF | 35 | The first of the |
METATILE_BEHAVIOR_VENUS_LIGHTHOUSE_TRUE_HEART_RELIEF | 40 | five reliefs scVenusLighthouseReadRelief shows the words of. The relief by |
METATILE_BEHAVIOR_VENUS_LIGHTHOUSE_BARRIER | 45 | the stairs down from the floor switch's room (scVenusLighthouseReadTrueHeart). The floor of yellow |
METATILE_BEHAVIOR_VENUS_LIGHTHOUSE_FLOOR_SWITCH | 46 | lightning south of the floor switch, which throws the leader back until the switch is held (scVenusLighthouseRepelLeader). |
Definition at line 24 of file venus_lighthouse.c.
VENUS_LIGHTHOUSE_WAY
enum VENUS_LIGHTHOUSE_WAY
The ways between the rooms of this floor, The Broken Seal's ground floor, by
its names: each exit leads to the entrance of the same rooms the other way
round. The stairs down at the south of the floor switch's room, where the
prologue opens, lead to the room of the spiral pillars: Jenna, Kraden and
Alex leave by VENUS_LIGHTHOUSE_FLOOR_SWITCH_TO_PILLARS, and in every edition
but the Japanese the game restarts at
VENUS_LIGHTHOUSE_FLOOR_SWITCH_FROM_PILLARS.
| Enumerator | Value | Description |
|---|---|---|
VENUS_LIGHTHOUSE_FRONT_ROOM_TO_RELIEFS | 2 | |
VENUS_LIGHTHOUSE_RELIEFS_TO_FRONT_ROOM | 3 | |
VENUS_LIGHTHOUSE_RELIEFS_TO_CARRY_STONE_EAST | 4 | |
VENUS_LIGHTHOUSE_RELIEFS_TO_CARRY_STONE_WEST | 5 | |
VENUS_LIGHTHOUSE_RELIEFS_TO_PILLARS | 6 | |
VENUS_LIGHTHOUSE_PILLARS_TO_RELIEFS | 7 | |
VENUS_LIGHTHOUSE_PILLARS_TO_CARRY_STONE | 8 | |
VENUS_LIGHTHOUSE_PILLARS_TO_FLOOR_SWITCH | 9 | |
VENUS_LIGHTHOUSE_PILLARS_TO_STATUE_ROW_NORTH | 10 | |
VENUS_LIGHTHOUSE_PILLARS_TO_STATUE_ROW_WEST | 11 | |
VENUS_LIGHTHOUSE_STATUE_ROW_TO_PILLARS_NORTH | 12 | |
VENUS_LIGHTHOUSE_STATUE_ROW_TO_PILLARS_WEST | 13 | |
VENUS_LIGHTHOUSE_STATUE_ROW_TO_SMALL_ROOM | 14 | |
VENUS_LIGHTHOUSE_GREAT_STATUE_TO_FLOOR_SWITCH | 20 | |
VENUS_LIGHTHOUSE_GREAT_STATUE_TO_SMALL_ROOM | 21 | |
VENUS_LIGHTHOUSE_FLOOR_SWITCH_TO_PILLARS | 22 | |
VENUS_LIGHTHOUSE_SMALL_ROOM_TO_STATUE_ROW | 24 | |
VENUS_LIGHTHOUSE_SMALL_ROOM_TO_GREAT_STATUE | 25 | |
VENUS_LIGHTHOUSE_FLOOR_SWITCH_TO_GREAT_STATUE | 26 | |
VENUS_LIGHTHOUSE_CARRY_STONE_TO_RELIEFS_WEST | 30 | |
VENUS_LIGHTHOUSE_CARRY_STONE_TO_RELIEFS_EAST | 31 | |
VENUS_LIGHTHOUSE_CARRY_STONE_TO_PILLARS | 32 | |
VENUS_LIGHTHOUSE_FLOOR_SWITCH_STAIRS | 23 | The floor switch room's other stairs, The Broken Seal's way on to its first floor; with no row in SceneExits, gmTakeExit sends the party to ENTRANCE_DEFAULT. |
VENUS_LIGHTHOUSE_FRONT_ROOM_FROM_RELIEFS | 2 | |
VENUS_LIGHTHOUSE_RELIEFS_FROM_FRONT_ROOM | 3 | |
VENUS_LIGHTHOUSE_RELIEFS_FROM_CARRY_STONE_EAST | 4 | |
VENUS_LIGHTHOUSE_RELIEFS_FROM_CARRY_STONE_WEST | 5 | |
VENUS_LIGHTHOUSE_RELIEFS_FROM_PILLARS | 6 | |
VENUS_LIGHTHOUSE_PILLARS_FROM_RELIEFS | 7 | |
VENUS_LIGHTHOUSE_PILLARS_FROM_CARRY_STONE | 8 | |
VENUS_LIGHTHOUSE_PILLARS_FROM_FLOOR_SWITCH | 9 | |
VENUS_LIGHTHOUSE_PILLARS_FROM_STATUE_ROW_NORTH | 10 | |
VENUS_LIGHTHOUSE_PILLARS_FROM_STATUE_ROW_WEST | 11 | |
VENUS_LIGHTHOUSE_STATUE_ROW_FROM_PILLARS_NORTH | 12 | |
VENUS_LIGHTHOUSE_STATUE_ROW_FROM_PILLARS_WEST | 13 | |
VENUS_LIGHTHOUSE_STATUE_ROW_FROM_SMALL_ROOM | 14 | |
VENUS_LIGHTHOUSE_GREAT_STATUE_FROM_FLOOR_SWITCH | 20 | |
VENUS_LIGHTHOUSE_GREAT_STATUE_FROM_SMALL_ROOM | 21 | |
VENUS_LIGHTHOUSE_FLOOR_SWITCH_FROM_PILLARS | 22 | |
VENUS_LIGHTHOUSE_SMALL_ROOM_FROM_STATUE_ROW | 24 | |
VENUS_LIGHTHOUSE_SMALL_ROOM_FROM_GREAT_STATUE | 25 | |
VENUS_LIGHTHOUSE_FLOOR_SWITCH_FROM_GREAT_STATUE | 26 | |
VENUS_LIGHTHOUSE_CARRY_STONE_FROM_RELIEFS_WEST | 30 | |
VENUS_LIGHTHOUSE_CARRY_STONE_FROM_RELIEFS_EAST | 31 | |
VENUS_LIGHTHOUSE_CARRY_STONE_FROM_PILLARS | 32 |
Definition at line 55 of file venus_lighthouse.c.
VENUS_LIGHTHOUSE_ACTOR_ID
enum VENUS_LIGHTHOUSE_ACTOR_ID
The scene's actors, numbering the rows of ActorPlacements: The Broken Seal's
ground floor's, with Kraden and Alex in place of Garet and its three scholars
set aside in the corner. At VENUS_LIGHTHOUSE_FROM_TITLE Felix and Jenna are
placed as the first two rows of VenusLighthouseOpeningActorPlacements and
keep their own ids.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_KRADEN | ACTOR_FIRST_PLACED | |
ACTOR_ALEX | ||
ACTOR_FLOOR_SWITCH_STATUE | The lady statue Felix moves onto the floor switch with Move; it sinks in and holds the switch down. | |
ACTOR_SCHOLAR_ATTACKED_ANYWAY | The Broken Seal's three scholars of this floor (SPRITE_OLD_MAN_IN_BLUE_CAP and SPRITE_MAN_WITH_GLASSES), under its names, kept at (8, 8) out of sight; they never speak here. | |
ACTOR_SCHOLAR_NOT_THE_ENTRANCE | ||
ACTOR_DOOR_SCHOLAR | ||
ACTOR_EAST_SPIRAL_PILLAR | The two spiral pillars below the stairs of | |
ACTOR_WEST_SPIRAL_PILLAR | VENUS_LIGHTHOUSE_PILLARS_FROM_FLOOR_SWITCH. | |
ACTOR_MINIATURE_LIGHTHOUSE | The small model of the lighthouse (VenusMiniatureLighthouseScript). | |
ACTOR_FIRST_GREY_STATUE | The first of the nine lady statues drawn grey (VenusGreyStatueScript), in the two rooms by the entrance. |
Definition at line 112 of file venus_lighthouse.c.
anonymous enum
enum { VENUS_COLOR_MARK_TAG }
The tag that marks the timer.
| Enumerator | Value | Description |
|---|---|---|
VENUS_COLOR_MARK_TAG | 0x212 |
Definition at line 140 of file venus_lighthouse.c.
anonymous enum
enum { ANIM_ALEX_NOD_SLOWLY, ANIM_ALEX_BOW }
Alex's own animations (alex.tsv), past a person's ANIM_SHAKE_HEAD.
| Enumerator | Value | Description |
|---|---|---|
ANIM_ALEX_NOD_SLOWLY | 6 | Three slow nods, each held a third of a second. |
ANIM_ALEX_BOW | 7 | His head bowed for a second. |
Definition at line 146 of file venus_lighthouse.c.
anonymous enum
enum { SW_VENUS_IMMOVABLE }
The scene's name for the byte Actor keeps for scene code. A statue with
SW_VENUS_IMMOVABLE set cannot be pushed.
| Enumerator | Value | Description |
|---|---|---|
SW_VENUS_IMMOVABLE | SW_SCENE_COUNTER |
Definition at line 155 of file venus_lighthouse.c.
Functions in detail
scVenusLighthouseConfigurePassageEffect
void scVenusLighthouseConfigurePassageEffect(ACTOR *actor, Sint32 colorMode)
Sets up a passage effect's motion, collision and colour mode.
References fdActorSetSpriteFlags(), scFieldActorSetSpriteColor() and Sint32.
Referenced by scVenusLighthouseCreateBlendedPassageEffect() and scVenusLighthouseCreateOccludingPassageEffect().
Definition at line 161 of file venus_lighthouse.c.
scVenusLighthouseCreateBlendedPassageEffect
ACTOR *scVenusLighthouseCreateBlendedPassageEffect(Sint32 x, Sint32 y, Sint32 z, Sint32 type)
Unused: creates a mask over a hole, an actor of sprite type drawn solid black and translucent, as The Broken Seal's Venus Lighthouse drops the leader or a pillar through its floor; nothing here calls it.
References fdActorSetBlendMode(), scFieldActorCreate(), scSetActorSpritePriority(), scVenusLighthouseConfigurePassageEffect() and Sint32.
Definition at line 172 of file venus_lighthouse.c.
scVenusLighthouseCreateOccludingPassageEffect
ACTOR *scVenusLighthouseCreateOccludingPassageEffect(Sint32 x, Sint32 y, Sint32 z, Sint32 type)
Unused: creates an actor drawn hidden that keeps the leader on screen while a pillar sinks by him, as The Broken Seal's Venus Lighthouse does; nothing here calls it.
References scFieldActorCreate(), scSetActorSpritePriority(), scVenusLighthouseConfigurePassageEffect() and Sint32.
Definition at line 192 of file venus_lighthouse.c.
scFieldEffectSpawn
void scFieldEffectSpawn(Sint32 x, Sint32 y, Sint32 z, Sint32 velocityX, Sint32 velocityY, Sint32 velocityZ, Uint32 flags, const EFFECT_OPTIONS *options)
Puts a short-lived effect sprite, dust unless options names another, at a
point, moving off at the velocity given and drawn at the leader's priority:
this overlay's own copy of field_effect_spawn.c.
References fdActorGetById(), fdActorSelectAnimation(), fdActorStartScript(), fdEffectUpdateMotionScaleAndSpin(), FieldEffectDurationScripts, MainRoutineStateWork, scFieldActorSetSpriteColor(), scSetActorSpritePriority(), Sint32 and syImportActorCreate().
Referenced by scActorEmitMist(), scActorEmitSmoke(), scActorEmitSmokeUnused(), scActorEmitSparkles(), scAirsRockBlowGust(), scAirsRockCrumbleRock(), scAirsRockInsideBlowGust(), scAirsRockInsideBurstDust(), scAirsRockInsideLandInHall(), scAirsRockInsideScatterSparks(), scAirsRockInsideStatueBreathesPooledWhirlwind(), scAirsRockInsideStatueBreathesWhirlwind(), scAirsRockStatueBreathesWhirlwind(), scAirsRockWhirlwindClearsWall(), scAnemosInnerSanctumLightPlate(), scAnkohlRuinsLandFromFall(), scAnkohlRuinsPourSand(), scCavernsFinishMovingAngaraBlock(), scContigoForceFreesDjinni(), scCrackedTileDropIn(), scDehkanPlateauLandFromFall(), scGabombaStatueLandFromFall(), scGaiaRockInsideRaiseDust(), scGaiaRockInsideRingOfDust(), scGarohScatterDustRing(), scGondowanCliffsLeapStumpIntoWater(), scJupiterLighthouseAlexAppears(), scKandoreanTempleLandFromAbove(), scMagmaRockBurnStatue(), scMagmaRockDropLeaderFromSummit(), scMagmaRockFireFromStatue(), scMagmaRockInsideDrainLava(), scMagmaRockInsideFireFromStatue(), scMagmaRockInsideRaiseLava(), scMagmaRockInsideReleaseRocks(), scMagmaRockInsideSmokeEmber(), scMagmaRockInsideTrailEmbers(), scMagmaRockInsideTrailSparks(), scMagmaRockKnockLeaderOffWall(), scMagmaRockLeaveEmbers(), scMagmaRockRaiseFlameTop(), scMagmaRockScatterEmbers(), scMagmaRockThrowEmbers(), scMarsLighthouseEntrancePoundIceCone(), scMtAlephSummitScatterDustRing(), scProngSparkle(), scSeaOfTimeCountLaps(), scSeaOfTimeFacePoseidon(), scSeaOfTimeFollowChannel(), scSeaOfTimeOpen() and 17 more.
Definition at line 216 of file venus_lighthouse.c.
scPushedActorAdvancePair
void scPushedActorAdvancePair(void)
Unused: the leader pushes what stands in front of him a metatile on, unless something solid is beyond it or on top of it, the ground beyond refuses it or it is still moving, as The Broken Seal's pushing scenes do; nothing here calls it.
References fdActorGetById(), fdActorSelectAnimation(), fdMapGridCheckCollision(), fdScriptNoOperation(), fdScriptPlaySound(), MainRoutineStateWork, PushLeaderSteps, scActorFindInMetatile(), scFieldActorSetMoveTargetFX(), scFieldActorWaitForMove(), Sint32 and sySynch().
Definition at line 313 of file venus_lighthouse.c.
scVenusLighthouseNoOperation
void scVenusLighthouseNoOperation(void)
Unused: does nothing; nothing calls it.
Definition at line 392 of file venus_lighthouse.c.
scVenusLighthouseFlashStruckLeader
Sint32 scVenusLighthouseFlashStruckLeader(void *actor)
Flashes the leader white every fourth tick, with the sound of a breaking item every eighth.
References fdScriptPlaySound(), scFieldActorSetSpriteColor(), Sint32 and TickCount.
Referenced by VenusLeaderDazedScript.
Definition at line 398 of file venus_lighthouse.c.
scVenusLighthouseEmitRisingParticles
Sint32 scVenusLighthouseEmitRisingParticles(ACTOR *actor)
The update of the leader the barrier threw back: every eighth tick a small black puff of dust rises from somewhere on him.
References scFieldEffectSpawn(), Sint32 and TickCount.
Referenced by scVenusLighthouseRepelLeader().
Definition at line 412 of file venus_lighthouse.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 443 of file venus_lighthouse.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 448 of file venus_lighthouse.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 453 of file venus_lighthouse.c.
scVenusLighthouseApplyMarkedColor
Sint32 scVenusLighthouseApplyMarkedColor(ACTOR *actor)
Draws the actor in the colour mode of its VENUS_COLOR_MARK.
References scFieldActorSetSpriteColor() and Sint32.
Referenced by VenusGreyStatueScript.
Definition at line 459 of file venus_lighthouse.c.
scVenusLighthouseClearScriptedSpriteFlags
Sint32 scVenusLighthouseClearScriptedSpriteFlags(void *actor)
Clears the scripted actor's sprite flags and advances its script.
References fdActorSetSpriteFlags() and Sint32.
Referenced by VenusMiniatureLighthouseScript.
Definition at line 466 of file venus_lighthouse.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References ActorPlacements, MainRoutineStateWork and VenusLighthouseOpeningActorPlacements.
Definition at line 472 of file venus_lighthouse.c.
scVenusLighthouseFelixLeaves
void scVenusLighthouseFelixLeaves(void)
The prologue's opening: Felix nods to Jenna and Kraden, moves the statue onto the floor switch with Psynergy, nods again and goes off alone by the room's other stairs, beyond the switch.
References fdActorFaceDirection(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorWalkToAndWait(), fdExitPrepareActorAnimation(), fdScriptPlaySound(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), scFieldActorWatchAndSetScript(), scFieldScriptWait(), scVenusLighthouseFelixMovesStatue() and scVenusLighthouseSinkStatue().
Referenced by scInit().
Definition at lines 479 and 751 of file venus_lighthouse.c.
scVenusLighthouseDoubtLeaving
void scVenusLighthouseDoubtLeaving(void)
Jenna doubts they should have left Felix; Alex appears in sparks and asks after him, and the three go down the stairs to leave the lighthouse.
References fdActorAppearInSparks(), fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetDestination(), fdActorWalkByAndWait(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdMapGridCopyMetatilesTo(), fdScriptClearFlag(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptShowMessage(), fdScriptWaitTransitionTicks(), gmPartyRemoveMember(), MainRoutineStateWork, scFieldActorShowEmote(), scFieldActorStartRepeatedMotion(), scFieldActorWaitForMoveById(), scFieldActorWatchAndSetScript(), scFieldScriptSetExitRequest(), scFieldScriptSetMessageId(), scFieldScriptWait(), scScriptCameraFollowActor(), scVenusLighthouseGoDownStairs() and Sint32.
Referenced by scInit().
Definition at lines 480 and 811 of file venus_lighthouse.c.
scVenusLighthouseRepelLeader
void scVenusLighthouseRepelLeader(void)
Until the statue holds the floor switch down, stepping onto the barrier throws the leader back, dazed and flashing.
References fdActorFlagsSet(), fdActorGetById(), fdActorSetAnimationAndWait(), fdActorSetMovementTypeById(), fdActorSetSpriteColor(), fdActorWaitForScriptEndById(), fdActorWalkToAndWaitById(), fdPartyGetLeaderActor(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait(), scFieldActorShowEmote(), scVenusLighthouseEmitRisingParticles(), Sint32 and VenusLeaderDazedScript.
Referenced by SceneCues.
Definition at line 490 of file venus_lighthouse.c.
scVenusLighthouseStepOnFloorSwitch
void scVenusLighthouseStepOnFloorSwitch(void)
Standing on the floor switch presses it
(FLAG_VENUS_LIGHTHOUSE_ON_GROUND_FLOOR_SWITCH) and lowers the leader into it;
stepping off releases it.
References fdActorGetById(), fdMapGridCopyMetatilesTo(), fdMapGridCopyMetatileTilesIndicesRect(), fdPartyGetLeaderActor(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), Sint32, syGameFlagClear(), syGameFlagSet() and sySoundPlay().
Referenced by SceneCues.
Definition at line 533 of file venus_lighthouse.c.
scVenusLighthouseSinkStatue
void scVenusLighthouseSinkStatue(void)
The statue Felix moved onto the floor switch, in column 42, sinks in and holds it down, and the barrier lets the leader by.
References fdActorGet(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), scFieldScriptEndLastingPsynergy() and scFieldScriptWait().
Referenced by scVenusLighthouseFelixLeaves().
Definition at line 566 of file venus_lighthouse.c.
scVenusLighthouseReadRelief
void scVenusLighthouseReadRelief(void)
Searching the relief shows its words.
References fdActorSetAnimation(), fdScriptEnd(), fdScriptStart(), mnMessageShowCentered(), scFieldPartyGetLeaderActor(), scFieldScriptEndLastingPsynergy() and Sint32.
Referenced by SceneCues.
Definition at line 587 of file venus_lighthouse.c.
scVenusLighthouseReadTrueHeart
void scVenusLighthouseReadTrueHeart(void)
Searching the other relief shows that only a true heart knows the road.
References fdActorSetAnimation(), fdScriptEnd(), fdScriptStart(), mnMessageShowCentered(), scFieldPartyGetLeaderActor(), scFieldScriptEndLastingPsynergy() and Sint32.
Referenced by SceneCues.
Definition at line 598 of file venus_lighthouse.c.
scVenusLighthouseHidePaths
void scVenusLighthouseHidePaths(void)
Reveal fades: the two ways it opened are reliefs again
(scVenusLighthouseRevealPaths).
References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesTo().
Referenced by SceneCues.
Definition at line 610 of file venus_lighthouse.c.
scVenusLighthouseRevealPaths
void scVenusLighthouseRevealPaths(void)
Reveal shows two hidden ways, each from metatiles kept beside the map: the
fifth relief in the room of reliefs, metatile (23, 10), becomes an archway,
VENUS_LIGHTHOUSE_RELIEFS_TO_CARRY_STONE_WEST, and the True Heart relief by
the stairs in the floor switch's room, (47, 57), becomes
VENUS_LIGHTHOUSE_FLOOR_SWITCH_TO_GREAT_STATUE.
References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesTo().
Referenced by SceneCues.
Definition at line 625 of file venus_lighthouse.c.
scGetCues
const CUE *scGetCues(void)
References SceneCues.
Definition at line 635 of file venus_lighthouse.c.
scVenusLighthouseIdle
Sint32 scVenusLighthouseIdle(void)
Does nothing: the end of Felix's Move, which leaves the rest to the script.
References Sint32.
Referenced by scVenusLighthouseFelixMovesStatue().
Definition at line 641 of file venus_lighthouse.c.
scVenusLighthouseFelixMovesStatue
void scVenusLighthouseFelixMovesStatue(void)
Felix casts Move on the statue, which slides onto the floor switch.
References fdBattleEffectStopMainActor(), fdPsynergyEnd(), fdPsynergyLoadResources(), fdPsynergyRunHandler(), fdPsynergySetupActorPair(), fdPsynergyStartCast(), scFieldScriptWait() and scVenusLighthouseIdle().
Referenced by scVenusLighthouseFelixLeaves().
Definition at line 647 of file venus_lighthouse.c.
scVenusLighthouseGreyStatues
static inline void scVenusLighthouseGreyStatues(void)
Draws the lady statues grey: the floor switch's, and the nine of the two rooms by the entrance.
References fdActorGet() and scFieldActorSetSpriteColor().
Referenced by scInit().
Definition at line 662 of file venus_lighthouse.c.
scInit
Sint32 scInit(void)
References fdScriptEnd(), fdScriptStart(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scVenusLighthouseDoubtLeaving(), scVenusLighthouseFelixLeaves(), scVenusLighthouseGreyStatues() and Sint32.
Definition at lines 690 and 712 of file venus_lighthouse.c.
scPrepareMap
Sint32 scPrepareMap(void)
References Sint32.
Definition at line 737 of file venus_lighthouse.c.
scVenusLighthouseGoDownStairs
static inline void scVenusLighthouseGoDownStairs(Sint32 actor, Sint32 side)
Has the actor go down the stairs (fdExitPrepareActorAnimation).
References fdExitPrepareActorAnimation() and Sint32.
Referenced by scVenusLighthouseDoubtLeaving().
Definition at line 743 of file venus_lighthouse.c.
Variables in detail
FieldEffectDurationScripts
extern const Sint32 *FieldEffectDurationScripts[]
const Sint32 *FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().
Definition at lines 211 and 1339 of file venus_lighthouse.c.
VenusLighthouseOpeningActorPlacements
extern ACTOR_PLACE VenusLighthouseOpeningActorPlacements[]
ACTOR_PLACE VenusLighthouseOpeningActorPlacements[]
References Sint32 and VenusGreyStatueScript.
Referenced by scGetActorPlacements().
Definition at lines 441 and 1655 of file venus_lighthouse.c.
FieldEffectShortScript
extern Uint32 FieldEffectShortScript[]
Uint32 FieldEffectShortScript[]
Referenced by FieldEffectDurationScripts.
Definition at lines 482 and 1309 of file venus_lighthouse.c.
FieldEffectMediumScript
extern Uint32 FieldEffectMediumScript[]
Uint32 FieldEffectMediumScript[]
Referenced by FieldEffectDurationScripts, scAirsRockBlowGust(), scAirsRockInsideBlowGust(), scAirsRockInsideWakeEntranceStatue(), scAirsRockInsideWakeHallStatue(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAirsRockWhirlwindOpensTheTop(), scGabombaCatacombsGabombaBestowsPower() and scShamanVillageBlowAwaySand().
Definition at lines 483 and 1318 of file venus_lighthouse.c.
VenusGreyStatueScript
extern Sint32 VenusGreyStatueScript[]
Sint32 VenusGreyStatueScript[]
The statues' actor script. They are drawn grey (VENUS_COLOR_MARK), and never
pushed (SW_VENUS_IMMOVABLE).
References scVenusLighthouseApplyMarkedColor() and Sint32.
Referenced by ActorPlacements and VenusLighthouseOpeningActorPlacements.
Definition at lines 484 and 1472 of file venus_lighthouse.c.
VenusMiniatureLighthouseScript
extern Sint32 VenusMiniatureLighthouseScript[]
Sint32 VenusMiniatureLighthouseScript[]
The actor script of the World Map's picture of Venus Lighthouse, placed at three fifths of its size, with no collision.
References scVenusLighthouseClearScriptedSpriteFlags() and Sint32.
Referenced by ActorPlacements.
Definition at lines 485 and 1481 of file venus_lighthouse.c.
VenusLeaderDazedScript
extern Sint32 VenusLeaderDazedScript[]
Sint32 VenusLeaderDazedScript[]
The leader's actor script as the barrier throws him back
(scVenusLighthouseRepelLeader). He stands stiff with his back to us, as
clinging to a wall, and swells and shrinks ten times, flashing
(scVenusLighthouseFlashStruckLeader).
References scVenusLighthouseFlashStruckLeader() and Sint32.
Referenced by scVenusLighthouseRepelLeader().
Definition at lines 486 and 1349 of file venus_lighthouse.c.
FieldEffectLongScript
extern Uint32 FieldEffectLongScript[]
Uint32 FieldEffectLongScript[]
Referenced by FieldEffectDurationScripts.
Definition at lines 1306 and 1327 of file venus_lighthouse.c.
SceneEntrances
SCENE_ENTRANCE SceneEntrances[]
Referenced by scGetEntrances().
Definition at line 1365 of file venus_lighthouse.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 1396 of file venus_lighthouse.c.
ActorPlacements
ACTOR_PLACE ActorPlacements[]
References Sint32, VenusGreyStatueScript and VenusMiniatureLighthouseScript.
Referenced by scGetActorPlacements().
Definition at line 1489 of file venus_lighthouse.c.
SceneCues
CUE SceneCues[]
References scVenusLighthouseHidePaths(), scVenusLighthouseReadRelief(), scVenusLighthouseReadTrueHeart(), scVenusLighthouseRepelLeader(), scVenusLighthouseRevealPaths() and scVenusLighthouseStepOnFloorSwitch().
Referenced by scGetCues().
Definition at line 1704 of file venus_lighthouse.c.