Skip to Content
The Alchemy Project

src/scene/sol_sanctum_elemental_star_room.c

Elemental Star Room (SceneIdSolSanctumElementalStarRoom), the heart of Sol Sanctum, reached through the portal in the Luna and Sol rooms (SceneIdSolSanctumLunaSolRooms). More…

Macros

NameDescription
#definescSolSanctumElementalStarRoomPresentStar (item, x, y, z)scSolSanctumElementalStarRoomPresentStarFX at a point in whole pixels.
#defineMIDDLE_LAYER_ROW 40The room's map (sol_sanctum_elemental_star_room) draws its middle layer from the grid 40 rows down and its overhead layer from 56 columns across, so a metatile of either layer is written as the room's metatile plus that start.
#defineOVERHEAD_LAYER_COLUMN 56
#definePUT_OUT_STAR_LIGHT (column, row)Puts out the glow round a statue's star once the star is taken.
#defineRISEN_PILLAR_LEFT (column) (OVERHEAD_LAYER_COLUMN + (column) - 1)The overhead layer's column where a risen pillar's picture starts, three metatiles wide about the pillar's own column.
#defineOPEN_RISEN_PILLAR (column, row)Lets the party onto a risen pillar whose top is the metatile (column, row).
#defineDRAW_RISEN_PILLAR (column, row)Draws a sunken pillar risen, as bagging a star raises three of them into stepping stones: its picture, 3 by 4 metatiles on the overhead layer, then OPEN_RISEN_PILLAR.

Enumerations

NameDescription
enumSTAR_ROOM_ACTOR_ID { ACTOR_PLATFORM_SHADOW, ACTOR_KRADEN, ACTOR_SATUROS, ACTOR_ME … }The placed actors, numbered in the order of SolSanctumElementalStarRoomActorPlacements.
enumSOL_SANCTUM_ELEMENTAL_STAR_ROOM_METATILE_BEHAVIOR { METATILE_BEHAVIOR_SOL_SANCTUM_ELEMENTAL_STAR_ROOM_WAY_BACK, … }The metatile behaviors the scripts answer.

Functions

NameDescription
static voidscSolSanctumElementalStarRoomBagJupiterStar (void)The room flashes the purple of wind and three pillars rise, by the Jupiter statue and on the way north to the Mars Star; then the star's glow goes out and Isaac puts the Jupiter Star in a Mythril Bag.
static voidscSolSanctumElementalStarRoomRevealSaturosAndMenardi (void)Isaac and Garet turn back to find Saturos and Menardi holding Jenna and Kraden on the centre platform.
static voidscSolSanctumElementalStarRoomDemandElementalStars (void)Saturos and Menardi demand the stars, and the masked man with them, Felix, appears beside them.
static voidscSolSanctumElementalStarRoomOfferHostageGuarantee (void)Menardi offers a guarantee of the hostages' safety, and the masked man must remove his mask.
static voidscSolSanctumElementalStarRoomFelixRemovesMask (void)Felix unmasks and tells Jenna he survived, saved by Saturos and Menardi.
static voidscSolSanctumElementalStarRoomAlexTakesStars (void)Alex appears, takes the three stars from Garet and demands the last one.
static voidscSolSanctumElementalStarRoomStandAroundHostages (void)Stands Saturos, Menardi, Felix and Alex round Jenna and Kraden after the exchange, all turning to face the leader.
static voidscSolSanctumElementalStarRoomShowMessageAndWait (Sint32 speaker, Sint32 ticks)Shows the script's next line at the speaker, then waits the ticks.
static Sint32scSolSanctumElementalStarRoomPresentStarFX (Sint32 item, FIXED x, FIXED y, FIXED z)Raises a star's picture from a point (16.16 fixed-point pixels) to the treasure fanfare, and swaps the first Mythril Bag among the party's items for the star.
static voidscSolSanctumElementalStarRoomGiveMythrilBags (void)Makes room among the items and gives the party four Mythril Bags, keeping the dialogue's place.
static voidscSolSanctumElementalStarRoomAlexWarpsIn (void)Alex warps in where he has been placed, hidden.
static inline voidscSolSanctumElementalStarRoomSkipMessages (Sint32 amount)Advances through the current dialogue's consecutive messages.
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)Some villagers only turn back after talking once the flood is over or their family has gone home.
const CUE *scGetCues (void)Returns the statues' examine cues, the talk rows, the beam of light that Kraden calls the party back from, and the edges to jump from.
static voidscSolSanctumElementalStarRoomBagVenusStar (void)Isaac searches the statue in the south east of the room (metatile (44, 28)) and puts the Venus Star in a Mythril Bag, and three pillars rise out of the dark.
static voidscSolSanctumElementalStarRoomBagMercuryStar (void)Isaac searches the statue in the north east of the room (metatile (44, 8)) and puts the Mercury Star in a Mythril Bag, and three more pillars rise.
static voidscSolSanctumElementalStarRoomBagJupiterStarAndMeetSaturos (void)Isaac searches the statue in the south west of the room (metatile (14, 28)) and puts the Jupiter Star in a Mythril Bag.
static voidscSolSanctumElementalStarRoomTakeMarsStar (void)Isaac searches the statue in the north west of the room (metatile (14, 8)) and puts the Mars Star in a Mythril Bag, and the Sanctum starts to shake apart.
static voidscSolSanctumElementalStarRoomTalkToKraden (void)Kraden, on the middle platform, sends the boys for the stars: "Now, put the Elemental Stars in those bags and bring them here," and once the Venus Star is taken, "Good, good.
static voidscSolSanctumElementalStarRoomTalkToJenna (void)Jenna, on the middle platform, says "Be careful, both of you," and once the Venus Star is taken, teases "Kraden, you're as giddy as a schoolgirl."
static voidscSolSanctumElementalStarRoomTalkToSaturos (void)Saturos, standing over the hostages, says "If you want to save them, you'll bring us the final Elemental Star." His Mind Read row shows the same.
static voidscSolSanctumElementalStarRoomTalkToMenardi (void)Menardi, standing over the hostages, snaps "What are you doing?
static voidscSolSanctumElementalStarRoomTalkToFelix (void)Felix, unmasked beside the hostages, says nothing: "..."
static voidscSolSanctumElementalStarRoomTalkToAlex (void)Alex, holding the three stars, says "There is only one left.
static voidscSolSanctumElementalStarRoomKradenStopsPartyLeaving (void)Walking north from the middle platform into the beam of light the party came through (metatiles (29, 17) and (29, 18)) has Kraden call out "There aren't any Elemental Stars out there!", and Isaac stays in the room.
static voidscSolSanctumElementalStarRoomJumpAhead (void)Isaac jumps across a gap to the next pillar when he walks off one of three edges: east off the Venus statue's pillar to the slender pillar beside it (metatile (45, 28)), east at metatile (15, 21) on the west side, or south off the middle platform (metatile (29, 22)).
static inline voidscSolSanctumElementalStarRoomShowElementalStar (Sint32 cameraX, Sint32 cameraZ, Sint32 actorX, Sint32 actorZ, Sint32 speaker)Shows one of the Elemental Stars, Kraden beside it, while he describes it, then turns the view back to the party; the camera's point and Kraden's spot are in whole pixels.
static voidscSolSanctumElementalStarRoomEnterStarRoom (void)The first time through the portal, Isaac floats down onto the middle platform with Garet and Jenna, Kraden follows, and he tells them of the Elemental Stars before sending the boys to fetch them with four Mythril Bags.
Sint32scInit (void)Sets up the Elemental Star Room.

