Alchemy

vale.c

Vale's plaza and the paths around it in daytime: the game opens here three years after the storm with Isaac mending his roof (entrances 16 and 17), and the villagers talk of the story before the party leaves, after it has left and after its return from Kalay.

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

Vale's plaza and the paths around it in daytime: the game opens here three years after the storm with Isaac mending his roof (entrances 16 and 17), and the villagers talk of the story before the party leaves, after it has left and after its return from Kalay.

FLAG_SCENE_TEMP_02: the roof has just been mended. FLAG_SCENE_TEMP_04: Isaac is in the northern passage. FLAG_SCENE_TEMP_10: the upper path's cells are in place. FLAG_SCENE_TEMP_41: the villager watching Isaac is paused. Group flags 0x303 and 0x304: Garet has talked with his sister and with the villager he asks to protect his family. 0x305: set by an unused scene. 0x307: a villager asked about the lack of travelers. 0x308: the roof-mending end has played. 0x314 to 0x316: the movable object's column.

Functions

Vale_GetPlacements

const struct ScenePlacement *Vale_GetPlacements(void)

Places the villagers for the story so far, or for the roof repair (entrance 16).

Line 119

Event_CatchNut

static void Event_CatchNut(void)

Catch on the Nut hanging in the plaza: the party gets it.

Line 131

Event_CatchNutAfterKalay

static void Event_CatchNutAfterKalay(void)

The same Nut after Kalay, where it is actor 20.

Line 141

Vale_GetEvents

const struct SceneEvent *Vale_GetEvents(void)

The villagers talk of the story so far.

Line 151

Event_TalkAboutTheMayorAndTremors

static void Event_TalkAboutTheMayorAndTremors(void)

Asks about the mayor before departure, or the tremors after returning.

Line 160

Event_WarnAboutGoingBeyondKradensCottage

static void Event_WarnAboutGoingBeyondKradensCottage(void)

Warns about the mountain path, with a shorter repeat greeting.

Line 174

Event_ArgueWithTheAngryVillager

static void Event_ArgueWithTheAngryVillager(void)

A villager scolds Garet; afterwards the villager only threatens him. "Garet, you make me so mad sometimes!"

Line 195

Event_TalkAboutTheWeather

static void Event_TalkAboutTheWeather(void)

A villager talks of the weather, differently right after the roof repair.

Line 219

Event_AskWhetherJennaHasReturned

static void Event_AskWhetherJennaHasReturned(void)

Back from Kalay, a villager asks whether Jenna is back.

Line 231

Event_ReactToAnotherTremor

static void Event_ReactToAnotherTremor(void)

Shakes the view before the villager reacts to another tremor.

Line 241

Event_AskAboutTheLackOfTravelers

static void Event_AskAboutTheLackOfTravelers(void)

Asks about the quiet roads after the eruption.

Line 254

Event_SetPathCellOverride

static void Event_SetPathCellOverride(void)

Walking onto the upper path: its collision cells change, remembered in FLAG_SCENE_TEMP_10.

Used by ValeStorm_Initialize, gValeStorm_Events.

Line 267

Event_ClearPathCellOverride

static void Event_ClearPathCellOverride(void)

Walking off the upper path restores its collision cells.

Used by ValeStorm_ShowBoulderSweepingDownriver, gValeStorm_Events.

Line 273

Event_EnterSanctum

static void Event_EnterSanctum(void)

Opens the sanctum door, walks inside and takes its scene exit.

Line 279

Event_ApproachMtAleph

static void Event_ApproachMtAleph(void)

The mountain path: Jenna stops Isaac until Kraden has planned the visit. The path leads to Mt. Aleph; Jenna says "Kraden is waiting for us".

Line 288

Event_LeaveByNorthPath

static void Event_LeaveByNorthPath(void)

The northern path toward Kraden's cottage.

Line 298

Event_LeaveBySouthPath

static void Event_LeaveBySouthPath(void)

The southern path toward Kraden's cottage.

Line 304

Event_LeaveTowardHome

static void Event_LeaveTowardHome(void)

Leaves through the exit leading back to the house.

Line 310

Event_EnterEastHouse

static void Event_EnterEastHouse(void)

Animates the eastern house door before entering.

Line 316

Event_EnterCentralHouse

