Skip to Content
The Alchemy Project

src/scene/fuchin_temple.c

Fuchin Temple's grounds, and the rooms map that shares its overlay. More…

Macros

NameDescription
#defineFLAG_FUCHIN_TEMPLE_NYUNPA_TEST_DECLINED FLAG_AREA_TEMP(0x00)The party refused Nyunpa's test, so talking to him offers it again.
#defineFLAG_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.
#defineFLAG_FUCHIN_TEMPLE_PSYNERGY_STONE FLAG_AREA_TEMP(0x50)The Psynergy Stone outside the temple has been taken.
#defineREVEAL_LESSON_SPARKLES 64The sparkles that rise from Hama, two ticks apart, as the Reveal lesson ends.

Enumerations

NameDescription
enumanonymous enum { METATILE_BEHAVIOR_FUCHIN_TEMPLE_SOUTH_ROAD, METATILE_BEHAVIO … }The metatiles outside the temple and in its rooms that run scripts.
enumFUCHIN_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.
enumFUCHIN_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.
enumHAMAS_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.
enumanonymous enum { ANIM_NYUNPA_MEDITATE, ANIM_NYUNPA_WITHERED, ANIM_STUDENT_KIC … }Animations of these scenes' own sprites beyond ACTOR_ANIMATION.
enumanonymous 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.
enumFUCHIN_TEMPLE_CHI_RULE { FUCHIN_TEMPLE_CHI_NOT_FROM_LINE, FUCHIN_TEMPLE_CHI_PUSHED_BY … }What the student by the tree explains (scFuchinTempleStudentExplainsChiRules).

Functions

