Alchemy

babi_palace.c

Babi Palace in Tolbi.

games/tbs/src/scene/babi_palace.c on GitHub

Babi Palace in Tolbi. Two scenes share this overlay: the palace, where the party stays as Colosso's guests and where Sheba is held, and its courtyard with the well. Both change three times: while Babi is missing, once he has been rescued and the finals are on, and after Colosso.

Functions

BabiPalace_RestorePartyAndInventory

static __inline__ void BabiPalace_RestorePartyAndInventory(void)

After a night in the palace's beds: the party's HP and PP are full, Garet, Ivan and Mia rejoin, and the inventory Colosso held is returned.

Used by BabiPalace_ApplyEntryState.

Line 70

BabiPalace_GetRegions

const struct SceneRegion *BabiPalace_GetRegions(void)

The palace has no regions; the table is empty.

Line 97

BabiPalace_GetExits

const u32 *BabiPalace_GetExits(void)

Both scenes share one exit table.

Line 102

Scene_GetPlacements

const struct ScenePlacement *Scene_GetPlacements(void)

Returns the actor placements for the scene and the story: before Babi's rescue, during the finals or after Colosso.

Line 106

BabiPalace_ShowQuestionAnswer

static inline void BabiPalace_ShowQuestionAnswer(s32 actorId, s32 question)

Asks a yes or no question; the answers are the two messages after it.

Used by BabiPalace_AskAboutEasternShores, BabiPalace_AskAboutMeetingBabi, BabiPalace_AskAboutSoldiers.

Line 120

BabiPalace_AskAboutSoldiers

static void BabiPalace_AskAboutSoldiers(s32 actorId)

Asks about Babi's soldiers. "Did you run into any of Babi's soldiers in town?"

Used by gBabiPalace_EventsOther.

Line 132

BabiPalace_ShowBeds

static void BabiPalace_ShowBeds(s32 actorId)

Talking to the attendant before Babi's rescue: the attendant leads the party to the beds. "We have just enough extra beds in this room for everybody. Please follow me." Talking again, the attendant asks whether the party will sleep right away and goes back.

Used by gBabiPalace_EventsOther.

Line 140

BabiPalace_OfferRest

static void BabiPalace_OfferRest(s32 actorId)

Talking to the attendant during the finals: the first time, the attendant asks whether the party came to rest before the match and steps aside; afterwards, the attendant offers rest. "if you're tired, please feel free to get some rest."

Used by gBabiPalace_EventsColosso.

Line 200

BabiPalace_AskAboutColosso

static void BabiPalace_AskAboutColosso(s32 actorId)

A warrior asks whether the party is entering Colosso, and either hurries it to the trials or asks whether it got hurt too.

Used by gBabiPalace_EventsOther.

Line 237

BabiPalace_TalkToIndigestedWarrior

static void BabiPalace_TalkToIndigestedWarrior(s32 actorId)

The warrior with indigestion tries to shrug it off, doubles up, and gives up on entering Colosso.

Used by gBabiPalace_EventsOther.

Line 256

BabiPalace_ReadShebasMind

static void BabiPalace_ReadShebasMind(s32 unused0, s32 actorId)

Mind Read on Sheba: she cannot escape to Lalivero alone; the first time, she feels it, ends the Psynergy and asks about it. "Did you just..."

Used by gBabiPalace_EventsOther.

Line 295

BabiPalace_AskAboutMeetingBabi

static void BabiPalace_AskAboutMeetingBabi(s32 actorId)

Asks about meeting Babi. "Did you meet with Babi?"

Used by gBabiPalace_EventsAfterColosso.

Line 316

BabiPalace_AskAboutEasternShores

static void BabiPalace_AskAboutEasternShores(s32 actorId)

Asks whether the party wants to go back to the eastern shores. "So, you're all from the eastern shores of the Karagol Sea, huh? Do you want to go back already?"

Used by gBabiPalace_EventsAfterColosso.

Line 323

BabiPalace_OfferCloakBall

static void BabiPalace_OfferCloakBall(void)

Taking the Cloak Ball on show after Colosso: Babi asks whether the party wants it, and lends it for the quest if it does.

Used by gBabiPalace_EventsAfterColosso.

Line 329

BabiPalace_WakeFromFinalsDream

static void BabiPalace_WakeFromFinalsDream(void)

Waking after resting before the finals: the leader dreamt of fighting in them, the others tease, and the party sets off for the colosseum.

Used by BabiPalace_ApplyEntryState.