Variables

NameDescription
extern Sint32SolSanctumElementalStarRoomAngleScript []
extern Sint32ItemIconGrowScript []An item icon's entrance: drawn at half size, it grows to full size over 8 ticks, holds for 16, then swells to one and a half times its size and back twice.
extern Uint32SolSanctumElementalStarRoomExits []
extern ACTOR_PLACESolSanctumElementalStarRoomActorPlacements []
extern CUESolSanctumElementalStarRoomCues []
extern Uint16SolSanctumStarMetatiles []
const Sint32 *FieldEffectDurationScripts []The resident copy of the scripts EFFECT_SCRIPT_MASK picks, by enum EFFECT_DURATION.

Description

Elemental Star Room (SceneIdSolSanctumElementalStarRoom), the heart of Sol Sanctum, reached through the portal in the Luna and Sol rooms (SceneIdSolSanctumLunaSolRooms). Stone pillars stand in a starry dark, and at the four corners a statue holds up a glowing Elemental Star: the Venus Star in the south east, the Mercury Star in the north east, the Jupiter Star in the south west and the Mars Star in the north west. The party arrives on the platform in the middle, under the beam of light it came through.

In story order:

  • On the first arrival (scSolSanctumElementalStarRoomEnterStarRoom) Isaac, Garet, Jenna and Kraden appear on the middle platform. Kraden names each star as the view goes to it, is too unsteady on the slippery stone to fetch them himself, and gives Isaac four Mythril Bags. Jenna leaves the party and waits with him on the platform, and Kraden calls the boys back if they walk back into the light (scSolSanctumElementalStarRoomKradenStopsPartyLeaving).
  • Only the Venus Star can be reached at first. Searching a statue puts its star in a Mythril Bag; the room shakes and three sunken pillars rise out of the dark as stepping stones to the next. The Venus Star opens the way to the Mercury Star, and the two open the way to the Jupiter Star.
  • Taking the Jupiter Star brings out Saturos and Menardi, holding Jenna and Kraden on the middle platform (scSolSanctumElementalStarRoomBagJupiterStarAndMeetSaturos). Their masked companion takes off his mask and is Felix, Jenna's brother, and Alex appears and takes the three stars from Garet. From then on the four stand round Jenna and Kraden, each with a word about the last star.
  • Taking the Mars Star, in the north west, sets the room quaking, and the story goes on in the eruption (scSolSanctumElementalStarRoomTakeMarsStar, SceneIdSolSanctumEruption, sol_sanctum_eruption.c).

