Alchemy
Loading...
Searching...
No Matches

vale_eruption.c File Reference

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

Go to the source code of this file.

Enumerations

enum  ValeEruptionActor {
  ACTOR_GREAT_HEALER = ACTOR_FIRST_PLACED , ACTOR_GARETS_GRANDFATHER = ACTOR_FIRST_PLACED + 1 , ACTOR_DORA = ACTOR_FIRST_PLACED + 2 , ACTOR_GARETS_SISTER = ACTOR_FIRST_PLACED + 3 ,
  ACTOR_GUARD = ACTOR_FIRST_PLACED + 5
}
 The placed actors, numbered in the order of gValeEruption_Placements; Garet's row places the party's Garet and takes no number. More...

Functions

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.
const struct SceneEntrance * ValeEruption_GetEntrances (void)
 Returns where the party appears: entrance 15 is the path down from the mountain, Mt.
const struct SceneRegion * ValeEruption_GetRegions (void)
const u32 * ValeEruption_GetExits (void)
 Returns the one exit, into the sanctum (Sanctum's entrance 20), which Event_ReturnFromMtAleph takes.
const struct ScenePlacement * ValeEruption_GetPlacements (void)
 Returns Garet and the villagers gathered before the sanctum.
const struct SceneEvent * ValeEruption_GetEvents (void)
 The square has no events of its own: everything happens on arrival.
s32 ValeEruption_Initialize (void)
 Plays the return from the mountain when the party arrives by entrance 15.

Variables

s32 gValeEruption_LeaderWalksDown []
 Isaac walks down from the path to the villagers before the sanctum.
s32 gValeEruption_GaretWalksDown []
 Garet follows him, stopping a little above.
s32 gValeEruption_EnterSanctum []
 Isaac, then Garet, walk through the sanctum's door.
struct SceneEntrance gValeEruption_Entrances []
u32 gValeEruption_Exits []
struct ScenePlacement gValeEruption_Placements []
struct SceneEvent gValeEruption_Events []
u16 gValeEruption_SanctumDoorOpens []
 The sanctum's door, two cells wide, opening in two steps.

Detailed Description

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.

Definition in file vale_eruption.c.

Enumeration Type Documentation

◆ ValeEruptionActor

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

Enumerator
ACTOR_GREAT_HEALER 

The 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_GRANDFATHER 

Garet'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_DORA 

Isaac's mother (sprite 0x1f, Dora in sanctum.c).

"Isaac and Garet went to Mr. Kraden's house."

ACTOR_GARETS_SISTER 

She calls the mayor Grandpa, and actor 12 calls her Sis.

"Grandpa, we don't even know if he's up there!"

ACTOR_GUARD 

The guard. "They were hanging around here while I was on guard duty.".

Definition at line 29 of file vale_eruption.c.

Function Documentation

◆ Event_ReturnFromMtAleph()

void Event_ReturnFromMtAleph ( void )
static

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.

Definition at line 88 of file vale_eruption.c.

Referenced by Event_ReturnFromMtAleph(), and ValeEruption_Initialize().

◆ ValeEruption_GetEntrances()

const struct SceneEntrance * ValeEruption_GetEntrances ( void )

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

Aleph.

Definition at line 51 of file vale_eruption.c.

Referenced by ValeEruption_GetEntrances().

◆ ValeEruption_GetRegions()

const struct SceneRegion * ValeEruption_GetRegions ( void )

Definition at line 55 of file vale_eruption.c.

Referenced by ValeEruption_GetRegions().

◆ ValeEruption_GetExits()

const u32 * ValeEruption_GetExits ( void )

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

Definition at line 59 of file vale_eruption.c.

Referenced by ValeEruption_GetExits().

◆ ValeEruption_GetPlacements()

const struct ScenePlacement * ValeEruption_GetPlacements ( void )

Returns Garet and the villagers gathered before the sanctum.

Definition at line 62 of file vale_eruption.c.

Referenced by ValeEruption_GetPlacements().

◆ ValeEruption_GetEvents()

const struct SceneEvent * ValeEruption_GetEvents ( void )

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

Definition at line 67 of file vale_eruption.c.

Referenced by ValeEruption_GetEvents().

◆ 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).

Definition at line 75 of file vale_eruption.c.

Referenced by ValeEruption_Initialize().

