src/scene/kandorean_temple.c
The Kandorean Temple of Master Poi, south-west of Daila, in nine rooms that share this overlay (SceneIdKandoreanTempleLifts to SceneIdKandoreanTemplePoi). More…
#include "item_ids.h"#include "macros.h"#include "field/actor_script.h"#include "edition.h"#include "field/script_inline.h"#include "field/field_engine.h"#include "game/game.h"#include "graphics/glyph.h"#include "scene/scene.h"#include "field/call.h"#include "text/msg_ids.h"#include "shared/actor_set_sprite_priority.c"#include "../field/field_effect_move.c"#include "shared/field_effect_spawn.c"#include "../field/field_effect_advance_motion.c"#include "shared/field_effect_duration_scripts.c"#include "shared/scene_entrances_default.c"
Structures
| Name | Description | |
|---|---|---|
struct | MAP_STATE_GROUND_EFFECTS | The map state as the two water rooms write it: MAP_STATE.groundEffects as its two fields, the footprints and the kind of wading, which they set to 1. |
Macros
| Name | Description | |
|---|---|---|
#define | EFFECT_SET_MODE fdActorSelectAnimation | |
#define | EFFECT_SET_SCRIPT fdActorStartScript | |
#define | WEST_COVER_X 216 | Where the vent room's covers rest, in pixels, and the metatiles under them, walled off while their vents blow; and the metatile of the map's top row copied over each to carry a leader riding the cover up to the lift above. |
#define | WEST_COVER_Z 216 | |
#define | WEST_COVER_METATILE_X 13 | |
#define | WEST_COVER_METATILE_Z 13 | |
#define | WEST_COVER_CARRY_METATILE 22 | |
#define | EAST_COVER_X 376 | |
#define | EAST_COVER_Z 248 | |
#define | EAST_COVER_METATILE_X 23 | |
#define | EAST_COVER_METATILE_Z 15 | |
#define | EAST_COVER_CARRY_METATILE 23 | |
#define | WEST_LIFT_X 440 | Where the lift room's lifts stand, in pixels, their columns 4 pixels north of them, and the metatiles under them, free while they stand level with the floor; and the metatile of the map's top row copied over each to take a leader riding it down. |
#define | WEST_LIFT_Z 204 | |
#define | WEST_LIFT_METATILE_X 27 | |
#define | WEST_LIFT_METATILE_Z 12 | |
#define | WEST_LIFT_CARRY_METATILE 21 | |
#define | EAST_LIFT_X 600 | |
#define | EAST_LIFT_Z 236 | |
#define | EAST_LIFT_METATILE_X 37 | |
#define | EAST_LIFT_METATILE_Z 14 | |
#define | EAST_LIFT_CARRY_METATILE 22 | |
#define | FLAG_HIDDEN_PASSAGE_FOUND 0x842 | The Kandorean Temple's story, from the hidden passage Kraden suspects to the ladder that unrolls once the Chestbeaters are beaten. |
#define | FLAG_ASKED_ABOUT_POI 0x845 | |
#define | FLAG_TOLD_OF_THE_MEDITATION 0x846 | |
#define | FLAG_STUDENTS_TESTED 0x848 | |
#define | FLAG_MET_POI 0x849 | |
#define | FLAG_LASH_RECEIVED 0x84a | |
#define | FLAG_LADDER_LOWERED 0x92d | |
#define | SPLASH_RING_FAST_SPEED 48000 | Each call of scKandoreanTempleLeaveSplashRings on a moving wader counts two toward the next ring on the water, or four when half its speeds across and down together pass SPLASH_RING_FAST_SPEED (a 16.16 speed, just under three quarters of a pixel a tick); past SPLASH_RING_STRIDE a ring spreads at its feet. |
#define | SPLASH_RING_STRIDE 40 | |
#define | DEFINE_KANDOREAN_TEMPLE_VENT (name, blowing, period, x, z, strength) | Defines a vent's tick event: while blowing is set, a cloud of steam of the given strength puffs from (x, z), 16.16 pixels, every period ticks. |
#define | DEFINE_KANDOREAN_TEMPLE_START_VENT (name, | A vent starts blowing: its column and cover ready to rise, carrying the leader if it stands there. |
#define | DEFINE_KANDOREAN_TEMPLE_RUN_VENT (name, | A vent's event, its timer through its cycle. |
#define | LIFT_SUNK_HEIGHT (-20) | How far below the lift room's floor a lift starts and ends, in pixels. |
#define | DEFINE_KANDOREAN_TEMPLE_RUN_LIFT (name, | A lift of the lift room, the top of a vent's column, its timer through its cycle. |
#define | SINK_COVER (top, upper, middle, lower, foot) | One step of a steam column sinking back under its cover: the leader, the cover and the camera go down, and each of the column's five pieces shrinks, the top fastest. |
#define | DEFINE_KANDOREAN_TEMPLE_ARRIVE_ON_VENT (name, | Coming down a lift from the room above: the party arrives atop that vent's cover, raised high on its column, and sinks with it to the ground. |
#define | DEFINE_KANDOREAN_TEMPLE_RISE ( | Felix rises into view on a lift while its column grows under it: he and the column start at (x, z), the lift under him at (x, liftZ), and once it stands level with the floor its metatile (metatileX, metatileZ) is freed and its timer goes on from LIFT_RISEN. |
Enumerations
| Name | Description | |
|---|---|---|
enum | KANDOREAN_TEMPLE_LIFT_ROOM_ACTOR_ID { ACTOR_WEST_ROPE_WEST_POST, ACTOR_WEST_ROPE_EAST_POST, ACTOR_ … } | The lift room's actors (SceneIdKandoreanTempleLifts), numbering the rows of KandoreanTempleLiftRoomPlacements. |
enum | KANDOREAN_TEMPLE_CHESTBEATER_ROOM_ACTOR_ID { ACTOR_BOILING_POT, ACTOR_EMBERS_UNDER_THE_POT, ACTOR_POIS_SI … } | The Chestbeaters' room's actors (SceneIdKandoreanTempleChestbeaters), numbering the rows of KandoreanTempleChestbeaterRoomPlacements. |
enum | KANDOREAN_TEMPLE_VENT_ROOM_ACTOR_ID { ACTOR_VENT_ROOM_PILLAR, ACTOR_WEST_VENT_COVER, ACTOR_EAST_VE … } | The vent room's actors (SceneIdKandoreanTempleVents), numbering the rows of KandoreanTempleVentRoomPlacements. |
enum | KANDOREAN_TEMPLE_FOG_ROOM_ACTOR_ID { ACTOR_FOG_ROPE_FLOOR_POST, ACTOR_FOG_ROPE_LEDGE_POST, ACTOR_ … } | Fog's room's actors (SceneIdKandoreanTempleFog), numbering the rows of KandoreanTempleFogRoomPlacements. |
enum | KANDOREAN_TEMPLE_GATE_ACTOR_ID { ACTOR_WEEDS_OVER_THE_CAVE, ACTOR_STUDENT_ASKING_ABOUT_POI, A … } | The temple gate's actors (SceneIdKandoreanTempleGate), numbering the rows of KandoreanTempleGatePlacements. |
enum | KANDOREAN_TEMPLE_POIS_ROOM_ACTOR_ID { ACTOR_SOUTH_ROPE_WEST_POST, ACTOR_SOUTH_ROPE_EAST_POST, ACTO … } | Poi's room's actors (SceneIdKandoreanTemplePoi), numbering the rows of KandoreanTemplePoisRoomPlacements. |
enum | anonymous enum { KANDOREAN_TEMPLE_POI_ROPE_ON_THE_FLOOR, KANDOREAN_TEMPLE_POI … } | Poi's room's story exits, each leading back into the room by the entrance of its number: finding the rope still lying on the floor (scKandoreanTempleFindTheRopeOnTheFloor), and coming in through the cave to meet Poi (scKandoreanTempleMeetPoi). |
enum | anonymous enum { KANDOREAN_TEMPLE_POI_TEST_HALL_TO_UPPER_HALL_WEST, KANDOREAN … } | The ways between the three parts of Poi's hall, each exit leading in by the entrance on its far side: the test hall in the south, where Poi tests his students before the door below his statue; the upper hall north of it, with Poi's table and the north rope, reached by two openings in the test hall's north wall; and the passage down the west side, from the ladder up out of the Chestbeaters' room to the upper hall's west doorway. |
enum | anonymous enum { KANDOREAN_TEMPLE_POI_TEST_HALL_FROM_UPPER_HALL_WEST, KANDORE … } | The entrances, one for each exit above. |
enum | KANDOREAN_TEMPLE_METATILE_BEHAVIOR { METATILE_BEHAVIOR_SHAFT, METATILE_BEHAVIOR_WEST_LIFT, METATI … } | The rooms' own metatile behaviors, named by room. |
enum | anonymous enum { ENTRANCE_AFTER_CHESTBEATER_BATTLE } | The Chestbeaters' room's entrance after their battle, which no exit leads to: the party is back before the north wall, and the ladder comes down. |
enum | anonymous enum { FLAG_ON_WEST_LIFT, FLAG_ON_EAST_LIFT, FLAG_PILLAR_LIFTED_OFF … } | The temple's scene and area flags, by the rooms that read them. |
enum | VENT_TICK { VENT_BLOW, VENT_RISE_END, VENT_CARRY_LEADER, VENT_FLOAT_END, … } | A vent's cycle, in ticks of its timer. |
enum | LIFT_TICK { LIFT_RISE, LIFT_RISEN, LIFT_WALL_OFF, LIFT_FLOAT_END, LIFT_S … } | A lift's cycle, in ticks of its timer: at LIFT_RISE it starts up its column from LIFT_SUNK_HEIGHT below the floor until it stands level with it, frees its metatile, and its timer jumps to LIFT_RISEN. |
Functions
| Name | Description | |
|---|---|---|
void | scKandoreanTempleStartGate (void) | Sets up the temple gate: the weeds over the hidden passage gone once Whirlwind has scattered them, the students meditating or, once Poi has been met, standing by with the metatiles that open the temple's door laid before it, the door open if it was opened this visit, and Kraden. |
void | scKandoreanTempleArriveOnEastLift (void) | Arriving on the east lift, metatile (37, 14), from the vent room below: Felix rises into the room on it as its column grows beneath. |
void | scKandoreanTempleTestTheStudents (void) | Poi tests his three students in turn: the first two fall, and the third levitates and passes. |
void | scKandoreanTempleFindTheHiddenPassage (void) | Whirlwind has scattered the weeds: the passage behind them opens and Kraden follows the leader in. |
void | scKandoreanTempleFightChestbeaters (void) | Felix walks up to the Chestbeaters at the north end of their room, metatiles (19, 12) to (21, 12): the three leap down at him with a cry and their battle starts. |
void | scKandoreanTempleArriveOnWestLift (void) | Arriving on the west lift, metatile (27, 12), from the vent room below: Felix rises into the room on it as its column grows beneath, and the lift's cycle goes on from LIFT_RISEN. |
void | scKandoreanTempleLeaveSplashRings (ACTOR *actor, Sint32 step) | Counts one step of an actor through the water, more when it moves fast, and spreads a ring on the water at its feet once enough are counted. |
void | scKandoreanTempleSpawnSplashRing (ACTOR *actor) | Spreads a translucent ring on the water at an actor's feet, which goes after 24 ticks. |
void | scKandoreanTemplePushSouth (ACTOR *actor, FIXED dz) | Moves an actor and the camera south by dz, unless the map stops it eight pixels ahead or ahead to either side. |
void | scKandoreanTempleFightFog (void) | Talking to Fog starts its battle. |
Uint32 | scKandoreanTempleCountDownSteam (ACTOR *actor) | Unused: a cloud of steam's script call, from the steam script's unreached tail; counts down its life and reports whether any is left. |
Sint32 | scKandoreanTempleMeditate (ACTOR *actor) | A meditating student's update: now and then, every four to eight seconds, an ellipsis over his head. |
Sint32 | scKandoreanTempleSquashAndStretch (ACTOR *actor) | An actor script call, each tick: every 60 to 149 ticks the actor squashes and stretches back to its own shape over six ticks. |
Sint32 | scKandoreanTemplePlaceFlame (ACTOR *actor) | Sets up a torch's flame in Poi's room: still in the air, at four fifths of its size, with no shadow, never a talk or Psynergy target. |
const SCENE_ENTRANCE * | scGetEntrances (void) | Where the party can enter: the cave under the spring has its own entrances. |
const SCENE_REGION * | scGetExitRegions (void) | The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room. |
const Uint32 * | scGetExits (void) | The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN. |
void * | scGetActorPlacements (void) | The current room's actors. |
void | scKandoreanTempleKradenSuspectsTheWall (void) | Felix walks past the courtyard's west wall, metatiles (5, 15) and (6, 15), before the hidden passage is found: Kraden walks up beside him and says the wall looks rather suspicious, and the two nod. |
void * | scGetCues (void) | The current room's cues. |
void | scKandoreanTempleStartSplashRings (void) | Unused: takes the leader's shadow away and counts one step of its wading (scKandoreanTempleLeaveSplashRings). |
void | scKandoreanTemplePushAlongTheCurrent (void) | Felix wades into the sheet of water that pours south from the waterfall in the room of the current, any of its metatiles: the current pushes him south, splashing at his feet, unless he runs against it. |
Bool | scKandoreanTempleIsOverActor (ACTOR *a, ACTOR *b) | Whether actor a is within twelve pixels across and eight deep of actor b. |
void | scKandoreanTempleUpdateVentSteam (ACTOR *actor) | A cloud of the vents' steam: drifts and slows, grows and turns, and rises instead of drifting on where the leader or the pillar stands over it. |
void | scKandoreanTempleInitSteam (ACTOR *actor, Sint32 priority) | Sets up a cloud of steam on the given sprite priority: translucent, no shadow, its script. |
void | scKandoreanTempleBlowSteam (Sint32 *position, Sint32 strength) | Blows a cloud of steam from a vent at position, drifting south at the given strength. |
void | scKandoreanTempleUpdateStreamSteam (ACTOR *actor) | A cloud of the lift room's stream of steam: as the vents' clouds, held down by the leader or the lift room's pillar. |
void | scKandoreanTempleBlowStreamSteam (void) | Blows a cloud of steam from the lift room's stream. |
void | scKandoreanTempleRestoreLeaderShadow (void) | Unused: gives the leader its shadow back. |
void | scKandoreanTemplePrepareLift (Sint32 id) | Sets a lift or a vent's cover at rest: flat on the floor in its lowered animation, drawn underfoot behind the scenery, and disabled. |
void | scKandoreanTemplePrepareColumn (Sint32 id) | Sets a lift's column or a piece of one at rest, disabled. |
void | scKandoreanTempleCastLash (void) | Poi casts Lash on the north rope's east post. |
DEFINE_KANDOREAN_TEMPLE_VENT( | KandoreanTempleBlowWestVent , KandoreanTempleWestVentBlowing, 9, toFIXED(296), toFIXED(176), toFIXED(2)) | The west vent's event: while it blows, a cloud of steam every ninth tick. |
DEFINE_KANDOREAN_TEMPLE_VENT( | KandoreanTempleBlowEastVent , KandoreanTempleEastVentBlowing, 5, toFIXED(344), toFIXED(160), toFIXED(4)) | The east vent's event: while it blows, a stronger cloud every fifth tick. |
void | scKandoreanTempleBlowStream (void) | The lift room's event: a cloud of steam from the stream every fifth tick. |
void | scKandoreanTempleLowerWestColumn (Sint32 id) | Lowers a piece of the west column flat under its cover. |
void | scKandoreanTempleLowerEastColumn (Sint32 id) | Lowers a piece of the east column flat under its cover. |
void | scKandoreanTempleGrowColumn (Sint32 id, FIXED dy, Sint32 scale) | Grows a column piece by scale and raises it by dy. |
void | scKandoreanTempleShrinkColumn (Sint32 id, FIXED dy, Sint32 scale) | Shrinks a column piece by scale and lowers it by dy. |
Bool | scKandoreanTempleIsWestVentBlocked (void) | Whether the west vent stays shut: while Move carries the pillar off a cover, or while the pillar weighs the west cover down. |
Bool | scKandoreanTempleIsEastVentBlocked (void) | Whether the east vent stays shut: while Move carries the pillar off a cover, or while the pillar weighs the east cover down. |
DEFINE_KANDOREAN_TEMPLE_START_VENT( | KandoreanTempleStartWestVent , ACTOR_WEST_VENT_COVER, WEST_COVER_X, WEST_COVER_Z, ACTOR_WEST_COLUMN_TOP, ACTOR_WEST_COLUMN_UPPER_PIECE, ACTOR_WEST_COLUMN_MIDDLE_PIECE, ACTOR_WEST_COLUMN_LOWER_PIECE, ACTOR_WEST_COLUMN_FOOT, FLAG_ON_WEST_LIFT, scKandoreanTempleLowerWestColumn, FLAG_PILLAR_ON_EAST_VENT, KandoreanTempleWestVentBlowing, FLAG_WEST_VENT_BLOWING) | |
DEFINE_KANDOREAN_TEMPLE_START_VENT( | KandoreanTempleStartEastVent , ACTOR_EAST_VENT_COVER, EAST_COVER_X, EAST_COVER_Z, ACTOR_EAST_COLUMN_TOP, ACTOR_EAST_COLUMN_UPPER_PIECE, ACTOR_EAST_COLUMN_MIDDLE_PIECE, ACTOR_EAST_COLUMN_LOWER_PIECE, ACTOR_EAST_COLUMN_FOOT, FLAG_ON_EAST_LIFT, scKandoreanTempleLowerEastColumn, FLAG_PILLAR_ON_WEST_VENT, KandoreanTempleEastVentBlowing, FLAG_EAST_VENT_BLOWING) | |
DEFINE_KANDOREAN_TEMPLE_RUN_VENT( | KandoreanTempleRunWestVent , KandoreanTempleWestTimer, KandoreanTempleWestFloatPhase, KandoreanTempleWestVentBlowing, FLAG_WEST_VENT_BLOWING, scKandoreanTempleIsWestVentBlocked, KandoreanTempleStartWestVent, WEST_COVER_METATILE_X, WEST_COVER_METATILE_Z, WEST_COVER_CARRY_METATILE, ACTOR_WEST_VENT_COVER, WEST_COVER_X, WEST_COVER_Z, ACTOR_WEST_COLUMN_TOP, ACTOR_WEST_COLUMN_UPPER_PIECE, ACTOR_WEST_COLUMN_MIDDLE_PIECE, ACTOR_WEST_COLUMN_LOWER_PIECE, ACTOR_WEST_COLUMN_FOOT, FLAG_ON_WEST_LIFT, FLAG_PILLAR_ON_EAST_VENT) | The west vent's event. |
DEFINE_KANDOREAN_TEMPLE_RUN_VENT( | KandoreanTempleRunEastVent , KandoreanTempleEastTimer, KandoreanTempleEastFloatPhase, KandoreanTempleEastVentBlowing, FLAG_EAST_VENT_BLOWING, scKandoreanTempleIsEastVentBlocked, KandoreanTempleStartEastVent, EAST_COVER_METATILE_X, EAST_COVER_METATILE_Z, EAST_COVER_CARRY_METATILE, ACTOR_EAST_VENT_COVER, EAST_COVER_X, EAST_COVER_Z, ACTOR_EAST_COLUMN_TOP, ACTOR_EAST_COLUMN_UPPER_PIECE, ACTOR_EAST_COLUMN_MIDDLE_PIECE, ACTOR_EAST_COLUMN_LOWER_PIECE, ACTOR_EAST_COLUMN_FOOT, FLAG_ON_EAST_LIFT, FLAG_PILLAR_ON_WEST_VENT) | The east vent's event. |
DEFINE_KANDOREAN_TEMPLE_RUN_LIFT( | KandoreanTempleRunWestLift , ACTOR_WEST_LIFT, ACTOR_WEST_LIFT_COLUMN, KandoreanTempleWestTimer, KandoreanTempleWestFloatPhase, WEST_LIFT_X, WEST_LIFT_Z, WEST_LIFT_METATILE_X, WEST_LIFT_METATILE_Z, WEST_LIFT_CARRY_METATILE, FLAG_ON_WEST_LIFT) | The lift room's west lift, the top of the west vent's column. |
DEFINE_KANDOREAN_TEMPLE_RUN_LIFT( | KandoreanTempleRunEastLift , ACTOR_EAST_LIFT, ACTOR_EAST_LIFT_COLUMN, KandoreanTempleEastTimer, KandoreanTempleEastFloatPhase, EAST_LIFT_X, EAST_LIFT_Z, EAST_LIFT_METATILE_X, EAST_LIFT_METATILE_Z, EAST_LIFT_CARRY_METATILE, FLAG_ON_EAST_LIFT) | The lift room's east lift, the top of the east vent's column. |
void | scKandoreanTempleWatchVents (void) | The vent room's event: notes whether the leader stands on a cover (where it cannot save), lets a blowing vent's steam push it south, and starts or stops the vents' sound. |
void | scKandoreanTempleWatchLifts (void) | The lift room's event: a leader stepping onto a lift rides it, and cannot save while it does. |
void | scKandoreanTempleMatchStudentsToLeader (void) | Poi's room's event: draws the three tested students at the leader's sprite priority, in front of or behind the room's scenery as the leader is. |
void | scKandoreanTempleDropOffLowMetatiles (void) | The vent room's event: a leader standing over a metatile the map marks low drops to the ground. |
void | scKandoreanTempleReadPoisSign (void) | Reads the sign by the hot floor. |
void | scKandoreanTempleTryTheLockedDoor (void) | Felix checks the temple's door in the middle of the courtyard, metatiles (17, 25) and (18, 25), before it is open: "The door is tightly locked." |
void | scKandoreanTempleAskAboutPoi (void) | The student by the gate asks whether the party has come to see Master Poi. |
void | scKandoreanTempleTellOfTheMeditation (void) | The student on guard tells the party that none may enter during the meditation. |
void | scKandoreanTempleAskWhoPassedTheTest (void) | The first tested student asks whether the party passed the test. |
void | scKandoreanTempleReadTheGateStudent (void) | Mind Read on the student by the gate startles him into asking about Poi. |
void | scKandoreanTempleReadTheGuard (void) | Mind Read on the student on guard startles him into telling of the meditation. |
void | scKandoreanTempleClimbDownTheLadder (void) | Felix pushes towards the opening in the floor of Poi's hall, metatile (10, 5), from beside or below it: he climbs down the ladder into the Chestbeaters' room. |
void | scKandoreanTempleOpenTheCaveDoor (void) | Opens the door to the cave below Poi's statue. |
void | scKandoreanTempleEnterTheCave (void) | Felix walks north into the door below Poi's statue, metatiles (24, 40) and (25, 40): it opens with a thump if it is shut, and he goes through into the caverns of the trials. |
void | scKandoreanTempleClimbDownTheWell (void) | Felix walks south into the stone well in the courtyard's east side, metatiles (25, 17) to (26, 18): he climbs down into it, to the passageway at its bottom that examining the well tells of, and comes out in the east end of the cave of shallow water. |
void | scKandoreanTempleStartMovingBlock (void) | Move takes hold of the pillar in the lift room, or Felix pushes it. |
void | scKandoreanTempleFinishMovingBlock (void) | The pillar in the lift room comes to rest; pushed east as far as column 43, over the shaft at metatiles (43, 10) to (43, 13), it blocks the shaft, and Felix can walk across without sinking into it. |
void | scKandoreanTempleStartMovingPillar (void) | Move takes hold of the pillar in the vent room, or Felix pushes it; lifted from anywhere but the floor between the vents, columns 15 to 21, it was on a vent's cover, and that vent is free to blow again. |
void | scKandoreanTempleFinishMovingPillar (void) | The pillar in the vent room comes to rest. |
void | scKandoreanTempleStartMovingPot (void) | Move takes hold of the pot boiling over the hot floor in the Chestbeaters' room. |
void | scKandoreanTempleFinishMovingPot (void) | The pot of boiling water, chucked one metatile west or east by Move, lands out of the way, and the floor round where it stood, metatiles (19, 28) to (21, 30), stops burning. |
void | scKandoreanTempleTouchTheHotFloor (void) | Felix walks onto the hot floor under the pot of boiling water, from the west, south or east of it: he jumps back with a start, his sprite flushed red. |
void | scKandoreanTempleOpenTheTempleDoor (void) | Once Felix has met Poi, the temple's wooden door in the middle of the courtyard swings open with a thump as he walks up to it, from the courtyard (metatile (17, 26)) or from inside (metatile (17, 24)). |
void | scKandoreanTempleReceiveLash (void) | Examining the Lash Pebble on Poi's table: Poi gives the party Lash, tells how to use it and crosses the north rope back to the upper hall. |
void | scKandoreanTempleStepBehindThePost (void) | Felix steps behind a post of the rope across to Fog: he is drawn behind the post while he is there. |
void | scKandoreanTempleStepOutFromThePost (void) | Felix steps out from behind the rope's post: he is drawn in front of it again. |
void | scKandoreanTempleCycloneFirstClump (void) | Felix casts Cyclone over one of the five clumps of weeds in the courtyard before the temple: leaves whirl up and the clump is gone. |
void | scKandoreanTempleCycloneSecondClump (void) | |
void | scKandoreanTempleCycloneThirdClump (void) | |
void | scKandoreanTempleCycloneFourthClump (void) | |
void | scKandoreanTempleCycloneFifthClump (void) | |
Sint32 | scInit (void) | Sets up the room being entered. |
Sint32 | scPrepareMap (void) | Once Briggs is caught the pool has dried up: its colours take the dry ground's. |
void | scKandoreanTempleStartLiftRoom (void) | Sets up the lift room: its tightropes, the pillar, the stream of steam and the lifts, and the lift the leader arrives on. |
void | scKandoreanTempleStartMimicRoom (void) | Sets up the Mimic's room. |
void | scKandoreanTempleStartChestbeaterRoom (void) | Sets up the Chestbeaters' room: the pot where Move left it, the sign, and the Chestbeaters gone once the ladder is lowered. |
void | scKandoreanTempleStartVentRoom (void) | Sets up the vent room: the covers and columns at rest, the pillar where Move left it, the vents' steam and the events that run them, and the ride down or the fall the leader arrives by. |
void | scKandoreanTempleLandFromAbove (void) | Felix drops into the vent room from the lift room's shaft above and lands in a puff of dust that shakes the screen. |
DEFINE_KANDOREAN_TEMPLE_ARRIVE_ON_VENT( | scKandoreanTempleArriveOnWestVent , ACTOR_WEST_VENT_COVER, WEST_COVER_X, WEST_COVER_Z, ACTOR_WEST_COLUMN_TOP, ACTOR_WEST_COLUMN_UPPER_PIECE, ACTOR_WEST_COLUMN_MIDDLE_PIECE, ACTOR_WEST_COLUMN_LOWER_PIECE, ACTOR_WEST_COLUMN_FOOT, syGameFlagSet, syGameFlagClear, KandoreanTempleStartWestVent, KandoreanTempleWestVentBlowing, FLAG_WEST_VENT_BLOWING) | |
DEFINE_KANDOREAN_TEMPLE_ARRIVE_ON_VENT( | scKandoreanTempleArriveOnEastVent , ACTOR_EAST_VENT_COVER, EAST_COVER_X, EAST_COVER_Z, ACTOR_EAST_COLUMN_TOP, ACTOR_EAST_COLUMN_UPPER_PIECE, ACTOR_EAST_COLUMN_MIDDLE_PIECE, ACTOR_EAST_COLUMN_LOWER_PIECE, ACTOR_EAST_COLUMN_FOOT, syGameFlagClear, syGameFlagSet, KandoreanTempleStartEastVent, KandoreanTempleEastVentBlowing, FLAG_EAST_VENT_BLOWING) | |
void | scKandoreanTempleLeaveBySteam (void) | Felix rises out of the vent room on a vent's column, the screen closing in on him. |
void | scKandoreanTempleLeaveByWestVent (void) | Felix rides the west vent's round cover as its column lifts it, up through the ceiling to the west lift in the room above. |
void | scKandoreanTempleLeaveByEastVent (void) | Felix rides the east vent's round cover as its column lifts it, up through the ceiling to the east lift in the room above. |
void | scKandoreanTempleSinkIntoTheSteam (void) | Felix steps onto the lift room's shaft, metatiles (43, 10) to (43, 13), while the pillar does not block it: he slips back, throws up his arms and sinks out of sight, dropping into the vent room below. |
void | scKandoreanTempleRideWestLiftDown (void) | Felix steps onto the west lift in the lift room, metatile (27, 12), while it stands risen: it sinks out of sight with him, down its column to the west vent in the room below. |
void | scKandoreanTempleRideEastLiftDown (void) | Felix steps onto the east lift in the lift room, metatile (37, 14), while it stands risen: it sinks out of sight with him, down its column to the east vent in the room below. |
void | scKandoreanTempleStartStreamRoom (void) | Sets up the cave of shallow water behind the weeds by the gate, where the party wades. |
void | scKandoreanTempleStartCurrentRoom (void) | Sets up the room of the current, with the rush of its water. |
void | scKandoreanTempleStartFogRoom (void) | Sets up Fog's room: the rope to Fog and, until the party has met Poi, the student who gave up, sitting on the floor. |
void | scKandoreanTempleStartMeditating (Sint32 id, Sint32 delay) | A student sits meditating, his first ellipsis after delay ticks and up to 400 more. |
void | scKandoreanTemplePoiWaitsByTheNorthRope (void) | Before the party has Lash, Poi waits by the north rope, which he has tied across (FLAG_NORTH_ROPE_TIED) the first time on each visit. |
void | scKandoreanTempleStartPoisRoom (void) | Sets up Poi's hall: its ropes, the tested students, Poi and the cave door, by the entrance the party takes. |
void | scKandoreanTempleTurnSprite (FIELD_SPR *sprite, Uint32 ticks, Sint32 step) | Turns a sprite by step (of TRIG_TURN to the turn) each tick for the given ticks. |
void | scKandoreanTempleDrift (ACTOR *actor, Uint32 ticks, FIXED step) | Moves an actor sideways by step each tick for the given ticks. |
void | scKandoreanTemplePassTheTest (void) | Felix comes out of the west passage into the upper hall of Poi's hall, the way up from the Chestbeaters' room, and Poi praises him for passing the test before he sees the party are not his students and asks how they came so far. |
void | scKandoreanTempleFindTheRopeOnTheFloor (void) | Poi goes down into the test hall and looks about by the south rope's posts: "The rope is still on the floor." Nobody has climbed up that way, so he goes back up to the party sure that they came through the cave. |
void | scKandoreanTemplePoiWalksUp (void) | Poi steps up beside the north rope's east post, turns west to the party and answers Kraden. |
void | scKandoreanTempleMeetPoi (void) | Poi comes back up into the upper hall to the party: they must have come through the cave, so he must give them the secret of Lash. |
void | scKandoreanTempleCreateLashPebble (void) | Creates the Lash Pebble's actor on Poi's table, drawn from its item icon. |
void | scKandoreanTempleLowerTheLadder (void) | Back in the Chestbeaters' room after their battle, a ladder unrolls down the north wall, rung by rung. |
Variables
| Name | Description | |
|---|---|---|
Sint32 | KandoreanTempleSplashRingCounter | How far a wader has gone since its last ring on the water (scKandoreanTempleLeaveSplashRings). |
Sint32 | KandoreanTempleWestVentBlowing | Whether each vent of the vent room blows its steam (KandoreanTempleBlowWestVent). |
Sint32 | KandoreanTempleEastVentBlowing | |
Sint32 | KandoreanTempleWestTimer | The west and east vents' timers, in ticks through their cycle (VENT_TICK), which in the lift room time the lifts at their columns' tops (LIFT_TICK); and the angles of the covers' or lifts' float as they bob on their columns. |
Sint32 | KandoreanTempleEastTimer | |
Uint16 | KandoreanTempleWestFloatPhase | |
Uint16 | KandoreanTempleEastFloatPhase | |
extern Sint32 | KandoreanTempleSteamScript [] | A cloud of steam lives 44 ticks, then is put away and released. |
extern Uint32 | KandoreanTempleSplashRingScript [] | |
extern Uint32 | KandoreanTempleSplashScript [] | |
extern Sint32 | KandoreanTempleMeditateScript [] | |
extern Sint32 | KandoreanTempleSquashAndStretchScript [] | |
extern Uint32 | KandoreanTempleLookAroundScript [] | |
extern Sint16 | KandoreanTempleLiftRoomPillarActors [] | What Move takes hold of, each list ended by -1: the lift room's pillar; and the vent room's pillar, which in the Chestbeaters' room is the boiling pot, placed first in the same slot. |
extern Sint16 | KandoreanTemplePillarOrPotActors [] | |
extern SCENE_REGION | KandoreanTempleStreamRoomRegions [] | |
extern ACTOR_PLACE | KandoreanTempleGatePlacements [] | |
extern ACTOR_PLACE | KandoreanTemplePoisRoomPlacements [] | |
extern CUE | KandoreanTempleMimicRoomCues [] | |
extern SCENE_REGION | KandoreanTempleChestbeaterRoomRegions [] | |
extern ACTOR_PLACE | KandoreanTemplePlacements [] | |
extern ACTOR_PLACE | KandoreanTempleLiftRoomPlacements [] | |
extern ACTOR_PLACE | KandoreanTempleChestbeaterRoomPlacements [] | |
extern ACTOR_PLACE | KandoreanTempleVentRoomPlacements [] | |
extern ACTOR_PLACE | KandoreanTempleFogRoomPlacements [] | |
extern CUE | KandoreanTempleCues [] | |
extern CUE | KandoreanTempleLiftRoomCues [] | |
extern CUE | KandoreanTempleChestbeaterRoomCues [] | |
extern CUE | KandoreanTempleVentRoomCues [] | |
extern CUE | KandoreanTempleStreamRoomCues [] | |
extern CUE | KandoreanTempleCurrentRoomCues [] | |
extern CUE | KandoreanTempleFogRoomCues [] | |
extern CUE | KandoreanTempleGateCues [] | |
extern CUE | KandoreanTemplePoisRoomCues [] | |
extern Uint32 | KandoreanTempleLeaderStepsAsideScript [] | |
extern Uint32 | KandoreanTempleKradenStepsAsideScript [] | |
extern Uint32 | KandoreanTemplePoiWalksToTheRopeScript [] | |
extern Uint32 | FieldEffectShortScript [] | |
extern Uint32 | FieldEffectMediumScript [] | The flash about the Tomegathericon: held 45 ticks, then put away and freed. |
extern Sint32 | KandoreanTempleHighFlameScript [] | |
extern Sint32 | KandoreanTempleLowFlameScript [] | |
extern Sint32 | KandoreanTempleFlameScript [] | |
extern Uint32 | FieldEffectLongScript [] | |
const Sint32 * | FieldEffectDurationScripts [] | The field effects' three scripts by how long an effect lasts: short, medium and long. |
Uint32 | SceneExits [] | The room has no exits of its own. |
Description
The Kandorean Temple of Master Poi, south-west of Daila, in nine rooms that
share this overlay (SceneIdKandoreanTempleLifts to
SceneIdKandoreanTemplePoi).
Its gate is shut for the meditation (scKandoreanTempleStartGate): Kraden
spots a suspicious wall, and Whirlwind on the weeds in the courtyard's north
west corner opens a hidden way in through a cave of shallow water
(scKandoreanTempleFindTheHiddenPassage). Inside, Poi tests three students
(scKandoreanTempleTestTheStudents), and the party follows the one who can
levitate, through the door below Poi's statue, into the caverns of his
trials: the Mimic's chest, the student who gave up, a sheet of water whose
current pushes Felix south (scKandoreanTemplePushAlongTheCurrent), two vents
whose round covers rise on gushing columns unless the pillar holds them down
(KandoreanTempleRunWestVent, KandoreanTempleRunEastVent), the lifts those
columns push up into the room above, and its shaft the pillar there can
block; then a pot boiling over a hot floor, and three Chestbeaters
(scKandoreanTempleFightChestbeaters), after which a ladder comes down to
Poi's hall. Poi gives the party the Lash Pebble
(scKandoreanTempleReceiveLash), and Lash ties the rope across to Fog, the
Mercury Djinni (scKandoreanTempleFightFog). Once Poi has met the party, the
temple's door in the courtyard opens as Felix walks up to it
(scKandoreanTempleOpenTheTempleDoor).
Macros in detail
EFFECT_SET_MODE
#define EFFECT_SET_MODE fdActorSelectAnimation
Referenced by EFFECT_SPAWN.
Definition at line 39 of file kandorean_temple.c.
EFFECT_SET_SCRIPT
#define EFFECT_SET_SCRIPT fdActorStartScript
Referenced by EFFECT_SPAWN.
Definition at line 40 of file kandorean_temple.c.
WEST_COVER_X
#define WEST_COVER_X 216
Where the vent room's covers rest, in pixels, and the metatiles under them, walled off while their vents blow; and the metatile of the map's top row copied over each to carry a leader riding the cover up to the lift above.
Referenced by scKandoreanTempleLowerWestColumn() and scKandoreanTempleStartVentRoom().
Definition at line 114 of file kandorean_temple.c.
WEST_COVER_Z
#define WEST_COVER_Z 216
Referenced by scKandoreanTempleLowerWestColumn() and scKandoreanTempleStartVentRoom().
Definition at line 115 of file kandorean_temple.c.
WEST_COVER_METATILE_X
#define WEST_COVER_METATILE_X 13
Referenced by scKandoreanTempleFinishMovingPillar() and scKandoreanTempleWatchVents().
Definition at line 116 of file kandorean_temple.c.
WEST_COVER_METATILE_Z
#define WEST_COVER_METATILE_Z 13
Referenced by scKandoreanTempleFinishMovingPillar() and scKandoreanTempleWatchVents().
Definition at line 117 of file kandorean_temple.c.
WEST_COVER_CARRY_METATILE
#define WEST_COVER_CARRY_METATILE 22
Definition at line 118 of file kandorean_temple.c.
EAST_COVER_X
#define EAST_COVER_X 376
Referenced by scKandoreanTempleLowerEastColumn() and scKandoreanTempleStartVentRoom().
Definition at line 119 of file kandorean_temple.c.
EAST_COVER_Z
#define EAST_COVER_Z 248
Referenced by scKandoreanTempleLowerEastColumn() and scKandoreanTempleStartVentRoom().
Definition at line 120 of file kandorean_temple.c.
EAST_COVER_METATILE_X
#define EAST_COVER_METATILE_X 23
Referenced by scKandoreanTempleFinishMovingPillar() and scKandoreanTempleWatchVents().
Definition at line 121 of file kandorean_temple.c.
EAST_COVER_METATILE_Z
#define EAST_COVER_METATILE_Z 15
Referenced by scKandoreanTempleFinishMovingPillar() and scKandoreanTempleWatchVents().
Definition at line 122 of file kandorean_temple.c.
EAST_COVER_CARRY_METATILE
#define EAST_COVER_CARRY_METATILE 23
Definition at line 123 of file kandorean_temple.c.
WEST_LIFT_X
#define WEST_LIFT_X 440
Where the lift room's lifts stand, in pixels, their columns 4 pixels north of them, and the metatiles under them, free while they stand level with the floor; and the metatile of the map's top row copied over each to take a leader riding it down.
Definition at line 129 of file kandorean_temple.c.
WEST_LIFT_Z
#define WEST_LIFT_Z 204
Definition at line 130 of file kandorean_temple.c.
WEST_LIFT_METATILE_X
#define WEST_LIFT_METATILE_X 27
Referenced by scKandoreanTempleWatchLifts().
Definition at line 131 of file kandorean_temple.c.
WEST_LIFT_METATILE_Z
#define WEST_LIFT_METATILE_Z 12
Referenced by scKandoreanTempleWatchLifts().
Definition at line 132 of file kandorean_temple.c.
WEST_LIFT_CARRY_METATILE
#define WEST_LIFT_CARRY_METATILE 21
Definition at line 133 of file kandorean_temple.c.
EAST_LIFT_X
#define EAST_LIFT_X 600
Definition at line 134 of file kandorean_temple.c.
EAST_LIFT_Z
#define EAST_LIFT_Z 236
Definition at line 135 of file kandorean_temple.c.
EAST_LIFT_METATILE_X
#define EAST_LIFT_METATILE_X 37
Referenced by scKandoreanTempleWatchLifts().
Definition at line 136 of file kandorean_temple.c.
EAST_LIFT_METATILE_Z
#define EAST_LIFT_METATILE_Z 14
Referenced by scKandoreanTempleWatchLifts().
Definition at line 137 of file kandorean_temple.c.
EAST_LIFT_CARRY_METATILE
#define EAST_LIFT_CARRY_METATILE 22
Definition at line 138 of file kandorean_temple.c.
FLAG_HIDDEN_PASSAGE_FOUND
#define FLAG_HIDDEN_PASSAGE_FOUND 0x842
The Kandorean Temple's story, from the hidden passage Kraden suspects to the ladder that unrolls once the Chestbeaters are beaten.
Referenced by scKandoreanTempleFindTheHiddenPassage(), scKandoreanTempleKradenSuspectsTheWall() and scKandoreanTempleStartGate().
Definition at line 443 of file kandorean_temple.c.
FLAG_ASKED_ABOUT_POI
#define FLAG_ASKED_ABOUT_POI 0x845
Referenced by KandoreanTempleGateCues and scKandoreanTempleAskAboutPoi().
Definition at line 444 of file kandorean_temple.c.
FLAG_TOLD_OF_THE_MEDITATION
#define FLAG_TOLD_OF_THE_MEDITATION 0x846
Referenced by KandoreanTempleGateCues and scKandoreanTempleTellOfTheMeditation().
Definition at line 445 of file kandorean_temple.c.
FLAG_STUDENTS_TESTED
#define FLAG_STUDENTS_TESTED 0x848
Referenced by scKandoreanTempleStartPoisRoom() and scKandoreanTempleTestTheStudents().
Definition at line 446 of file kandorean_temple.c.
FLAG_MET_POI
#define FLAG_MET_POI 0x849
Referenced by KandoreanTempleGateCues, KandoreanTemplePoisRoomCues, scGetActorPlacements(), scKandoreanTempleMeetPoi(), scKandoreanTempleStartFogRoom(), scKandoreanTempleStartGate() and scKandoreanTempleStartPoisRoom().
Definition at line 447 of file kandorean_temple.c.
FLAG_LASH_RECEIVED
#define FLAG_LASH_RECEIVED 0x84a
Referenced by KandoreanTemplePoisRoomCues, scKandoreanTempleReceiveLash() and scKandoreanTempleStartPoisRoom().
Definition at line 448 of file kandorean_temple.c.
FLAG_LADDER_LOWERED
#define FLAG_LADDER_LOWERED 0x92d
Referenced by KandoreanTempleChestbeaterRoomCues, scKandoreanTempleLowerTheLadder() and scKandoreanTempleStartChestbeaterRoom().
Definition at line 449 of file kandorean_temple.c.
SPLASH_RING_FAST_SPEED
#define SPLASH_RING_FAST_SPEED 48000
Each call of scKandoreanTempleLeaveSplashRings on a moving wader counts two
toward the next ring on the water, or four when half its speeds across and
down together pass SPLASH_RING_FAST_SPEED (a 16.16 speed, just under three
quarters of a pixel a tick); past SPLASH_RING_STRIDE a ring spreads at its
feet.
Referenced by scKandoreanTempleLeaveSplashRings().
Definition at line 669 of file kandorean_temple.c.
SPLASH_RING_STRIDE
#define SPLASH_RING_STRIDE 40
Referenced by scKandoreanTempleLeaveSplashRings().
Definition at line 670 of file kandorean_temple.c.
DEFINE_KANDOREAN_TEMPLE_VENT
#define DEFINE_KANDOREAN_TEMPLE_VENT(name, blowing, period, x, z, strength)
Defines a vent's tick event: while blowing is set, a cloud of steam of the given strength puffs from (x, z), 16.16 pixels, every period ticks.
Definition at line 986 of file kandorean_temple.c.
DEFINE_KANDOREAN_TEMPLE_START_VENT
#define DEFINE_KANDOREAN_TEMPLE_START_VENT(name,
A vent starts blowing: its column and cover ready to rise, carrying the
leader if it stands there. lowerColumn lays a piece of the column flat
under the cover; the two lower pieces are laid out only when the pillar
weighs the other vent down (pillarOnOther).
Definition at line 1080 of file kandorean_temple.c.
DEFINE_KANDOREAN_TEMPLE_RUN_VENT
#define DEFINE_KANDOREAN_TEMPLE_RUN_VENT(name,
A vent's event, its timer through its cycle. Its cover stands on metatile
(metatileX, metatileZ), walled off while it blows, with the same metatile
of the map's second layer 50 columns east; carryMetatile, in the map's top
row, is the metatile copied there to carry a riding leader up to the lift
above. pillarOnOther is the flag of the pillar weighing the other vent
down, which sends this one higher.
Definition at line 1188 of file kandorean_temple.c.
LIFT_SUNK_HEIGHT
#define LIFT_SUNK_HEIGHT (-20)
How far below the lift room's floor a lift starts and ends, in pixels.
Referenced by scKandoreanTempleRideEastLiftDown() and scKandoreanTempleRideWestLiftDown().
Definition at line 1449 of file kandorean_temple.c.
DEFINE_KANDOREAN_TEMPLE_RUN_LIFT
#define DEFINE_KANDOREAN_TEMPLE_RUN_LIFT(name,
A lift of the lift room, the top of a vent's column, its timer through its
cycle. It rises at (x, z), its column 4 pixels north of it, and frees
metatile (metatileX, metatileZ) while it stands level with the floor;
carryMetatile, in the map's top row, is the metatile copied there to take a
riding leader down.
Definition at line 1456 of file kandorean_temple.c.
SINK_COVER
#define SINK_COVER(top, upper, middle, lower, foot)
One step of a steam column sinking back under its cover: the leader, the cover and the camera go down, and each of the column's five pieces shrinks, the top fastest.
Definition at line 2561 of file kandorean_temple.c.
DEFINE_KANDOREAN_TEMPLE_ARRIVE_ON_VENT
#define DEFINE_KANDOREAN_TEMPLE_ARRIVE_ON_VENT(name,
Coming down a lift from the room above: the party arrives atop that vent's
cover, raised high on its column, and sinks with it to the ground. It now
rides this side's lift and the pillar weighs the other vent down: westSide
is syGameFlagSet on the west lift's arrival and syGameFlagClear on the
east's, eastSide the other way round.
Definition at line 2581 of file kandorean_temple.c.
DEFINE_KANDOREAN_TEMPLE_RISE
#define DEFINE_KANDOREAN_TEMPLE_RISE(
Felix rises into view on a lift while its column grows under it: he and the
column start at (x, z), the lift under him at (x, liftZ), and once it
stands level with the floor its metatile (metatileX, metatileZ) is freed
and its timer goes on from LIFT_RISEN.
Definition at line 2778 of file kandorean_temple.c.
Enumerations in detail
KANDOREAN_TEMPLE_LIFT_ROOM_ACTOR_ID
enum KANDOREAN_TEMPLE_LIFT_ROOM_ACTOR_ID
The lift room's actors (SceneIdKandoreanTempleLifts), numbering the rows of
KandoreanTempleLiftRoomPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_WEST_ROPE_WEST_POST | ACTOR_FIRST_PLACED | The posts of the two tightropes, a pair to each rope. |
ACTOR_WEST_ROPE_EAST_POST | ||
ACTOR_EAST_ROPE_WEST_POST | ||
ACTOR_EAST_ROPE_EAST_POST | ||
ACTOR_LIFT_ROOM_PILLAR | The pillar Move pushes along (KandoreanTempleLiftRoomPillarActors). | |
ACTOR_WEST_LIFT | ||
ACTOR_EAST_LIFT | ||
ACTOR_WEST_LIFT_COLUMN | The columns that grow under the lifts as they | |
ACTOR_EAST_LIFT_COLUMN | rise. |
Definition at line 45 of file kandorean_temple.c.
KANDOREAN_TEMPLE_CHESTBEATER_ROOM_ACTOR_ID
enum KANDOREAN_TEMPLE_CHESTBEATER_ROOM_ACTOR_ID
The Chestbeaters' room's actors (SceneIdKandoreanTempleChestbeaters),
numbering the rows of KandoreanTempleChestbeaterRoomPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_BOILING_POT | ACTOR_FIRST_PLACED | The pot of boiling water Move chucks aside (KandoreanTemplePillarOrPotActors). |
ACTOR_EMBERS_UNDER_THE_POT | The red embers the pot boils over: an actor in the pot's sprite at the pot's place, in its animation 2, the sprite sheet's last picture alone. It is drawn underfoot with no shadow, hidden under the pot, and stays glowing on the floor where the pot stood when the pot is chucked aside. | |
ACTOR_POIS_SIGN | The sign by the hot floor, which tells of Master Poi's trial. | |
ACTOR_MIDDLE_CHESTBEATER | ||
ACTOR_WEST_CHESTBEATER | ||
ACTOR_EAST_CHESTBEATER |
Definition at line 63 of file kandorean_temple.c.
KANDOREAN_TEMPLE_VENT_ROOM_ACTOR_ID
enum KANDOREAN_TEMPLE_VENT_ROOM_ACTOR_ID
The vent room's actors (SceneIdKandoreanTempleVents), numbering the rows of
KandoreanTempleVentRoomPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_VENT_ROOM_PILLAR | ACTOR_FIRST_PLACED | The pillar Move sets on either vent's cover to hold it down. |
ACTOR_WEST_VENT_COVER | The round stone covers of | |
ACTOR_EAST_VENT_COVER | the two vents, which their columns of water lift. | |
ACTOR_WEST_COLUMN_TOP | The gushing tops of the | |
ACTOR_EAST_COLUMN_TOP | columns of water that grow under the covers as they rise. | |
ACTOR_WEST_COLUMN_UPPER_PIECE | The pieces of the west column below its top, from the highest down. A cover rises on all four while the pillar holds the other vent down; otherwise on the upper two. | |
ACTOR_WEST_COLUMN_MIDDLE_PIECE | ||
ACTOR_WEST_COLUMN_LOWER_PIECE | ||
ACTOR_WEST_COLUMN_FOOT | ||
ACTOR_EAST_COLUMN_UPPER_PIECE | ||
ACTOR_EAST_COLUMN_MIDDLE_PIECE | ||
ACTOR_EAST_COLUMN_LOWER_PIECE | ||
ACTOR_EAST_COLUMN_FOOT |
Definition at line 84 of file kandorean_temple.c.
KANDOREAN_TEMPLE_FOG_ROOM_ACTOR_ID
enum KANDOREAN_TEMPLE_FOG_ROOM_ACTOR_ID
Fog's room's actors (SceneIdKandoreanTempleFog), numbering the rows of
KandoreanTempleFogRoomPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FOG_ROPE_FLOOR_POST | ACTOR_FIRST_PLACED | The posts of the rope |
ACTOR_FOG_ROPE_LEDGE_POST | Lash ties across to Fog's ledge: the one on the floor below, the rope coiled at its foot, and the one up on the ledge beside Fog. | |
ACTOR_STUDENT_WHO_GAVE_UP | The student who has given up on the test: "It seems I may not have been ready after all..." He sits on the floor, squashing and stretching now and then, until the party has met Poi. | |
ACTOR_FOG | Fog, the Mercury Djinni. |
Definition at line 142 of file kandorean_temple.c.
KANDOREAN_TEMPLE_GATE_ACTOR_ID
enum KANDOREAN_TEMPLE_GATE_ACTOR_ID
The temple gate's actors (SceneIdKandoreanTempleGate), numbering the rows of
KandoreanTempleGatePlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_WEEDS_OVER_THE_CAVE | ACTOR_FIRST_PLACED | The weeds over the mouth of the cave, which Whirlwind scatters. |
ACTOR_STUDENT_ASKING_ABOUT_POI | "Have you come to see Master Poi?" | |
ACTOR_STUDENT_ON_GUARD_DUTY | "Once the period of meditation has begun, none may enter the temple grounds." | |
ACTOR_STUDENT_WARY_OF_OUTSIDERS | The three students meditating in the courtyard. | |
ACTOR_STUDENT_ON_THE_FAILED_TEST | ||
ACTOR_STUDENT_WHO_WOULD_BE_A_MONK | ||
ACTOR_GATE_KRADEN |
Definition at line 165 of file kandorean_temple.c.
KANDOREAN_TEMPLE_POIS_ROOM_ACTOR_ID
enum KANDOREAN_TEMPLE_POIS_ROOM_ACTOR_ID
Poi's room's actors (SceneIdKandoreanTemplePoi), numbering the rows of
KandoreanTemplePoisRoomPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_SOUTH_ROPE_WEST_POST | ACTOR_FIRST_PLACED | The posts of the room's two ropes: Lash ties the loose end of each. |
ACTOR_SOUTH_ROPE_EAST_POST | ||
ACTOR_NORTH_ROPE_EAST_POST | ||
ACTOR_NORTH_ROPE_WEST_POST | ||
ACTOR_POI | ||
ACTOR_FIRST_TESTED_STUDENT | The three students Poi tests, in turn; only the third can levitate well enough to go on to the final test. | |
ACTOR_SECOND_TESTED_STUDENT | ||
ACTOR_THIRD_TESTED_STUDENT | ||
ACTOR_POIS_ROOM_KRADEN |
Definition at line 185 of file kandorean_temple.c.
anonymous enum
enum { KANDOREAN_TEMPLE_POI_ROPE_ON_THE_FLOOR, KANDOREAN_TEMPLE_POI_THROUGH_THE_CAVE }
Poi's room's story exits, each leading back into the room by the entrance of
its number: finding the rope still lying on the floor
(scKandoreanTempleFindTheRopeOnTheFloor), and coming in through the cave to
meet Poi (scKandoreanTempleMeetPoi).
| Enumerator | Value | Description |
|---|---|---|
KANDOREAN_TEMPLE_POI_ROPE_ON_THE_FLOOR | 13 | |
KANDOREAN_TEMPLE_POI_THROUGH_THE_CAVE | 14 |
Definition at line 205 of file kandorean_temple.c.
anonymous enum
enum { KANDOREAN_TEMPLE_POI_TEST_HALL_TO_UPPER_HALL_WEST, KANDOREAN_TEMPLE_POI_TEST_HALL_TO_UPPER_HALL_EAST, KANDOREAN_TEMPLE_POI_UPPER_HALL_TO_TEST_HALL_WEST, KANDOREAN_TEMPLE_POI_UPPER_HALL_TO_TEST_HALL_EAST, … }
The ways between the three parts of Poi's hall, each exit leading in by the entrance on its far side: the test hall in the south, where Poi tests his students before the door below his statue; the upper hall north of it, with Poi's table and the north rope, reached by two openings in the test hall's north wall; and the passage down the west side, from the ladder up out of the Chestbeaters' room to the upper hall's west doorway.
| Enumerator | Value | Description |
|---|---|---|
KANDOREAN_TEMPLE_POI_TEST_HALL_TO_UPPER_HALL_WEST | 2 | |
KANDOREAN_TEMPLE_POI_TEST_HALL_TO_UPPER_HALL_EAST | ||
KANDOREAN_TEMPLE_POI_UPPER_HALL_TO_TEST_HALL_WEST | ||
KANDOREAN_TEMPLE_POI_UPPER_HALL_TO_TEST_HALL_EAST | ||
KANDOREAN_TEMPLE_POI_UPPER_HALL_TO_WEST_PASSAGE | ||
KANDOREAN_TEMPLE_POI_WEST_PASSAGE_TO_UPPER_HALL |
Definition at line 217 of file kandorean_temple.c.
anonymous enum
enum { KANDOREAN_TEMPLE_POI_TEST_HALL_FROM_UPPER_HALL_WEST, KANDOREAN_TEMPLE_POI_TEST_HALL_FROM_UPPER_HALL_EAST, KANDOREAN_TEMPLE_POI_UPPER_HALL_FROM_TEST_HALL_WEST, KANDOREAN_TEMPLE_POI_UPPER_HALL_FROM_TEST_HALL_EAST, … }
The entrances, one for each exit above.
| Enumerator | Value | Description |
|---|---|---|
KANDOREAN_TEMPLE_POI_TEST_HALL_FROM_UPPER_HALL_WEST | 2 | |
KANDOREAN_TEMPLE_POI_TEST_HALL_FROM_UPPER_HALL_EAST | ||
KANDOREAN_TEMPLE_POI_UPPER_HALL_FROM_TEST_HALL_WEST | ||
KANDOREAN_TEMPLE_POI_UPPER_HALL_FROM_TEST_HALL_EAST | ||
KANDOREAN_TEMPLE_POI_UPPER_HALL_FROM_WEST_PASSAGE | ||
KANDOREAN_TEMPLE_POI_WEST_PASSAGE_FROM_UPPER_HALL |
Definition at line 228 of file kandorean_temple.c.
KANDOREAN_TEMPLE_METATILE_BEHAVIOR
enum KANDOREAN_TEMPLE_METATILE_BEHAVIOR
The rooms' own metatile behaviors, named by room.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_SHAFT | 10 | The lift room's shaft, metatiles (43, 10) to (43, 13). |
METATILE_BEHAVIOR_WEST_LIFT | 12 | The west and east lifts while risen, |
METATILE_BEHAVIOR_EAST_LIFT | metatiles (27, 12) and (37, 14). | |
METATILE_BEHAVIOR_WEST_OF_HOT_FLOOR | 10 | The Chestbeaters' room: the metatiles west, south and east of the hot floor under the pot, (19, 29), (20, 30) and (21, 29), and the floor before the Chestbeaters, (19, 12) to (21, 12). |
METATILE_BEHAVIOR_SOUTH_OF_HOT_FLOOR | ||
METATILE_BEHAVIOR_EAST_OF_HOT_FLOOR | ||
METATILE_BEHAVIOR_BEFORE_CHESTBEATERS | 6 | |
METATILE_BEHAVIOR_WEST_VENT_COVER | 20 | The vent room's covers while |
METATILE_BEHAVIOR_EAST_VENT_COVER | risen, which carry Felix up. | |
METATILE_BEHAVIOR_CURRENT | 10 | The room of the current: the sheet of water the current runs through. |
METATILE_BEHAVIOR_BEHIND_POST | 10 | Fog's room: behind and beside |
METATILE_BEHAVIOR_BESIDE_POST | the rope's posts. | |
METATILE_BEHAVIOR_INSIDE_TEMPLE_DOOR | 4 | The courtyard: the metatiles just inside and just before the temple's door, kept at (2, 0) and (2, 2) in the rock of the top left corner and laid at (17, 24) and (17, 26) once Poi has been met; the well, metatiles (25, 17) to (26, 18); the west wall Kraden suspects, (5, 15) and (6, 15); the temple's door, (17, 25) and (18, 25); and the five clumps of weeds Cyclone scatters. The front of the well, (25, 19) and (26, 19), is what the party examines. |
METATILE_BEHAVIOR_BEFORE_TEMPLE_DOOR | ||
METATILE_BEHAVIOR_COURTYARD_WELL | ||
METATILE_BEHAVIOR_WELL_FRONT | 200 | |
METATILE_BEHAVIOR_SUSPICIOUS_WALL | 20 | |
METATILE_BEHAVIOR_TEMPLE_DOOR | 10 | |
METATILE_BEHAVIOR_FIRST_WEED_CLUMP | 30 | |
METATILE_BEHAVIOR_SECOND_WEED_CLUMP | ||
METATILE_BEHAVIOR_THIRD_WEED_CLUMP | ||
METATILE_BEHAVIOR_FOURTH_WEED_CLUMP | ||
METATILE_BEHAVIOR_FIFTH_WEED_CLUMP | ||
METATILE_BEHAVIOR_BY_THE_LADDER | 8 | Poi's hall: round the opening down to the Chestbeaters' room, metatiles (9, 5), (11, 5) and (10, 6); before the door below Poi's statue, (24, 40) and (25, 40); and Poi's table with the Lash Pebble, (25, 21). |
METATILE_BEHAVIOR_CAVE_DOOR | ||
METATILE_BEHAVIOR_POIS_TABLE | 16 |
Definition at line 239 of file kandorean_temple.c.
anonymous enum
enum { ENTRANCE_AFTER_CHESTBEATER_BATTLE }
The Chestbeaters' room's entrance after their battle, which no exit leads to: the party is back before the north wall, and the ladder comes down.
| Enumerator | Value | Description |
|---|---|---|
ENTRANCE_AFTER_CHESTBEATER_BATTLE | 3 |
Definition at line 290 of file kandorean_temple.c.
anonymous enum
enum { FLAG_ON_WEST_LIFT, FLAG_ON_EAST_LIFT, FLAG_PILLAR_LIFTED_OFF_VENT, FLAG_PILLAR_MOVING, … }
The temple's scene and area flags, by the rooms that read them.
| Enumerator | Value | Description |
|---|---|---|
FLAG_ON_WEST_LIFT | FLAG_SCENE_TEMP(0x08) | The leader stands on |
FLAG_ON_EAST_LIFT | FLAG_SCENE_TEMP(0x09) | the lift room's west or east lift, or on the vent room's west or east cover. |
FLAG_PILLAR_LIFTED_OFF_VENT | FLAG_SCENE_TEMP(0x0a) | Move has lifted the vent room's pillar off a vent's cover. |
FLAG_PILLAR_MOVING | FLAG_SCENE_TEMP(0x0b) | Move is carrying the vent room's pillar. |
FLAG_WEST_VENT_BLOWING | FLAG_SCENE_TEMP(0x0c) | The vent room's west |
FLAG_EAST_VENT_BLOWING | FLAG_SCENE_TEMP(0x0d) | or east vent blows, its column of water rising out of its hole under its cover. |
FLAG_VENT_SOUND_PLAYING | FLAG_SCENE_TEMP(0x0e) | The vents' rush of steam is playing (SE_WAVE). |
FLAG_FOG_ROPE_TIED | FLAG_SCENE_TEMP(0x0f) | Lash has tied the |
FLAG_SOUTH_ROPE_TIED | FLAG_SCENE_TEMP(0x0f) | rope across to Fog, or the south rope of Poi's room. |
FLAG_NORTH_ROPE_TIED | FLAG_SCENE_TEMP(0x10) | The north rope of Poi's room is tied across. |
FLAG_PILLAR_BLOCKS_SHAFT | FLAG_SCENE_TEMP(0x11) | The lift room's pillar blocks the shaft, so stepping over it no longer sinks Felix into it. |
FLAG_CAVE_DOOR_OPEN | FLAG_SCENE_TEMP(0x12) | The door to the cave |
FLAG_TEMPLE_DOOR_OPEN | FLAG_SCENE_TEMP(0x12) | below Poi's statue, or the temple's door in the courtyard, is open. |
FLAG_KRADEN_SAW_THE_WALL | FLAG_SCENE_TEMP(0x30) | Kraden has pointed out the suspicious wall by the gate on this visit. |
FLAG_PILLAR_ON_WEST_VENT | FLAG_AREA_TEMP(0x00) | Where the vent |
FLAG_PILLAR_ON_EAST_VENT | FLAG_AREA_TEMP(0x01) | room's pillar stands, which also decides which of the lift room's lifts runs. |
FLAG_POT_PUSHED_WEST | FLAG_AREA_TEMP(0x02) | Where Move has |
FLAG_POT_PUSHED_EAST | FLAG_AREA_TEMP(0x03) | chucked the Chestbeaters' room's pot of boiling water. |
FLAG_POT_MOVED | FLAG_AREA_TEMP(0x04) | The pot is out of the way, and the floor no longer burns. |
Definition at line 296 of file kandorean_temple.c.
VENT_TICK
enum VENT_TICK
A vent's cycle, in ticks of its timer. Shut, it counts only while nothing
holds it shut; at VENT_BLOW it blows, walls off its cover's metatile and
lifts the cover on its column until VENT_RISE_END, higher when the pillar
holds the other vent down. The cover floats on the column until
VENT_FLOAT_END and on until its float comes round, then sinks from VENT_SINK;
once the column is flat the timer jumps to VENT_SHUT, which lowers everything
and frees the metatile, and the vent rests a random while before its timer
starts again. A leader riding the risen cover at VENT_CARRY_LEADER is carried
up to the room above.
| Enumerator | Value | Description |
|---|---|---|
VENT_BLOW | 300 | |
VENT_RISE_END | 316 | |
VENT_CARRY_LEADER | 400 | |
VENT_FLOAT_END | 600 | |
VENT_SINK | 1000 | |
VENT_SHUT | 3000 |
Definition at line 1172 of file kandorean_temple.c.
LIFT_TICK
enum LIFT_TICK
A lift's cycle, in ticks of its timer: at LIFT_RISE it starts up its column
from LIFT_SUNK_HEIGHT below the floor until it stands level with it, frees
its metatile, and its timer jumps to LIFT_RISEN. It floats on the column,
walls its metatile off again at LIFT_WALL_OFF, and once its float comes round
after LIFT_FLOAT_END it takes a leader standing on it down to the vent room,
or with no one on it sinks from LIFT_SINK.
| Enumerator | Value | Description |
|---|---|---|
LIFT_RISE | 300 | |
LIFT_RISEN | 2000 | |
LIFT_WALL_OFF | 2280 | |
LIFT_FLOAT_END | 2300 | |
LIFT_SINK | 2800 |
Definition at line 1439 of file kandorean_temple.c.
Functions in detail
scKandoreanTempleStartGate
void scKandoreanTempleStartGate(void)
Sets up the temple gate: the weeds over the hidden passage gone once Whirlwind has scattered them, the students meditating or, once Poi has been met, standing by with the metatiles that open the temple's door laid before it, the door open if it was opened this visit, and Kraden.
References fdActorDisableById(), fdActorSetPosAndFacing(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatileTilesIndicesRect(), MainRoutineStateWork, scKandoreanTempleStartMeditating(), syGameFlagClear() and syGameFlagGet().
Referenced by scInit().
Definition at lines 379 and 2975 of file kandorean_temple.c.
scKandoreanTempleArriveOnEastLift
void scKandoreanTempleArriveOnEastLift(void)
DEFINE_KANDOREAN_TEMPLE_RISE(scKandoreanTempleArriveOnEastLift, ACTOR_EAST_LIFT, ACTOR_EAST_LIFT_COLUMN, EAST_LIFT_X, EAST_LIFT_Z - 4, EAST_LIFT_Z, EAST_LIFT_METATILE_X, EAST_LIFT_METATILE_Z, KandoreanTempleEastTimer)
Arriving on the east lift, metatile (37, 14), from the vent room below: Felix rises into the room on it as its column grows beneath.
Referenced by scKandoreanTempleStartLiftRoom().
Definition at lines 419 and 2845 of file kandorean_temple.c.
scKandoreanTempleTestTheStudents
void scKandoreanTempleTestTheStudents(void)
Poi tests his three students in turn: the first two fall, and the third levitates and passes.
References fdActorConfigureSpriteColor(), fdActorFaceDirection(), fdActorGetById(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorSetAnimationById(), fdActorSetAttachedEffect(), fdActorSetSpriteColor(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorShowEmoteById(), fdActorWalkToAndWait(), fdActorWalkToAndWaitById(), fdCameraGetActor(), fdCameraWaitForArrival(), fdEffectSetAttached(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageAndWait(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), MainRoutineStateWork, scKandoreanTempleDrift(), scKandoreanTempleMatchStudentsToLeader(), scKandoreanTempleOpenTheCaveDoor(), scKandoreanTempleTurnSprite(), Sint32, syCloseEvent(), syGameFlagSet(), sySetEvent(), sySoundPlay() and sySynch().
Referenced by scKandoreanTempleStartPoisRoom().
Definition at lines 421 and 3167 of file kandorean_temple.c.
scKandoreanTempleFindTheHiddenPassage
void scKandoreanTempleFindTheHiddenPassage(void)
Whirlwind has scattered the weeds: the passage behind them opens and Kraden follows the leader in.
References fdActorFaceDirection(), fdActorGetById(), fdActorLaunchFromLeader(), fdActorSetAnimationAndWait(), fdActorSetAnimationById(), fdActorSetDestinationById(), fdActorWaitForMoveById(), fdActorWalkToAndWaitById(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), fdScriptWait(), Sint32 and syGameFlagSet().
Referenced by KandoreanTempleGateCues.
Definition at lines 426 and 2052 of file kandorean_temple.c.
scKandoreanTempleFightChestbeaters
void scKandoreanTempleFightChestbeaters(void)
Felix walks up to the Chestbeaters at the north end of their room, metatiles (19, 12) to (21, 12): the three leap down at him with a cry and their battle starts.
References fdActorGetById(), fdActorMoveToAndWaitById(), fdActorRunRepeatedMotion(), fdActorSetAnimationById(), fdActorSetDestinationById(), fdActorWalkToAndWaitById(), fdCameraWaitForArrival(), fdRequestBattleFromEncounterTable(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetAfterBattleDestination(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork and sySoundPlay().
Referenced by KandoreanTempleChestbeaterRoomCues.
Definition at lines 427 and 2184 of file kandorean_temple.c.
scKandoreanTempleArriveOnWestLift
void scKandoreanTempleArriveOnWestLift(void)
DEFINE_KANDOREAN_TEMPLE_RISE(scKandoreanTempleArriveOnWestLift, ACTOR_WEST_LIFT, ACTOR_WEST_LIFT_COLUMN, WEST_LIFT_X, WEST_LIFT_Z - 4, WEST_LIFT_Z, WEST_LIFT_METATILE_X, WEST_LIFT_METATILE_Z, KandoreanTempleWestTimer)
Arriving on the west lift, metatile (27, 12), from the vent room below: Felix
rises into the room on it as its column grows beneath, and the lift's cycle
goes on from LIFT_RISEN.
Referenced by scKandoreanTempleStartLiftRoom().
Definition at lines 436 and 2833 of file kandorean_temple.c.
scKandoreanTempleLeaveSplashRings
void scKandoreanTempleLeaveSplashRings(ACTOR *actor, Sint32 step)
Counts one step of an actor through the water, more when it moves fast, and spreads a ring on the water at its feet once enough are counted.
References KandoreanTempleSplashRingCounter, scKandoreanTempleSpawnSplashRing() and Sint32.
Referenced by scKandoreanTempleStartSplashRings().
Definition at lines 437 and 685 of file kandorean_temple.c.
scKandoreanTempleSpawnSplashRing
void scKandoreanTempleSpawnSplashRing(ACTOR *actor)
Spreads a translucent ring on the water at an actor's feet, which goes after 24 ticks.
References fdActorStartScript(), fdSpriteStartAnimation(), KandoreanTempleSplashRingScript and scFieldActorCreate().
Referenced by scKandoreanTempleLeaveSplashRings().
Definition at lines 438 and 706 of file kandorean_temple.c.
scKandoreanTemplePushSouth
void scKandoreanTemplePushSouth(ACTOR *actor, FIXED dz)
Moves an actor and the camera south by dz, unless the map stops it eight pixels ahead or ahead to either side.
References fdMapGridCheckCollision().
Referenced by scKandoreanTemplePushAlongTheCurrent() and scKandoreanTempleWatchVents().
Definition at lines 439 and 755 of file kandorean_temple.c.
scKandoreanTempleFightFog
void scKandoreanTempleFightFog(void)
Talking to Fog starts its battle.
References fdRequestDjinnBattle().
Referenced by KandoreanTempleFogRoomCues.
Definition at line 452 of file kandorean_temple.c.
scKandoreanTempleCountDownSteam
Uint32 scKandoreanTempleCountDownSteam(ACTOR *actor)
Unused: a cloud of steam's script call, from the steam script's unreached tail; counts down its life and reports whether any is left.
Referenced by KandoreanTempleSteamScript.
Definition at line 459 of file kandorean_temple.c.
scKandoreanTempleMeditate
Sint32 scKandoreanTempleMeditate(ACTOR *actor)
A meditating student's update: now and then, every four to eight seconds, an ellipsis over his head.
References fdActorShowEmoteById() and Sint32.
Referenced by KandoreanTempleMeditateScript.
Definition at line 468 of file kandorean_temple.c.
scKandoreanTempleSquashAndStretch
Sint32 scKandoreanTempleSquashAndStretch(ACTOR *actor)
An actor script call, each tick: every 60 to 149 ticks the actor squashes and stretches back to its own shape over six ticks.
References Sint32 and syRandom().
Referenced by KandoreanTempleSquashAndStretchScript.
Definition at line 485 of file kandorean_temple.c.
scKandoreanTemplePlaceFlame
Sint32 scKandoreanTemplePlaceFlame(ACTOR *actor)
Sets up a torch's flame in Poi's room: still in the air, at four fifths of its size, with no shadow, never a talk or Psynergy target.
References fdActorSetSpriteFlags() and Sint32.
Referenced by KandoreanTempleFlameScript, KandoreanTempleHighFlameScript and KandoreanTempleLowFlameScript.
Definition at line 513 of file kandorean_temple.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 523 of file kandorean_temple.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room.
References KandoreanTempleChestbeaterRoomRegions, KandoreanTempleStreamRoomRegions, MainRoutineStateWork and Sint32.
Definition at line 530 of file kandorean_temple.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 541 of file kandorean_temple.c.
scGetActorPlacements
void *scGetActorPlacements(void)
The current room's actors. Once the party has met Poi, the gate's three students, no longer meditating, turn to the party when spoken to; in Poi's room the first and third tested students turn too, and the second stands elsewhere.
References KandoreanTempleChestbeaterRoomPlacements, KandoreanTempleFogRoomPlacements, KandoreanTempleGatePlacements, KandoreanTempleLiftRoomPlacements, KandoreanTemplePlacements, KandoreanTemplePoisRoomPlacements, KandoreanTempleVentRoomPlacements, MainRoutineStateWork, Sint32 and syGameFlagGet().
Definition at line 550 of file kandorean_temple.c.
scKandoreanTempleKradenSuspectsTheWall
void scKandoreanTempleKradenSuspectsTheWall(void)
Felix walks past the courtyard's west wall, metatiles (5, 15) and (6, 15), before the hidden passage is found: Kraden walks up beside him and says the wall looks rather suspicious, and the two nod.
References fdActorFaceDirection(), fdActorFaceDirectionAndRefreshById(), fdActorGetById(), fdActorSetAnimationAndWait(), fdActorSetAnimationById(), fdActorSetDestinationById(), fdActorWaitForMoveById(), fdActorWalkToAndWaitById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), fdScriptWait(), scFieldActorLaunchFromLeader(), Sint32, syGameFlagGet() and syGameFlagSet().
Referenced by KandoreanTempleGateCues.
Definition at line 603 of file kandorean_temple.c.
scGetCues
void *scGetCues(void)
The current room's cues.
References KandoreanTempleChestbeaterRoomCues, KandoreanTempleCues, KandoreanTempleCurrentRoomCues, KandoreanTempleFogRoomCues, KandoreanTempleGateCues, KandoreanTempleLiftRoomCues, KandoreanTempleMimicRoomCues, KandoreanTemplePoisRoomCues, KandoreanTempleStreamRoomCues, KandoreanTempleVentRoomCues, MainRoutineStateWork and Sint32.
Definition at line 639 of file kandorean_temple.c.
scKandoreanTempleStartSplashRings
void scKandoreanTempleStartSplashRings(void)
Unused: takes the leader's shadow away and counts one step of its wading
(scKandoreanTempleLeaveSplashRings).
References fdActorGetById(), fdActorSetSpriteFlags(), MainRoutineStateWork and scKandoreanTempleLeaveSplashRings().
Definition at line 674 of file kandorean_temple.c.
scKandoreanTemplePushAlongTheCurrent
void scKandoreanTemplePushAlongTheCurrent(void)
Felix wades into the sheet of water that pours south from the waterfall in the room of the current, any of its metatiles: the current pushes him south, splashing at his feet, unless he runs against it.
References fdActorGetById(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdActorStartScript(), KandoreanTempleSplashScript, MainRoutineStateWork, scFieldActorCreate(), scKandoreanTemplePushSouth() and TickCount.
Referenced by KandoreanTempleCurrentRoomCues.
Definition at line 732 of file kandorean_temple.c.
scKandoreanTempleIsOverActor
Bool scKandoreanTempleIsOverActor(ACTOR *a, ACTOR *b)
Whether actor a is within twelve pixels across and eight deep of actor b.
Referenced by scKandoreanTempleUpdateStreamSteam() and scKandoreanTempleUpdateVentSteam().
Definition at line 784 of file kandorean_temple.c.
scKandoreanTempleUpdateVentSteam
void scKandoreanTempleUpdateVentSteam(ACTOR *actor)
A cloud of the vents' steam: drifts and slows, grows and turns, and rises instead of drifting on where the leader or the pillar stands over it. A cloud keeps its drift across in its bounce and south in its sceneWord, how fast it grows across and up in its speedLimit and acceleration, and its spin in its timer.
References fdActorGetById(), MainRoutineStateWork, scKandoreanTempleIsOverActor() and Sint32.
Referenced by scKandoreanTempleBlowSteam().
Definition at line 801 of file kandorean_temple.c.
scKandoreanTempleInitSteam
void scKandoreanTempleInitSteam(ACTOR *actor, Sint32 priority)
Sets up a cloud of steam on the given sprite priority: translucent, no shadow, its script.
References fdActorSelectAnimation(), fdActorSetSpriteColor(), fdActorSetSpriteFlags(), fdActorStartScript(), KandoreanTempleSteamScript and Sint32.
Referenced by scKandoreanTempleBlowSteam() and scKandoreanTempleBlowStreamSteam().
Definition at line 842 of file kandorean_temple.c.
scKandoreanTempleBlowSteam
void scKandoreanTempleBlowSteam(Sint32 *position, Sint32 strength)
Blows a cloud of steam from a vent at position, drifting south at the given strength.
References fdActorSetBlendMode(), scFieldActorCreate(), scKandoreanTempleInitSteam(), scKandoreanTempleUpdateVentSteam(), Sint32, syCos() and syRandom().
Definition at line 862 of file kandorean_temple.c.
scKandoreanTempleUpdateStreamSteam
void scKandoreanTempleUpdateStreamSteam(ACTOR *actor)
A cloud of the lift room's stream of steam: as the vents' clouds, held down by the leader or the lift room's pillar.
References fdActorGetById(), MainRoutineStateWork, scKandoreanTempleIsOverActor() and Sint32.
Referenced by scKandoreanTempleBlowStreamSteam().
Definition at line 885 of file kandorean_temple.c.
scKandoreanTempleBlowStreamSteam
void scKandoreanTempleBlowStreamSteam(void)
Blows a cloud of steam from the lift room's stream.
References fdActorSetBlendMode(), scFieldActorCreate(), scKandoreanTempleInitSteam(), scKandoreanTempleUpdateStreamSteam(), Sint32, syCos() and syRandom().
Referenced by scKandoreanTempleBlowStream().
Definition at line 924 of file kandorean_temple.c.
scKandoreanTempleRestoreLeaderShadow
void scKandoreanTempleRestoreLeaderShadow(void)
Unused: gives the leader its shadow back.
References fdActorGetById(), fdActorSetSpriteFlags() and MainRoutineStateWork.
Definition at line 946 of file kandorean_temple.c.
scKandoreanTemplePrepareLift
void scKandoreanTemplePrepareLift(Sint32 id)
Sets a lift or a vent's cover at rest: flat on the floor in its lowered animation, drawn underfoot behind the scenery, and disabled.
References fdActorDisableById(), fdActorGetById(), fdActorSetAnimationById(), fdActorSetSpritePriority() and Sint32.
Referenced by scKandoreanTempleStartLiftRoom() and scKandoreanTempleStartVentRoom().
Definition at line 954 of file kandorean_temple.c.
scKandoreanTemplePrepareColumn
void scKandoreanTemplePrepareColumn(Sint32 id)
Sets a lift's column or a piece of one at rest, disabled.
References fdActorDisableById(), fdActorGetById(), fdActorSetSpritePriority() and Sint32.
Referenced by scKandoreanTempleStartLiftRoom() and scKandoreanTempleStartVentRoom().
Definition at line 966 of file kandorean_temple.c.
scKandoreanTempleCastLash
void scKandoreanTempleCastLash(void)
Poi casts Lash on the north rope's east post.
References fdBattleEffectStopMainActor(), fdPsynergyEnd(), fdPsynergyLoadResources(), fdPsynergyRunHandler(), fdPsynergySetupActorPair() and fdPsynergyStartCast().
Referenced by scKandoreanTempleMeetPoi().
Definition at line 974 of file kandorean_temple.c.
KandoreanTempleBlowWestVent
DEFINE_KANDOREAN_TEMPLE_VENT(KandoreanTempleBlowWestVent, KandoreanTempleWestVentBlowing, 9, toFIXED(296), toFIXED(176), toFIXED(2))
The west vent's event: while it blows, a cloud of steam every ninth tick.
Referenced by scKandoreanTempleStartVentRoom().
Definition at line 998 of file kandorean_temple.c.
KandoreanTempleBlowEastVent
DEFINE_KANDOREAN_TEMPLE_VENT(KandoreanTempleBlowEastVent, KandoreanTempleEastVentBlowing, 5, toFIXED(344), toFIXED(160), toFIXED(4))
The east vent's event: while it blows, a stronger cloud every fifth tick.
Referenced by scKandoreanTempleStartVentRoom().
Definition at line 1006 of file kandorean_temple.c.
scKandoreanTempleBlowStream
void scKandoreanTempleBlowStream(void)
The lift room's event: a cloud of steam from the stream every fifth tick.
References scKandoreanTempleBlowStreamSteam() and TickCount.
Referenced by scKandoreanTempleStartLiftRoom().
Definition at line 1014 of file kandorean_temple.c.
scKandoreanTempleLowerWestColumn
void scKandoreanTempleLowerWestColumn(Sint32 id)
Lowers a piece of the west column flat under its cover.
References fdActorGetById(), scFieldActorSetPosAndResetMotion() and Sint32.
Definition at line 1021 of file kandorean_temple.c.
scKandoreanTempleLowerEastColumn
void scKandoreanTempleLowerEastColumn(Sint32 id)
Lowers a piece of the east column flat under its cover.
References fdActorGetById(), scFieldActorSetPosAndResetMotion() and Sint32.
Definition at line 1029 of file kandorean_temple.c.
scKandoreanTempleGrowColumn
void scKandoreanTempleGrowColumn(Sint32 id, FIXED dy, Sint32 scale)
Grows a column piece by scale and raises it by dy.
References fdActorGetById() and Sint32.
Definition at line 1037 of file kandorean_temple.c.
scKandoreanTempleShrinkColumn
void scKandoreanTempleShrinkColumn(Sint32 id, FIXED dy, Sint32 scale)
Shrinks a column piece by scale and lowers it by dy.
References fdActorGetById() and Sint32.
Referenced by scKandoreanTempleRideEastLiftDown() and scKandoreanTempleRideWestLiftDown().
Definition at line 1047 of file kandorean_temple.c.
scKandoreanTempleIsWestVentBlocked
Bool scKandoreanTempleIsWestVentBlocked(void)
Whether the west vent stays shut: while Move carries the pillar off a cover, or while the pillar weighs the west cover down.
References syGameFlagGet().
Definition at line 1058 of file kandorean_temple.c.
scKandoreanTempleIsEastVentBlocked
Bool scKandoreanTempleIsEastVentBlocked(void)
Whether the east vent stays shut: while Move carries the pillar off a cover, or while the pillar weighs the east cover down.
References syGameFlagGet().
Definition at line 1068 of file kandorean_temple.c.
KandoreanTempleStartWestVent
DEFINE_KANDOREAN_TEMPLE_START_VENT(KandoreanTempleStartWestVent, ACTOR_WEST_VENT_COVER, WEST_COVER_X, WEST_COVER_Z, ACTOR_WEST_COLUMN_TOP, ACTOR_WEST_COLUMN_UPPER_PIECE, ACTOR_WEST_COLUMN_MIDDLE_PIECE, ACTOR_WEST_COLUMN_LOWER_PIECE, ACTOR_WEST_COLUMN_FOOT, FLAG_ON_WEST_LIFT, scKandoreanTempleLowerWestColumn, FLAG_PILLAR_ON_EAST_VENT, KandoreanTempleWestVentBlowing, FLAG_WEST_VENT_BLOWING)
Definition at line 1133 of file kandorean_temple.c.
KandoreanTempleStartEastVent
DEFINE_KANDOREAN_TEMPLE_START_VENT(KandoreanTempleStartEastVent, ACTOR_EAST_VENT_COVER, EAST_COVER_X, EAST_COVER_Z, ACTOR_EAST_COLUMN_TOP, ACTOR_EAST_COLUMN_UPPER_PIECE, ACTOR_EAST_COLUMN_MIDDLE_PIECE, ACTOR_EAST_COLUMN_LOWER_PIECE, ACTOR_EAST_COLUMN_FOOT, FLAG_ON_EAST_LIFT, scKandoreanTempleLowerEastColumn, FLAG_PILLAR_ON_WEST_VENT, KandoreanTempleEastVentBlowing, FLAG_EAST_VENT_BLOWING)
Definition at line 1148 of file kandorean_temple.c.
KandoreanTempleRunWestVent
DEFINE_KANDOREAN_TEMPLE_RUN_VENT(KandoreanTempleRunWestVent, KandoreanTempleWestTimer, KandoreanTempleWestFloatPhase, KandoreanTempleWestVentBlowing, FLAG_WEST_VENT_BLOWING, scKandoreanTempleIsWestVentBlocked, KandoreanTempleStartWestVent, WEST_COVER_METATILE_X, WEST_COVER_METATILE_Z, WEST_COVER_CARRY_METATILE, ACTOR_WEST_VENT_COVER, WEST_COVER_X, WEST_COVER_Z, ACTOR_WEST_COLUMN_TOP, ACTOR_WEST_COLUMN_UPPER_PIECE, ACTOR_WEST_COLUMN_MIDDLE_PIECE, ACTOR_WEST_COLUMN_LOWER_PIECE, ACTOR_WEST_COLUMN_FOOT, FLAG_ON_WEST_LIFT, FLAG_PILLAR_ON_EAST_VENT)
The west vent's event.
Referenced by scKandoreanTempleStartVentRoom().
Definition at line 1390 of file kandorean_temple.c.
KandoreanTempleRunEastVent
DEFINE_KANDOREAN_TEMPLE_RUN_VENT(KandoreanTempleRunEastVent, KandoreanTempleEastTimer, KandoreanTempleEastFloatPhase, KandoreanTempleEastVentBlowing, FLAG_EAST_VENT_BLOWING, scKandoreanTempleIsEastVentBlocked, KandoreanTempleStartEastVent, EAST_COVER_METATILE_X, EAST_COVER_METATILE_Z, EAST_COVER_CARRY_METATILE, ACTOR_EAST_VENT_COVER, EAST_COVER_X, EAST_COVER_Z, ACTOR_EAST_COLUMN_TOP, ACTOR_EAST_COLUMN_UPPER_PIECE, ACTOR_EAST_COLUMN_MIDDLE_PIECE, ACTOR_EAST_COLUMN_LOWER_PIECE, ACTOR_EAST_COLUMN_FOOT, FLAG_ON_EAST_LIFT, FLAG_PILLAR_ON_WEST_VENT)
The east vent's event.
Referenced by scKandoreanTempleStartVentRoom().
Definition at line 1412 of file kandorean_temple.c.
KandoreanTempleRunWestLift
DEFINE_KANDOREAN_TEMPLE_RUN_LIFT(KandoreanTempleRunWestLift, ACTOR_WEST_LIFT, ACTOR_WEST_LIFT_COLUMN, KandoreanTempleWestTimer, KandoreanTempleWestFloatPhase, WEST_LIFT_X, WEST_LIFT_Z, WEST_LIFT_METATILE_X, WEST_LIFT_METATILE_Z, WEST_LIFT_CARRY_METATILE, FLAG_ON_WEST_LIFT)
The lift room's west lift, the top of the west vent's column.
Referenced by scKandoreanTempleStartLiftRoom().
Definition at line 1544 of file kandorean_temple.c.
KandoreanTempleRunEastLift
DEFINE_KANDOREAN_TEMPLE_RUN_LIFT(KandoreanTempleRunEastLift, ACTOR_EAST_LIFT, ACTOR_EAST_LIFT_COLUMN, KandoreanTempleEastTimer, KandoreanTempleEastFloatPhase, EAST_LIFT_X, EAST_LIFT_Z, EAST_LIFT_METATILE_X, EAST_LIFT_METATILE_Z, EAST_LIFT_CARRY_METATILE, FLAG_ON_EAST_LIFT)
The lift room's east lift, the top of the east vent's column.
Referenced by scKandoreanTempleStartLiftRoom().
Definition at line 1557 of file kandorean_temple.c.
scKandoreanTempleWatchVents
void scKandoreanTempleWatchVents(void)
The vent room's event: notes whether the leader stands on a cover (where it cannot save), lets a blowing vent's steam push it south, and starts or stops the vents' sound.
References fdActorGetById(), fdQueueMusic(), fdScriptClearFlag(), fdScriptGetFlag(), fdScriptSetFlag(), KandoreanTempleEastVentBlowing, KandoreanTempleWestVentBlowing, MainRoutineStateWork, scKandoreanTemplePushSouth() and Sint32.
Referenced by scKandoreanTempleStartVentRoom().
Definition at line 1572 of file kandorean_temple.c.
scKandoreanTempleWatchLifts
void scKandoreanTempleWatchLifts(void)
The lift room's event: a leader stepping onto a lift rides it, and cannot save while it does. It looks only while the leader is on the floor around the lifts, 400 to 640 pixels across and 180 to 280 down.
References fdActorGetById(), fdActorSetAnimationById(), fdActorSetSpriteFlags(), MainRoutineStateWork, Sint32, syGameFlagClear() and syGameFlagSet().
Referenced by scKandoreanTempleStartLiftRoom().
Definition at line 1635 of file kandorean_temple.c.
scKandoreanTempleMatchStudentsToLeader
void scKandoreanTempleMatchStudentsToLeader(void)
Poi's room's event: draws the three tested students at the leader's sprite priority, in front of or behind the room's scenery as the leader is.
References fdActorGetById(), fdActorSetSpritePriority(), MainRoutineStateWork and Sint32.
Referenced by scKandoreanTempleStartPoisRoom() and scKandoreanTempleTestTheStudents().
Definition at line 1689 of file kandorean_temple.c.
scKandoreanTempleDropOffLowMetatiles
void scKandoreanTempleDropOffLowMetatiles(void)
The vent room's event: a leader standing over a metatile the map marks low drops to the ground.
References fdActorGetById(), fdActorGetMetatileIndex() and MainRoutineStateWork.
Referenced by scKandoreanTempleStartVentRoom().
Definition at line 1701 of file kandorean_temple.c.
scKandoreanTempleReadPoisSign
void scKandoreanTempleReadPoisSign(void)
Reads the sign by the hot floor.
References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and Sint32.
Referenced by KandoreanTempleChestbeaterRoomCues.
Definition at line 1716 of file kandorean_temple.c.
scKandoreanTempleTryTheLockedDoor
void scKandoreanTempleTryTheLockedDoor(void)
Felix checks the temple's door in the middle of the courtyard, metatiles (17, 25) and (18, 25), before it is open: "The door is tightly locked."
References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and Sint32.
Referenced by KandoreanTempleGateCues.
Definition at line 1727 of file kandorean_temple.c.
scKandoreanTempleAskAboutPoi
void scKandoreanTempleAskAboutPoi(void)
The student by the gate asks whether the party has come to see Master Poi.
References fdActorFaceActorById(), fdActorGetById(), fdActorSetMovementTypeById(), fdActorStop(), fdScriptAskYesNoAndShowResponse(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptStart(), KandoreanTempleLookAroundScript, MainRoutineStateWork, Sint32, syGameFlagSet() and sySynch().
Referenced by KandoreanTempleGateCues and scKandoreanTempleReadTheGateStudent().
Definition at line 1737 of file kandorean_temple.c.
scKandoreanTempleTellOfTheMeditation
void scKandoreanTempleTellOfTheMeditation(void)
The student on guard tells the party that none may enter during the meditation.
References fdActorFaceActorById(), fdActorGetById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, Sint32, syGameFlagSet() and sySynch().
Referenced by KandoreanTempleGateCues and scKandoreanTempleReadTheGuard().
Definition at line 1760 of file kandorean_temple.c.
scKandoreanTempleAskWhoPassedTheTest
void scKandoreanTempleAskWhoPassedTheTest(void)
The first tested student asks whether the party passed the test.
References fdScriptAskYesNoAndShowResponse(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptStart() and Sint32.
Referenced by KandoreanTemplePoisRoomCues.
Definition at line 1777 of file kandorean_temple.c.
scKandoreanTempleReadTheGateStudent
void scKandoreanTempleReadTheGateStudent(void)
Mind Read on the student by the gate startles him into asking about Poi.
References fdActorShowEmoteById() and scKandoreanTempleAskAboutPoi().
Referenced by KandoreanTempleGateCues.
Definition at line 1788 of file kandorean_temple.c.
scKandoreanTempleReadTheGuard
void scKandoreanTempleReadTheGuard(void)
Mind Read on the student on guard startles him into telling of the meditation.
References fdActorShowEmoteById() and scKandoreanTempleTellOfTheMeditation().
Referenced by KandoreanTempleGateCues.
Definition at line 1797 of file kandorean_temple.c.
scKandoreanTempleClimbDownTheLadder
void scKandoreanTempleClimbDownTheLadder(void)
Felix pushes towards the opening in the floor of Poi's hall, metatile (10, 5), from beside or below it: he climbs down the ladder into the Chestbeaters' room.
References fdActorFaceDirectionAndRefreshById(), fdActorGetById(), fdActorSetAnimationById(), fdActorSetSpriteFlags(), fdActorWaitForMove(), fdActorWalkToAndWaitById(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, PerWork, Sint32, syImportScriptSetExitRequest() and sySoundPlay().
Referenced by KandoreanTemplePoisRoomCues.
Definition at line 1807 of file kandorean_temple.c.
scKandoreanTempleOpenTheCaveDoor
void scKandoreanTempleOpenTheCaveDoor(void)
Opens the door to the cave below Poi's statue.
References fdMapGridCopyMetatileTilesIndicesRect(), syGameFlagSet() and sySynch().
Referenced by scKandoreanTempleEnterTheCave(), scKandoreanTempleStartPoisRoom() and scKandoreanTempleTestTheStudents().
Definition at line 1847 of file kandorean_temple.c.
scKandoreanTempleEnterTheCave
void scKandoreanTempleEnterTheCave(void)
Felix walks north into the door below Poi's statue, metatiles (24, 40) and (25, 40): it opens with a thump if it is shut, and he goes through into the caverns of the trials.
References fdActorFaceDirectionAndRefreshById(), fdActorSetAnimationById(), fdActorSetSpritePriority(), fdActorWalkToAndWait(), fdActorWalkToById(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scKandoreanTempleOpenTheCaveDoor(), syGameFlagGet(), syImportScriptSetExitRequest() and sySoundPlay().
Referenced by KandoreanTemplePoisRoomCues.
Definition at line 1859 of file kandorean_temple.c.
scKandoreanTempleClimbDownTheWell
void scKandoreanTempleClimbDownTheWell(void)
Felix walks south into the stone well in the courtyard's east side, metatiles (25, 17) to (26, 18): he climbs down into it, to the passageway at its bottom that examining the well tells of, and comes out in the east end of the cave of shallow water.
References fdActorFaceDirectionById(), fdActorGetById(), fdActorSetAnimationById(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorWalkToAndWaitById(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, syImportScriptSetExitRequest() and sySynch().
Referenced by KandoreanTempleGateCues.
Definition at line 1886 of file kandorean_temple.c.
scKandoreanTempleStartMovingBlock
void scKandoreanTempleStartMovingBlock(void)
Move takes hold of the pillar in the lift room, or Felix pushes it.
References fdActorLiftTargetBlock() and KandoreanTempleLiftRoomPillarActors.
Referenced by KandoreanTempleLiftRoomCues.
Definition at line 1921 of file kandorean_temple.c.
scKandoreanTempleFinishMovingBlock
void scKandoreanTempleFinishMovingBlock(void)
The pillar in the lift room comes to rest; pushed east as far as column 43, over the shaft at metatiles (43, 10) to (43, 13), it blocks the shaft, and Felix can walk across without sinking into it. Once it has left column 39, where it first stands at metatile (39, 10), that metatile takes back the attributes kept for it at (39, 0).
References fdActorGetById(), fdActorPlaceMovedBlock(), fdMapGridCopyMetatileAttributes(), Sint32, syGameFlagClear() and syGameFlagSet().
Referenced by KandoreanTempleLiftRoomCues.
Definition at line 1931 of file kandorean_temple.c.
scKandoreanTempleStartMovingPillar
void scKandoreanTempleStartMovingPillar(void)
Move takes hold of the pillar in the vent room, or Felix pushes it; lifted from anywhere but the floor between the vents, columns 15 to 21, it was on a vent's cover, and that vent is free to blow again.
References fdActorGetById(), fdActorLiftTargetBlock(), KandoreanTemplePillarOrPotActors and syGameFlagSet().
Referenced by KandoreanTempleVentRoomCues.
Definition at line 1947 of file kandorean_temple.c.
scKandoreanTempleFinishMovingPillar
void scKandoreanTempleFinishMovingPillar(void)
The pillar in the vent room comes to rest. On the west vent's round cover, metatile (13, 13), or the east one's, metatile (23, 15), it weighs that vent down, and the other vent's column rises higher, up to the lift room.
References fdActorGetById(), fdActorPlaceMovedBlock(), Sint32, syGameFlagClear() and syGameFlagSet().
Referenced by KandoreanTempleVentRoomCues.
Definition at line 1960 of file kandorean_temple.c.
scKandoreanTempleStartMovingPot
void scKandoreanTempleStartMovingPot(void)
Move takes hold of the pot boiling over the hot floor in the Chestbeaters' room.
References fdActorLiftTargetBlock(), KandoreanTemplePillarOrPotActors and syGameFlagClear().
Referenced by KandoreanTempleChestbeaterRoomCues.
Definition at line 1981 of file kandorean_temple.c.
scKandoreanTempleFinishMovingPot
void scKandoreanTempleFinishMovingPot(void)
The pot of boiling water, chucked one metatile west or east by Move, lands out of the way, and the floor round where it stood, metatiles (19, 28) to (21, 30), stops burning.
References fdActorGetById(), fdActorPlaceMovedBlock(), fdMapCopyMetatileAttributeRect(), fdMapGridCopyMetatileAttributes(), Sint32 and syGameFlagSet().
Referenced by KandoreanTempleChestbeaterRoomCues.
Definition at line 1991 of file kandorean_temple.c.
scKandoreanTempleTouchTheHotFloor
void scKandoreanTempleTouchTheHotFloor(void)
Felix walks onto the hot floor under the pot of boiling water, from the west, south or east of it: he jumps back with a start, his sprite flushed red.
References fdActorGetById(), fdActorSetSpriteColor(), fdActorShowEmoteById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, sySoundPlay() and sySynch().
Referenced by KandoreanTempleChestbeaterRoomCues.
Definition at line 2012 of file kandorean_temple.c.
scKandoreanTempleOpenTheTempleDoor
void scKandoreanTempleOpenTheTempleDoor(void)
Once Felix has met Poi, the temple's wooden door in the middle of the courtyard swings open with a thump as he walks up to it, from the courtyard (metatile (17, 26)) or from inside (metatile (17, 24)). Its metatiles, (17, 25) and (18, 25), stop answering "The door is tightly locked." and let him through.
References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatileTilesIndicesRect(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), syGameFlagSet(), sySoundPlay() and sySynch().
Referenced by KandoreanTempleGateCues.
Definition at line 2038 of file kandorean_temple.c.
scKandoreanTempleReceiveLash
void scKandoreanTempleReceiveLash(void)
Examining the Lash Pebble on Poi's table: Poi gives the party Lash, tells how to use it and crosses the north rope back to the upper hall.
References fdActorFaceActor(), fdActorFaceDirectionById(), fdActorGetById(), fdActorJump(), fdActorMoveToAndWait(), fdActorRelease(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorWaitForMoveById(), fdActorWalkToAndWait(), fdActorWatchAndSetScript(), fdCameraGetActor(), fdItemDisplayShowPicture(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), gmPartyGiveItem(), MainRoutineStateWork and Sint32.
Referenced by KandoreanTemplePoisRoomCues.
Definition at line 2086 of file kandorean_temple.c.
scKandoreanTempleStepBehindThePost
void scKandoreanTempleStepBehindThePost(void)
Felix steps behind a post of the rope across to Fog: he is drawn behind the post while he is there.
References fdActorGetById(), fdActorSetSpritePriority() and MainRoutineStateWork.
Referenced by KandoreanTempleFogRoomCues.
Definition at line 2164 of file kandorean_temple.c.
scKandoreanTempleStepOutFromThePost
void scKandoreanTempleStepOutFromThePost(void)
Felix steps out from behind the rope's post: he is drawn in front of it again.
References fdActorGetById() and MainRoutineStateWork.
Referenced by KandoreanTempleFogRoomCues.
Definition at line 2173 of file kandorean_temple.c.
scKandoreanTempleCycloneFirstClump
void scKandoreanTempleCycloneFirstClump(void)
Felix casts Cyclone over one of the five clumps of weeds in the courtyard before the temple: leaves whirl up and the clump is gone. The first covers metatiles (13, 14) to (14, 15); the others one metatile each, (15, 16), (14, 18), (20, 18) and (27, 15).
References scFieldTileCopiesCopyTouchedMetatiles().
Referenced by KandoreanTempleGateCues.
Definition at line 2217 of file kandorean_temple.c.
scKandoreanTempleCycloneSecondClump
void scKandoreanTempleCycloneSecondClump(void)
References scFieldTileCopiesCopyTouchedMetatiles().
Referenced by KandoreanTempleGateCues.
Definition at line 2222 of file kandorean_temple.c.
scKandoreanTempleCycloneThirdClump
void scKandoreanTempleCycloneThirdClump(void)
References scFieldTileCopiesCopyTouchedMetatiles().
Referenced by KandoreanTempleGateCues.
Definition at line 2227 of file kandorean_temple.c.
scKandoreanTempleCycloneFourthClump
void scKandoreanTempleCycloneFourthClump(void)
References scFieldTileCopiesCopyTouchedMetatiles().
Referenced by KandoreanTempleGateCues.
Definition at line 2232 of file kandorean_temple.c.
scKandoreanTempleCycloneFifthClump
void scKandoreanTempleCycloneFifthClump(void)
References scFieldTileCopiesCopyTouchedMetatiles().
Referenced by KandoreanTempleGateCues.
Definition at line 2237 of file kandorean_temple.c.
scInit
Sint32 scInit(void)
Sets up the room being entered.
References MainRoutineStateWork, scKandoreanTempleStartChestbeaterRoom(), scKandoreanTempleStartCurrentRoom(), scKandoreanTempleStartFogRoom(), scKandoreanTempleStartGate(), scKandoreanTempleStartLiftRoom(), scKandoreanTempleStartMimicRoom(), scKandoreanTempleStartPoisRoom(), scKandoreanTempleStartStreamRoom(), scKandoreanTempleStartVentRoom() and Sint32.
Definition at line 2243 of file kandorean_temple.c.
scPrepareMap
Sint32 scPrepareMap(void)
References Sint32.
Definition at line 2271 of file kandorean_temple.c.
scKandoreanTempleStartLiftRoom
void scKandoreanTempleStartLiftRoom(void)
Sets up the lift room: its tightropes, the pillar, the stream of steam and the lifts, and the lift the leader arrives on.
References fdActorPlaceBlocks(), fdActorSetAnimationById(), fdEffectStartBlankOverlay(), fdQueueMusic(), fdTightropeInit(), fdTightropePlace(), KandoreanTempleEastFloatPhase, KandoreanTempleEastTimer, KandoreanTempleLiftRoomPillarActors, KandoreanTempleRunEastLift(), KandoreanTempleRunWestLift(), KandoreanTempleWestFloatPhase, KandoreanTempleWestTimer, MainRoutineStateWork, scKandoreanTempleArriveOnEastLift(), scKandoreanTempleArriveOnWestLift(), scKandoreanTempleBlowStream(), scKandoreanTemplePrepareColumn(), scKandoreanTemplePrepareLift(), scKandoreanTempleWatchLifts(), syGameFlagGet() and sySetEvent().
Referenced by scInit().
Definition at line 2278 of file kandorean_temple.c.
scKandoreanTempleStartMimicRoom
void scKandoreanTempleStartMimicRoom(void)
Sets up the Mimic's room. Outside the Japanese edition, coming into it from Poi's hall does not show the area's name again.
References fdEffectStartBlankOverlay(), MainRoutineStateWork and syGameFlagClear().
Referenced by scInit().
Definition at line 2324 of file kandorean_temple.c.
scKandoreanTempleStartChestbeaterRoom
void scKandoreanTempleStartChestbeaterRoom(void)
Sets up the Chestbeaters' room: the pot where Move left it, the sign, and the Chestbeaters gone once the ladder is lowered.
References fdActorDisableById(), fdActorGetById(), fdActorPlaceBlocks(), fdActorSetAnimationById(), fdEffectStartBlankOverlay(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatileTilesIndicesRect(), fdScriptGetFlag(), KandoreanTemplePillarOrPotActors, MainRoutineStateWork, scFieldActorSetPosAndResetMotion(), scKandoreanTempleLowerTheLadder(), Sint32, syGameFlagClear() and syGameFlagGet().
Referenced by scInit().
Definition at line 2336 of file kandorean_temple.c.
scKandoreanTempleStartVentRoom
void scKandoreanTempleStartVentRoom(void)
Sets up the vent room: the covers and columns at rest, the pillar where Move left it, the vents' steam and the events that run them, and the ride down or the fall the leader arrives by.
References fdActorGetById(), fdActorPlaceBlocks(), fdActorSetPosAndResetMotion(), fdActorSetSpritePriority(), fdEffectStartBlankOverlay(), KandoreanTempleBlowEastVent(), KandoreanTempleBlowWestVent(), KandoreanTempleEastFloatPhase, KandoreanTempleEastTimer, KandoreanTempleEastVentBlowing, KandoreanTemplePillarOrPotActors, KandoreanTempleRunEastVent(), KandoreanTempleRunWestVent(), KandoreanTempleWestFloatPhase, KandoreanTempleWestTimer, KandoreanTempleWestVentBlowing, MainRoutineStateWork, scFieldActorSetPosAndResetMotion(), scKandoreanTempleArriveOnEastVent(), scKandoreanTempleArriveOnWestVent(), scKandoreanTempleDropOffLowMetatiles(), scKandoreanTempleLandFromAbove(), scKandoreanTemplePrepareColumn(), scKandoreanTemplePrepareLift(), scKandoreanTempleWatchVents(), syGameFlagClear(), syGameFlagGet(), sySetEvent() and sySetTickEvent().
Referenced by scInit().
Definition at line 2407 of file kandorean_temple.c.
scKandoreanTempleLandFromAbove
void scKandoreanTempleLandFromAbove(void)
Felix drops into the vent room from the lift room's shaft above and lands in a puff of dust that shakes the screen.
References fdActorGetById(), fdActorSetAnimationById(), fdEffectAdvanceMotion(), fdEffectSetAttached(), fdMapGridCenterOnFollowedPoint(), fdMapGridWaitForShakeToSettle(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldEffectSpawn(), syCos(), sySin(), sySoundPlay() and sySynch().
Referenced by scKandoreanTempleStartVentRoom().
Definition at line 2493 of file kandorean_temple.c.
scKandoreanTempleArriveOnWestVent
DEFINE_KANDOREAN_TEMPLE_ARRIVE_ON_VENT(scKandoreanTempleArriveOnWestVent, ACTOR_WEST_VENT_COVER, WEST_COVER_X, WEST_COVER_Z, ACTOR_WEST_COLUMN_TOP, ACTOR_WEST_COLUMN_UPPER_PIECE, ACTOR_WEST_COLUMN_MIDDLE_PIECE, ACTOR_WEST_COLUMN_LOWER_PIECE, ACTOR_WEST_COLUMN_FOOT, syGameFlagSet, syGameFlagClear, KandoreanTempleStartWestVent, KandoreanTempleWestVentBlowing, FLAG_WEST_VENT_BLOWING)
Referenced by scKandoreanTempleStartVentRoom().
Definition at line 2660 of file kandorean_temple.c.
scKandoreanTempleArriveOnEastVent
DEFINE_KANDOREAN_TEMPLE_ARRIVE_ON_VENT(scKandoreanTempleArriveOnEastVent, ACTOR_EAST_VENT_COVER, EAST_COVER_X, EAST_COVER_Z, ACTOR_EAST_COLUMN_TOP, ACTOR_EAST_COLUMN_UPPER_PIECE, ACTOR_EAST_COLUMN_MIDDLE_PIECE, ACTOR_EAST_COLUMN_LOWER_PIECE, ACTOR_EAST_COLUMN_FOOT, syGameFlagClear, syGameFlagSet, KandoreanTempleStartEastVent, KandoreanTempleEastVentBlowing, FLAG_EAST_VENT_BLOWING)
Referenced by scKandoreanTempleStartVentRoom().
Definition at line 2675 of file kandorean_temple.c.
scKandoreanTempleLeaveBySteam
void scKandoreanTempleLeaveBySteam(void)
Felix rises out of the vent room on a vent's column, the screen closing in on him.
References fdActorGetById(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWaitTransitionTicks() and MainRoutineStateWork.
Referenced by scKandoreanTempleLeaveByEastVent() and scKandoreanTempleLeaveByWestVent().
Definition at line 2692 of file kandorean_temple.c.
scKandoreanTempleLeaveByWestVent
void scKandoreanTempleLeaveByWestVent(void)
Felix rides the west vent's round cover as its column lifts it, up through the ceiling to the west lift in the room above.
References scKandoreanTempleLeaveBySteam() and syImportScriptSetExitRequest().
Referenced by KandoreanTempleVentRoomCues.
Definition at line 2705 of file kandorean_temple.c.
scKandoreanTempleLeaveByEastVent
void scKandoreanTempleLeaveByEastVent(void)
Felix rides the east vent's round cover as its column lifts it, up through the ceiling to the east lift in the room above.
References scKandoreanTempleLeaveBySteam() and syImportScriptSetExitRequest().
Referenced by KandoreanTempleVentRoomCues.
Definition at line 2714 of file kandorean_temple.c.
scKandoreanTempleSinkIntoTheSteam
void scKandoreanTempleSinkIntoTheSteam(void)
Felix steps onto the lift room's shaft, metatiles (43, 10) to (43, 13), while the pillar does not block it: he slips back, throws up his arms and sinks out of sight, dropping into the vent room below.
References fdActorGetById(), fdActorSetAnimationById(), fdActorSetPosAndResetMotion(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdEffectSetAttached(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, syImportScriptSetExitRequest(), sySoundPlay() and sySynch().
Referenced by KandoreanTempleLiftRoomCues.
Definition at line 2724 of file kandorean_temple.c.
scKandoreanTempleRideWestLiftDown
void scKandoreanTempleRideWestLiftDown(void)
Felix steps onto the west lift in the lift room, metatile (27, 12), while it stands risen: it sinks out of sight with him, down its column to the west vent in the room below.
References fdActorGetById(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWaitTransitionTicks(), scKandoreanTempleShrinkColumn(), syImportScriptSetExitRequest() and sySynch().
Referenced by KandoreanTempleLiftRoomCues.
Definition at line 2858 of file kandorean_temple.c.
scKandoreanTempleRideEastLiftDown
void scKandoreanTempleRideEastLiftDown(void)
Felix steps onto the east lift in the lift room, metatile (37, 14), while it stands risen: it sinks out of sight with him, down its column to the east vent in the room below.
References fdActorGetById(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWaitTransitionTicks(), scKandoreanTempleShrinkColumn(), syImportScriptSetExitRequest() and sySynch().
Referenced by KandoreanTempleLiftRoomCues.
Definition at line 2883 of file kandorean_temple.c.
scKandoreanTempleStartStreamRoom
void scKandoreanTempleStartStreamRoom(void)
Sets up the cave of shallow water behind the weeds by the gate, where the party wades.
References fdEffectStartBlankOverlay(), KandoreanTempleSplashRingCounter, MainRoutineStateWork and syGameFlagClear().
Referenced by scInit().
Definition at line 2907 of file kandorean_temple.c.
scKandoreanTempleStartCurrentRoom
void scKandoreanTempleStartCurrentRoom(void)
Sets up the room of the current, with the rush of its water.
References fdEffectStartBlankOverlay(), fdQueueMusic() and KandoreanTempleSplashRingCounter.
Referenced by scInit().
Definition at line 2925 of file kandorean_temple.c.
scKandoreanTempleStartFogRoom
void scKandoreanTempleStartFogRoom(void)
Sets up Fog's room: the rope to Fog and, until the party has met Poi, the student who gave up, sitting on the floor.
References fdActorGetById(), fdActorSetAnimationById(), fdActorSetMovementTypeById(), fdActorSetSpriteFlags(), fdEffectStartBlankOverlay(), fdRopeInit(), fdRopePlace(), KandoreanTempleSquashAndStretchScript and syGameFlagGet().
Referenced by scInit().
Definition at line 2938 of file kandorean_temple.c.
scKandoreanTempleStartMeditating
void scKandoreanTempleStartMeditating(Sint32 id, Sint32 delay)
A student sits meditating, his first ellipsis after delay ticks and up to 400 more.
References fdActorGetById(), fdActorSetAnimationById(), fdActorSetMovementTypeById(), KandoreanTempleMeditateScript and Sint32.
Referenced by scKandoreanTempleStartGate().
Definition at line 2961 of file kandorean_temple.c.
scKandoreanTemplePoiWaitsByTheNorthRope
void scKandoreanTemplePoiWaitsByTheNorthRope(void)
Before the party has Lash, Poi waits by the north rope, which he has tied
across (FLAG_NORTH_ROPE_TIED) the first time on each visit.
References Call4(), fdActorSetPosAndFacing(), fdRopePlace(), fdScriptGetFlag() and fdScriptSetFlag().
Referenced by scKandoreanTempleStartPoisRoom().
Definition at line 3028 of file kandorean_temple.c.
scKandoreanTempleStartPoisRoom
void scKandoreanTempleStartPoisRoom(void)
Sets up Poi's hall: its ropes, the tested students, Poi and the cave door, by the entrance the party takes.
References Call4(), fdActorSetAnimationById(), fdActorSetPosAndFacing(), fdRopeInit(), fdRopePlace(), fdScriptGetFlag(), MainRoutineStateWork, scKandoreanTempleCreateLashPebble(), scKandoreanTempleFindTheRopeOnTheFloor(), scKandoreanTempleMatchStudentsToLeader(), scKandoreanTempleMeetPoi(), scKandoreanTempleOpenTheCaveDoor(), scKandoreanTemplePassTheTest(), scKandoreanTemplePoiWaitsByTheNorthRope(), scKandoreanTempleTestTheStudents(), syGameFlagClear(), syGameFlagGet() and sySetEvent().
Referenced by scInit().
Definition at line 3045 of file kandorean_temple.c.
scKandoreanTempleTurnSprite
void scKandoreanTempleTurnSprite(FIELD_SPR *sprite, Uint32 ticks, Sint32 step)
Turns a sprite by step (of TRIG_TURN to the turn) each tick for the given
ticks.
References fdScriptWait() and Sint32.
Referenced by scKandoreanTempleTestTheStudents().
Definition at line 3140 of file kandorean_temple.c.
scKandoreanTempleDrift
void scKandoreanTempleDrift(ACTOR *actor, Uint32 ticks, FIXED step)
Moves an actor sideways by step each tick for the given ticks.
References fdScriptWait().
Referenced by scKandoreanTempleTestTheStudents().
Definition at line 3153 of file kandorean_temple.c.
scKandoreanTemplePassTheTest
void scKandoreanTemplePassTheTest(void)
Felix comes out of the west passage into the upper hall of Poi's hall, the way up from the Chestbeaters' room, and Poi praises him for passing the test before he sees the party are not his students and asks how they came so far. He then goes down into the test hall to look at the rope.
References fdActorFaceDirection(), fdActorFaceDirectionById(), fdActorGetById(), fdActorPlaceOnActor(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetPosAndFacing(), fdActorShowEmoteById(), fdActorWalkToAndWait(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, Sint32, syImportScriptSetExitRequest() and sySynch().
Referenced by scKandoreanTempleStartPoisRoom().
Definition at line 3380 of file kandorean_temple.c.
scKandoreanTempleFindTheRopeOnTheFloor
void scKandoreanTempleFindTheRopeOnTheFloor(void)
Poi goes down into the test hall and looks about by the south rope's posts: "The rope is still on the floor." Nobody has climbed up that way, so he goes back up to the party sure that they came through the cave.
References fdActorFaceDirection(), fdActorWalkToAndWait(), fdCameraGetActor(), fdCameraWaitForArrival(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, Sint32, syImportScriptSetExitRequest() and sySynch().
Referenced by scKandoreanTempleStartPoisRoom().
Definition at line 3446 of file kandorean_temple.c.
scKandoreanTemplePoiWalksUp
void scKandoreanTemplePoiWalksUp(void)
Poi steps up beside the north rope's east post, turns west to the party and answers Kraden.
References fdActorFaceDirection(), fdActorWalkToAndWait() and fdScriptShowMessageAndWait().
Referenced by scKandoreanTempleMeetPoi().
Definition at line 3481 of file kandorean_temple.c.
scKandoreanTempleMeetPoi
void scKandoreanTempleMeetPoi(void)
Poi comes back up into the upper hall to the party: they must have come through the cave, so he must give them the secret of Lash. He shows them Lash on the north rope, then crosses it ahead of them to the raised floor by his table, and waits there for them to follow.
References fdActorFaceDirection(), fdActorFaceDirectionById(), fdActorGetById(), fdActorJump(), fdActorMoveToAndWait(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorSetAnimationById(), fdActorSetAttachedEffect(), fdActorSetDestinationById(), fdActorSetHorizontalPosAndAngleWithTerrain(), fdActorSetMovementTypeAndWaitById(), fdActorSetMovementTypeById(), fdActorSetPosAndFacing(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorShowEmote(), fdActorShowEmoteById(), fdActorStop(), fdActorWaitForMoveById(), fdActorWalkToAndWait(), fdActorWatchAndSetScript(), fdCameraGetActor(), fdEffectSetAttached(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageAndWait(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), KandoreanTempleKradenStepsAsideScript, KandoreanTempleLeaderStepsAsideScript, KandoreanTemplePoiWalksToTheRopeScript, MainRoutineStateWork, scKandoreanTempleCastLash(), scKandoreanTemplePoiWalksUp(), Sint32, syGameFlagSet() and sySynch().
Referenced by scKandoreanTempleStartPoisRoom().
Definition at line 3493 of file kandorean_temple.c.
scKandoreanTempleCreateLashPebble
void scKandoreanTempleCreateLashPebble(void)
Creates the Lash Pebble's actor on Poi's table, drawn from its item icon.
References mnIconDrawItem(), scFieldActorCreate(), syHeapSlotAllocate(), syHeapSlotRelease() and syVRAMCacheLoad().
Referenced by scKandoreanTempleStartPoisRoom().
Definition at line 3774 of file kandorean_temple.c.
scKandoreanTempleLowerTheLadder
void scKandoreanTempleLowerTheLadder(void)
Back in the Chestbeaters' room after their battle, a ladder unrolls down the north wall, rung by rung.
References fdMapGridCopyMetatileTilesIndicesRect(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), syGameFlagSet() and sySoundPlay().
Referenced by scKandoreanTempleStartChestbeaterRoom().
Definition at line 3803 of file kandorean_temple.c.
Variables in detail
KandoreanTempleSplashRingCounter
Sint32 KandoreanTempleSplashRingCounter
How far a wader has gone since its last ring on the water
(scKandoreanTempleLeaveSplashRings).
References Sint32.
Referenced by scKandoreanTempleLeaveSplashRings(), scKandoreanTempleStartCurrentRoom() and scKandoreanTempleStartStreamRoom().
Definition at line 361 of file kandorean_temple.c.
KandoreanTempleWestVentBlowing
Sint32 KandoreanTempleWestVentBlowing
Whether each vent of the vent room blows its steam
(KandoreanTempleBlowWestVent).
References Sint32.
Referenced by scKandoreanTempleStartVentRoom() and scKandoreanTempleWatchVents().
Definition at line 364 of file kandorean_temple.c.
KandoreanTempleEastVentBlowing
Sint32 KandoreanTempleEastVentBlowing
References Sint32.
Referenced by scKandoreanTempleStartVentRoom() and scKandoreanTempleWatchVents().
Definition at line 365 of file kandorean_temple.c.
KandoreanTempleWestTimer
Sint32 KandoreanTempleWestTimer
The west and east vents' timers, in ticks through their cycle (VENT_TICK),
which in the lift room time the lifts at their columns' tops (LIFT_TICK); and
the angles of the covers' or lifts' float as they bob on their columns.
References Sint32.
Referenced by scKandoreanTempleStartLiftRoom() and scKandoreanTempleStartVentRoom().
Definition at line 369 of file kandorean_temple.c.
KandoreanTempleEastTimer
Sint32 KandoreanTempleEastTimer
References Sint32.
Referenced by scKandoreanTempleStartLiftRoom() and scKandoreanTempleStartVentRoom().
Definition at line 370 of file kandorean_temple.c.
KandoreanTempleWestFloatPhase
Uint16 KandoreanTempleWestFloatPhase
Referenced by scKandoreanTempleStartLiftRoom() and scKandoreanTempleStartVentRoom().
Definition at line 371 of file kandorean_temple.c.
KandoreanTempleEastFloatPhase
Uint16 KandoreanTempleEastFloatPhase
Referenced by scKandoreanTempleStartLiftRoom() and scKandoreanTempleStartVentRoom().
Definition at line 372 of file kandorean_temple.c.
KandoreanTempleSteamScript
extern Sint32 KandoreanTempleSteamScript[]
Sint32 KandoreanTempleSteamScript[]
A cloud of steam lives 44 ticks, then is put away and released.
References scKandoreanTempleCountDownSteam() and Sint32.
Referenced by scKandoreanTempleInitSteam().
Definition at lines 375 and 3829 of file kandorean_temple.c.
KandoreanTempleSplashRingScript
extern Uint32 KandoreanTempleSplashRingScript[]
Uint32 KandoreanTempleSplashRingScript[]
Referenced by scKandoreanTempleSpawnSplashRing().
Definition at lines 376 and 3853 of file kandorean_temple.c.
KandoreanTempleSplashScript
extern Uint32 KandoreanTempleSplashScript[]
Uint32 KandoreanTempleSplashScript[]
Referenced by scKandoreanTemplePushAlongTheCurrent().
Definition at lines 377 and 3858 of file kandorean_temple.c.
KandoreanTempleMeditateScript
extern Sint32 KandoreanTempleMeditateScript[]
Sint32 KandoreanTempleMeditateScript[]
References scKandoreanTempleMeditate() and Sint32.
Referenced by scKandoreanTempleStartMeditating().
Definition at lines 380 and 3879 of file kandorean_temple.c.
KandoreanTempleSquashAndStretchScript
extern Sint32 KandoreanTempleSquashAndStretchScript[]
Sint32 KandoreanTempleSquashAndStretchScript[]
References scKandoreanTempleSquashAndStretch() and Sint32.
Referenced by scKandoreanTempleStartFogRoom().
Definition at lines 381 and 3883 of file kandorean_temple.c.
KandoreanTempleLookAroundScript
extern Uint32 KandoreanTempleLookAroundScript[]
Uint32 KandoreanTempleLookAroundScript[]
Referenced by KandoreanTempleGatePlacements and scKandoreanTempleAskAboutPoi().
Definition at lines 383 and 3871 of file kandorean_temple.c.
KandoreanTempleLiftRoomPillarActors
extern Sint16 KandoreanTempleLiftRoomPillarActors[]
Sint16 KandoreanTempleLiftRoomPillarActors[]
What Move takes hold of, each list ended by -1: the lift room's pillar; and the vent room's pillar, which in the Chestbeaters' room is the boiling pot, placed first in the same slot.
Referenced by scKandoreanTempleStartLiftRoom() and scKandoreanTempleStartMovingBlock().
Definition at lines 384 and 3846 of file kandorean_temple.c.
KandoreanTemplePillarOrPotActors
extern Sint16 KandoreanTemplePillarOrPotActors[]
Sint16 KandoreanTemplePillarOrPotActors[]
Referenced by scKandoreanTempleStartChestbeaterRoom(), scKandoreanTempleStartMovingPillar(), scKandoreanTempleStartMovingPot() and scKandoreanTempleStartVentRoom().
Definition at lines 385 and 3849 of file kandorean_temple.c.
KandoreanTempleStreamRoomRegions
extern SCENE_REGION KandoreanTempleStreamRoomRegions[]
SCENE_REGION KandoreanTempleStreamRoomRegions[]
Referenced by scGetExitRegions().
Definition at lines 400 and 3946 of file kandorean_temple.c.
KandoreanTempleGatePlacements
extern ACTOR_PLACE KandoreanTempleGatePlacements[]
ACTOR_PLACE KandoreanTempleGatePlacements[]
References KandoreanTempleLookAroundScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 401 and 4171 of file kandorean_temple.c.
KandoreanTemplePoisRoomPlacements
extern ACTOR_PLACE KandoreanTemplePoisRoomPlacements[]
ACTOR_PLACE KandoreanTemplePoisRoomPlacements[]
References KandoreanTempleFlameScript, KandoreanTempleHighFlameScript, KandoreanTempleLowFlameScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 402 and 4190 of file kandorean_temple.c.
KandoreanTempleMimicRoomCues
extern CUE KandoreanTempleMimicRoomCues[]
CUE KandoreanTempleMimicRoomCues[]
Referenced by scGetCues().
Definition at lines 403 and 4261 of file kandorean_temple.c.
KandoreanTempleChestbeaterRoomRegions
extern SCENE_REGION KandoreanTempleChestbeaterRoomRegions[]
SCENE_REGION KandoreanTempleChestbeaterRoomRegions[]
Referenced by scGetExitRegions().
Definition at lines 404 and 3940 of file kandorean_temple.c.
KandoreanTemplePlacements
extern ACTOR_PLACE KandoreanTemplePlacements[]
ACTOR_PLACE KandoreanTemplePlacements[]
Referenced by scGetActorPlacements().
Definition at lines 405 and 4083 of file kandorean_temple.c.
KandoreanTempleLiftRoomPlacements
extern ACTOR_PLACE KandoreanTempleLiftRoomPlacements[]
ACTOR_PLACE KandoreanTempleLiftRoomPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 406 and 4087 of file kandorean_temple.c.
KandoreanTempleChestbeaterRoomPlacements
extern ACTOR_PLACE KandoreanTempleChestbeaterRoomPlacements[]
ACTOR_PLACE KandoreanTempleChestbeaterRoomPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 407 and 4112 of file kandorean_temple.c.
KandoreanTempleVentRoomPlacements
extern ACTOR_PLACE KandoreanTempleVentRoomPlacements[]
ACTOR_PLACE KandoreanTempleVentRoomPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 408 and 4128 of file kandorean_temple.c.
KandoreanTempleFogRoomPlacements
extern ACTOR_PLACE KandoreanTempleFogRoomPlacements[]
ACTOR_PLACE KandoreanTempleFogRoomPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 409 and 4158 of file kandorean_temple.c.
KandoreanTempleCues
extern CUE KandoreanTempleCues[]
CUE KandoreanTempleCues[]
Referenced by scGetCues().
Definition at lines 410 and 4224 of file kandorean_temple.c.
KandoreanTempleLiftRoomCues
extern CUE KandoreanTempleLiftRoomCues[]
CUE KandoreanTempleLiftRoomCues[]
References scKandoreanTempleFinishMovingBlock(), scKandoreanTempleRideEastLiftDown(), scKandoreanTempleRideWestLiftDown(), scKandoreanTempleSinkIntoTheSteam() and scKandoreanTempleStartMovingBlock().
Referenced by scGetCues().
Definition at lines 411 and 4228 of file kandorean_temple.c.
KandoreanTempleChestbeaterRoomCues
extern CUE KandoreanTempleChestbeaterRoomCues[]
CUE KandoreanTempleChestbeaterRoomCues[]
References scKandoreanTempleFightChestbeaters(), scKandoreanTempleFinishMovingPot(), scKandoreanTempleReadPoisSign(), scKandoreanTempleStartMovingPot() and scKandoreanTempleTouchTheHotFloor().
Referenced by scGetCues().
Definition at lines 412 and 4277 of file kandorean_temple.c.
KandoreanTempleVentRoomCues
extern CUE KandoreanTempleVentRoomCues[]
CUE KandoreanTempleVentRoomCues[]
References scKandoreanTempleFinishMovingPillar(), scKandoreanTempleLeaveByEastVent(), scKandoreanTempleLeaveByWestVent() and scKandoreanTempleStartMovingPillar().
Referenced by scGetCues().
Definition at lines 413 and 4303 of file kandorean_temple.c.
KandoreanTempleStreamRoomCues
extern CUE KandoreanTempleStreamRoomCues[]
CUE KandoreanTempleStreamRoomCues[]
Referenced by scGetCues().
Definition at lines 414 and 4327 of file kandorean_temple.c.
KandoreanTempleCurrentRoomCues
extern CUE KandoreanTempleCurrentRoomCues[]
CUE KandoreanTempleCurrentRoomCues[]
References scKandoreanTemplePushAlongTheCurrent().
Referenced by scGetCues().
Definition at lines 415 and 4334 of file kandorean_temple.c.
KandoreanTempleFogRoomCues
extern CUE KandoreanTempleFogRoomCues[]
CUE KandoreanTempleFogRoomCues[]
References scKandoreanTempleFightFog(), scKandoreanTempleStepBehindThePost() and scKandoreanTempleStepOutFromThePost().
Referenced by scGetCues().
Definition at lines 416 and 4347 of file kandorean_temple.c.
KandoreanTempleGateCues
extern CUE KandoreanTempleGateCues[]
CUE KandoreanTempleGateCues[]
References scKandoreanTempleAskAboutPoi(), scKandoreanTempleClimbDownTheWell(), scKandoreanTempleCycloneFifthClump(), scKandoreanTempleCycloneFirstClump(), scKandoreanTempleCycloneFourthClump(), scKandoreanTempleCycloneSecondClump(), scKandoreanTempleCycloneThirdClump(), scKandoreanTempleFindTheHiddenPassage(), scKandoreanTempleKradenSuspectsTheWall(), scKandoreanTempleOpenTheTempleDoor(), scKandoreanTempleReadTheGateStudent(), scKandoreanTempleReadTheGuard(), scKandoreanTempleTellOfTheMeditation() and scKandoreanTempleTryTheLockedDoor().
Referenced by scGetCues().
Definition at lines 417 and 4375 of file kandorean_temple.c.
KandoreanTemplePoisRoomCues
extern CUE KandoreanTemplePoisRoomCues[]
CUE KandoreanTemplePoisRoomCues[]
References scKandoreanTempleAskWhoPassedTheTest(), scKandoreanTempleClimbDownTheLadder(), scKandoreanTempleEnterTheCave() and scKandoreanTempleReceiveLash().
Referenced by scGetCues().
Definition at lines 418 and 4476 of file kandorean_temple.c.
KandoreanTempleLeaderStepsAsideScript
extern Uint32 KandoreanTempleLeaderStepsAsideScript[]
Uint32 KandoreanTempleLeaderStepsAsideScript[]
Referenced by scKandoreanTempleMeetPoi().
Definition at lines 422 and 3888 of file kandorean_temple.c.
KandoreanTempleKradenStepsAsideScript
extern Uint32 KandoreanTempleKradenStepsAsideScript[]
Uint32 KandoreanTempleKradenStepsAsideScript[]
Referenced by scKandoreanTempleMeetPoi().
Definition at lines 423 and 3898 of file kandorean_temple.c.
KandoreanTemplePoiWalksToTheRopeScript
extern Uint32 KandoreanTemplePoiWalksToTheRopeScript[]
Uint32 KandoreanTemplePoiWalksToTheRopeScript[]
Referenced by scKandoreanTempleMeetPoi().
Definition at lines 424 and 3909 of file kandorean_temple.c.
KandoreanTempleHighFlameScript
extern Sint32 KandoreanTempleHighFlameScript[]
Sint32 KandoreanTempleHighFlameScript[]
References scKandoreanTemplePlaceFlame() and Sint32.
Referenced by KandoreanTemplePoisRoomPlacements.
Definition at lines 432 and 3921 of file kandorean_temple.c.
KandoreanTempleLowFlameScript
extern Sint32 KandoreanTempleLowFlameScript[]
Sint32 KandoreanTempleLowFlameScript[]
References scKandoreanTemplePlaceFlame() and Sint32.
Referenced by KandoreanTemplePoisRoomPlacements.
Definition at lines 433 and 3927 of file kandorean_temple.c.
KandoreanTempleFlameScript
extern Sint32 KandoreanTempleFlameScript[]
Sint32 KandoreanTempleFlameScript[]
References scKandoreanTemplePlaceFlame() and Sint32.
Referenced by KandoreanTemplePoisRoomPlacements.
Definition at lines 434 and 3933 of file kandorean_temple.c.
FieldEffectDurationScripts
const Sint32 *FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().
Definition at line 3865 of file kandorean_temple.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 3952 of file kandorean_temple.c.