A star is taken once, because each statue's examine cue row holds only until its flag is set. A return after a battle finds the room as it was: on every entry scInit puts out the taken stars' glow and redraws the pillars each star raised, and once Alex holds the stars it lines up the captors again (scSolSanctumElementalStarRoomStandAroundHostages).

Ten lights float about the room (scSolSanctumStartFloatingLights), and Retreat does not work here.

Whoever arrives on the platform appears 40 pixels above it at a tenth of his size. He grows to full size and floats down onto it, over a shadow that grows with him. The platform's actor, ACTOR_PLATFORM_SHADOW, draws that shadow.

Macros in detail

scSolSanctumElementalStarRoomPresentStar

#define scSolSanctumElementalStarRoomPresentStar(item, x, y, z)

scSolSanctumElementalStarRoomPresentStarFX at a point in whole pixels.

Referenced by scSolSanctumElementalStarRoomBagJupiterStar(), scSolSanctumElementalStarRoomBagMercuryStar(), scSolSanctumElementalStarRoomBagVenusStar() and scSolSanctumElementalStarRoomTakeMarsStar().

Definition at line 76 of file sol_sanctum_elemental_star_room.c.

MIDDLE_LAYER_ROW

#define MIDDLE_LAYER_ROW 40

The room's map (sol_sanctum_elemental_star_room) draws its middle layer from the grid 40 rows down and its overhead layer from 56 columns across, so a metatile of either layer is written as the room's metatile plus that start.

Referenced by scSolSanctumEntranceRestoreInteriorState(), scSolSanctumEntranceSetFirstSmallJewel() and scSolSanctumEntranceSetSecondSmallJewel().

Definition at line 191 of file sol_sanctum_elemental_star_room.c.

OVERHEAD_LAYER_COLUMN

#define OVERHEAD_LAYER_COLUMN 56

Definition at line 192 of file sol_sanctum_elemental_star_room.c.

PUT_OUT_STAR_LIGHT

#define PUT_OUT_STAR_LIGHT(column, row)

Puts out the glow round a statue's star once the star is taken.

It draws a blank 3-by-3 of the middle layer over the glow drawn above the statue, whose top-left metatile is (column, row).

Referenced by scInit(), scSolSanctumElementalStarRoomBagJupiterStar(), scSolSanctumElementalStarRoomBagMercuryStar(), scSolSanctumElementalStarRoomBagVenusStar() and scSolSanctumElementalStarRoomTakeMarsStar().

Definition at line 198 of file sol_sanctum_elemental_star_room.c.

RISEN_PILLAR_LEFT

#define RISEN_PILLAR_LEFT(column) (OVERHEAD_LAYER_COLUMN + (column) - 1)

The overhead layer's column where a risen pillar's picture starts, three metatiles wide about the pillar's own column.

Referenced by scSolSanctumElementalStarRoomBagJupiterStar(), scSolSanctumElementalStarRoomBagMercuryStar() and scSolSanctumElementalStarRoomBagVenusStar().

Definition at line 204 of file sol_sanctum_elemental_star_room.c.

OPEN_RISEN_PILLAR

#define OPEN_RISEN_PILLAR(column, row)

Lets the party onto a risen pillar whose top is the metatile (column, row).

The top takes plain ground, and the two ground-layer metatiles under its shaft are redrawn.

Referenced by scSolSanctumElementalStarRoomBagJupiterStar(), scSolSanctumElementalStarRoomBagMercuryStar() and scSolSanctumElementalStarRoomBagVenusStar().

Definition at line 210 of file sol_sanctum_elemental_star_room.c.

DRAW_RISEN_PILLAR

#define DRAW_RISEN_PILLAR(column, row)

Draws a sunken pillar risen, as bagging a star raises three of them into stepping stones: its picture, 3 by 4 metatiles on the overhead layer, then OPEN_RISEN_PILLAR. The scripts play the rise (SolSanctumStarMetatiles) where this draws its last picture.

Referenced by scInit().

Definition at line 218 of file sol_sanctum_elemental_star_room.c.

Enumerations in detail

STAR_ROOM_ACTOR_ID

enum STAR_ROOM_ACTOR_ID

The placed actors, numbered in the order of SolSanctumElementalStarRoomActorPlacements.

Garet and Jenna, placed first, keep their own slots.

EnumeratorValueDescription
ACTOR_PLATFORM_SHADOWACTOR_FIRST_PLACEDThe shadow on the arrival platform under whoever appears there. It is a blank actor, whose sprite draws only its shadow, set at (471, 290). It grows from a tenth of its size with the arriving actor, whose own shadow is turned off while he floats above the platform. That is Isaac and Kraden in scSolSanctumElementalStarRoomEnterStarRoom, and Felix in scSolSanctumElementalStarRoomDemandElementalStars.
ACTOR_KRADEN
ACTOR_SATUROS
ACTOR_MENARDI
ACTOR_FELIX_MASKEDFelix in his mask, until scSolSanctumElementalStarRoomFelixRemovesMask.
ACTOR_FELIX
ACTOR_ALEX
ACTOR_FIRST_FLOATING_LIGHTThe first of the ten lights that float about
ACTOR_LAST_FLOATING_LIGHTACTOR_FIRST_FLOATING_LIGHT + 9the room, all one sprite (scSolSanctumStartFloatingLights).

