hammet_palace.c
Hammet's palace in Kalay: Lady Layana hears that Hammet is still held in Lunpa, and later welcomes him home.
games/tbs/src/scene/hammet_palace.c on GitHub
Hammet's palace in Kalay: Lady Layana hears that Hammet is still held in Lunpa, and later welcomes him home.
Functions
HammetPalace_AdvanceMessage
static __inline__ void HammetPalace_AdvanceMessage(s32 amount)
Advances within the current conversation's consecutive message block.
Used by HammetPalace_HammetsHomecoming.
Scene_GetEntrances
const struct SceneEntrance *Scene_GetEntrances(void)
Selects the palace's entrances, or the fallback table for this overlay.
Scene_GetPlacements
const struct ScenePlacement *Scene_GetPlacements(void)
Applies placement clipping before returning the palace's actor rows.
Scene_GetEvents
const struct SceneEvent *Scene_GetEvents(void)
Selects the palace's dialogue and doorway handlers.
Event_AskWhetherHammetWillBeReleased
static void Event_AskWhetherHammetWillBeReleased(void)
Talking to a resident (actor 13) before Hammet is rescued: the resident hopes for his release. "Lord Hammet will be released soon. Right?"
Used by gHammetPalaceEvents.
Event_AskWhetherSilkTradeHasEnded
static void Event_AskWhetherSilkTradeHasEnded(void)
Talking to a resident (actor 16) before Hammet is rescued: the resident worries for his silk trade. "Has the legacy of Lord Hammet's silk trading come to an end?"
Used by gHammetPalaceEvents.
Event_LayanaScoldsLunpaVisit
static void Event_LayanaScoldsLunpaVisit(void)
Talking to Layana once the party has been to Lunpa: she is glad Hammet is unhurt, but asks the party not to go back, and to fulfill their quest. "Isaac, you sneaked into Lunpa? That's far too dangerous!"
Used by gHammetPalaceEvents.
Event_LeaveThroughDoor
static void Event_LeaveThroughDoor(void)
Walking north into a door (triggers 2, 3, 4 and 14): it opens, and Isaac walks through it to the next room.
Used by gHammetPalaceEvents.
Scene_Initialize
s32 Scene_Initialize(void)
Opens the palace with its window transition and runs entrance-specific setup.
HammetPalace_SetUpEntrance
static void HammetPalace_SetUpEntrance(void)
Sets up the room the party enters by: Layana and Hammet in the audience hall (entrance 9), the opened door (10 and 11), or Ivan's report (20).
Used by Scene_Initialize.
HammetPalace_IvanReportsToLayana
static void HammetPalace_IvanReportsToLayana(void)
Ivan brings the party to Layana: she had hoped Hammet came back with him. The ransom was paid long ago, yet Dodonpa holds Hammet still; Layana will not risk him by sending the soldiers, nor the party. She tells of the prophecy, the Jupiter Adept who gave Hammet the Shaman's Rod and Ivan, and what the rod is to find, then sends everyone back to their posts.
Used by HammetPalace_SetUpEntrance.
HammetPalace_FacePartyOutward
static void HammetPalace_FacePartyOutward(s32 waitFrames)
Turns the party outward from the group, then optionally waits.
Used by HammetPalace_IvanReportsToLayana.
HammetPalace_FacePartyNorth
static void HammetPalace_FacePartyNorth(s32 waitFrames)
Turns all four party members north toward Layana, then optionally waits.
Used by HammetPalace_HammetsHomecoming, HammetPalace_IvanReportsToLayana.
HammetPalace_HammetsHomecoming
static void HammetPalace_HammetsHomecoming(void)
Back with Hammet, the party walks into the audience hall: Hammet welcomes them, Layana scolds Ivan for going to Lunpa against her word, and Ivan decides to leave at once on the quest. Hammet sends them to Hesperia with the Shaman's Rod, as the Jupiter Adept said.
Used by HammetPalace_SetUpEntrance.
Also, functions without a comment: Scene_GetRegions, Scene_GetExits.
Macros, without a comment: LAYANA, HAMMET, SOLDIER_1, SOLDIER_2.
Globals, without a comment: gHammetPalace_PartyActions, gHammetPalaceEntrancesOther, gHammetPalaceEntrances, gHammetPalaceExits, gHammetPalacePlacementsOther, gHammetPalacePlacements, gHammetPalaceEventsOther, gHammetPalaceEvents.