src/scene/shrine_of_the_sea_god.c
The Shrine of the Sea God east of Daila, in eleven rooms that share this overlay (SceneIdShrineOfTheSeaGodEntrance to SceneIdShrineOfTheSeaGodRightProng). More…
#include "item_ids.h"#include "macros.h"#include "field/actor_script.h"#include "field/call.h"#include "field/script_inline.h"#include "field/field_engine.h"#include "game/game.h"#include "scene/ground_effects.h"#include "scene/scene.h"#include "scene/shrine_of_the_sea_god.h"#include "text/msg_ids.h"#include "shared/actor_set_sprite_priority.c"#include "../field/field_effect_move.c"#include "shared/field_effect_spawn.c"#include "shared/actors_set_hidden.c"#include "../field/field_effect_advance_motion.c"#include "shared/actor_hide.c"#include "shared/prong_sparkle.c"#include "shared/field_effect_duration_scripts.c"#include "shared/scene_entrances_default.c"
Macros
| Name | Description | |
|---|---|---|
#define | EFFECT_SET_MODE fdActorSelectAnimation | |
#define | EFFECT_SET_SCRIPT fdActorStartScript | |
#define | FLAG_CROSSROADS_PILLAR_MOVED 0x84c | Move pushed the crossroads' pillar |
#define | FLAG_RIKI_GAVE_UP 0x872 | Riki missed with the rope, went off |
#define | FLAG_DJINNI_FLED_EAST 0x874 | the Djinni ran east in the crossroads |
#define | FLAG_DJINNI_FLED_SOUTH 0x875 | and ran on, out of it |
#define | FLAG_DJINNI_RAN_PAST 0x876 | its footprints are gone |
#define | FLAG_DJINNI_BY_LEDGE 0x877 | it waits by the ledge |
#define | FLAG_DJINNI_ON_LEDGE 0x87c | it hopped up onto the ledge |
#define | FLAG_SHRINE_FIRST_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x00) | Frost froze the puddle at (8, 18). |
#define | FLAG_SHRINE_SECOND_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x01) | Frost froze the puddle at (10, 18). |
#define | FLAG_SHRINE_THIRD_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x02) | Frost froze the puddle at (10, 17). |
#define | FLAG_SHRINE_ROPE_TIED FLAG_SCENE_TEMP(0x03) | Lash tied the entrance's rope, or the broken bridges room's south rope. |
#define | FLAG_SHRINE_SECOND_ROPE_TIED FLAG_SCENE_TEMP(0x04) | Lash tied the north rope. |
#define | FLAG_DJINNI_CHASE_OVER FLAG_SCENE_TEMP(0x05) | Breath is caught, or its battle begun. |
#define | FLAG_DJINNI_TRAPPED FLAG_SCENE_TEMP(0x06) | The torch has stopped Breath on the north side. |
#define | FLAG_TORCH_AT_NORTH_WALL FLAG_SCENE_TEMP(0x07) | The torch stands where it traps Breath. |
#define | FLAG_BLOCKS_SHOWN FLAG_SCENE_TEMP(0x08) | The exterior's unseen blocks are drawn. |
#define | FLAG_LEADER_IN_FRONT FLAG_SCENE_TEMP(0x0a) | Felix is drawn in front of the crossroads' bridges. |
#define | FLAG_CROSSROADS_BRIDGE_BROKEN FLAG_SCENE_TEMP(0x30) | A broken bridge's middle has fallen into the stream below. |
#define | FLAG_FIRST_BRIDGE_BROKEN FLAG_SCENE_TEMP(0x31) | |
#define | FLAG_SECOND_BRIDGE_BROKEN FLAG_SCENE_TEMP(0x32) | |
#define | FLAG_PILLAR_IN_HOLE FLAG_AREA_TEMP(0x01) | |
#define | FLAG_FIGHTING_BREATH FLAG_AREA_TEMP(0x40) | Set as the battle with Breath starts, with where it was trapped, so the scene puts it back there once it is beaten. |
#define | FLAG_BREATH_TRAPPED_EAST FLAG_AREA_TEMP(0x41) | |
#define | FLAG_BREATH_TRAPPED_WEST FLAG_AREA_TEMP(0x42) | |
#define | WATER_RISE_STEPS 24 | After its bands, the island room's water rises a pixel a step for this many steps, then lifts the party half a pixel a step for as many again. |
#define | STATUE_ROOM_RISE 50 | How far the water carries the leader between the island and the statue room, in pixels, half a pixel every two ticks. |
#define | STATUE_ROOM_CLOSE_STEPS 10 | Sinking back to the island, the steps of half a pixel left when the screen starts to close. |
#define | SPRAY_DIRECTIONS 16 | The spray the crossroads' bridge throws up as it hits the water: a drop every sixteenth of a turn, the first direction thrown twice. |
#define | DEFINE_DJINNI_DASH (name, toX, toZ, place) | A dash of Breath's along the ledge to (toX, toZ), where it stands at place. |
#define | DEFINE_DJINNI_WALK_AND_JUMP ( | Breath runs along the ledge's north side to stopX, beside the torch's place at the north wall. |
#define | DEFINE_DJINNI_DASH_AROUND (name, toX, toZ, fromX, place) | A dash of Breath's from the corner at fromX round the ledge's side, by its middle row, to (toX, toZ), where it stands at place. |
#define | DEFINE_DJINNI_JUMP ( | As DEFINE_DJINNI_WALK_AND_JUMP for Breath already beside the torch's place. |
Enumerations
| Name | Description | |
|---|---|---|
enum | SHRINE_OF_THE_SEA_GOD_ENTRANCE_ACTOR_ID { ACTOR_ENTRANCE_FIRST_LOG, ACTOR_ENTRANCE_SECOND_LOG, ACTOR_E … } | The entrance's actors (SceneIdShrineOfTheSeaGodEntrance), numbering the rows of ShrineOfTheSeaGodEntranceActorPlacements. |
enum | SHRINE_OF_THE_SEA_GOD_TORCH_ACTOR_ID { ACTOR_TORCH, ACTOR_TORCH_FLAME_MARKER } | The torch Move pushes, the first row of the side room (SceneIdShrineOfTheSeaGodSideRoom) and of the ledge room (SceneIdShrineOfTheSeaGodBreath): a pedestal whose flame is its own animation. |
enum | SHRINE_OF_THE_SEA_GOD_SIDE_ROOM_ACTOR_ID { ACTOR_SIDE_ROOM_BRIDGE, ACTOR_SIDE_ROOM_RIKI, ACTOR_SIDE_ROO … } | The rest of the side room's actors. |
enum | SHRINE_OF_THE_SEA_GOD_CROSSROADS_ACTOR_ID { ACTOR_CROSSROADS_PILLAR, ACTOR_CROSSROADS_LOG_BRIDGE, ACTOR_ … } | The crossroads' actors (SceneIdShrineOfTheSeaGodCrossroads), numbering the rows of ShrineOfTheSeaGodCrossroadsActorPlacements. |
enum | SHRINE_OF_THE_SEA_GOD_FOOTPRINTS_ACTOR_ID { ACTOR_FIRST_FOOTPRINT, ACTOR_LAST_FOOTPRINT } | The room below's actors (SceneIdShrineOfTheSeaGodFootprints): Breath's footprints, sixteen of them, left and right feet in turn. |
enum | SHRINE_OF_THE_SEA_GOD_LEDGE_ROOM_ACTOR_ID { ACTOR_FIRST_PUDDLE, ACTOR_SECOND_PUDDLE, ACTOR_THIRD_PUDDLE, … } | The rest of the ledge room's actors (SceneIdShrineOfTheSeaGodBreath). |
enum | SHRINE_OF_THE_SEA_GOD_EXTERIOR_ACTOR_ID { ACTOR_EXTERIOR_PILLAR, ACTOR_EXTERIOR_FIRST_BLOCK, ACTOR_EXT … } | The exterior's actors (SceneIdShrineOfTheSeaGodExterior). |
enum | SHRINE_OF_THE_SEA_GOD_BROKEN_BRIDGES_ACTOR_ID { ACTOR_BROKEN_BRIDGES_FIRST_BRIDGE, ACTOR_BROKEN_BRIDGES_SECO … } | The broken bridges room's actors (SceneIdShrineOfTheSeaGodBrokenBridges), numbering the rows of ShrineOfTheSeaGodBrokenBridgesActorPlacements. |
enum | SHRINE_OF_THE_SEA_GOD_ISLAND_ACTOR_ID { ACTOR_ISLAND_FIRST_LOG, ACTOR_ISLAND_SECOND_LOG, ACTOR_ISLAN … } | The island room's actors (SceneIdShrineOfTheSeaGodIsland): three logs floating on the water the Sea God's Tear raises. |
enum | SHRINE_OF_THE_SEA_GOD_BREATH_PLACE { BREATH_AT_SOUTHEAST_CORNER, BREATH_AT_NORTHEAST_CORNER, BREA … } | Where Breath stands on the ledge, kept in its ACTOR.sceneCount: at a corner, or stopped beside the torch on the north side, facing it. |
enum | SHRINE_OF_THE_SEA_GOD_LEDGE_STEP { STEP_LEDGE_SOUTHEAST_WAY_UP, STEP_LEDGE_EAST_SIDE_SOUTH, STE … } | The ledge room's step cues round the ledge, each sending Breath on (scShrineOfTheSeaGodChaseDjinni): the ways up at its south-east and south-west corners, and two places on each of its other sides. |
enum | SHRINE_OF_THE_SEA_GOD_METATILE { RIKI_THROWS_ROPE_METATILE, CROSSROADS_BRIDGE_END_METATILE, C … } | The metatiles that run the other rooms' scripts, each room numbering its own after the numbers of its exits. |
Functions
| Name | Description | |
|---|---|---|
void | scShrineOfTheSeaGodSetBlocksShown (Sint32 show) | Draws (show 1) or stops drawing the exterior's three unseen blocks. |
void | scShrineOfTheSeaGodKeepWithLeader (ACTOR *actor) | Keeps a broken bridge's middle where it lies against the leader as he falls. |
void | scShrineOfTheSeaGodFightBreath (void) | Talking to Breath from up on the ledge, once the torch has stopped it, starts its battle. |
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 statue room, the ladders and the Right Prong's 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 current room's actors. |
const CUE * | scGetCues (void) | The current room's cues. |
void | scShrineOfTheSeaGodExamineStatue (void) | Examining the crystal statue, on the island or in the room above it: it looks like the one in Daila's Sanctum. |
void | scShrineOfTheSeaGodStartleRiki (void) | Talking to Riki from behind in the side room startles him; he is busy trying to help Tavi. |
void | scShrineOfTheSeaGodOpenFieldMenu (void) | Talking to an unseen marker behind the broken bridges room's chest opens the field menu, as talking to nothing does. |
void | scShrineOfTheSeaGodLiftWithWater (void) | The island room's water rises a step, lifting Felix, the camera and the floating logs with it. |
void | scShrineOfTheSeaGodRaiseWaterLayer (void) | The water's layer moves a pixel as the water rises, then waits four ticks. |
void | scShrineOfTheSeaGodRaiseWaterBand (Sint32 x, Sint32 y) | Copies the next band of the risen water's metatiles, 6 by 56 from (x, y) to (18, 6), then moves the water and ground layers two pixels over 16 ticks. |
void | scShrineOfTheSeaGodUseSeaGodsTear (void) | Using the Sea God's Tear on the crystal statue on the island: the room rumbles, the water rises round the island over the stepping stones, and it carries Felix up to the room above (scShrineOfTheSeaGodRiseOnWater). |
void | scShrineOfTheSeaGodLowerWithWater (void) | The island room's water falls a step, lowering Felix, the camera and the floating logs with it. |
void | scShrineOfTheSeaGodLowerWaterLayer (void) | The water's layer moves a pixel as the water falls, then waits four ticks. |
void | scShrineOfTheSeaGodLowerWaterBand (Sint32 x, Sint32 y) | Copies the next band of the falling water's metatiles, 6 by 56 from (x, y) to (18, 6), then moves the water and ground layers back two pixels over 16 ticks. |
void | scShrineOfTheSeaGodLowerWater (void) | Back on the island after using the Tear in the room above, the water drains away round Felix until the stepping stones show again. |
void | scShrineOfTheSeaGodRiseOnWater (void) | Arriving in the room above the island, Felix rises up through the floor on the crystal statue's platform as the screen opens. |
void | scShrineOfTheSeaGodSinkWithWater (void) | Using the Sea God's Tear on the crystal statue in the room above the island takes Felix back down: he turns to face south, the statue's platform sinks into the floor with him, the screen closes round him, and he is back on the island, where the water drains away (scShrineOfTheSeaGodLowerWater). |
void | scShrineOfTheSeaGodSetUpPuddle (Sint32 actor) | Sets up one of the ledge room's puddles, its ice pillar not shown until Frost freezes it. |
void | scShrineOfTheSeaGodFreezeFirstPuddle (void) | Frost on the westernmost of the three puddles west of Breath's ledge, metatile (8, 18), freezes it into a pillar of ice. |
void | scShrineOfTheSeaGodFreezeSecondPuddle (void) | Frost on the puddle two metatiles east of the first, metatile (10, 18), the south one of the pair beside it, freezes it into a pillar of ice to hop along. |
void | scShrineOfTheSeaGodFreezeThirdPuddle (void) | Frost on the north puddle of that pair, metatile (10, 17), freezes it into a pillar of ice to hop along. |
void | scShrineOfTheSeaGodLiftBlock (void) | Move lifts the room's torch, or in the crossroads its stone pillar. |
void | scShrineOfTheSeaGodSetDownTorch (void) | Sets the torch down, noting whether it stands against the north wall where it traps Breath. |
void | scShrineOfTheSeaGodMovePillar (void) | Sets the crossroads' stone pillar down; pushed all the way west, it stays there. |
void | scShrineOfTheSeaGodDropPillar (ACTOR *actor) | Lets a pillar fall to the ground with a thump. |
void | scShrineOfTheSeaGodPushPillarIntoHole (void) | Pushed onto the hole, the pillar drops in and fills it. |
void | scShrineOfTheSeaGodLayerCrossroadsBridges (void) | The crossroads' event: its bridges are drawn under the leader when he is up on them, in front of him below. |
void | scShrineOfTheSeaGodTrackUpperLevel (void) | Notes whether the leader stands on the upper level of the room. |
void | scShrineOfTheSeaGodLayerPuddles (void) | The ledge room's event: the puddles are drawn behind or in front of the leader by where it stands. |
void | scShrineOfTheSeaGodKeepFlameOnTorch (void) | Keeps the marker on the torch's flame, 20 pixels up, as Move carries the torch. |
void | scShrineOfTheSeaGodClearLeaderIgnoresRises (void) | field_actors.c's priority update answers what ACTOR_PRIORITY_IGNORES_RISES does: with it, an actor takes only the priority of the metatiles under its feet, and ground rising a metatile or two in front of it never puts it further back. |
void | scShrineOfTheSeaGodSetLeaderIgnoresRises (void) | Unused: keeps the leader in front of rising ground, as the exterior does. |
void | scActorsSetDrawn (Sint32 show, Sint32 first, Uint32 count) | Draws (show 1) or stops drawing count actors, from first on. |
void | scShrineOfTheSeaGodShowBlocks (void) | Unused: draws the exterior's unseen blocks and notes them shown. |
void | scShrineOfTheSeaGodHideBlocks (void) | Stops drawing the exterior's unseen blocks. |
void | scShrineOfTheSeaGodDrawLeaderInFront (void) | Nothing visible happens when Felix steps onto a metatile at the end of one of the crossroads' bridges or by its north doorways. |
void | scShrineOfTheSeaGodDrawLeaderBehind (void) | Nothing visible happens when Felix comes down to the foot of the crossroads' ladder below the bridges, metatile (29, 22). |
void | scShrineOfTheSeaGodRockOnBridge (ACTOR *leader, ACTOR *middle) | On a broken bridge's middle the leader sways twice, the middle dipping under him, and loses his shadow; the middle's place against him is kept for the fall (scShrineOfTheSeaGodKeepWithLeader). |
void | scShrineOfTheSeaGodKeepCrossroadsBridgeWithLeader (void) | The event that carries the crossroads' broken bridge's middle along with the leader. |
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. |
void | scShrineOfTheSeaGodBreakCrossroadsBridge (void) | On the crossroads' broken bridge the leader sways until its middle drops with him into the water below, throwing up spray, and tips there. |
void | scShrineOfTheSeaGodLandBrokenBridge (ACTOR *actor, Sint32 bridge) | Waits for the leader, falling with a broken bridge's middle, to land in the stream, then throws up the bridge's two splashes there; bridge counts the splashes from ACTOR_FIRST_BRIDGE_SPLASH. |
void | scShrineOfTheSeaGodKeepFirstBridgeWithLeader (void) | The event that carries the broken bridges room's first broken bridge's middle along with the leader. |
void | scShrineOfTheSeaGodBreakFirstBridge (void) | On the broken bridges room's first broken bridge the leader sways until its middle drops with him into the stream, which carries him south on it. |
void | scShrineOfTheSeaGodKeepSecondBridgeWithLeader (void) | The event that carries the broken bridges room's second broken bridge's middle along with the leader. |
void | scShrineOfTheSeaGodBreakSecondBridge (void) | On the broken bridges room's second broken bridge the leader sways until its middle drops with him into the stream, which carries him a little way south. |
void | scShrineOfTheSeaGodRevealStone (void) | Reveal shows the seventh stepping stone in the hexagon of rocks. |
void | scShrineOfTheSeaGodHideStone (void) | As Reveal fades, the seventh stone is hidden again. |
void | scShrineOfTheSeaGodThrowRopeAgain (void) | Back in the entrance, Riki tries to throw the rope up to Tavi again, misses and goes off; Kraden joins the leader. |
void | scShrineOfTheSeaGodLashRope (void) | Lash ties the boys' rope, Tavi climbs down and both meet the party. |
void | scShrineOfTheSeaGodDjinniFleesEast (void) | Breath, first seen in the crossroads, startles and runs east. |
void | scShrineOfTheSeaGodDjinniFleesSouth (void) | In the crossroads, Breath flees south out of the room. |
void | scShrineOfTheSeaGodDjinniRunsNorth (void) | The Djinni runs up from the south stairs, under the bridge, and waits by the ledge. |
void | scShrineOfTheSeaGodDjinniRunsWest (void) | In the ledge room, Breath runs west past the leader. |
void | scShrineOfTheSeaGodDjinniHopsOntoLedge (void) | Breath hops up onto the ledge, where the chase round it begins. |
void | scShrineOfTheSeaGodStartDjinniDash (void) | Starts one of Breath's dashes: the camera and Breath stop, and Breath picks up speed. |
void | scShrineOfTheSeaGodEndDjinniDash (void) | Ends one of Breath's dashes: Breath watches the leader again. |
DEFINE_DJINNI_DASH( | scShrineOfTheSeaGodDjinniSouthEastToNorthEast , 392, 216, BREATH_AT_NORTHEAST_CORNER) | With Breath at the ledge's south-east corner, the leader comes up the south- east way: Breath dashes north to the north-east corner. |
DEFINE_DJINNI_WALK_AND_JUMP( | scShrineOfTheSeaGodDjinniNorthEastJumpsWest , 360, FACING_WEST, BREATH_STOPPED_EAST_OF_TORCH, 296, 328, BREATH_AT_NORTHWEST_CORNER) | With Breath at the north-east corner, the leader steps onto the east side's north end: Breath runs west along the north side and leaps the torch's place to the north-west corner, unless the torch stands there. |
DEFINE_DJINNI_DASH_AROUND( | scShrineOfTheSeaGodDjinniNorthWestToSouthWest , 280, 296, 296, BREATH_AT_SOUTHWEST_CORNER) | With Breath at the north-west corner, the leader steps onto the north side's west end: Breath dashes round to the south-west corner. |
DEFINE_DJINNI_DASH( | scShrineOfTheSeaGodDjinniSouthWestToSouthEast , 392, 296, BREATH_AT_SOUTHEAST_CORNER) | With Breath at the south-west corner, the leader steps onto the west side's south end: Breath dashes east to the south-east corner. |
DEFINE_DJINNI_DASH( | scShrineOfTheSeaGodDjinniSouthEastToSouthWest , 280, 296, BREATH_AT_SOUTHWEST_CORNER) | With Breath at the south-east corner, the leader steps onto the east side's south end: Breath dashes west to the south-west corner. |
DEFINE_DJINNI_DASH_AROUND( | scShrineOfTheSeaGodDjinniSouthWestToNorthWest , 296, 216, 280, BREATH_AT_NORTHWEST_CORNER) | With Breath at the south-west corner, the leader comes up the south-west way: Breath dashes round to the north-west corner. |
DEFINE_DJINNI_WALK_AND_JUMP( | scShrineOfTheSeaGodDjinniNorthWestJumpsEast , 328, FACING_EAST, BREATH_STOPPED_WEST_OF_TORCH, 392, 360, BREATH_AT_NORTHEAST_CORNER) | With Breath at the north-west corner, the leader steps onto the west side's north end: Breath runs east along the north side and leaps the torch's place to the north-east corner, unless the torch stands there. |
DEFINE_DJINNI_DASH( | scShrineOfTheSeaGodDjinniNorthEastToSouthEast , 392, 296, BREATH_AT_SOUTHEAST_CORNER) | With Breath at the north-east corner, the leader steps onto the north side's east end: Breath dashes south to the south-east corner. |
DEFINE_DJINNI_JUMP( | scShrineOfTheSeaGodTrappedDjinniJumpsWest , FACING_WEST, BREATH_STOPPED_EAST_OF_TORCH, 296, 328, BREATH_AT_NORTHWEST_CORNER) | Breath, stopped east of the torch's place, tries the leap west again as the leader steps onto the east side's north end. |
DEFINE_DJINNI_DASH( | scShrineOfTheSeaGodTrappedDjinniToNorthEast , 392, 216, BREATH_AT_NORTHEAST_CORNER) | Breath, stopped east of the torch, dashes back to the north-east corner as the leader steps onto the north side's west end. |
DEFINE_DJINNI_DASH( | scShrineOfTheSeaGodTrappedDjinniToNorthWest , 296, 216, BREATH_AT_NORTHWEST_CORNER) | Breath, stopped west of the torch, dashes back to the north-west corner as the leader steps onto the north side's east end. |
DEFINE_DJINNI_JUMP( | scShrineOfTheSeaGodTrappedDjinniJumpsEast , FACING_EAST, BREATH_STOPPED_WEST_OF_TORCH, 392, 360, BREATH_AT_NORTHEAST_CORNER) | Breath, stopped west of the torch's place, tries the leap east again as the leader steps onto the west side's north end. |
void | scShrineOfTheSeaGodChaseDjinni (void) | Each step onto or round the ledge sends Breath away from the leader to another corner, leaping the north side where the torch's place is, unless the torch stands there and stops it. |
void | scShrineOfTheSeaGodLightTorch (void) | Lights the torch: the pedestal in its burning animation, and the marker on its flame in its empty picture, disabled. |
void | scShrineOfTheSeaGodCastSand (void) | Casting Sand in the entrance turns Felix to sand as anywhere, and here also moves him onto the map's overhead layer. |
void | scShrineOfTheSeaGodEndSand (void) | As Sand wears off, Felix rises out of the sand and walks on the ground layer again. |
Sint32 | scInit (void) | Sets up the room being entered. |
ACTOR * | scShrineOfTheSeaGodSetUpBridge (Sint32 id) | Sets up a bridge: twelve pixels up, drawn under the leader, disabled. |
void | scRunUnlessFlag (void) | Back in the exterior with the party kept where it was, stops drawing its unseen blocks unless they were drawn; on a fresh arrival, notes them drawn. |
void | scShrineOfTheSeaGodSetUpBlocks (void) | Hides the exterior's three unseen blocks behind the room. |
void | scShrineOfTheSeaGodPlaceFootprints (void) | Lays the Djinni's footprints across the room below the crossroads, drawn dark on the sand. |
void | scShrineOfTheSeaGodInitEntrance (void) | Sets up the entrance: its floating logs, the rope, and Riki and Tavi gone once Riki has given up. |
void | scShrineOfTheSeaGodUpdateRikiTarget (void) | In renders of the room once Riki has given up on the rope, A pressed beside him from the west opens the field menu, and from the east, behind him, he says "Wah! |
void | scShrineOfTheSeaGodInitSideRoom (void) | Sets up the side room: the plank bridge down over the stream, the torch, and Riki looking around once he has given up on the rope. |
void | scShrineOfTheSeaGodInitCrossroads (void) | Sets up the crossroads: its bridges, the broken one's middle down in the water once it has fallen, the stone pillar where Move left it, and Breath where it fled. |
void | scShrineOfTheSeaGodInitFootprints (void) | Sets up the room below: Breath's footprints until it has run past. |
void | scShrineOfTheSeaGodInitBreath (void) | Sets up the ledge room: the bridge, under the leader when he comes up the north-east or west stairs and over him otherwise, the puddles, frozen or not, the torch, and Breath where the chase left it. |
void | scShrineOfTheSeaGodInitExterior (void) | Sets up the exterior: the pillar, in its hole once pushed there, and the unseen blocks hidden; the leader stays in front of rising ground. |
void | scShrineOfTheSeaGodInitBrokenBridges (void) | Sets up the broken bridges room: its bridges, the broken ones' middles down in the stream once fallen, the room's two ropes, and the splashes, out of sight. |
void | scShrineOfTheSeaGodInitIsland (void) | Sets up the island room: its floating logs, and the water sinking back when the party comes down from the statue room. |
void | scShrineOfTheSeaGodInitStatue (void) | Sets up the statue room: the party rises on the water when it comes up from the island. |
void | scShrineOfTheSeaGodInitRightProng (void) | Sets up the Right Prong's room: the Prong floats above its place, shedding sparkles. |
void | scShrineOfTheSeaGodSetUpFloatingLog (Sint32 id) | Sets up a floating log: flat on the water, behind the leader, disabled. |
Sint32 | scPrepareMap (void) | Back from the battle with Breath: once it is beaten, the one enemy defeated, it is put back where the torch trapped it, facing away. |
Variables
| Name | Description | |
|---|---|---|
extern SCENE_REGION | ShrineOfTheSeaGodStatueExitRegions [] | |
extern SCENE_REGION | ShrineOfTheSeaGodLaddersExitRegions [] | |
extern SCENE_REGION | ShrineOfTheSeaGodRightProngExitRegions [] | |
extern ACTOR_PLACE | ShrineOfTheSeaGodPlacements [] | |
extern ACTOR_PLACE | ShrineOfTheSeaGodEntranceActorPlacements [] | |
extern ACTOR_PLACE | ShrineOfTheSeaGodSideRoomActorPlacements [] | |
extern ACTOR_PLACE | ShrineOfTheSeaGodCrossroadsActorPlacements [] | |
extern ACTOR_PLACE | ShrineOfTheSeaGodFootprintsActorPlacements [] | |
extern ACTOR_PLACE | ShrineOfTheSeaGodBreathActorPlacements [] | |
extern ACTOR_PLACE | ShrineOfTheSeaGodExteriorActorPlacements [] | |
extern ACTOR_PLACE | ShrineOfTheSeaGodBrokenBridgesActorPlacements [] | |
extern ACTOR_PLACE | ShrineOfTheSeaGodIslandActorPlacements [] | |
extern CUE | ShrineOfTheSeaGodCues [] | |
extern CUE | ShrineOfTheSeaGodEntranceCues [] | |
extern CUE | ShrineOfTheSeaGodSideRoomCues [] | |
extern CUE | ShrineOfTheSeaGodCrossroadsCues [] | |
extern CUE | ShrineOfTheSeaGodFootprintsCues [] | |
extern CUE | ShrineOfTheSeaGodBreathCues [] | |
extern CUE | ShrineOfTheSeaGodExteriorCues [] | |
extern CUE | ShrineOfTheSeaGodBrokenBridgesCues [] | |
extern CUE | ShrineOfTheSeaGodIslandCues [] | |
extern CUE | ShrineOfTheSeaGodStatueCues [] | |
extern Uint32 | ShrineOfTheSeaGodRikiLooksAround [] | Riki looks about the room, north-north-west, south-south-west and west, for ever. |
extern Sint16 | ShrineOfTheSeaGodPushedActors [] | What a push or Move lifts and sets down: each room's first placed actor, the torch, or in the crossroads its stone pillar. |
FIXED | ShrineOfTheSeaGodBridgeOffset [3] | The broken bridge's middle less the leader's place, 16.16 pixels, as he rocks on it. |
extern Uint32 | ShrineOfTheSeaGodBoysGoHome [] | The boys walk home, out by the room's south way. |
extern SHRINE_OF_THE_SEA_GOD_SPOT | ShrineOfTheSeaGodFootprintsTable [] | The Djinni's footprints, laid by scShrineOfTheSeaGodPlaceFootprints: where each lies, mirrored (a scale of -1) or not, and its turn. |
extern Uint32 | FieldEffectShortScript [] | |
extern Uint32 | FieldEffectLongScript [] | |
const Sint32 * | FieldEffectDurationScripts [] | The field effects' three scripts by how long an effect lasts: short, medium and long. |
Sint16 | ShrineOfTheSeaGodFootprintsEnd [] | Unused: the halfwords after the last footprint. |
Uint32 | SceneExits [] | The room has no exits of its own. |
Description
The Shrine of the Sea God east of Daila, in eleven rooms that share this
overlay (SceneIdShrineOfTheSeaGodEntrance to
SceneIdShrineOfTheSeaGodRightProng).
On the first visit Tavi is stuck on a ledge in the entrance and Riki cannot throw him the rope; Riki goes off to the side room by the plank bridge, and Lash ties the rope so Tavi climbs down. Past the crossroads, where the Djinni Breath is first seen, its footprints cross the room below and it is chased round a ledge (Breath's room) until the torch pushed against the north wall traps it. On the second visit, with Frost on the puddles, Move on the pillar over the hole, Lash, and the broken bridges whose planks drop the party into the stream, the party hops across the stones in the water, Reveal showing the seventh in the middle of the hexagon of rocks, to the island. The Sea God's Tear used on its crystal statue raises the water to the statue room, and three ladders more lead up to the Right Prong.
Macros in detail
EFFECT_SET_MODE
#define EFFECT_SET_MODE fdActorSelectAnimation
Referenced by EFFECT_SPAWN.
Definition at line 30 of file shrine_of_the_sea_god.c.
EFFECT_SET_SCRIPT
#define EFFECT_SET_SCRIPT fdActorStartScript
Referenced by EFFECT_SPAWN.
Definition at line 31 of file shrine_of_the_sea_god.c.
FLAG_CROSSROADS_PILLAR_MOVED
#define FLAG_CROSSROADS_PILLAR_MOVED 0x84c
Move pushed the crossroads' pillar
Referenced by scShrineOfTheSeaGodInitCrossroads(), scShrineOfTheSeaGodMovePillar() and ShrineOfTheSeaGodCrossroadsCues.
Definition at line 34 of file shrine_of_the_sea_god.c.
FLAG_RIKI_GAVE_UP
#define FLAG_RIKI_GAVE_UP 0x872
Riki missed with the rope, went off
Referenced by scShrineOfTheSeaGodInitEntrance(), scShrineOfTheSeaGodInitSideRoom(), scShrineOfTheSeaGodThrowRopeAgain() and ShrineOfTheSeaGodEntranceCues.
Definition at line 35 of file shrine_of_the_sea_god.c.
FLAG_DJINNI_FLED_EAST
#define FLAG_DJINNI_FLED_EAST 0x874
the Djinni ran east in the crossroads
Referenced by scShrineOfTheSeaGodDjinniFleesEast(), scShrineOfTheSeaGodInitCrossroads() and ShrineOfTheSeaGodCrossroadsCues.
Definition at line 36 of file shrine_of_the_sea_god.c.
FLAG_DJINNI_FLED_SOUTH
#define FLAG_DJINNI_FLED_SOUTH 0x875
and ran on, out of it
Referenced by scShrineOfTheSeaGodDjinniFleesSouth(), scShrineOfTheSeaGodInitCrossroads() and ShrineOfTheSeaGodCrossroadsCues.
Definition at line 37 of file shrine_of_the_sea_god.c.
FLAG_DJINNI_RAN_PAST
#define FLAG_DJINNI_RAN_PAST 0x876
its footprints are gone
Referenced by scShrineOfTheSeaGodDjinniRunsNorth(), scShrineOfTheSeaGodDjinniRunsWest() and scShrineOfTheSeaGodInitFootprints().
Definition at line 38 of file shrine_of_the_sea_god.c.
FLAG_DJINNI_BY_LEDGE
#define FLAG_DJINNI_BY_LEDGE 0x877
it waits by the ledge
Referenced by scShrineOfTheSeaGodDjinniHopsOntoLedge(), scShrineOfTheSeaGodDjinniRunsNorth(), scShrineOfTheSeaGodInitBreath() and ShrineOfTheSeaGodBreathCues.
Definition at line 39 of file shrine_of_the_sea_god.c.
FLAG_DJINNI_ON_LEDGE
#define FLAG_DJINNI_ON_LEDGE 0x87c
it hopped up onto the ledge
Referenced by scShrineOfTheSeaGodChaseDjinni(), scShrineOfTheSeaGodDjinniHopsOntoLedge(), scShrineOfTheSeaGodInitBreath() and ShrineOfTheSeaGodBreathCues.
Definition at line 40 of file shrine_of_the_sea_god.c.
FLAG_SHRINE_FIRST_PUDDLE_FROZEN
#define FLAG_SHRINE_FIRST_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x00)
Frost froze the puddle at (8, 18).
Referenced by scShrineOfTheSeaGodFreezeFirstPuddle(), scShrineOfTheSeaGodInitBreath() and ShrineOfTheSeaGodBreathCues.
Definition at line 43 of file shrine_of_the_sea_god.c.
FLAG_SHRINE_SECOND_PUDDLE_FROZEN
#define FLAG_SHRINE_SECOND_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x01)
Frost froze the puddle at (10, 18).
Referenced by scShrineOfTheSeaGodFreezeSecondPuddle(), scShrineOfTheSeaGodInitBreath() and ShrineOfTheSeaGodBreathCues.
Definition at line 45 of file shrine_of_the_sea_god.c.
FLAG_SHRINE_THIRD_PUDDLE_FROZEN
#define FLAG_SHRINE_THIRD_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x02)
Frost froze the puddle at (10, 17).
Referenced by scShrineOfTheSeaGodFreezeThirdPuddle(), scShrineOfTheSeaGodInitBreath() and ShrineOfTheSeaGodBreathCues.
Definition at line 47 of file shrine_of_the_sea_god.c.
FLAG_SHRINE_ROPE_TIED
#define FLAG_SHRINE_ROPE_TIED FLAG_SCENE_TEMP(0x03)
Lash tied the entrance's rope, or the broken bridges room's south rope.
Referenced by scShrineOfTheSeaGodInitBrokenBridges(), scShrineOfTheSeaGodInitEntrance(), ShrineOfTheSeaGodBrokenBridgesCues and ShrineOfTheSeaGodEntranceCues.
Definition at line 49 of file shrine_of_the_sea_god.c.
FLAG_SHRINE_SECOND_ROPE_TIED
#define FLAG_SHRINE_SECOND_ROPE_TIED FLAG_SCENE_TEMP(0x04)
Lash tied the north rope.
Referenced by scShrineOfTheSeaGodInitBrokenBridges() and ShrineOfTheSeaGodBrokenBridgesCues.
Definition at line 51 of file shrine_of_the_sea_god.c.
FLAG_DJINNI_CHASE_OVER
#define FLAG_DJINNI_CHASE_OVER FLAG_SCENE_TEMP(0x05)
Breath is caught, or its battle begun.
Referenced by scShrineOfTheSeaGodInitBreath() and ShrineOfTheSeaGodBreathCues.
Definition at line 53 of file shrine_of_the_sea_god.c.
FLAG_DJINNI_TRAPPED
#define FLAG_DJINNI_TRAPPED FLAG_SCENE_TEMP(0x06)
The torch has stopped Breath on the north side.
Referenced by scShrineOfTheSeaGodChaseDjinni().
Definition at line 55 of file shrine_of_the_sea_god.c.
FLAG_TORCH_AT_NORTH_WALL
#define FLAG_TORCH_AT_NORTH_WALL FLAG_SCENE_TEMP(0x07)
The torch stands where it traps Breath.
Referenced by scShrineOfTheSeaGodSetDownTorch().
Definition at line 57 of file shrine_of_the_sea_god.c.
FLAG_BLOCKS_SHOWN
#define FLAG_BLOCKS_SHOWN FLAG_SCENE_TEMP(0x08)
The exterior's unseen blocks are drawn.
Referenced by scRunUnlessFlag(), scShrineOfTheSeaGodHideBlocks() and scShrineOfTheSeaGodShowBlocks().
Definition at line 59 of file shrine_of_the_sea_god.c.
FLAG_LEADER_IN_FRONT
#define FLAG_LEADER_IN_FRONT FLAG_SCENE_TEMP(0x0a)
Felix is drawn in front of the crossroads' bridges.
Referenced by scShrineOfTheSeaGodDrawLeaderBehind(), scShrineOfTheSeaGodDrawLeaderInFront() and ShrineOfTheSeaGodCrossroadsCues.
Definition at line 61 of file shrine_of_the_sea_god.c.
FLAG_CROSSROADS_BRIDGE_BROKEN
#define FLAG_CROSSROADS_BRIDGE_BROKEN FLAG_SCENE_TEMP(0x30)
A broken bridge's middle has fallen into the stream below.
Referenced by scShrineOfTheSeaGodBreakCrossroadsBridge(), scShrineOfTheSeaGodInitCrossroads() and ShrineOfTheSeaGodCrossroadsCues.
Definition at line 63 of file shrine_of_the_sea_god.c.
FLAG_FIRST_BRIDGE_BROKEN
#define FLAG_FIRST_BRIDGE_BROKEN FLAG_SCENE_TEMP(0x31)
Referenced by scShrineOfTheSeaGodBreakFirstBridge(), scShrineOfTheSeaGodInitBrokenBridges() and ShrineOfTheSeaGodBrokenBridgesCues.
Definition at line 64 of file shrine_of_the_sea_god.c.
FLAG_SECOND_BRIDGE_BROKEN
#define FLAG_SECOND_BRIDGE_BROKEN FLAG_SCENE_TEMP(0x32)
Referenced by scShrineOfTheSeaGodBreakSecondBridge(), scShrineOfTheSeaGodInitBrokenBridges() and ShrineOfTheSeaGodBrokenBridgesCues.
Definition at line 65 of file shrine_of_the_sea_god.c.
FLAG_PILLAR_IN_HOLE
#define FLAG_PILLAR_IN_HOLE FLAG_AREA_TEMP(0x01)
Referenced by scShrineOfTheSeaGodInitExterior(), scShrineOfTheSeaGodPushPillarIntoHole() and ShrineOfTheSeaGodExteriorCues.
Definition at line 66 of file shrine_of_the_sea_god.c.
FLAG_FIGHTING_BREATH
#define FLAG_FIGHTING_BREATH FLAG_AREA_TEMP(0x40)
Set as the battle with Breath starts, with where it was trapped, so the scene puts it back there once it is beaten.
Referenced by scPrepareMap(), scShrineOfTheSeaGodFightBreath() and scShrineOfTheSeaGodInitBreath().
Definition at line 69 of file shrine_of_the_sea_god.c.
FLAG_BREATH_TRAPPED_EAST
#define FLAG_BREATH_TRAPPED_EAST FLAG_AREA_TEMP(0x41)
Referenced by scPrepareMap() and scShrineOfTheSeaGodFightBreath().
Definition at line 70 of file shrine_of_the_sea_god.c.
FLAG_BREATH_TRAPPED_WEST
#define FLAG_BREATH_TRAPPED_WEST FLAG_AREA_TEMP(0x42)
Referenced by scPrepareMap() and scShrineOfTheSeaGodFightBreath().
Definition at line 71 of file shrine_of_the_sea_god.c.
WATER_RISE_STEPS
#define WATER_RISE_STEPS 24
After its bands, the island room's water rises a pixel a step for this many steps, then lifts the party half a pixel a step for as many again.
Referenced by scShrineOfTheSeaGodLowerWater() and scShrineOfTheSeaGodUseSeaGodsTear().
Definition at line 516 of file shrine_of_the_sea_god.c.
STATUE_ROOM_RISE
#define STATUE_ROOM_RISE 50
How far the water carries the leader between the island and the statue room, in pixels, half a pixel every two ticks.
Referenced by scShrineOfTheSeaGodRiseOnWater() and scShrineOfTheSeaGodSinkWithWater().
Definition at line 756 of file shrine_of_the_sea_god.c.
STATUE_ROOM_CLOSE_STEPS
#define STATUE_ROOM_CLOSE_STEPS 10
Sinking back to the island, the steps of half a pixel left when the screen starts to close.
Referenced by scShrineOfTheSeaGodSinkWithWater().
Definition at line 759 of file shrine_of_the_sea_god.c.
SPRAY_DIRECTIONS
#define SPRAY_DIRECTIONS 16
The spray the crossroads' bridge throws up as it hits the water: a drop every sixteenth of a turn, the first direction thrown twice.
Referenced by scShrineOfTheSeaGodBreakCrossroadsBridge().
Definition at line 1185 of file shrine_of_the_sea_god.c.
DEFINE_DJINNI_DASH
#define DEFINE_DJINNI_DASH(name, toX, toZ, place)
A dash of Breath's along the ledge to (toX, toZ), where it stands at place.
Definition at line 1862 of file shrine_of_the_sea_god.c.
DEFINE_DJINNI_WALK_AND_JUMP
#define DEFINE_DJINNI_WALK_AND_JUMP(
Breath runs along the ledge's north side to stopX, beside the torch's place at the north wall. With the torch there, it turns to face it and stops (stoppedPlace), trapped; otherwise it leaps over to landX and runs on to the corner at cornerX (cornerPlace).
Definition at line 1884 of file shrine_of_the_sea_god.c.
DEFINE_DJINNI_DASH_AROUND
#define DEFINE_DJINNI_DASH_AROUND(name, toX, toZ, fromX, place)
A dash of Breath's from the corner at fromX round the ledge's side, by its middle row, to (toX, toZ), where it stands at place.
Definition at line 1939 of file shrine_of_the_sea_god.c.
DEFINE_DJINNI_JUMP
#define DEFINE_DJINNI_JUMP(
As DEFINE_DJINNI_WALK_AND_JUMP for Breath already beside the torch's place.
Definition at line 2001 of file shrine_of_the_sea_god.c.
Enumerations in detail
SHRINE_OF_THE_SEA_GOD_ENTRANCE_ACTOR_ID
enum SHRINE_OF_THE_SEA_GOD_ENTRANCE_ACTOR_ID
The entrance's actors (SceneIdShrineOfTheSeaGodEntrance), numbering the rows
of ShrineOfTheSeaGodEntranceActorPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_ENTRANCE_FIRST_LOG | ACTOR_FIRST_PLACED | Two logs floating on the |
ACTOR_ENTRANCE_SECOND_LOG | room's water. | |
ACTOR_ENTRANCE_EAST_POST | The posts of the rope Riki cannot throw up to Tavi: his own, the rope wound round it, which Lash ties, and the one on Tavi's ledge. | |
ACTOR_ENTRANCE_WEST_POST | ||
ACTOR_RIKI | ||
ACTOR_TAVI | Tavi, stuck on the ledge. | |
ACTOR_ENTRANCE_KRADEN |
Definition at line 78 of file shrine_of_the_sea_god.c.
SHRINE_OF_THE_SEA_GOD_TORCH_ACTOR_ID
enum SHRINE_OF_THE_SEA_GOD_TORCH_ACTOR_ID
The torch Move pushes, the first row of the side room
(SceneIdShrineOfTheSeaGodSideRoom) and of the ledge room
(SceneIdShrineOfTheSeaGodBreath): a pedestal whose flame is its own
animation. The second row is an unseen actor kept where the flame burns
(scShrineOfTheSeaGodKeepFlameOnTorch).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_TORCH | ACTOR_FIRST_PLACED | |
ACTOR_TORCH_FLAME_MARKER |
Definition at line 97 of file shrine_of_the_sea_god.c.
SHRINE_OF_THE_SEA_GOD_SIDE_ROOM_ACTOR_ID
enum SHRINE_OF_THE_SEA_GOD_SIDE_ROOM_ACTOR_ID
The rest of the side room's actors.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_SIDE_ROOM_BRIDGE | ACTOR_TORCH_FLAME_MARKER + 1 | The plank bridge over the stream. |
ACTOR_SIDE_ROOM_RIKI | Riki, who has come here looking for something to help Tavi with. | |
ACTOR_SIDE_ROOM_DISABLED | The actor after Riki, which the room disables though no row places it. |
Definition at line 104 of file shrine_of_the_sea_god.c.
SHRINE_OF_THE_SEA_GOD_CROSSROADS_ACTOR_ID
enum SHRINE_OF_THE_SEA_GOD_CROSSROADS_ACTOR_ID
The crossroads' actors (SceneIdShrineOfTheSeaGodCrossroads), numbering the
rows of ShrineOfTheSeaGodCrossroadsActorPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_CROSSROADS_PILLAR | ACTOR_FIRST_PLACED | The stone pillar Move pushes aside. |
ACTOR_CROSSROADS_LOG_BRIDGE | The room's bridges, the first two logs side by side, drawn in front of or behind the leader by the level it stands on (scShrineOfTheSeaGodLayerCrossroadsBridges). | |
ACTOR_CROSSROADS_FIRST_BRIDGE | ||
ACTOR_CROSSROADS_SECOND_BRIDGE | ||
ACTOR_CROSSROADS_THIRD_BRIDGE | ||
ACTOR_CROSSROADS_BROKEN_BRIDGE_ENDS | A broken bridge: its two ends on | |
ACTOR_CROSSROADS_BROKEN_BRIDGE_MIDDLE | their legs, and its middle, which drops into the water below under the leader. | |
ACTOR_CROSSROADS_BREATH | Breath, the Jupiter Djinni, first seen here. |
Definition at line 116 of file shrine_of_the_sea_god.c.
SHRINE_OF_THE_SEA_GOD_FOOTPRINTS_ACTOR_ID
enum SHRINE_OF_THE_SEA_GOD_FOOTPRINTS_ACTOR_ID
The room below's actors (SceneIdShrineOfTheSeaGodFootprints): Breath's
footprints, sixteen of them, left and right feet in turn.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FIRST_FOOTPRINT | ACTOR_FIRST_PLACED | |
ACTOR_LAST_FOOTPRINT | ACTOR_FIRST_FOOTPRINT + 15 |
Definition at line 138 of file shrine_of_the_sea_god.c.
SHRINE_OF_THE_SEA_GOD_LEDGE_ROOM_ACTOR_ID
enum SHRINE_OF_THE_SEA_GOD_LEDGE_ROOM_ACTOR_ID
The rest of the ledge room's actors (SceneIdShrineOfTheSeaGodBreath).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FIRST_PUDDLE | ACTOR_TORCH_FLAME_MARKER + 1 | The puddles Frost freezes into pillars of ice. |
ACTOR_SECOND_PUDDLE | ||
ACTOR_THIRD_PUDDLE | ||
ACTOR_LEDGE_ROOM_BRIDGE | The plank bridge over the gap south of the ledge. | |
ACTOR_BREATH | Breath, chased round the ledge until it is trapped. |
Definition at line 145 of file shrine_of_the_sea_god.c.
SHRINE_OF_THE_SEA_GOD_EXTERIOR_ACTOR_ID
enum SHRINE_OF_THE_SEA_GOD_EXTERIOR_ACTOR_ID
The exterior's actors (SceneIdShrineOfTheSeaGodExterior).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_EXTERIOR_PILLAR | ACTOR_FIRST_PLACED | The pillar Move pushes into the hole. |
ACTOR_EXTERIOR_FIRST_BLOCK | Three unseen blocks the room draws or not together (scShrineOfTheSeaGodSetBlocksShown). | |
ACTOR_EXTERIOR_SECOND_BLOCK | ||
ACTOR_EXTERIOR_THIRD_BLOCK |
Definition at line 158 of file shrine_of_the_sea_god.c.
SHRINE_OF_THE_SEA_GOD_BROKEN_BRIDGES_ACTOR_ID
enum SHRINE_OF_THE_SEA_GOD_BROKEN_BRIDGES_ACTOR_ID
The broken bridges room's actors (SceneIdShrineOfTheSeaGodBrokenBridges),
numbering the rows of ShrineOfTheSeaGodBrokenBridgesActorPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_BROKEN_BRIDGES_FIRST_BRIDGE | ACTOR_FIRST_PLACED | The plank bridges between the rock pillars, and a bridge of two logs. |
ACTOR_BROKEN_BRIDGES_SECOND_BRIDGE | ||
ACTOR_BROKEN_BRIDGES_THIRD_BRIDGE | ||
ACTOR_BROKEN_BRIDGES_FOURTH_BRIDGE | ||
ACTOR_BROKEN_BRIDGES_LOG_BRIDGE | ||
ACTOR_FIRST_BROKEN_BRIDGE_ENDS | The two broken bridges' ends, then their middles, which drop into the stream under the leader and carry him down it. | |
ACTOR_SECOND_BROKEN_BRIDGE_ENDS | ||
ACTOR_FIRST_BROKEN_BRIDGE_MIDDLE | ||
ACTOR_SECOND_BROKEN_BRIDGE_MIDDLE | ||
ACTOR_SOUTH_ROPE_EAST_POST | The posts of the room's two ropes; Lash ties each by the post its rope is wound round, the south rope's east one and the north rope's west one. | |
ACTOR_SOUTH_ROPE_WEST_POST | ||
ACTOR_NORTH_ROPE_WEST_POST | ||
ACTOR_NORTH_ROPE_EAST_POST | ||
ACTOR_FIRST_BRIDGE_SPLASH | The splashes each bridge's middle throws up as it lands, two apiece. | |
ACTOR_FIRST_BRIDGE_OTHER_SPLASH | ||
ACTOR_SECOND_BRIDGE_SPLASH | ||
ACTOR_SECOND_BRIDGE_OTHER_SPLASH | ||
ACTOR_CHEST_NORTHWEST_MARKER | In a render of the room with the leader on its ladder, under the chest, taking each marker away changes nothing on screen. Unseen markers behind the chest at the top of the room's ladder; talking to one opens the field menu, as talking to nothing does. | |
ACTOR_CHEST_NORTHEAST_MARKER | ||
ACTOR_CHEST_NORTH_MARKER |
Definition at line 171 of file shrine_of_the_sea_god.c.
SHRINE_OF_THE_SEA_GOD_ISLAND_ACTOR_ID
enum SHRINE_OF_THE_SEA_GOD_ISLAND_ACTOR_ID
The island room's actors (SceneIdShrineOfTheSeaGodIsland): three logs
floating on the water the Sea God's Tear raises.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_ISLAND_FIRST_LOG | ACTOR_FIRST_PLACED | |
ACTOR_ISLAND_SECOND_LOG | ||
ACTOR_ISLAND_THIRD_LOG |
Definition at line 207 of file shrine_of_the_sea_god.c.
SHRINE_OF_THE_SEA_GOD_BREATH_PLACE
enum SHRINE_OF_THE_SEA_GOD_BREATH_PLACE
Where Breath stands on the ledge, kept in its ACTOR.sceneCount: at a corner,
or stopped beside the torch on the north side, facing it.
| Enumerator | Value | Description |
|---|---|---|
BREATH_AT_SOUTHEAST_CORNER | ||
BREATH_AT_NORTHEAST_CORNER | ||
BREATH_AT_NORTHWEST_CORNER | ||
BREATH_AT_SOUTHWEST_CORNER | ||
BREATH_STOPPED_EAST_OF_TORCH | ||
BREATH_STOPPED_WEST_OF_TORCH |
Definition at line 216 of file shrine_of_the_sea_god.c.
SHRINE_OF_THE_SEA_GOD_LEDGE_STEP
enum SHRINE_OF_THE_SEA_GOD_LEDGE_STEP
The ledge room's step cues round the ledge, each sending Breath on
(scShrineOfTheSeaGodChaseDjinni): the ways up at its south-east and
south-west corners, and two places on each of its other sides.
| Enumerator | Value | Description |
|---|---|---|
STEP_LEDGE_SOUTHEAST_WAY_UP | 13 | |
STEP_LEDGE_EAST_SIDE_SOUTH | ||
STEP_LEDGE_EAST_SIDE_NORTH | ||
STEP_LEDGE_NORTH_SIDE_EAST | ||
STEP_LEDGE_NORTH_SIDE_WEST | ||
STEP_LEDGE_WEST_SIDE_NORTH | ||
STEP_LEDGE_WEST_SIDE_SOUTH | ||
STEP_LEDGE_SOUTHWEST_WAY_UP |
Definition at line 229 of file shrine_of_the_sea_god.c.
SHRINE_OF_THE_SEA_GOD_METATILE
enum SHRINE_OF_THE_SEA_GOD_METATILE
The metatiles that run the other rooms' scripts, each room numbering its own after the numbers of its exits.
| Enumerator | Value | Description |
|---|---|---|
RIKI_THROWS_ROPE_METATILE | 10 | The entrance's metatiles (14, 20) to (18, 20) and (18, 21), where Riki tries the rope again. |
CROSSROADS_BRIDGE_END_METATILE | 10 | The crossroads' metatiles at the ends of its bridges and by its north doorways: (15, 12), (14, 16) to (16, 16), (23, 13), (23, 20), (34, 13) to (34, 15) and (35, 20) to (35, 22). |
CROSSROADS_LADDER_FOOT_METATILE | 11 | The foot of the crossroads' ladder below the bridges, metatile (29, 22). |
CROSSROADS_BREATH_FLEES_SOUTH_METATILE | 12 | Where Breath, seen again east of the bridges, flees south. |
CROSSROADS_BROKEN_BRIDGE_METATILE | 15 | The crossroads' broken bridge. |
LEDGE_ROOM_SOUTH_STAIRS_METATILE | 10 | The ledge room's stairs up from the south, where Breath runs north under the bridge. |
LEDGE_ROOM_SOUTH_PATH_METATILE | 11 | South of the ledge, metatiles (19, 34) to (21, 34), where Breath runs west past the leader. |
LEDGE_ROOM_WAY_UP_METATILE | 12 | The path up toward the ledge's south-west corner, metatiles (15, 20) to (18, 23), where Breath hops onto the ledge. |
FIRST_BROKEN_BRIDGE_METATILE | 5 | The broken bridges room's first broken bridge, metatile (20, 13). |
SECOND_BROKEN_BRIDGE_METATILE | 6 | Its second broken bridge, metatile (25, 22). |
ISLAND_STATUE_METATILE | 10 | Before the crystal statue on the island, metatile (15, 9). |
STATUE_ROOM_STATUE_METATILE | 1 | Before the crystal statue in the room above the island, metatile (21, 15). |
Definition at line 243 of file shrine_of_the_sea_god.c.
Functions in detail
scShrineOfTheSeaGodSetBlocksShown
void scShrineOfTheSeaGodSetBlocksShown(Sint32 show)
Draws (show 1) or stops drawing the exterior's three unseen blocks.
References MainRoutineStateWork, scActorsSetDrawn() and Sint32.
Referenced by scShrineOfTheSeaGodHideBlocks() and scShrineOfTheSeaGodShowBlocks().
Definition at lines 73 and 1055 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodKeepWithLeader
void scShrineOfTheSeaGodKeepWithLeader(ACTOR *actor)
Keeps a broken bridge's middle where it lies against the leader as he falls.
References fdActorGetById(), MainRoutineStateWork and ShrineOfTheSeaGodBridgeOffset.
Referenced by scShrineOfTheSeaGodKeepCrossroadsBridgeWithLeader(), scShrineOfTheSeaGodKeepFirstBridgeWithLeader() and scShrineOfTheSeaGodKeepSecondBridgeWithLeader().
Definition at lines 74 and 1155 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodFightBreath
void scShrineOfTheSeaGodFightBreath(void)
Talking to Breath from up on the ledge, once the torch has stopped it, starts its battle.
References fdActorGetById(), fdRequestDjinnBattle(), MainRoutineStateWork and syGameFlagSet().
Referenced by ShrineOfTheSeaGodBreathCues.
Definition at line 291 of file shrine_of_the_sea_god.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 316 of file shrine_of_the_sea_god.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
The regions of the rooms whose exits are rectangles: the statue room, the ladders and the Right Prong's room.
References MainRoutineStateWork, ShrineOfTheSeaGodLaddersExitRegions, ShrineOfTheSeaGodRightProngExitRegions and ShrineOfTheSeaGodStatueExitRegions.
Definition at line 323 of file shrine_of_the_sea_god.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 356 of file shrine_of_the_sea_god.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
The current room's actors.
References MainRoutineStateWork, ShrineOfTheSeaGodBreathActorPlacements, ShrineOfTheSeaGodBrokenBridgesActorPlacements, ShrineOfTheSeaGodCrossroadsActorPlacements, ShrineOfTheSeaGodEntranceActorPlacements, ShrineOfTheSeaGodExteriorActorPlacements, ShrineOfTheSeaGodFootprintsActorPlacements, ShrineOfTheSeaGodIslandActorPlacements, ShrineOfTheSeaGodPlacements and ShrineOfTheSeaGodSideRoomActorPlacements.
Definition at line 362 of file shrine_of_the_sea_god.c.
scGetCues
const CUE *scGetCues(void)
The current room's cues.
References MainRoutineStateWork, ShrineOfTheSeaGodBreathCues, ShrineOfTheSeaGodBrokenBridgesCues, ShrineOfTheSeaGodCrossroadsCues, ShrineOfTheSeaGodCues, ShrineOfTheSeaGodEntranceCues, ShrineOfTheSeaGodExteriorCues, ShrineOfTheSeaGodFootprintsCues, ShrineOfTheSeaGodIslandCues, ShrineOfTheSeaGodSideRoomCues and ShrineOfTheSeaGodStatueCues.
Definition at line 387 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodExamineStatue
void scShrineOfTheSeaGodExamineStatue(void)
Examining the crystal statue, on the island or in the room above it: it looks like the one in Daila's Sanctum.
References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and Sint32.
Referenced by ShrineOfTheSeaGodIslandCues and ShrineOfTheSeaGodStatueCues.
Definition at line 416 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodStartleRiki
void scShrineOfTheSeaGodStartleRiki(void)
Talking to Riki from behind in the side room startles him; he is busy trying to help Tavi.
References fdActorFaceActorById(), fdActorSetAnimationById(), fdActorSetMovementTypeById(), fdActorStop(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptShowMessageThenWait(), fdScriptStart(), MainRoutineStateWork, scFieldActorShowEmote(), ShrineOfTheSeaGodRikiLooksAround and Sint32.
Referenced by ShrineOfTheSeaGodSideRoomCues.
Definition at line 430 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodOpenFieldMenu
void scShrineOfTheSeaGodOpenFieldMenu(void)
Talking to an unseen marker behind the broken bridges room's chest opens the field menu, as talking to nothing does.
Referenced by ShrineOfTheSeaGodBrokenBridgesCues.
Definition at line 454 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodLiftWithWater
void scShrineOfTheSeaGodLiftWithWater(void)
The island room's water rises a step, lifting Felix, the camera and the floating logs with it.
References fdActorGetById(), fdCameraGetActor(), MainRoutineStateWork and sySynch().
Referenced by scShrineOfTheSeaGodUseSeaGodsTear().
Definition at line 463 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodRaiseWaterLayer
void scShrineOfTheSeaGodRaiseWaterLayer(void)
The water's layer moves a pixel as the water rises, then waits four ticks.
References sySynch().
Referenced by scShrineOfTheSeaGodUseSeaGodsTear().
Definition at line 487 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodRaiseWaterBand
void scShrineOfTheSeaGodRaiseWaterBand(Sint32 x, Sint32 y)
Copies the next band of the risen water's metatiles, 6 by 56 from (x, y) to (18, 6), then moves the water and ground layers two pixels over 16 ticks.
References fdMapGridCopyMetatilesTo(), Sint32 and sySynch().
Referenced by scShrineOfTheSeaGodUseSeaGodsTear().
Definition at line 498 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodUseSeaGodsTear
void scShrineOfTheSeaGodUseSeaGodsTear(void)
Using the Sea God's Tear on the crystal statue on the island: the room
rumbles, the water rises round the island over the stepping stones, and it
carries Felix up to the room above (scShrineOfTheSeaGodRiseOnWater).
References fdActorFaceDirectionById(), fdActorGetById(), fdActorSetSpritePriority(), fdBlendScriptSuspend(), fdCameraMoveWithinMapBounds(), fdCameraWaitForArrival(), fdMapGridCopyMetatilesTo(), fdMapGridSetShakeFX(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptSetExitRequest(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scShrineOfTheSeaGodLiftWithWater(), scShrineOfTheSeaGodRaiseWaterBand(), scShrineOfTheSeaGodRaiseWaterLayer(), sySoundPlay() and sySynch().
Referenced by ShrineOfTheSeaGodIslandCues.
Definition at line 521 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodLowerWithWater
void scShrineOfTheSeaGodLowerWithWater(void)
The island room's water falls a step, lowering Felix, the camera and the floating logs with it.
References fdActorGetById(), fdCameraGetActor(), MainRoutineStateWork and sySynch().
Referenced by scShrineOfTheSeaGodLowerWater().
Definition at line 589 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodLowerWaterLayer
void scShrineOfTheSeaGodLowerWaterLayer(void)
The water's layer moves a pixel as the water falls, then waits four ticks.
References sySynch().
Referenced by scShrineOfTheSeaGodLowerWater().
Definition at line 613 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodLowerWaterBand
void scShrineOfTheSeaGodLowerWaterBand(Sint32 x, Sint32 y)
Copies the next band of the falling water's metatiles, 6 by 56 from (x, y) to (18, 6), then moves the water and ground layers back two pixels over 16 ticks.
References fdMapGridCopyMetatilesTo(), Sint32 and sySynch().
Referenced by scShrineOfTheSeaGodLowerWater().
Definition at line 625 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodLowerWater
void scShrineOfTheSeaGodLowerWater(void)
Back on the island after using the Tear in the room above, the water drains away round Felix until the stepping stones show again.
References fdActorGetById(), fdActorSetSpritePriority(), fdBlendScriptSuspend(), fdCameraGetActor(), fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatilesTo(), fdMapGridSetShakeFX(), fdMapGridWaitForShakeToSettle(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scShrineOfTheSeaGodLowerWaterBand(), scShrineOfTheSeaGodLowerWaterLayer(), scShrineOfTheSeaGodLowerWithWater(), scShrineOfTheSeaGodSetUpFloatingLog(), sySoundPlay() and sySynch().
Referenced by scShrineOfTheSeaGodInitIsland().
Definition at line 643 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodRiseOnWater
void scShrineOfTheSeaGodRiseOnWater(void)
Arriving in the room above the island, Felix rises up through the floor on
the crystal statue's platform as the screen opens. The platform is the ground
layer, which starts STATUE_ROOM_RISE pixels down with him.
References fdActorGetById(), fdActorSetSpritePriority(), fdCameraMoveWithinMapBounds(), fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatilesTo(), fdMapGridSetScreenShake(), fdMapGridSetShakeFX(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptStartScreenTransition(), MainRoutineStateWork, sySoundPlay() and sySynch().
Referenced by scShrineOfTheSeaGodInitStatue().
Definition at line 764 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodSinkWithWater
void scShrineOfTheSeaGodSinkWithWater(void)
Using the Sea God's Tear on the crystal statue in the room above the island
takes Felix back down: he turns to face south, the statue's platform sinks
into the floor with him, the screen closes round him, and he is back on the
island, where the water drains away (scShrineOfTheSeaGodLowerWater). The
platform is the ground layer, lowered STATUE_ROOM_RISE pixels with him.
References fdActorFaceDirectionById(), fdActorGetById(), fdActorSetSpritePriority(), fdCameraMoveWithinMapBounds(), fdMapGridCopyMetatilesTo(), fdMapGridSetShakeFX(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptSetExitRequest(), fdScriptStart(), MainRoutineStateWork, sySoundPlay() and sySynch().
Referenced by ShrineOfTheSeaGodStatueCues.
Definition at line 816 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodSetUpPuddle
void scShrineOfTheSeaGodSetUpPuddle(Sint32 actor)
Sets up one of the ledge room's puddles, its ice pillar not shown until Frost freezes it.
References fdActorDisableById(), fdActorGetById() and Sint32.
Referenced by scShrineOfTheSeaGodInitBreath().
Definition at line 856 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodFreezeFirstPuddle
void scShrineOfTheSeaGodFreezeFirstPuddle(void)
Frost on the westernmost of the three puddles west of Breath's ledge, metatile (8, 18), freezes it into a pillar of ice. Felix hops along the three ice pillars to the way out at the room's north-west, metatile (7, 12), to the exterior, with the pillar over the hole; each frozen metatile is given the hop of the spare metatile in the map's corner, (0, 0).
References fdMapGridCopyMetatileAttributes() and syGameFlagSet().
Referenced by ShrineOfTheSeaGodBreathCues.
Definition at line 867 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodFreezeSecondPuddle
void scShrineOfTheSeaGodFreezeSecondPuddle(void)
Frost on the puddle two metatiles east of the first, metatile (10, 18), the south one of the pair beside it, freezes it into a pillar of ice to hop along.
References fdMapGridCopyMetatileAttributes() and syGameFlagSet().
Referenced by ShrineOfTheSeaGodBreathCues.
Definition at line 876 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodFreezeThirdPuddle
void scShrineOfTheSeaGodFreezeThirdPuddle(void)
Frost on the north puddle of that pair, metatile (10, 17), freezes it into a pillar of ice to hop along.
References fdMapGridCopyMetatileAttributes() and syGameFlagSet().
Referenced by ShrineOfTheSeaGodBreathCues.
Definition at line 884 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodLiftBlock
void scShrineOfTheSeaGodLiftBlock(void)
Move lifts the room's torch, or in the crossroads its stone pillar.
References fdActorLiftTargetBlock() and ShrineOfTheSeaGodPushedActors.
Referenced by ShrineOfTheSeaGodBreathCues and ShrineOfTheSeaGodCrossroadsCues.
Definition at line 891 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodSetDownTorch
void scShrineOfTheSeaGodSetDownTorch(void)
Sets the torch down, noting whether it stands against the north wall where it traps Breath.
References fdActorGetById(), fdActorPlaceMovedBlock(), syGameFlagClear() and syGameFlagSet().
Referenced by ShrineOfTheSeaGodBreathCues.
Definition at line 898 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodMovePillar
void scShrineOfTheSeaGodMovePillar(void)
Sets the crossroads' stone pillar down; pushed all the way west, it stays there.
References fdActorGetById(), fdActorPlaceMovedBlock() and syGameFlagSet().
Referenced by ShrineOfTheSeaGodCrossroadsCues.
Definition at line 913 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodDropPillar
void scShrineOfTheSeaGodDropPillar(ACTOR *actor)
Lets a pillar fall to the ground with a thump.
References sySoundPlay() and sySynch().
Referenced by scShrineOfTheSeaGodPushPillarIntoHole().
Definition at line 923 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodPushPillarIntoHole
void scShrineOfTheSeaGodPushPillarIntoHole(void)
Pushed onto the hole, the pillar drops in and fills it.
References fdActorGetById(), fdActorSetSpritePriority(), fdMapCopyMetatileAttributeRect(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), scShrineOfTheSeaGodDropPillar(), Sint32 and syGameFlagSet().
Referenced by ShrineOfTheSeaGodExteriorCues.
Definition at line 936 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodLayerCrossroadsBridges
void scShrineOfTheSeaGodLayerCrossroadsBridges(void)
The crossroads' event: its bridges are drawn under the leader when he is up on them, in front of him below.
References fdActorGetById(), fdActorSetSpritePriority() and MainRoutineStateWork.
Referenced by scShrineOfTheSeaGodInitCrossroads().
Definition at line 955 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodTrackUpperLevel
void scShrineOfTheSeaGodTrackUpperLevel(void)
Notes whether the leader stands on the upper level of the room.
References fdActorGetById(), fdActorGetMetatileIndex() and MainRoutineStateWork.
Referenced by scShrineOfTheSeaGodInitEntrance() and scShrineOfTheSeaGodInitFootprints().
Definition at line 980 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodLayerPuddles
void scShrineOfTheSeaGodLayerPuddles(void)
The ledge room's event: the puddles are drawn behind or in front of the leader by where it stands.
References fdActorGetById(), fdActorSetSpritePriority() and MainRoutineStateWork.
Referenced by scShrineOfTheSeaGodInitBreath().
Definition at line 993 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodKeepFlameOnTorch
void scShrineOfTheSeaGodKeepFlameOnTorch(void)
Keeps the marker on the torch's flame, 20 pixels up, as Move carries the torch.
References fdActorGetById().
Referenced by scShrineOfTheSeaGodInitBreath() and scShrineOfTheSeaGodInitSideRoom().
Definition at line 1026 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodClearLeaderIgnoresRises
void scShrineOfTheSeaGodClearLeaderIgnoresRises(void)
field_actors.c's priority update answers what ACTOR_PRIORITY_IGNORES_RISES
does: with it, an actor takes only the priority of the metatiles under its
feet, and ground rising a metatile or two in front of it never puts it
further back. Unused: lets the leader be put behind rising ground again,
undoing what the exterior sets on arrival (ACTOR_PRIORITY_IGNORES_RISES).
References fdActorGetById() and MainRoutineStateWork.
Definition at line 1039 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodSetLeaderIgnoresRises
void scShrineOfTheSeaGodSetLeaderIgnoresRises(void)
Unused: keeps the leader in front of rising ground, as the exterior does.
References fdActorGetById() and MainRoutineStateWork.
Definition at line 1046 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodShowBlocks
void scShrineOfTheSeaGodShowBlocks(void)
Unused: draws the exterior's unseen blocks and notes them shown.
References scShrineOfTheSeaGodSetBlocksShown() and syGameFlagSet().
Definition at line 1065 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodHideBlocks
void scShrineOfTheSeaGodHideBlocks(void)
Stops drawing the exterior's unseen blocks.
References scShrineOfTheSeaGodSetBlocksShown() and syGameFlagClear().
Referenced by scRunUnlessFlag().
Definition at line 1072 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodDrawLeaderInFront
void scShrineOfTheSeaGodDrawLeaderInFront(void)
Nothing visible happens when Felix steps onto a metatile at the end of one of the crossroads' bridges or by its north doorways. The game sets him to be drawn in front of the bridges from then on, so that he shows on top of the one he walks across, until he comes down the ladder below them.
References fdActorSetSpritePriority(), MainRoutineStateWork and syGameFlagSet().
Referenced by ShrineOfTheSeaGodCrossroadsCues.
Definition at line 1084 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodDrawLeaderBehind
void scShrineOfTheSeaGodDrawLeaderBehind(void)
Nothing visible happens when Felix comes down to the foot of the crossroads' ladder below the bridges, metatile (29, 22). The game lets the ground under him decide again how he is drawn, so that he passes behind the bridges overhead.
References fdActorGetById(), fdActorSetSpritePriority(), MainRoutineStateWork and syGameFlagClear().
Referenced by ShrineOfTheSeaGodCrossroadsCues.
Definition at line 1094 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodRockOnBridge
void scShrineOfTheSeaGodRockOnBridge(ACTOR *leader, ACTOR *middle)
On a broken bridge's middle the leader sways twice, the middle dipping under
him, and loses his shadow; the middle's place against him is kept for the
fall (scShrineOfTheSeaGodKeepWithLeader).
References fdActorGetById(), fdActorSetSpriteFlags(), fdEffectSetAttached(), MainRoutineStateWork, ShrineOfTheSeaGodBridgeOffset, sySoundPlay() and sySynch().
Referenced by scShrineOfTheSeaGodBreakCrossroadsBridge(), scShrineOfTheSeaGodBreakFirstBridge() and scShrineOfTheSeaGodBreakSecondBridge().
Definition at line 1114 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodKeepCrossroadsBridgeWithLeader
void scShrineOfTheSeaGodKeepCrossroadsBridgeWithLeader(void)
The event that carries the crossroads' broken bridge's middle along with the leader.
References fdActorGetById() and scShrineOfTheSeaGodKeepWithLeader().
Referenced by scShrineOfTheSeaGodBreakCrossroadsBridge().
Definition at line 1168 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodBreakCrossroadsBridge
void scShrineOfTheSeaGodBreakCrossroadsBridge(void)
On the crossroads' broken bridge the leader sways until its middle drops with him into the water below, throwing up spray, and tips there.
References fdActorGetById(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorWalkToAndWaitById(), fdEffectAdvanceMotion(), fdMapGridCopyMetatileAttributes(), fdMapGridSetShakeFX(), fdMapGridWaitForShakeToSettle(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scFieldEffectSpawn(), scFieldSetTickEvent(), scShrineOfTheSeaGodKeepCrossroadsBridgeWithLeader(), scShrineOfTheSeaGodRockOnBridge(), syCloseEvent(), syCos(), syGameFlagSet(), sySin(), sySoundPlay() and sySynch().
Referenced by ShrineOfTheSeaGodCrossroadsCues.
Definition at line 1189 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodLandBrokenBridge
void scShrineOfTheSeaGodLandBrokenBridge(ACTOR *actor, Sint32 bridge)
Waits for the leader, falling with a broken bridge's middle, to land in the
stream, then throws up the bridge's two splashes there; bridge counts the
splashes from ACTOR_FIRST_BRIDGE_SPLASH.
References fdActorGetById(), fdActorSetAnimationById(), fdActorSetPosAndResetMotion(), fdActorSetSpritePriority(), Sint32, sySoundPlay() and sySynch().
Referenced by scShrineOfTheSeaGodBreakFirstBridge() and scShrineOfTheSeaGodBreakSecondBridge().
Definition at line 1261 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodKeepFirstBridgeWithLeader
void scShrineOfTheSeaGodKeepFirstBridgeWithLeader(void)
The event that carries the broken bridges room's first broken bridge's middle along with the leader.
References fdActorGetById() and scShrineOfTheSeaGodKeepWithLeader().
Referenced by scShrineOfTheSeaGodBreakFirstBridge().
Definition at line 1287 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodBreakFirstBridge
void scShrineOfTheSeaGodBreakFirstBridge(void)
On the broken bridges room's first broken bridge the leader sways until its middle drops with him into the stream, which carries him south on it.
References fdActorGetById(), fdActorMoveToAndWait(), fdActorMoveToAndWaitById(), fdActorSetHorizontalPosWithTerrain(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorWalkToAndWaitById(), fdMapCopyMetatileAttributeRect(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scFieldSetTickEvent(), scShrineOfTheSeaGodKeepFirstBridgeWithLeader(), scShrineOfTheSeaGodLandBrokenBridge(), scShrineOfTheSeaGodRockOnBridge(), syCloseEvent(), syGameFlagSet(), sySoundPlay() and sySynch().
Referenced by ShrineOfTheSeaGodBrokenBridgesCues.
Definition at line 1295 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodKeepSecondBridgeWithLeader
void scShrineOfTheSeaGodKeepSecondBridgeWithLeader(void)
The event that carries the broken bridges room's second broken bridge's middle along with the leader.
References fdActorGetById() and scShrineOfTheSeaGodKeepWithLeader().
Referenced by scShrineOfTheSeaGodBreakSecondBridge().
Definition at line 1349 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodBreakSecondBridge
void scShrineOfTheSeaGodBreakSecondBridge(void)
On the broken bridges room's second broken bridge the leader sways until its middle drops with him into the stream, which carries him a little way south.
References fdActorGetById(), fdActorMoveToAndWaitById(), fdActorSetHorizontalPosWithTerrain(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorWalkToAndWait(), fdMapCopyMetatileAttributeRect(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scFieldSetTickEvent(), scShrineOfTheSeaGodKeepSecondBridgeWithLeader(), scShrineOfTheSeaGodLandBrokenBridge(), scShrineOfTheSeaGodRockOnBridge(), syCloseEvent(), syGameFlagSet(), sySoundPlay() and sySynch().
Referenced by ShrineOfTheSeaGodBrokenBridgesCues.
Definition at line 1357 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodRevealStone
void scShrineOfTheSeaGodRevealStone(void)
Reveal shows the seventh stepping stone in the hexagon of rocks.
References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesTo().
Referenced by ShrineOfTheSeaGodIslandCues.
Definition at line 1392 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodHideStone
void scShrineOfTheSeaGodHideStone(void)
As Reveal fades, the seventh stone is hidden again.
References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesTo().
Referenced by ShrineOfTheSeaGodIslandCues.
Definition at line 1399 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodThrowRopeAgain
void scShrineOfTheSeaGodThrowRopeAgain(void)
Back in the entrance, Riki tries to throw the rope up to Tavi again, misses and goes off; Kraden joins the leader.
References fdActorFaceDirection(), fdActorFaceDirectionById(), fdActorGetById(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorSetAnimationById(), fdActorSetDestinationById(), fdActorSetHorizontalPosWithTerrain(), fdActorWaitForMoveById(), fdActorWalkToAndWait(), fdCameraMoveWithinMapBounds(), fdCameraWaitForArrival(), fdEffectSetAttached(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageAndWait(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scFieldActorShowEmote(), Sint32, syGameFlagSet() and sySynch().
Referenced by ShrineOfTheSeaGodEntranceCues.
Definition at line 1407 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodLashRope
void scShrineOfTheSeaGodLashRope(void)
Lash ties the boys' rope, Tavi climbs down and both meet the party.
References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorFaceDirectionById(), fdActorGetById(), fdActorJump(), fdActorMoveToAndWait(), fdActorSetAnimationAndWait(), fdActorSetAnimationById(), fdActorSetDestinationById(), fdActorSetMovementTypeAndWaitById(), fdActorSetMovementTypeById(), fdActorSetPosFX(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorStop(), fdActorWaitForMoveById(), fdActorWalkToAndWait(), fdActorWatchAndSetScript(), fdCameraGetActor(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scFieldActorShowEmote(), ShrineOfTheSeaGodBoysGoHome, Sint32, syGameFlagSet() and sySynch().
Referenced by ShrineOfTheSeaGodEntranceCues.
Definition at line 1496 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodDjinniFleesEast
void scShrineOfTheSeaGodDjinniFleesEast(void)
Breath, first seen in the crossroads, startles and runs east.
References fdActorFaceActorById(), fdActorGetById(), fdActorSetSpritePriority(), fdActorShowEmoteById(), fdActorWalkToAndWait(), fdActorWatchAndSetScript(), fdCameraGetActor(), fdCameraMoveWithinMapBounds(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork and syGameFlagSet().
Referenced by ShrineOfTheSeaGodCrossroadsCues.
Definition at line 1690 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodDjinniFleesSouth
void scShrineOfTheSeaGodDjinniFleesSouth(void)
In the crossroads, Breath flees south out of the room.
References fdActorFaceActorById(), fdActorGetById(), fdActorSetHorizontalPosWithTerrain(), fdActorSetSpritePriority(), fdActorShowEmoteById(), fdActorStop(), fdActorWalkToAndWait(), fdCameraGetActor(), fdCameraMoveWithinMapBounds(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork and syGameFlagSet().
Referenced by ShrineOfTheSeaGodCrossroadsCues.
Definition at line 1716 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodDjinniRunsNorth
void scShrineOfTheSeaGodDjinniRunsNorth(void)
The Djinni runs up from the south stairs, under the bridge, and waits by the ledge.
References fdActorGetById(), fdActorSetPosAndFacing(), fdActorSetSpritePriority(), fdActorShowEmoteById(), fdActorStop(), fdActorWalkToAndWait(), fdActorWalkToAndWaitById(), fdActorWatchAndSetScript(), fdCameraGetActor(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, Sint32, syGameFlagSet() and sySynch().
Referenced by ShrineOfTheSeaGodBreathCues.
Definition at line 1743 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodDjinniRunsWest
void scShrineOfTheSeaGodDjinniRunsWest(void)
In the ledge room, Breath runs west past the leader.
References fdActorGetById(), fdActorSetHorizontalPosWithTerrain(), fdActorSetPosAndFacing(), fdActorSetSpritePriority(), fdActorShowEmoteById(), fdActorStop(), fdActorWalkToAndWait(), fdActorWalkToAndWaitById(), fdActorWatchAndSetScript(), fdCameraGetActor(), fdCameraMoveWithinMapBounds(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptStart(), MainRoutineStateWork, Sint32, syGameFlagSet() and sySynch().
Referenced by ShrineOfTheSeaGodBreathCues.
Definition at line 1780 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodDjinniHopsOntoLedge
void scShrineOfTheSeaGodDjinniHopsOntoLedge(void)
Breath hops up onto the ledge, where the chase round it begins.
References fdActorGetById(), fdActorWalkToAndWait(), fdActorWatchAndSetScript(), fdCameraGetActor(), fdCameraMoveWithinMapBounds(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scFieldActorShowEmote(), syGameFlagGet(), syGameFlagSet() and sySynch().
Referenced by ShrineOfTheSeaGodBreathCues.
Definition at line 1816 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodStartDjinniDash
void scShrineOfTheSeaGodStartDjinniDash(void)
Starts one of Breath's dashes: the camera and Breath stop, and Breath picks up speed.
References fdActorStop(), fdCameraGetActor(), fdScriptEndLastingPsynergy(), fdScriptStart() and sySynch().
Definition at line 1843 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodEndDjinniDash
void scShrineOfTheSeaGodEndDjinniDash(void)
Ends one of Breath's dashes: Breath watches the leader again.
References fdActorWatchAndSetScript(), fdScriptEnd(), fdScriptWait() and MainRoutineStateWork.
Definition at line 1854 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodDjinniSouthEastToNorthEast
DEFINE_DJINNI_DASH(scShrineOfTheSeaGodDjinniSouthEastToNorthEast, 392, 216, BREATH_AT_NORTHEAST_CORNER)
With Breath at the ledge's south-east corner, the leader comes up the south- east way: Breath dashes north to the north-east corner.
Referenced by scShrineOfTheSeaGodChaseDjinni().
Definition at line 1875 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodDjinniNorthEastJumpsWest
DEFINE_DJINNI_WALK_AND_JUMP(scShrineOfTheSeaGodDjinniNorthEastJumpsWest, 360, FACING_WEST, BREATH_STOPPED_EAST_OF_TORCH, 296, 328, BREATH_AT_NORTHWEST_CORNER)
With Breath at the north-east corner, the leader steps onto the east side's north end: Breath runs west along the north side and leaps the torch's place to the north-west corner, unless the torch stands there.
Referenced by scShrineOfTheSeaGodChaseDjinni().
Definition at line 1929 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodDjinniNorthWestToSouthWest
DEFINE_DJINNI_DASH_AROUND(scShrineOfTheSeaGodDjinniNorthWestToSouthWest, 280, 296, 296, BREATH_AT_SOUTHWEST_CORNER)
With Breath at the north-west corner, the leader steps onto the north side's west end: Breath dashes round to the south-west corner.
Referenced by scShrineOfTheSeaGodChaseDjinni().
Definition at line 1954 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodDjinniSouthWestToSouthEast
DEFINE_DJINNI_DASH(scShrineOfTheSeaGodDjinniSouthWestToSouthEast, 392, 296, BREATH_AT_SOUTHEAST_CORNER)
With Breath at the south-west corner, the leader steps onto the west side's south end: Breath dashes east to the south-east corner.
Referenced by scShrineOfTheSeaGodChaseDjinni().
Definition at line 1962 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodDjinniSouthEastToSouthWest
DEFINE_DJINNI_DASH(scShrineOfTheSeaGodDjinniSouthEastToSouthWest, 280, 296, BREATH_AT_SOUTHWEST_CORNER)
With Breath at the south-east corner, the leader steps onto the east side's south end: Breath dashes west to the south-west corner.
Referenced by scShrineOfTheSeaGodChaseDjinni().
Definition at line 1969 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodDjinniSouthWestToNorthWest
DEFINE_DJINNI_DASH_AROUND(scShrineOfTheSeaGodDjinniSouthWestToNorthWest, 296, 216, 280, BREATH_AT_NORTHWEST_CORNER)
With Breath at the south-west corner, the leader comes up the south-west way: Breath dashes round to the north-west corner.
Referenced by scShrineOfTheSeaGodChaseDjinni().
Definition at line 1976 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodDjinniNorthWestJumpsEast
DEFINE_DJINNI_WALK_AND_JUMP(scShrineOfTheSeaGodDjinniNorthWestJumpsEast, 328, FACING_EAST, BREATH_STOPPED_WEST_OF_TORCH, 392, 360, BREATH_AT_NORTHEAST_CORNER)
With Breath at the north-west corner, the leader steps onto the west side's north end: Breath runs east along the north side and leaps the torch's place to the north-east corner, unless the torch stands there.
Referenced by scShrineOfTheSeaGodChaseDjinni().
Definition at line 1985 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodDjinniNorthEastToSouthEast
DEFINE_DJINNI_DASH(scShrineOfTheSeaGodDjinniNorthEastToSouthEast, 392, 296, BREATH_AT_SOUTHEAST_CORNER)
With Breath at the north-east corner, the leader steps onto the north side's east end: Breath dashes south to the south-east corner.
Referenced by scShrineOfTheSeaGodChaseDjinni().
Definition at line 1995 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodTrappedDjinniJumpsWest
DEFINE_DJINNI_JUMP(scShrineOfTheSeaGodTrappedDjinniJumpsWest, FACING_WEST, BREATH_STOPPED_EAST_OF_TORCH, 296, 328, BREATH_AT_NORTHWEST_CORNER)
Breath, stopped east of the torch's place, tries the leap west again as the leader steps onto the east side's north end.
Referenced by scShrineOfTheSeaGodChaseDjinni().
Definition at line 2042 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodTrappedDjinniToNorthEast
DEFINE_DJINNI_DASH(scShrineOfTheSeaGodTrappedDjinniToNorthEast, 392, 216, BREATH_AT_NORTHEAST_CORNER)
Breath, stopped east of the torch, dashes back to the north-east corner as the leader steps onto the north side's west end.
Referenced by scShrineOfTheSeaGodChaseDjinni().
Definition at line 2051 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodTrappedDjinniToNorthWest
DEFINE_DJINNI_DASH(scShrineOfTheSeaGodTrappedDjinniToNorthWest, 296, 216, BREATH_AT_NORTHWEST_CORNER)
Breath, stopped west of the torch, dashes back to the north-west corner as the leader steps onto the north side's east end.
Referenced by scShrineOfTheSeaGodChaseDjinni().
Definition at line 2058 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodTrappedDjinniJumpsEast
DEFINE_DJINNI_JUMP(scShrineOfTheSeaGodTrappedDjinniJumpsEast, FACING_EAST, BREATH_STOPPED_WEST_OF_TORCH, 392, 360, BREATH_AT_NORTHEAST_CORNER)
Breath, stopped west of the torch's place, tries the leap east again as the leader steps onto the west side's north end.
Referenced by scShrineOfTheSeaGodChaseDjinni().
Definition at line 2065 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodChaseDjinni
void scShrineOfTheSeaGodChaseDjinni(void)
Each step onto or round the ledge sends Breath away from the leader to another corner, leaping the north side where the torch's place is, unless the torch stands there and stops it.
References fdActorGetById(), scShrineOfTheSeaGodDjinniNorthEastJumpsWest(), scShrineOfTheSeaGodDjinniNorthEastToSouthEast(), scShrineOfTheSeaGodDjinniNorthWestJumpsEast(), scShrineOfTheSeaGodDjinniNorthWestToSouthWest(), scShrineOfTheSeaGodDjinniSouthEastToNorthEast(), scShrineOfTheSeaGodDjinniSouthEastToSouthWest(), scShrineOfTheSeaGodDjinniSouthWestToNorthWest(), scShrineOfTheSeaGodDjinniSouthWestToSouthEast(), scShrineOfTheSeaGodTrappedDjinniJumpsEast(), scShrineOfTheSeaGodTrappedDjinniJumpsWest(), scShrineOfTheSeaGodTrappedDjinniToNorthEast(), scShrineOfTheSeaGodTrappedDjinniToNorthWest(), syGameFlagClear() and syGameFlagGet().
Referenced by ShrineOfTheSeaGodBreathCues.
Definition at line 2075 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodLightTorch
void scShrineOfTheSeaGodLightTorch(void)
Lights the torch: the pedestal in its burning animation, and the marker on its flame in its empty picture, disabled.
References fdActorDisableById() and fdActorSetAnimationById().
Referenced by scShrineOfTheSeaGodInitBreath() and scShrineOfTheSeaGodInitSideRoom().
Definition at line 2155 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodCastSand
void scShrineOfTheSeaGodCastSand(void)
Casting Sand in the entrance turns Felix to sand as anywhere, and here also
moves him onto the map's overhead layer. That layer's metatiles here
(behaviour 232, ringed by metatiles 16 pixels down) mark out a winding way
under the ridge of rock round the south ladder, metatiles (13, 21) to (25,
23) and (21, 18) to (20, 27), reaching the floor west of the ridge, the
corridor south of it and the ledge east of it. Cast on the floor west of the
ridge, at metatile (17, 21), Felix sinks into a mound of sand; steered east,
then north, then east, the mound slides in under the ridge's rocky rim, comes
out on its east side and goes on east along the floor to the room's east wall
below the east ladder, still sand. Steered north off the way onto the floor
by the water, he rises out of the sand. Cast off the way, as by the south
ladder, he sinks and rises again in place a second later, whatever key is
held (fdPsynergySand).
References fdActorGetById() and MainRoutineStateWork.
Referenced by ShrineOfTheSeaGodEntranceCues.
Definition at line 2175 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodEndSand
void scShrineOfTheSeaGodEndSand(void)
As Sand wears off, Felix rises out of the sand and walks on the ground layer again.
References fdActorGetById() and MainRoutineStateWork.
Referenced by ShrineOfTheSeaGodEntranceCues.
Definition at line 2182 of file shrine_of_the_sea_god.c.
scInit
Sint32 scInit(void)
Sets up the room being entered.
References MainRoutineStateWork, scShrineOfTheSeaGodInitBreath(), scShrineOfTheSeaGodInitBrokenBridges(), scShrineOfTheSeaGodInitCrossroads(), scShrineOfTheSeaGodInitEntrance(), scShrineOfTheSeaGodInitExterior(), scShrineOfTheSeaGodInitFootprints(), scShrineOfTheSeaGodInitIsland(), scShrineOfTheSeaGodInitRightProng(), scShrineOfTheSeaGodInitSideRoom(), scShrineOfTheSeaGodInitStatue() and Sint32.
Definition at line 2188 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodSetUpBridge
ACTOR *scShrineOfTheSeaGodSetUpBridge(Sint32 id)
Sets up a bridge: twelve pixels up, drawn under the leader, disabled.
References fdActorDisableById(), fdActorGetById() and Sint32.
Referenced by scShrineOfTheSeaGodInitBreath(), scShrineOfTheSeaGodInitBrokenBridges(), scShrineOfTheSeaGodInitCrossroads() and scShrineOfTheSeaGodInitSideRoom().
Definition at line 2219 of file shrine_of_the_sea_god.c.
scRunUnlessFlag
void scRunUnlessFlag(void)
Back in the exterior with the party kept where it was, stops drawing its unseen blocks unless they were drawn; on a fresh arrival, notes them drawn.
References scShrineOfTheSeaGodHideBlocks(), syGameFlagGet() and syGameFlagSet().
Referenced by scShrineOfTheSeaGodSetUpBlocks().
Definition at line 2233 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodSetUpBlocks
void scShrineOfTheSeaGodSetUpBlocks(void)
Hides the exterior's three unseen blocks behind the room.
References scActorHide() and scRunUnlessFlag().
Referenced by scShrineOfTheSeaGodInitExterior().
Definition at line 2247 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodPlaceFootprints
void scShrineOfTheSeaGodPlaceFootprints(void)
Lays the Djinni's footprints across the room below the crossroads, drawn dark on the sand.
References fdActorDisableById(), fdActorGetById(), fdActorSetAnimationById(), fdActorSetSpriteColor(), fdActorSetSpritePriority(), ShrineOfTheSeaGodFootprintsTable and Sint32.
Referenced by scShrineOfTheSeaGodInitFootprints().
Definition at line 2259 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodInitEntrance
void scShrineOfTheSeaGodInitEntrance(void)
Sets up the entrance: its floating logs, the rope, and Riki and Tavi gone once Riki has given up.
References fdActorSetHorizontalPosWithTerrain(), fdRopeInit(), fdRopePlace(), scFieldSetTickEvent(), scShrineOfTheSeaGodSetUpFloatingLog(), scShrineOfTheSeaGodTrackUpperLevel() and syGameFlagGet().
Referenced by scInit().
Definition at line 2286 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodUpdateRikiTarget
void scShrineOfTheSeaGodUpdateRikiTarget(void)
In renders of the room once Riki has given up on the rope, A pressed beside him from the west opens the field menu, and from the east, behind him, he says "Wah! You scared me!". The side room's event: Riki, looking west, can be talked to and read only from behind; while he stands east of the leader he is no target.
References fdActorGetById() and MainRoutineStateWork.
Referenced by scShrineOfTheSeaGodInitSideRoom().
Definition at line 2311 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodInitSideRoom
void scShrineOfTheSeaGodInitSideRoom(void)
Sets up the side room: the plank bridge down over the stream, the torch, and Riki looking around once he has given up on the rope.
References fdActorDisableById(), fdActorGetById(), fdActorPlaceBlocks(), fdActorSetHorizontalPosWithTerrain(), fdActorSetMovementTypeById(), fdActorSetPosAndFacing(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdMapGridCopyMetatileAttributes(), scFieldSetTickEvent(), scShrineOfTheSeaGodKeepFlameOnTorch(), scShrineOfTheSeaGodLightTorch(), scShrineOfTheSeaGodSetUpBridge(), scShrineOfTheSeaGodUpdateRikiTarget(), ShrineOfTheSeaGodPushedActors, ShrineOfTheSeaGodRikiLooksAround, syGameFlagGet() and sySynch().
Referenced by scInit().
Definition at line 2324 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodInitCrossroads
void scShrineOfTheSeaGodInitCrossroads(void)
Sets up the crossroads: its bridges, the broken one's middle down in the water once it has fallen, the stone pillar where Move left it, and Breath where it fled.
References fdActorGetById(), fdActorPlaceBlocks(), fdActorSetAnimationById(), fdActorSetHorizontalPosWithTerrain(), fdActorSetPosAndFacing(), fdActorSetSpritePriority(), fdEffectStartBlankOverlay(), fdMapGridCopyMetatileAttributes(), scFieldActorSetPosAndResetMotion(), scFieldSetTickEvent(), scShrineOfTheSeaGodLayerCrossroadsBridges(), scShrineOfTheSeaGodSetUpBridge(), ShrineOfTheSeaGodPushedActors, syGameFlagGet() and sySynch().
Referenced by scInit().
Definition at line 2361 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodInitFootprints
void scShrineOfTheSeaGodInitFootprints(void)
Sets up the room below: Breath's footprints until it has run past.
References scFieldSetTickEvent(), scShrineOfTheSeaGodPlaceFootprints(), scShrineOfTheSeaGodTrackUpperLevel() and syGameFlagGet().
Referenced by scInit().
Definition at line 2411 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodInitBreath
void scShrineOfTheSeaGodInitBreath(void)
Sets up the ledge room: the bridge, under the leader when he comes up the north-east or west stairs and over him otherwise, the puddles, frozen or not, the torch, and Breath where the chase left it.
References fdActorGetById(), fdActorPlaceBlocks(), fdActorSetPosAndFacing(), fdActorSetSpritePriority(), fdActorWatchAndSetScript(), fdMapGridCopyMetatileAttributes(), MainRoutineStateWork, scFieldSetTickEvent(), scShrineOfTheSeaGodKeepFlameOnTorch(), scShrineOfTheSeaGodLayerPuddles(), scShrineOfTheSeaGodLightTorch(), scShrineOfTheSeaGodSetUpBridge(), scShrineOfTheSeaGodSetUpPuddle(), ShrineOfTheSeaGodPushedActors, Sint32, syGameFlagGet() and syGameFlagSet().
Referenced by scInit().
Definition at line 2424 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodInitExterior
void scShrineOfTheSeaGodInitExterior(void)
Sets up the exterior: the pillar, in its hole once pushed there, and the unseen blocks hidden; the leader stays in front of rising ground.
References fdActorDisableById(), fdActorGetById(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdMapGridCopyMetatileAttributes(), MainRoutineStateWork, scShrineOfTheSeaGodSetUpBlocks(), Sint32 and syGameFlagGet().
Referenced by scInit().
Definition at line 2482 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodInitBrokenBridges
void scShrineOfTheSeaGodInitBrokenBridges(void)
Sets up the broken bridges room: its bridges, the broken ones' middles down in the stream once fallen, the room's two ropes, and the splashes, out of sight.
References Call4(), fdActorDisableById(), fdActorGetById(), fdActorSetAnimationById(), fdActorSetPosAndResetMotion(), fdActorSetSpritePriority(), fdMapCopyMetatileAttributeRect(), fdRopeInit(), fdRopePlace(), scShrineOfTheSeaGodSetUpBridge() and syGameFlagGet().
Referenced by scInit().
Definition at line 2509 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodInitIsland
void scShrineOfTheSeaGodInitIsland(void)
Sets up the island room: its floating logs, and the water sinking back when the party comes down from the statue room.
References MainRoutineStateWork, scShrineOfTheSeaGodLowerWater(), scShrineOfTheSeaGodSetUpFloatingLog() and syGameFlagGet().
Referenced by scInit().
Definition at line 2576 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodInitStatue
void scShrineOfTheSeaGodInitStatue(void)
Sets up the statue room: the party rises on the water when it comes up from the island.
References MainRoutineStateWork, scShrineOfTheSeaGodRiseOnWater() and syGameFlagGet().
Referenced by scInit().
Definition at line 2589 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodInitRightProng
void scShrineOfTheSeaGodInitRightProng(void)
Sets up the Right Prong's room: the Prong floats above its place, shedding sparkles.
References fdActorGetById(), fdMapGridCenterOnFollowedPoint(), scProngSparkle() and sySynch().
Referenced by scInit().
Definition at line 2601 of file shrine_of_the_sea_god.c.
scShrineOfTheSeaGodSetUpFloatingLog
void scShrineOfTheSeaGodSetUpFloatingLog(Sint32 id)
Sets up a floating log: flat on the water, behind the leader, disabled.
References fdActorDisableById(), fdActorGetById(), fdActorSetSpritePriority() and Sint32.
Referenced by scShrineOfTheSeaGodInitEntrance(), scShrineOfTheSeaGodInitIsland() and scShrineOfTheSeaGodLowerWater().
Definition at line 2619 of file shrine_of_the_sea_god.c.
scPrepareMap
Sint32 scPrepareMap(void)
Back from the battle with Breath: once it is beaten, the one enemy defeated, it is put back where the torch trapped it, facing away.
References fdActorSetPosAndFacing(), MainRoutineStateWork, Sint32, syGameFlagClear() and syGameFlagGet().
Definition at line 2633 of file shrine_of_the_sea_god.c.
Variables in detail
ShrineOfTheSeaGodStatueExitRegions
extern SCENE_REGION ShrineOfTheSeaGodStatueExitRegions[]
SCENE_REGION ShrineOfTheSeaGodStatueExitRegions[]
Referenced by scGetExitRegions().
Definition at lines 312 and 2730 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodLaddersExitRegions
extern SCENE_REGION ShrineOfTheSeaGodLaddersExitRegions[]
SCENE_REGION ShrineOfTheSeaGodLaddersExitRegions[]
Referenced by scGetExitRegions().
Definition at lines 313 and 2736 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodRightProngExitRegions
extern SCENE_REGION ShrineOfTheSeaGodRightProngExitRegions[]
SCENE_REGION ShrineOfTheSeaGodRightProngExitRegions[]
Referenced by scGetExitRegions().
Definition at lines 314 and 2744 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodPlacements
extern ACTOR_PLACE ShrineOfTheSeaGodPlacements[]
ACTOR_PLACE ShrineOfTheSeaGodPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 336 and 2851 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodEntranceActorPlacements
extern ACTOR_PLACE ShrineOfTheSeaGodEntranceActorPlacements[]
ACTOR_PLACE ShrineOfTheSeaGodEntranceActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 337 and 2855 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodSideRoomActorPlacements
extern ACTOR_PLACE ShrineOfTheSeaGodSideRoomActorPlacements[]
ACTOR_PLACE ShrineOfTheSeaGodSideRoomActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 338 and 2874 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodCrossroadsActorPlacements
extern ACTOR_PLACE ShrineOfTheSeaGodCrossroadsActorPlacements[]
ACTOR_PLACE ShrineOfTheSeaGodCrossroadsActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 339 and 2886 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodFootprintsActorPlacements
extern ACTOR_PLACE ShrineOfTheSeaGodFootprintsActorPlacements[]
ACTOR_PLACE ShrineOfTheSeaGodFootprintsActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 340 and 2906 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodBreathActorPlacements
extern ACTOR_PLACE ShrineOfTheSeaGodBreathActorPlacements[]
ACTOR_PLACE ShrineOfTheSeaGodBreathActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 341 and 2942 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodExteriorActorPlacements
extern ACTOR_PLACE ShrineOfTheSeaGodExteriorActorPlacements[]
ACTOR_PLACE ShrineOfTheSeaGodExteriorActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 342 and 2960 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodBrokenBridgesActorPlacements
extern ACTOR_PLACE ShrineOfTheSeaGodBrokenBridgesActorPlacements[]
ACTOR_PLACE ShrineOfTheSeaGodBrokenBridgesActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 343 and 2972 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodIslandActorPlacements
extern ACTOR_PLACE ShrineOfTheSeaGodIslandActorPlacements[]
ACTOR_PLACE ShrineOfTheSeaGodIslandActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 344 and 3016 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodCues
extern CUE ShrineOfTheSeaGodCues[]
CUE ShrineOfTheSeaGodCues[]
Referenced by scGetCues().
Definition at lines 345 and 3028 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodEntranceCues
extern CUE ShrineOfTheSeaGodEntranceCues[]
CUE ShrineOfTheSeaGodEntranceCues[]
References scShrineOfTheSeaGodCastSand(), scShrineOfTheSeaGodEndSand(), scShrineOfTheSeaGodLashRope() and scShrineOfTheSeaGodThrowRopeAgain().
Referenced by scGetCues().
Definition at lines 346 and 3032 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodSideRoomCues
extern CUE ShrineOfTheSeaGodSideRoomCues[]
CUE ShrineOfTheSeaGodSideRoomCues[]
References scShrineOfTheSeaGodStartleRiki().
Referenced by scGetCues().
Definition at lines 347 and 3050 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodCrossroadsCues
extern CUE ShrineOfTheSeaGodCrossroadsCues[]
CUE ShrineOfTheSeaGodCrossroadsCues[]
References scShrineOfTheSeaGodBreakCrossroadsBridge(), scShrineOfTheSeaGodDjinniFleesEast(), scShrineOfTheSeaGodDjinniFleesSouth(), scShrineOfTheSeaGodDrawLeaderBehind(), scShrineOfTheSeaGodDrawLeaderInFront(), scShrineOfTheSeaGodLiftBlock() and scShrineOfTheSeaGodMovePillar().
Referenced by scGetCues().
Definition at lines 348 and 3060 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodFootprintsCues
extern CUE ShrineOfTheSeaGodFootprintsCues[]
CUE ShrineOfTheSeaGodFootprintsCues[]
Referenced by scGetCues().
Definition at lines 349 and 3092 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodBreathCues
extern CUE ShrineOfTheSeaGodBreathCues[]
CUE ShrineOfTheSeaGodBreathCues[]
References scShrineOfTheSeaGodChaseDjinni(), scShrineOfTheSeaGodDjinniHopsOntoLedge(), scShrineOfTheSeaGodDjinniRunsNorth(), scShrineOfTheSeaGodDjinniRunsWest(), scShrineOfTheSeaGodFightBreath(), scShrineOfTheSeaGodFreezeFirstPuddle(), scShrineOfTheSeaGodFreezeSecondPuddle(), scShrineOfTheSeaGodFreezeThirdPuddle(), scShrineOfTheSeaGodLiftBlock() and scShrineOfTheSeaGodSetDownTorch().
Referenced by scGetCues().
Definition at lines 350 and 3109 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodExteriorCues
extern CUE ShrineOfTheSeaGodExteriorCues[]
CUE ShrineOfTheSeaGodExteriorCues[]
References scShrineOfTheSeaGodPushPillarIntoHole().
Referenced by scGetCues().
Definition at lines 351 and 3180 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodBrokenBridgesCues
extern CUE ShrineOfTheSeaGodBrokenBridgesCues[]
CUE ShrineOfTheSeaGodBrokenBridgesCues[]
References scShrineOfTheSeaGodBreakFirstBridge(), scShrineOfTheSeaGodBreakSecondBridge() and scShrineOfTheSeaGodOpenFieldMenu().
Referenced by scGetCues().
Definition at lines 352 and 3196 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodIslandCues
extern CUE ShrineOfTheSeaGodIslandCues[]
CUE ShrineOfTheSeaGodIslandCues[]
References scShrineOfTheSeaGodExamineStatue(), scShrineOfTheSeaGodHideStone(), scShrineOfTheSeaGodRevealStone() and scShrineOfTheSeaGodUseSeaGodsTear().
Referenced by scGetCues().
Definition at lines 353 and 3227 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodStatueCues
extern CUE ShrineOfTheSeaGodStatueCues[]
CUE ShrineOfTheSeaGodStatueCues[]
References scShrineOfTheSeaGodExamineStatue() and scShrineOfTheSeaGodSinkWithWater().
Referenced by scGetCues().
Definition at lines 354 and 3249 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodRikiLooksAround
extern Uint32 ShrineOfTheSeaGodRikiLooksAround[]
Uint32 ShrineOfTheSeaGodRikiLooksAround[]
Riki looks about the room, north-north-west, south-south-west and west, for ever.
Referenced by scShrineOfTheSeaGodInitSideRoom() and scShrineOfTheSeaGodStartleRiki().
Definition at lines 412 and 2673 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodPushedActors
extern Sint16 ShrineOfTheSeaGodPushedActors[]
Sint16 ShrineOfTheSeaGodPushedActors[]
What a push or Move lifts and sets down: each room's first placed actor, the torch, or in the crossroads its stone pillar.
Referenced by scShrineOfTheSeaGodInitBreath(), scShrineOfTheSeaGodInitCrossroads(), scShrineOfTheSeaGodInitSideRoom() and scShrineOfTheSeaGodLiftBlock().
Definition at lines 752 and 2700 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodBridgeOffset
FIXED ShrineOfTheSeaGodBridgeOffset[3]
The broken bridge's middle less the leader's place, 16.16 pixels, as he rocks on it.
Referenced by scShrineOfTheSeaGodKeepWithLeader() and scShrineOfTheSeaGodRockOnBridge().
Definition at line 1109 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodBoysGoHome
extern Uint32 ShrineOfTheSeaGodBoysGoHome[]
Uint32 ShrineOfTheSeaGodBoysGoHome[]
The boys walk home, out by the room's south way.
Referenced by scShrineOfTheSeaGodLashRope().
Definition at lines 1493 and 2684 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodFootprintsTable
extern SHRINE_OF_THE_SEA_GOD_SPOT ShrineOfTheSeaGodFootprintsTable[]
SHRINE_OF_THE_SEA_GOD_SPOT ShrineOfTheSeaGodFootprintsTable[]
The Djinni's footprints, laid by scShrineOfTheSeaGodPlaceFootprints: where each lies, mirrored (a
scale of -1) or not, and its turn.
Referenced by scShrineOfTheSeaGodPlaceFootprints().
Definition at lines 2151 and 2706 of file shrine_of_the_sea_god.c.
FieldEffectDurationScripts
const Sint32 *FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().
Definition at line 2666 of file shrine_of_the_sea_god.c.
ShrineOfTheSeaGodFootprintsEnd
Sint16 ShrineOfTheSeaGodFootprintsEnd[]
Unused: the halfwords after the last footprint.
Definition at line 2726 of file shrine_of_the_sea_god.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 2750 of file shrine_of_the_sea_god.c.