Alchemy

vale_eruption.c

Vale's square during the eruption, where the villagers wait for Isaac and Garet to come down the mountain.

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

Vale's square during the eruption, where the villagers wait for Isaac and Garet to come down the mountain. The erupting mountain is Mt. Aleph.

Functions

ValeEruption_GetEntrances

const struct SceneEntrance *ValeEruption_GetEntrances(void)

Returns where the party appears: entrance 15 is the path down from the mountain, Mt. Aleph.

Line 51

ValeEruption_GetExits

const u32 *ValeEruption_GetExits(void)

Returns the one exit, into the sanctum (Sanctum's entrance 20), which Event_ReturnFromMtAleph takes.

Line 59

ValeEruption_GetPlacements

const struct ScenePlacement *ValeEruption_GetPlacements(void)

Returns Garet and the villagers gathered before the sanctum.

Line 62

ValeEruption_GetEvents

const struct SceneEvent *ValeEruption_GetEvents(void)

The square has no events of its own: everything happens on arrival.

Line 67

ValeEruption_Initialize

s32 ValeEruption_Initialize(void)

Plays the return from the mountain when the party arrives by entrance 15. Called by Field_RunScene once the actors are placed; entrance 15 is where Sol Sanctum's approach leads after the eruption and before the party leaves Vale (its exit 1).

Line 75

Event_ReturnFromMtAleph

static void Event_ReturnFromMtAleph(void)

The volcano shakes the square while the villagers wonder where Isaac and Garet are; the two come down the mountain, tell that Jenna and Kraden were taken away, and follow the elders into the sanctum. Called by ValeEruption_Initialize on arrival by entrance 15. Clears FLAG_SHOW_LOCATION_NAME, sets FLAG_VALE_RETURNED_FROM_MT_ALEPH and takes exit 1 into the sanctum, where Sanctum_RequestQuestAcceptance follows.

Used by ValeEruption_Initialize.

Line 88

Also, functions without a comment: ValeEruption_GetRegions.

Enumerations

ValeEruptionActor

enum ValeEruptionActor

The placed actors, numbered in the order of gValeEruption_Placements; Garet's row places the party's Garet and takes no number.

Value=
ACTOR_GREAT_HEALERACTOR_FIRST_PLACEDThe Great Healer (sprite 0x79, the healer of sanctum.c), who leads the villagers into the sanctum. "Come into the sanctum, both of you."
ACTOR_GARETS_GRANDFATHERACTOR_FIRST_PLACED + 1Garet's grandfather, the mayor (sprite 0x75, whom the Great Healer calls Mayor in sanctum.c). "Oooh, my grandson! Will Garet be safe in this eruption?!?"
ACTOR_DORAACTOR_FIRST_PLACED + 2Isaac's mother (sprite 0x1f, Dora in sanctum.c). "Isaac and Garet went to Mr. Kraden's house."
ACTOR_GARETS_SISTERACTOR_FIRST_PLACED + 3She calls the mayor Grandpa, and actor 12 calls her Sis. "Grandpa, we don't even know if he's up there!"
ACTOR_GUARDACTOR_FIRST_PLACED + 5The guard. "They were hanging around here while I was on guard duty."

Line 29

Globals

gValeEruption_LeaderWalksDown

s32 gValeEruption_LeaderWalksDown[]

Isaac walks down from the path to the villagers before the sanctum.

Used by Event_ReturnFromMtAleph.

Line 434

gValeEruption_GaretWalksDown

s32 gValeEruption_GaretWalksDown[]

Garet follows him, stopping a little above.

Used by Event_ReturnFromMtAleph.

Line 444

gValeEruption_EnterSanctum

s32 gValeEruption_EnterSanctum[]

Isaac, then Garet, walk through the sanctum's door.

Used by Event_ReturnFromMtAleph.

Line 453

gValeEruption_SanctumDoorOpens

u16 gValeEruption_SanctumDoorOpens[]

The sanctum's door, two cells wide, opening in two steps.

Used by Event_ReturnFromMtAleph.

Line 509

Also, globals without a comment: gValeEruption_Entrances, gValeEruption_Exits, gValeEruption_Placements, gValeEruption_Events.

On this page