src/scene/alpine_crossing_lama_temple.c
The Alpine Crossing (SceneIdAlpineCrossing) and Lama Temple (SceneIdLamaTemple), two places on Silk Road west of Xian that share this overlay. More…
#include "ability_ids.h"#include "flags.h"#include "item_ids.h"#include "battle/battle.h"#include "debug/debug.h"#include "field/field_effect.h"#include "graphics/graphics.h"#include "text/msg_ids.h"
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_LAMA_TEMPLE_PSYNERGY_STONE FLAG_AREA_TEMP(0x50) | The temple's Psynergy Stone. |
#define | MAP_ALPINE_CROSSING (SCENE_ALPINE_CROSSING) | The overlay's two scenes. |
#define | MAP_LAMA_TEMPLE (SCENE_LAMA_TEMPLE) | |
#define | FEIZHI_ROW 13 | The row Feizhi runs along, from (536, 216) west to (408, 216). |
Enumerations
| Name | Description | |
|---|---|---|
enum | LAMA_TEMPLE_ACTOR_ID { ACTOR_TEMPLE_HAMA, ACTOR_GREETING_MONK, ACTOR_MONK_ASKING_AB … } | Lama Temple's actors. |
enum | ALPINE_CROSSING_ACTOR_ID { ACTOR_HAMA, ACTOR_HSU, ACTOR_FEIZHI, ACTOR_BOULDER, ACTOR_FI … } | Alpine Crossing's actors. |
enum | anonymous enum { FLAG_ALPINE_CROSSING_PUDDLE_FROZEN, FLAG_ALPINE_CROSSING_SPR … } | Alpine Crossing's Psynergy puzzles, kept while the party stays. |
enum | anonymous enum { ANIM_HAMA_PULL, ANIM_FEIZHI_PULL, ANIM_FEIZHI_CROUCH, ANIM_T … } | Animations of these scenes' own sprites beyond ACTOR_ANIMATION, named by when the scripts play them. |
enum | LAMA_TEMPLE_METATILE_BEHAVIOR { METATILE_BEHAVIOR_LAMA_TEMPLE_SOUTH_ROAD, METATILE_BEHAVIOR_ … } | The metatile behaviors Lama Temple's cues answer. |
enum | ALPINE_CROSSING_METATILE_BEHAVIOR { METATILE_BEHAVIOR_ALPINE_CROSSING_EAST_ROAD, METATILE_BEHAVI … } | The metatile behaviors Alpine Crossing's cues answer. |
enum | anonymous enum { DOOR_X, DOOR_Y } | The door of Hama's room, three metatiles wide and two high. |
enum | anonymous enum { TREASURE_SPOT_WATER_OF_LIFE } | The chest of Water of Life under the mossy rock: its treasure spot is the chest metatile's own. |
Functions
| Name | Description | |
|---|---|---|
static Sint32 | scActorDrawBehindBackground (ACTOR *actor) | Draws the actor behind the background, on sprite priority 3 with automatic priority off. |
static UNREAD_RESULT | scAlpineCrossingLeaderFaceFeizhi (ACTOR *leader) | Update function that turns the party leader toward Feizhi while she runs past. |
const SCENE_ENTRANCE * | scGetEntrances (void) | The six rooms share one entrance table. |
const SCENE_EXIT_REGION * | scGetExitRegions (void) | The scene has no exit regions: its regions entry returns none. |
const Uint32 * | scGetExits (void) | Both scenes share one exit table. |
const ACTOR_PLACE * | scGetActorPlacements (void) | Some villagers only turn back after talking once the flood is over or their family has gone home. |
static void | scLamaTempleTalkToMonkAskingAboutTheEast (void) | A monk in Lama Temple, until Hsu is freed, asks whether the party comes from the east. |
static void | scLamaTempleTalkToMeditatingMonk (void) | The meditating monk explains meditation. |
static void | scLamaTempleTalkToChiMonk (void) | A monk in Lama Temple praises Master Hama as the greatest master of Chi, until Hsu is freed. |
static void | scLamaTempleEnterHamasRoom (void) | Walking north into the temple's sliding door (metatile (8, 10)) slides it open with a thump, and Isaac steps through into Hama's room. |
static void | scLamaTempleRunHamasFarewell (void) | Hama thanks the party in front of her temple door once they have freed Hsu, Mia teases Garet over whose idea it was to help, and Hama goes back inside; Ivan then decides not to ask her what she would not say to him. |
static void | scLamaTempleReadWallWriting (void) | Searching the writing on the cliff east of the waterfall (metatiles (20, 6) and (21, 6)) reads "He who has the power to see that which cannot be seen shall see the truth...", a hint to use Reveal on the mossy rock below it. |
static void | scLamaTempleHideChest (void) | When Reveal wears off in Lama Temple, the mossy rock east of the waterfall stands over the chest again (metatile (21, 9)), and the chest can no longer be opened. |
static void | scLamaTempleRevealChest (void) | Reveal in Lama Temple makes the mossy rock east of the waterfall vanish, showing the chest of Water of Life under it (metatile (21, 9)). |
static void | scLamaTempleTalkToHealer (void) | The traveling healer at the east end of the bridge in Lama Temple offers the Sanctum's services when spoken to from the south; from any other side he only says he travels the world to spread good will. |
static void | scAlpineCrossingFeizhiArrives (void) | Feizhi runs in behind Isaac as he walks onto Silk Road a few steps inside the east entrance (metatiles (27, 12) to (27, 14)), cries out at the boulders blocking the road, and runs down past the puddle to the rockslide calling for Hsu, with Isaac following. |
static void | scAlpineCrossingTalkToFeizhi (void) | Feizhi, waiting by the rockslide, asks whether she should return to Xian, and whatever Isaac answers decides to keep looking for Hsu. |
static void | scAlpineCrossingHamaReachesHsu (void) | The first time the party comes out of the cave mouth north-east of Hsu, the camera finds him pinned under the boulder; Hama asks if he is okay, and none of them knows how to free him. |
static void | scAlpineCrossingLiftBoulder (void) | Lift on the boulder pinning Hsu at the Alpine Crossing raises it, glowing, while Hama and Feizhi pull him out in two heaves. |
static void | scAlpineCrossingReadSignpost (void) | Searching the signpost beside the road west of the east entrance (metatile (25, 11)) reads "North: Altin Mine West: Lama Temple". |
static void | scAlpineCrossingRevealPath (void) | |
static void | scAlpineCrossingHidePath (void) | When Reveal wears off at the Alpine Crossing, the cave mouth in the cliff west of Hsu is solid rock again (metatiles (5, 13) and (5, 14)), from the metatiles kept at (6, 28). |
static UNREAD_RESULT | scAlpineCrossingSortPillarAgainstLeader (ACTOR *pillar) | Update function of the ice pillar: Isaac is drawn in front of it while he stands higher than its top, so that he shows standing on it, and behind it otherwise. |
static void | scAlpineCrossingPrepareFrost (void) | Nothing visible happens as Frost reaches the puddle at the foot of the gully. |
static void | scAlpineCrossingFreezePuddle (void) | Frost on the puddle at the foot of the gully (metatile (20, 18)) freezes it into a tall ice pillar, which the party can jump onto from either side. |
static void | scAlpineCrossingGrowSprout (void) | Growth on the sprout at the foot of the cliff below the signpost (metatile (21, 12)) grows it into a vine up the cliff, which the party can climb. |
const CUE * | scGetCues (void) | The first water beast's cave changes its cues once the first drain has lowered its water: the beast is gone and its two puddles can be frozen. |
Sint32 | scInit (void) | Sets up whichever scene is being entered and runs its arrival scripts. |
Variables
| Name | Description | |
|---|---|---|
extern Sint32 | AlpineCrossingFeizhiPath [] | Feizhi's run down the path toward Hsu, walking, then standing. |
extern Sint32 | AlpineCrossingLeaderPath [] | The party leader follows Feizhi most of the way. |
extern Sint32 | AlpineCrossingHsuStruggle [] | Hsu, pinned under the boulder, struggles now and then. |
extern Uint16 | LamaTempleDoorOpenMetatiles [] | The door of Hama's room sliding open, and shut again. |
extern Uint16 | LamaTempleDoorCloseMetatiles [] | |
extern SCENE_ENTRANCE | LamaTempleEntrances [] | |
extern SCENE_ENTRANCE | AlpineCrossingEntrances [] | |
extern Uint32 | AlpineCrossingLamaTempleExits [] | |
extern ACTOR_PLACE | LamaTempleActorPlacements [] | |
extern ACTOR_PLACE | AlpineCrossingActorPlacements [] | |
extern CUE | LamaTempleCues [] | |
extern CUE | AlpineCrossingCues [] | |
Sint32 | AlpineCrossingWorkerActorPlacementScript [] | The first worker's actor placement script: he is drawn behind the scenery. |
Description
The Alpine Crossing (SceneIdAlpineCrossing) and Lama Temple
(SceneIdLamaTemple), two places on Silk Road west of Xian that share this
overlay. The getters pick each scene's tables by MainRoutineStateWork.next,
and the two share one exit table.
The Alpine Crossing is a valley of cliffs and ledges between Xian and Altin.
Silk Road comes in from the World Map on the east, a road climbs north to
Altin, and the way west to Lama Temple is buried under a rockslide (the rocks
at metatiles (17, 21) to (17, 23)). A signpost beside the road west of the
east entrance reads North: Altin Mine West: Lama Temple.
If the party has seen Feizhi leave Xian (FLAG_FEIZHI_WENT_TO_HSU, set in
fuchin_temple.c), she runs in behind them a few steps inside the east
entrance (scAlpineCrossingFeizhiArrives), cries out at the rockslide and runs
down past the puddle to it, where she waits until Hama's lesson. On this
first visit the party can freeze the puddle at the foot of the gully into an
ice pillar with Frost, grow the sprout below the signpost into a vine with
Growth, and climb round to the chest of Power Bread in the south-east corner.
These two puzzles are kept only while the party stays (scene temp flags).
Then the road north leads on to Altin.
Lama Temple lies west, at the head of a wooded valley: a path from the World
Map on the south crosses a bridge, where a traveling healer stands, and
climbs to the temple building with five monks about it. They have one set of
lines and thoughts until Hsu is freed (FLAG_HSU_RESCUED) and another after. A
defeat anywhere here brings the party back in front of the healer
(LAMA_TEMPLE_AFTER_DEFEAT).
The temple's sliding door (scLamaTempleEnterHamasRoom) leads into Hama's
room, in LacquerRoomsA (LACQUER_ROOMS_A_HAMAS_ROOM_LAMA_TEMPLE, in
fuchin_temple.c), where she teaches Ivan Reveal and Feizhi brings word that
Hsu is trapped (FLAG_XIAN_HEARD_HSU_TRAPPED). Coming back out, the area name
is not shown again. East of the waterfall, writing on the cliff hints at
Reveal, and Reveal takes away the mossy rock beneath it to show a chest of
Water of Life (scLamaTempleRevealChest). The temple grounds also hold a
Psynergy Stone.
Back at the Alpine Crossing after the lesson, Hama and Feizhi stand by Hsu,
who is pinned under a boulder west of the rockslide. Reveal on the cliff west
of him shows the mouth of a small cave (scAlpineCrossingRevealPath). It is
part of Altin Peak's AltinPeakSouthEntrance, whose other mouth opens just
north-east of Hsu. The international editions call that cave Alpine Crossing
too, so coming back out of it the area name is not shown again. The first
time the party comes out beside Hsu, the camera finds him and Hama asks if he
is hurt (scAlpineCrossingHamaReachesHsu). Lift on the boulder
(scAlpineCrossingLiftBoulder) raises it while Hama and Feizhi pull him free,
and the party is taken back to Lama Temple, where Hama says farewell outside
her door (scLamaTempleRunHamasFarewell).
If the party comes back by the road from the north instead
(ALPINE_CROSSING_WORLD_MAP_NORTH), Hsu has been freed without them
(FLAG_HSU_RESCUED_WITHOUT_PARTY, which lamakan_desert.c can set too), and
Hama and Feizhi are gone. Either way, once he is free the rockslide has been
cleared and two workers from Xian stand by the open road.
Macros in detail
FLAG_LAMA_TEMPLE_PSYNERGY_STONE
#define FLAG_LAMA_TEMPLE_PSYNERGY_STONE FLAG_AREA_TEMP(0x50)
The temple's Psynergy Stone. It is an area temp flag, so it refills once the party has been to another area.
Referenced by LamaTempleCues.
Definition at line 80 of file alpine_crossing_lama_temple.c.
MAP_ALPINE_CROSSING
#define MAP_ALPINE_CROSSING (SCENE_ALPINE_CROSSING)
The overlay's two scenes.
Referenced by scGetActorPlacements(), scGetCues(), scGetEntrances() and scInit().
Definition at line 83 of file alpine_crossing_lama_temple.c.
MAP_LAMA_TEMPLE
#define MAP_LAMA_TEMPLE (SCENE_LAMA_TEMPLE)
Referenced by scInit().
Definition at line 84 of file alpine_crossing_lama_temple.c.
FEIZHI_ROW
#define FEIZHI_ROW 13
The row Feizhi runs along, from (536, 216) west to (408, 216).
Referenced by scAlpineCrossingFeizhiArrives().
Definition at line 602 of file alpine_crossing_lama_temple.c.
Enumerations in detail
LAMA_TEMPLE_ACTOR_ID
enum LAMA_TEMPLE_ACTOR_ID
Lama Temple's actors. Garet, Ivan and Mia are placed in their own party slots
for Hama's farewell. The others count from ACTOR_FIRST_PLACED.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_TEMPLE_HAMA | ACTOR_FIRST_PLACED | Hama, back in her temple for her farewell. |
ACTOR_GREETING_MONK | ||
ACTOR_MONK_ASKING_ABOUT_THE_EAST | ||
ACTOR_MEDITATING_MONK | ||
ACTOR_MONK_SENSING_ANXIETY | ||
ACTOR_CHI_MONK | ||
ACTOR_MOSSY_ROCK | The mossy rock east of the waterfall that Reveal takes | |
ACTOR_TRAVELING_HEALER | away to show the chest under it (scLamaTempleRevealChest). |
Definition at line 88 of file alpine_crossing_lama_temple.c.
ALPINE_CROSSING_ACTOR_ID
enum ALPINE_CROSSING_ACTOR_ID
Alpine Crossing's actors.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_HAMA | ACTOR_FIRST_PLACED | |
ACTOR_HSU | ||
ACTOR_FEIZHI | ||
ACTOR_BOULDER | ||
ACTOR_FIRST_WORKER | A young man in a white headband, one of the people of Xian who moved the rocks. | |
ACTOR_SECOND_WORKER | A young man with his hair tied back. | |
ACTOR_PUDDLE | The puddle at the foot of the gully, which Frost freezes into a pillar (scAlpineCrossingFreezePuddle). | |
ACTOR_SPROUT | The sprout below the signpost, which Growth grows into a vine (scAlpineCrossingGrowSprout). |
Definition at line 104 of file alpine_crossing_lama_temple.c.
anonymous enum
enum { FLAG_ALPINE_CROSSING_PUDDLE_FROZEN, FLAG_ALPINE_CROSSING_SPROUT_GROWN }
Alpine Crossing's Psynergy puzzles, kept while the party stays.
| Enumerator | Value | Description |
|---|---|---|
FLAG_ALPINE_CROSSING_PUDDLE_FROZEN | FLAG_SCENE_TEMP(0x00) | Frost has frozen the puddle into an ice pillar. |
FLAG_ALPINE_CROSSING_SPROUT_GROWN | FLAG_SCENE_TEMP(0x01) | Growth has grown the sprout into a vine the party can climb. |
Definition at line 121 of file alpine_crossing_lama_temple.c.
anonymous enum
enum { ANIM_HAMA_PULL, ANIM_FEIZHI_PULL, ANIM_FEIZHI_CROUCH, ANIM_TURNING_ROCK_MOSSY, … }
Animations of these scenes' own sprites beyond ACTOR_ANIMATION, named by when
the scripts play them.
| Enumerator | Value | Description |
|---|---|---|
ANIM_HAMA_PULL | 5 | |
ANIM_FEIZHI_PULL | 6 | |
ANIM_FEIZHI_CROUCH | 5 | Drops into a crouch, then holds a half crouch with her head bowed (feizhi.png's frames 33 and 36). |
ANIM_TURNING_ROCK_MOSSY | 2 | SPRITE_TURNING_ROCK's mossy rock (turning_rock.png's frame 1). Its first animations show picture 0, a purple glow. |
ANIM_HSU_STRUGGLE | 5 | |
ANIM_MONK_MEDITATE | 5 |
Definition at line 132 of file alpine_crossing_lama_temple.c.
LAMA_TEMPLE_METATILE_BEHAVIOR
enum LAMA_TEMPLE_METATILE_BEHAVIOR
The metatile behaviors Lama Temple's cues answer.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_LAMA_TEMPLE_SOUTH_ROAD | 1 | The path out to the World Map at the south edge. |
METATILE_BEHAVIOR_LAMA_TEMPLE_DOOR | 2 | |
METATILE_BEHAVIOR_LAMA_TEMPLE_WALL_WRITING | 5 | |
METATILE_BEHAVIOR_LAMA_TEMPLE_CHEST | 100 | |
METATILE_BEHAVIOR_LAMA_TEMPLE_PSYNERGY_STONE | 110 |
Definition at line 147 of file alpine_crossing_lama_temple.c.
ALPINE_CROSSING_METATILE_BEHAVIOR
enum ALPINE_CROSSING_METATILE_BEHAVIOR
The metatile behaviors Alpine Crossing's cues answer.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_ALPINE_CROSSING_EAST_ROAD | 1 | Silk Road at the east edge, back toward Xian. |
METATILE_BEHAVIOR_ALPINE_CROSSING_NORTH_ROAD | 2 | The road at the top of the valley, toward Altin. |
METATILE_BEHAVIOR_ALPINE_CROSSING_WEST_ROAD | 3 | The road at the west edge, toward Lama Temple. |
METATILE_BEHAVIOR_ALPINE_CROSSING_EAST_CAVE_MOUTH | 4 | The cave mouth north-east of Hsu. |
METATILE_BEHAVIOR_ALPINE_CROSSING_WEST_CAVE_MOUTH | 5 | The cave mouth Reveal shows in the cliff west of Hsu (scAlpineCrossingRevealPath). |
METATILE_BEHAVIOR_ALPINE_CROSSING_SIGNPOST | 7 | |
METATILE_BEHAVIOR_ALPINE_CROSSING_FEIZHI_ARRIVAL | 10 | |
METATILE_BEHAVIOR_ALPINE_CROSSING_CHEST | 100 |
Definition at line 158 of file alpine_crossing_lama_temple.c.
anonymous enum
enum { DOOR_X, DOOR_Y }
The door of Hama's room, three metatiles wide and two high. Each step copies the next door picture onto it for five ticks.
| Enumerator | Value | Description |
|---|---|---|
DOOR_X | 67 | |
DOOR_Y | 6 |
Definition at line 180 of file alpine_crossing_lama_temple.c.
anonymous enum
enum { TREASURE_SPOT_WATER_OF_LIFE }
The chest of Water of Life under the mossy rock: its treasure spot is the chest metatile's own.
| Enumerator | Value | Description |
|---|---|---|
TREASURE_SPOT_WATER_OF_LIFE | METATILE_BEHAVIOR_LAMA_TEMPLE_CHEST |
Definition at line 188 of file alpine_crossing_lama_temple.c.
Functions in detail
scActorDrawBehindBackground
static Sint32 scActorDrawBehindBackground(ACTOR *actor)
Draws the actor behind the background, on sprite priority 3 with automatic priority off.
References Sint32.
Referenced by AlpineCrossingWorkerActorPlacementScript.
Definition at line 195 of file alpine_crossing_lama_temple.c.
scAlpineCrossingLeaderFaceFeizhi
static UNREAD_RESULT scAlpineCrossingLeaderFaceFeizhi(ACTOR *leader)
Update function that turns the party leader toward Feizhi while she runs past.
References fdActorGet() and syAtan().
Referenced by scAlpineCrossingFeizhiArrives().
Definition at line 205 of file alpine_crossing_lama_temple.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References AlpineCrossingEntrances, LamaTempleEntrances and MainRoutineStateWork.
Definition at line 217 of file alpine_crossing_lama_temple.c.
scGetExitRegions
const SCENE_EXIT_REGION *scGetExitRegions(void)
Definition at line 226 of file alpine_crossing_lama_temple.c.
scGetExits
const Uint32 *scGetExits(void)
Both scenes share one exit table.
References AlpineCrossingLamaTempleExits.
Definition at line 232 of file alpine_crossing_lama_temple.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References AlpineCrossingActorPlacements, LamaTempleActorPlacements and MainRoutineStateWork.
Definition at line 237 of file alpine_crossing_lama_temple.c.
scLamaTempleTalkToMonkAskingAboutTheEast
static void scLamaTempleTalkToMonkAskingAboutTheEast(void)
A monk in Lama Temple, until Hsu is freed, asks whether the party comes from the east.
References fdScriptAskYesNo(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptSkipMessages(), fdScriptStart() and fdScriptWait().
Referenced by LamaTempleCues.
Definition at line 248 of file alpine_crossing_lama_temple.c.
scLamaTempleTalkToMeditatingMonk
static void scLamaTempleTalkToMeditatingMonk(void)
The meditating monk explains meditation. He's in Lama Temple until Hsu is freed, and first asks whether the party knows what meditation is.
References fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId() and fdScriptStart().
Referenced by LamaTempleCues.
Definition at line 275 of file alpine_crossing_lama_temple.c.
scLamaTempleTalkToChiMonk
static void scLamaTempleTalkToChiMonk(void)
A monk in Lama Temple praises Master Hama as the greatest master of Chi, until Hsu is freed.
References fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId() and fdScriptStart().
Referenced by LamaTempleCues.
Definition at line 288 of file alpine_crossing_lama_temple.c.
scLamaTempleEnterHamasRoom
static void scLamaTempleEnterHamasRoom(void)
Walking north into the temple's sliding door (metatile (8, 10)) slides it open with a thump, and Isaac steps through into Hama's room.
References fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdMapGridAnimateMetatiles(), fdScriptWait(), LamaTempleDoorOpenMetatiles, syImportScriptSetExitRequest() and sySoundPlay().
Referenced by LamaTempleCues.
Definition at line 301 of file alpine_crossing_lama_temple.c.
scLamaTempleRunHamasFarewell
static void scLamaTempleRunHamasFarewell(void)
Hama thanks the party in front of her temple door once they have freed Hsu, Mia teases Garet over whose idea it was to help, and Hama goes back inside; Ivan then decides not to ask her what she would not say to him. The party is brought here straight from the rescue at the Alpine Crossing.
References fdActorFaceDirection(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdMapGridAnimateMetatiles(), fdPlayQueuedMusic(), fdScriptAskYesNo(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptSkipMessages(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), LamaTempleDoorCloseMetatiles, LamaTempleDoorOpenMetatiles and sySoundPlay().
Referenced by scInit().
Definition at line 318 of file alpine_crossing_lama_temple.c.
scLamaTempleReadWallWriting
static void scLamaTempleReadWallWriting(void)
Searching the writing on the cliff east of the waterfall (metatiles (20, 6) and (21, 6)) reads "He who has the power to see that which cannot be seen shall see the truth...", a hint to use Reveal on the mossy rock below it.
References fdActorSetAnimation(), fdScriptEnd(), fdScriptStart() and mnFieldMessageShow().
Referenced by LamaTempleCues.
Definition at line 549 of file alpine_crossing_lama_temple.c.
scLamaTempleHideChest
static void scLamaTempleHideChest(void)
When Reveal wears off in Lama Temple, the mossy rock east of the waterfall stands over the chest again (metatile (21, 9)), and the chest can no longer be opened. The same happens on every entry. The chest's spot is hidden and its metatile takes the plain ground's attributes from the metatile kept at (85, 9).
References fdMapGridCopyMetatileAttributes() and fdTreasureSpotSetActorPos().
Referenced by LamaTempleCues and scInit().
Definition at line 562 of file alpine_crossing_lama_temple.c.
scLamaTempleRevealChest
static void scLamaTempleRevealChest(void)
Reveal in Lama Temple makes the mossy rock east of the waterfall vanish,
showing the chest of Water of Life under it (metatile (21, 9)). The chest's
spot goes back to its metatile, and the metatile gets back the chest's
attributes, which scInit kept at (21, 73).
References fdMapGridCopyMetatileAttributes() and fdTreasureSpotSetPos().
Referenced by LamaTempleCues.
Definition at line 573 of file alpine_crossing_lama_temple.c.
scLamaTempleTalkToHealer
static void scLamaTempleTalkToHealer(void)
The traveling healer at the east end of the bridge in Lama Temple offers the Sanctum's services when spoken to from the south; from any other side he only says he travels the world to spread good will.
References fdActorGet(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and mnSanctumRun().
Referenced by LamaTempleCues.
Definition at line 583 of file alpine_crossing_lama_temple.c.
scAlpineCrossingFeizhiArrives
static void scAlpineCrossingFeizhiArrives(void)
Feizhi runs in behind Isaac as he walks onto Silk Road a few steps inside the east entrance (metatiles (27, 12) to (27, 14)), cries out at the boulders blocking the road, and runs down past the puddle to the rockslide calling for Hsu, with Isaac following. Nothing happens here unless the party has seen her leave Xian, and it plays once.
References AlpineCrossingFeizhiPath, AlpineCrossingLeaderPath, fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorSetSpritePriority(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForScriptEndById(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet() and scAlpineCrossingLeaderFaceFeizhi().
Referenced by AlpineCrossingCues.
Definition at line 609 of file alpine_crossing_lama_temple.c.
scAlpineCrossingTalkToFeizhi
static void scAlpineCrossingTalkToFeizhi(void)
Feizhi, waiting by the rockslide, asks whether she should return to Xian, and whatever Isaac answers decides to keep looking for Hsu.
References fdActorSetAnimationAndWait(), fdActorShowEmote(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptSkipMessages(), fdScriptStart() and fdScriptWait().
Referenced by AlpineCrossingCues.
Definition at line 682 of file alpine_crossing_lama_temple.c.
scAlpineCrossingHamaReachesHsu
static void scAlpineCrossingHamaReachesHsu(void)
The first time the party comes out of the cave mouth north-east of Hsu, the camera finds him pinned under the boulder; Hama asks if he is okay, and none of them knows how to free him.
References fdActorFaceDirection(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdCameraMoveToActorById(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks() and gmFlagSet().
Referenced by scInit().
Definition at line 703 of file alpine_crossing_lama_temple.c.
scAlpineCrossingLiftBoulder
static void scAlpineCrossingLiftBoulder(void)
Lift on the boulder pinning Hsu at the Alpine Crossing raises it, glowing, while Hama and Feizhi pull him out in two heaves. Hama then sends for Master Feh and the party is taken to Lama Temple for her farewell.
References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetDestinationOffset(), fdActorStartRepeatedMotion(), fdActorStop(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagSet(), syImportScriptSetExitRequest() and sySoundPlay().
Referenced by AlpineCrossingCues.
Definition at line 748 of file alpine_crossing_lama_temple.c.
scAlpineCrossingReadSignpost
static void scAlpineCrossingReadSignpost(void)
Searching the signpost beside the road west of the east entrance (metatile (25, 11)) reads "North: Altin Mine West: Lama Temple".
References fdActorSetAnimation(), fdScriptEnd(), fdScriptStart() and mnFieldMessageShow().
Referenced by AlpineCrossingCues.
Definition at line 886 of file alpine_crossing_lama_temple.c.
scAlpineCrossingRevealPath
static void scAlpineCrossingRevealPath(void)
Reveal at the Alpine Crossing opens the mouth of a cave in the cliff west of
Hsu (metatiles (5,
13) and (5, 14)). The cave inside comes out again just north-east of him. The
cave mouth's
pictures and metatiles are kept off the map at (5, 28).References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo() and fdScriptWait().
Referenced by AlpineCrossingCues.
Definition at line 899 of file alpine_crossing_lama_temple.c.
scAlpineCrossingHidePath
static void scAlpineCrossingHidePath(void)
When Reveal wears off at the Alpine Crossing, the cave mouth in the cliff west of Hsu is solid rock again (metatiles (5, 13) and (5, 14)), from the metatiles kept at (6, 28).
References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo() and fdScriptWait().
Referenced by AlpineCrossingCues.
Definition at line 909 of file alpine_crossing_lama_temple.c.
scAlpineCrossingSortPillarAgainstLeader
static UNREAD_RESULT scAlpineCrossingSortPillarAgainstLeader(ACTOR *pillar)
Update function of the ice pillar: Isaac is drawn in front of it while he stands higher than its top, so that he shows standing on it, and behind it otherwise.
References fdActorGet().
Referenced by scAlpineCrossingFreezePuddle().
Definition at line 919 of file alpine_crossing_lama_temple.c.
scAlpineCrossingPrepareFrost
static void scAlpineCrossingPrepareFrost(void)
Nothing visible happens as Frost reaches the puddle at the foot of the gully. When Isaac casts it from north of the puddle, the game draws the puddle in front of the scenery, so that the pillar about to rise from it is not hidden behind the ground he stands on.
References fdActorGet() and fdActorSetSpritePriority().
Referenced by AlpineCrossingCues.
Definition at line 935 of file alpine_crossing_lama_temple.c.
scAlpineCrossingFreezePuddle
static void scAlpineCrossingFreezePuddle(void)
Frost on the puddle at the foot of the gully (metatile (20, 18)) freezes it into a tall ice pillar, which the party can jump onto from either side. The pillar's metatile, and its twin in the map's second layer at (56, 18), become jump metatiles like the one kept at (55, 16).
References fdActorGet(), fdActorSetSpritePriority(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart(), gmFlagSet(), scAlpineCrossingSortPillarAgainstLeader() and sySynch().
Referenced by AlpineCrossingCues and scInit().
Definition at line 950 of file alpine_crossing_lama_temple.c.
scAlpineCrossingGrowSprout
static void scAlpineCrossingGrowSprout(void)
Growth on the sprout at the foot of the cliff below the signpost (metatile (21, 12)) grows it into a vine up the cliff, which the party can climb. Its two metatiles take the climbable metatiles kept at (14, 6).
References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart() and gmFlagSet().
Referenced by AlpineCrossingCues and scInit().
Definition at line 972 of file alpine_crossing_lama_temple.c.
scGetCues
const CUE *scGetCues(void)
References AlpineCrossingCues, LamaTempleCues and MainRoutineStateWork.
Definition at line 981 of file alpine_crossing_lama_temple.c.
scInit
Sint32 scInit(void)
Sets up whichever scene is being entered and runs its arrival scripts.
References AlpineCrossingHsuStruggle, fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorSetScript(), fdActorSetSpriteFlags(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdQueueMusic(), fdScriptGetFlag(), gmFlagClear(), gmFlagGet(), gmFlagSet(), MainRoutineStateWork, scAlpineCrossingFreezePuddle(), scAlpineCrossingGrowSprout(), scAlpineCrossingHamaReachesHsu(), scLamaTempleHideChest(), scLamaTempleRunHamasFarewell() and Sint32.
Definition at line 991 of file alpine_crossing_lama_temple.c.
Variables in detail
AlpineCrossingFeizhiPath
extern Sint32 AlpineCrossingFeizhiPath[]
Sint32 AlpineCrossingFeizhiPath[]
Feizhi's run down the path toward Hsu, walking, then standing.
References Sint32.
Referenced by scAlpineCrossingFeizhiArrives().
Definition at lines 65 and 1116 of file alpine_crossing_lama_temple.c.
AlpineCrossingLeaderPath
extern Sint32 AlpineCrossingLeaderPath[]
Sint32 AlpineCrossingLeaderPath[]
The party leader follows Feizhi most of the way.
References Sint32.
Referenced by scAlpineCrossingFeizhiArrives().
Definition at lines 66 and 1135 of file alpine_crossing_lama_temple.c.
AlpineCrossingHsuStruggle
extern Sint32 AlpineCrossingHsuStruggle[]
Sint32 AlpineCrossingHsuStruggle[]
Hsu, pinned under the boulder, struggles now and then.
References Sint32.
Referenced by AlpineCrossingActorPlacements and scInit().
Definition at lines 67 and 1152 of file alpine_crossing_lama_temple.c.
LamaTempleDoorOpenMetatiles
extern Uint16 LamaTempleDoorOpenMetatiles[]
Uint16 LamaTempleDoorOpenMetatiles[]
The door of Hama's room sliding open, and shut again.
Referenced by scLamaTempleEnterHamasRoom() and scLamaTempleRunHamasFarewell().
Definition at lines 68 and 1167 of file alpine_crossing_lama_temple.c.
LamaTempleDoorCloseMetatiles
extern Uint16 LamaTempleDoorCloseMetatiles[]
Uint16 LamaTempleDoorCloseMetatiles[]
Referenced by scLamaTempleRunHamasFarewell().
Definition at lines 69 and 1172 of file alpine_crossing_lama_temple.c.
LamaTempleEntrances
extern SCENE_ENTRANCE LamaTempleEntrances[]
SCENE_ENTRANCE LamaTempleEntrances[]
Referenced by scGetEntrances().
Definition at lines 70 and 1178 of file alpine_crossing_lama_temple.c.
AlpineCrossingEntrances
extern SCENE_ENTRANCE AlpineCrossingEntrances[]
SCENE_ENTRANCE AlpineCrossingEntrances[]
Referenced by scGetEntrances().
Definition at lines 71 and 1227 of file alpine_crossing_lama_temple.c.
AlpineCrossingLamaTempleExits
extern Uint32 AlpineCrossingLamaTempleExits[]
Uint32 AlpineCrossingLamaTempleExits[]
Referenced by scGetExits().
Definition at lines 72 and 1275 of file alpine_crossing_lama_temple.c.
LamaTempleActorPlacements
extern ACTOR_PLACE LamaTempleActorPlacements[]
ACTOR_PLACE LamaTempleActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 73 and 1304 of file alpine_crossing_lama_temple.c.
AlpineCrossingActorPlacements
extern ACTOR_PLACE AlpineCrossingActorPlacements[]
ACTOR_PLACE AlpineCrossingActorPlacements[]
References AlpineCrossingHsuStruggle, AlpineCrossingWorkerActorPlacementScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 74 and 1330 of file alpine_crossing_lama_temple.c.
LamaTempleCues
extern CUE LamaTempleCues[]
CUE LamaTempleCues[]
References scLamaTempleEnterHamasRoom(), scLamaTempleHideChest(), scLamaTempleReadWallWriting(), scLamaTempleRevealChest(), scLamaTempleTalkToChiMonk(), scLamaTempleTalkToHealer(), scLamaTempleTalkToMeditatingMonk() and scLamaTempleTalkToMonkAskingAboutTheEast().
Referenced by scGetCues().
Definition at lines 75 and 1352 of file alpine_crossing_lama_temple.c.
AlpineCrossingCues
extern CUE AlpineCrossingCues[]
CUE AlpineCrossingCues[]
References scAlpineCrossingFeizhiArrives(), scAlpineCrossingFreezePuddle(), scAlpineCrossingGrowSprout(), scAlpineCrossingHidePath(), scAlpineCrossingLiftBoulder(), scAlpineCrossingPrepareFrost(), scAlpineCrossingReadSignpost(), scAlpineCrossingRevealPath() and scAlpineCrossingTalkToFeizhi().
Referenced by scGetCues().
Definition at lines 76 and 1418 of file alpine_crossing_lama_temple.c.
AlpineCrossingWorkerActorPlacementScript
Sint32 AlpineCrossingWorkerActorPlacementScript[]
The first worker's actor placement script: he is drawn behind the scenery.
References scActorDrawBehindBackground() and Sint32.
Referenced by AlpineCrossingActorPlacements.
Definition at line 1110 of file alpine_crossing_lama_temple.c.