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).
Event_CatchNut
static void Event_CatchNut(void)
Catch on the Nut hanging in the plaza: the party gets it.
Event_CatchNutAfterKalay
static void Event_CatchNutAfterKalay(void)
The same Nut after Kalay, where it is actor 20.
Vale_GetEvents
const struct SceneEvent *Vale_GetEvents(void)
The villagers talk of the story so far.
Event_TalkAboutTheMayorAndTremors
static void Event_TalkAboutTheMayorAndTremors(void)
Asks about the mayor before departure, or the tremors after returning.
Event_WarnAboutGoingBeyondKradensCottage
static void Event_WarnAboutGoingBeyondKradensCottage(void)
Warns about the mountain path, with a shorter repeat greeting.
Event_ArgueWithTheAngryVillager
static void Event_ArgueWithTheAngryVillager(void)
A villager scolds Garet; afterwards the villager only threatens him. "Garet, you make me so mad sometimes!"
Event_TalkAboutTheWeather
static void Event_TalkAboutTheWeather(void)
A villager talks of the weather, differently right after the roof repair.
Event_AskWhetherJennaHasReturned
static void Event_AskWhetherJennaHasReturned(void)
Back from Kalay, a villager asks whether Jenna is back.
Event_ReactToAnotherTremor
static void Event_ReactToAnotherTremor(void)
Shakes the view before the villager reacts to another tremor.
Event_AskAboutTheLackOfTravelers
static void Event_AskAboutTheLackOfTravelers(void)
Asks about the quiet roads after the eruption.
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.
Event_ClearPathCellOverride
static void Event_ClearPathCellOverride(void)
Walking off the upper path restores its collision cells.
Used by ValeStorm_ShowBoulderSweepingDownriver, gValeStorm_Events.
Event_EnterSanctum
static void Event_EnterSanctum(void)
Opens the sanctum door, walks inside and takes its scene exit.
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".
Event_LeaveByNorthPath
static void Event_LeaveByNorthPath(void)
The northern path toward Kraden's cottage.
Event_LeaveBySouthPath
static void Event_LeaveBySouthPath(void)
The southern path toward Kraden's cottage.
Event_LeaveTowardHome
static void Event_LeaveTowardHome(void)
Leaves through the exit leading back to the house.
Event_EnterEastHouse
static void Event_EnterEastHouse(void)
Animates the eastern house door before entering.
Event_EnterCentralHouse
static void Event_EnterCentralHouse(void)
Animates the central house door before entering.
Used by gVaultRevisit_Events.
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."
Event_EnterSoutheastHouse
static void Event_EnterSoutheastHouse(void)
Opens the southeastern door and enters its interior.
Used by gVaultRevisit_Events.
Event_EnterFarSouthHouse
static void Event_EnterFarSouthHouse(void)
Opens the far southern door and enters its interior.
Event_EnterSouthwestHouse
static void Event_EnterSouthwestHouse(void)
Opens the southwestern door and enters its interior.
Vale_HaveJennaStopTheAlephDetour
static void Vale_HaveJennaStopTheAlephDetour(void)
Brings Jenna out to remind Isaac that Kraden is waiting.
Used by Event_ApproachMtAleph.
Event_WatchThePuppies
static void Event_WatchThePuppies(void)
Pans down to the puppies and returns the camera to the leader.
Event_TurnBackFromThePuppies
static void Event_TurnBackFromThePuppies(void)
Shows the puppies message from the opposite approach.
Event_EnterNorthernPassage
static void Event_EnterNorthernPassage(void)
Changes the passage collision and moves through its northern end.
Event_ReturnThroughSouthernPassage
static void Event_ReturnThroughSouthernPassage(void)
Moves back through the passage and restores its collision attributes.
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...?"
Event_RepeatMtAlephWarningFromFirstApproach
static void Event_RepeatMtAlephWarningFromFirstApproach(void)
Repeats the warning when the villager reaches the first pause.
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.
Event_RepeatMtAlephWarningFromSecondApproach
static void Event_RepeatMtAlephWarningFromSecondApproach(void)
Repeats the warning when the villager reaches the second pause.
Event_RepeatMtAlephWarningAtEitherPause
static void Event_RepeatMtAlephWarningAtEitherPause(void)
Chooses the warning approach matching the current villager pause.
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.