Definition at line 86 of file sol_sanctum_elemental_star_room.c.

SOL_SANCTUM_ELEMENTAL_STAR_ROOM_METATILE_BEHAVIOR

enum SOL_SANCTUM_ELEMENTAL_STAR_ROOM_METATILE_BEHAVIOR

The metatile behaviors the scripts answer.

EnumeratorValueDescription
METATILE_BEHAVIOR_SOL_SANCTUM_ELEMENTAL_STAR_ROOM_WAY_BACK1The beam
METATILE_BEHAVIOR_SOL_SANCTUM_ELEMENTAL_STAR_ROOM_VENUS_STATUE2of light north of the middle platform, the way back to the Luna and Sol rooms: metatiles (29, 17) and (29, 18). The
METATILE_BEHAVIOR_SOL_SANCTUM_ELEMENTAL_STAR_ROOM_MERCURY_STATUE3statue holding the Venus Star, in the south east: metatile (44, 28). The
METATILE_BEHAVIOR_SOL_SANCTUM_ELEMENTAL_STAR_ROOM_JUPITER_STATUE4statue holding the Mercury Star, in the north east: metatile (44, 8). The
METATILE_BEHAVIOR_SOL_SANCTUM_ELEMENTAL_STAR_ROOM_MARS_STATUE5statue holding the Jupiter Star, in the south west: metatile (14, 28). The
METATILE_BEHAVIOR_SOL_SANCTUM_ELEMENTAL_STAR_ROOM_JUMP_EAST10statue holding the Mars Star, in the north west: metatile (14, 8). A pillar's edge to jump east from: (15, 21) and (45, 28).
METATILE_BEHAVIOR_SOL_SANCTUM_ELEMENTAL_STAR_ROOM_JUMP_SOUTH11The middle platform's south edge, to jump south from: (29, 22).

Definition at line 110 of file sol_sanctum_elemental_star_room.c.

Functions in detail

scSolSanctumElementalStarRoomBagJupiterStar

static void scSolSanctumElementalStarRoomBagJupiterStar(void)

The room flashes the purple of wind and three pillars rise, by the Jupiter statue and on the way north to the Mars Star; then the star's glow goes out and Isaac puts the Jupiter Star in a Mythril Bag.