Variable Documentation

◆ gValeEruption_LeaderWalksDown

s32 gValeEruption_LeaderWalksDown[]
Initial value:
= {
SC_ARG(2), SC_MOVE(PIXELS(128), 0, PIXELS(378)),
SC_SYNC, SC_MOVE(PIXELS(203), 0, PIXELS(378)),
SC_SYNC, SC_MOVE(PIXELS(212), 0, PIXELS(472)),
SC_SYNC, SC_MOVE(PIXELS(214), 0, PIXELS(472)),
}
#define PIXELS(value)
#define SC_SYNC
Wait for arrival.
Definition objcmd.h:17
#define SC_ARG(v)
Definition objcmd.h:44
#define SC_MOVE(x, y, z)
Move toward the target.
Definition objcmd.h:19
#define SC_END
Return to the main script.
Definition objcmd.h:32

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

Definition at line 434 of file vale_eruption.c.

Referenced by Event_ReturnFromMtAleph().

◆ gValeEruption_GaretWalksDown

s32 gValeEruption_GaretWalksDown[]
Initial value:
= {
SC_ARG(2), SC_MOVE(PIXELS(128), 0, PIXELS(378)),
SC_SYNC, SC_MOVE(PIXELS(203), 0, PIXELS(378)),
SC_SYNC, SC_MOVE(PIXELS(214), 0, PIXELS(455)),
}

Garet follows him, stopping a little above.

Definition at line 444 of file vale_eruption.c.

Referenced by Event_ReturnFromMtAleph().

◆ gValeEruption_EnterSanctum

s32 gValeEruption_EnterSanctum[]
Initial value:
= {
SC_ARG(2), SC_MOVE(PIXELS(255), 0, PIXELS(452)),
SC_SYNC, SC_MOVE(PIXELS(255), 0, PIXELS(390)),
}

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

Definition at line 453 of file vale_eruption.c.

Referenced by Event_ReturnFromMtAleph().

◆ gValeEruption_Entrances

struct SceneEntrance gValeEruption_Entrances[]
Initial value:
= {
{0, CONDITION_ALWAYS, 110, 0, 270, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
{15, CONDITION_ALWAYS, 103, 0, 284, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
}
@ SCENE_TABLE_END
Definition field_scene.h:43
@ CONDITION_ALWAYS
Definition field_scene.h:44
@ FACING_SOUTH
Definition field_scene.h:28

Definition at line 460 of file vale_eruption.c.

Referenced by ValeEruption_GetEntrances().

◆ gValeEruption_Exits

u32 gValeEruption_Exits[]
Initial value:
= {
SCENE_EXIT(1, 9, 20),
}
#define SCENE_EXITS(scene)
Definition field_scene.h:72
#define SCENE_EXIT(exit, scene, entrance)
Definition field_scene.h:73
#define SCENE_EXITS_END
Definition field_scene.h:77

Definition at line 466 of file vale_eruption.c.

Referenced by ValeEruption_GetExits().

◆ gValeEruption_Placements

struct ScenePlacement gValeEruption_Placements[]
Initial value:
= {
PIXELS(104), 0, PIXELS(258), FACING_SOUTH, TALK_FACE_PARTY, 0 },
}
#define GARET
Jerald.
@ TALK_FACE_PARTY
@ ACTOR_STAND
@ FACING_NORTHWEST
Definition field_scene.h:31

Definition at line 473 of file vale_eruption.c.

Referenced by ValeEruption_GetPlacements().

◆ gValeEruption_Events

struct SceneEvent gValeEruption_Events[]
Initial value:
= {
}
#define SCENE_EVENTS_END

Definition at line 504 of file vale_eruption.c.

Referenced by ValeEruption_GetEvents().

◆ gValeEruption_SanctumDoorOpens

u16 gValeEruption_SanctumDoorOpens[]
Initial value:
= {
MAP_CELL_STEP(0, 98, 2, 2, 2),
MAP_CELL_STEP(2, 98, 2, 2, 2),
}
#define MAP_CELL_STEP(srcX, srcY, width, height, frames)
Definition field_event.h:59
#define MAP_CELL_STEPS_END
Definition field_event.h:61

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

Definition at line 509 of file vale_eruption.c.

Referenced by Event_ReturnFromMtAleph().