static void Event_EnterCentralHouse(void)

Animates the central house door before entering.

Used by gVaultRevisit_Events.

Line 324

Event_EnterIsaacsHouse

static void Event_EnterIsaacsHouse(void)

Isaac's house: after the party has left and before Kalay, Dora will not open. "My Isaac would keep his promise... Go away."

Line 333

Event_EnterSoutheastHouse

static void Event_EnterSoutheastHouse(void)

Opens the southeastern door and enters its interior.

Used by gVaultRevisit_Events.

Line 359

Event_EnterFarSouthHouse

static void Event_EnterFarSouthHouse(void)

Opens the far southern door and enters its interior.

Line 367

Event_EnterSouthwestHouse

static void Event_EnterSouthwestHouse(void)

Opens the southwestern door and enters its interior.

Line 375

Vale_HaveJennaStopTheAlephDetour

static void Vale_HaveJennaStopTheAlephDetour(void)

Brings Jenna out to remind Isaac that Kraden is waiting.

Used by Event_ApproachMtAleph.

Line 383

Event_WatchThePuppies

static void Event_WatchThePuppies(void)

Pans down to the puppies and returns the camera to the leader.

Line 423

Event_TurnBackFromThePuppies

static void Event_TurnBackFromThePuppies(void)

Shows the puppies message from the opposite approach.

Line 471

Event_EnterNorthernPassage

static void Event_EnterNorthernPassage(void)

Changes the passage collision and moves through its northern end.

Line 489

Event_ReturnThroughSouthernPassage

static void Event_ReturnThroughSouthernPassage(void)

Moves back through the passage and restores its collision attributes.

Line 498

Event_WarnAgainstSneakingUpMtAleph

static void Event_WarnAgainstSneakingUpMtAleph(void)

A villager jumps out in front of Isaac, then keeps watching him. "You're not planning on sneaking up to Mt. Aleph...?"

Line 508

Event_RepeatMtAlephWarningFromFirstApproach

static void Event_RepeatMtAlephWarningFromFirstApproach(void)

Repeats the warning when the villager reaches the first pause.

Line 560

Vale_AskAboutSneakingToAleph

static void Vale_AskAboutSneakingToAleph(const s32 *leaderActions, const s32 *villagerActions)

Asks about the Aleph detour, then resumes each actor's response actions.

Used by Event_RepeatMtAlephWarningAtEitherPause, Event_RepeatMtAlephWarningFromFirstApproach, Event_RepeatMtAlephWarningFromSecondApproach.

Line 570

Event_RepeatMtAlephWarningFromSecondApproach

static void Event_RepeatMtAlephWarningFromSecondApproach(void)

Repeats the warning when the villager reaches the second pause.

Line 609

Event_RepeatMtAlephWarningAtEitherPause

static void Event_RepeatMtAlephWarningAtEitherPause(void)

Chooses the warning approach matching the current villager pause.

Line 619

Also, functions without a comment: Vale_GetEntrances, Vale_GetRegions, Vale_GetExits, HouseScene_RunRepairMorning.

Enumerations, without a comment: HouseActor.

Macros, without a comment: VALE_GARET_REUNION_Z, VALE_GARET_REUNION_Z, VALE_SOUTH_VILLAGER_Z, VALE_SOUTH_VILLAGER_Z.

Declarations, without a comment: Vale_MoveActorAlongLowerZPath, Vale_MoveActorAlongHigherZPath, SceneActor_ResetActorRun, Event_MendingTheRoof, Event_RoofMended, Vale_UpdateGaretPaletteAndEffects, Vale_UpdateLeaderPaletteAndEffects, Vale_CycleVillagerNinePalette, Vale_CycleFirstBoardPalette, Vale_CycleSecondBoardPalette, Vale_CycleActor25Palette, Vale_HaveVillagerWatchTheLeader, Effect_ConfigureSpawnedParticle, Effect_SpawnRisingDustBurst, Effect_UpdateParticlePosition, Event_SettleMovedObject, Effect_PlayStepSound, Vale_SynchronizeAlephVillagerPause, Vale_AdjustVillagerPriorityForLeaderHeight, Vale_FlashActorAndSpawnEffects, Vale_CycleActorPaletteAndSpawnEffects, Vale_CycleActorPalette.

On this page