References fdCameraWaitForMove(), fdMapGridCenterOnFollowedPoint(), fdMapGridPlayMapEdit(), fdMapGridWaitForShakeToSettle(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptFinishScreenTransition(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), mnFieldMessageShow(), mnMessageArgumentPush(), Sint32, SolSanctumStarMetatiles, sySoundPlay() and sySynch().

Referenced by scSolSanctumElementalStarRoomBagJupiterStarAndMeetSaturos().

Definition at lines 62 and 510 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomRevealSaturosAndMenardi

static void scSolSanctumElementalStarRoomRevealSaturosAndMenardi(void)

Isaac and Garet turn back to find Saturos and Menardi holding Jenna and Kraden on the centre platform.

References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetPosFX(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdScriptWait() and sySoundPlay().

Referenced by scSolSanctumElementalStarRoomBagJupiterStarAndMeetSaturos().

Definition at lines 63 and 588 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomDemandElementalStars

static void scSolSanctumElementalStarRoomDemandElementalStars(void)

Saturos and Menardi demand the stars, and the masked man with them, Felix, appears beside them.

References fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetSpriteColorById(), fdActorSetSpritePriority(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdMapGridCenterOnFollowedPoint(), fdScriptAskYesNoWithActorAnimation(), fdScriptFinishScreenTransition(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), scSolSanctumElementalStarRoomShowMessageAndWait(), scSolSanctumElementalStarRoomSkipMessages(), Sint32, sySoundPlay() and sySynch().

Referenced by scSolSanctumElementalStarRoomBagJupiterStarAndMeetSaturos().

Definition at lines 64 and 647 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomOfferHostageGuarantee

static void scSolSanctumElementalStarRoomOfferHostageGuarantee(void)

Menardi offers a guarantee of the hostages' safety, and the masked man must remove his mask.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdMapGridCenterOnFollowedPoint(), fdScriptAskYesNo(), fdScriptFinishScreenTransition(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), scSolSanctumElementalStarRoomShowMessageAndWait() and sySynch().

Referenced by scSolSanctumElementalStarRoomBagJupiterStarAndMeetSaturos().

Definition at lines 65 and 824 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomFelixRemovesMask

static void scSolSanctumElementalStarRoomFelixRemovesMask(void)

Felix unmasks and tells Jenna he survived, saved by Saturos and Menardi.

References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorMoveToAndWait(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetDestination(), fdActorSetPosFX(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraFollowActor(), fdCameraWaitForMove(), fdMapGridCenterOnFollowedPoint(), fdScriptAskYesNoWithActorAnimation(), fdScriptFinishScreenTransition(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmUnitGet(), mnFieldMessageShowCentered(), scSolSanctumElementalStarRoomShowMessageAndWait(), Sint32, sySoundPlay() and sySynch().

Referenced by scSolSanctumElementalStarRoomBagJupiterStarAndMeetSaturos().

Definition at lines 66 and 941 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomAlexTakesStars

static void scSolSanctumElementalStarRoomAlexTakesStars(void)

Alex appears, takes the three stars from Garet and demands the last one.

References fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorMoveToAndWait(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWalkToAndWait(), fdCameraFollowActor(), fdCameraWaitForMove(), fdMapGridCenterOnFollowedPoint(), fdScriptAskYesNoWithActorAnimation(), fdScriptFinishScreenTransition(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmPartyInventoryDiscard(), mnFieldMessageShowCentered(), scSolSanctumElementalStarRoomAlexWarpsIn(), scSolSanctumElementalStarRoomShowMessageAndWait(), scWalkIntoLeader(), sySoundPlay() and sySynch().

Referenced by scSolSanctumElementalStarRoomBagJupiterStarAndMeetSaturos().

Definition at lines 67 and 1162 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomStandAroundHostages

static void scSolSanctumElementalStarRoomStandAroundHostages(void)

Stands Saturos, Menardi, Felix and Alex round Jenna and Kraden after the exchange, all turning to face the leader.

References fdActorGet(), fdActorSetMovementTypeById(), fdActorStartScript(), fdScriptEnd(), fdScriptStart() and SolSanctumElementalStarRoomAngleScript.

Referenced by scInit() and scSolSanctumElementalStarRoomBagJupiterStarAndMeetSaturos().

Definition at lines 68 and 1352 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomShowMessageAndWait

static void scSolSanctumElementalStarRoomShowMessageAndWait(Sint32 speaker, Sint32 ticks)

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

References fdScriptShowMessage(), fdScriptWait() and Sint32.

Referenced by scSolSanctumElementalStarRoomAlexTakesStars(), scSolSanctumElementalStarRoomBagMercuryStar(), scSolSanctumElementalStarRoomBagVenusStar(), scSolSanctumElementalStarRoomDemandElementalStars(), scSolSanctumElementalStarRoomEnterStarRoom(), scSolSanctumElementalStarRoomFelixRemovesMask(), scSolSanctumElementalStarRoomKradenStopsPartyLeaving() and scSolSanctumElementalStarRoomOfferHostageGuarantee().

Definition at lines 69 and 2394 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomPresentStarFX

static Sint32 scSolSanctumElementalStarRoomPresentStarFX(Sint32 item, FIXED x, FIXED y, FIXED z)

Raises a star's picture from a point (16.16 fixed-point pixels) to the treasure fanfare, and swaps the first Mythril Bag among the party's items for the star. Returns who carried the bag, for the message that names him.

References fdActorRelease(), fdActorSetAnimation(), fdActorStartScript(), fdItemDisplayShowPicture(), glyph, gmInventoryAddItem(), gmInventoryDiscard(), gmInventoryFind(), gmPartyInventoryFindMember(), ItemIconGrowScript, mnIconDrawItem(), scFieldActorCreate(), Sint32, syHeapSlotAllocate(), syHeapSlotRelease(), sySoundPlay() and syVRAMCacheLoad().

Definition at lines 71 and 2404 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomGiveMythrilBags

static void scSolSanctumElementalStarRoomGiveMythrilBags(void)

Makes room among the items and gives the party four Mythril Bags, keeping the dialogue's place.

References gmInventoryCount(), gmInventoryDiscard(), gmItemShowFound(), gmPartyInventoryAdd(), mnFieldMessageShow(), mnItemPickerRun(), Sint32, state and sySoundPlay().

Referenced by scSolSanctumElementalStarRoomEnterStarRoom().

Definition at lines 79 and 2445 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomAlexWarpsIn

static void scSolSanctumElementalStarRoomAlexWarpsIn(void)

Alex warps in where he has been placed, hidden.

References fdActorGet(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdScriptWait() and sySoundPlay().

Referenced by scSolSanctumElementalStarRoomAlexTakesStars().

Definition at lines 80 and 2478 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomSkipMessages

static inline void scSolSanctumElementalStarRoomSkipMessages(Sint32 amount)

Advances through the current dialogue's consecutive messages.

References Sint32.

Referenced by scSolSanctumElementalStarRoomDemandElementalStars().

Definition at line 228 of file sol_sanctum_elemental_star_room.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SolSanctumStarRoomEntrances.

Definition at line 235 of file sol_sanctum_elemental_star_room.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 240 of file sol_sanctum_elemental_star_room.c.

scGetExits

const Uint32 *scGetExits(void)

References SolSanctumElementalStarRoomExits.

Definition at line 245 of file sol_sanctum_elemental_star_room.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References SolSanctumElementalStarRoomActorPlacements.

Definition at line 250 of file sol_sanctum_elemental_star_room.c.

scGetCues

const CUE *scGetCues(void)

Returns the statues' examine cues, the talk rows, the beam of light that Kraden calls the party back from, and the edges to jump from. The Mind Read rows are there too, though no one in the party knows Mind Read yet.

References SolSanctumElementalStarRoomCues.

Definition at line 258 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomBagVenusStar

static void scSolSanctumElementalStarRoomBagVenusStar(void)

Isaac searches the statue in the south east of the room (metatile (44, 28)) and puts the Venus Star in a Mythril Bag, and three pillars rise out of the dark.

The room rumbles and flashes the yellow of earth, and the view goes to each sunken pillar in turn as it rises with a clatter: one west of the Venus statue, one east of the Jupiter statue in the south west, and one west of the Mercury statue in the north east. Back at the Venus statue the star's glow goes out and the star rises over Isaac's head. Kraden, on the middle platform, hops for joy: "Good, good! Now, go fetch the others!"

References fdActorFaceDirection(), fdActorJump(), fdCameraWaitForMove(), fdMapGridCenterOnFollowedPoint(), fdMapGridPlayMapEdit(), fdMapGridSetScreenShake(), fdMapGridWaitForShakeToSettle(), fdPaletteFadeApplyTarget(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptSetMessageId(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagSet(), mnFieldMessageShow(), mnMessageArgumentPush(), scSolSanctumElementalStarRoomShowMessageAndWait(), Sint32, SolSanctumStarMetatiles, sySoundPlay() and sySynch().

Referenced by SolSanctumElementalStarRoomCues.

Definition at line 273 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomBagMercuryStar

static void scSolSanctumElementalStarRoomBagMercuryStar(void)

Isaac searches the statue in the north east of the room (metatile (44, 8)) and puts the Mercury Star in a Mythril Bag, and three more pillars rise.

It plays as the Venus Star does, the room flashing the blue of water. The pillars rise north of the middle platform, west of it, and in the south west by the Jupiter statue, which can now be reached. Kraden hops again: "Good, good! Now, go fetch the others!"

References fdActorFaceDirection(), fdActorJump(), fdCameraWaitForMove(), fdMapGridCenterOnFollowedPoint(), fdMapGridPlayMapEdit(), fdMapGridWaitForShakeToSettle(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptSetMessageId(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagSet(), mnFieldMessageShow(), mnMessageArgumentPush(), scSolSanctumElementalStarRoomShowMessageAndWait(), Sint32, SolSanctumStarMetatiles, sySoundPlay() and sySynch().

Referenced by SolSanctumElementalStarRoomCues.

Definition at line 381 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomBagJupiterStarAndMeetSaturos

static void scSolSanctumElementalStarRoomBagJupiterStarAndMeetSaturos(void)

Isaac searches the statue in the south west of the room (metatile (14, 28)) and puts the Jupiter Star in a Mythril Bag. Turning back, he and Garet find Saturos and Menardi holding Jenna and Kraden on the middle platform.

The captors demand the stars. Their masked companion takes off his mask and is Felix, Jenna's brother, believed dead since the day of the Boulder, and he becomes their guarantee that the hostages will not be harmed. Garet carries the three stars over, Alex warps in to take them, and the captors send the boys for the last one. The four then stand round Jenna and Kraden until the Mars Star is taken.

References fdScriptEnd(), fdScriptStart(), gmFlagSet(), scSolSanctumElementalStarRoomAlexTakesStars(), scSolSanctumElementalStarRoomBagJupiterStar(), scSolSanctumElementalStarRoomDemandElementalStars(), scSolSanctumElementalStarRoomFelixRemovesMask(), scSolSanctumElementalStarRoomOfferHostageGuarantee(), scSolSanctumElementalStarRoomRevealSaturosAndMenardi() and scSolSanctumElementalStarRoomStandAroundHostages().

Referenced by SolSanctumElementalStarRoomCues.

Definition at line 493 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomTakeMarsStar

static void scSolSanctumElementalStarRoomTakeMarsStar(void)

Isaac searches the statue in the north west of the room (metatile (14, 8)) and puts the Mars Star in a Mythril Bag, and the Sanctum starts to shake apart.

The room flashes red, the star's glow goes out and the star rises over Isaac's head. Garet steps out beside him; a crash shakes the room, the two look about them as it shakes again, and jump in alarm as the screen fades. The party goes on in the eruption, the same room breaking up (SceneIdSolSanctumEruption). The statue can be searched only until then (FLAG_SOL_SANCTUM_STAR_ROOM_COLLAPSED).

References fdActorFaceDirection(), fdActorFaceEachOther(), fdActorJump(), fdActorWalkToAndWait(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), mnFieldMessageShow(), mnMessageArgumentPush(), scPlaceAtLeader(), Sint32, syImportScriptSetExitRequest() and sySoundPlay().

Referenced by SolSanctumElementalStarRoomCues.

Definition at line 1413 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomTalkToKraden

static void scSolSanctumElementalStarRoomTalkToKraden(void)

Kraden, on the middle platform, sends the boys for the stars: "Now, put the Elemental Stars in those bags and bring them here," and once the Venus Star is taken, "Good, good. Now go fetch the others!"

Once Saturos holds him, he says only, "I am sorry, everyone... I am responsible for all of this." His Mind Read row shows that line at any time, though neither Isaac nor Garet knows Mind Read yet.

References fdActorFaceEachOther(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait() and gmFlagGet().

Referenced by SolSanctumElementalStarRoomCues.

Definition at line 1494 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomTalkToJenna

static void scSolSanctumElementalStarRoomTalkToJenna(void)

Jenna, on the middle platform, says "Be careful, both of you," and once the Venus Star is taken, teases "Kraden, you're as giddy as a schoolgirl."

Once Saturos holds her, she wonders, "My brother is alive... but...why didn't he tell me sooner?" Her Mind Read row runs the same.

References fdActorFaceEachOther(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait() and gmFlagGet().

Referenced by SolSanctumElementalStarRoomCues.

Definition at line 1523 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomTalkToSaturos

static void scSolSanctumElementalStarRoomTalkToSaturos(void)

Saturos, standing over the hostages, says "If you want to save them, you'll bring us the final Elemental Star." His Mind Read row shows the same.

References fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage() and fdScriptStart().

Referenced by SolSanctumElementalStarRoomCues.

Definition at line 1549 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomTalkToMenardi

static void scSolSanctumElementalStarRoomTalkToMenardi(void)

Menardi, standing over the hostages, snaps "What are you doing? Bring us the final gem!" Her Mind Read row runs the same.

References fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage() and fdScriptStart().

Referenced by SolSanctumElementalStarRoomCues.

Definition at line 1560 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomTalkToFelix

static void scSolSanctumElementalStarRoomTalkToFelix(void)

Felix, unmasked beside the hostages, says nothing: "..."

References fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage() and fdScriptStart().

Referenced by SolSanctumElementalStarRoomCues.

Definition at line 1570 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomTalkToAlex

static void scSolSanctumElementalStarRoomTalkToAlex(void)

Alex, holding the three stars, says "There is only one left. You're almost done." His Mind Read row shows the same.

References fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage() and fdScriptStart().

Referenced by SolSanctumElementalStarRoomCues.

Definition at line 1581 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomKradenStopsPartyLeaving

static void scSolSanctumElementalStarRoomKradenStopsPartyLeaving(void)

Walking north from the middle platform into the beam of light the party came through (metatiles (29, 17) and (29, 18)) has Kraden call out "There aren't any Elemental Stars out there!", and Isaac stays in the room.

References fdScriptEnd(), fdScriptSetMessageId(), fdScriptStart() and scSolSanctumElementalStarRoomShowMessageAndWait().

Referenced by SolSanctumElementalStarRoomCues.

Definition at line 1593 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomJumpAhead

static void scSolSanctumElementalStarRoomJumpAhead(void)

Isaac jumps across a gap to the next pillar when he walks off one of three edges: east off the Venus statue's pillar to the slender pillar beside it (metatile (45, 28)), east at metatile (15, 21) on the west side, or south off the middle platform (metatile (29, 22)).

fdTryJumpForward makes the jump, two metatiles ahead.

References fdTryJumpForward().

Referenced by SolSanctumElementalStarRoomCues.

Definition at line 1608 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomShowElementalStar

static inline void scSolSanctumElementalStarRoomShowElementalStar(Sint32 cameraX, Sint32 cameraZ, Sint32 actorX, Sint32 actorZ, Sint32 speaker)

Shows one of the Elemental Stars, Kraden beside it, while he describes it, then turns the view back to the party; the camera's point and Kraden's spot are in whole pixels.

References fdCameraMoveToFX(), fdCameraWaitForMove(), fdScriptShowMessage(), fdScriptWait() and Sint32.

Referenced by scSolSanctumElementalStarRoomEnterStarRoom().

Definition at line 1616 of file sol_sanctum_elemental_star_room.c.

scSolSanctumElementalStarRoomEnterStarRoom

static void scSolSanctumElementalStarRoomEnterStarRoom(void)

The first time through the portal, Isaac floats down onto the middle platform with Garet and Jenna, Kraden follows, and he tells them of the Elemental Stars before sending the boys to fetch them with four Mythril Bags.

Kraden names each star as the view goes to its statue, speaks of the Wisdom Stone, then steps out onto the stone and nearly slips ("Be careful, Kraden! It looks slippery."). Jenna asks Isaac to fetch the stars for him, and asks again until he says yes. Jenna leaves the party here and stays with Kraden.

References fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorJump(), fdActorMoveToAndWait(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetDestination(), fdActorSetMovementTypeById(), fdActorSetSpriteColorById(), fdActorSetSpritePriority(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorStop(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraFollowActor(), fdCameraWaitForMove(), fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatileAttributes(), fdPartyRemoveMemberRestored(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagClear(), gmFlagSet(), scPlaceAtLeader(), scSolSanctumElementalStarRoomGiveMythrilBags(), scSolSanctumElementalStarRoomShowElementalStar(), scSolSanctumElementalStarRoomShowMessageAndWait(), scWalkIntoLeader(), sySoundPlay() and sySynch().

Referenced by scInit().

Definition at line 1642 of file sol_sanctum_elemental_star_room.c.

scInit

Sint32 scInit(void)

Sets up the Elemental Star Room.

References fdActorGet(), fdActorSetSpritePriority(), fdPaletteFadeApplySource(), fdScriptGetFlag(), gmFlagGet(), gmFlagSet(), MainRoutineStateWork, scSolSanctumElementalStarRoomEnterStarRoom(), scSolSanctumElementalStarRoomStandAroundHostages(), scSolSanctumStartFloatingLights() and Sint32.

Definition at line 2340 of file sol_sanctum_elemental_star_room.c.

Variables in detail

SolSanctumElementalStarRoomAngleScript

extern Sint32 SolSanctumElementalStarRoomAngleScript[]

Sint32 SolSanctumElementalStarRoomAngleScript[]

References scTurnTowardTarget() and Sint32.

Referenced by scSolSanctumElementalStarRoomStandAroundHostages().

Definition at lines 55 and 2530 of file sol_sanctum_elemental_star_room.c.

SolSanctumElementalStarRoomExits

extern Uint32 SolSanctumElementalStarRoomExits[]

Uint32 SolSanctumElementalStarRoomExits[]

Referenced by scGetExits().

Definition at lines 57 and 2539 of file sol_sanctum_elemental_star_room.c.

SolSanctumElementalStarRoomActorPlacements

extern ACTOR_PLACE SolSanctumElementalStarRoomActorPlacements[]

ACTOR_PLACE SolSanctumElementalStarRoomActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 58 and 2548 of file sol_sanctum_elemental_star_room.c.

SolSanctumElementalStarRoomCues

extern CUE SolSanctumElementalStarRoomCues[]

CUE SolSanctumElementalStarRoomCues[]

References scSolSanctumElementalStarRoomBagJupiterStarAndMeetSaturos(), scSolSanctumElementalStarRoomBagMercuryStar(), scSolSanctumElementalStarRoomBagVenusStar(), scSolSanctumElementalStarRoomJumpAhead(), scSolSanctumElementalStarRoomKradenStopsPartyLeaving(), scSolSanctumElementalStarRoomTakeMarsStar(), scSolSanctumElementalStarRoomTalkToAlex(), scSolSanctumElementalStarRoomTalkToFelix(), scSolSanctumElementalStarRoomTalkToJenna(), scSolSanctumElementalStarRoomTalkToKraden(), scSolSanctumElementalStarRoomTalkToMenardi() and scSolSanctumElementalStarRoomTalkToSaturos().

Referenced by scGetCues().

Definition at lines 59 and 2590 of file sol_sanctum_elemental_star_room.c.

FieldEffectDurationScripts

const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

Definition at line 2524 of file sol_sanctum_elemental_star_room.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailscSolSanctumElementalStarRoomPresentStarMIDDLE_LAYER_ROWOVERHEAD_LAYER_COLUMNPUT_OUT_STAR_LIGHTRISEN_PILLAR_LEFTOPEN_RISEN_PILLARDRAW_RISEN_PILLAREnumerations in detailSTAR_ROOM_ACTOR_IDSOL_SANCTUM_ELEMENTAL_STAR_ROOM_METATILE_BEHAVIORFunctions in detailscSolSanctumElementalStarRoomBagJupiterStarscSolSanctumElementalStarRoomRevealSaturosAndMenardiscSolSanctumElementalStarRoomDemandElementalStarsscSolSanctumElementalStarRoomOfferHostageGuaranteescSolSanctumElementalStarRoomFelixRemovesMaskscSolSanctumElementalStarRoomAlexTakesStarsscSolSanctumElementalStarRoomStandAroundHostagesscSolSanctumElementalStarRoomShowMessageAndWaitscSolSanctumElementalStarRoomPresentStarFXscSolSanctumElementalStarRoomGiveMythrilBagsscSolSanctumElementalStarRoomAlexWarpsInscSolSanctumElementalStarRoomSkipMessagesscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscGetCuesscSolSanctumElementalStarRoomBagVenusStarscSolSanctumElementalStarRoomBagMercuryStarscSolSanctumElementalStarRoomBagJupiterStarAndMeetSaturosscSolSanctumElementalStarRoomTakeMarsStarscSolSanctumElementalStarRoomTalkToKradenscSolSanctumElementalStarRoomTalkToJennascSolSanctumElementalStarRoomTalkToSaturosscSolSanctumElementalStarRoomTalkToMenardiscSolSanctumElementalStarRoomTalkToFelixscSolSanctumElementalStarRoomTalkToAlexscSolSanctumElementalStarRoomKradenStopsPartyLeavingscSolSanctumElementalStarRoomJumpAheadscSolSanctumElementalStarRoomShowElementalStarscSolSanctumElementalStarRoomEnterStarRoomscInitVariables in detailSolSanctumElementalStarRoomAngleScriptSolSanctumElementalStarRoomExitsSolSanctumElementalStarRoomActorPlacementsSolSanctumElementalStarRoomCuesFieldEffectDurationScripts