src/scene/vale_eruption.c
Vale (SceneIdValeEruption) while Mt. More…
#include "flags.h"#include "battle/battle.h"#include "debug/debug.h"#include "field/actor_script.h"#include "field/script.h"#include "graphics/graphics.h"#include "text/msg_ids.h"
Enumerations
| Name | Description | |
|---|---|---|
enum | VALE_ERUPTION_ACTOR_ID { ACTOR_GREAT_HEALER, ACTOR_GARETS_GRANDFATHER, ACTOR_DORA, AC … } | The placed actors, numbered in the order of ValeEruptionActorPlacements. |
Functions
| Name | Description | |
|---|---|---|
static void | scValeEruptionReturnFromMtAleph (void) | In Vale during the eruption, the volcano shakes the ground before the sanctum while the villagers wonder where Isaac and Garet are. |
const SCENE_ENTRANCE * | scGetEntrances (void) | Returns where the party appears. |
const SCENE_EXIT_REGION * | scGetExitRegions (void) | The scene has no exit regions: its regions entry returns none. |
const Uint32 * | scGetExits (void) | Returns the one exit, VALE_ERUPTION_TO_SANCTUM into the Vale Sanctum (SANCTUM_FROM_VALE_ERUPTION), which scValeEruptionReturnFromMtAleph takes. |
const ACTOR_PLACE * | scGetActorPlacements (void) | Returns Garet and the villagers gathered before the sanctum. |
const CUE * | scGetCues (void) | The scene has no cues of its own, since everything happens on arrival. |
Sint32 | scInit (void) | Arriving in Vale during the eruption plays the return from the mountain, when the party comes by VALE_ERUPTION_FROM_SOL_ENTRANCE. |
Variables
| Name | Description | |
|---|---|---|
extern Sint32 | ValeEruptionLeaderWalksDown [] | Isaac walks down from the path to the villagers before the sanctum. |
extern Sint32 | ValeEruptionGaretWalksDown [] | Garet follows him, stopping a little above. |
extern Sint32 | ValeEruptionEnterSanctum [] | Isaac, then Garet, walk through the sanctum's door. |
extern SCENE_ENTRANCE | ValeEruptionEntrances [] | |
extern Uint32 | ValeEruptionExits [] | |
extern ACTOR_PLACE | ValeEruptionActorPlacements [] | |
extern CUE | ValeEruptionCues [] | |
extern Uint16 | ValeEruptionSanctumDoorOpens [] | The sanctum's door, two metatiles wide, opening in two steps. |
Description
Vale (SceneIdValeEruption) while Mt. Aleph erupts is the ground before the
sanctum's door, where the villagers wait for Isaac and Garet.
It stands on the village's own layout (SceneIdVale's).
The scene falls between Sol Sanctum's eruption (sol_sanctum_eruption.c),
where Jenna and Kraden are carried off, and the party's journey. The path
down the mountain leads here, by VALE_ERUPTION_FROM_SOL_ENTRANCE
(sol_sanctum_entrance.c's SOL_ENTRANCE_VALE after the eruption).
Gathered before the sanctum are the Great Healer, Garet's grandfather the mayor, Isaac's mother Dora, Garet's sister and brother, and the guard who saw the two hanging around on his watch.
The scene has no cues. scInit plays the whole script on arrival by
VALE_ERUPTION_FROM_SOL_ENTRANCE (scValeEruptionReturnFromMtAleph).
- The ground shakes, and the villagers wonder where the two are.
- Isaac and Garet come down the path and are called over.
- Dora's question about Jenna and Kraden is answered the same way whatever Isaac replies.
- The Great Healer then opens the sanctum's door (
fdMapGridAnimateMetatiles) and leads everyone in. - The scene's one exit takes the party into the Vale Sanctum
(
SANCTUM_FROM_VALE_ERUPTION), where the Great Healer passes on the Wise One's quest (scSanctumAskToAcceptQuest,sanctum.c).
The tremors are fdMapGridSetShake calls. Each comes with a flash
(fdWeatherLastLightning) and SE_CRASH, over a burst of red flashes on the
dimmed colours (fdWeatherStartLightningFlash).
The scene sets FLAG_VALE_RETURNED_FROM_MT_ALEPH but never reads it. Sol
Sanctum's entrance scene does (sol_sanctum_entrance.c).
Enumerations in detail
VALE_ERUPTION_ACTOR_ID
enum VALE_ERUPTION_ACTOR_ID
The placed actors, numbered in the order of ValeEruptionActorPlacements.
Garet's row places the party's Garet and takes no number.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_GREAT_HEALER | ACTOR_FIRST_PLACED | The Great Healer is a man with a white beard, in a tall hat and a long purple and blue robe. He has the sprite of sanctum.c's healer, and leads the villagers into the sanctum. "Come into the sanctum, both of you." |
ACTOR_GARETS_GRANDFATHER | ACTOR_FIRST_PLACED + 1 | Garet's grandfather is an old man with white hair and a cane. He is the mayor, whom the Great Healer calls Mayor in sanctum.c. "Oooh, my grandson! Will Garet be safe in this eruption?!?" |
ACTOR_DORA | ACTOR_FIRST_PLACED + 2 | Isaac's mother, who is Dora in sanctum.c. "Isaac and Garet went to Mr. Kraden's house." |
ACTOR_GARETS_SISTER | ACTOR_FIRST_PLACED + 3 | Garet's sister is a young woman with an orange ponytail, whom Garet calls Sis at the farewell (vale_plaza.c). She calls the mayor Grandpa, and ACTOR_GARETS_BROTHER calls her Sis. "Grandpa, we don't even know if he's up there!" |
ACTOR_GARETS_BROTHER | ACTOR_FIRST_PLACED + 4 | Garet's brother is the small boy with orange hair of vale.c's ACTOR_GARETS_BROTHER. He says someone saw Garet climb, and is first to cry "Garet!" |
ACTOR_GUARD | ACTOR_FIRST_PLACED + 5 | The guard is the man with long brown hair and a beard, in a long robe, who guards Mt. Aleph in vale.c (ACTOR_MAN_GUARDING_MT_ALEPH). "They were hanging around here while I was on guard duty." |
ACTOR_FIRST_VILLAGER | ACTOR_FIRST_PLACED + 6 | The first of the six villagers gathered behind them. They are a burly grey-haired man, a bald muscular man, a woman in a green dress, a little girl with pigtails, a young man with brown hair and a strongman. |
Definition at line 54 of file vale_eruption.c.
Functions in detail
scValeEruptionReturnFromMtAleph
static void scValeEruptionReturnFromMtAleph(void)
In Vale during the eruption, the volcano shakes the ground before the sanctum while the villagers wonder where Isaac and Garet are.
References fdActorFaceActor(), fdActorFaceDirection(), fdActorMoveToAndWait(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetDestination(), fdActorSetScript(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorTurnToFaceEachOther(), fdActorWaitForScriptEndById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraMoveToActorById(), fdCameraWaitForArrival(), fdMapGridAnimateMetatiles(), fdMapGridCenterOnFollowedPoint(), fdMapGridWaitForShakeToSettle(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptSkipMessages(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdWeatherLastLightning(), fdWeatherStartLightningFlash(), gmFlagClear(), gmFlagSet(), Sint32, state, syImportScriptSetExitRequest(), sySoundPlay(), sySynch(), ValeEruptionEnterSanctum, ValeEruptionGaretWalksDown, ValeEruptionLeaderWalksDown and ValeEruptionSanctumDoorOpens.
Referenced by scInit().
Definition at lines 114 and 160 of file vale_eruption.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
Returns where the party appears. VALE_ERUPTION_FROM_SOL_ENTRANCE is the path
down from the mountain, Mt. Aleph.
References ValeEruptionEntrances.
Definition at line 118 of file vale_eruption.c.
scGetExitRegions
const SCENE_EXIT_REGION *scGetExitRegions(void)
Definition at line 123 of file vale_eruption.c.
scGetExits
const Uint32 *scGetExits(void)
Returns the one exit, VALE_ERUPTION_TO_SANCTUM into the Vale Sanctum
(SANCTUM_FROM_VALE_ERUPTION), which scValeEruptionReturnFromMtAleph takes.
References ValeEruptionExits.
Definition at line 130 of file vale_eruption.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
Returns Garet and the villagers gathered before the sanctum.
References ValeEruptionActorPlacements.
Definition at line 136 of file vale_eruption.c.
scGetCues
const CUE *scGetCues(void)
The scene has no cues of its own, since everything happens on arrival.
References ValeEruptionCues.
Definition at line 142 of file vale_eruption.c.
scInit
Sint32 scInit(void)
Arriving in Vale during the eruption plays the return from the mountain, when
the party comes by VALE_ERUPTION_FROM_SOL_ENTRANCE.
References MainRoutineStateWork, scValeEruptionReturnFromMtAleph() and Sint32.
Definition at line 149 of file vale_eruption.c.
Variables in detail
ValeEruptionLeaderWalksDown
extern Sint32 ValeEruptionLeaderWalksDown[]
Sint32 ValeEruptionLeaderWalksDown[]
Isaac walks down from the path to the villagers before the sanctum.
References Sint32.
Referenced by scValeEruptionReturnFromMtAleph().
Definition at lines 43 and 531 of file vale_eruption.c.
ValeEruptionGaretWalksDown
extern Sint32 ValeEruptionGaretWalksDown[]
Sint32 ValeEruptionGaretWalksDown[]
Garet follows him, stopping a little above.
References Sint32.
Referenced by scValeEruptionReturnFromMtAleph().
Definition at lines 44 and 546 of file vale_eruption.c.
ValeEruptionEnterSanctum
extern Sint32 ValeEruptionEnterSanctum[]
Sint32 ValeEruptionEnterSanctum[]
Isaac, then Garet, walk through the sanctum's door.
References Sint32.
Referenced by scValeEruptionReturnFromMtAleph().
Definition at lines 45 and 559 of file vale_eruption.c.
ValeEruptionEntrances
extern SCENE_ENTRANCE ValeEruptionEntrances[]
SCENE_ENTRANCE ValeEruptionEntrances[]
Referenced by scGetEntrances().
Definition at lines 46 and 569 of file vale_eruption.c.
ValeEruptionExits
extern Uint32 ValeEruptionExits[]
Uint32 ValeEruptionExits[]
Referenced by scGetExits().
Definition at lines 47 and 591 of file vale_eruption.c.
ValeEruptionActorPlacements
extern ACTOR_PLACE ValeEruptionActorPlacements[]
ACTOR_PLACE ValeEruptionActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 48 and 598 of file vale_eruption.c.
ValeEruptionCues
extern CUE ValeEruptionCues[]
CUE ValeEruptionCues[]
Referenced by scGetCues().
Definition at lines 49 and 629 of file vale_eruption.c.
ValeEruptionSanctumDoorOpens
extern Uint16 ValeEruptionSanctumDoorOpens[]
Uint16 ValeEruptionSanctumDoorOpens[]
The sanctum's door, two metatiles wide, opening in two steps.
Referenced by scValeEruptionReturnFromMtAleph().