src/scene/fuchin_temple.c
Fuchin Temple's grounds, and the rooms map that shares its overlay. More…
#include "ability_ids.h"#include "flags.h"#include "item_ids.h"#include "battle/battle.h"#include "debug/debug.h"#include "field/script.h"#include "field/field_psynergy_state.h"#include "graphics/graphics.h"#include "game/system_call.h"#include "text/msg_ids.h"#include "shared/field_effect_create.c"#include "shared/field_effect_spawn.c"#include "shared/leader_hop.c"#include "shared/field_effect_duration_scripts.c"
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_FUCHIN_TEMPLE_NYUNPA_TEST_DECLINED FLAG_AREA_TEMP(0x00) | The party refused Nyunpa's test, so talking to him offers it again. |
#define | FLAG_FUCHIN_TEMPLE_FEH_SCHOOL_SAW_TREE_FALL FLAG_AREA_TEMP(0x01) | Feh's students saw the training tree fall, but not to Chi from the line. |
#define | FLAG_FUCHIN_TEMPLE_PSYNERGY_STONE FLAG_AREA_TEMP(0x50) | The Psynergy Stone outside the temple has been taken. |
#define | REVEAL_LESSON_SPARKLES 64 | The sparkles that rise from Hama, two ticks apart, as the Reveal lesson ends. |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { METATILE_BEHAVIOR_FUCHIN_TEMPLE_SOUTH_ROAD, METATILE_BEHAVIO … } | The metatiles outside the temple and in its rooms that run scripts. |
enum | FUCHIN_TEMPLE_OUTSIDE_ACTOR_ID { ACTOR_YOUNG_MAN_FROM_KOLIMA, ACTOR_FALLS_MONK, ACTOR_BOY_MON … } | The placed actors outside Fuchin Temple (FuchinTempleGrounds), numbered in the order of FuchinTempleGroundsActorPlacements. |
enum | FUCHIN_TEMPLE_INSIDE_ACTOR_ID { ACTOR_NYUNPA, ACTOR_WELCOMING_STUDENT, ACTOR_KICKING_STUDENT … } | The placed actors inside Fuchin Temple and in Master Feh's school in Xian (LacquerRoomsA), numbered in the order of FuchinTempleActorPlacements. |
enum | HAMAS_ROOM_ACTOR_ID { ACTOR_HAMA, ACTOR_HAMAS_BOY_MONK, ACTOR_FEIZHI_IN_LAMA_TEMPL … } | The placed actors in Master Hama's room in Lama Temple (LacquerRoomsA by LACQUER_ROOMS_A_HAMAS_ROOM_LAMA_TEMPLE), numbered in the order of FuchinTempleActorPlacementsFromLamaTemple. |
enum | anonymous enum { ANIM_NYUNPA_MEDITATE, ANIM_NYUNPA_WITHERED, ANIM_STUDENT_KIC … } | Animations of these scenes' own sprites beyond ACTOR_ANIMATION. |
enum | anonymous enum { TREE_STANDING_STEP, TREE_FALLEN_WEST_STEP, TREE_FALLEN_EAST_ … } | The tree trunk's tilt in sixteenths of a turn (FACING_STEP) as it falls sideways: it stands at TREE_STANDING_STEP and lies a quarter turn to either side. |
enum | FUCHIN_TEMPLE_CHI_RULE { FUCHIN_TEMPLE_CHI_NOT_FROM_LINE, FUCHIN_TEMPLE_CHI_PUSHED_BY … } | What the student by the tree explains (scFuchinTempleStudentExplainsChiRules). |
Functions
| Name | Description | |
|---|---|---|
static void | scFuchinTempleFeizhiLeavesForHsu (void) | The first time the trunk falls to Force from the line, a student runs to Feh's door, Feh and his daughter Feizhi come out arguing over her visions, and she leaves alone to find Hsu. |
static void | scFuchinTempleFehSeesChi (void) | The trunk falls to Force from the line with Feh watching, and Feh sees that it is not Chi but Fuchin's Ki: energy focused from the mind (FLAG_FEH_SAW_KI). |
static void | scHopLeaderBy (Sint32 dx, Sint32 dz) | The leader leaps the given pixels, two and a half a tick, and lands with a spring. |
static void | scFuchinTempleStartMindReadDemonstration (Sint32 caster, Sint32 target) | Starts Mind Read from caster on target as part of a script, without the window that announces its name. |
static void | scFuchinTempleFinishMindReadDemonstration (void) | Finishes the demonstration's Mind Read and lowers the caster's hands. |
static void | scFuchinTempleSpawnNyunpasParticles (void) | Eight crescents of light rise from Nyunpa, ten ticks apart, as he glows and calls to the monk at the falls; every second one sounds. |
static void | scFuchinTempleAnimateRevealLesson (void) | Hama and then Ivan glow red and blue while the room darkens to purple, then sparkles rise from Hama and the room's colours come back. |
static Sint32 | scFuchinTempleClearScriptedActorSpriteFlags (ACTOR *actor) | A script step that takes the actor's shadow and other sprite flags away. |
static UNREAD_RESULT | scFuchinTempleFaceLeader (ACTOR *actor) | Turns an actor toward the party leader, each tick, while Feh's school waits to see Isaac's Chi. |
const SCENE_ENTRANCE * | scGetEntrances (void) | The entrances outside, or those of the rooms map. |
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) | The actors outside, in Hama's room, or in the temple and Feh's school, where once Hsu is known to be trapped the tree and two students are gone. |
static void | scFuchinTempleYoungManFromKolimaAsksAboutBridge (void) | Isaac talks to the young man from Kolima on the path below the temple: he asks how the party got here, and whether the bridge is open. |
static void | scFuchinTempleBoyMonkSpeaksOfNyunpa (void) | Isaac talks to the boy monk who admires Nyunpa, below the temple: "Isn't it noble of him to try to save the world...", with up to two more questions. |
static void | scFuchinTempleMonkLetsPartyIntoGrotto (void) | Isaac talks to the monk on the stump in front of the falls once Nyunpa has set the test: "I have already heard of your test from Master Nyunpa. |
static void | scFuchinTempleMonkAsksWhetherTestIsDone (void) | Coming back out from behind the falls with the Orb of Force, Isaac hops onto the stump beside the monk, metatile (10, 24), and the monk asks: "Young master, did you complete the test?" Either way he sends him up to the temple, where Master Nyunpa is waiting. |
static void | scFuchinTempleNyunpaOffersTest (void) | Isaac reads Nyunpa's mind as he meditates in the temple, or talks to him after turning the test down: Nyunpa offers him the test of the grotto beneath the falls. |
static void | scFuchinTempleNyunpaFeelsMindRead (void) | Isaac reads Nyunpa's mind again once the test is accepted, and Nyunpa notices: "You enjoy reading the minds of others, do you not?" |
static void | scFuchinTempleStudentWelcomesToSchool (void) | Isaac talks to the young man by the door of Master Feh's school in Xian: "This is Master Feh's school... |
static void | scFuchinTempleTalkToJumpingStudent (void) | Isaac talks to the student jumping up and down in Master Feh's school: he lands, talks about jumping (later of Lama Temple, or of Hsu), then jumps on. |
static void | scFuchinTempleStudentAsksAboutFeh (void) | Isaac talks to the student by the tree trunk in Master Feh's school: "Master Feh is very busy. |
static void | scFuchinTempleKnockTreeDownWest (void) | The tree trunk topples to the west, faster as it goes, and lands with a thud and a puff of dust. |
static void | scFuchinTempleKnockTreeDownEast (void) | The tree trunk topples to the east, faster as it goes, and lands with a thud and a puff of dust. |
static void | scFuchinTempleKnockTreeDownNorth (void) | The tree trunk rocks north and falls over that way, with a thud and a puff of dust. |
static void | scFuchinTempleKnockTreeDownSouth (void) | The tree trunk rocks south and falls over that way, with a thud and a puff of dust. |
static inline void | scFuchinTempleSetTreeUpAgain (void) | The fallen tree trunk is set up again at its place in the school. |
static void | scFuchinTempleStudentWalksAroundTree (void) | The student by the tree walks round to the fallen trunk, on the side away from Isaac. |
static void | scFuchinTempleStudentExplainsChiRules (Sint32 mode) | The student by the tree explains the rule the party broke, or praises Isaac (mode, a FUCHIN_TEMPLE_CHI_RULE), and sets the trunk up again. |
static void | scFuchinTempleStudentsSeeTreeFall (void) | The students see the tree trunk fall, Feh will not count it because it was not done from the line, and the student sets the trunk up again. |
static void | scFuchinTempleMoveTree (void) | Isaac casts Move on the tree trunk in Master Feh's school: it topples, and the student by it says that was not Chi, or Feh will not count it because it was not done from the line. |
static void | scFuchinTemplePushTreeByHand (void) | Isaac walks into the tree trunk in Master Feh's school and pushes it over by hand: "You cannot push it with your hands. |
static void | scFuchinTempleForceTree (void) | Isaac casts Force on the tree trunk in Master Feh's school and it topples. |
static void | scFuchinTempleFehAsksToSeeChi (void) | Isaac talks to Feh in his school after turning him down: "Warrior, will you show me your Chi?" |
static void | scFuchinTempleStudentAsksAboutAltin (void) | Isaac talks to the student practising punches in Master Feh's school once Hsu is known to be trapped: "Water monsters flooded Altin. |
static void | scFuchinTempleOpenLockedDoor (void) | Isaac walks north into the lattice door Feh and Feizhi came out of, in the east of the school: "It is locked." until Feizhi has left; then it opens and he walks through into Feh's house. |
static void | scFuchinTempleTalkToHealer (void) | Isaac talks to the traveling healer by the temple door: from the south he offers his healing, as a Sanctum does; from any other side he says he is traveling the world to spread good will. |
static void | scFuchinTempleReadNyunpasLastWish (void) | Isaac reads the withered Nyunpa's mind once he has died enlightened: "Isaac... |
const CUE * | scGetCues (void) | The cues outside, in Hama's room, or in the temple and Feh's school. |
static void | scFuchinTempleSpawnGrottoEntryParticle (void) | Drops spray over Isaac as he walks in behind the falls, and makes him flicker. |
static UNUSED void | scFuchinTempleHopLeaderNorth (void) | Unused: hops the leader two map metatiles north; nothing calls it. |
static UNUSED void | scFuchinTempleHopLeaderSouth (void) | Unused: hops the leader two map metatiles south; nothing calls it. |
static UNUSED void | scFuchinTempleHopLeaderWest (void) | Unused: hops the leader two map metatiles west; nothing calls it. |
static void | scFuchinTempleEnterWaterfallGrotto (void) | Isaac steps from the monk's stump into the falls, metatile (10, 21): spray falls over him and he flickers out of sight as the screen fades, into Fuchin Falls Cave. |
static void | scFuchinTempleLeaveTemple (void) | Walking out through the temple's south door, Isaac leaves Nyunpa's hall for the grounds outside. |
static void | scFuchinTempleEnterTemple (void) | Isaac walks north into the temple's door, metatile (18, 18): it opens with a thump, and he walks inside, where Nyunpa meditates. |
static void | scFuchinTempleNyunpaTeachesKi (void) | Back in the temple with the Orb of Force, Isaac walks up to Nyunpa, who praises him, names the power he has gained Ki, which the western world calls Force, and tells him to use it to find his way through Mogall Forest (FLAG_NYUNPA_TAUGHT_FORCE). |
static void | scFuchinTempleRunHamasRevealLesson (void) | The first time the party enters Master Hama's room in Lama Temple, the boy monk asks them to be quiet while she meditates. |
Sint32 | scInit (void) | Sets each room up as the story left it. |
static void | scFuchinTempleGlowRedAndBlue (ACTOR *actor) | Hama's and Ivan's update function during the Reveal lesson: they glow, drawn red and blue in turn every two ticks. |
Variables
| Name | Description | |
|---|---|---|
extern Sint32 | FuchinTempleJumpingStudentScript [] | The student who trains by jumping: three hops, each higher, spinning a full turn in the third, then a second's rest. |
extern Uint16 | FuchinTempleTempleDoorOpens [] | The doors' map metatiles, tick by tick: Fuchin Temple's door opening as Isaac walks in (scFuchinTempleEnterTemple), and the door Feh and Feizhi come out of in Master Feh's school, opening and closing behind them. |
extern Uint16 | FuchinTempleFehsDoorOpens [] | |
extern Uint16 | FuchinTempleFehsDoorCloses [] | |
extern SCENE_ENTRANCE | FuchinTempleGroundsEntrances [] | |
extern SCENE_ENTRANCE | FuchinTempleEntrancesOther [] | |
extern Uint32 | FuchinTempleExits [] | |
extern ACTOR_PLACE | FuchinTempleGroundsActorPlacements [] | |
extern ACTOR_PLACE | FuchinTempleActorPlacements [] | |
extern ACTOR_PLACE | FuchinTempleActorPlacementsFromLamaTemple [] | |
extern CUE | FuchinTempleGroundsCues [] | |
extern CUE | FuchinTempleCues [] | |
extern CUE | FuchinTempleCuesFromLamaTemple [] | |
extern Sint32 | FuchinTempleCrescentScript [] | One of Nyunpa's crescents (scFuchinTempleSpawnNyunpasParticles): it rises facing north for 45 ticks, then is put away. |
const Sint32 * | FieldEffectDurationScripts [] | The resident copy of the scripts EFFECT_SCRIPT_MASK picks, by enum EFFECT_DURATION. |
Sint32 | FuchinTempleHiddenSpriteScript [] | The point Force strikes on the training tree: no shadow. |
Description
Fuchin Temple's grounds, and the rooms map that shares its overlay.
The game packs rooms of several places that share a tile style onto one map. Here that is the inside of Fuchin Temple with two masters' rooms in other areas, Master Feh's school in Xian and Master Hama's room in Lama Temple.
Two scenes hold four areas, by their area names. In each, story flags pick where the people stand and which script plays on entry.
-
Fuchin Temple (
SceneIdFuchinTempleGrounds), outside: a path from the World Map in the south (FUCHIN_TEMPLE_GROUNDS_WORLD_MAP) climbs beside a pool and waterfall to the temple, a blue-roofed hall at the top, with a traveling healer by its door and a Psynergy Stone to its east. A defeat anywhere here returns the party toFUCHIN_TEMPLE_GROUNDS_AFTER_DEFEAT, in front of the healer.A monk stands on a tall stump in the pool, in front of the falls, guarding the grotto behind them. Once Nyunpa has set his test (
FLAG_NYUNPA_TEST_ACCEPTED) the monk leaps aside to the next stump (FLAG_FUCHIN_FALLS_GROTTO_OPENED), and the grotto leads into Fuchin Falls Cave (FUCHIN_TEMPLE_GROUNDS_FUCHIN_FALLS_CAVE_ENTRANCE). Back out with the Orb of Force (FLAG_FUCHIN_FALLS_ORB_OF_FORCE_FOUND), he sends the party on to Nyunpa (FLAG_FUCHIN_FALLS_MONK_ASKED_ABOUT_TEST). -
Lacquer rooms A (
SceneIdLacquerRoomsA), a rooms map drawn in red lacquer. Each is a camera box of its own, chosen by the entrance the party comes in by. In story order, by the exits that lead in:-
Fuchin Temple (by
LACQUER_ROOMS_A_FUCHIN_TEMPLE_GROUNDSor the default entrance), inside, where Nyunpa meditates on a dais with the sign of yin and yang. Mind Read on him offers the test (scFuchinTempleNyunpaOffersTest, again afterFLAG_FUCHIN_TEMPLE_NYUNPA_TEST_DECLINED). Back with the Orb,scInitplays his lesson on Ki (scFuchinTempleNyunpaTeachesKi,FLAG_NYUNPA_TAUGHT_FORCE). Once Mogall Forest has setFLAG_NYUNPA_ENLIGHTENEDhe sits withered (ANIM_NYUNPA_WITHERED) and Mind Read hears his last wish. -
Xian (by
LACQUER_ROOMS_A_FEHS_SCHOOL_XIANandLACQUER_ROOMS_A_FEHS_SCHOOL_HOUSE), Master Feh's kung fu school. The area-name rules give the name Xian only atLACQUER_ROOMS_A_FEHS_SCHOOL_XIAN, andscInithides the name at both. Force from the white line on the floor fells the tree trunk the students train on (scFuchinTempleForceTree). The first time, Feizhi and Feh come out and she leaves to find Hsu (FLAG_FEIZHI_WENT_TO_HSU), which unlocksLACQUER_ROOMS_A_FEHS_SCHOOL_HOUSE. Feh then waits to see Isaac's Chi (FLAG_FEH_WAITS_TO_SEE_CHI, orFLAG_FEH_CHI_DEMONSTRATION_DECLINEDafter two refusals). Seeing the tree fall from the line, he names it Ki (FLAG_FEH_SAW_KI). Moving the tree with Move or by hand only setsFLAG_FUCHIN_TEMPLE_FEH_SCHOOL_SAW_TREE_FALL. Once Hsu is known to be trapped (FLAG_XIAN_HEARD_HSU_TRAPPED),scGetActorPlacementsremoves the tree and two students.LACQUER_ROOMS_A_FEHS_SCHOOL_XIANleads out into Xian. -
Lama Temple (by
LACQUER_ROOMS_A_HAMAS_ROOM_LAMA_TEMPLE), the room in which Master Hama meditates. The first visit plays her lesson (scFuchinTempleRunHamasRevealLesson). In it she gives Ivan Reveal and leaves with Feizhi to free Hsu, settingFLAG_XIAN_HEARD_HSU_TRAPPED. UntilFLAG_HSU_RESCUED, Hama and the boy monk in her room are away.LACQUER_ROOMS_A_HAMAS_ROOM_LAMA_TEMPLEleads back into Lama Temple.
-
Macros in detail
FLAG_FUCHIN_TEMPLE_NYUNPA_TEST_DECLINED
#define FLAG_FUCHIN_TEMPLE_NYUNPA_TEST_DECLINED FLAG_AREA_TEMP(0x00)
The party refused Nyunpa's test, so talking to him offers it again.
Referenced by FuchinTempleCues and scFuchinTempleNyunpaOffersTest().
Definition at line 141 of file fuchin_temple.c.
FLAG_FUCHIN_TEMPLE_FEH_SCHOOL_SAW_TREE_FALL
#define FLAG_FUCHIN_TEMPLE_FEH_SCHOOL_SAW_TREE_FALL FLAG_AREA_TEMP(0x01)
Feh's students saw the training tree fall, but not to Chi from the line.
Referenced by FuchinTempleCues and scFuchinTempleStudentsSeeTreeFall().
Definition at line 143 of file fuchin_temple.c.
FLAG_FUCHIN_TEMPLE_PSYNERGY_STONE
#define FLAG_FUCHIN_TEMPLE_PSYNERGY_STONE FLAG_AREA_TEMP(0x50)
The Psynergy Stone outside the temple has been taken. It refills once the party enters another area.
Referenced by FuchinTempleGroundsCues.
Definition at line 231 of file fuchin_temple.c.
REVEAL_LESSON_SPARKLES
#define REVEAL_LESSON_SPARKLES 64
The sparkles that rise from Hama, two ticks apart, as the Reveal lesson ends.
Referenced by scFuchinTempleAnimateRevealLesson().
Definition at line 2968 of file fuchin_temple.c.
Enumerations in detail
anonymous enum
enum { METATILE_BEHAVIOR_FUCHIN_TEMPLE_SOUTH_ROAD, METATILE_BEHAVIOR_FUCHIN_TEMPLE_DOOR, METATILE_BEHAVIOR_FUCHIN_FALLS_GROTTO, METATILE_BEHAVIOR_FUCHIN_FALLS_MONK_ASKS, … }
The metatiles outside the temple and in its rooms that run scripts.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_FUCHIN_TEMPLE_SOUTH_ROAD | 1 | Outside: the road south, out to the world map. |
METATILE_BEHAVIOR_FUCHIN_TEMPLE_DOOR | 2 | Outside: the temple's door. |
METATILE_BEHAVIOR_FUCHIN_FALLS_GROTTO | 3 | Outside: the falls behind the monk's stump, the way into the grotto. |
METATILE_BEHAVIOR_FUCHIN_FALLS_MONK_ASKS | 5 | Outside: the stump beside |
METATILE_BEHAVIOR_FUCHIN_TEMPLE_PSYNERGY_STONE | 110 | the monk, set only on the way out of the grotto with the Orb of Force. Outside: where the Psynergy Stone lies, metatile (24, 17). |
METATILE_BEHAVIOR_FUCHIN_TEMPLE_SOUTH_DOOR | 1 | Inside: the temple's |
METATILE_BEHAVIOR_FUCHIN_TEMPLE_UNICORN_RING_JAR | 101 | south door. Inside: the jar in Nyunpa's hall, metatile (12, 27). |
METATILE_BEHAVIOR_FEHS_SCHOOL_SOUTH_DOOR | 2 | Inside: the school's south door, out to Xian. |
METATILE_BEHAVIOR_FEHS_SCHOOL_HOUSE_DOOR | 3 | Inside: the lattice door to Feh's house. |
METATILE_BEHAVIOR_FEHS_SCHOOL_TREE_EAST_SOUTH | 10 | Inside: the metatiles east and south of the school's tree trunk. |
METATILE_BEHAVIOR_FEHS_SCHOOL_TREE_WEST_NORTH | 11 | Inside: the metatiles west and north of the school's tree trunk. |
METATILE_BEHAVIOR_FEHS_SCHOOL_ANTIDOTE_BARREL | 100 | Inside: the barrel in the school, metatile (6, 14). |
METATILE_BEHAVIOR_HAMAS_ROOM_SOUTH_DOOR | 4 | Hama's room: the south door, out to Lama Temple. |
METATILE_BEHAVIOR_HAMAS_ROOM_COINS_JAR | 102 | Hama's room: the jar, metatile (27, 27). |
Definition at line 92 of file fuchin_temple.c.
FUCHIN_TEMPLE_OUTSIDE_ACTOR_ID
enum FUCHIN_TEMPLE_OUTSIDE_ACTOR_ID
The placed actors outside Fuchin Temple (FuchinTempleGrounds), numbered in
the order of FuchinTempleGroundsActorPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_YOUNG_MAN_FROM_KOLIMA | ACTOR_FIRST_PLACED | A young man from Kolima. |
ACTOR_FALLS_MONK | The monk beneath the falls, at the waterfall grotto. | |
ACTOR_BOY_MONK_READING_OMENS | A boy monk who reads omens. | |
ACTOR_WORRIED_BOY_MONK | A boy monk who fears for Nyunpa. | |
ACTOR_ADMIRING_BOY_MONK | A boy monk who admires Nyunpa. | |
ACTOR_HEALER | The traveling healer, a man in a tall hat and a long robe. |
Definition at line 147 of file fuchin_temple.c.
FUCHIN_TEMPLE_INSIDE_ACTOR_ID
enum FUCHIN_TEMPLE_INSIDE_ACTOR_ID
The placed actors inside Fuchin Temple and in Master Feh's school in Xian
(LacquerRoomsA), numbered in the order of FuchinTempleActorPlacements.
They are Nyunpa, Feh's students, Feizhi and Feh, and the training tree.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_NYUNPA | ACTOR_FIRST_PLACED | |
ACTOR_WELCOMING_STUDENT | A young man, by the school's door. | |
ACTOR_KICKING_STUDENT | A student who practices kicks. | |
ACTOR_PUNCHING_STUDENT | A student who practices punches. | |
ACTOR_JUMPING_STUDENT | ||
ACTOR_PROUD_STUDENT | A student proud of Feh's school. | |
ACTOR_WATCHING_STUDENT | A little girl, a student who learns by watching. | |
ACTOR_TREE_STUDENT | By the training tree, which he sets up again after it falls. | |
ACTOR_MESSENGER_STUDENT | Keeps the party from Feh, and goes to Feh's door when the tree first falls from the line. | |
ACTOR_FEIZHI | ||
ACTOR_FEH | ||
ACTOR_TRAINING_TREE | ||
ACTOR_TRAINING_TREE_TARGET | Where Force strikes the tree. |
Definition at line 169 of file fuchin_temple.c.
HAMAS_ROOM_ACTOR_ID
enum HAMAS_ROOM_ACTOR_ID
The placed actors in Master Hama's room in Lama Temple (LacquerRoomsA by
LACQUER_ROOMS_A_HAMAS_ROOM_LAMA_TEMPLE), numbered in the order of
FuchinTempleActorPlacementsFromLamaTemple.
Garet, Ivan and Mia, placed first, keep their own slots.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_HAMA | ACTOR_FIRST_PLACED | |
ACTOR_HAMAS_BOY_MONK | A boy monk in Hama's room. | |
ACTOR_FEIZHI_IN_LAMA_TEMPLE | Bursts in to say that Hsu is in danger. |
Definition at line 194 of file fuchin_temple.c.
anonymous enum
enum { ANIM_NYUNPA_MEDITATE, ANIM_NYUNPA_WITHERED, ANIM_STUDENT_KICKS, ANIM_STUDENT_PUNCHES }
Animations of these scenes' own sprites beyond ACTOR_ANIMATION.
| Enumerator | Value | Description |
|---|---|---|
ANIM_NYUNPA_MEDITATE | 5 | Seated cross-legged with his eyes shut (nyunpa.png's frame 33). |
ANIM_NYUNPA_WITHERED | 6 | Seated as he meditated, shrunken and darkened, once he has died enlightened (nyunpa.png's frame 34). |
ANIM_STUDENT_KICKS | 5 | A drill of kicks, a knee raised, a kick and a leaping kick, from a fighting stance (youth_with_headband.tsv). |
ANIM_STUDENT_PUNCHES | 5 | A drill of quick punches with one kick among them (youth_with_tied_hair.tsv). |
Definition at line 202 of file fuchin_temple.c.
anonymous enum
enum { TREE_STANDING_STEP, TREE_FALLEN_WEST_STEP, TREE_FALLEN_EAST_STEP }
The tree trunk's tilt in sixteenths of a turn (FACING_STEP) as it falls
sideways: it stands at TREE_STANDING_STEP and lies a quarter turn to either
side.
| Enumerator | Value | Description |
|---|---|---|
TREE_STANDING_STEP | DEGtoANG(180) / FACING_STEP | |
TREE_FALLEN_WEST_STEP | DEGtoANG(90) / FACING_STEP | |
TREE_FALLEN_EAST_STEP | DEGtoANG(270) / FACING_STEP |
Definition at line 722 of file fuchin_temple.c.
FUCHIN_TEMPLE_CHI_RULE
enum FUCHIN_TEMPLE_CHI_RULE
What the student by the tree explains
(scFuchinTempleStudentExplainsChiRules).
| Enumerator | Value | Description |
|---|---|---|
FUCHIN_TEMPLE_CHI_NOT_FROM_LINE | 0 | Psynergy felled the tree, but not from the line |
FUCHIN_TEMPLE_CHI_PUSHED_BY_HAND | 1 | Isaac pushed it over by hand |
FUCHIN_TEMPLE_CHI_SEEN_BEFORE | 2 | praise for a warrior Feh has already seen |
Definition at line 989 of file fuchin_temple.c.
Functions in detail
scFuchinTempleFeizhiLeavesForHsu
static void scFuchinTempleFeizhiLeavesForHsu(void)
The first time the trunk falls to Force from the line, a student runs to Feh's door, Feh and his daughter Feizhi come out arguing over her visions, and she leaves alone to find Hsu.
References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorReleaseById(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetScript(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraFollowActor(), fdMapGridAnimateMetatiles(), fdScriptAskYesNo(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptSkipMessages(), fdScriptWait(), FuchinTempleFehsDoorCloses, FuchinTempleFehsDoorOpens, FuchinTempleJumpingStudentScript, gmFlagSet(), scFuchinTempleSetTreeUpAgain() and sySoundPlay().
Referenced by scFuchinTempleForceTree().
Definition at lines 217 and 1223 of file fuchin_temple.c.
scFuchinTempleFehSeesChi
static void scFuchinTempleFehSeesChi(void)
The trunk falls to Force from the line with Feh watching, and Feh sees that
it is not Chi but Fuchin's Ki: energy focused from the mind
(FLAG_FEH_SAW_KI).
References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetScript(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorTurnToFaceEachOther(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdScriptAskYesNo(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptWait(), FuchinTempleJumpingStudentScript, gmFlagClear(), gmFlagSet() and sySoundPlay().
Referenced by scFuchinTempleForceTree().
Definition at lines 218 and 1543 of file fuchin_temple.c.
scFuchinTempleStartMindReadDemonstration
static void scFuchinTempleStartMindReadDemonstration(Sint32 caster, Sint32 target)
Starts Mind Read from caster on target as part of a script, without the window that announces its name.
References fdPsynergyLoadResources(), fdPsynergyRunHandler(), fdPsynergySetupActorPair(), fdPsynergyStartCast(), gmFlagSet(), Sint32 and sySynch().
Referenced by scFuchinTempleNyunpaOffersTest().
Definition at lines 220 and 2895 of file fuchin_temple.c.
scFuchinTempleFinishMindReadDemonstration
static void scFuchinTempleFinishMindReadDemonstration(void)
Finishes the demonstration's Mind Read and lowers the caster's hands.
References fdActorSetAnimation(), fdPsynergyRunHandler() and fdPsynergyStopCasterUpdate().
Referenced by scFuchinTempleNyunpaOffersTest().
Definition at lines 222 and 2911 of file fuchin_temple.c.
scFuchinTempleSpawnNyunpasParticles
static void scFuchinTempleSpawnNyunpasParticles(void)
Eight crescents of light rise from Nyunpa, ten ticks apart, as he glows and calls to the monk at the falls; every second one sounds.
References fdActorGet(), fdScriptWait(), FuchinTempleCrescentScript and sySoundPlay().
Referenced by scFuchinTempleNyunpaOffersTest().
Definition at lines 223 and 2920 of file fuchin_temple.c.
scFuchinTempleAnimateRevealLesson
static void scFuchinTempleAnimateRevealLesson(void)
Hama and then Ivan glow red and blue while the room darkens to purple, then sparkles rise from Hama and the room's colours come back.
References fdActorGet(), fdActorSetSpriteColorById(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptWait(), scFuchinTempleGlowRedAndBlue(), Sint32, sySoundPlay() and sySynch().
Referenced by scFuchinTempleRunHamasRevealLesson().
Definition at lines 224 and 2972 of file fuchin_temple.c.
scFuchinTempleClearScriptedActorSpriteFlags
static Sint32 scFuchinTempleClearScriptedActorSpriteFlags(ACTOR *actor)
A script step that takes the actor's shadow and other sprite flags away.
References fdActorSetSpriteFlags() and Sint32.
Referenced by FuchinTempleHiddenSpriteScript.
Definition at line 234 of file fuchin_temple.c.
scFuchinTempleFaceLeader
static UNREAD_RESULT scFuchinTempleFaceLeader(ACTOR *actor)
Turns an actor toward the party leader, each tick, while Feh's school waits to see Isaac's Chi.
References fdActorGet() and syAtan().
Referenced by scInit().
Definition at line 242 of file fuchin_temple.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
The entrances outside, or those of the rooms map.
References FuchinTempleEntrancesOther, FuchinTempleGroundsEntrances and MainRoutineStateWork.
Definition at line 253 of file fuchin_temple.c.
scGetExitRegions
const SCENE_EXIT_REGION *scGetExitRegions(void)
Definition at line 264 of file fuchin_temple.c.
scGetExits
const Uint32 *scGetExits(void)
References FuchinTempleExits.
Definition at line 269 of file fuchin_temple.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
The actors outside, in Hama's room, or in the temple and Feh's school, where once Hsu is known to be trapped the tree and two students are gone.
References fdAssignViewFlags(), fdScriptGetFlag(), FuchinTempleActorPlacements, FuchinTempleActorPlacementsFromLamaTemple, FuchinTempleGroundsActorPlacements and MainRoutineStateWork.
Definition at line 276 of file fuchin_temple.c.
scFuchinTempleYoungManFromKolimaAsksAboutBridge
static void scFuchinTempleYoungManFromKolimaAsksAboutBridge(void)
Isaac talks to the young man from Kolima on the path below the temple: he asks how the party got here, and whether the bridge is open.
References fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and gmFlagSet().
Referenced by FuchinTempleGroundsCues.
Definition at line 312 of file fuchin_temple.c.
scFuchinTempleBoyMonkSpeaksOfNyunpa
static void scFuchinTempleBoyMonkSpeaksOfNyunpa(void)
Isaac talks to the boy monk who admires Nyunpa, below the temple: "Isn't it noble of him to try to save the world...", with up to two more questions. Once Nyunpa has died enlightened, he wonders whether he is watching over them.
References fdScriptAskYesNo(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and gmFlagGet().
Referenced by FuchinTempleGroundsCues.
Definition at line 344 of file fuchin_temple.c.
scFuchinTempleMonkLetsPartyIntoGrotto
static void scFuchinTempleMonkLetsPartyIntoGrotto(void)
Isaac talks to the monk on the stump in front of the falls once Nyunpa has
set the test: "I have already heard of your test from Master Nyunpa. You may
enter." He leaps aside onto the next stump with a splash, opening the way
into the grotto (FLAG_FUCHIN_FALLS_GROTTO_OPENED).
References fdActorFaceDirection(), fdActorGet(), fdActorSetDestination(), fdActorWaitForMoveById(), fdActorWalkToAndWait(), fdMapGridCopyMetatileAttributes(), fdPlayQueuedMusic(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagSet() and sySoundPlay().
Referenced by FuchinTempleGroundsCues.
Definition at line 384 of file fuchin_temple.c.
scFuchinTempleMonkAsksWhetherTestIsDone
static void scFuchinTempleMonkAsksWhetherTestIsDone(void)
Coming back out from behind the falls with the Orb of Force, Isaac hops onto the stump beside the monk, metatile (10, 24), and the monk asks: "Young master, did you complete the test?" Either way he sends him up to the temple, where Master Nyunpa is waiting.
The metatile is only set for this on the way out of the grotto (scInit), and
turned back into a plain stepping stone here.
References fdActorFaceActor(), fdActorFaceDirection(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorShowEmote(), fdMapGridCopyMetatileAttributes(), fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait() and gmFlagSet().
Referenced by FuchinTempleGroundsCues.
Definition at line 447 of file fuchin_temple.c.
scFuchinTempleNyunpaOffersTest
static void scFuchinTempleNyunpaOffersTest(void)
Isaac reads Nyunpa's mind as he meditates in the temple, or talks to him after turning the test down: Nyunpa offers him the test of the grotto beneath the falls.
References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkToAndWait(), fdCameraMoveToActorById(), fdCameraWaitForArrival(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagGet(), gmFlagSet(), scFuchinTempleFinishMindReadDemonstration(), scFuchinTempleSpawnNyunpasParticles(), scFuchinTempleStartMindReadDemonstration(), Sint32 and sySoundPlay().
Referenced by FuchinTempleCues.
Definition at line 479 of file fuchin_temple.c.
scFuchinTempleNyunpaFeelsMindRead
static void scFuchinTempleNyunpaFeelsMindRead(void)
Isaac reads Nyunpa's mind again once the test is accepted, and Nyunpa notices: "You enjoy reading the minds of others, do you not?"
References fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId() and fdScriptStart().
Referenced by FuchinTempleCues.
Definition at line 643 of file fuchin_temple.c.
scFuchinTempleStudentWelcomesToSchool
static void scFuchinTempleStudentWelcomesToSchool(void)
Isaac talks to the young man by the door of Master Feh's school in Xian: "This is Master Feh's school... You came to watch?"
References fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId() and fdScriptStart().
Referenced by FuchinTempleCues.
Definition at line 656 of file fuchin_temple.c.
scFuchinTempleTalkToJumpingStudent
static void scFuchinTempleTalkToJumpingStudent(void)
Isaac talks to the student jumping up and down in Master Feh's school: he lands, talks about jumping (later of Lama Temple, or of Hsu), then jumps on.
References fdActorFaceActor(), fdActorGet(), fdActorSetScript(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), FuchinTempleJumpingStudentScript, gmFlagGet() and sySynch().
Referenced by FuchinTempleCues.
Definition at line 669 of file fuchin_temple.c.
scFuchinTempleStudentAsksAboutFeh
static void scFuchinTempleStudentAsksAboutFeh(void)
Isaac talks to the student by the tree trunk in Master Feh's school: "Master Feh is very busy. Do you still wish to see him?" Yes has him point out the line to stand on and use Chi from.
References fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId() and fdScriptStart().
Referenced by FuchinTempleCues.
Definition at line 708 of file fuchin_temple.c.
scFuchinTempleKnockTreeDownWest
static void scFuchinTempleKnockTreeDownWest(void)
The tree trunk topples to the west, faster as it goes, and lands with a thud and a puff of dust.
References fdActorGet(), Sint32, syCos(), sySin(), sySoundPlay() and sySynch().
Referenced by scFuchinTempleForceTree(), scFuchinTempleMoveTree() and scFuchinTemplePushTreeByHand().
Definition at line 731 of file fuchin_temple.c.
scFuchinTempleKnockTreeDownEast
static void scFuchinTempleKnockTreeDownEast(void)
The tree trunk topples to the east, faster as it goes, and lands with a thud and a puff of dust.
References fdActorGet(), Sint32, syCos(), sySin(), sySoundPlay() and sySynch().
Referenced by scFuchinTempleForceTree(), scFuchinTempleMoveTree() and scFuchinTemplePushTreeByHand().
Definition at line 780 of file fuchin_temple.c.
scFuchinTempleKnockTreeDownNorth
static void scFuchinTempleKnockTreeDownNorth(void)
The tree trunk rocks north and falls over that way, with a thud and a puff of dust.
References fdActorGet(), Sint32, sySoundPlay() and sySynch().
Referenced by scFuchinTempleForceTree() and scFuchinTemplePushTreeByHand().
Definition at line 828 of file fuchin_temple.c.
scFuchinTempleKnockTreeDownSouth
static void scFuchinTempleKnockTreeDownSouth(void)
The tree trunk rocks south and falls over that way, with a thud and a puff of dust.
References fdActorGet(), Sint32, sySoundPlay() and sySynch().
Referenced by scFuchinTempleForceTree() and scFuchinTemplePushTreeByHand().
Definition at line 883 of file fuchin_temple.c.
scFuchinTempleSetTreeUpAgain
static inline void scFuchinTempleSetTreeUpAgain(void)
The fallen tree trunk is set up again at its place in the school.
References fdActorGet() and sySoundPlay().
Referenced by scFuchinTempleFeizhiLeavesForHsu(), scFuchinTempleStudentExplainsChiRules() and scFuchinTempleStudentsSeeTreeFall().
Definition at line 943 of file fuchin_temple.c.
scFuchinTempleStudentWalksAroundTree
static void scFuchinTempleStudentWalksAroundTree(void)
The student by the tree walks round to the fallen trunk, on the side away from Isaac.
References fdActorFaceDirection(), fdActorGet() and fdActorWalkToAndWait().
Referenced by scFuchinTempleStudentExplainsChiRules() and scFuchinTempleStudentsSeeTreeFall().
Definition at line 956 of file fuchin_temple.c.
scFuchinTempleStudentExplainsChiRules
static void scFuchinTempleStudentExplainsChiRules(Sint32 mode)
The student by the tree explains the rule the party broke, or praises Isaac
(mode, a FUCHIN_TEMPLE_CHI_RULE), and sets the trunk up again.
References fdActorFaceDirection(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorShowEmote(), fdActorWalkToAndWait(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptWait(), scFuchinTempleSetTreeUpAgain(), scFuchinTempleStudentWalksAroundTree() and Sint32.
Referenced by scFuchinTempleForceTree(), scFuchinTempleMoveTree() and scFuchinTemplePushTreeByHand().
Definition at line 1000 of file fuchin_temple.c.
scFuchinTempleStudentsSeeTreeFall
static void scFuchinTempleStudentsSeeTreeFall(void)
The students see the tree trunk fall, Feh will not count it because it was not done from the line, and the student sets the trunk up again.
References fdActorFaceActor(), fdActorFaceDirection(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorShowEmote(), fdActorTurnToFaceEachOther(), fdActorWalkToAndWait(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptWait(), gmFlagSet(), scFuchinTempleSetTreeUpAgain() and scFuchinTempleStudentWalksAroundTree().
Referenced by scFuchinTempleForceTree() and scFuchinTempleMoveTree().
Definition at line 1046 of file fuchin_temple.c.
scFuchinTempleMoveTree
static void scFuchinTempleMoveTree(void)
Isaac casts Move on the tree trunk in Master Feh's school: it topples, and the student by it says that was not Chi, or Feh will not count it because it was not done from the line.
References fdActorGet(), fdScriptEnd(), fdScriptStart(), gmFlagGet(), scFuchinTempleKnockTreeDownEast(), scFuchinTempleKnockTreeDownWest(), scFuchinTempleStudentExplainsChiRules() and scFuchinTempleStudentsSeeTreeFall().
Referenced by FuchinTempleCues.
Definition at line 1092 of file fuchin_temple.c.
scFuchinTemplePushTreeByHand
static void scFuchinTemplePushTreeByHand(void)
Isaac walks into the tree trunk in Master Feh's school and pushes it over by hand: "You cannot push it with your hands. Attack it with Chi." The student by it sets it up again.
References fdActorGet(), fdActorSetAnimation(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), scFuchinTempleKnockTreeDownEast(), scFuchinTempleKnockTreeDownNorth(), scFuchinTempleKnockTreeDownSouth(), scFuchinTempleKnockTreeDownWest() and scFuchinTempleStudentExplainsChiRules().
Referenced by FuchinTempleCues.
Definition at line 1121 of file fuchin_temple.c.
scFuchinTempleForceTree
static void scFuchinTempleForceTree(void)
Isaac casts Force on the tree trunk in Master Feh's school and it topples. Cast from behind the white line on the floor, the first time, Feizhi and Feh come out; with Feh waiting to see it, he names it Ki. Cast from nearer, the students will not count it.
References fdActorGet(), fdCameraMoveToActorById(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptStart(), gmFlagGet(), scFuchinTempleFehSeesChi(), scFuchinTempleFeizhiLeavesForHsu(), scFuchinTempleKnockTreeDownEast(), scFuchinTempleKnockTreeDownNorth(), scFuchinTempleKnockTreeDownSouth(), scFuchinTempleKnockTreeDownWest(), scFuchinTempleStudentExplainsChiRules() and scFuchinTempleStudentsSeeTreeFall().
Referenced by FuchinTempleCues.
Definition at line 1158 of file fuchin_temple.c.
scFuchinTempleFehAsksToSeeChi
static void scFuchinTempleFehAsksToSeeChi(void)
Isaac talks to Feh in his school after turning him down: "Warrior, will you show me your Chi?"
References fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait() and gmFlagSet().
Referenced by FuchinTempleCues.
Definition at line 1516 of file fuchin_temple.c.
scFuchinTempleStudentAsksAboutAltin
static void scFuchinTempleStudentAsksAboutAltin(void)
Isaac talks to the student practising punches in Master Feh's school once Hsu is known to be trapped: "Water monsters flooded Altin. Did you defeat them, warrior?"
References fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId() and fdScriptStart().
Referenced by FuchinTempleCues.
Definition at line 1770 of file fuchin_temple.c.
scFuchinTempleOpenLockedDoor
static void scFuchinTempleOpenLockedDoor(void)
Isaac walks north into the lattice door Feh and Feizhi came out of, in the east of the school: "It is locked." until Feizhi has left; then it opens and he walks through into Feh's house.
References fdActorWalkTo(), fdActorWalkToAndWait(), fdMapGridAnimateMetatiles(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), FuchinTempleFehsDoorOpens, gmFlagGet(), mnFieldMessageShow(), syImportScriptSetExitRequest() and sySoundPlay().
Referenced by FuchinTempleCues.
Definition at line 1784 of file fuchin_temple.c.
scFuchinTempleTalkToHealer
static void scFuchinTempleTalkToHealer(void)
Isaac talks to the traveling healer by the temple door: from the south he offers his healing, as a Sanctum does; from any other side he says he is traveling the world to spread good will.
References fdActorGet(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and mnSanctumRun().
Referenced by FuchinTempleGroundsCues.
Definition at line 1810 of file fuchin_temple.c.
scFuchinTempleReadNyunpasLastWish
static void scFuchinTempleReadNyunpasLastWish(void)
Isaac reads the withered Nyunpa's mind once he has died enlightened: "Isaac... Is that you...? I am...counting on you... to bring..."
References fdActorRunRepeatedMotion(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage() and fdScriptStart().
Referenced by FuchinTempleCues.
Definition at line 1833 of file fuchin_temple.c.
scGetCues
const CUE *scGetCues(void)
The cues outside, in Hama's room, or in the temple and Feh's school.
References FuchinTempleCues, FuchinTempleCuesFromLamaTemple, FuchinTempleGroundsCues and MainRoutineStateWork.
Definition at line 1844 of file fuchin_temple.c.
scFuchinTempleSpawnGrottoEntryParticle
static void scFuchinTempleSpawnGrottoEntryParticle(void)
Drops spray over Isaac as he walks in behind the falls, and makes him flicker.
References fdActorGet(), fdActorSetSpriteColorById(), Sint32 and TickCount.
Referenced by scFuchinTempleEnterWaterfallGrotto().
Definition at line 1859 of file fuchin_temple.c.
scFuchinTempleHopLeaderNorth
static UNUSED void scFuchinTempleHopLeaderNorth(void)
Unused: hops the leader two map metatiles north; nothing calls it.
References scHopLeaderBy().
Definition at line 1895 of file fuchin_temple.c.
scFuchinTempleHopLeaderSouth
static UNUSED void scFuchinTempleHopLeaderSouth(void)
Unused: hops the leader two map metatiles south; nothing calls it.
References scHopLeaderBy().
Definition at line 1901 of file fuchin_temple.c.
scFuchinTempleHopLeaderWest
static UNUSED void scFuchinTempleHopLeaderWest(void)
Unused: hops the leader two map metatiles west; nothing calls it.
References scHopLeaderBy().
Definition at line 1907 of file fuchin_temple.c.
scFuchinTempleEnterWaterfallGrotto
static void scFuchinTempleEnterWaterfallGrotto(void)
Isaac steps from the monk's stump into the falls, metatile (10, 21): spray falls over him and he flickers out of sight as the screen fades, into Fuchin Falls Cave.
References fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorWaitForMoveById(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWaitTransitionTicks(), scFuchinTempleSpawnGrottoEntryParticle(), syCloseEvent(), syImportScriptSetExitRequest(), sySetTickEvent() and sySoundPlay().
Referenced by FuchinTempleGroundsCues.
Definition at line 1917 of file fuchin_temple.c.
scFuchinTempleLeaveTemple
static void scFuchinTempleLeaveTemple(void)
Walking out through the temple's south door, Isaac leaves Nyunpa's hall for the grounds outside.
References syImportScriptSetExitRequest() and sySoundPlay().
Referenced by FuchinTempleCues.
Definition at line 1942 of file fuchin_temple.c.
scFuchinTempleEnterTemple
static void scFuchinTempleEnterTemple(void)
Isaac walks north into the temple's door, metatile (18, 18): it opens with a thump, and he walks inside, where Nyunpa meditates.
References fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdMapGridAnimateMetatiles(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), FuchinTempleTempleDoorOpens, syImportScriptSetExitRequest() and sySoundPlay().
Referenced by FuchinTempleGroundsCues.
Definition at line 1950 of file fuchin_temple.c.
scFuchinTempleNyunpaTeachesKi
static void scFuchinTempleNyunpaTeachesKi(void)
Back in the temple with the Orb of Force, Isaac walks up to Nyunpa, who
praises him, names the power he has gained Ki, which the western world calls
Force, and tells him to use it to find his way through Mogall Forest
(FLAG_NYUNPA_TAUGHT_FORCE).
References fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWalkTo(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagSet() and sySoundPlay().
Referenced by scInit().
Definition at line 1969 of file fuchin_temple.c.
scFuchinTempleRunHamasRevealLesson
static void scFuchinTempleRunHamasRevealLesson(void)
The first time the party enters Master Hama's room in Lama Temple, the boy
monk asks them to be quiet while she meditates. Hama teaches Ivan Reveal,
Feizhi bursts in to say Hsu is in danger, and the two leave to free him
(FLAG_XIAN_HEARD_HSU_TRAPPED).
References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetPosFX(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorTurnToFaceEachOther(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdPartyLearnAbility(), fdScriptAskYesNo(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagSet() and scFuchinTempleAnimateRevealLesson().
Referenced by scInit().
Definition at line 2096 of file fuchin_temple.c.
scInit
Sint32 scInit(void)
Sets each room up as the story left it.
References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdMapGridCopyMetatileAttributes(), fdQueueMusic(), gmFlagClear(), gmFlagGet(), MainRoutineStateWork, scFuchinTempleFaceLeader(), scFuchinTempleNyunpaTeachesKi(), scFuchinTempleRunHamasRevealLesson() and Sint32.
Definition at line 2769 of file fuchin_temple.c.
scFuchinTempleGlowRedAndBlue
static void scFuchinTempleGlowRedAndBlue(ACTOR *actor)
Hama's and Ivan's update function during the Reveal lesson: they glow, drawn red and blue in turn every two ticks.
References fdActorSetSpriteColor() and TickCount.
Referenced by scFuchinTempleAnimateRevealLesson().
Definition at line 2955 of file fuchin_temple.c.
Variables in detail
FuchinTempleJumpingStudentScript
extern Sint32 FuchinTempleJumpingStudentScript[]
Sint32 FuchinTempleJumpingStudentScript[]
The student who trains by jumping: three hops, each higher, spinning a full turn in the third, then a second's rest.
References Sint32.
Referenced by FuchinTempleActorPlacements, scFuchinTempleFehSeesChi(), scFuchinTempleFeizhiLeavesForHsu() and scFuchinTempleTalkToJumpingStudent().
Definition at lines 76 and 3037 of file fuchin_temple.c.
FuchinTempleTempleDoorOpens
extern Uint16 FuchinTempleTempleDoorOpens[]
Uint16 FuchinTempleTempleDoorOpens[]
The doors' map metatiles, tick by tick: Fuchin Temple's door opening as Isaac
walks in (scFuchinTempleEnterTemple), and the door Feh and Feizhi come out of
in Master Feh's school, opening and closing behind them.
Referenced by scFuchinTempleEnterTemple().
Definition at lines 77 and 3079 of file fuchin_temple.c.
FuchinTempleFehsDoorOpens
extern Uint16 FuchinTempleFehsDoorOpens[]
Uint16 FuchinTempleFehsDoorOpens[]
Referenced by scFuchinTempleFeizhiLeavesForHsu() and scFuchinTempleOpenLockedDoor().
Definition at lines 78 and 3084 of file fuchin_temple.c.
FuchinTempleFehsDoorCloses
extern Uint16 FuchinTempleFehsDoorCloses[]
Uint16 FuchinTempleFehsDoorCloses[]
Referenced by scFuchinTempleFeizhiLeavesForHsu().
Definition at lines 79 and 3089 of file fuchin_temple.c.
FuchinTempleGroundsEntrances
extern SCENE_ENTRANCE FuchinTempleGroundsEntrances[]
SCENE_ENTRANCE FuchinTempleGroundsEntrances[]
Referenced by scGetEntrances().
Definition at lines 80 and 3095 of file fuchin_temple.c.
FuchinTempleEntrancesOther
extern SCENE_ENTRANCE FuchinTempleEntrancesOther[]
SCENE_ENTRANCE FuchinTempleEntrancesOther[]
Referenced by scGetEntrances().
Definition at lines 81 and 3144 of file fuchin_temple.c.
FuchinTempleExits
extern Uint32 FuchinTempleExits[]
Uint32 FuchinTempleExits[]
Referenced by scGetExits().
Definition at lines 82 and 3185 of file fuchin_temple.c.
FuchinTempleGroundsActorPlacements
extern ACTOR_PLACE FuchinTempleGroundsActorPlacements[]
ACTOR_PLACE FuchinTempleGroundsActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 83 and 3213 of file fuchin_temple.c.
FuchinTempleActorPlacements
extern ACTOR_PLACE FuchinTempleActorPlacements[]
ACTOR_PLACE FuchinTempleActorPlacements[]
References FuchinTempleHiddenSpriteScript, FuchinTempleJumpingStudentScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 84 and 3229 of file fuchin_temple.c.
FuchinTempleActorPlacementsFromLamaTemple
extern ACTOR_PLACE FuchinTempleActorPlacementsFromLamaTemple[]
ACTOR_PLACE FuchinTempleActorPlacementsFromLamaTemple[]
Referenced by scGetActorPlacements().
Definition at lines 85 and 3264 of file fuchin_temple.c.
FuchinTempleGroundsCues
extern CUE FuchinTempleGroundsCues[]
CUE FuchinTempleGroundsCues[]
References scFuchinTempleBoyMonkSpeaksOfNyunpa(), scFuchinTempleEnterTemple(), scFuchinTempleEnterWaterfallGrotto(), scFuchinTempleMonkAsksWhetherTestIsDone(), scFuchinTempleMonkLetsPartyIntoGrotto(), scFuchinTempleTalkToHealer() and scFuchinTempleYoungManFromKolimaAsksAboutBridge().
Referenced by scGetCues().
Definition at lines 86 and 3281 of file fuchin_temple.c.
FuchinTempleCues
extern CUE FuchinTempleCues[]
CUE FuchinTempleCues[]
References scFuchinTempleFehAsksToSeeChi(), scFuchinTempleForceTree(), scFuchinTempleLeaveTemple(), scFuchinTempleMoveTree(), scFuchinTempleNyunpaFeelsMindRead(), scFuchinTempleNyunpaOffersTest(), scFuchinTempleOpenLockedDoor(), scFuchinTemplePushTreeByHand(), scFuchinTempleReadNyunpasLastWish(), scFuchinTempleStudentAsksAboutAltin(), scFuchinTempleStudentAsksAboutFeh(), scFuchinTempleStudentWelcomesToSchool() and scFuchinTempleTalkToJumpingStudent().
Referenced by scGetCues().
Definition at lines 87 and 3356 of file fuchin_temple.c.
FuchinTempleCuesFromLamaTemple
extern CUE FuchinTempleCuesFromLamaTemple[]
CUE FuchinTempleCuesFromLamaTemple[]
Referenced by scGetCues().
Definition at lines 88 and 3544 of file fuchin_temple.c.
FuchinTempleCrescentScript
extern Sint32 FuchinTempleCrescentScript[]
Sint32 FuchinTempleCrescentScript[]
One of Nyunpa's crescents (scFuchinTempleSpawnNyunpasParticles): it rises
facing north for 45 ticks, then is put away.
References Sint32.
Referenced by scFuchinTempleSpawnNyunpasParticles().
Definition at lines 89 and 3563 of file fuchin_temple.c.
FieldEffectDurationScripts
const Sint32 *FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Definition at line 3029 of file fuchin_temple.c.
FuchinTempleHiddenSpriteScript
Sint32 FuchinTempleHiddenSpriteScript[]
The point Force strikes on the training tree: no shadow.
References scFuchinTempleClearScriptedActorSpriteFlags() and Sint32.
Referenced by FuchinTempleActorPlacements.
Definition at line 3070 of file fuchin_temple.c.