src/scene/anemos_inner_sanctum.c
The Anemos Inner Sanctum, the hidden dungeon under Contigo, reached by Teleport from the circle in the middle of the town. More…
#include "field/field_engine.h"#include "field/script_inline.h"#include "field/field_engine_script.h"#include "macros.h"#include "game/game.h"#include "field/call.h"#include "scene/scene.h"#include "field/actor_script.h"#include "scene/mars_lighthouse_entrance.h"#include "graphics/palette_buffers.h"#include "shared/teleport_shimmer.c"#include "shared/actor_set_sprite_priority.c"#include "shared/actor_create_silhouette.c"#include "../field/field_effect_move.c"#include "shared/actor_wait_until_landed.c"#include "text/msg_ids.h"#include "shared/field_effect_set_sprite_priority.c"#include "shared/cracked_tile_mask.c"#include "shared/cracked_tile_find.c"#include "shared/leader_center_in_metatile.c"#include "shared/cracked_tile_crack.c"#include "shared/cracked_tile_fall.c"#include "../field/field_effect_advance_motion.c"#include "shared/cracked_tile_step.c"#include "shared/cracked_tile_place_landing.c"#include "shared/field_effect_duration_scripts.c"#include "shared/teleport_circle_palette.c"#include "shared/scene_entrances_default.c"
Structures
| Name | Description | |
|---|---|---|
struct | SPARK | A spark sent spiralling in to a Djinni's plate, as an actor's motion fields hold it: the plate it closes on (originX, originZ), the radius, angle and spin of its spiral, and its height, which drops by fall each step. |
Macros
| Name | Description | |
|---|---|---|
#define | ACTOR_MIMIC_STONE_A ACTOR_FIRST_PLACED | The mimic stones room's three mimic stones (SPRITE_MIMIC_STONE), one in each room off its north side: entered from the south by entrance 1, 3 or 5, that room's stone mirrors the leader's steps (scAnemosInnerSanctumMimicLeader) until it reaches its button or falls into a hole. |
#define | ACTOR_MIMIC_STONE_B (ACTOR_FIRST_PLACED + 1) | |
#define | ACTOR_MIMIC_STONE_C (ACTOR_FIRST_PLACED + 2) | |
#define | FLAG_MIMIC_STONE_A_ON_BUTTON FLAG_AREA_TEMP(0x01) | Set as each mimic stone reaches its button and opens its room's north door (scAnemosInnerSanctumOpenMimicStoneDoor), so that the set-up leaves it there. |
#define | FLAG_MIMIC_STONE_B_ON_BUTTON FLAG_AREA_TEMP(0x02) | |
#define | FLAG_MIMIC_STONE_C_ON_BUTTON FLAG_AREA_TEMP(0x03) | |
#define | FLAG_ON_SYMBOL FLAG_SCENE_TEMP(0x00) | Set while the leader stands on one of the gate room's element symbols, so that it lights its plates once a visit to it. |
#define | FLAG_SWITCH_PRESSED FLAG_SCENE_TEMP(0x00) | Set while the boulder room's switch is held down by the leader. |
#define | FLAG_MIMIC_STONE_STARTED FLAG_SCENE_TEMP(0x00) | Set while the mimic stones room's mimic stone follows the leader or rests on its button, so that stepping onto its floor starts it no more. |
#define | FLAG_ROUND_SWITCH_PRESSED (n) (FLAG_SCENE_TEMP(0x00) + (n)) | Set as each round switch is pressed, lighting it; the macro takes the switch's place from the first. |
#define | FLAG_LIFT_READY FLAG_SCENE_TEMP(0x07) | Set once all seven round switches are pressed: the room's lift floats, ready to carry the party. |
#define | FLAG_ANEMOS_ELEVATOR_FIRST_PILLAR_PLACED 0xa80 | The sanctum's lasting flags: each pillar Moved onto its place, each element's torch lit, the gate room's north door opened by all four, and Charon's slate's words heard. |
#define | FLAG_ANEMOS_ELEVATOR_SECOND_PILLAR_PLACED 0xa81 | |
#define | FLAG_ANEMOS_BOULDER_FIRST_PILLAR_PLACED 0xa82 | |
#define | FLAG_ANEMOS_BOULDER_SECOND_PILLAR_PLACED 0xa83 | |
#define | FLAG_ANEMOS_BOULDER_THIRD_PILLAR_PLACED 0xa84 | |
#define | FLAG_ANEMOS_BOULDER_PILLAR_B_PLACED 0xa85 | |
#define | FLAG_ANEMOS_CRACKED_FLOOR_FIRST_PILLAR_PLACED 0xa86 | |
#define | FLAG_ANEMOS_VENUS_TORCH_LIT 0xa87 | |
#define | FLAG_ANEMOS_MERCURY_TORCH_LIT 0xa88 | |
#define | FLAG_ANEMOS_MARS_TORCH_LIT 0xa89 | |
#define | FLAG_ANEMOS_JUPITER_TORCH_LIT 0xa8a | |
#define | FLAG_ANEMOS_NORTH_DOOR_OPEN 0xa8b | |
#define | FLAG_ANEMOS_CHARON_SLATE_SPOKE 0xa8c | |
#define | ACTOR_MIMIC_STONES_LIFT (ACTOR_FIRST_PLACED + 3) | The mimic stones room's lift (SPRITE_ARROW_PANEL), which brings the party up from the cracked floor room (scAnemosInnerSanctumArriveOnMimicStonesLift). |
#define | MIDDLE_LAYER_COLUMN (MAPGRID_SIZE / 2) | The first column of the middle layer's metatiles in these rooms' maps (their map_layer 128, 0): the gate room draws its plates, torches' light and pillar of light there. |
#define | OVERHEAD_LAYER_ROW (MAPGRID_SIZE / 2) | The first row of the overhead layer's metatiles in these rooms' maps (their map_layer 0, 128). |
#define | LIT_PICTURE_ROWS 26 | How far below a plate or the pillar of light its lit picture is kept, in metatiles. |
#define | VENUS_TORCH_X 520 | The four torches over the gate room's north door, on the wall's row z 152: each element's x and the height its flame burns at. |
#define | VENUS_TORCH_Y 48 | |
#define | MERCURY_TORCH_X 552 | |
#define | MERCURY_TORCH_Y 48 | |
#define | MARS_TORCH_X 504 | |
#define | MARS_TORCH_Y 40 | |
#define | JUPITER_TORCH_X 568 | |
#define | JUPITER_TORCH_Y 40 | |
#define | TORCH_ROW_Z 152 | |
#define | SPARK_RING_STEPS 16 | A spark ring's sixteenths of a turn; an orb starts at every second one. |
#define | FLAG_ELEVATOR_LIFT_RISEN FLAG_AREA_TEMP(0x00) | Set when the elevator room's lift has carried the party up; it stays above. |
#define | FLAG_MIMIC_STONES_LIFT_RISEN FLAG_AREA_TEMP(0x04) | Set when the cracked floor room's lift has carried the party up to the mimic stones room; it stays there, and the round switches below stay pressed. |
#define | MIMIC_STONE_LINE_Z 248 | The row the mimic stones start on: one follows the leader's steps only while he is north of it, and never goes south of it. |
#define | DEFINE_ANEMOS_INNER_SANCTUM_EXIT_IF (name, exit) | Defines a step cue on a cracked floor: when a tile gives way under the leader, the party leaves by exit exit, through the floor. |
#define | METATILE_PUSH_SLOT_ENTRY syOAMAddSpriteAtDepth | |
#define | TELEPORT_CIRCLE_FIRST_ENTRY 89 |
Enumerations
| Name | Description | |
|---|---|---|
enum | ANEMOS_INNER_SANCTUM_ELEVATOR_ACTOR_ID { ACTOR_ELEVATOR_FIRST_PILLAR, ACTOR_ELEVATOR_LIFT, ACTOR_ELEV … } | The actors of the rooms Move and the lifts work in, numbering each room's placement table: stone pillars (SPRITE_STONE_PILLAR) Moved onto their places, and the lifts (SPRITE_ARROW_PANEL) the round switches ready. |
enum | ANEMOS_INNER_SANCTUM_BOULDER_ACTOR_ID { ACTOR_BOULDER_FIRST_PILLAR, ACTOR_ROUND_BOULDER, ACTOR_BOULD … } | The boulder room. |
enum | ANEMOS_INNER_SANCTUM_CRACKED_FLOOR_ACTOR_ID { ACTOR_CRACKED_FLOOR_LIFT, ACTOR_CRACKED_FLOOR_FIRST_PILLAR, … } | The cracked floor room. |
enum | anonymous enum { ENTRANCE_BY_MIMIC_STONE_A, ENTRANCE_BY_MIMIC_STONE_B, ENTRAN … } | The mimic stones room's ways in from the south, one below each mimic stone. |
enum | ANEMOS_INNER_SANCTUM_SYMBOL_CUE { CUE_TELEPORT_CIRCLE, CUE_VENUS_SYMBOL, CUE_MERCURY_SYMBOL, C … } | The step cues of the gate room: its four element symbols, whose plates light for the Djinn of the element the party has (scAnemosInnerSanctumLightSymbol), the floor between them, and the Teleport circle in its middle. |
enum | anonymous enum { CUE_FIRST_ROUND_SWITCH, ROUND_SWITCHES } | The first of the seven round switches' step cues (scAnemosInnerSanctumPressRoundSwitch). |
enum | anonymous enum { CUE_LIFT } | The ready lift's step cue, in the elevator and cracked floor rooms. |
enum | anonymous enum { CUE_SWITCH, CUE_EAST_OF_SWITCH } | The boulder room's step cues: the switch, and the metatile east of it that a leader stepping off it crosses. |
enum | anonymous enum { CUE_BEFORE_CHARON_SLATE } | The step cue before Charon's slate. |
enum | ANEMOS_INNER_SANCTUM_ELEVATOR_WAY { WAY_ELEVATOR_NORTHWEST_TO_SOUTHWEST, WAY_ELEVATOR_NORTHWEST_ … } | The ways between the rooms each of these maps holds, named by the room a way leaves and the room it leads to, each room by where it lies on its map; a way's exit and the entrance at its foot share its number, so the way back is the entrance the exit leads to. |
enum | ANEMOS_INNER_SANCTUM_BOULDER_WAY { WAY_BOULDER_NORTH_TO_MIDDLE, WAY_BOULDER_NORTHEAST_TO_MIDDLE … } | The boulder room's: its north, north-east, west, middle and south rooms, the north-east one with two ways down, west and east. |
enum | ANEMOS_INNER_SANCTUM_CRACKED_FLOOR_WAY { WAY_CRACKED_FLOOR_NORTHEAST_TO_SOUTHEAST, WAY_CRACKED_FLOOR_ … } | The cracked floor room's: its north-east and south-east rooms, and the second cracked floor's room west of them. |
enum | ANEMOS_INNER_SANCTUM_MIMIC_STONES_WAY { WAY_MIMIC_STONES_SOUTH_TO_SOUTHEAST, WAY_MIMIC_STONES_SOUTHE … } | The mimic stones room's: its south and south-east rooms. |
enum | anonymous enum { CUE_FIRST_CRACKED_FLOOR, CUE_SECOND_CRACKED_FLOOR } | The cracked floor room's two cracked floors: a metatile's step cue is its floor's when whole, the next when cracked. |
enum | anonymous enum { THROUGH_FIRST_CRACKED_FLOOR, THROUGH_SECOND_CRACKED_FLOOR } | The cracked floor room's ways down through its cracked floors, each an exit and the entrance below of one number. |
enum | ANEMOS_INNER_SANCTUM_MIMIC_STONE_CUE { CUE_MIMIC_STONE_START, CUE_MIMIC_STONE_HOLE, CUE_MIMIC_STONE … } | The mimic stones room's step cues by the mimic stones: the floor where the leader's steps start one following, and the metatile behaviors a following stone stops on, a hole it falls into and the button that opens its door. |
Functions
| Name | Description | |
|---|---|---|
BSS_DATA | ALIGNED (4) | The blend of one turn of the two maps' alternation in the throne room, a step every four ticks: the first map fades up and down, then the second. |
void | scTeleportArriveWhirling (void) | The party arrives by Teleport on the circle: the room fades in grey while the circle shimmers and the whirl plays, then its colours come back. |
void | scTeleportStopShimmer (void) | Stops the shimmer, leaving the next transition a backdrop fade. |
void | fdTeleportPlaySparks (void) | The leaving half of a teleport, fdTeleportPlayWhirl's companion in the same scenes: the leader raises both arms in changing colours, spins faster and faster as sparks burst from it, shrinks away and is hidden. |
void | scLeaderCenterInMetatile (void) | Walks the leader to the middle of the metatile he stands on, as he does before dropping through a cracked tile, sets him there and lowers the camera's point 8 pixels. |
void | scAnemosInnerSanctumLightSymbol (void) | Stepping onto an element's symbol in the gate room: the leader raises his arms in a pillar of light and a Djinni of the element rises over him, and each of the element's Djinn the party has found sends a spark to its own plate. |
void | scAnemosInnerSanctumStepOffSymbol (void) | Nothing visible happens as Felix steps off a symbol onto the floor between them; the game lets the symbols be stepped onto again. |
void | scAnemosInnerSanctumStartMovingBlock (void) | Nothing visible of its own happens as Felix starts to move a pillar with Move; in the boulder and cracked floor rooms, the game closes the stretch of sand by the pillar's place while it is moving, so that a mound of sand cannot pass under it, and opens a metatile or two beside it. |
void | scAnemosInnerSanctumFinishMovingBlock (void) | Once Felix has moved a pillar with Move: a pillar left in the place it belongs stays there on later visits, as a shortcut. |
void | scAnemosInnerSanctumPressRoundSwitch (void) | A round switch stepped on: it lights under the leader in a burst of blue rings and its scene flag is set; once all seven are pressed, the room's lift floats up with its arrow pointing up (FLAG_LIFT_READY), ready to carry the party. |
void | scAnemosInnerSanctumRideLiftUp (void) | Felix steps onto the lift once it floats ready: he walks to its middle, turns to face south, and it carries the party up out of the room to the room above. |
void | scAnemosInnerSanctumSinkIntoSand (void) | Felix casts Sand standing on sand and sinks into it; as a mound of sand he can then travel along the stretch of sand, where on foot he cannot pass, until it wears off. |
void | scAnemosInnerSanctumEndSand (void) | Nothing visible of its own: as Sand wears off and Felix rises from the sand, the game sets him walking on the ground's metatiles again. |
void | scAnemosInnerSanctumPressSwitch (void) | Stepping onto the switch: the leader walks onto its middle, it sinks with a click and the door west of it opens with a thump. |
void | scAnemosInnerSanctumStepOffSwitch (void) | Stepping off the pressed switch to the east: it rises again with a click and its door shuts with a thump. |
void | scAnemosInnerSanctumFallThroughFirstCracks (void) | Stepping onto the first cracked floor: once a tile gives way, the party falls through to the part of the room below. |
void | scAnemosInnerSanctumFallThroughSecondCracks (void) | As scAnemosInnerSanctumFallThroughFirstCracks, for the second floor. |
void | scAnemosInnerSanctumStartMimicStone (void) | Stepping onto the floor before a mimic stone: the stone of the room the party came into starts to mirror the leader's steps. |
void | scAnemosInnerSanctumDropMimicStone (void) | A mimic stone falls into a hole: it slides to the hole's middle and drops in with a puff of dust, hidden below the hole's edge by a crate's silhouette drawn as an object window, and is taken away. |
void | scAnemosInnerSanctumOpenMimicStoneDoor (void) | A mimic stone reaches its button: it settles on the button's middle with a thump, and its room's north door opens, its flag keeping both so. |
void | scAnemosInnerSanctumApproachCharonSlate (void) | The first time Felix comes up to Charon's slate, the room's colours warm and the slate speaks: the power of the land to create a great darkness is for whoever attacks it. |
void | scAnemosInnerSanctumTeleportOut (void) | Felix casts Teleport on the circle in the middle of the symbols' room: sparks fly as the colours cycle, and the party teleports back to Contigo. |
void | scFieldEffectSpawn (Sint32 x, Sint32 y, Sint32 z, Sint32 velocityX, Sint32 velocityY, Sint32 velocityZ, Uint32 flags, const EFFECT_OPTIONS *options) | Spawns a field effect at x, y, z moving at the velocity given, its type, scale, palette, priority, script, rotation, spin and update chosen by the EFFECT_USE_ flags from the options. |
Sint32 | scAnemosInnerSanctumClearScriptedActorSpriteFlags (Sint32 actorId) | Clears the actor's sprite flags, as a script's call; always 0. |
Bool | scAnemosInnerSanctumCircleOrb (ACTOR *actor) | A spark ring's orb: it circles its centre at its own speed while the radius shrinks a pixel a tick; 0 once it reaches the centre. |
void | scAnemosInnerSanctumLeaveSpark (ACTOR *src) | Leaves a fading spark of the source's palette where the source is. |
Bool | scAnemosInnerSanctumSpiralIn (SPARK *spark) | A spark's update: two steps a tick along its spiral, closing in and falling, leaving a fading spark at each; 0 once it reaches its plate. |
Sint32 | scAnemosInnerSanctumLightPlate (ACTOR *actor) | A spark reaches its plate: a puff of sparks of its palette, and the plate shows its lit picture. |
const SCENE_ENTRANCE * | scGetEntrances (void) | Where the party can enter: the cave under the spring has its own entrances. |
const SCENE_REGION * | scGetExitRegions (void) | The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room. |
const Uint32 * | scGetExits (void) | The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN. |
const ACTOR_PLACE * | scGetActorPlacements (void) | The scene's actor placements: a room of names for its entrance, else the debug room's. |
void | scAnemosInnerSanctumSendSpark (from, to, palette) VECTOR3 *from; VECTOR3 *to; Sint16 palette; | Sends a spark of the given palette spiralling from one point to another. |
void | scAnemosInnerSanctumSparkRing (x, y, palette, speed) Sint32 x; Sint32 y; Sint16 palette; Sint16 speed; | Rings a torch at x, y (16.16) with eight orbs of the given palette that circle in on it at the given speed. |
void | scAnemosInnerSanctumLightTorch (x, y, palette) Sint32 x; Sint32 y; Sint16 palette; | Leaves a flame of the given palette burning on the torch at x and height y on the torches' row. |
Bool | scCrackedTileStep () | Run each tick: when the leader steps onto a whole tile it cracks, and onto a cracked one other than the one it cracked last, the leader falls through it; 1 when it falls. |
void | scAnemosInnerSanctumMimicLeader (ACTOR *self) | A mimic stone's update: each step the leader takes, it takes too, mirrored east for west, scraping up dust, unless a wall stands in its way; on its button or over a hole it stops and raises that cue. |
void | scTeleportStartFastShimmer (void) | Starts the shimmer at a step every two ticks, as the party arrives. |
const CUE * | scGetCues (void) | The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's. |
static __inline__ void | scAnemosInnerSanctumAnimateDoor (const void *steps, Sint32 x, Sint32 y) | Plays a door's map edit at x, y. |
void | scAnemosInnerSanctumEnterTheRoom (void) | Unused: stills every placed actor, opens the north door or a mimic stone's door by the step cue's number, and walks the leader out by the exit of that number. |
void | scAnemosInnerSanctumArriveOnElevatorLift (void) | The party arrives up the lift in the elevator room: it rises the last of the way into the room with Felix on it and stays there. |
void | scAnemosInnerSanctumArriveOnMimicStonesLift (void) | As scAnemosInnerSanctumArriveOnElevatorLift, on the mimic stones room's lift. |
Sint32 | scCrackedTileFind () | Finds the room's cracked tiles: every metatile whose script is kind (whole) or kind + 1 (cracked), each given the next flag from flags; returns how many. |
void | scCrackedTilePlaceLanding (Sint32 x, Sint32 z, Sint32 effect) | Unused here, where there is no cracked floor to fall through: in the rooms with one, it puts the leader who has fallen through on the metatile the flag bytes saved, offset by (dx, dz), and starts the screen transition. |
Sint32 | scInit (void) | Sets up the room the party comes into: the gate room's lit torches and opened north door; the pillars left in their places; the lifts, below or above as they last carried the party, and the round switches already pressed; the cracked floors; and the mimic stones resting on their buttons, their doors open. |
Sint32 | scPrepareMap (void) | Once Briggs is caught the pool has dried up: its colours take the dry ground's. |
void | scEffectMoveLocal (FIELD_OBJECT *object) | An effect's update: moves it by its velocity, grows it by its scale rates and spins its sprite. |
void | scEffectSetSpritePriority (ACTOR *actor, Sint32 priority) | Fixes the priority of the actor's sprite and its shadow, which then no longer follows the map metatile under it (clears ACTOR_PRIORITY_AUTOMATIC). |
void | scFieldEffectSpawnLocal (Sint32 x, Sint32 y, Sint32 z, Sint32 velocityX, Sint32 velocityY, Sint32 velocityZ, Uint32 flags, const EFFECT_OPTIONS *options) | As scFieldEffectSpawn, the effect taking the leader's sprite priority and moved by scEffectMoveLocal: the shared spawner's update and priority setter are fixed, so this copy is written out too. |
void | scCrackedTileDropIn (void) | The leader lands from the cracked floor above in a ring of dust, as in shared/cracked_tile_drop_in.c. |
void | syGameFlagSetByte (Sint32 flag, Sint32 value) | Sets the whole byte flags is in. |
Variables
| Name | Description | |
|---|---|---|
Uint16 | PaletteCycleBright | The Teleport circle's shimmer, cycled by shared/teleport_shimmer.c: the palette slots and colours it cycles and where the cycle stands. |
Uint16 | PaletteCycleTimer | |
Uint16 | PaletteCycleDelay | |
METATILE_TARGET | CrackedTiles | The cracked floors' metatiles, found by shared/cracked_tile_find.c. |
extern Uint32 | AnemosInnerSanctumShortScript [] | The same three lifetimes as FieldEffectShortScript, MediumScript and LongScript (shared/field_effect_duration_scripts.c), under other names. |
extern Uint32 | AnemosInnerSanctumMediumScript [] | |
extern Uint32 | AnemosInnerSanctumLongScript [] | |
extern Uint32 | FieldEffectLongScript [] | |
extern Sint32 | AnemosInnerSanctumNoShadowScript [] | |
extern Sint16 | AnemosInnerSanctumMimicStoneDoorFrames [] | A mimic stone room's door opening, the same. |
extern Sint32 | AnemosInnerSanctumOrbScript [] | |
extern Sint32 | AnemosInnerSanctumDurationScripts [] | The field effects' scripts by how long they last, which scFieldEffectSpawn picks by its flags (EFFECT_SCRIPT_MASK). |
extern Uint32 | AnemosInnerSanctumFadingSparkScript [] | |
extern ACTOR_PLACE | AnemosInnerSanctumPlacements [] | |
extern ACTOR_PLACE | AnemosInnerSanctumGatePlacements [] | |
extern ACTOR_PLACE | AnemosInnerSanctumElevatorPlacements [] | |
extern ACTOR_PLACE | AnemosInnerSanctumBoulderPlacements [] | |
extern ACTOR_PLACE | AnemosInnerSanctumCrackedFloorPlacements [] | |
extern ACTOR_PLACE | AnemosInnerSanctumMimicStonesPlacements [] | |
extern Sint32 | AnemosInnerSanctumSparkScript [] | |
extern Uint32 | AnemosInnerSanctumDjinniRisesScript [] | |
extern Sint32 | AnemosInnerSanctumDjinniSinksScript [] | |
extern Sint32 | AnemosInnerSanctumPlateOffsets [][2] | Where the sparks fly to round the leader as a symbol lights, in pixels from him in x and z. |
extern Sint16 | AnemosInnerSanctumElevatorBlocks [] | The blocks Move pushes in each room (fdActorLiftTargetBlock), ended by -1: the elevator room's two pillars. |
extern Sint16 | AnemosInnerSanctumBoulderBlocks [] | The boulder room's five pillars. |
extern Sint16 | AnemosInnerSanctumCrackedFloorBlocks [] | The cracked floor room's two pillars. |
extern Sint32 | AnemosInnerSanctumSwitchGlowScript [] | |
extern Sint32 | AnemosInnerSanctumDustScript [] | |
extern CUE | AnemosInnerSanctumCues [] | |
extern CUE | AnemosInnerSanctumGateCues [] | |
extern CUE | AnemosInnerSanctumElevatorCues [] | |
extern CUE | AnemosInnerSanctumBoulderCues [] | |
extern CUE | AnemosInnerSanctumCrackedFloorCues [] | |
extern CUE | AnemosInnerSanctumMimicStonesCues [] | |
extern Sint16 | AnemosInnerSanctumNorthDoorFrames [] | The north door's opening, as MAP_EDIT_STEP_ROW rows: two steps of two ticks. |
extern MAP_EDIT | AnemosInnerSanctumMimicStoneDoors [] | The three mimic stone rooms' doors, by their step cue's number. |
extern Uint16 | TeleportCirclePaletteSlots [] | The entries the circle is drawn in. |
extern Uint16 | TeleportCircleColors [] | The circle's colours: one pale grey-green on every entry. |
extern Uint16 | TeleportCircleShimmerColors [] | The shimmer's colours, which it moves round the entries: lilac, blues deepening to violet, and white. |
extern Uint16 | TeleportCircleShimmerSlots [] | The shimmer's six steps: for each, the entries its colours go to. |
extern Sint32 | FieldEffectDurationScripts [] | The field effects' three scripts by how long an effect lasts: short, medium and long. |
extern Uint32 | FieldEffectShortScript [] | |
extern Uint32 | FieldEffectMediumScript [] | The flash about the Tomegathericon: held 45 ticks, then put away and freed. |
Uint32 | SceneExits [] | The room has no exits of its own. |
Description
The Anemos Inner Sanctum, the hidden dungeon under Contigo, reached by Teleport from the circle in the middle of the town.
The party arrives in a room with four element symbols on its floor. Stepping
onto each, Felix lights a plate for every Djinni of its element the party
has; with all eighteen of an element, its torch over the north door lights,
and with all four lit the door opens (scAnemosInnerSanctumLightSymbol).
Beyond it, Charon's slate speaks as the party comes up to it
(scAnemosInnerSanctumApproachCharonSlate). Below, mimic stones copy Felix's
steps, mirrored, until they reach a button that opens a door
(scAnemosInnerSanctumMimicLeader); seven round switches make a lift float,
ready to carry the party up (scAnemosInnerSanctumPressRoundSwitch); pillars
are moved onto their places with Move, and a switch holds a door open while
something stands on it; cracked floors give way under the party, and Sand
lets Felix pass along stretches of sand. The last room, with its six symbol
blocks and the Dullahan, is anemos_inner_sanctum_dullahan.c.
Macros in detail
ACTOR_MIMIC_STONE_A
#define ACTOR_MIMIC_STONE_A ACTOR_FIRST_PLACED
The mimic stones room's three mimic stones (SPRITE_MIMIC_STONE), one in each
room off its north side: entered from the south by entrance 1, 3 or 5, that
room's stone mirrors the leader's steps (scAnemosInnerSanctumMimicLeader)
until it reaches its button or falls into a hole.
Referenced by scAnemosInnerSanctumDropMimicStone(), scAnemosInnerSanctumOpenMimicStoneDoor(), scAnemosInnerSanctumStartMimicStone() and scInit().
Definition at line 159 of file anemos_inner_sanctum.c.
ACTOR_MIMIC_STONE_B
#define ACTOR_MIMIC_STONE_B (ACTOR_FIRST_PLACED + 1)
Referenced by scAnemosInnerSanctumDropMimicStone(), scAnemosInnerSanctumOpenMimicStoneDoor(), scAnemosInnerSanctumStartMimicStone() and scInit().
Definition at line 160 of file anemos_inner_sanctum.c.
ACTOR_MIMIC_STONE_C
#define ACTOR_MIMIC_STONE_C (ACTOR_FIRST_PLACED + 2)
Referenced by scAnemosInnerSanctumDropMimicStone(), scAnemosInnerSanctumOpenMimicStoneDoor(), scAnemosInnerSanctumStartMimicStone() and scInit().
Definition at line 161 of file anemos_inner_sanctum.c.
FLAG_MIMIC_STONE_A_ON_BUTTON
#define FLAG_MIMIC_STONE_A_ON_BUTTON FLAG_AREA_TEMP(0x01)
Set as each mimic stone reaches its button and opens its room's north door
(scAnemosInnerSanctumOpenMimicStoneDoor), so that the set-up leaves it there.
Referenced by scAnemosInnerSanctumOpenMimicStoneDoor() and scInit().
Definition at line 173 of file anemos_inner_sanctum.c.
FLAG_MIMIC_STONE_B_ON_BUTTON
#define FLAG_MIMIC_STONE_B_ON_BUTTON FLAG_AREA_TEMP(0x02)
Referenced by scAnemosInnerSanctumOpenMimicStoneDoor() and scInit().
Definition at line 174 of file anemos_inner_sanctum.c.
FLAG_MIMIC_STONE_C_ON_BUTTON
#define FLAG_MIMIC_STONE_C_ON_BUTTON FLAG_AREA_TEMP(0x03)
Referenced by scAnemosInnerSanctumOpenMimicStoneDoor() and scInit().
Definition at line 175 of file anemos_inner_sanctum.c.
FLAG_ON_SYMBOL
#define FLAG_ON_SYMBOL FLAG_SCENE_TEMP(0x00)
Set while the leader stands on one of the gate room's element symbols, so that it lights its plates once a visit to it.
Referenced by AnemosInnerSanctumGateCues, scAnemosInnerSanctumLightSymbol() and scAnemosInnerSanctumStepOffSymbol().
Definition at line 179 of file anemos_inner_sanctum.c.
FLAG_SWITCH_PRESSED
#define FLAG_SWITCH_PRESSED FLAG_SCENE_TEMP(0x00)
Set while the boulder room's switch is held down by the leader.
Referenced by AnemosInnerSanctumBoulderCues, scAnemosInnerSanctumPressSwitch() and scAnemosInnerSanctumStepOffSwitch().
Definition at line 181 of file anemos_inner_sanctum.c.
FLAG_MIMIC_STONE_STARTED
#define FLAG_MIMIC_STONE_STARTED FLAG_SCENE_TEMP(0x00)
Set while the mimic stones room's mimic stone follows the leader or rests on its button, so that stepping onto its floor starts it no more.
Referenced by AnemosInnerSanctumMimicStonesCues, scAnemosInnerSanctumMimicLeader(), scAnemosInnerSanctumStartMimicStone() and scInit().
Definition at line 184 of file anemos_inner_sanctum.c.
FLAG_ROUND_SWITCH_PRESSED
#define FLAG_ROUND_SWITCH_PRESSED(n) (FLAG_SCENE_TEMP(0x00) + (n))
Set as each round switch is pressed, lighting it; the macro takes the switch's place from the first.
Referenced by AnemosInnerSanctumCrackedFloorCues, AnemosInnerSanctumElevatorCues, scAnemosInnerSanctumPressRoundSwitch() and scInit().
Definition at line 209 of file anemos_inner_sanctum.c.
FLAG_LIFT_READY
#define FLAG_LIFT_READY FLAG_SCENE_TEMP(0x07)
Set once all seven round switches are pressed: the room's lift floats, ready to carry the party.
Referenced by AnemosInnerSanctumCrackedFloorCues, AnemosInnerSanctumElevatorCues, scAnemosInnerSanctumPressRoundSwitch() and scInit().
Definition at line 212 of file anemos_inner_sanctum.c.
FLAG_ANEMOS_ELEVATOR_FIRST_PILLAR_PLACED
#define FLAG_ANEMOS_ELEVATOR_FIRST_PILLAR_PLACED 0xa80
The sanctum's lasting flags: each pillar Moved onto its place, each element's torch lit, the gate room's north door opened by all four, and Charon's slate's words heard.
Referenced by AnemosInnerSanctumElevatorCues, scAnemosInnerSanctumFinishMovingBlock() and scInit().
Definition at line 237 of file anemos_inner_sanctum.c.
FLAG_ANEMOS_ELEVATOR_SECOND_PILLAR_PLACED
#define FLAG_ANEMOS_ELEVATOR_SECOND_PILLAR_PLACED 0xa81
Referenced by AnemosInnerSanctumElevatorCues, scAnemosInnerSanctumFinishMovingBlock() and scInit().
Definition at line 238 of file anemos_inner_sanctum.c.
FLAG_ANEMOS_BOULDER_FIRST_PILLAR_PLACED
#define FLAG_ANEMOS_BOULDER_FIRST_PILLAR_PLACED 0xa82
Referenced by AnemosInnerSanctumBoulderCues, scAnemosInnerSanctumFinishMovingBlock() and scInit().
Definition at line 239 of file anemos_inner_sanctum.c.
FLAG_ANEMOS_BOULDER_SECOND_PILLAR_PLACED
#define FLAG_ANEMOS_BOULDER_SECOND_PILLAR_PLACED 0xa83
Referenced by AnemosInnerSanctumBoulderCues, scAnemosInnerSanctumFinishMovingBlock() and scInit().
Definition at line 240 of file anemos_inner_sanctum.c.
FLAG_ANEMOS_BOULDER_THIRD_PILLAR_PLACED
#define FLAG_ANEMOS_BOULDER_THIRD_PILLAR_PLACED 0xa84
Referenced by AnemosInnerSanctumBoulderCues, scAnemosInnerSanctumFinishMovingBlock() and scInit().
Definition at line 241 of file anemos_inner_sanctum.c.
FLAG_ANEMOS_BOULDER_PILLAR_B_PLACED
#define FLAG_ANEMOS_BOULDER_PILLAR_B_PLACED 0xa85
Referenced by AnemosInnerSanctumBoulderCues, scAnemosInnerSanctumFinishMovingBlock() and scInit().
Definition at line 242 of file anemos_inner_sanctum.c.
FLAG_ANEMOS_CRACKED_FLOOR_FIRST_PILLAR_PLACED
#define FLAG_ANEMOS_CRACKED_FLOOR_FIRST_PILLAR_PLACED 0xa86
Referenced by AnemosInnerSanctumCrackedFloorCues, scAnemosInnerSanctumFinishMovingBlock() and scInit().
Definition at line 243 of file anemos_inner_sanctum.c.
FLAG_ANEMOS_VENUS_TORCH_LIT
#define FLAG_ANEMOS_VENUS_TORCH_LIT 0xa87
Referenced by scAnemosInnerSanctumLightSymbol() and scInit().
Definition at line 244 of file anemos_inner_sanctum.c.
FLAG_ANEMOS_MERCURY_TORCH_LIT
#define FLAG_ANEMOS_MERCURY_TORCH_LIT 0xa88
Referenced by scAnemosInnerSanctumLightSymbol() and scInit().
Definition at line 245 of file anemos_inner_sanctum.c.
FLAG_ANEMOS_MARS_TORCH_LIT
#define FLAG_ANEMOS_MARS_TORCH_LIT 0xa89
Referenced by scAnemosInnerSanctumLightSymbol() and scInit().
Definition at line 246 of file anemos_inner_sanctum.c.
FLAG_ANEMOS_JUPITER_TORCH_LIT
#define FLAG_ANEMOS_JUPITER_TORCH_LIT 0xa8a
Referenced by scAnemosInnerSanctumLightSymbol() and scInit().
Definition at line 247 of file anemos_inner_sanctum.c.
FLAG_ANEMOS_NORTH_DOOR_OPEN
#define FLAG_ANEMOS_NORTH_DOOR_OPEN 0xa8b
Referenced by scAnemosInnerSanctumLightSymbol() and scInit().
Definition at line 248 of file anemos_inner_sanctum.c.
FLAG_ANEMOS_CHARON_SLATE_SPOKE
#define FLAG_ANEMOS_CHARON_SLATE_SPOKE 0xa8c
Referenced by AnemosInnerSanctumMimicStonesCues and scAnemosInnerSanctumApproachCharonSlate().
Definition at line 249 of file anemos_inner_sanctum.c.
ACTOR_MIMIC_STONES_LIFT
#define ACTOR_MIMIC_STONES_LIFT (ACTOR_FIRST_PLACED + 3)
The mimic stones room's lift (SPRITE_ARROW_PANEL), which brings the party up
from the cracked floor room (scAnemosInnerSanctumArriveOnMimicStonesLift).
Referenced by scAnemosInnerSanctumArriveOnMimicStonesLift() and scInit().
Definition at line 253 of file anemos_inner_sanctum.c.
MIDDLE_LAYER_COLUMN
#define MIDDLE_LAYER_COLUMN (MAPGRID_SIZE / 2)
The first column of the middle layer's metatiles in these rooms' maps (their
map_layer 128, 0): the gate room draws its plates, torches' light and pillar
of light there.
Referenced by scAnemosInnerSanctumLightPlate() and scAnemosInnerSanctumLightSymbol().
Definition at line 258 of file anemos_inner_sanctum.c.
OVERHEAD_LAYER_ROW
#define OVERHEAD_LAYER_ROW (MAPGRID_SIZE / 2)
The first row of the overhead layer's metatiles in these rooms' maps (their
map_layer 0, 128).
Referenced by scAnemosInnerSanctumPressRoundSwitch(), scLemurianShipOpenDoor() and scLemurianShipOpenLowerDoor().
Definition at line 261 of file anemos_inner_sanctum.c.
LIT_PICTURE_ROWS
#define LIT_PICTURE_ROWS 26
How far below a plate or the pillar of light its lit picture is kept, in metatiles.
Referenced by scAnemosInnerSanctumLightPlate() and scAnemosInnerSanctumLightSymbol().
Definition at line 264 of file anemos_inner_sanctum.c.
VENUS_TORCH_X
#define VENUS_TORCH_X 520
The four torches over the gate room's north door, on the wall's row z 152: each element's x and the height its flame burns at.
Referenced by scAnemosInnerSanctumLightSymbol() and scInit().
Definition at line 268 of file anemos_inner_sanctum.c.
VENUS_TORCH_Y
#define VENUS_TORCH_Y 48
Referenced by scAnemosInnerSanctumLightSymbol() and scInit().
Definition at line 269 of file anemos_inner_sanctum.c.
MERCURY_TORCH_X
#define MERCURY_TORCH_X 552
Referenced by scAnemosInnerSanctumLightSymbol() and scInit().
Definition at line 270 of file anemos_inner_sanctum.c.
MERCURY_TORCH_Y
#define MERCURY_TORCH_Y 48
Referenced by scAnemosInnerSanctumLightSymbol() and scInit().
Definition at line 271 of file anemos_inner_sanctum.c.
MARS_TORCH_X
#define MARS_TORCH_X 504
Referenced by scAnemosInnerSanctumLightSymbol() and scInit().
Definition at line 272 of file anemos_inner_sanctum.c.
MARS_TORCH_Y
#define MARS_TORCH_Y 40
Referenced by scAnemosInnerSanctumLightSymbol() and scInit().
Definition at line 273 of file anemos_inner_sanctum.c.
JUPITER_TORCH_X
#define JUPITER_TORCH_X 568
Referenced by scAnemosInnerSanctumLightSymbol() and scInit().
Definition at line 274 of file anemos_inner_sanctum.c.
JUPITER_TORCH_Y
#define JUPITER_TORCH_Y 40
Referenced by scAnemosInnerSanctumLightSymbol() and scInit().
Definition at line 275 of file anemos_inner_sanctum.c.
TORCH_ROW_Z
#define TORCH_ROW_Z 152
Referenced by scAnemosInnerSanctumCircleOrb(), scAnemosInnerSanctumLightTorch() and scAnemosInnerSanctumSparkRing().
Definition at line 276 of file anemos_inner_sanctum.c.
SPARK_RING_STEPS
#define SPARK_RING_STEPS 16
A spark ring's sixteenths of a turn; an orb starts at every second one.
Referenced by scAnemosInnerSanctumSparkRing().
Definition at line 279 of file anemos_inner_sanctum.c.
FLAG_ELEVATOR_LIFT_RISEN
#define FLAG_ELEVATOR_LIFT_RISEN FLAG_AREA_TEMP(0x00)
Set when the elevator room's lift has carried the party up; it stays above.
Referenced by scAnemosInnerSanctumArriveOnElevatorLift() and scInit().
Definition at line 341 of file anemos_inner_sanctum.c.
FLAG_MIMIC_STONES_LIFT_RISEN
#define FLAG_MIMIC_STONES_LIFT_RISEN FLAG_AREA_TEMP(0x04)
Set when the cracked floor room's lift has carried the party up to the mimic stones room; it stays there, and the round switches below stay pressed.
Referenced by scAnemosInnerSanctumArriveOnMimicStonesLift() and scInit().
Definition at line 344 of file anemos_inner_sanctum.c.
MIMIC_STONE_LINE_Z
#define MIMIC_STONE_LINE_Z 248
The row the mimic stones start on: one follows the leader's steps only while he is north of it, and never goes south of it.
Referenced by scAnemosInnerSanctumMimicLeader() and scAnemosInnerSanctumStartMimicStone().
Definition at line 364 of file anemos_inner_sanctum.c.
DEFINE_ANEMOS_INNER_SANCTUM_EXIT_IF
#define DEFINE_ANEMOS_INNER_SANCTUM_EXIT_IF(name, exit)
Defines a step cue on a cracked floor: when a tile gives way under the
leader, the party leaves by exit exit, through the floor.
Definition at line 1349 of file anemos_inner_sanctum.c.
METATILE_PUSH_SLOT_ENTRY
#define METATILE_PUSH_SLOT_ENTRY syOAMAddSpriteAtDepth
Referenced by scCrackedTileUpdate().
Definition at line 2137 of file anemos_inner_sanctum.c.
TELEPORT_CIRCLE_FIRST_ENTRY
#define TELEPORT_CIRCLE_FIRST_ENTRY 89
Definition at line 2357 of file anemos_inner_sanctum.c.
Enumerations in detail
ANEMOS_INNER_SANCTUM_ELEVATOR_ACTOR_ID
enum ANEMOS_INNER_SANCTUM_ELEVATOR_ACTOR_ID
The actors of the rooms Move and the lifts work in, numbering each room's
placement table: stone pillars (SPRITE_STONE_PILLAR) Moved onto their places,
and the lifts (SPRITE_ARROW_PANEL) the round switches ready.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_ELEVATOR_FIRST_PILLAR | ACTOR_FIRST_PLACED | |
ACTOR_ELEVATOR_LIFT | ||
ACTOR_ELEVATOR_SECOND_PILLAR |
Definition at line 122 of file anemos_inner_sanctum.c.
ANEMOS_INNER_SANCTUM_BOULDER_ACTOR_ID
enum ANEMOS_INNER_SANCTUM_BOULDER_ACTOR_ID
The boulder room.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_BOULDER_FIRST_PILLAR | ACTOR_FIRST_PLACED | |
ACTOR_ROUND_BOULDER | SPRITE_ROUND_BOULDER | |
ACTOR_BOULDER_SECOND_PILLAR | ||
ACTOR_BOULDER_PILLAR_A | ||
ACTOR_BOULDER_PILLAR_B | ||
ACTOR_BOULDER_THIRD_PILLAR | ||
ACTOR_BOULDER_SWITCH_MARKER | An unseen marker standing on the switch, 14 pixels down, as a platform: taken away as the switch is pressed (scAnemosInnerSanctumPressSwitch), put back as the leader steps off it (scAnemosInnerSanctumStepOffSwitch). |
Definition at line 130 of file anemos_inner_sanctum.c.
ANEMOS_INNER_SANCTUM_CRACKED_FLOOR_ACTOR_ID
enum ANEMOS_INNER_SANCTUM_CRACKED_FLOOR_ACTOR_ID
The cracked floor room.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_CRACKED_FLOOR_LIFT | ACTOR_FIRST_PLACED | |
ACTOR_CRACKED_FLOOR_FIRST_PILLAR | ||
ACTOR_CRACKED_FLOOR_SECOND_PILLAR |
Definition at line 148 of file anemos_inner_sanctum.c.
anonymous enum
enum { ENTRANCE_BY_MIMIC_STONE_A, ENTRANCE_BY_MIMIC_STONE_B, ENTRANCE_BY_MIMIC_STONE_C }
The mimic stones room's ways in from the south, one below each mimic stone.
| Enumerator | Value | Description |
|---|---|---|
ENTRANCE_BY_MIMIC_STONE_A | 1 | |
ENTRANCE_BY_MIMIC_STONE_B | 3 | |
ENTRANCE_BY_MIMIC_STONE_C | 5 |
Definition at line 164 of file anemos_inner_sanctum.c.
ANEMOS_INNER_SANCTUM_SYMBOL_CUE
enum ANEMOS_INNER_SANCTUM_SYMBOL_CUE
The step cues of the gate room: its four element symbols, whose plates light
for the Djinn of the element the party has (scAnemosInnerSanctumLightSymbol),
the floor between them, and the Teleport circle in its middle.
| Enumerator | Value | Description |
|---|---|---|
CUE_TELEPORT_CIRCLE | 30 | |
CUE_VENUS_SYMBOL | 50 | |
CUE_MERCURY_SYMBOL | ||
CUE_MARS_SYMBOL | ||
CUE_JUPITER_SYMBOL | ||
CUE_FLOOR_BETWEEN_SYMBOLS |
Definition at line 189 of file anemos_inner_sanctum.c.
anonymous enum
enum { CUE_FIRST_ROUND_SWITCH, ROUND_SWITCHES }
The first of the seven round switches' step cues
(scAnemosInnerSanctumPressRoundSwitch).
| Enumerator | Value | Description |
|---|---|---|
CUE_FIRST_ROUND_SWITCH | 50 | |
ROUND_SWITCHES | 7 |
Definition at line 201 of file anemos_inner_sanctum.c.
anonymous enum
enum { CUE_LIFT }
The ready lift's step cue, in the elevator and cracked floor rooms.
| Enumerator | Value | Description |
|---|---|---|
CUE_LIFT | 11 |
Definition at line 215 of file anemos_inner_sanctum.c.
anonymous enum
enum { CUE_SWITCH, CUE_EAST_OF_SWITCH }
The boulder room's step cues: the switch, and the metatile east of it that a leader stepping off it crosses.
| Enumerator | Value | Description |
|---|---|---|
CUE_SWITCH | 50 | |
CUE_EAST_OF_SWITCH |
Definition at line 222 of file anemos_inner_sanctum.c.
anonymous enum
enum { CUE_BEFORE_CHARON_SLATE }
The step cue before Charon's slate.
| Enumerator | Value | Description |
|---|---|---|
CUE_BEFORE_CHARON_SLATE | 30 |
Definition at line 229 of file anemos_inner_sanctum.c.
ANEMOS_INNER_SANCTUM_ELEVATOR_WAY
enum ANEMOS_INNER_SANCTUM_ELEVATOR_WAY
The ways between the rooms each of these maps holds, named by the room a way leaves and the room it leads to, each room by where it lies on its map; a way's exit and the entrance at its foot share its number, so the way back is the entrance the exit leads to.
The elevator's: the north-west and south-west halls, the room above the lift, the round switches' room below it, and the east and south-east rooms.
| Enumerator | Value | Description |
|---|---|---|
WAY_ELEVATOR_NORTHWEST_TO_SOUTHWEST | 1 | |
WAY_ELEVATOR_NORTHWEST_TO_EAST | ||
WAY_ELEVATOR_NORTHWEST_TO_ABOVE_THE_LIFT | ||
WAY_ELEVATOR_SOUTHWEST_TO_NORTHWEST | 5 | |
WAY_ELEVATOR_SOUTHWEST_TO_EAST | 7 | |
WAY_ELEVATOR_SOUTHWEST_TO_SOUTHEAST | 9 | |
WAY_ELEVATOR_ROUND_SWITCHES_TO_EAST | ||
EXIT_UP_THE_LIFT | Up the lift, to the room above. | |
WAY_ELEVATOR_EAST_TO_NORTHWEST | ||
WAY_ELEVATOR_EAST_TO_SOUTHWEST | ||
WAY_ELEVATOR_EAST_TO_ROUND_SWITCHES | ||
WAY_ELEVATOR_SOUTHEAST_TO_SOUTHWEST | ||
WAY_ELEVATOR_ABOVE_THE_LIFT_TO_NORTHWEST | 17 | |
ENTRANCE_UP_THE_LIFT | Where the lift arrives in the room above. |
Definition at line 288 of file anemos_inner_sanctum.c.
ANEMOS_INNER_SANCTUM_BOULDER_WAY
enum ANEMOS_INNER_SANCTUM_BOULDER_WAY
The boulder room's: its north, north-east, west, middle and south rooms, the north-east one with two ways down, west and east.
| Enumerator | Value | Description |
|---|---|---|
WAY_BOULDER_NORTH_TO_MIDDLE | 1 | |
WAY_BOULDER_NORTHEAST_TO_MIDDLE_WEST | 3 | |
WAY_BOULDER_NORTHEAST_TO_MIDDLE_EAST | ||
WAY_BOULDER_WEST_TO_MIDDLE | ||
WAY_BOULDER_MIDDLE_TO_WEST | 10 | |
WAY_BOULDER_MIDDLE_TO_SOUTH | ||
WAY_BOULDER_MIDDLE_TO_NORTH | 13 | |
WAY_BOULDER_MIDDLE_TO_NORTHEAST_WEST | ||
WAY_BOULDER_MIDDLE_TO_NORTHEAST_EAST | ||
WAY_BOULDER_SOUTH_TO_MIDDLE | 17 |
Definition at line 309 of file anemos_inner_sanctum.c.
ANEMOS_INNER_SANCTUM_CRACKED_FLOOR_WAY
enum ANEMOS_INNER_SANCTUM_CRACKED_FLOOR_WAY
The cracked floor room's: its north-east and south-east rooms, and the second cracked floor's room west of them.
| Enumerator | Value | Description |
|---|---|---|
WAY_CRACKED_FLOOR_NORTHEAST_TO_SOUTHEAST | 3 | |
WAY_CRACKED_FLOOR_WEST_TO_SOUTHEAST | ||
WAY_CRACKED_FLOOR_SOUTHEAST_TO_WEST | 8 | |
WAY_CRACKED_FLOOR_SOUTHEAST_TO_NORTHEAST |
Definition at line 325 of file anemos_inner_sanctum.c.
ANEMOS_INNER_SANCTUM_MIMIC_STONES_WAY
enum ANEMOS_INNER_SANCTUM_MIMIC_STONES_WAY
The mimic stones room's: its south and south-east rooms.
| Enumerator | Value | Description |
|---|---|---|
WAY_MIMIC_STONES_SOUTH_TO_SOUTHEAST | 8 | |
WAY_MIMIC_STONES_SOUTHEAST_TO_SOUTH | 11 |
Definition at line 334 of file anemos_inner_sanctum.c.
anonymous enum
enum { CUE_FIRST_CRACKED_FLOOR, CUE_SECOND_CRACKED_FLOOR }
The cracked floor room's two cracked floors: a metatile's step cue is its floor's when whole, the next when cracked.
| Enumerator | Value | Description |
|---|---|---|
CUE_FIRST_CRACKED_FLOOR | 33 | |
CUE_SECOND_CRACKED_FLOOR | CUE_FIRST_CRACKED_FLOOR + 2 |
Definition at line 348 of file anemos_inner_sanctum.c.
anonymous enum
enum { THROUGH_FIRST_CRACKED_FLOOR, THROUGH_SECOND_CRACKED_FLOOR }
The cracked floor room's ways down through its cracked floors, each an exit and the entrance below of one number.
| Enumerator | Value | Description |
|---|---|---|
THROUGH_FIRST_CRACKED_FLOOR | 11 | |
THROUGH_SECOND_CRACKED_FLOOR | 12 |
Definition at line 356 of file anemos_inner_sanctum.c.
ANEMOS_INNER_SANCTUM_MIMIC_STONE_CUE
enum ANEMOS_INNER_SANCTUM_MIMIC_STONE_CUE
The mimic stones room's step cues by the mimic stones: the floor where the leader's steps start one following, and the metatile behaviors a following stone stops on, a hole it falls into and the button that opens its door.
| Enumerator | Value | Description |
|---|---|---|
CUE_MIMIC_STONE_START | 50 | |
CUE_MIMIC_STONE_HOLE | ||
CUE_MIMIC_STONE_BUTTON | ||
CUE_MIMIC_STONE_IN_HOLE | 200 | Raised when the stone falls into a hole (scAnemosInnerSanctumDropMimicStone). |
CUE_MIMIC_STONE_ON_BUTTON | Raised when the stone reaches the button (scAnemosInnerSanctumOpenMimicStoneDoor). |
Definition at line 369 of file anemos_inner_sanctum.c.
Functions in detail
scAnemosInnerSanctumLightSymbol
void scAnemosInnerSanctumLightSymbol(void)
Stepping onto an element's symbol in the gate room: the leader raises his arms in a pillar of light and a Djinni of the element rises over him, and each of the element's Djinn the party has found sends a spark to its own plate. Short of all eighteen, the plates and the light go out again; with all eighteen, the element's torch over the north door is lit, and with all four lit the door opens. Nothing if the torch is lit already or the party has none of the element's Djinn.
References AnemosInnerSanctumDjinniRisesScript, AnemosInnerSanctumDjinniSinksScript, AnemosInnerSanctumPlateOffsets, fdActorFaceDirectionAndWait(), fdActorGetById(), fdActorRelease(), fdActorSetAnimation(), fdActorSetBlendMode(), fdActorSetSpriteFlags(), fdActorStartScript(), fdActorWalkTo(), fdBlendScriptResume(), fdBlendScriptSuspend(), fdCameraMoveToFX(), fdCameraWaitForArrival(), fdMapGridCopyMetatilesTo(), fdMapGridSetMetatileHeight(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scAnemosInnerSanctumLightTorch(), scAnemosInnerSanctumSendSpark(), scAnemosInnerSanctumSparkRing(), scFieldActorCreate(), scFieldActorWaitForMoveById(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scScriptCameraFollowActor(), Sint32, syGameFlagGet(), syGameFlagSet(), syRandom() and sySynch().
Referenced by AnemosInnerSanctumGateCues.
Definition at lines 92 and 712 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumStepOffSymbol
void scAnemosInnerSanctumStepOffSymbol(void)
Nothing visible happens as Felix steps off a symbol onto the floor between them; the game lets the symbols be stepped onto again.
References syGameFlagClear().
Referenced by AnemosInnerSanctumGateCues.
Definition at lines 93 and 983 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumStartMovingBlock
void scAnemosInnerSanctumStartMovingBlock(void)
Nothing visible of its own happens as Felix starts to move a pillar with Move; in the boulder and cracked floor rooms, the game closes the stretch of sand by the pillar's place while it is moving, so that a mound of sand cannot pass under it, and opens a metatile or two beside it.
References AnemosInnerSanctumBoulderBlocks, AnemosInnerSanctumCrackedFloorBlocks, AnemosInnerSanctumElevatorBlocks, fdActorLiftTargetBlock(), fdSetMetatileBehaviorAt(), MainRoutineStateWork and Sint32.
Referenced by AnemosInnerSanctumBoulderCues, AnemosInnerSanctumCrackedFloorCues and AnemosInnerSanctumElevatorCues.
Definition at lines 94 and 996 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumFinishMovingBlock
void scAnemosInnerSanctumFinishMovingBlock(void)
Once Felix has moved a pillar with Move: a pillar left in the place it belongs stays there on later visits, as a shortcut. In the boulder room, the pillar moved onto the switch presses it with a click, and the door west of it opens with a thump, for good.
The stretches of sand scAnemosInnerSanctumStartMovingBlock closed are opened
again. Each place is checked in half metatiles. In the boulder room whichever
pillar is set down on pillar B's place counts as pillar B, the game trading
the two actors' places while the third pillar is not on its own.
References fdActorGet(), fdActorPlaceMovedBlock(), fdActorSetPosFX(), fdActorSetSpritePriority(), fdMapGridCopyMetatilesTo(), fdMapGridSetMetatileHeight(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptStart(), fdSetMetatileBehaviorAt(), MainRoutineStateWork, scFieldScriptWait(), Sint32 and syGameFlagSet().
Referenced by AnemosInnerSanctumBoulderCues, AnemosInnerSanctumCrackedFloorCues and AnemosInnerSanctumElevatorCues.
Definition at lines 95 and 1057 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumPressRoundSwitch
void scAnemosInnerSanctumPressRoundSwitch(void)
A round switch stepped on: it lights under the leader in a burst of blue
rings and its scene flag is set; once all seven are pressed, the room's lift
floats up with its arrow pointing up (FLAG_LIFT_READY), ready to carry the
party.
References AnemosInnerSanctumSwitchGlowScript, fdActorGet(), fdActorSelectAnimation(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdActorStartScript(), fdCameraMoveToActorById(), fdCameraWaitForArrival(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldActorCreate(), scFieldActorSetSpriteColor(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scSetActorSpritePriority() and Sint32.
Referenced by AnemosInnerSanctumCrackedFloorCues and AnemosInnerSanctumElevatorCues.
Definition at lines 96 and 1158 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumRideLiftUp
void scAnemosInnerSanctumRideLiftUp(void)
Felix steps onto the lift once it floats ready: he walks to its middle, turns to face south, and it carries the party up out of the room to the room above.
References fdActorFaceDirection(), fdActorGet(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldActorSetMoveTargetFX(), scFieldActorWaitForMove(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptWait(), scSetActorSpritePriority() and Sint32.
Referenced by AnemosInnerSanctumCrackedFloorCues and AnemosInnerSanctumElevatorCues.
Definition at lines 97 and 1227 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumSinkIntoSand
void scAnemosInnerSanctumSinkIntoSand(void)
Felix casts Sand standing on sand and sinks into it; as a mound of sand he can then travel along the stretch of sand, where on foot he cannot pass, until it wears off.
While it lasts the leader moves on the overhead layer, where the sand's own metatiles are.
References fdActorGet(), MainRoutineStateWork, scFieldMapGridGetMetatileBehaviorAt() and Sint32.
Referenced by AnemosInnerSanctumBoulderCues and AnemosInnerSanctumCrackedFloorCues.
Definition at lines 98 and 1277 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumEndSand
void scAnemosInnerSanctumEndSand(void)
Nothing visible of its own: as Sand wears off and Felix rises from the sand, the game sets him walking on the ground's metatiles again.
References fdActorGet() and MainRoutineStateWork.
Referenced by AnemosInnerSanctumBoulderCues and AnemosInnerSanctumCrackedFloorCues.
Definition at lines 99 and 1293 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumPressSwitch
void scAnemosInnerSanctumPressSwitch(void)
Stepping onto the switch: the leader walks onto its middle, it sinks with a click and the door west of it opens with a thump.
References fdActorWalkToAndWait(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy() and scFieldScriptWait().
Referenced by AnemosInnerSanctumBoulderCues.
Definition at lines 100 and 1301 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumStepOffSwitch
void scAnemosInnerSanctumStepOffSwitch(void)
Stepping off the pressed switch to the east: it rises again with a click and its door shuts with a thump.
References fdActorGet(), fdMapGridCopyMetatilesTo(), fdScriptClearFlag(), fdScriptEnd(), fdScriptPlaySound(), fdScriptStart(), scFieldScriptEndLastingPsynergy() and scFieldScriptWait().
Referenced by AnemosInnerSanctumBoulderCues.
Definition at lines 101 and 1322 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumFallThroughFirstCracks
void scAnemosInnerSanctumFallThroughFirstCracks(void)
DEFINE_ANEMOS_INNER_SANCTUM_EXIT_IF(scAnemosInnerSanctumFallThroughFirstCracks, THROUGH_FIRST_CRACKED_FLOOR)
Stepping onto the first cracked floor: once a tile gives way, the party falls through to the part of the room below.
Referenced by AnemosInnerSanctumCrackedFloorCues.
Definition at lines 102 and 1362 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumFallThroughSecondCracks
void scAnemosInnerSanctumFallThroughSecondCracks(void)
DEFINE_ANEMOS_INNER_SANCTUM_EXIT_IF(scAnemosInnerSanctumFallThroughSecondCracks, THROUGH_SECOND_CRACKED_FLOOR)
As scAnemosInnerSanctumFallThroughFirstCracks, for the second floor.
Referenced by AnemosInnerSanctumCrackedFloorCues.
Definition at lines 103 and 1366 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumStartMimicStone
void scAnemosInnerSanctumStartMimicStone(void)
Stepping onto the floor before a mimic stone: the stone of the room the party came into starts to mirror the leader's steps.
References fdActorGet(), fdScriptSetFlag(), MainRoutineStateWork and scAnemosInnerSanctumMimicLeader().
Referenced by AnemosInnerSanctumMimicStonesCues.
Definition at lines 105 and 1445 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumDropMimicStone
void scAnemosInnerSanctumDropMimicStone(void)
A mimic stone falls into a hole: it slides to the hole's middle and drops in with a puff of dust, hidden below the hole's edge by a crate's silhouette drawn as an object window, and is taken away.
References fdActorGet(), fdActorRelease(), fdScriptEnd(), fdScriptPlaySound(), fdScriptStart(), MainRoutineStateWork, scActorWaitUntilLanded(), scFieldActorSetMoveTargetFX(), scFieldScriptEndLastingPsynergy() and scPlaceTranslucentBlackActorFX().
Referenced by AnemosInnerSanctumMimicStonesCues.
Definition at lines 106 and 1471 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumOpenMimicStoneDoor
void scAnemosInnerSanctumOpenMimicStoneDoor(void)
A mimic stone reaches its button: it settles on the button's middle with a thump, and its room's north door opens, its flag keeping both so.
References fdActorGet(), fdMapGridCopyMetatilesTo(), fdMapGridSetMetatileHeight(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldActorSetMoveTargetFX(), scFieldActorWaitForMove(), scFieldScriptEndLastingPsynergy(), Sint32 and sySynch().
Referenced by AnemosInnerSanctumMimicStonesCues.
Definition at lines 107 and 1515 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumApproachCharonSlate
void scAnemosInnerSanctumApproachCharonSlate(void)
The first time Felix comes up to Charon's slate, the room's colours warm and the slate speaks: the power of the land to create a great darkness is for whoever attacks it.
References fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptEnd(), fdScriptSetFlag(), fdScriptStart(), mnFieldMessageShowCentered(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait() and Sint32.
Referenced by AnemosInnerSanctumMimicStonesCues.
Definition at lines 108 and 1562 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumTeleportOut
void scAnemosInnerSanctumTeleportOut(void)
Felix casts Teleport on the circle in the middle of the symbols' room: sparks fly as the colours cycle, and the party teleports back to Contigo.
References fdScriptSetDestination(), fdTeleportPlaySparks(), MainRoutineStateWork, scFieldScriptWait(), scTeleportStartShimmer() and scTeleportStopShimmer().
Referenced by AnemosInnerSanctumGateCues.
Definition at lines 109 and 1604 of file anemos_inner_sanctum.c.
scFieldEffectSpawn
void scFieldEffectSpawn(Sint32 x, Sint32 y, Sint32 z, Sint32 velocityX, Sint32 velocityY, Sint32 velocityZ, Uint32 flags, const EFFECT_OPTIONS *options)
Spawns a field effect at x, y, z moving at the velocity given, its type, scale, palette, priority, script, rotation, spin and update chosen by the EFFECT_USE_ flags from the options.
This overlay's own copy of shared/field_effect_spawn.c, which it does not
include: this one takes actor 0's sprite priority rather than the leader's,
picks from the overlay's own duration scripts, and sets a requested priority
on the sprite itself as well as on the actor.
References AnemosInnerSanctumDurationScripts, fdActorGetById(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdActorStartScript(), fdEffectUpdateMotionScaleAndSpin(), scFieldActorSetSpriteColor(), scSetActorSpritePriority(), Sint32 and syImportActorCreate().
Referenced by scActorEmitMist(), scActorEmitSmoke(), scActorEmitSmokeUnused(), scActorEmitSparkles(), scAirsRockBlowGust(), scAirsRockCrumbleRock(), scAirsRockInsideBlowGust(), scAirsRockInsideBurstDust(), scAirsRockInsideLandInHall(), scAirsRockInsideScatterSparks(), scAirsRockInsideStatueBreathesPooledWhirlwind(), scAirsRockInsideStatueBreathesWhirlwind(), scAirsRockStatueBreathesWhirlwind(), scAirsRockWhirlwindClearsWall(), scAnemosInnerSanctumLightPlate(), scAnkohlRuinsLandFromFall(), scAnkohlRuinsPourSand(), scCavernsFinishMovingAngaraBlock(), scContigoForceFreesDjinni(), scCrackedTileDropIn(), scDehkanPlateauLandFromFall(), scGabombaStatueLandFromFall(), scGaiaRockInsideRaiseDust(), scGaiaRockInsideRingOfDust(), scGarohScatterDustRing(), scGondowanCliffsLeapStumpIntoWater(), scJupiterLighthouseAlexAppears(), scKandoreanTempleLandFromAbove(), scMagmaRockBurnStatue(), scMagmaRockDropLeaderFromSummit(), scMagmaRockFireFromStatue(), scMagmaRockInsideDrainLava(), scMagmaRockInsideFireFromStatue(), scMagmaRockInsideRaiseLava(), scMagmaRockInsideReleaseRocks(), scMagmaRockInsideSmokeEmber(), scMagmaRockInsideTrailEmbers(), scMagmaRockInsideTrailSparks(), scMagmaRockKnockLeaderOffWall(), scMagmaRockLeaveEmbers(), scMagmaRockRaiseFlameTop(), scMagmaRockScatterEmbers(), scMagmaRockThrowEmbers(), scMarsLighthouseEntrancePoundIceCone(), scMtAlephSummitScatterDustRing(), scProngSparkle(), scSeaOfTimeCountLaps(), scSeaOfTimeFacePoseidon(), scSeaOfTimeFollowChannel(), scSeaOfTimeOpen() and 17 more.
Definition at line 396 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumClearScriptedActorSpriteFlags
Sint32 scAnemosInnerSanctumClearScriptedActorSpriteFlags(Sint32 actorId)
Clears the actor's sprite flags, as a script's call; always 0.
References fdActorSetSpriteFlags() and Sint32.
Referenced by AnemosInnerSanctumNoShadowScript.
Definition at line 485 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumCircleOrb
Bool scAnemosInnerSanctumCircleOrb(ACTOR *actor)
A spark ring's orb: it circles its centre at its own speed while the radius shrinks a pixel a tick; 0 once it reaches the centre.
References scFieldVectorAddPolarOffsetFX().
Referenced by AnemosInnerSanctumOrbScript.
Definition at line 493 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumLeaveSpark
void scAnemosInnerSanctumLeaveSpark(ACTOR *src)
Leaves a fading spark of the source's palette where the source is.
References AnemosInnerSanctumFadingSparkScript, fdActorSelectAnimation(), fdActorSetBlendMode(), fdActorSetSpriteFlags(), fdActorStartScript(), scFieldActorCreate(), scFieldActorSetSpriteColor() and scSetActorSpritePriority().
Referenced by scAnemosInnerSanctumSpiralIn().
Definition at line 512 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumSpiralIn
Bool scAnemosInnerSanctumSpiralIn(SPARK *spark)
A spark's update: two steps a tick along its spiral, closing in and falling, leaving a fading spark at each; 0 once it reaches its plate.
References scAnemosInnerSanctumLeaveSpark() and scFieldVectorAddPolarOffsetFX().
Referenced by AnemosInnerSanctumSparkScript and scAnemosInnerSanctumSendSpark().
Definition at line 528 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumLightPlate
Sint32 scAnemosInnerSanctumLightPlate(ACTOR *actor)
A spark reaches its plate: a puff of sparks of its palette, and the plate shows its lit picture.
References fdMapGridCopyMetatilesTo(), scFieldEffectSpawn() and Sint32.
Referenced by AnemosInnerSanctumSparkScript.
Definition at line 552 of file anemos_inner_sanctum.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 576 of file anemos_inner_sanctum.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 581 of file anemos_inner_sanctum.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 586 of file anemos_inner_sanctum.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References AnemosInnerSanctumBoulderPlacements, AnemosInnerSanctumCrackedFloorPlacements, AnemosInnerSanctumElevatorPlacements, AnemosInnerSanctumGatePlacements, AnemosInnerSanctumMimicStonesPlacements, AnemosInnerSanctumPlacements and MainRoutineStateWork.
Definition at line 598 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumSendSpark
void scAnemosInnerSanctumSendSpark(from, to, palette) VECTOR3 *from; VECTOR3 *to; Sint16 palette;
Sends a spark of the given palette spiralling from one point to another.
References AnemosInnerSanctumSparkScript, fdActorSelectAnimation(), fdActorSetBlendMode(), fdActorSetSpriteFlags(), fdActorStartScript(), scAnemosInnerSanctumSpiralIn(), scFieldActorCreate(), scFieldActorSetSpriteColor(), scFieldVectorAddPolarOffsetFX(), scSetActorSpritePriority(), Sint32, syAtan(), syRandom() and sySquartIWRAM().
Referenced by scAnemosInnerSanctumLightSymbol().
Definition at line 616 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumSparkRing
void scAnemosInnerSanctumSparkRing(x, y, palette, speed) Sint32 x; Sint32 y; Sint16 palette; Sint16 speed;
Rings a torch at x, y (16.16) with eight orbs of the given palette that circle in on it at the given speed. Each orb keeps its circle in its actor's fields: its centre in bounce (x) and gravity (y), its radius in sceneWord, its angle in circleAngle and its speed in circleTurn.
References AnemosInnerSanctumOrbScript, fdActorSelectAnimation(), fdActorSetBlendMode(), fdActorSetSpriteFlags(), fdActorStartScript(), scFieldActorCreate(), scFieldActorSetSpriteColor(), scSetActorSpritePriority() and Sint32.
Referenced by scAnemosInnerSanctumLightSymbol().
Definition at line 652 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumLightTorch
void scAnemosInnerSanctumLightTorch(x, y, palette) Sint32 x; Sint32 y; Sint16 palette;
Leaves a flame of the given palette burning on the torch at x and height y on the torches' row.
References fdActorSelectAnimation(), fdActorSetSpriteFlags(), scFieldActorCreate(), scFieldActorSetSpriteColor(), scSetActorSpritePriority() and Sint32.
Referenced by scAnemosInnerSanctumLightSymbol() and scInit().
Definition at line 686 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumMimicLeader
void scAnemosInnerSanctumMimicLeader(ACTOR *self)
A mimic stone's update: each step the leader takes, it takes too, mirrored east for west, scraping up dust, unless a wall stands in its way; on its button or over a hole it stops and raises that cue. Once the leader goes back south of its row, it settles on its metatile and may be started again. sceneWord and acceleration hold the leader's last x and z.
References AnemosInnerSanctumDustScript, fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdActorStartScript(), fdScriptClearFlag(), fdScriptPlaySound(), MainRoutineStateWork, scFieldActorCreate(), scFieldActorSetSpriteColor(), scFieldMapGridGetMetatileBehaviorAt(), scSetActorSpritePriority(), Sint32, syRandom() and TickCount.
Referenced by scAnemosInnerSanctumStartMimicStone().
Definition at line 1376 of file anemos_inner_sanctum.c.
scGetCues
const CUE *scGetCues(void)
References AnemosInnerSanctumBoulderCues, AnemosInnerSanctumCrackedFloorCues, AnemosInnerSanctumCues, AnemosInnerSanctumElevatorCues, AnemosInnerSanctumGateCues, AnemosInnerSanctumMimicStonesCues and MainRoutineStateWork.
Definition at line 1587 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumAnimateDoor
static __inline__ void scAnemosInnerSanctumAnimateDoor(const void *steps, Sint32 x, Sint32 y)
Plays a door's map edit at x, y.
References fdMapGridPlayMapEdit() and Sint32.
Referenced by scAnemosInnerSanctumEnterTheRoom().
Definition at line 1619 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumEnterTheRoom
void scAnemosInnerSanctumEnterTheRoom(void)
Unused: stills every placed actor, opens the north door or a mimic stone's door by the step cue's number, and walks the leader out by the exit of that number.
References AnemosInnerSanctumMimicStoneDoors, AnemosInnerSanctumNorthDoorFrames, fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdMapGridAnimateMetatiles(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scAnemosInnerSanctumAnimateDoor(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptWait() and Sint32.
Definition at line 1628 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumArriveOnElevatorLift
void scAnemosInnerSanctumArriveOnElevatorLift(void)
The party arrives up the lift in the elevator room: it rises the last of the way into the room with Felix on it and stays there.
References fdActorGet(), fdActorSetAnimation(), fdScriptEnd(), fdScriptSetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), MainRoutineStateWork, scFieldActorSetMoveTargetFX(), scFieldActorWaitForMove() and scFieldScriptEndLastingPsynergy().
Referenced by scInit().
Definition at line 1668 of file anemos_inner_sanctum.c.
scAnemosInnerSanctumArriveOnMimicStonesLift
void scAnemosInnerSanctumArriveOnMimicStonesLift(void)
As scAnemosInnerSanctumArriveOnElevatorLift, on the mimic stones room's lift.
References fdActorGet(), fdScriptEnd(), fdScriptSetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), MainRoutineStateWork, scFieldActorSetMoveTargetFX(), scFieldActorWaitForMove() and scFieldScriptEndLastingPsynergy().
Referenced by scInit().
Definition at line 1690 of file anemos_inner_sanctum.c.
scInit
Sint32 scInit(void)
Sets up the room the party comes into: the gate room's lit torches and opened north door; the pillars left in their places; the lifts, below or above as they last carried the party, and the round switches already pressed; the cracked floors; and the mimic stones resting on their buttons, their doors open.
References AnemosInnerSanctumBoulderBlocks, AnemosInnerSanctumCrackedFloorBlocks, AnemosInnerSanctumElevatorBlocks, Call1(), fdActorGet(), fdActorPlaceBlocks(), fdActorSetAnimation(), fdActorSetPosFX(), fdMapGridCopyMetatilesTo(), fdMapGridSetMetatileHeight(), fdScriptGetFlag(), fdScriptSetFlag(), MainRoutineStateWork, scAnemosInnerSanctumArriveOnElevatorLift(), scAnemosInnerSanctumArriveOnMimicStonesLift(), scAnemosInnerSanctumLightTorch(), scCrackedTileFind(), scCrackedTilePlaceLanding(), scFieldActorSetSpritePriority(), scPaletteSetColorsFade(), Sint32, syGameFlagGet(), TeleportCircleColors, TeleportCirclePaletteSlots, TeleportCircleShimmerColors and TeleportCircleShimmerSlots.
Definition at line 1721 of file anemos_inner_sanctum.c.
scPrepareMap
Sint32 scPrepareMap(void)
References Sint32.
Definition at line 2016 of file anemos_inner_sanctum.c.
scEffectMoveLocal
void scEffectMoveLocal(FIELD_OBJECT *object)
An effect's update: moves it by its velocity, grows it by its scale rates and spins its sprite.
References Sint32.
Referenced by scFieldEffectSpawnLocal().
Definition at line 2025 of file anemos_inner_sanctum.c.
scFieldEffectSpawnLocal
void scFieldEffectSpawnLocal(Sint32 x, Sint32 y, Sint32 z, Sint32 velocityX, Sint32 velocityY, Sint32 velocityZ, Uint32 flags, const EFFECT_OPTIONS *options)
As scFieldEffectSpawn, the effect taking the leader's sprite priority and
moved by scEffectMoveLocal: the shared spawner's update and priority setter
are fixed, so this copy is written out too.
References fdActorGetById(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdActorStartScript(), FieldEffectDurationScripts, MainRoutineStateWork, scEffectMoveLocal(), scEffectSetSpritePriority(), scFieldActorSetSpriteColor(), Sint32 and syImportActorCreate().
Referenced by scCrackedTileDropIn().
Definition at line 2049 of file anemos_inner_sanctum.c.
scCrackedTileDropIn
void scCrackedTileDropIn(void)
The leader lands from the cracked floor above in a ring of dust, as in
shared/cracked_tile_drop_in.c.
References fdActorGet(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdEffectAdvanceMotion(), fdMapGridCenterOnFollowedPoint(), fdScriptEnd(), fdScriptPlaySound(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldEffectSpawnLocal(), scFieldMapGridWaitForShakeToSettle(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), Sint32, syCos(), syRandom(), sySin() and sySynch().
Referenced by scCrackedTilePlaceLanding() and scInit().
Definition at line 2150 of file anemos_inner_sanctum.c.
Variables in detail
PaletteCycleBright
Uint16 PaletteCycleBright
The Teleport circle's shimmer, cycled by shared/teleport_shimmer.c: the
palette slots and colours it cycles and where the cycle stands.
Referenced by fdPaletteCycleFade(), scTeleportStartFastShimmer() and scTeleportStartShimmer().
Definition at line 71 of file anemos_inner_sanctum.c.
PaletteCycleTimer
Uint16 PaletteCycleTimer
Referenced by fdPaletteCycleFade(), scTeleportStartFastShimmer() and scTeleportStartShimmer().
Definition at line 73 of file anemos_inner_sanctum.c.
PaletteCycleDelay
Uint16 PaletteCycleDelay
Referenced by fdPaletteCycleFade(), scTeleportStartFastShimmer() and scTeleportStartShimmer().
Definition at line 74 of file anemos_inner_sanctum.c.
CrackedTiles
METATILE_TARGET CrackedTiles
The cracked floors' metatiles, found by shared/cracked_tile_find.c.
Referenced by scCrackedTileFind(), scCrackedTilePlaceLanding(), scCrackedTileStep() and scCrackedTileUpdate().
Definition at line 90 of file anemos_inner_sanctum.c.
AnemosInnerSanctumShortScript
extern Uint32 AnemosInnerSanctumShortScript[]
Uint32 AnemosInnerSanctumShortScript[]
The same three lifetimes as FieldEffectShortScript, MediumScript and LongScript
(shared/field_effect_duration_scripts.c), under other names.
Referenced by AnemosInnerSanctumDurationScripts.
Definition at lines 111 and 2226 of file anemos_inner_sanctum.c.
AnemosInnerSanctumMediumScript
extern Uint32 AnemosInnerSanctumMediumScript[]
Uint32 AnemosInnerSanctumMediumScript[]
Referenced by AnemosInnerSanctumDurationScripts.
Definition at lines 112 and 2236 of file anemos_inner_sanctum.c.
AnemosInnerSanctumLongScript
extern Uint32 AnemosInnerSanctumLongScript[]
Uint32 AnemosInnerSanctumLongScript[]
Referenced by AnemosInnerSanctumDurationScripts.
Definition at lines 113 and 2246 of file anemos_inner_sanctum.c.
AnemosInnerSanctumNoShadowScript
extern Sint32 AnemosInnerSanctumNoShadowScript[]
Sint32 AnemosInnerSanctumNoShadowScript[]
References scAnemosInnerSanctumClearScriptedActorSpriteFlags() and Sint32.
Referenced by AnemosInnerSanctumCrackedFloorPlacements, AnemosInnerSanctumElevatorPlacements and AnemosInnerSanctumMimicStonesPlacements.
Definition at lines 115 and 2360 of file anemos_inner_sanctum.c.
AnemosInnerSanctumMimicStoneDoorFrames
extern Sint16 AnemosInnerSanctumMimicStoneDoorFrames[]
Sint16 AnemosInnerSanctumMimicStoneDoorFrames[]
A mimic stone room's door opening, the same.
Referenced by AnemosInnerSanctumMimicStoneDoors.
Definition at lines 116 and 3021 of file anemos_inner_sanctum.c.
AnemosInnerSanctumOrbScript
extern Sint32 AnemosInnerSanctumOrbScript[]
Sint32 AnemosInnerSanctumOrbScript[]
References scAnemosInnerSanctumCircleOrb() and Sint32.
Referenced by scAnemosInnerSanctumSparkRing().
Definition at lines 117 and 2262 of file anemos_inner_sanctum.c.
AnemosInnerSanctumDurationScripts
extern Sint32 AnemosInnerSanctumDurationScripts[]
Sint32 AnemosInnerSanctumDurationScripts[]
The field effects' scripts by how long they last, which scFieldEffectSpawn picks by its flags
(EFFECT_SCRIPT_MASK).
References AnemosInnerSanctumLongScript, AnemosInnerSanctumMediumScript, AnemosInnerSanctumShortScript and Sint32.
Referenced by scFieldEffectSpawn().
Definition at lines 386 and 2351 of file anemos_inner_sanctum.c.
AnemosInnerSanctumFadingSparkScript
extern Uint32 AnemosInnerSanctumFadingSparkScript[]
Uint32 AnemosInnerSanctumFadingSparkScript[]
Referenced by scAnemosInnerSanctumLeaveSpark().
Definition at lines 509 and 2302 of file anemos_inner_sanctum.c.
AnemosInnerSanctumPlacements
extern ACTOR_PLACE AnemosInnerSanctumPlacements[]
ACTOR_PLACE AnemosInnerSanctumPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 591 and 2631 of file anemos_inner_sanctum.c.
AnemosInnerSanctumGatePlacements
extern ACTOR_PLACE AnemosInnerSanctumGatePlacements[]
ACTOR_PLACE AnemosInnerSanctumGatePlacements[]
Referenced by scGetActorPlacements().
Definition at lines 592 and 2635 of file anemos_inner_sanctum.c.
AnemosInnerSanctumElevatorPlacements
extern ACTOR_PLACE AnemosInnerSanctumElevatorPlacements[]
ACTOR_PLACE AnemosInnerSanctumElevatorPlacements[]
References AnemosInnerSanctumNoShadowScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 593 and 2639 of file anemos_inner_sanctum.c.
AnemosInnerSanctumBoulderPlacements
extern ACTOR_PLACE AnemosInnerSanctumBoulderPlacements[]
ACTOR_PLACE AnemosInnerSanctumBoulderPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 594 and 2649 of file anemos_inner_sanctum.c.
AnemosInnerSanctumCrackedFloorPlacements
extern ACTOR_PLACE AnemosInnerSanctumCrackedFloorPlacements[]
ACTOR_PLACE AnemosInnerSanctumCrackedFloorPlacements[]
References AnemosInnerSanctumNoShadowScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 595 and 2667 of file anemos_inner_sanctum.c.
AnemosInnerSanctumMimicStonesPlacements
extern ACTOR_PLACE AnemosInnerSanctumMimicStonesPlacements[]
ACTOR_PLACE AnemosInnerSanctumMimicStonesPlacements[]
References AnemosInnerSanctumNoShadowScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 596 and 2677 of file anemos_inner_sanctum.c.
AnemosInnerSanctumSparkScript
extern Sint32 AnemosInnerSanctumSparkScript[]
Sint32 AnemosInnerSanctumSparkScript[]
References scAnemosInnerSanctumLightPlate(), scAnemosInnerSanctumSpiralIn() and Sint32.
Referenced by scAnemosInnerSanctumSendSpark().
Definition at lines 613 and 2308 of file anemos_inner_sanctum.c.
AnemosInnerSanctumDjinniRisesScript
extern Uint32 AnemosInnerSanctumDjinniRisesScript[]
Uint32 AnemosInnerSanctumDjinniRisesScript[]
Referenced by scAnemosInnerSanctumLightSymbol().
Definition at lines 701 and 2278 of file anemos_inner_sanctum.c.
AnemosInnerSanctumDjinniSinksScript
extern Sint32 AnemosInnerSanctumDjinniSinksScript[]
Sint32 AnemosInnerSanctumDjinniSinksScript[]
References Sint32.
Referenced by scAnemosInnerSanctumLightSymbol().
Definition at lines 702 and 2290 of file anemos_inner_sanctum.c.
AnemosInnerSanctumPlateOffsets
extern Sint32 AnemosInnerSanctumPlateOffsets[][2]
Sint32 AnemosInnerSanctumPlateOffsets[][2]
Where the sparks fly to round the leader as a symbol lights, in pixels from him in x and z.
References Sint32.
Referenced by scAnemosInnerSanctumLightSymbol().
Definition at lines 703 and 2341 of file anemos_inner_sanctum.c.
AnemosInnerSanctumElevatorBlocks
extern Sint16 AnemosInnerSanctumElevatorBlocks[]
Sint16 AnemosInnerSanctumElevatorBlocks[]
The blocks Move pushes in each room (fdActorLiftTargetBlock), ended by -1: the elevator room's
two pillars.
Referenced by scAnemosInnerSanctumStartMovingBlock() and scInit().
Definition at lines 988 and 2324 of file anemos_inner_sanctum.c.
AnemosInnerSanctumBoulderBlocks
extern Sint16 AnemosInnerSanctumBoulderBlocks[]
Sint16 AnemosInnerSanctumBoulderBlocks[]
The boulder room's five pillars.
Referenced by scAnemosInnerSanctumStartMovingBlock() and scInit().
Definition at lines 989 and 2329 of file anemos_inner_sanctum.c.
AnemosInnerSanctumCrackedFloorBlocks
extern Sint16 AnemosInnerSanctumCrackedFloorBlocks[]
Sint16 AnemosInnerSanctumCrackedFloorBlocks[]
The cracked floor room's two pillars.
Referenced by scAnemosInnerSanctumStartMovingBlock() and scInit().
Definition at lines 990 and 2336 of file anemos_inner_sanctum.c.
AnemosInnerSanctumSwitchGlowScript
extern Sint32 AnemosInnerSanctumSwitchGlowScript[]
Sint32 AnemosInnerSanctumSwitchGlowScript[]
References Sint32.
Referenced by scAnemosInnerSanctumPressRoundSwitch().
Definition at lines 1152 and 2256 of file anemos_inner_sanctum.c.
AnemosInnerSanctumDustScript
extern Sint32 AnemosInnerSanctumDustScript[]
Sint32 AnemosInnerSanctumDustScript[]
References Sint32.
Referenced by scAnemosInnerSanctumMimicLeader().
Definition at lines 1369 and 2268 of file anemos_inner_sanctum.c.
AnemosInnerSanctumCues
extern CUE AnemosInnerSanctumCues[]
CUE AnemosInnerSanctumCues[]
Referenced by scGetCues().
Definition at lines 1580 and 2704 of file anemos_inner_sanctum.c.
AnemosInnerSanctumGateCues
extern CUE AnemosInnerSanctumGateCues[]
CUE AnemosInnerSanctumGateCues[]
References scAnemosInnerSanctumLightSymbol(), scAnemosInnerSanctumStepOffSymbol() and scAnemosInnerSanctumTeleportOut().
Referenced by scGetCues().
Definition at lines 1581 and 2708 of file anemos_inner_sanctum.c.
AnemosInnerSanctumElevatorCues
extern CUE AnemosInnerSanctumElevatorCues[]
CUE AnemosInnerSanctumElevatorCues[]
References scAnemosInnerSanctumFinishMovingBlock(), scAnemosInnerSanctumPressRoundSwitch(), scAnemosInnerSanctumRideLiftUp() and scAnemosInnerSanctumStartMovingBlock().
Referenced by scGetCues().
Definition at lines 1582 and 2724 of file anemos_inner_sanctum.c.
AnemosInnerSanctumBoulderCues
extern CUE AnemosInnerSanctumBoulderCues[]
CUE AnemosInnerSanctumBoulderCues[]
References scAnemosInnerSanctumEndSand(), scAnemosInnerSanctumFinishMovingBlock(), scAnemosInnerSanctumPressSwitch(), scAnemosInnerSanctumSinkIntoSand(), scAnemosInnerSanctumStartMovingBlock() and scAnemosInnerSanctumStepOffSwitch().
Referenced by scGetCues().
Definition at lines 1583 and 2788 of file anemos_inner_sanctum.c.
AnemosInnerSanctumCrackedFloorCues
extern CUE AnemosInnerSanctumCrackedFloorCues[]
CUE AnemosInnerSanctumCrackedFloorCues[]
References scAnemosInnerSanctumEndSand(), scAnemosInnerSanctumFallThroughFirstCracks(), scAnemosInnerSanctumFallThroughSecondCracks(), scAnemosInnerSanctumFinishMovingBlock(), scAnemosInnerSanctumPressRoundSwitch(), scAnemosInnerSanctumRideLiftUp(), scAnemosInnerSanctumSinkIntoSand() and scAnemosInnerSanctumStartMovingBlock().
Referenced by scGetCues().
Definition at lines 1584 and 2866 of file anemos_inner_sanctum.c.
AnemosInnerSanctumMimicStonesCues
extern CUE AnemosInnerSanctumMimicStonesCues[]
CUE AnemosInnerSanctumMimicStonesCues[]
References scAnemosInnerSanctumApproachCharonSlate(), scAnemosInnerSanctumDropMimicStone(), scAnemosInnerSanctumOpenMimicStoneDoor() and scAnemosInnerSanctumStartMimicStone().
Referenced by scGetCues().
Definition at lines 1585 and 2946 of file anemos_inner_sanctum.c.
AnemosInnerSanctumNorthDoorFrames
extern Sint16 AnemosInnerSanctumNorthDoorFrames[]
Sint16 AnemosInnerSanctumNorthDoorFrames[]
The north door's opening, as MAP_EDIT_STEP_ROW rows: two steps of two ticks.
Referenced by scAnemosInnerSanctumEnterTheRoom().
Definition at lines 1615 and 3015 of file anemos_inner_sanctum.c.
AnemosInnerSanctumMimicStoneDoors
extern MAP_EDIT AnemosInnerSanctumMimicStoneDoors[]
MAP_EDIT AnemosInnerSanctumMimicStoneDoors[]
The three mimic stone rooms' doors, by their step cue's number.
References AnemosInnerSanctumMimicStoneDoorFrames.
Referenced by scAnemosInnerSanctumEnterTheRoom().
Definition at lines 1616 and 3028 of file anemos_inner_sanctum.c.
FieldEffectDurationScripts
extern Sint32 FieldEffectDurationScripts[]
Sint32 FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().
Definition at lines 2043 and 3034 of file anemos_inner_sanctum.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 2367 of file anemos_inner_sanctum.c.