src/scene/gaia_rock_inside.c
Gaia Rock's inside, under the great rock near Izumo where the Serpent lives, in five scenes of one overlay. More…
#include "macros.h"#include "item_ids.h"#include "field/field_engine.h"#include "field/script_inline.h"#include "game/game.h"#include "graphics/palette_buffers.h"#include "edition.h"#include "scene/scene.h"#include "field/call.h"#include "scene/gaia_rock.h"#include "field/actor_script.h"#include "shared/actor_set_sprite_priority.c"#include "shared/actor_create_silhouette.c"#include "shared/scene_create_actor.c"#include "../field/field_effect_move.c"#include "shared/field_effect_spawn.c"#include "../field/field_effect_advance_motion.c"#include "shared/field_effect_advance_motion_priority.c"#include "text/msg_ids.h"#include "shared/orbit_spark_spawn.c"#include "shared/orbiter_spiral.c"#include "shared/orbit_update.c"#include "shared/actor_aim_at_watched.c"#include "shared/actor_step_to_watched.c"#include "shared/actor_emit_sparkles.c"#include "shared/gaia_rock_cue_wall_metatile.c"#include "shared/stone_head_place.c"#include "shared/stone_head_burst_out.c"#include "shared/field_effect_duration_scripts.c"#include "shared/lesson_seeking_spark_script.c"#include "shared/lesson_scripts.c"#include "shared/debris_script.c"#include "shared/stone_head_rise_script.c"
Structures
| Name | Description | |
|---|---|---|
struct | PATH_METATILE | One grid metatile: the step that stands on it (0 for none, MAZE_BORDER for the border) and the column and row of the next step. |
struct | PATH_STEP | One step of the path: its number, then the step found below, to the left, to the right and above it. |
struct | PATH | The maze's path: the step the party stands on, set to the first once the path is laid, and the steps, from 1 to MAZE_STEPS. |
struct | METATILE_POINT | A map grid metatile, its column and row. |
struct | SWAY_STATE | The platforms' sway (scGaiaRockInsideSwayPlatforms). |
struct | PATH_GRID | The grid the maze's path is laid on (scGaiaRockInsideLayMaze). |
Macros
| Name | Description | |
|---|---|---|
#define | EFFECT_SET_MODE fdActorSelectAnimation | |
#define | EFFECT_SET_SCRIPT fdActorStartScript | |
#define | EFFECT_SPRITE_PRIORITY | |
#define | FLAG_COBWEB_ROOM_SUNBEAM 0x9bc | The four beams of sunlight that reach the Serpent's lair. |
#define | FLAG_WEST_ALTAR_SUNBEAM 0x9bd | |
#define | FLAG_EAST_ALTAR_SUNBEAM 0x9be | |
#define | FLAG_BUSHES_SUNBEAM 0x9bf | |
#define | FLAG_COBWEB_ROOM_SUNBEAM_TO_SHOW FLAG_AREA_TEMP(0x07) | A beam let in before the Serpent is slain, waiting to be shown falling into the lair (scInit, entrance 20), which then sets its flag above. |
#define | FLAG_WEST_ALTAR_SUNBEAM_TO_SHOW FLAG_AREA_TEMP(0x08) | |
#define | FLAG_EAST_ALTAR_SUNBEAM_TO_SHOW FLAG_AREA_TEMP(0x09) | |
#define | FLAG_BUSHES_SUNBEAM_TO_SHOW FLAG_AREA_TEMP(0x0a) | |
#define | FLAG_SUSA_ATTACKED_SERPENT 0x9ac | "At last... |
#define | FLAG_MET_SUSA 0x9de | "Who are you? |
#define | FLAG_LEARNED_SAND 0x9ba | Felix touched the slate and learned Sand. |
#define | FLAG_SAND_TABLET_RAISED 0x9ee | The slate rose from the lair's floor. |
#define | FLAG_ALTAR_FELL 0x9c4 | Cyclone tore the cobweb holding it up. |
#define | FLAG_ENTRANCE_FACES_MOVED 0xa62 | |
#define | FLAG_PLATFORMS_SWAYING 0xa63 | |
#define | FLAG_WEST_STONE_HEAD_RISEN FLAG_AREA_TEMP(0x03) | The three stone heads that burst out of the cobweb room's wall of handholds under Felix; each stays out until the party enters another area. |
#define | FLAG_MIDDLE_STONE_HEAD_RISEN FLAG_AREA_TEMP(0x04) | |
#define | FLAG_EAST_STONE_HEAD_RISEN FLAG_AREA_TEMP(0x05) | |
#define | FLAG_STUMP_SPOTS FLAG_SCENE_TEMP(0x10) | Where the entrance room's two stumps were Moved to, kept so that they stay there (scGaiaRockInsideRecordStumpSpots). |
#define | FLAG_SUSA_WAITS_FOR_CASK FLAG_SCENE_TEMP(0x05) | While the party stands in Susa's way the cask waits for him, and while it stands in the cask's way Susa waits for it (scGaiaRockInsideCheckBlocked). |
#define | FLAG_CASK_WAITS_FOR_SUSA FLAG_SCENE_TEMP(0x06) | |
#define | FLAG_MIMIC_CHEST_LEFT_OUT FLAG_AREA_TEMP(0xf6) | Leaves the Mimic's chest out of the maze's third room while set. |
#define | EXIT_NO_SUNBEAM 20 | The exit the lair would take after showing a beam if none waited to be shown: the scene has no exit of this number, but the party only comes in by entrance 20 from a script that has just let a beam in. |
#define | RAISED_SUSA_BLOCKED 42 | The cue Susa's hook raises when the party has stood in his or his cask's way for half a second (scGaiaRockInsideCheckBlocked). |
#define | MAZE_BORDER 99 | A grid metatile's step that marks the grid's border. |
#define | MAZE_STEPS 14 | The steps of the maze's path, from the way in to the way on. |
#define | MAZE_BACK 250 | PATH_STEP.next's marks for the ways out of the maze, each the exit it takes: back out from its first step, and on from its last. |
#define | MAZE_EXIT 251 | |
#define | PathWork ((PATH *)(InventorySnapshot + INVENTORY_SNAPSHOT_SPARE + 25 … | The maze's path, kept 256 bytes into the inventory snapshot's spare room. |
#define | FLAG_MAZE_PLANT_POINTED (step) (0xa50 + (step)) | Set once the plant on a step of the maze has pointed the way on; it points again whenever the party comes back to that step. |
#define | FLAG_MAZE_LAID FLAG_AREA_TEMP(0xf0) | The maze's path is laid for this visit (scGaiaRockInsideLayMaze). |
#define | FLAG_PLANT_POINTING FLAG_SCENE_TEMP(0x00) | The plant of the step the party stands on points the way: Growth on it does nothing more. |
#define | ARROW_ANIMATION (heading) ((((heading) & 0xc000) >> 14) + 2) | The arrow plant's animation for the heading of the way on: east, south, west and north from animation 2; and whether that heading is south or north, the arrow up or down. |
#define | ARROW_UP_OR_DOWN (heading) ((heading) & 0x4000) | |
#define | SceneStateWork (*(SWAY_STATE *)SceneStateWork) | The scene's view of SceneStateWork (system/globals.h). |
#define | GRID_WIDTH 28 | The maze grid's width, in its metatiles. |
#define | AT (x, y) grid->metatiles[(y) * GRID_WIDTH + (x)] | The maze grid's metatile at (x, y), and its address. |
#define | AT_ADDRESS (x, y) | |
#define | MAZE_TRIES_PER_STEP 16 | The headings the walk tries from a step before it starts the path again. |
Enumerations
| Name | Description | |
|---|---|---|
enum | GAIA_ROCK_INSIDE_METATILE_BEHAVIOR { METATILE_BEHAVIOR_MAZE_SOUTH, METATILE_BEHAVIOR_MAZE_WEST, M … } | The metatile behaviors of the cue tables, by room. |
enum | anonymous enum { ACTOR_ARROW_PLANT, ACTOR_MIMIC_CHEST, ACTOR_RUSTY_MACE_CHEST … } | The maze's one actor, in the middle of each of its rooms, and its treasures in scene_items.s's order: the Mimic's chest in the third room, the Rusty Mace's in the ninth, and the Cloud Brand hidden behind the stone Serpent in the lair. |
enum | GAIA_ROCK_INSIDE_PASSAGE { GAIA_ROCK_INSIDE_ENTRANCE_TO_STUMPS, GAIA_ROCK_INSIDE_ENTRAN … } | The passages within the entrance room and the cobweb room, from one side of a doorway to the other (scene_exits.h names only those between scenes). |
enum | anonymous enum { ENTRANCE_LAST_MAZE_WAY_IN, ENTRANCE_LAIR, ENTRANCE_SERPENT_B … } | The maze rooms' ways in, entrances 1 to ENTRANCE_LAST_MAZE_WAY_IN, and the lair's entrances: its way in from the south, and where the battle with the Serpent brings the party back: won, lost without the Dancing Idol, and lost holding it before any beam of sunlight reaches the lair (scGaiaRockInsideChallengeSerpent). |
enum | anonymous enum { ACTOR_SERPENT, ACTOR_CASK, ACTOR_SUSA, ACTOR_KRADEN, ACTOR_S … } | The Serpent's lair (SceneIdGaiaRockInsideMaze by entrances 9 to 20). |
enum | anonymous enum { ANIM_SUSA_LYING_DOWN, ANIM_SUSA_SLASH, ANIM_SUSA_HEAVE, ANIM … } | Susa's sheet's animations in the lair (susa.tsv): lying on his back, worn out; his sword swung down; heaving a cask up over his head; his sword drawn, held low; and bent over, pushing a cask. |
enum | anonymous enum { ANIM_SERPENT_DRINKING, ANIM_SERPENT_DOZING, ANIM_SERPENT_ROA … } | The Serpent's animations (serpent.tsv): its head down at the cup, drinking; dozing, glutted with Dragonsbane; rearing up and roaring; and turned to grey stone. |
enum | anonymous enum { ACTOR_ENTRANCE_WEST_FACE, ACTOR_ENTRANCE_EAST_FACE, ACTOR_ST … } | The entrance room (SceneIdGaiaRockInsideEntrance): the two great red faces that stand in the doorways either side of the altar until the Dancing Idol dances on it, and the two stumps Felix Moves out of the way on the path to the maze. |
enum | anonymous enum { ACTOR_WEST_FACE, ACTOR_EAST_FACE, ACTOR_WEST_ALTAR, ACTOR_EA … } | The room of the twin altars (SceneIdGaiaRockInsideTwinAltars): a face on the north wall over each altar. |
enum | anonymous enum { ACTOR_FIRST_PLATFORM, ACTOR_LAST_PLATFORM } | The nine leafy platforms Cyclone sets swaying in the platforms' room (scGaiaRockInsideStartPlatforms). |
enum | anonymous enum { ACTOR_COBWEB_FACE, ACTOR_COBWEB_ALTAR, ACTOR_HANGING_VINE, A … } | The cobweb room (SceneIdGaiaRockInsideCobweb): the altar ringed by bushes in its west part, with a face on the wall beside it, the wall of handholds along its south part, and the altar on the great cobweb in its east part. |
enum | MAZE_WAY { MAZE_SOUTH, MAZE_WEST, MAZE_EAST, MAZE_NORTH } | The four ways out of a step, in the order PATH_STEP.next keeps them. |
enum | anonymous enum { SUSA_BLOCKED_TICKS, SUSA_BLOCKED_TICKS_MAX } | The ticks Susa or the cask may be held up by the party before he tells it to move, and the most the count keeps. |
enum | anonymous enum { TABLET_RISE_PIXELS } | The pixels the slate rises from the lair's floor, one every 2 ticks. |
enum | anonymous enum { FACE_TREMBLE_TICKS, FACE_SLIDE_TICKS_MAX, FACE_SETTLE_TICKS, … } | How a stone face trembles while the doll dances on its altar: for FACE_TREMBLE_TICKS, then on as it slides aside, for FACE_SLIDE_TICKS_MAX at most, and FACE_SETTLE_TICKS more once there; a face already slid aside only trembles, for FACE_TREMBLE_LONG_TICKS. |
enum | anonymous enum { STUMP_SPOTS } | The spots listed in GaiaRockInsideStumpSpots, from 1; 0 is none. |
enum | anonymous enum { OVERHEAD_PART_HALL, OVERHEAD_PART_WEST_PASSAGE, OVERHEAD_PAR … } | The parts of the entrance and cobweb rooms' overhead layer, each marked by its metatiles' collision code, from 100: arriving keeps only the part around the entrance. |
enum | anonymous enum { OVERHEAD_PART_WALL, OVERHEAD_PART_ALTAR, OVERHEAD_PART_COBWE … } | The cobweb room's: the wall of handholds along the south, the altar ringed by weeds, and the great cobweb over its pit. |
Functions
| Name | Description | |
|---|---|---|
static inline void | scMapGridCopyRawMetatiles (Sint32 x, Sint32 z, Sint32 width, Sint32 height, Sint32 metatileX, Sint32 metatileZ) | Copies whole metatiles as the map stores them, from a script. |
void | scGaiaRockInsideSaveSusa (void) | Stops Susa and the cask he is handling where they are, keeping Susa's place and animation to be given back after a talk. |
void | scGaiaRockInsideRestoreSusa (void) | After a talk, Susa walks back to where scGaiaRockInsideSaveSusa found him and takes up his animation, and the cask goes on. |
void | scGaiaRockInsidePlacePlatform (Sint32 id, Sint32 x, Sint32 z) | Sends a platform gliding to dx and dz metatiles from its home. |
void | scGaiaRockInsideReadyPlatform (Uint32 id, Sint8 animation) | Readies a leafy platform to carry the party: it floats 16 pixels up, keeps the place it stands on now as the home it sways out from, and plays the given animation. |
void | scGaiaRockInsideSwayPlatforms (void) | The platforms' tick event: every four seconds each platform glides three metatiles out one way, and two seconds later back home. |
void | scGaiaRockInsideBlankLayer (Sint32 layer, Sint32 keep) | Fills every metatile of a map layer within the map's bounds with its first metatile, but those of collision code 0 or keep. |
void | scGaiaRockInsideLayMaze (Sint32 seed) | Lays the maze's path of MAZE_STEPS steps from seed, once a visit, on a random walk over a 28 by 28 grid, and records each step's ways out. |
void | scGaiaRockInsideDrawMazeRoom (void) | Draws the maze room the party stands in, a 15 by 10 metatile screen copied from the room's own place in the map (GaiaRockInsideMazeOrigins), on both layers; the first room is drawn where it stands. |
Sint32 | scGaiaRockInsideGetMazeWayOn (void) | The way on from the step the party stands on: the facing toward the next step or the exit, or -1 if no way leads on. |
void | scStoneHeadPlace (Sint32 id, Sint32 x, Sint32 y, Sint32 z) | The stone heads and the wall of handholds, which scInit sets up, come later, with the code the cobweb room shares with Gaia Rock's cliffs. |
void | scGaiaRockInsideStartWallCues (void) | Starts scGaiaRockCueWallMetatile each tick. |
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. |
static __inline__ void | scGaiaRockInsideJumpDownLedge (Sint32 id, Sint32 pose, Sint32 dust) | An actor springs down off the ledge before it (fdActorJumpDownLedge). |
void | scGaiaRockInsideJumpDownCobwebPit (void) | Felix walks south off the ledge at the north edge of the cobweb room's pit, metatile (44, 20), springs down past the altar through the web and drops out of sight; he lands in the twin altars' room below in a ring of dust (scGaiaRockInsideRaiseDust). |
void | scGaiaRockInsideRaiseDust (void) | Felix lands in the twin altars' room after jumping down the cobweb room's pit (scGaiaRockInsideJumpDownCobwebPit): he drops in from 130 pixels up, east of the east altar's face, into a ring of dust with a thump that shakes the room, and sits a moment before he stands. |
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. |
Sint32 | scGaiaRockInsideCaskRests (void) | Susa feeds the Serpent Dragonsbane cask by cask, over and over (GaiaRockInsideSusaFeedsSerpentScript): he sets a cask down among the others south of the Serpent, pushes it a metatile east, and throws it up onto the cup at the Serpent's feet, where it tips and pours; then he tosses the empty cask aside, where it bursts. |
Sint32 | scGaiaRockInsideCaskTips (void) | The cask tips a step over the cup. |
Sint32 | scGaiaRockInsideCaskRights (void) | The cask rights itself a step. |
void | scGaiaRockInsideFlickerPour (ACTOR *actor) | Each tick the pour's size varies at random; shrunk below a sixteenth, it jumps back to an eighth. |
Sint32 | scGaiaRockInsideCaskPours (void) | The cask pours: a spray of Dragonsbane that flickers in size (scGaiaRockInsideFlickerPour). |
Sint32 | scGaiaRockInsideSetDownCask (void) | Susa sets a new cask down at his feet. |
Sint32 | scGaiaRockInsideSusaPushesCask (void) | Susa pushes the cask a metatile east, straining. |
Sint32 | scGaiaRockInsideSusaThrowsCask (void) | Susa throws the cask up onto the cup at the Serpent's feet. |
Sint32 | scGaiaRockInsideCaskEmpties (void) | On the cup the cask tips, pours and rights itself again. |
Sint32 | scGaiaRockInsideCaskBursts (void) | The tossed cask bursts in four puffs of dust. |
Sint32 | scGaiaRockInsideTossCask (void) | The empty cask is tossed aside, west or east, away from where the leader stands. |
void | scGaiaRockInsideCheckBlocked (ACTOR *actor) | Susa's hook while he works: when the party has stood in his or the cask's way for SUSA_BLOCKED_TICKS, he tells them to move (scGaiaRockInsideSusaSaysMoveAside); while one is held up the other waits. |
const void * | scGetActorPlacements (void) | Returns the current room's actors; the maze's rooms and the lair share a scene, told apart by entrance. |
void | scGaiaRockInsidePulseSidewaysArrow (ACTOR *actor) | The update of a maze plant Growth has turned into an arrow: it flashes, and about twice a second stretches along its arrow with a drip, sideways here and up and down in scGaiaRockInsidePulseUpDownArrow. |
void | scGaiaRockInsidePulseUpDownArrow (ACTOR *actor) | As scGaiaRockInsidePulseSidewaysArrow, for an arrow pointing up or down. |
void | scGaiaRockInsidePlantPointsTheWay (Sint32 unused, Uint32 id) | Felix casts Growth on the little plant in the middle of a maze room, and it grows into a green arrow that flashes and pulses, pointing the way on to the next room. |
void | scGaiaRockInsideCycloneClearsTwinAltarsBushes (void) | Felix casts Cyclone on the cross of five bushes south-east of the east face in the twin altars' room, around metatile (38, 25), where a beam of sunlight shines down from the ceiling. |
static __inline__ Sint32 | scGameFlagTest (Sint32 flag) | Whether a game flag is set (syGameFlagGet). |
static __inline__ void | scGaiaRockInsideMadPlantLeaps (Sint32 sprite, Sint32 x, Sint32 z) | A Mad Plant leaps out at the leader (fdMadPlantLeapAtLeader). |
void | scGaiaRockInsideCycloneStartsPlatforms (void) | Felix casts Cyclone on the patch of bushes in the platforms' room, metatiles (16, 25) to (20, 29): they blow away, and the first time nine leafy platforms appear over the room's holes and start to sway, which carry the party across. |
void | scGaiaRockInsideCycloneMadPlant (void) | Felix casts Cyclone on the bushes north-west of the altar in the cobweb room, at the south-east bush of the patch, metatile (20, 21): they blow away, and until it is beaten a Mad Plant hiding there leaps out at him and a battle starts that the party cannot run from. |
void | scGaiaRockInsideCycloneClearsAltarBushes (void) | Felix casts Cyclone on the bushes ringing the altar in the cobweb room's west part, metatiles (19, 24) to (22, 26), and they blow away, leaving the altar clear. |
void | scGaiaRockInsideCycloneClearsMadPlantBushes (void) | Felix casts Cyclone on the Mad Plant's bushes, north-west of the altar in the cobweb room, away from the south-east bush it hides under, metatiles (18, 19) to (20, 21): they blow away, and no Mad Plant leaps out (scGaiaRockInsideCycloneMadPlant). |
void | scGaiaRockInsideCycloneClearsCobweb (void) | Felix casts Cyclone on the great cobweb in the cobweb room's east part, at any of its edge metatiles around (40, 20) to (47, 27). |
void | scGaiaRockInsideSusaSaysMoveAside (void) | Felix stands in the way of Susa or the cask he is pushing in the lair for half a second, and Susa says "Move out of the way there." |
void | scGaiaRockInsideMeetSusa (void) | Felix reaches the steps just east of where Susa works in the lair, metatile (32, 28), the first time. |
void | scGaiaRockInsideTalkToSusa (void) | Felix talks to Susa in the lair. |
void | scGaiaRockInsideReadSusasMind (void) | Felix reads Susa's mind in the lair. |
void | scGaiaRockInsideFelixLearnsSand (Sint32 tabletId, Sint32 adeptId) | Felix touches the slate in the lair and learns Sand: the screen warms to gold, the slate and then Felix rise among circling sparks, a white flash, and they settle again. |
void | scGaiaRockInsideReadSandTablet (void) | Felix searches the slate that rose beside the slain Serpent ("Wielder of Earth's might, Lay your hands upon this stone."). |
void | scEffectAdvanceMotionLocal (FIELD_OBJECT *object) | The same function as fdEffectAdvanceMotion, under another name. |
void | scGaiaRockInsideRingOfDust (void) | A ring of dust spreads from where the slate rises, one puff every eighth of a turn. |
void | scGaiaRockInsideRaiseSandTablet (void) | Felix steps onto the floor before the slain Serpent, metatiles (29, 24) to (31, 24), and the ground shakes and the slate rises from the floor west of it, in two rings of dust, unless it has risen already. |
void | scGaiaRockInsideChallengeSerpent (void) | Felix examines the Serpent on the sand at the north end of the lair, and the battle with it starts, one the party cannot run from. |
void | scGaiaRockInsideSinkIntoSand (void) | Felix casts Sand in the lair and sinks into the sand as a moving mound; he now moves on the map's sand layer, by which he can pass the Serpent to the Cloud Brand behind its tail. |
void | scGaiaRockInsideRiseFromSand (void) | Felix comes up out of the sand as Sand ends, and walks on the floor again. |
void | scGaiaRockInsideFindCloudBrand (void) | Felix examines the floor by the end of the Serpent's tail, metatile (34, 18), which he reaches with Sand, and finds the Cloud Brand. |
void | scGaiaRockInsideCheckAltar (void) | Felix examines one of the altars where the Dancing Idol dances: "Felix checked the altar. |
void | scGaiaRockInsidePlaceDollOnEntranceAltar (void) | Felix uses the Dancing Idol on the altar in the entrance room. |
void | scGaiaRockInsidePlaceDollOnWestAltar (void) | Felix uses the Dancing Idol on the west altar of the twin altars' room. |
void | scGaiaRockInsidePlaceDollOnEastAltar (void) | Felix uses the Dancing Idol on the east altar of the twin altars' room, the one that fell from the cobweb room; the face above it slides east and lets in its beam, as on the west altar (scGaiaRockInsidePlaceDollOnWestAltar). |
void | scGaiaRockInsidePlaceDollOnCobwebAltar (void) | Felix uses the Dancing Idol on the altar ringed by bushes in the cobweb room's west part; the face on the wall beside it slides west and lets in its beam, as on the twin altars' west altar (scGaiaRockInsidePlaceDollOnWestAltar). |
Sint32 | scGaiaRockInsideRecordStumpSpots (void) | Felix Moves or pushes one of the two stumps on the way to the maze in the entrance room, east of the altar. |
void | scGaiaRockInsideClimbOntoWestStoneHead (void) | Climbing the wall of handholds along the cobweb room's south part, Felix reaches its west trap hold, drawn at metatile (24, 37) (metatile (24, 101) of the wall's overhead layer): a yellow stone head with red eyes bursts out of the wall under him in a shower of rocks, he flails, and he is left standing on it, no longer climbing (scStoneHeadBurstOut). |
void | scGaiaRockInsideClimbOntoMiddleStoneHead (void) | As scGaiaRockInsideClimbOntoWestStoneHead, for the middle trap hold, a little lower and to the east: drawn at metatile (28, 39), metatile (28, 103) of the overhead layer. |
void | scGaiaRockInsideClimbOntoEastStoneHead (void) | As scGaiaRockInsideClimbOntoWestStoneHead, for the east trap hold: drawn at metatile (35, 39), metatile (35, 103) of the overhead layer. |
const CUE * | scGetCues (void) | Returns the current room's cues: the lair has one table while the Serpent lives and the party comes in by its way in, another after the battle. |
void | scGaiaRockInsideTurnFaceToAltar (Sint32 faceId, Sint32 altarId) | Turns a stone face toward its altar and lays its glowing eyes over its sprite, drawn in front. |
void | scGaiaRockInsideStartPlatforms (Uint8 animation) | Sets the platforms swaying: unless the party keeps its place, clears the sway's tick and places each platform, playing the given animation, then starts the sway's event. |
void | scGaiaRockInsideDrawSunbeams (void) | Draws the beams of sunlight let into the lair, pale shafts slanting down from its top left and top right: the cobweb room's and the west altar's on the west side, the east altar's and the bushes' on the east. |
Sint32 | scInit (void) | Sets up the room the party arrives in. |
void | scGaiaRockInsideKeepOverheadPart (Sint32 keep) | Blanks the overhead layer of the entrance or cobweb room but for the part keep, the one around the entrance the party arrives by. |
Sint32 | scPrepareMap (void) | Prepares the map. |
void | scGaiaRockInsideTakeMazeExit (Sint32 direction) | Felix walks out of a maze room by one of its four ways, and a room just like it appears. |
Variables
| Name | Description | |
|---|---|---|
extern Uint32 | GaiaRockInsideBurstScript [] | |
extern Sint32 | GaiaRockInsideCaskTossedLeftScript [] | |
extern Sint32 | GaiaRockInsideCaskTossedRightScript [] | |
extern ACTOR_PLACE | GaiaRockInsidePlacements [] | |
extern ACTOR_PLACE | GaiaRockInsideLairPlacements [] | |
extern ACTOR_PLACE | GaiaRockInsideTwinAltarsActorPlacements [] | |
extern ACTOR_PLACE | GaiaRockInsidePlatformsActorPlacements [] | |
extern ACTOR_PLACE | GaiaRockInsideCobwebActorPlacements [] | |
extern Sint32 | GaiaRockInsideSquashYScript [] | |
extern Uint32 | GaiaRockInsideLeaderStepsBackScript [] | |
extern Sint32 | GaiaRockInsideAltarShakesScript [] | |
extern Sint32 | GaiaRockInsideAltarDropsScript [] | |
extern Sint32 | GaiaRockInsideCaskThrownScript [] | |
extern Sint32 | GaiaRockInsideCaskEmptiesScript [] | |
extern Uint16 | GaiaRockInsideLairBlendScript [12] | The lair's blend, copied over the map's own blend script: the overhead layer blended over the rest at 4, 6, 8 and 6 sixteenths, 30 ticks each, over and over. |
extern Uint32 | FieldEffectShortScript [] | |
extern Uint32 | FieldEffectMediumScript [] | The flash about the Tomegathericon: held 45 ticks, then put away and freed. |
extern Uint32 | FieldEffectLongScript [] | |
extern SCENE_REGION | GaiaRockInsideCobwebExitRegions [] | |
extern Uint32 | GaiaRockInsidePourScript [] | |
extern Sint32 | GaiaRockInsideCaskSetDownScript [] | |
extern Uint32 | GaiaRockInsideCaskPushedScript [] | |
extern ACTOR_PLACE | GaiaRockInsideEntranceActorPlacements [] | |
extern Sint32 | GaiaRockInsideArrowTick | |
extern Sint32 | GaiaRockInsideSquashXScript [] | |
extern METATILE_POINT | GaiaRockInsideCobwebMetatiles [12] | The twelve metatiles of the cobweb, as column and row; Cyclone clears the web when it reaches one of them (scGaiaRockInsideCycloneClearsCobweb). |
extern Uint32 | OrbitSparkScript [] | An orbiting spark's script: it shows for 6 ticks, then is released. |
extern Uint32 | LessonTabletRiseScript [] | The tablet lifts 24 pixels. |
extern Uint32 | GaiaRockInsideRisingSparkScript [] | |
extern Sint32 | GaiaRockInsideCirclingSparkScript [] | |
extern Uint32 | LessonAdeptRiseScript [] | The Adept rises 16 pixels. |
extern Sint32 | LessonSeekingSparkScript [] | A spark of the lesson at the heart of Air's Rock, Aqua Rock and Gaia Rock: it circles and homes in on the Adept. |
extern Sint32 | LessonTabletSettleScript [] | The tablet settles back on its stand. |
extern Sint32 | LessonAdeptSettleScript [] | The Adept settles back to the ground. |
extern Sint16 | GaiaRockInsideStumpSpots [][2] | The metatiles the two stumps may be moved onto, numbered from 1; row 0 is none. |
extern CUE | GaiaRockInsideCues [] | |
extern CUE | GaiaRockInsideLairCues [] | |
extern CUE | GaiaRockInsideSlainLairCues [] | |
extern CUE | GaiaRockInsideEntranceCues [] | |
extern CUE | GaiaRockInsideTwinAltarsCues [] | |
extern CUE | GaiaRockInsidePlatformsCues [] | |
extern CUE | GaiaRockInsideCobwebCues [] | |
extern Sint16 | GaiaRockInsidePlatformPlaces [][2] | The swaying platforms' places, in metatiles. |
extern Uint32 | GaiaRockInsideSerpentGlowScript [] | The same script as FieldEffectMediumScript, under another name. |
extern Uint32 | GaiaRockInsideSerpentSmokeScript [] | The same script as FieldEffectMediumScript, under another name. |
extern Uint32 | GaiaRockInsideAltarShadowScript [] | The dark shadow under the east altar as it drops into the twin altars' room. |
extern Sint32 | GaiaRockInsideSusaFeedsSerpentScript [] | |
extern Sint8 | GaiaRockInsideMazeOrigins [][2] | |
extern Sint32 | StoneHeadRiseScript [] | The head swells by half and settles back in three steps, three times over, then rests 20 ticks: three rounds in all. |
extern Uint32 | DebrisScript [] | A piece of debris flies for 40 ticks, then blinks ten times and is gone. |
extern Uint32 | GaiaRockInsideIdleScript [] | |
extern Uint32 | GaiaRockInsideStumpScript [] | |
ACTOR | GaiaRockInsideSavedSusa | Susa as he was when he stopped to talk, with his place and animation, to be given back after (scGaiaRockInsideSaveSusa). |
Sint32 | GaiaRockInsideSavedSusaX | |
Sint32 | GaiaRockInsideSavedSusaZ | |
Sint32 | GaiaRockInsideSavedSusaAnimation | |
Sint32 | GaiaRockInsideSavedSusaAnimationStep |
Description
Gaia Rock's inside, under the great rock near Izumo where the Serpent lives, in five scenes of one overlay.
The cave mouth on the first cliffs (gaia_rock.c) opens onto the entrance room
(SceneIdGaiaRockInsideEntrance), where two great red faces on the north wall
stand in two doorways, one either side of an altar. The Dancing Idol, found
on the altar on top of the rock, dances on this altar and the faces slide
aside (scGaiaRockInsidePlaceDollOnEntranceAltar). Three ways open: through
the west and east doorways to the room of leafy platforms
(SceneIdGaiaRockInsidePlatforms), and a third, past two stumps Felix Moves
out of the way, to the maze.
Cyclone on the bushes of the platforms' room sets its leafy platforms swaying
(scGaiaRockInsideCycloneStartsPlatforms), and they carry the party on to the
twin altars' room (SceneIdGaiaRockInsideTwinAltars) and the cobweb room above
it (SceneIdGaiaRockInsideCobweb). There Cyclone flushes a Mad Plant out of
the bushes, three stone heads burst out of a wall of handholds under Felix,
and Cyclone tears a great cobweb so that the altar it holds falls into the
twin altars' room. Four beams of sunlight can be let down into the Serpent's
lair: the Dancing Idol makes the face over each of three altars slide aside,
and Cyclone clears the bushes under the fourth beam in the twin altars' room.
While the Serpent lives, the game shows each new beam falling into the lair.
The maze (SceneIdGaiaRockInsideMaze by entrances 1 to 4) is fourteen rooms
alike, a crossroads with a little plant in the middle that Growth turns into
an arrow pointing the way on. Beyond it is the Serpent's lair (the same scene
by entrances 9 to 20), where Susa feeds the Serpent casks of Dragonsbane to
save Kushinada. The fewer beams reach the lair, the more the Serpent heals in
battle (scGaiaRockInsideChallengeSerpent). Once the party beats it Susa slays
it, and a slate rises from the floor that teaches Felix Sand
(scGaiaRockInsideReadSandTablet). With Sand he passes the stone Serpent to
the Cloud Brand behind it (scGaiaRockInsideFindCloudBrand).
Macros in detail
EFFECT_SET_MODE
#define EFFECT_SET_MODE fdActorSelectAnimation
Referenced by EFFECT_SPAWN.
Definition at line 50 of file gaia_rock_inside.c.
EFFECT_SET_SCRIPT
#define EFFECT_SET_SCRIPT fdActorStartScript
Referenced by EFFECT_SPAWN.
Definition at line 51 of file gaia_rock_inside.c.
EFFECT_SPRITE_PRIORITY
#define EFFECT_SPRITE_PRIORITY
Definition at line 52 of file gaia_rock_inside.c.
FLAG_COBWEB_ROOM_SUNBEAM
#define FLAG_COBWEB_ROOM_SUNBEAM 0x9bc
The four beams of sunlight that reach the Serpent's lair. Three are set once
the face over the cobweb room's altar, the west altar or the east altar has
slid aside, the fourth once Cyclone has cleared the bushes under the twin
altars' room's beam. scGaiaRockInsideDrawSunbeams draws them in the lair.
Referenced by scGaiaRockInsideChallengeSerpent(), scGaiaRockInsideDrawSunbeams(), scGaiaRockInsidePlaceDollOnCobwebAltar(), scGaiaRockInsideTalkToSusa() and scInit().
Definition at line 59 of file gaia_rock_inside.c.
FLAG_WEST_ALTAR_SUNBEAM
#define FLAG_WEST_ALTAR_SUNBEAM 0x9bd
Referenced by scGaiaRockInsideChallengeSerpent(), scGaiaRockInsideDrawSunbeams(), scGaiaRockInsidePlaceDollOnWestAltar(), scGaiaRockInsideTalkToSusa() and scInit().
Definition at line 60 of file gaia_rock_inside.c.
FLAG_EAST_ALTAR_SUNBEAM
#define FLAG_EAST_ALTAR_SUNBEAM 0x9be
Referenced by scGaiaRockInsideChallengeSerpent(), scGaiaRockInsideDrawSunbeams(), scGaiaRockInsidePlaceDollOnEastAltar(), scGaiaRockInsideTalkToSusa() and scInit().
Definition at line 61 of file gaia_rock_inside.c.
FLAG_BUSHES_SUNBEAM
#define FLAG_BUSHES_SUNBEAM 0x9bf
Referenced by scGaiaRockInsideChallengeSerpent(), scGaiaRockInsideCycloneClearsTwinAltarsBushes(), scGaiaRockInsideDrawSunbeams(), scGaiaRockInsideTalkToSusa() and scInit().
Definition at line 62 of file gaia_rock_inside.c.
FLAG_COBWEB_ROOM_SUNBEAM_TO_SHOW
#define FLAG_COBWEB_ROOM_SUNBEAM_TO_SHOW FLAG_AREA_TEMP(0x07)
A beam let in before the Serpent is slain, waiting to be shown falling into
the lair (scInit, entrance 20), which then sets its flag above.
Referenced by scGaiaRockInsidePlaceDollOnCobwebAltar() and scInit().
Definition at line 65 of file gaia_rock_inside.c.
FLAG_WEST_ALTAR_SUNBEAM_TO_SHOW
#define FLAG_WEST_ALTAR_SUNBEAM_TO_SHOW FLAG_AREA_TEMP(0x08)
Referenced by scGaiaRockInsidePlaceDollOnWestAltar() and scInit().
Definition at line 66 of file gaia_rock_inside.c.
FLAG_EAST_ALTAR_SUNBEAM_TO_SHOW
#define FLAG_EAST_ALTAR_SUNBEAM_TO_SHOW FLAG_AREA_TEMP(0x09)
Referenced by scGaiaRockInsidePlaceDollOnEastAltar() and scInit().
Definition at line 67 of file gaia_rock_inside.c.
FLAG_BUSHES_SUNBEAM_TO_SHOW
#define FLAG_BUSHES_SUNBEAM_TO_SHOW FLAG_AREA_TEMP(0x0a)
Referenced by scGaiaRockInsideCycloneClearsTwinAltarsBushes() and scInit().
Definition at line 68 of file gaia_rock_inside.c.
FLAG_SUSA_ATTACKED_SERPENT
#define FLAG_SUSA_ATTACKED_SERPENT 0x9ac
"At last... The serpent has finally had its fill."
Referenced by scGaiaRockInsideTalkToSusa() and scInit().
Definition at line 70 of file gaia_rock_inside.c.
FLAG_MET_SUSA
#define FLAG_MET_SUSA 0x9de
"Who are you? How did you get here?"
Referenced by scGaiaRockInsideMeetSusa() and scInit().
Definition at line 72 of file gaia_rock_inside.c.
FLAG_LEARNED_SAND
#define FLAG_LEARNED_SAND 0x9ba
Felix touched the slate and learned Sand.
Referenced by scGaiaRockInsideRaiseSandTablet(), scGaiaRockInsideReadSandTablet() and scInit().
Definition at line 74 of file gaia_rock_inside.c.
FLAG_SAND_TABLET_RAISED
#define FLAG_SAND_TABLET_RAISED 0x9ee
The slate rose from the lair's floor.
Referenced by scGaiaRockInsideRaiseSandTablet() and scInit().
Definition at line 76 of file gaia_rock_inside.c.
FLAG_ALTAR_FELL
#define FLAG_ALTAR_FELL 0x9c4
Cyclone tore the cobweb holding it up.
Referenced by scGaiaRockInsideCycloneClearsCobweb() and scInit().
Definition at line 78 of file gaia_rock_inside.c.
FLAG_ENTRANCE_FACES_MOVED
#define FLAG_ENTRANCE_FACES_MOVED 0xa62
Referenced by scGaiaRockInsidePlaceDollOnEntranceAltar() and scInit().
Definition at line 79 of file gaia_rock_inside.c.
FLAG_PLATFORMS_SWAYING
#define FLAG_PLATFORMS_SWAYING 0xa63
Referenced by scGaiaRockInsideCycloneStartsPlatforms() and scInit().
Definition at line 80 of file gaia_rock_inside.c.
FLAG_WEST_STONE_HEAD_RISEN
#define FLAG_WEST_STONE_HEAD_RISEN FLAG_AREA_TEMP(0x03)
The three stone heads that burst out of the cobweb room's wall of handholds under Felix; each stays out until the party enters another area.
Referenced by scGaiaRockInsideClimbOntoWestStoneHead() and scInit().
Definition at line 83 of file gaia_rock_inside.c.
FLAG_MIDDLE_STONE_HEAD_RISEN
#define FLAG_MIDDLE_STONE_HEAD_RISEN FLAG_AREA_TEMP(0x04)
Referenced by scGaiaRockInsideClimbOntoMiddleStoneHead() and scInit().
Definition at line 84 of file gaia_rock_inside.c.
FLAG_EAST_STONE_HEAD_RISEN
#define FLAG_EAST_STONE_HEAD_RISEN FLAG_AREA_TEMP(0x05)
Referenced by scGaiaRockInsideClimbOntoEastStoneHead() and scInit().
Definition at line 85 of file gaia_rock_inside.c.
FLAG_STUMP_SPOTS
#define FLAG_STUMP_SPOTS FLAG_SCENE_TEMP(0x10)
Where the entrance room's two stumps were Moved to, kept so that they stay
there (scGaiaRockInsideRecordStumpSpots).
Referenced by scGaiaRockInsideRecordStumpSpots() and scInit().
Definition at line 88 of file gaia_rock_inside.c.
FLAG_SUSA_WAITS_FOR_CASK
#define FLAG_SUSA_WAITS_FOR_CASK FLAG_SCENE_TEMP(0x05)
While the party stands in Susa's way the cask waits for him, and while it
stands in the cask's way Susa waits for it (scGaiaRockInsideCheckBlocked).
Referenced by scGaiaRockInsideCheckBlocked().
Definition at line 91 of file gaia_rock_inside.c.
FLAG_CASK_WAITS_FOR_SUSA
#define FLAG_CASK_WAITS_FOR_SUSA FLAG_SCENE_TEMP(0x06)
Referenced by scGaiaRockInsideCheckBlocked().
Definition at line 92 of file gaia_rock_inside.c.
FLAG_MIMIC_CHEST_LEFT_OUT
#define FLAG_MIMIC_CHEST_LEFT_OUT FLAG_AREA_TEMP(0xf6)
Leaves the Mimic's chest out of the maze's third room while set. Nothing in the code sets it.
Referenced by scPrepareMap().
Definition at line 149 of file gaia_rock_inside.c.
EXIT_NO_SUNBEAM
#define EXIT_NO_SUNBEAM 20
The exit the lair would take after showing a beam if none waited to be shown: the scene has no exit of this number, but the party only comes in by entrance 20 from a script that has just let a beam in.
Referenced by scInit().
Definition at line 154 of file gaia_rock_inside.c.
RAISED_SUSA_BLOCKED
#define RAISED_SUSA_BLOCKED 42
The cue Susa's hook raises when the party has stood in his or his cask's way
for half a second (scGaiaRockInsideCheckBlocked).
Referenced by scGaiaRockInsideCheckBlocked().
Definition at line 194 of file gaia_rock_inside.c.
MAZE_BORDER
#define MAZE_BORDER 99
A grid metatile's step that marks the grid's border.
Referenced by scGaiaRockInsideLayMaze().
Definition at line 307 of file gaia_rock_inside.c.
MAZE_STEPS
#define MAZE_STEPS 14
The steps of the maze's path, from the way in to the way on.
Referenced by scGaiaRockInsideLayMaze().
Definition at line 319 of file gaia_rock_inside.c.
MAZE_BACK
#define MAZE_BACK 250
PATH_STEP.next's marks for the ways out of the maze, each the exit it takes:
back out from its first step, and on from its last.
Referenced by scGaiaRockInsideLayMaze() and scGaiaRockInsideTakeMazeExit().
Definition at line 342 of file gaia_rock_inside.c.
MAZE_EXIT
#define MAZE_EXIT 251
Referenced by scGaiaRockInsideGetMazeWayOn(), scGaiaRockInsideLayMaze() and scGaiaRockInsideTakeMazeExit().
Definition at line 343 of file gaia_rock_inside.c.
PathWork
#define PathWork ((PATH *)(InventorySnapshot + INVENTORY_SNAPSHOT_SPARE + 256))
The maze's path, kept 256 bytes into the inventory snapshot's spare room.
Referenced by scGaiaRockInsideDrawMazeRoom(), scGaiaRockInsideGetMazeWayOn(), scGaiaRockInsideLayMaze(), scGaiaRockInsidePlantPointsTheWay(), scGaiaRockInsideTakeMazeExit() and scPrepareMap().
Definition at line 354 of file gaia_rock_inside.c.
FLAG_MAZE_PLANT_POINTED
#define FLAG_MAZE_PLANT_POINTED(step) (0xa50 + (step))
Set once the plant on a step of the maze has pointed the way on; it points again whenever the party comes back to that step.
Referenced by scGaiaRockInsidePlantPointsTheWay() and scPrepareMap().
Definition at line 358 of file gaia_rock_inside.c.
FLAG_MAZE_LAID
#define FLAG_MAZE_LAID FLAG_AREA_TEMP(0xf0)
The maze's path is laid for this visit (scGaiaRockInsideLayMaze).
Referenced by scGaiaRockInsideLayMaze().
Definition at line 360 of file gaia_rock_inside.c.
FLAG_PLANT_POINTING
#define FLAG_PLANT_POINTING FLAG_SCENE_TEMP(0x00)
The plant of the step the party stands on points the way: Growth on it does nothing more.
Referenced by scGaiaRockInsidePlantPointsTheWay() and scPrepareMap().
Definition at line 363 of file gaia_rock_inside.c.
ARROW_ANIMATION
#define ARROW_ANIMATION(heading) ((((heading) & 0xc000) >> 14) + 2)
The arrow plant's animation for the heading of the way on: east, south, west and north from animation 2; and whether that heading is south or north, the arrow up or down.
Referenced by scGaiaRockInsidePlantPointsTheWay() and scPrepareMap().
Definition at line 845 of file gaia_rock_inside.c.
ARROW_UP_OR_DOWN
#define ARROW_UP_OR_DOWN(heading) ((heading) & 0x4000)
Referenced by scGaiaRockInsidePlantPointsTheWay() and scPrepareMap().
Definition at line 846 of file gaia_rock_inside.c.
SceneStateWork
#define SceneStateWork (*(SWAY_STATE *)SceneStateWork)
The scene's view of SceneStateWork (system/globals.h).
Referenced by scContigoOfferLuckyDice(), scContigoOfferSuperLuckyDice(), scContigoReportCoinChange(), scGabombaStatueDrawRaisedBlocks(), scGabombaStatueFindBrokenMetatile(), scGabombaStatueIsMetatileTaken(), scGabombaStatueLayChannel(), scGabombaStatueLayPath(), scGabombaStatueLoadBlockPictures(), scGabombaStatueMoveCharge(), scGabombaStatuePoundBlock(), scGabombaStatuePressLeftArrowPanel(), scGabombaStatuePressRightArrowPanel(), scGabombaStatueRaiseBlocks(), scGabombaStatueRedrawChannel(), scGabombaStatueReleaseLeftArrowPanel(), scGabombaStatueReleaseRightArrowPanel(), scGabombaStatueSetBlockAnimation(), scGabombaStatueSetBlocksRaised(), scGabombaStatueSetUpChannelPuzzle(), scGabombaStatueTurnBlockPiece(), scGabombaStatueTurnBlocks(), scGabombaStatueWritePiece(), scGaiaRockInsideStartPlatforms(), scGaiaRockInsideSwayPlatforms(), scInit(), scIsletsDriftIcebergs(), scIsletsInitEastTundaria(), scIsletsStepDownOntoIceberg(), scSeaOfTimeTimeWaves(), scTaopoSwampResetMud(), scTaopoSwampRiseOnBubble(), scTaopoSwampSaveFirmGround(), scTaopoSwampSinkInMud(), scTaopoSwampStepOnFirmGround(), scTrialRoadMoveRival(), scTrialRoadPlayRivalRecording(), scTrialRoadRivalIsWaiting(), scTrialRoadStartRival(), scTrialRoadStopRival() and scTrialRoadWaitForRival().
Definition at line 2335 of file gaia_rock_inside.c.
GRID_WIDTH
#define GRID_WIDTH 28
The maze grid's width, in its metatiles.
Referenced by scGaiaRockInsideLayMaze().
Definition at line 3442 of file gaia_rock_inside.c.
AT
#define AT(x, y) grid->metatiles[(y) * GRID_WIDTH + (x)]
The maze grid's metatile at (x, y), and its address.
Referenced by scGaiaRockInsideLayMaze().
Definition at line 3451 of file gaia_rock_inside.c.
AT_ADDRESS
#define AT_ADDRESS(x, y)
Referenced by scGaiaRockInsideLayMaze().
Definition at line 3452 of file gaia_rock_inside.c.
MAZE_TRIES_PER_STEP
#define MAZE_TRIES_PER_STEP 16
The headings the walk tries from a step before it starts the path again.
Referenced by scGaiaRockInsideLayMaze().
Definition at line 3456 of file gaia_rock_inside.c.
Enumerations in detail
GAIA_ROCK_INSIDE_METATILE_BEHAVIOR
enum GAIA_ROCK_INSIDE_METATILE_BEHAVIOR
The metatile behaviors of the cue tables, by room.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_MAZE_SOUTH | 1 | The four ways out of a maze room, in the order of MAZE_WAY. |
METATILE_BEHAVIOR_MAZE_WEST | ||
METATILE_BEHAVIOR_MAZE_EAST | ||
METATILE_BEHAVIOR_MAZE_NORTH | ||
METATILE_BEHAVIOR_PLATFORMS_BUSHES | 20 | The bushes Cyclone clears: the |
METATILE_BEHAVIOR_SUNBEAM_BUSHES | 20 | patch in the platforms' room, and the cross of five under the beam of sunlight in the twin altars' room. |
METATILE_BEHAVIOR_WEST_STONE_HEAD | 30 | The cobweb room's wall of handholds: its three trap holds, west to east, in its overhead layer (scGaiaRockCueWallMetatile reads them as Felix climbs). |
METATILE_BEHAVIOR_MIDDLE_STONE_HEAD | ||
METATILE_BEHAVIOR_EAST_STONE_HEAD | ||
METATILE_BEHAVIOR_ALTAR_BUSHES | 40 | The cobweb room's bushes: those ringing the altar, those over the Mad Plant and the one it hides under, the cobweb, and the ledge at the cobweb's north edge (a metatile of the web for Cyclone). |
METATILE_BEHAVIOR_MAD_PLANT_BUSHES | ||
METATILE_BEHAVIOR_COBWEB | ||
METATILE_BEHAVIOR_COBWEB_LEDGE | ||
METATILE_BEHAVIOR_MAD_PLANT | ||
METATILE_BEHAVIOR_BY_SUSA | 40 | The lair: the steps just east of where Susa works, the floor before the Serpent, the cup of Dragonsbane at its feet, the Serpent itself, and the Cloud Brand's spot behind its tail. |
METATILE_BEHAVIOR_BEFORE_SERPENT | 42 | |
METATILE_BEHAVIOR_CUP | 50 | |
METATILE_BEHAVIOR_SERPENT | 55 | |
METATILE_BEHAVIOR_SERPENT_WEST | ||
METATILE_BEHAVIOR_CLOUD_BRAND | 77 |
Definition at line 95 of file gaia_rock_inside.c.
anonymous enum
enum { ACTOR_ARROW_PLANT, ACTOR_MIMIC_CHEST, ACTOR_RUSTY_MACE_CHEST, ACTOR_CLOUD_BRAND }
The maze's one actor, in the middle of each of its rooms, and its treasures
in scene_items.s's order: the Mimic's chest in the third room, the Rusty
Mace's in the ninth, and the Cloud Brand hidden behind the stone Serpent in
the lair.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_ARROW_PLANT | 8 | A sprig that Growth turns into an arrow pointing the way on (scGaiaRockInsidePlantPointsTheWay). |
ACTOR_MIMIC_CHEST | FIELD_TREASURE_ACTOR | |
ACTOR_RUSTY_MACE_CHEST | ||
ACTOR_CLOUD_BRAND |
Definition at line 137 of file gaia_rock_inside.c.
GAIA_ROCK_INSIDE_PASSAGE
enum GAIA_ROCK_INSIDE_PASSAGE
The passages within the entrance room and the cobweb room, from one side of a
doorway to the other (scene_exits.h names only those between scenes). An exit
and the entrance on its side of the doorway share a number. In the entrance
room, the doorway east of the altar leads to the stumps and the maze, and the
passages north of the two faces' doorways to the leafy platforms. In the
cobweb room, the three doorways along the wall of handholds lead to the west
and east sides of the altar ringed by bushes and to the great cobweb; the
middle one comes in by GAIA_ROCK_INSIDE_COBWEB_FROM_GAIA_ROCK_INSIDE_MAZE_A
and the east one by
GAIA_ROCK_INSIDE_COBWEB_FROM_GAIA_ROCK_INSIDE_TWIN_ALTARS_SOUTHEAST_A_A.
| Enumerator | Value | Description |
|---|---|---|
GAIA_ROCK_INSIDE_ENTRANCE_TO_STUMPS | 2 | |
GAIA_ROCK_INSIDE_ENTRANCE_STUMPS_TO_ALTAR | ||
GAIA_ROCK_INSIDE_ENTRANCE_TO_WEST_PASSAGE | 5 | |
GAIA_ROCK_INSIDE_ENTRANCE_WEST_PASSAGE_TO_ALTAR | ||
GAIA_ROCK_INSIDE_ENTRANCE_TO_EAST_PASSAGE | 8 | |
GAIA_ROCK_INSIDE_ENTRANCE_EAST_PASSAGE_TO_ALTAR | ||
GAIA_ROCK_INSIDE_ENTRANCE_FROM_STUMPS | 2 | |
GAIA_ROCK_INSIDE_ENTRANCE_STUMPS_FROM_ALTAR | ||
GAIA_ROCK_INSIDE_ENTRANCE_FROM_WEST_PASSAGE | 5 | |
GAIA_ROCK_INSIDE_ENTRANCE_WEST_PASSAGE_FROM_ALTAR | ||
GAIA_ROCK_INSIDE_ENTRANCE_FROM_EAST_PASSAGE | 8 | |
GAIA_ROCK_INSIDE_ENTRANCE_EAST_PASSAGE_FROM_ALTAR | ||
GAIA_ROCK_INSIDE_COBWEB_WALL_TO_ALTAR_WEST | 1 | |
GAIA_ROCK_INSIDE_COBWEB_ALTAR_WEST_TO_WALL | ||
GAIA_ROCK_INSIDE_COBWEB_WALL_TO_ALTAR_EAST | ||
GAIA_ROCK_INSIDE_COBWEB_ALTAR_EAST_TO_WALL | ||
GAIA_ROCK_INSIDE_COBWEB_WALL_TO_COBWEB | ||
GAIA_ROCK_INSIDE_COBWEB_COBWEB_TO_WALL | ||
GAIA_ROCK_INSIDE_COBWEB_WALL_FROM_ALTAR_WEST | 1 | |
GAIA_ROCK_INSIDE_COBWEB_ALTAR_WEST_FROM_WALL | ||
GAIA_ROCK_INSIDE_COBWEB_WALL_FROM_ALTAR_EAST | ||
GAIA_ROCK_INSIDE_COBWEB_WALL_FROM_COBWEB | 5 |
Definition at line 166 of file gaia_rock_inside.c.
anonymous enum
enum { ENTRANCE_LAST_MAZE_WAY_IN, ENTRANCE_LAIR, ENTRANCE_SERPENT_BEATEN, ENTRANCE_BEATEN_BY_SERPENT, … }
The maze rooms' ways in, entrances 1 to ENTRANCE_LAST_MAZE_WAY_IN, and the
lair's entrances: its way in from the south, and where the battle with the
Serpent brings the party back: won, lost without the Dancing Idol, and lost
holding it before any beam of sunlight reaches the lair
(scGaiaRockInsideChallengeSerpent).
| Enumerator | Value | Description |
|---|---|---|
ENTRANCE_LAST_MAZE_WAY_IN | 4 | |
ENTRANCE_LAIR | 9 | |
ENTRANCE_SERPENT_BEATEN | 10 | |
ENTRANCE_BEATEN_BY_SERPENT | 11 | |
ENTRANCE_BEATEN_HOLDING_IDOL | 12 |
Definition at line 201 of file gaia_rock_inside.c.
anonymous enum
enum { ACTOR_SERPENT, ACTOR_CASK, ACTOR_SUSA, ACTOR_KRADEN, … }
The Serpent's lair (SceneIdGaiaRockInsideMaze by entrances 9 to 20). The
Serpent sits on the sand at its north end; Susa works among the casks south
of it.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_SERPENT | 8 | |
ACTOR_CASK | 9 | The cask of Dragonsbane Susa feeds the Serpent |
ACTOR_SUSA | 10 | from: "How many casks does it take to weaken this stupid serpent?" |
ACTOR_KRADEN | 11 | Kraden, who points Felix to the slate once the Serpent is beaten. |
ACTOR_SAND_TABLET | 12 | The slate that teaches Sand (scGaiaRockInsideReadSandTablet). |
Definition at line 213 of file gaia_rock_inside.c.
anonymous enum
enum { ANIM_SUSA_LYING_DOWN, ANIM_SUSA_SLASH, ANIM_SUSA_HEAVE, ANIM_SUSA_SWORD_DRAWN, … }
Susa's sheet's animations in the lair (susa.tsv): lying on his back, worn
out; his sword swung down; heaving a cask up over his head; his sword drawn,
held low; and bent over, pushing a cask.
| Enumerator | Value | Description |
|---|---|---|
ANIM_SUSA_LYING_DOWN | 5 | |
ANIM_SUSA_SLASH | ||
ANIM_SUSA_HEAVE | ||
ANIM_SUSA_SWORD_DRAWN | ||
ANIM_SUSA_PUSH |
Definition at line 229 of file gaia_rock_inside.c.
anonymous enum
enum { ANIM_SERPENT_DRINKING, ANIM_SERPENT_DOZING, ANIM_SERPENT_ROARING, ANIM_SERPENT_STONE }
The Serpent's animations (serpent.tsv): its head down at the cup, drinking;
dozing, glutted with Dragonsbane; rearing up and roaring; and turned to grey
stone.
| Enumerator | Value | Description |
|---|---|---|
ANIM_SERPENT_DRINKING | 1 | |
ANIM_SERPENT_DOZING | ||
ANIM_SERPENT_ROARING | ||
ANIM_SERPENT_STONE |
Definition at line 241 of file gaia_rock_inside.c.
anonymous enum
enum { ACTOR_ENTRANCE_WEST_FACE, ACTOR_ENTRANCE_EAST_FACE, ACTOR_STUMP_A, ACTOR_STUMP_B, … }
The entrance room (SceneIdGaiaRockInsideEntrance): the two great red faces
that stand in the doorways either side of the altar until the Dancing Idol
dances on it, and the two stumps Felix Moves out of the way on the path to
the maze.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_ENTRANCE_WEST_FACE | 8 | |
ACTOR_ENTRANCE_EAST_FACE | 9 | |
ACTOR_STUMP_A | 10 | |
ACTOR_STUMP_B | 11 | |
ACTOR_ENTRANCE_ALTAR | 12 | |
ACTOR_ENTRANCE_DOLL | 13 | The Dancing Idol, set on the altar while it dances. |
Definition at line 253 of file gaia_rock_inside.c.
anonymous enum
enum { ACTOR_WEST_FACE, ACTOR_EAST_FACE, ACTOR_WEST_ALTAR, ACTOR_EAST_ALTAR, … }
The room of the twin altars (SceneIdGaiaRockInsideTwinAltars): a face on the
north wall over each altar. The east altar is the one that falls through from
the cobweb room when Cyclone tears its cobweb.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_WEST_FACE | 8 | |
ACTOR_EAST_FACE | 9 | |
ACTOR_WEST_ALTAR | 10 | |
ACTOR_EAST_ALTAR | 11 | |
ACTOR_TWIN_ALTARS_DOLL | 12 |
Definition at line 267 of file gaia_rock_inside.c.
anonymous enum
enum { ACTOR_FIRST_PLATFORM, ACTOR_LAST_PLATFORM }
The nine leafy platforms Cyclone sets swaying in the platforms' room
(scGaiaRockInsideStartPlatforms).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FIRST_PLATFORM | 8 | |
ACTOR_LAST_PLATFORM | 16 |
Definition at line 278 of file gaia_rock_inside.c.
anonymous enum
enum { ACTOR_COBWEB_FACE, ACTOR_COBWEB_ALTAR, ACTOR_HANGING_VINE, ACTOR_WEST_STONE_HEAD, … }
The cobweb room (SceneIdGaiaRockInsideCobweb): the altar ringed by bushes in
its west part, with a face on the wall beside it, the wall of handholds along
its south part, and the altar on the great cobweb in its east part.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_COBWEB_FACE | 8 | |
ACTOR_COBWEB_ALTAR | 9 | |
ACTOR_HANGING_VINE | 10 | |
ACTOR_WEST_STONE_HEAD | 11 | The three stone heads that burst out of the wall of handholds under Felix (scStoneHeadBurstOut). |
ACTOR_MIDDLE_STONE_HEAD | 12 | |
ACTOR_EAST_STONE_HEAD | 13 | |
ACTOR_COBWEB_DOLL | 14 | |
ACTOR_FALLING_ALTAR | 15 | The altar the cobweb holds up; Cyclone |
ACTOR_GANGWAY | 16 | tears the web and it falls a floor (scGaiaRockInsideCycloneClearsCobweb). |
Definition at line 287 of file gaia_rock_inside.c.
MAZE_WAY
enum MAZE_WAY
The four ways out of a step, in the order PATH_STEP.next keeps them.
| Enumerator | Value | Description |
|---|---|---|
MAZE_SOUTH | ||
MAZE_WEST | ||
MAZE_EAST | ||
MAZE_NORTH |
Definition at line 332 of file gaia_rock_inside.c.
anonymous enum
enum { SUSA_BLOCKED_TICKS, SUSA_BLOCKED_TICKS_MAX }
The ticks Susa or the cask may be held up by the party before he tells it to move, and the most the count keeps.
| Enumerator | Value | Description |
|---|---|---|
SUSA_BLOCKED_TICKS | 30 | |
SUSA_BLOCKED_TICKS_MAX | 35 |
Definition at line 771 of file gaia_rock_inside.c.
anonymous enum
enum { TABLET_RISE_PIXELS }
The pixels the slate rises from the lair's floor, one every 2 ticks.
| Enumerator | Value | Description |
|---|---|---|
TABLET_RISE_PIXELS | 20 |
Definition at line 1591 of file gaia_rock_inside.c.
anonymous enum
enum { FACE_TREMBLE_TICKS, FACE_SLIDE_TICKS_MAX, FACE_SETTLE_TICKS, FACE_TREMBLE_LONG_TICKS }
How a stone face trembles while the doll dances on its altar: for
FACE_TREMBLE_TICKS, then on as it slides aside, for FACE_SLIDE_TICKS_MAX at
most, and FACE_SETTLE_TICKS more once there; a face already slid aside only
trembles, for FACE_TREMBLE_LONG_TICKS.
| Enumerator | Value | Description |
|---|---|---|
FACE_TREMBLE_TICKS | 20 | |
FACE_SLIDE_TICKS_MAX | 300 | |
FACE_SETTLE_TICKS | 10 | |
FACE_TREMBLE_LONG_TICKS | 120 |
Definition at line 1769 of file gaia_rock_inside.c.
anonymous enum
enum { STUMP_SPOTS }
The spots listed in GaiaRockInsideStumpSpots, from 1; 0 is none.
| Enumerator | Value | Description |
|---|---|---|
STUMP_SPOTS | 11 |
Definition at line 2203 of file gaia_rock_inside.c.
anonymous enum
enum { OVERHEAD_PART_HALL, OVERHEAD_PART_WEST_PASSAGE, OVERHEAD_PART_EAST_PASSAGE, OVERHEAD_PART_STUMPS }
The parts of the entrance and cobweb rooms' overhead layer, each marked by its metatiles' collision code, from 100: arriving keeps only the part around the entrance. The entrance room's are the hall in from the cave mouth with the altar at its north end, the west and east passages north of the two faces' doorways, and the room of stumps east of the altar.
| Enumerator | Value | Description |
|---|---|---|
OVERHEAD_PART_HALL | 100 | |
OVERHEAD_PART_WEST_PASSAGE | ||
OVERHEAD_PART_EAST_PASSAGE | ||
OVERHEAD_PART_STUMPS |
Definition at line 3290 of file gaia_rock_inside.c.
anonymous enum
enum { OVERHEAD_PART_WALL, OVERHEAD_PART_ALTAR, OVERHEAD_PART_COBWEB }
The cobweb room's: the wall of handholds along the south, the altar ringed by weeds, and the great cobweb over its pit.
| Enumerator | Value | Description |
|---|---|---|
OVERHEAD_PART_WALL | 100 | |
OVERHEAD_PART_ALTAR | ||
OVERHEAD_PART_COBWEB |
Definition at line 3300 of file gaia_rock_inside.c.
Functions in detail
scMapGridCopyRawMetatiles
static inline void scMapGridCopyRawMetatiles(Sint32 x, Sint32 z, Sint32 width, Sint32 height, Sint32 metatileX, Sint32 metatileZ)
Copies whole metatiles as the map stores them, from a script.
References fdMapCopyRawMetatilesRect() and Sint32.
Referenced by scGaiaRockInsideDrawMazeRoom().
Definition at line 379 of file gaia_rock_inside.c.
scGaiaRockInsideSaveSusa
void scGaiaRockInsideSaveSusa(void)
Stops Susa and the cask he is handling where they are, keeping Susa's place and animation to be given back after a talk.
References fdActorGet(), fdActorResetTargetsAndVelocity(), fdActorSetAnimationSpeed(), GaiaRockInsideCaskPushedScript, GaiaRockInsideCaskThrownScript, GaiaRockInsideSavedSusa, GaiaRockInsideSavedSusaAnimation, GaiaRockInsideSavedSusaAnimationStep, GaiaRockInsideSavedSusaX and GaiaRockInsideSavedSusaZ.
Referenced by scGaiaRockInsideMeetSusa(), scGaiaRockInsideReadSusasMind() and scGaiaRockInsideTalkToSusa().
Definition at lines 442 and 1091 of file gaia_rock_inside.c.
scGaiaRockInsideRestoreSusa
void scGaiaRockInsideRestoreSusa(void)
After a talk, Susa walks back to where scGaiaRockInsideSaveSusa found him and
takes up his animation, and the cask goes on.
References fdActorGet(), fdActorSetAnimation(), fdActorSetAnimationSpeed(), fdActorWalkTo(), GaiaRockInsideCaskPushedScript, GaiaRockInsideCaskThrownScript, GaiaRockInsideSavedSusa, GaiaRockInsideSavedSusaAnimation, GaiaRockInsideSavedSusaAnimationStep, GaiaRockInsideSavedSusaX, GaiaRockInsideSavedSusaZ and scFieldActorWaitForMoveById().
Referenced by scGaiaRockInsideMeetSusa(), scGaiaRockInsideReadSusasMind() and scGaiaRockInsideTalkToSusa().
Definition at lines 443 and 1129 of file gaia_rock_inside.c.
scGaiaRockInsidePlacePlatform
void scGaiaRockInsidePlacePlatform(Sint32 id, Sint32 x, Sint32 z)
void scGaiaRockInsidePlacePlatform(Sint32 id, Sint32 dx, Sint32 dz)
Sends a platform gliding to dx and dz metatiles from its home.
References fdActorGetById(), scFieldActorSetMoveTargetFX() and Sint32.
Referenced by scGaiaRockInsideSwayPlatforms().
Definition at lines 444 and 2324 of file gaia_rock_inside.c.
scGaiaRockInsideReadyPlatform
void scGaiaRockInsideReadyPlatform(Uint32 id, Sint8 animation)
Readies a leafy platform to carry the party: it floats 16 pixels up, keeps the place it stands on now as the home it sways out from, and plays the given animation.
References fdActorGet() and fdActorSetAnimation().
Referenced by scGaiaRockInsideStartPlatforms().
Definition at lines 445 and 2309 of file gaia_rock_inside.c.
scGaiaRockInsideSwayPlatforms
void scGaiaRockInsideSwayPlatforms(void)
The platforms' tick event: every four seconds each platform glides three metatiles out one way, and two seconds later back home. They all stop while the menu is open or Psynergy is cast.
References fdActorGet(), fdScriptGetFlag(), scGaiaRockInsidePlacePlatform() and Sint32.
Referenced by scGaiaRockInsideStartPlatforms().
Definition at lines 446 and 2340 of file gaia_rock_inside.c.
scGaiaRockInsideBlankLayer
void scGaiaRockInsideBlankLayer(Sint32 layer, Sint32 keep)
Fills every metatile of a map layer within the map's bounds with its first metatile, but those of collision code 0 or keep.
References Sint32.
Referenced by scGaiaRockInsideKeepOverheadPart().
Definition at lines 447 and 3783 of file gaia_rock_inside.c.
scGaiaRockInsideLayMaze
void scGaiaRockInsideLayMaze(Sint32 seed)
Lays the maze's path of MAZE_STEPS steps from seed, once a visit, on a random
walk over a 28 by 28 grid, and records each step's ways out.
References fdScriptSetFlag(), RandWork, Sint32, syGameFlagGet(), syHeapAllocateEWRAM(), syHeapCallAlternatePool() and syHeapRelease().
Referenced by scPrepareMap().
Definition at lines 448 and 3460 of file gaia_rock_inside.c.
scGaiaRockInsideDrawMazeRoom
void scGaiaRockInsideDrawMazeRoom(void)
Draws the maze room the party stands in, a 15 by 10 metatile screen copied
from the room's own place in the map (GaiaRockInsideMazeOrigins), on both
layers; the first room is drawn where it stands.
References GaiaRockInsideMazeOrigins, scMapGridCopyRawMetatiles() and Sint32.
Referenced by scPrepareMap().
Definition at lines 449 and 3731 of file gaia_rock_inside.c.
scGaiaRockInsideGetMazeWayOn
Sint32 scGaiaRockInsideGetMazeWayOn(void)
The way on from the step the party stands on: the facing toward the next step or the exit, or -1 if no way leads on.
References Sint32.
Referenced by scGaiaRockInsidePlantPointsTheWay() and scPrepareMap().
Definition at lines 450 and 3757 of file gaia_rock_inside.c.
scGaiaRockInsideStartWallCues
void scGaiaRockInsideStartWallCues(void)
Starts scGaiaRockCueWallMetatile each tick.
References scGaiaRockCueWallMetatile(), Sint32 and sySetTickEvent().
Referenced by scInit().
Definition at lines 454 and 3817 of file gaia_rock_inside.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 466 of file gaia_rock_inside.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
References GaiaRockInsideCobwebExitRegions and MainRoutineStateWork.
Definition at line 471 of file gaia_rock_inside.c.
scGaiaRockInsideJumpDownLedge
static __inline__ void scGaiaRockInsideJumpDownLedge(Sint32 id, Sint32 pose, Sint32 dust)
An actor springs down off the ledge before it (fdActorJumpDownLedge).
References fdActorJumpDownLedge() and Sint32.
Referenced by scGaiaRockInsideJumpDownCobwebPit().
Definition at line 479 of file gaia_rock_inside.c.
scGaiaRockInsideJumpDownCobwebPit
void scGaiaRockInsideJumpDownCobwebPit(void)
Felix walks south off the ledge at the north edge of the cobweb room's pit,
metatile (44, 20), springs down past the altar through the web and drops out
of sight; he lands in the twin altars' room below in a ring of dust
(scGaiaRockInsideRaiseDust). Once the altar has fallen he jumps into the
empty pit the same way.
References fdScriptPlaySound(), fdScriptSetFlag(), MainRoutineStateWork, scFieldActorSetSpritePriority(), scFieldScriptSetExitRequest(), scGaiaRockInsideJumpDownLedge() and scPlaceTranslucentBlackActorFX().
Definition at line 490 of file gaia_rock_inside.c.
scGaiaRockInsideRaiseDust
void scGaiaRockInsideRaiseDust(void)
Felix lands in the twin altars' room after jumping down the cobweb room's pit
(scGaiaRockInsideJumpDownCobwebPit): he drops in from 130 pixels up, east of
the east altar's face, into a ring of dust with a thump that shakes the room,
and sits a moment before he stands.
References fdActorGet(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdEffectAdvanceMotion(), fdMapGridCenterOnFollowedPoint(), fdScriptEnd(), fdScriptPlaySound(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldEffectSpawn(), scFieldMapGridWaitForShakeToSettle(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), Sint32, syCos(), sySin() and sySynch().
Referenced by scInit().
Definition at line 516 of file gaia_rock_inside.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 584 of file gaia_rock_inside.c.
scGaiaRockInsideCaskRests
Sint32 scGaiaRockInsideCaskRests(void)
Susa feeds the Serpent Dragonsbane cask by cask, over and over
(GaiaRockInsideSusaFeedsSerpentScript): he sets a cask down among the others
south of the Serpent, pushes it a metatile east, and throws it up onto the
cup at the Serpent's feet, where it tips and pours; then he tosses the empty
cask aside, where it bursts. The functions below are its steps.
The cask lands and holds still on its animation 3.
References fdActorGet(), fdActorSelectAnimation(), fdActorSetAnimationSpeed() and Sint32.
Definition at line 596 of file gaia_rock_inside.c.
scGaiaRockInsideCaskTips
Sint32 scGaiaRockInsideCaskTips(void)
The cask tips a step over the cup.
References fdActorGet() and Sint32.
Definition at line 607 of file gaia_rock_inside.c.
scGaiaRockInsideCaskRights
Sint32 scGaiaRockInsideCaskRights(void)
The cask rights itself a step.
References fdActorGet() and Sint32.
Definition at line 617 of file gaia_rock_inside.c.
scGaiaRockInsideFlickerPour
void scGaiaRockInsideFlickerPour(ACTOR *actor)
Each tick the pour's size varies at random; shrunk below a sixteenth, it jumps back to an eighth.
References Sint32 and syRandom().
Referenced by scGaiaRockInsideCaskPours().
Definition at line 627 of file gaia_rock_inside.c.
scGaiaRockInsideCaskPours
Sint32 scGaiaRockInsideCaskPours(void)
The cask pours: a spray of Dragonsbane that flickers in size
(scGaiaRockInsideFlickerPour).
References fdActorGet(), fdActorSetSpriteFlags(), fdActorStartScript(), GaiaRockInsidePourScript, scFieldActorCreate(), scGaiaRockInsideFlickerPour() and Sint32.
Definition at line 649 of file gaia_rock_inside.c.
scGaiaRockInsideSetDownCask
Sint32 scGaiaRockInsideSetDownCask(void)
Susa sets a new cask down at his feet.
References fdActorGet(), fdActorStartScript(), GaiaRockInsideCaskSetDownScript and Sint32.
Definition at line 673 of file gaia_rock_inside.c.
scGaiaRockInsideSusaPushesCask
Sint32 scGaiaRockInsideSusaPushesCask(void)
Susa pushes the cask a metatile east, straining.
References fdActorGet(), fdActorSetAttachedEffect(), fdActorStartScript(), GaiaRockInsideCaskPushedScript and Sint32.
Definition at line 681 of file gaia_rock_inside.c.
scGaiaRockInsideSusaThrowsCask
Sint32 scGaiaRockInsideSusaThrowsCask(void)
Susa throws the cask up onto the cup at the Serpent's feet.
References fdActorGet(), fdActorSetAnimationSpeed(), fdActorSetAttachedEffect(), fdActorStartScript(), GaiaRockInsideCaskThrownScript and Sint32.
Definition at line 691 of file gaia_rock_inside.c.
scGaiaRockInsideCaskEmpties
Sint32 scGaiaRockInsideCaskEmpties(void)
On the cup the cask tips, pours and rights itself again.
References fdActorGet(), fdActorSetAnimationSpeed(), fdActorSetAttachedEffect(), fdActorStartScript(), GaiaRockInsideCaskEmptiesScript and Sint32.
Definition at line 705 of file gaia_rock_inside.c.
scGaiaRockInsideCaskBursts
Sint32 scGaiaRockInsideCaskBursts(void)
The tossed cask bursts in four puffs of dust.
References fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdActorStartScript(), fdScriptPlaySound(), GaiaRockInsideBurstScript, scEffectAdvanceMotionAtLeaderPriority(), scFieldActorCreate(), Sint32, syCos() and sySin().
Definition at line 721 of file gaia_rock_inside.c.
scGaiaRockInsideTossCask
Sint32 scGaiaRockInsideTossCask(void)
The empty cask is tossed aside, west or east, away from where the leader stands.
References fdActorGet(), fdActorStartScript(), GaiaRockInsideCaskTossedLeftScript, GaiaRockInsideCaskTossedRightScript, MainRoutineStateWork and Sint32.
Definition at line 756 of file gaia_rock_inside.c.
scGaiaRockInsideCheckBlocked
void scGaiaRockInsideCheckBlocked(ACTOR *actor)
Susa's hook while he works: when the party has stood in his or the cask's way
for SUSA_BLOCKED_TICKS, he tells them to move
(scGaiaRockInsideSusaSaysMoveAside); while one is held up the other waits.
References fdActorGet(), fdScriptClearFlag(), fdScriptGetFlag(), fdScriptSetFlag(), GaiaRockInsideCaskTossedLeftScript and GaiaRockInsideCaskTossedRightScript.
Definition at line 780 of file gaia_rock_inside.c.
scGetActorPlacements
const void *scGetActorPlacements(void)
Returns the current room's actors; the maze's rooms and the lair share a scene, told apart by entrance.
References GaiaRockInsideCobwebActorPlacements, GaiaRockInsideEntranceActorPlacements, GaiaRockInsideLairPlacements, GaiaRockInsidePlacements, GaiaRockInsidePlatformsActorPlacements, GaiaRockInsideTwinAltarsActorPlacements and MainRoutineStateWork.
Definition at line 827 of file gaia_rock_inside.c.
scGaiaRockInsidePulseSidewaysArrow
void scGaiaRockInsidePulseSidewaysArrow(ACTOR *actor)
The update of a maze plant Growth has turned into an arrow: it flashes, and
about twice a second stretches along its arrow with a drip, sideways here and
up and down in scGaiaRockInsidePulseUpDownArrow.
References fdActorSetSpriteColorMode(), fdActorStartScript(), fdScriptPlaySound(), GaiaRockInsideArrowTick, GaiaRockInsideSquashXScript and Sint32.
Referenced by scGaiaRockInsidePlantPointsTheWay() and scPrepareMap().
Definition at line 851 of file gaia_rock_inside.c.
scGaiaRockInsidePulseUpDownArrow
void scGaiaRockInsidePulseUpDownArrow(ACTOR *actor)
As scGaiaRockInsidePulseSidewaysArrow, for an arrow pointing up or down.
References fdActorSetSpriteColorMode(), fdActorStartScript(), fdScriptPlaySound(), GaiaRockInsideArrowTick, GaiaRockInsideSquashYScript and Sint32.
Referenced by scGaiaRockInsidePlantPointsTheWay() and scPrepareMap().
Definition at line 868 of file gaia_rock_inside.c.
scGaiaRockInsidePlantPointsTheWay
void scGaiaRockInsidePlantPointsTheWay(Sint32 unused, Uint32 id)
Felix casts Growth on the little plant in the middle of a maze room, and it grows into a green arrow that flashes and pulses, pointing the way on to the next room. It points again whenever the party comes back to that room on this visit.
References fdActorGet(), fdActorSelectAnimation(), fdScriptSetFlag(), scGaiaRockInsideGetMazeWayOn(), scGaiaRockInsidePulseSidewaysArrow(), scGaiaRockInsidePulseUpDownArrow(), Sint32 and sySynch().
Definition at line 888 of file gaia_rock_inside.c.
scGaiaRockInsideCycloneClearsTwinAltarsBushes
void scGaiaRockInsideCycloneClearsTwinAltarsBushes(void)
Felix casts Cyclone on the cross of five bushes south-east of the east face in the twin altars' room, around metatile (38, 25), where a beam of sunlight shines down from the ceiling. Once the middle bush is gone the beam falls through the hole it hid, metatile (38, 25), and down into the Serpent's lair; Felix hops aside if he stands on the hole. While the Serpent lives, the game first shows the beam falling into the lair.
References fdActorGet(), fdActorSetAttachedEffect(), fdActorSetDestinationOffset(), fdActorTableSnapshot(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldActorWaitForMoveById(), scFieldCycloneCopyTouchedMetatiles(), scFieldMapGridGetMetatileBehaviorAt(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest() and scFieldScriptWait().
Definition at line 914 of file gaia_rock_inside.c.
scGameFlagTest
static __inline__ Sint32 scGameFlagTest(Sint32 flag)
Whether a game flag is set (syGameFlagGet).
References Sint32 and syGameFlagGet().
Referenced by scGaiaRockInsideCycloneStartsPlatforms().
Definition at line 952 of file gaia_rock_inside.c.
scGaiaRockInsideMadPlantLeaps
static __inline__ void scGaiaRockInsideMadPlantLeaps(Sint32 sprite, Sint32 x, Sint32 z)
A Mad Plant leaps out at the leader (fdMadPlantLeapAtLeader).
References fdMadPlantLeapAtLeader() and Sint32.
Referenced by scGaiaRockInsideCycloneMadPlant().
Definition at line 958 of file gaia_rock_inside.c.
scGaiaRockInsideCycloneStartsPlatforms
void scGaiaRockInsideCycloneStartsPlatforms(void)
Felix casts Cyclone on the patch of bushes in the platforms' room, metatiles (16, 25) to (20, 29): they blow away, and the first time nine leafy platforms appear over the room's holes and start to sway, which carry the party across.
References fdScriptSetFlag(), scFieldCycloneCopyTouchedMetatiles(), scGaiaRockInsideStartPlatforms() and scGameFlagTest().
Definition at line 967 of file gaia_rock_inside.c.
scGaiaRockInsideCycloneMadPlant
void scGaiaRockInsideCycloneMadPlant(void)
Felix casts Cyclone on the bushes north-west of the altar in the cobweb room, at the south-east bush of the patch, metatile (20, 21): they blow away, and until it is beaten a Mad Plant hiding there leaps out at him and a battle starts that the party cannot run from.
References fdRequestBattleFromEncounterTable(), fdScriptGetFlag(), MainRoutineStateWork, scFieldCycloneCopyTouchedMetatiles() and scGaiaRockInsideMadPlantLeaps().
Definition at line 981 of file gaia_rock_inside.c.
scGaiaRockInsideCycloneClearsAltarBushes
void scGaiaRockInsideCycloneClearsAltarBushes(void)
Felix casts Cyclone on the bushes ringing the altar in the cobweb room's west part, metatiles (19, 24) to (22, 26), and they blow away, leaving the altar clear.
References scFieldCycloneCopyTouchedMetatiles().
Definition at line 996 of file gaia_rock_inside.c.
scGaiaRockInsideCycloneClearsMadPlantBushes
void scGaiaRockInsideCycloneClearsMadPlantBushes(void)
Felix casts Cyclone on the Mad Plant's bushes, north-west of the altar in the
cobweb room, away from the south-east bush it hides under, metatiles (18, 19)
to (20, 21): they blow away, and no Mad Plant leaps out
(scGaiaRockInsideCycloneMadPlant).
References scFieldCycloneCopyTouchedMetatiles().
Definition at line 1005 of file gaia_rock_inside.c.
scGaiaRockInsideCycloneClearsCobweb
void scGaiaRockInsideCycloneClearsCobweb(void)
Felix casts Cyclone on the great cobweb in the cobweb room's east part, at any of its edge metatiles around (40, 20) to (47, 27). The web tears; the altar on it shakes, Felix steps aside if he stands just south of it, and the altar drops into the pit. The game then shows it landing in the twin altars' room below as the east altar, and brings the party back to the pit's edge.
References fdActorGet(), fdActorSetScript(), fdActorShowEmote(), fdActorTableSnapshot(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered(), fdMapGridGetMetatileBehaviorAt(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), GaiaRockInsideAltarDropsScript, GaiaRockInsideAltarShakesScript, GaiaRockInsideCobwebMetatiles, GaiaRockInsideLeaderStepsBackScript, MainRoutineStateWork, scFieldCycloneCopyTouchedMetatiles(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptWait(), scPlaceTranslucentBlackActorFX(), Sint32 and syGameFlagGet().
Definition at line 1015 of file gaia_rock_inside.c.
scGaiaRockInsideSusaSaysMoveAside
void scGaiaRockInsideSusaSaysMoveAside(void)
Felix stands in the way of Susa or the cask he is pushing in the lair for half a second, and Susa says "Move out of the way there."
References fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.
Definition at line 1079 of file gaia_rock_inside.c.
scGaiaRockInsideMeetSusa
void scGaiaRockInsideMeetSusa(void)
Felix reaches the steps just east of where Susa works in the lair, metatile (32, 28), the first time. Susa turns on him ("Who are you? How did you get here?"), explains he is getting the Serpent to drink Dragonsbane while the view pans to it, tells the party to stand aside, and goes back to work. If he was walking back from tossing a cask, he takes up where he was going.
References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorShowEmote(), fdActorWalkTo(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptSetFlag(), fdScriptShowMessage(), fdScriptStart(), GaiaRockInsideCaskEmptiesScript, GaiaRockInsideCaskPushedScript, GaiaRockInsideCaskTossedLeftScript, GaiaRockInsideCaskTossedRightScript, GaiaRockInsideSavedSusa, GaiaRockInsideSavedSusaX, GaiaRockInsideSavedSusaZ, MainRoutineStateWork, scFieldActorWaitForMoveById(), scFieldActorWaitForScriptEndById(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptWait(), scGaiaRockInsideRestoreSusa(), scGaiaRockInsideSaveSusa(), scScriptCameraFollowActor() and Sint32.
Definition at line 1159 of file gaia_rock_inside.c.
scGaiaRockInsideTalkToSusa
void scGaiaRockInsideTalkToSusa(void)
Felix talks to Susa in the lair. While Susa feeds the Serpent he stops, turns
and tells the party to stand aside ("If you understand, then get out of my
way."). Once he has attacked it and lies hurt, he says the Serpent is still
too strong, or, once any beam of sunlight reaches the lair, "I'm done for...
That dragon has finished me off...". While the party is in his way nothing
happens (scGaiaRockInsideSusaSaysMoveAside speaks instead).
References fdActorFaceActor(), fdActorGet(), fdActorSetAnimationAndWait(), fdScriptEnd(), fdScriptGetFlag(), fdScriptShowMessage(), fdScriptStart(), GaiaRockInsideCaskEmptiesScript, MainRoutineStateWork, scFieldActorWaitForScriptEndById(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptWait(), scGaiaRockInsideRestoreSusa(), scGaiaRockInsideSaveSusa() and Sint32.
Definition at line 1220 of file gaia_rock_inside.c.
scGaiaRockInsideReadSusasMind
void scGaiaRockInsideReadSusasMind(void)
Felix reads Susa's mind in the lair. While Susa works: "How many casks does it take to weaken this stupid serpent?"; once the party holds the Dancing Idol: "Who do they think they are? I'm the only one who can save Kushinada."
References fdActorGet(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), GaiaRockInsideCaskEmptiesScript, scFieldActorWaitForScriptEndById(), scFieldPartyInventoryFindMember(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scGaiaRockInsideRestoreSusa(), scGaiaRockInsideSaveSusa() and Sint32.
Definition at line 1263 of file gaia_rock_inside.c.
scGaiaRockInsideFelixLearnsSand
void scGaiaRockInsideFelixLearnsSand(Sint32 tabletId, Sint32 adeptId)
Felix touches the slate in the lair and learns Sand: the screen warms to gold, the slate and then Felix rise among circling sparks, a white flash, and they settle again.
References fdActorConfigureSpriteColor(), fdActorGetById(), fdActorSelectAnimation(), fdActorSetBlendMode(), fdActorSetMovementTypeById(), fdActorSetSpriteColor(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorStartScript(), fdCameraMoveWithinMapBounds(), fdPaletteFadeSetSource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdScriptWait(), GaiaRockInsideCirclingSparkScript, GaiaRockInsideRisingSparkScript, gmPlayMusic(), LessonAdeptRiseScript, LessonAdeptSettleScript, LessonSeekingSparkScript, LessonTabletRiseScript, LessonTabletSettleScript, scActorEmitSparkles(), scFieldActorCreate(), scFieldVectorAddPolarOffsetFX(), scSetActorSpritePriority(), Sint32, syImportActorCreate(), syRandom(), sySoundPlay() and sySynch().
Referenced by scGaiaRockInsideReadSandTablet().
Definition at line 1306 of file gaia_rock_inside.c.
scGaiaRockInsideReadSandTablet
void scGaiaRockInsideReadSandTablet(void)
Felix searches the slate that rose beside the slain Serpent ("Wielder of
Earth's might, Lay your hands upon this stone."). Kraden steps out of the
party ("That'd be you, Felix. Touch it."), Felix touches it, the ground
shakes and the slate teaches him Sand (scGaiaRockInsideFelixLearnsSand), and
Kraden walks back into the party.
References fdActorFaceDirection(), fdActorGet(), fdActorPlaceOnActor(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetDestination(), fdActorShowEmote(), fdActorWalkTo(), fdBlendScriptResume(), fdBlendScriptSuspend(), fdPartyLearnAbility(), fdScriptEnd(), fdScriptSetFlag(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnFieldMessageShow(), mnMessageShowCentered(), scFieldActorWaitForMoveById(), scFieldMapGridWaitForShakeToSettle(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptWait(), scGaiaRockInsideFelixLearnsSand(), Sint32 and sySynch().
Definition at line 1446 of file gaia_rock_inside.c.
scEffectAdvanceMotionLocal
void scEffectAdvanceMotionLocal(FIELD_OBJECT *object)
The same function as fdEffectAdvanceMotion, under another name. The dust's
update: it moves by its velocity, slowing a little across the ground each
tick, and grows and spins.
References Sint32.
Referenced by scGaiaRockInsideRingOfDust().
Definition at line 1534 of file gaia_rock_inside.c.
scGaiaRockInsideRingOfDust
void scGaiaRockInsideRingOfDust(void)
A ring of dust spreads from where the slate rises, one puff every eighth of a turn.
References scEffectAdvanceMotionLocal(), scFieldEffectSpawn(), Sint32, syCos() and sySin().
Referenced by scGaiaRockInsideRaiseSandTablet() and scInit().
Definition at line 1560 of file gaia_rock_inside.c.
scGaiaRockInsideRaiseSandTablet
void scGaiaRockInsideRaiseSandTablet(void)
Felix steps onto the floor before the slain Serpent, metatiles (29, 24) to (31, 24), and the ground shakes and the slate rises from the floor west of it, in two rings of dust, unless it has risen already.
References fdActorGet(), fdActorRelease(), fdBlendScriptResume(), fdBlendScriptSuspend(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scGaiaRockInsideRingOfDust(), scPlaceTranslucentBlackActorFX(), Sint32, syGameFlagGet() and sySynch().
Definition at line 1599 of file gaia_rock_inside.c.
scGaiaRockInsideChallengeSerpent
void scGaiaRockInsideChallengeSerpent(void)
Felix examines the Serpent on the sand at the north end of the lair, and the
battle with it starts, one the party cannot run from. The fewer beams of
sunlight reach the lair, the more it heals each turn. Won, Susa comes back
and slays it, and the slate rises (scInit, entrance 10). Lost without the
Dancing Idol, Susa scolds the party ("You! You cannot fight the serpent!");
lost holding it before any beam reaches the lair, Susa, lying hurt, says
Dragonsbane alone cannot beat it. Either way the party is sent back to its
restart point. Once it is slain the Serpent, turned to stone, only "looks
almost alive".
References fdRequestBattleFromEncounterTable(), fdScriptGetFlag(), fdScriptSetDefeatDestination(), mnMessageShowCentered(), scFieldPartyInventoryFindMember(), scFieldScriptSetAfterBattleDestination() and Sint32.
Definition at line 1673 of file gaia_rock_inside.c.
scGaiaRockInsideSinkIntoSand
void scGaiaRockInsideSinkIntoSand(void)
Felix casts Sand in the lair and sinks into the sand as a moving mound; he now moves on the map's sand layer, by which he can pass the Serpent to the Cloud Brand behind its tail.
References fdActorGet() and MainRoutineStateWork.
Definition at line 1712 of file gaia_rock_inside.c.
scGaiaRockInsideRiseFromSand
void scGaiaRockInsideRiseFromSand(void)
Felix comes up out of the sand as Sand ends, and walks on the floor again.
References fdActorGet() and MainRoutineStateWork.
Definition at line 1718 of file gaia_rock_inside.c.
scGaiaRockInsideFindCloudBrand
void scGaiaRockInsideFindCloudBrand(void)
Felix examines the floor by the end of the Serpent's tail, metatile (34, 18), which he reaches with Sand, and finds the Cloud Brand. The game raises the hidden item to the raised floor's height there and gives it without the usual message of searching.
References fdActorGet(), fdScriptClearFlag() and fdTalkToActor().
Definition at line 1727 of file gaia_rock_inside.c.
scGaiaRockInsideCheckAltar
void scGaiaRockInsideCheckAltar(void)
Felix examines one of the altars where the Dancing Idol dances: "Felix checked the altar. It looks like something can be placed here." Holding the Dancing Idol, the field menu then opens so that he can use it.
References mnMessageShowCentered(), scFieldPartyInventoryFindMember() and Sint32.
Definition at line 1743 of file gaia_rock_inside.c.
scGaiaRockInsidePlaceDollOnEntranceAltar
void scGaiaRockInsidePlaceDollOnEntranceAltar(void)
Felix uses the Dancing Idol on the altar in the entrance room. The doll hops onto the altar and dances, the two great red faces either side of it glare and glow, and the first time they tremble and slide in toward the altar, uncovering the doorways behind them, west at metatile (25, 42) and east at metatile (36, 42). The doll hops back to Felix.
References fdActorFaceActor(), fdActorGet(), fdActorPlaceOnActor(), fdActorSetAnimation(), fdActorSetDestination(), fdActorSetDestinationOffset(), fdActorSetSpritePriorityDirect(), fdMapGridCopyMetatiles(), fdScriptEnd(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, mnMessageShowCentered(), scFieldActorWaitForMoveById(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), Sint32, syRandom() and sySynch().
Definition at line 1782 of file gaia_rock_inside.c.
scGaiaRockInsidePlaceDollOnWestAltar
void scGaiaRockInsidePlaceDollOnWestAltar(void)
Felix uses the Dancing Idol on the west altar of the twin altars' room. The doll hops onto the altar and dances, and the face on the wall above glares and trembles. The first time, the face slides east and uncovers a shaft of sunlight, whose beam falls into the hole in the floor before it and down into the Serpent's lair; the doll hops back to Felix, and while the Serpent lives the game first shows the beam falling into the lair. The east altar's and the cobweb room's are alike.
References fdActorFaceActorById(), fdActorGetById(), fdActorPlaceOnActor(), fdActorSetAnimationById(), fdActorSetDestination(), fdActorSetDestinationById(), fdActorSetDestinationOffsetById(), fdActorSetSpritePriorityDirect(), fdActorTableSnapshot(), fdActorWaitForMoveById(), fdMapCopyMetatileAttributeRect(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatiles(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, mnFieldMessageShow(), Sint32, syGameFlagGet(), syGameFlagSet(), syImportScriptSetExitRequest(), syRandom(), sySoundPlay() and sySynch().
Definition at line 1877 of file gaia_rock_inside.c.
scGaiaRockInsidePlaceDollOnEastAltar
void scGaiaRockInsidePlaceDollOnEastAltar(void)
Felix uses the Dancing Idol on the east altar of the twin altars' room, the
one that fell from the cobweb room; the face above it slides east and lets in
its beam, as on the west altar (scGaiaRockInsidePlaceDollOnWestAltar).
References fdActorFaceActorById(), fdActorGetById(), fdActorPlaceOnActor(), fdActorSetAnimationById(), fdActorSetDestination(), fdActorSetDestinationById(), fdActorSetSpritePriorityDirect(), fdActorTableSnapshot(), fdActorWaitForMoveById(), fdMapCopyMetatileAttributeRect(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatiles(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, mnFieldMessageShow(), Sint32, syGameFlagGet(), syGameFlagSet(), syImportScriptSetExitRequest(), syRandom(), sySoundPlay() and sySynch().
Definition at line 1986 of file gaia_rock_inside.c.
scGaiaRockInsidePlaceDollOnCobwebAltar
void scGaiaRockInsidePlaceDollOnCobwebAltar(void)
Felix uses the Dancing Idol on the altar ringed by bushes in the cobweb
room's west part; the face on the wall beside it slides west and lets in its
beam, as on the twin altars' west altar
(scGaiaRockInsidePlaceDollOnWestAltar). It is the first beam the walkthrough
lets in.
References fdActorFaceActorById(), fdActorGetById(), fdActorPlaceOnActor(), fdActorSetAnimationById(), fdActorSetDestination(), fdActorSetDestinationById(), fdActorSetDestinationOffset(), fdActorSetSpritePriorityDirect(), fdActorTableSnapshot(), fdActorWaitForMoveById(), fdMapCopyMetatileAttributeRect(), fdMapGridCopyMetatiles(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, mnFieldMessageShow(), Sint32, syGameFlagGet(), syGameFlagSet(), syImportScriptSetExitRequest(), syRandom(), sySoundPlay() and sySynch().
Definition at line 2097 of file gaia_rock_inside.c.
scGaiaRockInsideRecordStumpSpots
Sint32 scGaiaRockInsideRecordStumpSpots(void)
Felix Moves or pushes one of the two stumps on the way to the maze in the
entrance room, east of the altar. Nothing more shows than the stump sliding;
the game remembers where both stumps now stand, so that they are still there
when the party comes back. Each is kept as one of the STUMP_SPOTS places it
can stand, the two in halves of FLAG_STUMP_SPOTS.
References fdActorGet(), GaiaRockInsideStumpSpots, Sint32 and syGameFlagSetByte().
Definition at line 2213 of file gaia_rock_inside.c.
scGaiaRockInsideClimbOntoWestStoneHead
void scGaiaRockInsideClimbOntoWestStoneHead(void)
Climbing the wall of handholds along the cobweb room's south part, Felix
reaches its west trap hold, drawn at metatile (24, 37) (metatile (24, 101) of
the wall's overhead layer): a yellow stone head with red eyes bursts out of
the wall under him in a shower of rocks, he flails, and he is left standing
on it, no longer climbing (scStoneHeadBurstOut). Unlike at the stone heads
outside, he does not fall to the floor: he stays standing up there beside the
head.
References scStoneHeadBurstOut().
Definition at line 2248 of file gaia_rock_inside.c.
scGaiaRockInsideClimbOntoMiddleStoneHead
void scGaiaRockInsideClimbOntoMiddleStoneHead(void)
As scGaiaRockInsideClimbOntoWestStoneHead, for the middle trap hold, a little
lower and to the east: drawn at metatile (28, 39), metatile (28, 103) of the
overhead layer.
References scStoneHeadBurstOut().
Definition at line 2256 of file gaia_rock_inside.c.
scGaiaRockInsideClimbOntoEastStoneHead
void scGaiaRockInsideClimbOntoEastStoneHead(void)
As scGaiaRockInsideClimbOntoWestStoneHead, for the east trap hold: drawn at
metatile (35, 39), metatile (35, 103) of the overhead layer.
References scStoneHeadBurstOut().
Definition at line 2263 of file gaia_rock_inside.c.
scGetCues
const CUE *scGetCues(void)
Returns the current room's cues: the lair has one table while the Serpent lives and the party comes in by its way in, another after the battle.
References GaiaRockInsideCobwebCues, GaiaRockInsideCues, GaiaRockInsideEntranceCues, GaiaRockInsideLairCues, GaiaRockInsidePlatformsCues, GaiaRockInsideSlainLairCues, GaiaRockInsideTwinAltarsCues and MainRoutineStateWork.
Definition at line 2270 of file gaia_rock_inside.c.
scGaiaRockInsideTurnFaceToAltar
void scGaiaRockInsideTurnFaceToAltar(Sint32 faceId, Sint32 altarId)
Turns a stone face toward its altar and lays its glowing eyes over its sprite, drawn in front.
References fdActorFaceActorById(), fdActorGetById(), fdActorSelectAnimation(), fdSpriteAddAnimation() and Sint32.
Referenced by scInit().
Definition at line 2289 of file gaia_rock_inside.c.
scGaiaRockInsideStartPlatforms
void scGaiaRockInsideStartPlatforms(Uint8 animation)
Sets the platforms swaying: unless the party keeps its place, clears the sway's tick and places each platform, playing the given animation, then starts the sway's event.
References fdActorGet(), fdActorSetPosFX(), fdScriptGetFlag(), GaiaRockInsidePlatformPlaces, scFieldPartyGetLeaderActor(), scGaiaRockInsideReadyPlatform(), scGaiaRockInsideSwayPlatforms(), Sint32 and sySetTickEvent().
Referenced by scGaiaRockInsideCycloneStartsPlatforms() and scInit().
Definition at line 2393 of file gaia_rock_inside.c.
scGaiaRockInsideDrawSunbeams
void scGaiaRockInsideDrawSunbeams(void)
Draws the beams of sunlight let into the lair, pale shafts slanting down from its top left and top right: the cobweb room's and the west altar's on the west side, the east altar's and the bushes' on the east. Each side has a picture for each one of its pair alone and one for both, and a strip between the sides that changes with what each shows.
References fdMapGridCopyMetatilesLayered(), Sint32 and syGameFlagGet().
Referenced by scInit().
Definition at line 2425 of file gaia_rock_inside.c.
scInit
Sint32 scInit(void)
Sets up the room the party arrives in. In the lair: the beams of sunlight let in, the stone Serpent and the slate once it is slain, the scene of a new beam falling into the lair (entrance 20), Susa's attack on the Serpent the first time the party comes holding the Dancing Idol, and the scenes after the battle with it (entrances 10 to 12). In the entrance room, the faces and stumps where the party left them; in the platforms' room, the platforms once they sway; in the twin altars' room, the faces, beams and fallen altar, and the altar landing as it falls from the cobweb (entrance 6); in the cobweb room, the vine, the stone heads, the face and the fallen cobweb.
References fdActorFaceActorById(), fdActorFaceDirection(), fdActorFaceDirectionById(), fdActorGet(), fdActorGetById(), fdActorJump(), fdActorRelease(), fdActorSelectAnimation(), fdActorSetAnimationAndWait(), fdActorSetAnimationById(), fdActorSetAnimationSpeed(), fdActorSetAttachedEffect(), fdActorSetDestination(), fdActorSetDestinationById(), fdActorSetHorizontalPosWithTerrain(), fdActorSetMovementTypeById(), fdActorSetSpriteColorMode(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorSetSpritePriorityDirect(), fdActorShowEmote(), fdActorShowEmoteById(), fdActorStartRepeatedMotion(), fdActorStartScript(), fdActorStop(), fdActorWaitForMoveById(), fdActorWaitForScriptEndById(), fdActorWalkTo(), fdActorWalkToById(), fdBlendScriptResume(), fdBlendScriptSuspend(), fdCameraFollowActor(), fdCameraMoveToActorById(), fdCameraMoveToFX(), fdCameraWaitForArrival(), fdEffectStartBlankOverlay(), fdHangingVinePlace(), fdMapCopyMetatileAttributeRect(), fdMapCopyMetatilesRect(), fdMapGridCopyDrawnPicturesRect(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatiles(), fdMapGridCopyMetatilesLayered(), fdMapGridSetScreenShake(), fdMapGridSetShakeFX(), fdPaletteFadeApplyTarget(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptEndLastingPsynergy() and 37 more.
Definition at line 2508 of file gaia_rock_inside.c.
scGaiaRockInsideKeepOverheadPart
void scGaiaRockInsideKeepOverheadPart(Sint32 keep)
Blanks the overhead layer of the entrance or cobweb room but for the part keep, the one around the entrance the party arrives by.
References scGaiaRockInsideBlankLayer() and Sint32.
Referenced by scPrepareMap().
Definition at line 3309 of file gaia_rock_inside.c.
scPrepareMap
Sint32 scPrepareMap(void)
Prepares the map. In the maze it lays the path, from the letters of the leader's name, once a visit, and draws the room the party stands in, with the Mimic's chest in the third room and the Rusty Mace's in the ninth, and the plant's arrow if Growth has shown it; in the lair it starts the slow shimmer of its overhead layer, where the beams of sunlight are drawn. In the entrance room and the cobweb room it blanks the overhead layer but for the part around the entrance.
References fdActorGetById(), fdActorSelectAnimation(), fdBlendScriptStart(), fdMapGridCenterOnFollowedPoint(), fdPartyGetLeaderActor(), GaiaRockInsideLairBlendScript, gmUnitGet(), MainRoutineStateWork, scGaiaRockInsideDrawMazeRoom(), scGaiaRockInsideGetMazeWayOn(), scGaiaRockInsideKeepOverheadPart(), scGaiaRockInsideLayMaze(), scGaiaRockInsidePulseSidewaysArrow(), scGaiaRockInsidePulseUpDownArrow(), Sint32, syGameFlagGet(), syGameFlagSet(), sySynch() and syWordsCopy().
Definition at line 3321 of file gaia_rock_inside.c.
scGaiaRockInsideTakeMazeExit
void scGaiaRockInsideTakeMazeExit(Sint32 direction)
Felix walks out of a maze room by one of its four ways, and a room just like it appears. The way the plant's arrow points leads on to the next room, and the way the party came in leads back to the last. Going straight on where the path turns leads back along it, to the room where it last turned, and the fourth way leads back into the same room. South out of the first room leads back to the entrance room, and the way on from the fourteenth into the Serpent's lair.
References fdScriptPlaySound(), scFieldScriptSetExitRequest() and Sint32.
Definition at line 3708 of file gaia_rock_inside.c.
Variables in detail
GaiaRockInsideBurstScript
extern Uint32 GaiaRockInsideBurstScript[]
Uint32 GaiaRockInsideBurstScript[]
Referenced by scGaiaRockInsideCaskBursts().
Definition at lines 389 and 3833 of file gaia_rock_inside.c.
GaiaRockInsideCaskTossedLeftScript
extern Sint32 GaiaRockInsideCaskTossedLeftScript[]
Referenced by scGaiaRockInsideCheckBlocked(), scGaiaRockInsideMeetSusa() and scGaiaRockInsideTossCask().
Definition at line 390 of file gaia_rock_inside.c.
GaiaRockInsideCaskTossedRightScript
extern Sint32 GaiaRockInsideCaskTossedRightScript[]
Referenced by scGaiaRockInsideCheckBlocked(), scGaiaRockInsideMeetSusa() and scGaiaRockInsideTossCask().
Definition at line 391 of file gaia_rock_inside.c.
GaiaRockInsidePlacements
extern ACTOR_PLACE GaiaRockInsidePlacements[]
Referenced by scGetActorPlacements().
Definition at line 392 of file gaia_rock_inside.c.
GaiaRockInsideLairPlacements
extern ACTOR_PLACE GaiaRockInsideLairPlacements[]
Referenced by scGetActorPlacements().
Definition at line 393 of file gaia_rock_inside.c.
GaiaRockInsideTwinAltarsActorPlacements
extern ACTOR_PLACE GaiaRockInsideTwinAltarsActorPlacements[]
Referenced by scGetActorPlacements().
Definition at line 394 of file gaia_rock_inside.c.
GaiaRockInsidePlatformsActorPlacements
extern ACTOR_PLACE GaiaRockInsidePlatformsActorPlacements[]
Referenced by scGetActorPlacements().
Definition at line 395 of file gaia_rock_inside.c.
GaiaRockInsideCobwebActorPlacements
extern ACTOR_PLACE GaiaRockInsideCobwebActorPlacements[]
Referenced by scGetActorPlacements().
Definition at line 396 of file gaia_rock_inside.c.
GaiaRockInsideSquashYScript
extern Sint32 GaiaRockInsideSquashYScript[]
Referenced by scGaiaRockInsidePulseUpDownArrow().
Definition at line 397 of file gaia_rock_inside.c.
GaiaRockInsideLeaderStepsBackScript
extern Uint32 GaiaRockInsideLeaderStepsBackScript[]
Uint32 GaiaRockInsideLeaderStepsBackScript[]
Referenced by scGaiaRockInsideCycloneClearsCobweb().
Definition at lines 398 and 3863 of file gaia_rock_inside.c.
GaiaRockInsideAltarShakesScript
extern Sint32 GaiaRockInsideAltarShakesScript[]
Sint32 GaiaRockInsideAltarShakesScript[]
References Sint32.
Referenced by scGaiaRockInsideCycloneClearsCobweb().
Definition at lines 399 and 3841 of file gaia_rock_inside.c.
GaiaRockInsideAltarDropsScript
extern Sint32 GaiaRockInsideAltarDropsScript[]
Sint32 GaiaRockInsideAltarDropsScript[]
References Sint32.
Referenced by scGaiaRockInsideCycloneClearsCobweb().
Definition at lines 400 and 3852 of file gaia_rock_inside.c.
GaiaRockInsideCaskThrownScript
extern Sint32 GaiaRockInsideCaskThrownScript[]
Referenced by scGaiaRockInsideRestoreSusa(), scGaiaRockInsideSaveSusa() and scGaiaRockInsideSusaThrowsCask().
Definition at line 401 of file gaia_rock_inside.c.
GaiaRockInsideCaskEmptiesScript
extern Sint32 GaiaRockInsideCaskEmptiesScript[]
Referenced by scGaiaRockInsideCaskEmpties(), scGaiaRockInsideMeetSusa(), scGaiaRockInsideReadSusasMind() and scGaiaRockInsideTalkToSusa().
Definition at line 402 of file gaia_rock_inside.c.
GaiaRockInsideLairBlendScript
extern Uint16 GaiaRockInsideLairBlendScript[12]
Uint16 GaiaRockInsideLairBlendScript[12]
The lair's blend, copied over the map's own blend script: the overhead layer blended over the rest at 4, 6, 8 and 6 sixteenths, 30 ticks each, over and over.
Referenced by scPrepareMap().
Definition at lines 403 and 3939 of file gaia_rock_inside.c.
GaiaRockInsideCobwebExitRegions
extern SCENE_REGION GaiaRockInsideCobwebExitRegions[]
Referenced by scGetExitRegions().
Definition at line 407 of file gaia_rock_inside.c.
GaiaRockInsidePourScript
extern Uint32 GaiaRockInsidePourScript[]
Uint32 GaiaRockInsidePourScript[]
Referenced by scGaiaRockInsideCaskPours().
Definition at lines 408 and 3825 of file gaia_rock_inside.c.
GaiaRockInsideCaskSetDownScript
extern Sint32 GaiaRockInsideCaskSetDownScript[]
Referenced by scGaiaRockInsideSetDownCask().
Definition at line 409 of file gaia_rock_inside.c.
GaiaRockInsideCaskPushedScript
extern Uint32 GaiaRockInsideCaskPushedScript[]
Referenced by scGaiaRockInsideMeetSusa(), scGaiaRockInsideRestoreSusa(), scGaiaRockInsideSaveSusa() and scGaiaRockInsideSusaPushesCask().
Definition at line 410 of file gaia_rock_inside.c.
GaiaRockInsideEntranceActorPlacements
extern ACTOR_PLACE GaiaRockInsideEntranceActorPlacements[]
Referenced by scGetActorPlacements().
Definition at line 411 of file gaia_rock_inside.c.
GaiaRockInsideArrowTick
extern Sint32 GaiaRockInsideArrowTick
Referenced by scGaiaRockInsidePulseSidewaysArrow() and scGaiaRockInsidePulseUpDownArrow().
Definition at line 412 of file gaia_rock_inside.c.
GaiaRockInsideSquashXScript
extern Sint32 GaiaRockInsideSquashXScript[]
Referenced by scGaiaRockInsidePulseSidewaysArrow() and scInit().
Definition at line 413 of file gaia_rock_inside.c.
GaiaRockInsideCobwebMetatiles
extern METATILE_POINT GaiaRockInsideCobwebMetatiles[12]
METATILE_POINT GaiaRockInsideCobwebMetatiles[]
The twelve metatiles of the cobweb, as column and row; Cyclone clears the web when it reaches one
of them (scGaiaRockInsideCycloneClearsCobweb).
Referenced by scGaiaRockInsideCycloneClearsCobweb().
Definition at lines 414 and 3872 of file gaia_rock_inside.c.
OrbitSparkScript
extern Uint32 OrbitSparkScript[]
Uint32 OrbitSparkScript[]
Referenced by scOrbitSparkSpawn().
Definition at lines 415 and 3877 of file gaia_rock_inside.c.
GaiaRockInsideRisingSparkScript
extern Uint32 GaiaRockInsideRisingSparkScript[]
Uint32 GaiaRockInsideRisingSparkScript[]
Referenced by scGaiaRockInsideFelixLearnsSand().
Definition at lines 417 and 3883 of file gaia_rock_inside.c.
GaiaRockInsideCirclingSparkScript
extern Sint32 GaiaRockInsideCirclingSparkScript[]
Sint32 GaiaRockInsideCirclingSparkScript[]
References scOrbiterSpiral() and Sint32.
Referenced by scGaiaRockInsideFelixLearnsSand().
Definition at lines 418 and 3890 of file gaia_rock_inside.c.
GaiaRockInsideStumpSpots
extern Sint16 GaiaRockInsideStumpSpots[][2]
Sint16 GaiaRockInsideStumpSpots[][2]
The metatiles the two stumps may be moved onto, numbered from 1; row 0 is none.
Referenced by scGaiaRockInsideRecordStumpSpots() and scInit().
Definition at lines 423 and 3901 of file gaia_rock_inside.c.
GaiaRockInsideCues
extern CUE GaiaRockInsideCues[]
Referenced by scGetCues().
Definition at line 424 of file gaia_rock_inside.c.
GaiaRockInsideLairCues
extern CUE GaiaRockInsideLairCues[]
Referenced by scGetCues().
Definition at line 425 of file gaia_rock_inside.c.
GaiaRockInsideSlainLairCues
extern CUE GaiaRockInsideSlainLairCues[]
Referenced by scGetCues().
Definition at line 426 of file gaia_rock_inside.c.
GaiaRockInsideEntranceCues
extern CUE GaiaRockInsideEntranceCues[]
Referenced by scGetCues().
Definition at line 427 of file gaia_rock_inside.c.
GaiaRockInsideTwinAltarsCues
extern CUE GaiaRockInsideTwinAltarsCues[]
Referenced by scGetCues().
Definition at line 428 of file gaia_rock_inside.c.
GaiaRockInsidePlatformsCues
extern CUE GaiaRockInsidePlatformsCues[]
Referenced by scGetCues().
Definition at line 429 of file gaia_rock_inside.c.
GaiaRockInsideCobwebCues
extern CUE GaiaRockInsideCobwebCues[]
Referenced by scGetCues().
Definition at line 430 of file gaia_rock_inside.c.
GaiaRockInsidePlatformPlaces
extern Sint16 GaiaRockInsidePlatformPlaces[][2]
Sint16 GaiaRockInsidePlatformPlaces[][2]
The swaying platforms' places, in metatiles.
Referenced by scGaiaRockInsideStartPlatforms().
Definition at lines 431 and 3906 of file gaia_rock_inside.c.
GaiaRockInsideSerpentGlowScript
extern Uint32 GaiaRockInsideSerpentGlowScript[]
Uint32 GaiaRockInsideSerpentGlowScript[]
The same script as FieldEffectMediumScript, under another name.
Referenced by scInit().
Definition at lines 432 and 3910 of file gaia_rock_inside.c.
GaiaRockInsideSerpentSmokeScript
extern Uint32 GaiaRockInsideSerpentSmokeScript[]
Uint32 GaiaRockInsideSerpentSmokeScript[]
The same script as FieldEffectMediumScript, under another name.
Referenced by scInit().
Definition at lines 433 and 3921 of file gaia_rock_inside.c.
GaiaRockInsideAltarShadowScript
extern Uint32 GaiaRockInsideAltarShadowScript[]
Uint32 GaiaRockInsideAltarShadowScript[]
The dark shadow under the east altar as it drops into the twin altars' room.
Referenced by scInit().
Definition at lines 434 and 3932 of file gaia_rock_inside.c.
GaiaRockInsideSusaFeedsSerpentScript
extern Sint32 GaiaRockInsideSusaFeedsSerpentScript[]
Referenced by scInit().
Definition at line 435 of file gaia_rock_inside.c.
GaiaRockInsideMazeOrigins
extern Sint8 GaiaRockInsideMazeOrigins[][2]
Referenced by scGaiaRockInsideDrawMazeRoom().
Definition at line 436 of file gaia_rock_inside.c.
GaiaRockInsideIdleScript
extern Uint32 GaiaRockInsideIdleScript[]
Definition at line 439 of file gaia_rock_inside.c.
GaiaRockInsideStumpScript
extern Uint32 GaiaRockInsideStumpScript[]
Definition at line 440 of file gaia_rock_inside.c.
GaiaRockInsideSavedSusa
ACTOR GaiaRockInsideSavedSusa
Susa as he was when he stopped to talk, with his place and animation, to be
given back after (scGaiaRockInsideSaveSusa).
Referenced by scGaiaRockInsideMeetSusa(), scGaiaRockInsideRestoreSusa() and scGaiaRockInsideSaveSusa().
Definition at line 459 of file gaia_rock_inside.c.
GaiaRockInsideSavedSusaX
Sint32 GaiaRockInsideSavedSusaX
References Sint32.
Referenced by scGaiaRockInsideMeetSusa(), scGaiaRockInsideRestoreSusa() and scGaiaRockInsideSaveSusa().
Definition at line 460 of file gaia_rock_inside.c.
GaiaRockInsideSavedSusaZ
Sint32 GaiaRockInsideSavedSusaZ
References Sint32.
Referenced by scGaiaRockInsideMeetSusa(), scGaiaRockInsideRestoreSusa() and scGaiaRockInsideSaveSusa().
Definition at line 461 of file gaia_rock_inside.c.
GaiaRockInsideSavedSusaAnimation
Sint32 GaiaRockInsideSavedSusaAnimation
References Sint32.
Referenced by scGaiaRockInsideRestoreSusa() and scGaiaRockInsideSaveSusa().
Definition at line 462 of file gaia_rock_inside.c.
GaiaRockInsideSavedSusaAnimationStep
Sint32 GaiaRockInsideSavedSusaAnimationStep
References Sint32.
Referenced by scGaiaRockInsideRestoreSusa() and scGaiaRockInsideSaveSusa().
Definition at line 463 of file gaia_rock_inside.c.