NameDescription
static voidscFuchinTempleFeizhiLeavesForHsu (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 voidscFuchinTempleFehSeesChi (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 voidscHopLeaderBy (Sint32 dx, Sint32 dz)The leader leaps the given pixels, two and a half a tick, and lands with a spring.
static voidscFuchinTempleStartMindReadDemonstration (Sint32 caster, Sint32 target)Starts Mind Read from caster on target as part of a script, without the window that announces its name.
static voidscFuchinTempleFinishMindReadDemonstration (void)Finishes the demonstration's Mind Read and lowers the caster's hands.
static voidscFuchinTempleSpawnNyunpasParticles (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 voidscFuchinTempleAnimateRevealLesson (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 Sint32scFuchinTempleClearScriptedActorSpriteFlags (ACTOR *actor)A script step that takes the actor's shadow and other sprite flags away.
static UNREAD_RESULTscFuchinTempleFaceLeader (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 voidscFuchinTempleYoungManFromKolimaAsksAboutBridge (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 voidscFuchinTempleBoyMonkSpeaksOfNyunpa (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 voidscFuchinTempleMonkLetsPartyIntoGrotto (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 voidscFuchinTempleMonkAsksWhetherTestIsDone (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 voidscFuchinTempleNyunpaOffersTest (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 voidscFuchinTempleNyunpaFeelsMindRead (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 voidscFuchinTempleStudentWelcomesToSchool (void)Isaac talks to the young man by the door of Master Feh's school in Xian: "This is Master Feh's school...
static voidscFuchinTempleTalkToJumpingStudent (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 voidscFuchinTempleStudentAsksAboutFeh (void)Isaac talks to the student by the tree trunk in Master Feh's school: "Master Feh is very busy.
static voidscFuchinTempleKnockTreeDownWest (void)The tree trunk topples to the west, faster as it goes, and lands with a thud and a puff of dust.
static voidscFuchinTempleKnockTreeDownEast (void)The tree trunk topples to the east, faster as it goes, and lands with a thud and a puff of dust.
static voidscFuchinTempleKnockTreeDownNorth (void)The tree trunk rocks north and falls over that way, with a thud and a puff of dust.
static voidscFuchinTempleKnockTreeDownSouth (void)The tree trunk rocks south and falls over that way, with a thud and a puff of dust.
static inline voidscFuchinTempleSetTreeUpAgain (void)The fallen tree trunk is set up again at its place in the school.
static voidscFuchinTempleStudentWalksAroundTree (void)The student by the tree walks round to the fallen trunk, on the side away from Isaac.
static voidscFuchinTempleStudentExplainsChiRules (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 voidscFuchinTempleStudentsSeeTreeFall (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 voidscFuchinTempleMoveTree (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 voidscFuchinTemplePushTreeByHand (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 voidscFuchinTempleForceTree (void)Isaac casts Force on the tree trunk in Master Feh's school and it topples.
static voidscFuchinTempleFehAsksToSeeChi (void)Isaac talks to Feh in his school after turning him down: "Warrior, will you show me your Chi?"
static voidscFuchinTempleStudentAsksAboutAltin (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 voidscFuchinTempleOpenLockedDoor (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 voidscFuchinTempleTalkToHealer (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 voidscFuchinTempleReadNyunpasLastWish (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 voidscFuchinTempleSpawnGrottoEntryParticle (void)Drops spray over Isaac as he walks in behind the falls, and makes him flicker.
static UNUSED voidscFuchinTempleHopLeaderNorth (void)Unused: hops the leader two map metatiles north; nothing calls it.
static UNUSED voidscFuchinTempleHopLeaderSouth (void)Unused: hops the leader two map metatiles south; nothing calls it.
static UNUSED voidscFuchinTempleHopLeaderWest (void)Unused: hops the leader two map metatiles west; nothing calls it.
static voidscFuchinTempleEnterWaterfallGrotto (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 voidscFuchinTempleLeaveTemple (void)Walking out through the temple's south door, Isaac leaves Nyunpa's hall for the grounds outside.
static voidscFuchinTempleEnterTemple (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 voidscFuchinTempleNyunpaTeachesKi (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 voidscFuchinTempleRunHamasRevealLesson (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.
Sint32scInit (void)Sets each room up as the story left it.
static voidscFuchinTempleGlowRedAndBlue (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

NameDescription
extern Sint32FuchinTempleJumpingStudentScript []The student who trains by jumping: three hops, each higher, spinning a full turn in the third, then a second's rest.
extern Uint16FuchinTempleTempleDoorOpens []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 Uint16FuchinTempleFehsDoorOpens []
extern Uint16FuchinTempleFehsDoorCloses []
extern SCENE_ENTRANCEFuchinTempleGroundsEntrances []
extern SCENE_ENTRANCEFuchinTempleEntrancesOther []
extern Uint32FuchinTempleExits []
extern ACTOR_PLACEFuchinTempleGroundsActorPlacements []
extern ACTOR_PLACEFuchinTempleActorPlacements []
extern ACTOR_PLACEFuchinTempleActorPlacementsFromLamaTemple []
extern CUEFuchinTempleGroundsCues []
extern CUEFuchinTempleCues []
extern CUEFuchinTempleCuesFromLamaTemple []
extern Sint32FuchinTempleCrescentScript []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.
Sint32FuchinTempleHiddenSpriteScript []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.

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.

EnumeratorValueDescription
METATILE_BEHAVIOR_FUCHIN_TEMPLE_SOUTH_ROAD1Outside: the road south, out to the world map.
METATILE_BEHAVIOR_FUCHIN_TEMPLE_DOOR2Outside: the temple's door.
METATILE_BEHAVIOR_FUCHIN_FALLS_GROTTO3Outside: the falls behind the monk's stump, the way into the grotto.
METATILE_BEHAVIOR_FUCHIN_FALLS_MONK_ASKS5Outside: the stump beside
METATILE_BEHAVIOR_FUCHIN_TEMPLE_PSYNERGY_STONE110the 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_DOOR1Inside: the temple's
METATILE_BEHAVIOR_FUCHIN_TEMPLE_UNICORN_RING_JAR101south door. Inside: the jar in Nyunpa's hall, metatile (12, 27).
METATILE_BEHAVIOR_FEHS_SCHOOL_SOUTH_DOOR2Inside: the school's south door, out to Xian.
METATILE_BEHAVIOR_FEHS_SCHOOL_HOUSE_DOOR3Inside: the lattice door to Feh's house.
METATILE_BEHAVIOR_FEHS_SCHOOL_TREE_EAST_SOUTH10Inside: the metatiles east and south of the school's tree trunk.
METATILE_BEHAVIOR_FEHS_SCHOOL_TREE_WEST_NORTH11Inside: the metatiles west and north of the school's tree trunk.
METATILE_BEHAVIOR_FEHS_SCHOOL_ANTIDOTE_BARREL100Inside: the barrel in the school, metatile (6, 14).
METATILE_BEHAVIOR_HAMAS_ROOM_SOUTH_DOOR4Hama's room: the south door, out to Lama Temple.
METATILE_BEHAVIOR_HAMAS_ROOM_COINS_JAR102Hama'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.

EnumeratorValueDescription
ACTOR_YOUNG_MAN_FROM_KOLIMAACTOR_FIRST_PLACEDA young man from Kolima.
ACTOR_FALLS_MONKThe monk beneath the falls, at the waterfall grotto.
ACTOR_BOY_MONK_READING_OMENSA boy monk who reads omens.
ACTOR_WORRIED_BOY_MONKA boy monk who fears for Nyunpa.
ACTOR_ADMIRING_BOY_MONKA boy monk who admires Nyunpa.
ACTOR_HEALERThe 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.

EnumeratorValueDescription
ACTOR_NYUNPAACTOR_FIRST_PLACED
ACTOR_WELCOMING_STUDENTA young man, by the school's door.
ACTOR_KICKING_STUDENTA student who practices kicks.
ACTOR_PUNCHING_STUDENTA student who practices punches.
ACTOR_JUMPING_STUDENT
ACTOR_PROUD_STUDENTA student proud of Feh's school.
ACTOR_WATCHING_STUDENTA little girl, a student who learns by watching.
ACTOR_TREE_STUDENTBy the training tree, which he sets up again after it falls.
ACTOR_MESSENGER_STUDENTKeeps 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_TARGETWhere 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.

EnumeratorValueDescription
ACTOR_HAMAACTOR_FIRST_PLACED
ACTOR_HAMAS_BOY_MONKA boy monk in Hama's room.
ACTOR_FEIZHI_IN_LAMA_TEMPLEBursts 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.

EnumeratorValueDescription
ANIM_NYUNPA_MEDITATE5Seated cross-legged with his eyes shut (nyunpa.png's frame 33).
ANIM_NYUNPA_WITHERED6Seated as he meditated, shrunken and darkened, once he has died enlightened (nyunpa.png's frame 34).
ANIM_STUDENT_KICKS5A drill of kicks, a knee raised, a kick and a leaping kick, from a fighting stance (youth_with_headband.tsv).
ANIM_STUDENT_PUNCHES5A 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.

EnumeratorValueDescription
TREE_STANDING_STEPDEGtoANG(180) / FACING_STEP
TREE_FALLEN_WEST_STEPDEGtoANG(90) / FACING_STEP
TREE_FALLEN_EAST_STEPDEGtoANG(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).

EnumeratorValueDescription
FUCHIN_TEMPLE_CHI_NOT_FROM_LINE0Psynergy felled the tree, but not from the line
FUCHIN_TEMPLE_CHI_PUSHED_BY_HAND1Isaac pushed it over by hand
FUCHIN_TEMPLE_CHI_SEEN_BEFORE2praise 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.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailFLAG_FUCHIN_TEMPLE_NYUNPA_TEST_DECLINEDFLAG_FUCHIN_TEMPLE_FEH_SCHOOL_SAW_TREE_FALLFLAG_FUCHIN_TEMPLE_PSYNERGY_STONEREVEAL_LESSON_SPARKLESEnumerations in detailanonymous enumFUCHIN_TEMPLE_OUTSIDE_ACTOR_IDFUCHIN_TEMPLE_INSIDE_ACTOR_IDHAMAS_ROOM_ACTOR_IDanonymous enumanonymous enumFUCHIN_TEMPLE_CHI_RULEFunctions in detailscFuchinTempleFeizhiLeavesForHsuscFuchinTempleFehSeesChiscFuchinTempleStartMindReadDemonstrationscFuchinTempleFinishMindReadDemonstrationscFuchinTempleSpawnNyunpasParticlesscFuchinTempleAnimateRevealLessonscFuchinTempleClearScriptedActorSpriteFlagsscFuchinTempleFaceLeaderscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscFuchinTempleYoungManFromKolimaAsksAboutBridgescFuchinTempleBoyMonkSpeaksOfNyunpascFuchinTempleMonkLetsPartyIntoGrottoscFuchinTempleMonkAsksWhetherTestIsDonescFuchinTempleNyunpaOffersTestscFuchinTempleNyunpaFeelsMindReadscFuchinTempleStudentWelcomesToSchoolscFuchinTempleTalkToJumpingStudentscFuchinTempleStudentAsksAboutFehscFuchinTempleKnockTreeDownWestscFuchinTempleKnockTreeDownEastscFuchinTempleKnockTreeDownNorthscFuchinTempleKnockTreeDownSouthscFuchinTempleSetTreeUpAgainscFuchinTempleStudentWalksAroundTreescFuchinTempleStudentExplainsChiRulesscFuchinTempleStudentsSeeTreeFallscFuchinTempleMoveTreescFuchinTemplePushTreeByHandscFuchinTempleForceTreescFuchinTempleFehAsksToSeeChiscFuchinTempleStudentAsksAboutAltinscFuchinTempleOpenLockedDoorscFuchinTempleTalkToHealerscFuchinTempleReadNyunpasLastWishscGetCuesscFuchinTempleSpawnGrottoEntryParticlescFuchinTempleHopLeaderNorthscFuchinTempleHopLeaderSouthscFuchinTempleHopLeaderWestscFuchinTempleEnterWaterfallGrottoscFuchinTempleLeaveTemplescFuchinTempleEnterTemplescFuchinTempleNyunpaTeachesKiscFuchinTempleRunHamasRevealLessonscInitscFuchinTempleGlowRedAndBlueVariables in detailFuchinTempleJumpingStudentScriptFuchinTempleTempleDoorOpensFuchinTempleFehsDoorOpensFuchinTempleFehsDoorClosesFuchinTempleGroundsEntrancesFuchinTempleEntrancesOtherFuchinTempleExitsFuchinTempleGroundsActorPlacementsFuchinTempleActorPlacementsFuchinTempleActorPlacementsFromLamaTempleFuchinTempleGroundsCuesFuchinTempleCuesFuchinTempleCuesFromLamaTempleFuchinTempleCrescentScriptFieldEffectDurationScriptsFuchinTempleHiddenSpriteScript