Line 364

BabiPalace_RestInPalaceBeds

static void BabiPalace_RestInPalaceBeds(void)

Searching the beds: the party goes to bed, talking it over the first night. "Would you like to sleep now?"

Used by gBabiPalace_EventsAfterColosso, gBabiPalace_EventsColosso, gBabiPalace_EventsOther.

Line 512

BabiPalace_HearSoldiersReport

static void BabiPalace_HearSoldiersReport(void)

Walking past Iodem while Babi is missing: his two soldiers report back from Altmiller Cave without Babi, and Iodem tells how Babi has vanished into the cave before; then they leave.

Used by gBabiPalace_EventsOther.

Line 682

BabiPalace_WakeAfterFinals

static void BabiPalace_WakeAfterFinals(void)

Waking in the palace after the finals: the leader slept long after fighting to the end; Babi wants to see the party.

Used by BabiPalace_ApplyEntryState.

Line 937

BabiPalace_MeetBabiAfterColosso

static void BabiPalace_MeetBabiAfterColosso(void)

Arriving after Colosso: Iodem and Babi have been waiting for the party. Babi praises its fighting, saw its Psynergy through his Cloak Ball, and tells of Lemuria and the draught that has kept him alive; it is running out, and he asks the party to sail his Lemurian ship to find Lemuria. Learning that the party is bound for Venus Lighthouse, he sends Iodem with it, to meet at Gondowan Passage.

Used by BabiPalace_ApplyEntryState.

Line 1216

BabiPalace_LeaveThroughDoor

static void BabiPalace_LeaveThroughDoor(void)

Walking north into one of the palace's doors: it opens (SE_DOOR_OPEN) and the leader walks through.

Used by gBabiPalace_EventsAfterColosso, gBabiPalace_EventsColosso, gBabiPalace_EventsOther.

Line 2141

BabiPalace_LeaveThroughAnimatedDoor

static void BabiPalace_LeaveThroughAnimatedDoor(void)

Walking north into the courtyard's door: it opens and the leader goes in.

Used by gBabiPalace_Events2, gBabiPalace_Events2AfterColosso, gBabiPalace_Events2Colosso.

Line 2173

BabiPalace_PassOnBabisWord

static void BabiPalace_PassOnBabisWord(void)

A courtyard guard during the finals passes on Babi's word. "You're Isaac, aren't you? Babi left word that he would be waiting for you at the colosseum."

Used by gBabiPalace_Events2Colosso.

Line 2187

BabiPalace_ThankForSavingBabi

static void BabiPalace_ThankForSavingBabi(void)

The other guard thanks the party for saving Babi once, then sends it to the colosseum.

Used by gBabiPalace_Events2Colosso.

Line 2234

BabiPalace_AskAboutRemainingWarriors

static void BabiPalace_AskAboutRemainingWarriors(s32 actorId)

Asks whether the party is leaving, like the other warriors. "All the warriors who stayed in the palace left when Colosso ended. Are you folks leaving too?"

Used by gBabiPalace_Events2AfterColosso.

Line 2248

BabiPalace_ExamineWell

static void BabiPalace_ExamineWell(void)

Searching the courtyard's well. "It's filled with fresh, clean water."

Used by gBabiPalace_Events2, gBabiPalace_Events2AfterColosso, gBabiPalace_Events2Colosso.

Line 2263

Scene_GetEvents

const struct SceneEvent *Scene_GetEvents(void)

Returns the event table for the scene and the story, as the placements.

Line 2271

BabiPalace_ApplyEntryState

s32 BabiPalace_ApplyEntryState(void)

Sets up the scene being entered: the doors, the Cloak Ball on show, and the scenes that play on arrival (Babi after Colosso, the attendant during the finals, waking after a night's rest). Returns 0.

Line 2293

Also, functions without a comment: Scene_GetEntrances.

Globals, without a comment: gBabiPalace_DoorCells, gBabiPalace_IndigestionScript, gBabiPalace_EntrancesOther, gBabiPalace_Entrances2, gBabiPalace_Regions, gBabiPalace_Exits, gBabiPalace_Placements2, gBabiPalace_PlacementsOther, gBabiPalace_PlacementsColosso, gBabiPalace_PlacementsAfterColosso, gBabiPalace_EventsOther, gBabiPalace_EventsColosso, gBabiPalace_EventsAfterColosso, gBabiPalace_Events2, gBabiPalace_Events2Colosso, gBabiPalace_Events2AfterColosso.

On this page