Skip to Content
The Alchemy Project

src/scene/settlements.c

Four small places the ship can put in at, sharing one overlay, each with its houses. More…

Structures

NameDescription
structSETTLEMENTS_VECTORThree 16.16 fixed-point components.

Macros

NameDescription
#defineOWN_fdRopeLashThis unit declares its own form of fdRopeLash, below.
#defineEFFECT_SET_MODE fdActorSelectAnimation
#defineEFFECT_SET_SCRIPT fdActorStartScript
#defineFALLS_PALETTE 3SW Atteka Islet's background palette whose water colours run down the falls.
#defineFLAG_KALT_ROPE_TIED FLAG_SCENE_TEMP(0x03)Kalt Island's rope across the frozen river, tied by Lash, for this visit.
#defineFLAG_ICE_SLIDES_STOPPED FLAG_SCENE_TEMP(0x01)Kalt Island: set by a step onto metatile (5, 12), the top of the climb on the frozen river's west bank, and cleared by one onto metatile (5, 13) below it; while it is set the river's ice slides no one (fdLeaderSlideOnIce).
#defineFLAG_PILLAR_SUNK FLAG_SCENE_TEMP(0x04)SW Atteka Islet: the pillar has been pushed into the river at metatile (11, 12), and its top stands in the water like the river's other posts.
#defineFLAG_FALLS_CRATE_AT_REST FLAG_SCENE_TEMP(0x05)SW Atteka Islet: the crate has gone down the falls and stuck against the sunk pillar, making the path to the Dragon Skin's chest.
#defineFLAG_FALLS_CRATE_LOST FLAG_SCENE_TEMP(0x06)SW Atteka Islet: the crate has gone down the falls with no pillar to stop it, and is lost.
#defineFLAG_FALLS_CRATE_DROPPED FLAG_SCENE_TEMP(0x07)SW Atteka Islet: the crate, moved onto metatile (16, 12) at the grass's south edge, has dropped down the cliff there.
#defineFLAG_BOULDER_LIFTED FLAG_SCENE_TEMP(0x08)SW Atteka Islet: Lift has raised the boulder.
#defineFLAG_ON_WALL FLAG_SCENE_TEMP(0x20)Hesperia Settlement: Felix has stepped on metatile (13, 11) and walks by the wall top's metatiles (scSettlementsStepOntoWall).
#defineFLAG_WALL_CRATE_DROPPED FLAG_SCENE_TEMP(0x21)Hesperia Settlement: the crate has been pushed down off the wall.
#defineFLAG_WALL_CRATE_ON_GROUND FLAG_SCENE_TEMP(0x05)Hesperia Settlement: the crate has been pushed off the wall at metatile (16, 15), the wall's whole height, to the ground below.
#defineFLAG_WALL_CRATE_OFF_STEP FLAG_SCENE_TEMP(0x04)Hesperia Settlement: the crate, pushed down onto the step at metatile (12, 15), has been pushed east off it to the ground at metatile (13, 15).
#defineFLAG_VINE_GROWN FLAG_SCENE_TEMP(0x30)Hesperia Settlement: Growth has made the sprout below the west cliff a vine.
#defineFLAG_LADDER_BUSH_CUT 0xa60The bush over the ladder hole in the west of Gondowan Settlement is blown away.
#defineSINK (ticks)Sinks actor 2 pixels a tick for the given ticks, counting in i.

Enumerations

NameDescription
enumGONDOWAN_SETTLEMENT_METATILE { GONDOWAN_LADDER_HOLE_NORTH, GONDOWAN_LADDER_HOLE_WEST, GONDO … }Gondowan Settlement's metatiles that run a script.
enumHESPERIA_SETTLEMENT_METATILE { HESPERIA_HOUSE_DOOR, HESPERIA_LADDER_HOLE_NORTH, HESPERIA_LA … }Hesperia Settlement's metatiles that run a script.
enumanonymous enum { HESPERIA_HOUSES_UP_TO_BED_ROOM, HESPERIA_HOUSES_DOWN_FROM_BE … }The stairs inside Hesperia Settlement's house, between the room the north door opens into and the room with beds the south door opens into: up from the first, arriving by the second's entrance 13, and down from the second, arriving at the first's north wall by its entrance 12.
enumKALT_ISLAND_METATILE { KALT_HOUSE_DOOR, KALT_ICE_SLIDES_OFF, KALT_ICE_SLIDES_ON, KA … }Kalt Island's metatiles that run a script.
enumKALT_ISLAND_HOUSES_METATILE { KALT_HOUSES_OVEN }Kalt Island's houses' metatiles that run a script.
enumGONDOWAN_SETTLEMENT_ACTOR_ID { ACTOR_MAN_ON_THE_RIDDLE_OF_THE_ROCK, ACTOR_GONDOWAN_BOY }The people of Gondowan Settlement, by the rows of SettlementsGondowanSettlementPlacements.
enumGONDOWAN_SETTLEMENT_HOUSES_ACTOR_ID { ACTOR_WOMAN_ON_THE_KIBOMBO }The Gondowan Settlement's houses.
enumHESPERIA_SETTLEMENT_ACTOR_ID { ACTOR_HESPERIA_MAN, ACTOR_SPROUT, ACTOR_WALL_CRATE, ACTOR_TI … }The Hesperia Settlement, by the rows of SettlementsHesperiaSettlementPlacements.
enumHESPERIA_SETTLEMENT_HOUSES_ACTOR_ID { ACTOR_WOMAN_ON_SHAMAN_VILLAGE, ACTOR_BOY_ON_THE_SHAMANS }The Hesperia Settlement's houses.
enumKALT_ISLAND_ACTOR_ID { ACTOR_ROPE_POST_A, ACTOR_ROPE_POST_B, ACTOR_GEL, ACTOR_APPLE }Kalt Island, by the rows of SettlementsKaltIslandPlacements.
enumKALT_ISLAND_HOUSES_ACTOR_ID { ACTOR_OLD_MAN_ON_THE_GLACIERS, ACTOR_OLD_WOMAN_ON_PROX_TRADE }Kalt Island's houses.
enumATTEKA_ISLET_ACTOR_ID { ACTOR_ISLANDER, ACTOR_PILLAR, ACTOR_FALLS_CRATE, ACTOR_RIVER … }SW Atteka Islet, by the rows of SettlementsAttekaIsletPlacements.
enumATTEKA_ISLET_HOUSES_ACTOR_ID { ACTOR_ISLANDER_ON_THE_WEST }SW Atteka Islet's houses.

Functions

NameDescription
Sint32fdRopeLash ()Declared here the old way, with no parameter list and an Sint32 result; the routine takes the rope and its two posts and returns nothing.
voidscSmokeSpawn (Sint32 x, Sint32 y, Sint32 z)Adds one white puff of chimney smoke at (x, y, z), which scSmokeDrift moves for SMOKE_TICKS.
voidscSettlementsCycleWaterColors (void)An event on SW Atteka Islet: the falls' water runs, its four colours moving along by one every 8 ticks.
voidscScrollStartHBlank (void)Starts the split: scScrollHBlank on every line, and scLayerTrackScroll each tick.
voidscSettlementsSinkPillar (void)The pillar pushed off the grass into SW Atteka Islet's river (metatile (11, 12)) sinks with a splash until only its top shows, a post like the others in the water, which the crate can later stop against.
voidscSettlementsSlideCrateDownFalls (void)The crate pushed into the river above SW Atteka Islet's falls (metatile (11, 9)) sinks in with a splash, drifts to the edge and goes down the falls with the camera watching.
voidscSettlementsRestoreWallMetatiles (void)Gives Hesperia Settlement's wall its kept metatiles back.
voidscSettlementsDropCrate (void)Hesperia Settlement's crate pushed off the south edge of the wall drops with the camera following it and lands in a ring of dust: through the leftmost gap onto the step at metatile (12, 15), from there east to the ground at metatile (13, 15) (the way to Tinder, leaving a step up the wall), at metatile (16, 15) the wall's whole height to the ground, or onto Tinder's ledge at metatile (19, 15).
voidfdLeaderSlideOnIce (void)The leader slides metatile by metatile over ice until something stops them: a wall, ground more than 8 pixels up, a solid actor, or the end of the ice.
voidscSettlementsClimbDownLadder (void)Felix steps onto the ladder's top, faces north and climbs down it, and the scene changes to the place below.
voidscSmokeDrift (ACTOR *actor)Each tick, a puff of chimney smoke drifts sideways ever faster, rises and spreads, until its ticks run out and it is gone.
voidscScrollHBlank (void)Each line of the screen as it is drawn: above the line scLayerTrackScroll sets, background layer BG1 keeps to the map and is drawn solid; below it, the layer drifts sideways with time and is drawn see-through.
voidscLayerTrackScroll (void)The falls' tick event: where scScrollHBlank's line falls on screen, from the third map layer's scroll, and how far BG1 is scrolled above and below it.
voidscSettlementsStepOntoWall (void)Nothing visible happens when Felix steps on metatile (13, 11), on the stairs in the cliff west of Hesperia Settlement's wall: until the crate is pushed off the wall, the wall's metatiles are kept and the overhead layer's are swapped in, so that its closed block over the wall, metatiles (11, 11) to (20, 14), becomes open ground 96 pixels up, ringed by closed metatiles.
voidfdLeaderStopIfPending (void)Stops the leader while an action waits.
voidscSettlementsMeetTinder (void)Felix talks to Tinder, the Mars Djinni on the ledge below Hesperia Settlement's wall, and Tinder joins the party: "Felix found the Mars Djinni Tinder!"
voidscSettlementsCatchApple (void)Felix casts Catch on the apple floating in the snowy trees west of Kalt Island's frozen river; the hand brings it to him, he holds it up, and "Felix got an Apple."
voidscSettlementsCutBushes (void)Felix casts Cyclone on the leafy bushes west of Gondowan Settlement's houses (metatile (7, 15) and the rest), and the ones the whirlwind reaches are blown away and stay gone.
voidscSettlementsCutLadderBush (void)Felix casts Cyclone on the leftmost bush west of Gondowan Settlement (metatile (5, 17)), and blowing it away uncovers a hole with a ladder down to a cave.
voidscSettlementsStepOntoLadderFromEast (void)Felix walks west onto the ladder hole beside the palm on Hesperia Settlement's wall top (metatile (24, 13)) and climbs down into the room with beds below.
voidscSettlementsTurnAndClimbDownLadder (void)Felix walks south onto the ladder hole beside the palm on Hesperia Settlement's wall top (metatile (23, 12)), or onto the hole Cyclone uncovered in Gondowan Settlement (metatile (5, 16)), turns to face north and climbs down.
voidscSettlementsStopIceSlides (void)Nothing visible happens when Felix climbs the ladder up the low cliff on Kalt Island's frozen river's west bank onto metatile (5, 12), the ledge at its top; from then on the ice no longer slides him, until he comes back down past metatile (5, 13).
voidscSettlementsResumeIceSlides (void)Nothing visible happens when Felix climbs down onto metatile (5, 13) on Kalt Island's frozen river's west bank; the ice slides him again.
voidscSettlementsStepOnIceSlide (void)Felix steps onto Kalt Island's frozen river and slides along the ice in the way he was walking until he stops against a bank.
voidscSettlementsLashRope (void)Felix casts Lash on the post at the west end of Kalt Island's rope, and the rope is tied across the frozen river to the post on its east bank.
voidscSettlementsUnblockFallsObjects (void)Nothing visible happens as Felix casts Move on SW Atteka Islet's pillar or crate; the game frees the metatile it stands on so it can move.
voidscSettlementsStartPushingFallsObject (void)Nothing visible happens as Felix starts to push SW Atteka Islet's pillar or crate; the game frees the metatile it stands on and keeps Felix drawn in front of it.
voidscSettlementsMoveCrate (void)Felix moves SW Atteka Islet's crate with Move; moved into the river above the falls, it goes down them.
voidscSettlementsStepOffWall (void)Nothing visible happens when Felix steps on metatile (10, 9), at the other end of the stairs west of Hesperia Settlement's wall; the wall's own metatiles come back.
voidscSettlementsUnblockCrate (void)Nothing visible happens as Felix starts to move or push the crate on Hesperia Settlement's wall; the game frees the metatiles where it may go, by where it stands.
voidscSettlementsBlockCrate (void)Felix has moved or pushed the crate on Hesperia Settlement's wall; pushed over the edge, it drops.
voidscSettlementsLiftBoulder (void)Felix casts Lift on the round boulder on SW Atteka Islet's grass above the river, and the hands raise it up out of the way, opening the way to the posts in the river and the Jupiter Djinni.
voidscSettlementsSpawnDustRing (Sint32 actorId)Puffs a ring of dust out from the crate as it lands.
voidscSettlementsMovePillar (void)Felix moves SW Atteka Islet's pillar with Move; moved into the river, it sinks.
voidscSettlementsMeetGel (void)Felix talks to Gel, the Mercury Djinni in the snow east of Kalt Island's house, and Gel joins the party: "Felix found the Mercury Djinni Gel!"
voidscSettlementsMeetLostJupiterDjinni (void)Felix talks to the Jupiter Djinni among the posts in SW Atteka Islet's river, west of the boulder Lift moves, and it joins the party.
Sint32scSettlementsHidePostShadow (ACTOR *actor)A script call for SW Atteka Islet's river posts, which stand sunk 16 pixels in the water: their shadow, drawn at the water's surface, would show as a black blot on each post's top, so it is taken away with the rest of the sprite's flags.
const SCENE_ENTRANCE *scGetEntrances (void)Where the party can enter: the cave under the spring has its own entrances.
const SCENE_REGION *scGetExitRegions (void)The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room.
const Uint32 *scGetExits (void)The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN.
const ACTOR_PLACE *scGetActorPlacements (void)The scene's actor placements: a room of names for its entrance, else the debug room's.
voidscSettlementsWarnOfRiddleOfRock (Sint32 actor)Talking to the man wandering in front of the houses of Gondowan Settlement: "Don't tell me, you're here to solve the riddle of the rock!" Yes, and he warns that even the warriors who make it back barely survive; no, and he says to steer clear of the mountain.
voidscSettlementsStepOntoLadderFromWest (void)Felix walks east onto the ladder hole on Hesperia Settlement's wall top, beside the palm (metatile (22, 13)), or onto the hole Cyclone uncovered in Gondowan Settlement (metatile (4, 17)), and climbs down: in Hesperia into a room with beds below, in Gondowan into the cave with the Star Dust.
voidscSettlementsGrowVine (void)Felix casts Growth on the sprout below Hesperia Settlement's west cliff, and it grows into a vine he can climb (its metatile, (3, 15), becomes climbable).
const CUE *scGetCues (void)The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's.
voidscSettlementsPuffChimneySmoke (void)An event on Kalt Island: a puff from the house's chimney every 64 ticks.
Sint32scSettlementsFloatApple (ACTOR *apple)The apple each tick: it sways up to two pixels either side of its spot and dips up to two pixels below it, at a random pace, as The Broken Seal's Nut floats.
voidscSettlementsSetUpKaltIsland (void)Sets up Kalt Island: the see-through sprites, the chimney smoke, the rope if it is tied, and, until it is taken, the apple floating in the trees.
voidscSettlementsStartWaterfall (void)Starts SW Atteka Islet's falls: the running colours of the water, the sound of water, and the split of the screen that scScrollHBlank draws.
Sint32scInit (void)Opens the room through the window transition, and in the debug room draws the cat 1.7 times its size.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.
voidscSettlementsEnterHouse (void)Felix walks north into a house's door: the door in the cliff east of Tinder's ledge in Hesperia Settlement (metatile (23, 16)), or the door of Kalt Island's house (metatile (14, 18)).
voidscSettlementsSplashIntoRiver (Sint32 id)Water splashes up where the pillar or crate goes into the river.
voidscSettlementsPushIntoFalls (void)Felix pushes SW Atteka Islet's pillar or crate one metatile: the pillar pushed into the river sinks, and the crate pushed into the river above the falls goes down them.
voidscSettlementsSaveWallMetatiles (void)Keeps the metatiles of Hesperia Settlement's wall before its crate moves.
voidfdActorSteerByPad (ACTOR *actor)While the leader slides on ice, turns him toward the held direction, at most a sixteenth of a turn a tick; with none held, or a menu open, he looks around.
Sint32fdMapGetTerrainHeight (Sint32 layer, Sint32 x, Sint32 z)The ground height of a layer at (x, z), 16.16 pixels (fdMapGridGetTerrainHeight, through the overlay's own import row).
voidscLeaderSetSlideStopped (Sint32 value)Stops or restarts Felix's slide on the ice (fdLeaderSlideOnIce).

Variables

NameDescription
extern Uint8MsgSettlementsDontTellMeYoureHere []
extern Sint16SettlementsFallsObjects []The blocks Move pushes, ended by ACTOR_LIST_END: by the falls, a pillar and a crate; by the wall, a crate.
extern SCENE_REGIONSettlementsHesperiaSettlementHousesRegions []
extern SCENE_REGIONSettlementsGondowanSettlementCaveRegions []
extern Sint16SlideOnIceAnglesByKey []The heading a slide sets off in: a diagonal goes the way of its left or right key.
extern Uint32FieldEffectShortScript []
extern Uint32FieldEffectMediumScript []The flash about the Tomegathericon: held 45 ticks, then put away and freed.
extern Sint32SettlementsRiverPostScript []
extern Sint32SettlementsWallCrateScript []The crate on Hesperia Settlement's wall stands still until it is pushed.
Uint16SettlementsLoadedWaterColors [16]The falls' palette as the map loads it, and as it is shown with its water colours turned.
Uint16SettlementsShownWaterColors [16]
Uint8SettlementsUnusedAfterShownWaterColors [64]
Sint32SettlementsWaterfallLine
Uint16SettlementsWaterfallScrollAbove
Uint16SettlementsWaterfallScrollBelow
extern ACTOR_PLACESettlementsPlacements []The two caves' actors, scGetActorPlacements' last resort: Kraden alone, standing in the black by entrance 99, where the party never comes.
extern ACTOR_PLACESettlementsGondowanSettlementPlacements []
extern ACTOR_PLACESettlementsGondowanSettlementHousesPlacements []
extern ACTOR_PLACESettlementsHesperiaSettlementPlacements []
extern ACTOR_PLACESettlementsHesperiaSettlementHousesPlacements []
extern ACTOR_PLACESettlementsAttekaIsletPlacements []
extern ACTOR_PLACESettlementsAttekaIsletHousesPlacements []
extern ACTOR_PLACESettlementsKaltIslandPlacements []
extern ACTOR_PLACESettlementsKaltIslandHousesPlacements []
extern CUESettlementsCues []The two caves' cues: their exits 1 and 2, and an exit 9 by metatiles 11 to 14, which neither cave's exit table holds.
extern CUESettlementsGondowanSettlementCues []
extern CUESettlementsGondowanSettlementHousesCues []
extern CUESettlementsHesperiaSettlementCues []
extern CUESettlementsHesperiaSettlementHousesCues []
extern CUESettlementsKaltIslandCues []
extern CUESettlementsKaltIslandHousesCues []
extern CUESettlementsAttekaIsletCues []
extern CUESettlementsAttekaIsletHousesCues []
extern Sint16SettlementsWallCrate []
extern Sint32SettlementsWaterColorTickThe ticks the falls' water colours have run; -1 before they start.
extern Sint32SettlementsCrateOnTinderScript []The crate dropped onto Tinder's ledge before he is met: it hops and rocks where he stood.
extern Sint32SettlementsSmokeScript []
extern Sint16SlideOnIceSteerAngles []The heading fdActorSteerByPad turns toward, diagonals included; a second row of sixteen keeps only the four straight headings.
volatile Sint16SlideOnIceStopped
extern Uint32FieldEffectLongScript []
const Sint32 *FieldEffectDurationScripts []The field effects' three scripts by how long an effect lasts: short, medium and long.
SCENE_ENTRANCESceneEntrances []The overlay's own entrances.
Uint32SceneExits []The room has no exits of its own.

Description

Four small places the ship can put in at, sharing one overlay, each with its houses. In Gondowan Settlement, below Magma Rock, Cyclone blows away the leftmost bush to uncover a ladder down to a cave with Star Dust. Hesperia Settlement is built into a cliff: Growth turns its sprout into a vine, the crate on top of the wall is pushed down to make a step up to Tinder, and a hole beside a palm on the wall top leads down into a room below. On Kalt Island Catch takes the apple out of the snowy trees, the frozen river slides Felix along, Lash ties a rope across it, and Gel waits by the house. On SW Atteka Islet, by the falls at the edge of the world, the pillar pushed into the river stops the crate sent down the falls, and once the boulder is lifted a Jupiter Djinni the party lacks from The Broken Seal waits among the posts in the river.

Macros in detail

OWN_fdRopeLash

#define OWN_fdRopeLash

This unit declares its own form of fdRopeLash, below.

Definition at line 15 of file settlements.c.

EFFECT_SET_MODE

#define EFFECT_SET_MODE fdActorSelectAnimation

Referenced by EFFECT_SPAWN.

Definition at line 35 of file settlements.c.

EFFECT_SET_SCRIPT

#define EFFECT_SET_SCRIPT fdActorStartScript

Referenced by EFFECT_SPAWN.

Definition at line 36 of file settlements.c.

FALLS_PALETTE

#define FALLS_PALETTE 3

SW Atteka Islet's background palette whose water colours run down the falls.

Referenced by scApojiiIslandsCycleFallsColors() and scSettlementsCycleWaterColors().

Definition at line 40 of file settlements.c.

FLAG_KALT_ROPE_TIED

#define FLAG_KALT_ROPE_TIED FLAG_SCENE_TEMP(0x03)

Kalt Island's rope across the frozen river, tied by Lash, for this visit.

Referenced by scSettlementsLashRope(), scSettlementsSetUpKaltIsland() and SettlementsKaltIslandCues.

Definition at line 43 of file settlements.c.

FLAG_ICE_SLIDES_STOPPED

#define FLAG_ICE_SLIDES_STOPPED FLAG_SCENE_TEMP(0x01)

Kalt Island: set by a step onto metatile (5, 12), the top of the climb on the frozen river's west bank, and cleared by one onto metatile (5, 13) below it; while it is set the river's ice slides no one (fdLeaderSlideOnIce).

Referenced by scSettlementsResumeIceSlides(), scSettlementsStopIceSlides() and SettlementsKaltIslandCues.

Definition at line 47 of file settlements.c.

FLAG_PILLAR_SUNK

#define FLAG_PILLAR_SUNK FLAG_SCENE_TEMP(0x04)

SW Atteka Islet: the pillar has been pushed into the river at metatile (11, 12), and its top stands in the water like the river's other posts.

Referenced by scInit(), scSettlementsSinkPillar(), scSettlementsSlideCrateDownFalls() and SettlementsAttekaIsletCues.

Definition at line 50 of file settlements.c.

FLAG_FALLS_CRATE_AT_REST

#define FLAG_FALLS_CRATE_AT_REST FLAG_SCENE_TEMP(0x05)

SW Atteka Islet: the crate has gone down the falls and stuck against the sunk pillar, making the path to the Dragon Skin's chest.

Referenced by scInit(), scPrepareMap(), scSettlementsSlideCrateDownFalls() and SettlementsAttekaIsletCues.

Definition at line 53 of file settlements.c.

FLAG_FALLS_CRATE_LOST

#define FLAG_FALLS_CRATE_LOST FLAG_SCENE_TEMP(0x06)

SW Atteka Islet: the crate has gone down the falls with no pillar to stop it, and is lost.

Referenced by scInit() and scSettlementsSlideCrateDownFalls().

Definition at line 56 of file settlements.c.

FLAG_FALLS_CRATE_DROPPED

#define FLAG_FALLS_CRATE_DROPPED FLAG_SCENE_TEMP(0x07)

SW Atteka Islet: the crate, moved onto metatile (16, 12) at the grass's south edge, has dropped down the cliff there.

Referenced by scSettlementsSlideCrateDownFalls().

Definition at line 59 of file settlements.c.

FLAG_BOULDER_LIFTED

#define FLAG_BOULDER_LIFTED FLAG_SCENE_TEMP(0x08)

SW Atteka Islet: Lift has raised the boulder.

Referenced by scSettlementsLiftBoulder() and SettlementsAttekaIsletCues.

Definition at line 61 of file settlements.c.

FLAG_ON_WALL

#define FLAG_ON_WALL FLAG_SCENE_TEMP(0x20)

Hesperia Settlement: Felix has stepped on metatile (13, 11) and walks by the wall top's metatiles (scSettlementsStepOntoWall).

Referenced by scInit(), scSettlementsStepOffWall(), scSettlementsStepOntoWall() and SettlementsHesperiaSettlementCues.

Definition at line 64 of file settlements.c.

FLAG_WALL_CRATE_DROPPED

#define FLAG_WALL_CRATE_DROPPED FLAG_SCENE_TEMP(0x21)

Hesperia Settlement: the crate has been pushed down off the wall.

Referenced by scSettlementsDropCrate() and scSettlementsStepOntoWall().

Definition at line 66 of file settlements.c.

FLAG_WALL_CRATE_ON_GROUND

#define FLAG_WALL_CRATE_ON_GROUND FLAG_SCENE_TEMP(0x05)

Hesperia Settlement: the crate has been pushed off the wall at metatile (16, 15), the wall's whole height, to the ground below.

Referenced by scSettlementsDropCrate().

Definition at line 69 of file settlements.c.

FLAG_WALL_CRATE_OFF_STEP

#define FLAG_WALL_CRATE_OFF_STEP FLAG_SCENE_TEMP(0x04)

Hesperia Settlement: the crate, pushed down onto the step at metatile (12, 15), has been pushed east off it to the ground at metatile (13, 15).

Referenced by scSettlementsDropCrate().

Definition at line 72 of file settlements.c.

FLAG_VINE_GROWN

#define FLAG_VINE_GROWN FLAG_SCENE_TEMP(0x30)

Hesperia Settlement: Growth has made the sprout below the west cliff a vine.

Referenced by scInit(), scSettlementsGrowVine() and SettlementsHesperiaSettlementCues.

Definition at line 74 of file settlements.c.

FLAG_LADDER_BUSH_CUT

#define FLAG_LADDER_BUSH_CUT 0xa60

The bush over the ladder hole in the west of Gondowan Settlement is blown away.

Referenced by scPrepareMap() and scSettlementsCutLadderBush().

Definition at line 78 of file settlements.c.

SINK

#define SINK(ticks)

Sinks actor 2 pixels a tick for the given ticks, counting in i.

Referenced by scSettlementsDropCrate() and scSettlementsSlideCrateDownFalls().

Definition at line 955 of file settlements.c.

Enumerations in detail

GONDOWAN_SETTLEMENT_METATILE

enum GONDOWAN_SETTLEMENT_METATILE

Gondowan Settlement's metatiles that run a script. The two beside the ladder hole are the numbers of the exits they lead down by.

EnumeratorValueDescription
GONDOWAN_LADDER_HOLE_NORTH3Metatile (5, 16), north of the hole.
GONDOWAN_LADDER_HOLE_WEST4Metatile (4, 17), west of the hole.
GONDOWAN_BUSH10The leafy bushes west of the village, such as metatile (7, 15).
GONDOWAN_LADDER_BUSH11The leftmost bush, at metatile (5, 17), over the ladder hole.

Definition at line 82 of file settlements.c.

HESPERIA_SETTLEMENT_METATILE

enum HESPERIA_SETTLEMENT_METATILE

Hesperia Settlement's metatiles that run a script. The door and the three sides of the ladder hole are the numbers of the exits they lead by.

EnumeratorValueDescription
HESPERIA_HOUSE_DOOR2Metatile (23, 16), before the door in the cliff east of Tinder's ledge.
HESPERIA_LADDER_HOLE_NORTH3Metatile (23, 12), north of the hole beside the palm on the wall top.
HESPERIA_LADDER_HOLE_WEST4Metatile (22, 13), west of the hole.
HESPERIA_LADDER_HOLE_EAST5Metatile (24, 13), east of the hole.
HESPERIA_ONTO_WALL34Metatile (13, 11), on the stairs in the cliff west of the wall, where Felix comes onto the wall top's metatiles.
HESPERIA_OFF_WALL35Metatile (10, 9), further along the stairs, where he leaves them.

Definition at line 94 of file settlements.c.

anonymous enum

enum { HESPERIA_HOUSES_UP_TO_BED_ROOM, HESPERIA_HOUSES_DOWN_FROM_BED_ROOM, HESPERIA_HOUSES_NORTH_ROOM_FROM_STAIRS, HESPERIA_HOUSES_BED_ROOM_FROM_STAIRS }

The stairs inside Hesperia Settlement's house, between the room the north door opens into and the room with beds the south door opens into: up from the first, arriving by the second's entrance 13, and down from the second, arriving at the first's north wall by its entrance 12.

EnumeratorValueDescription
HESPERIA_HOUSES_UP_TO_BED_ROOM12
HESPERIA_HOUSES_DOWN_FROM_BED_ROOM13
HESPERIA_HOUSES_NORTH_ROOM_FROM_STAIRS12
HESPERIA_HOUSES_BED_ROOM_FROM_STAIRS13

Definition at line 113 of file settlements.c.

KALT_ISLAND_METATILE

enum KALT_ISLAND_METATILE

Kalt Island's metatiles that run a script.

EnumeratorValueDescription
KALT_HOUSE_DOOR2Metatile (14, 18), before the house's door (its exit's number).
KALT_ICE_SLIDES_OFF10Metatile (5, 12), the top of the climb on the frozen river's west bank.
KALT_ICE_SLIDES_ON11Metatile (5, 13), below it.
KALT_ICE20The frozen river's ice.

Definition at line 122 of file settlements.c.

KALT_ISLAND_HOUSES_METATILE

enum KALT_ISLAND_HOUSES_METATILE

Kalt Island's houses' metatiles that run a script.

EnumeratorValueDescription
KALT_HOUSES_OVEN200The oven with the Kaltic stew.

Definition at line 134 of file settlements.c.

GONDOWAN_SETTLEMENT_ACTOR_ID

enum GONDOWAN_SETTLEMENT_ACTOR_ID

The people of Gondowan Settlement, by the rows of SettlementsGondowanSettlementPlacements.

EnumeratorValueDescription
ACTOR_MAN_ON_THE_RIDDLE_OF_THE_ROCKACTOR_FIRST_PLACED
ACTOR_GONDOWAN_BOY

Definition at line 142 of file settlements.c.

GONDOWAN_SETTLEMENT_HOUSES_ACTOR_ID

enum GONDOWAN_SETTLEMENT_HOUSES_ACTOR_ID

The Gondowan Settlement's houses.

EnumeratorValueDescription
ACTOR_WOMAN_ON_THE_KIBOMBOACTOR_FIRST_PLACED"I hear the Kibombo has finally..."

Definition at line 149 of file settlements.c.

HESPERIA_SETTLEMENT_ACTOR_ID

enum HESPERIA_SETTLEMENT_ACTOR_ID

The Hesperia Settlement, by the rows of SettlementsHesperiaSettlementPlacements.

EnumeratorValueDescription
ACTOR_HESPERIA_MANACTOR_FIRST_PLACED
ACTOR_SPROUTbelow the west cliff, grown into a vine by Growth
ACTOR_WALL_CRATE
ACTOR_TINDER

Definition at line 157 of file settlements.c.

HESPERIA_SETTLEMENT_HOUSES_ACTOR_ID

enum HESPERIA_SETTLEMENT_HOUSES_ACTOR_ID

The Hesperia Settlement's houses.

EnumeratorValueDescription
ACTOR_WOMAN_ON_SHAMAN_VILLAGEACTOR_FIRST_PLACED"There's a place called Shaman Village..."
ACTOR_BOY_ON_THE_SHAMANS"The people of Shaman Village..."

Definition at line 166 of file settlements.c.

KALT_ISLAND_ACTOR_ID

enum KALT_ISLAND_ACTOR_ID

Kalt Island, by the rows of SettlementsKaltIslandPlacements.

EnumeratorValueDescription
ACTOR_ROPE_POST_AACTOR_FIRST_PLACEDThe two posts on either bank of the frozen river, tied by Lash.
ACTOR_ROPE_POST_B
ACTOR_GEL
ACTOR_APPLEin the snowy trees west of the river, taken by Catch

Definition at line 176 of file settlements.c.

KALT_ISLAND_HOUSES_ACTOR_ID

enum KALT_ISLAND_HOUSES_ACTOR_ID

Kalt Island's houses.

EnumeratorValueDescription
ACTOR_OLD_MAN_ON_THE_GLACIERSACTOR_FIRST_PLACED"If you want to cross the glaciers of the Northern Sea..."
ACTOR_OLD_WOMAN_ON_PROX_TRADE"A long time ago, we used to trade with a village named Prox..."

Definition at line 186 of file settlements.c.

ATTEKA_ISLET_ACTOR_ID

enum ATTEKA_ISLET_ACTOR_ID

SW Atteka Islet, by the rows of SettlementsAttekaIsletPlacements.

EnumeratorValueDescription
ACTOR_ISLANDERACTOR_FIRST_PLACED
ACTOR_PILLAROn the grass by the river, pushed into it.
ACTOR_FALLS_CRATEBy the tent, pushed down the falls.
ACTOR_RIVER_POST_AThe stone posts standing in the river, alike, bobbing in the current; the last is kept out of sight until the pillar sinks in its place.
ACTOR_RIVER_POST_B
ACTOR_RIVER_POST_C
ACTOR_RIVER_POST_D
ACTOR_RIVER_POST_E
ACTOR_RIVER_POST_F
ACTOR_RIVER_POST_G
ACTOR_RIVER_POST_H
ACTOR_RIVER_POST_I
ACTOR_RIVER_POST_J
ACTOR_RIVER_POST_K
ACTOR_BOULDEROn the grass above the river's posts, raised by Lift.
ACTOR_JUPITER_DJINNIThe Jupiter Djinni among the posts in the river, standing for whichever of The Broken Seal's Jupiter Djinn the party lacks.

Definition at line 198 of file settlements.c.

ATTEKA_ISLET_HOUSES_ACTOR_ID

enum ATTEKA_ISLET_HOUSES_ACTOR_ID

SW Atteka Islet's houses.

EnumeratorValueDescription
ACTOR_ISLANDER_ON_THE_WESTACTOR_FIRST_PLACED"There's nothing to the west..."

Definition at line 224 of file settlements.c.

Functions in detail

scSettlementsCycleWaterColors

void scSettlementsCycleWaterColors(void)

An event on SW Atteka Islet: the falls' water runs, its four colours moving along by one every 8 ticks.

References IoWriteQueueWork, SettlementsLoadedWaterColors, SettlementsShownWaterColors, SettlementsWaterColorTick, Sint32 and syWordsCopy().

Referenced by scSettlementsStartWaterfall().

Definition at lines 235 and 813 of file settlements.c.

scSettlementsSinkPillar

void scSettlementsSinkPillar(void)

The pillar pushed off the grass into SW Atteka Islet's river (metatile (11, 12)) sinks with a splash until only its top shows, a post like the others in the water, which the crate can later stop against.

References fdActorGetById(), fdMapGridCopyMetatileAttributes(), fdScriptGetFlag(), fdScriptSetFlag(), fdScriptWait(), scSettlementsSplashIntoRiver() and Sint32.

Referenced by scSettlementsMovePillar() and scSettlementsPushIntoFalls().

Definition at lines 237 and 929 of file settlements.c.

scSettlementsSlideCrateDownFalls

void scSettlementsSlideCrateDownFalls(void)

The crate pushed into the river above SW Atteka Islet's falls (metatile (11, 9)) sinks in with a splash, drifts to the edge and goes down the falls with the camera watching. With the pillar sunk below, it sticks against it and makes the path to the Dragon Skin's chest; without, it is swept away and lost for this visit. Pushed off the grass's south edge at metatile (16, 12) instead, it drops down the cliff.

References fdActorFaceDirection(), fdActorGetById(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetFlag(), MainRoutineStateWork, scFieldActorWaitForMoveById(), scFieldScriptWait(), scSettlementsSplashIntoRiver() and Sint32.

Referenced by scSettlementsMoveCrate() and scSettlementsPushIntoFalls().

Definition at lines 238 and 970 of file settlements.c.

scSettlementsRestoreWallMetatiles

void scSettlementsRestoreWallMetatiles(void)

Gives Hesperia Settlement's wall its kept metatiles back.

References fdMapGridCopyMetatileAttributes().

Referenced by scSettlementsBlockCrate().

Definition at lines 239 and 1070 of file settlements.c.

scSettlementsDropCrate

void scSettlementsDropCrate(void)

Hesperia Settlement's crate pushed off the south edge of the wall drops with the camera following it and lands in a ring of dust: through the leftmost gap onto the step at metatile (12, 15), from there east to the ground at metatile (13, 15) (the way to Tinder, leaving a step up the wall), at metatile (16, 15) the wall's whole height to the ground, or onto Tinder's ledge at metatile (19, 15). Tinder, if not yet met, is gone from the ledge for this visit, and the crate where he stood hops and rocks from then on (scActorBob).

References fdActorGet(), fdActorSetScript(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetFlag(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scScriptCameraFollowActor(), scSettlementsSpawnDustRing(), SettlementsCrateOnTinderScript and Sint32.

Referenced by scSettlementsBlockCrate().

Definition at lines 240 and 1151 of file settlements.c.

scSettlementsClimbDownLadder

void scSettlementsClimbDownLadder(void)

Felix steps onto the ladder's top, faces north and climbs down it, and the scene changes to the place below.

References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdActorSetSpriteFlags(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptPlaySound(), scFieldActorWaitForMoveById(), scFieldScriptSetExitRequest(), scFieldScriptWait() and Sint32.

Referenced by scSettlementsStepOntoLadderFromEast(), scSettlementsStepOntoLadderFromWest() and scSettlementsTurnAndClimbDownLadder().

Definition at lines 242 and 469 of file settlements.c.

scScrollHBlank

void scScrollHBlank(void)

Each line of the screen as it is drawn: above the line scLayerTrackScroll sets, background layer BG1 keeps to the map and is drawn solid; below it, the layer drifts sideways with time and is drawn see-through.

References SettlementsWaterfallLine, SettlementsWaterfallScrollAbove and SettlementsWaterfallScrollBelow.

Referenced by scScrollStartHBlank().

Definition at lines 244 and 874 of file settlements.c.

scLayerTrackScroll

void scLayerTrackScroll(void)

The falls' tick event: where scScrollHBlank's line falls on screen, from the third map layer's scroll, and how far BG1 is scrolled above and below it.

References fdMapGridGetLayer(), SettlementsWaterfallLine, SettlementsWaterfallScrollAbove, SettlementsWaterfallScrollBelow and TickCount.

Referenced by scScrollStartHBlank().

Definition at lines 245 and 891 of file settlements.c.

scSettlementsStepOntoWall

void scSettlementsStepOntoWall(void)

Nothing visible happens when Felix steps on metatile (13, 11), on the stairs in the cliff west of Hesperia Settlement's wall: until the crate is pushed off the wall, the wall's metatiles are kept and the overhead layer's are swapped in, so that its closed block over the wall, metatiles (11, 11) to (20, 14), becomes open ground 96 pixels up, ringed by closed metatiles. Coming back after a battle there does it again; stepping on metatile (10, 9) undoes it. Nothing the player does on the wall top shows the swap: walks along its north and south edges, and moving the crate from (17, 13), go alike with it and without.

References fdMapGridCopyMetatileAttributes(), fdScriptGetFlag() and fdScriptSetFlag().

Referenced by scInit() and SettlementsHesperiaSettlementCues.

Definition at lines 254 and 1085 of file settlements.c.

scSettlementsMeetTinder

void scSettlementsMeetTinder(void)

Felix talks to Tinder, the Mars Djinni on the ledge below Hesperia Settlement's wall, and Tinder joins the party: "Felix found the Mars Djinni Tinder!"

References fdDjinnJoinParty().

Referenced by SettlementsHesperiaSettlementCues.

Definition at lines 256 and 311 of file settlements.c.

scSettlementsCatchApple

void scSettlementsCatchApple(void)

Felix casts Catch on the apple floating in the snowy trees west of Kalt Island's frozen river; the hand brings it to him, he holds it up, and "Felix got an Apple."

References fdItemDisplayShowItem(), fdScriptEnd(), fdScriptSetFlag(), fdScriptStart(), gmPartyGiveItem(), scFieldScriptEndLastingPsynergy() and Sint32.

Referenced by SettlementsKaltIslandCues.

Definition at lines 257 and 400 of file settlements.c.

scSettlementsCutBushes

void scSettlementsCutBushes(void)

Felix casts Cyclone on the leafy bushes west of Gondowan Settlement's houses (metatile (7, 15) and the rest), and the ones the whirlwind reaches are blown away and stay gone.

References scFieldTileCopiesCopyTouchedMetatiles().

Referenced by SettlementsGondowanSettlementCues.

Definition at lines 258 and 442 of file settlements.c.

scSettlementsCutLadderBush

void scSettlementsCutLadderBush(void)

Felix casts Cyclone on the leftmost bush west of Gondowan Settlement (metatile (5, 17)), and blowing it away uncovers a hole with a ladder down to a cave. Had he been standing on the bush, he hops off it to the south first.

References fdActorGet(), fdActorMoveToAndWait(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdScriptSetFlag(), fdTileCopiesCopyTouchedMetatiles(), MainRoutineStateWork, scFieldActorJump() and Sint32.

Referenced by SettlementsGondowanSettlementCues.

Definition at lines 259 and 450 of file settlements.c.

scSettlementsStepOntoLadderFromEast

void scSettlementsStepOntoLadderFromEast(void)

Felix walks west onto the ladder hole beside the palm on Hesperia Settlement's wall top (metatile (24, 13)) and climbs down into the room with beds below.

References fdActorWalkByAndWait(), fdScriptStart(), scFieldScriptEndLastingPsynergy() and scSettlementsClimbDownLadder().

Referenced by SettlementsHesperiaSettlementCues.

Definition at lines 260 and 506 of file settlements.c.

scSettlementsTurnAndClimbDownLadder

void scSettlementsTurnAndClimbDownLadder(void)

Felix walks south onto the ladder hole beside the palm on Hesperia Settlement's wall top (metatile (23, 12)), or onto the hole Cyclone uncovered in Gondowan Settlement (metatile (5, 16)), turns to face north and climbs down.

References fdActorFaceDirection(), fdScriptStart(), scFieldScriptEndLastingPsynergy() and scSettlementsClimbDownLadder().

Referenced by SettlementsGondowanSettlementCues and SettlementsHesperiaSettlementCues.

Definition at lines 261 and 519 of file settlements.c.

scSettlementsStopIceSlides

void scSettlementsStopIceSlides(void)

Nothing visible happens when Felix climbs the ladder up the low cliff on Kalt Island's frozen river's west bank onto metatile (5, 12), the ledge at its top; from then on the ice no longer slides him, until he comes back down past metatile (5, 13). The ledge is the one the rope's west post stands on, at the river's edge: walking east from the ladder's top Felix stops beside the rope lying coiled on its post.

References syGameFlagSet().

Referenced by SettlementsKaltIslandCues.

Definition at lines 262 and 749 of file settlements.c.

scSettlementsResumeIceSlides

void scSettlementsResumeIceSlides(void)

Nothing visible happens when Felix climbs down onto metatile (5, 13) on Kalt Island's frozen river's west bank; the ice slides him again.

References syGameFlagClear().

Referenced by SettlementsKaltIslandCues.

Definition at lines 263 and 756 of file settlements.c.

scSettlementsStepOnIceSlide

void scSettlementsStepOnIceSlide(void)

Felix steps onto Kalt Island's frozen river and slides along the ice in the way he was walking until he stops against a bank.

References fdLeaderSlideOnIce().

Referenced by SettlementsKaltIslandCues.

Definition at lines 264 and 763 of file settlements.c.

scSettlementsLashRope

void scSettlementsLashRope(void)

Felix casts Lash on the post at the west end of Kalt Island's rope, and the rope is tied across the frozen river to the post on its east bank.

References fdRopeLash() and fdScriptSetFlag().

Referenced by SettlementsKaltIslandCues.

Definition at lines 265 and 803 of file settlements.c.

scSettlementsUnblockFallsObjects

void scSettlementsUnblockFallsObjects(void)

Nothing visible happens as Felix casts Move on SW Atteka Islet's pillar or crate; the game frees the metatile it stands on so it can move.

References fdActorLiftTargetBlock() and SettlementsFallsObjects.

Referenced by SettlementsAttekaIsletCues.

Definition at lines 266 and 909 of file settlements.c.

scSettlementsStartPushingFallsObject

void scSettlementsStartPushingFallsObject(void)

Nothing visible happens as Felix starts to push SW Atteka Islet's pillar or crate; the game frees the metatile it stands on and keeps Felix drawn in front of it.

References fdActorGet(), fdActorLiftTargetBlock(), MainRoutineStateWork and SettlementsFallsObjects.

Referenced by SettlementsAttekaIsletCues.

Definition at lines 267 and 917 of file settlements.c.

scSettlementsMoveCrate

void scSettlementsMoveCrate(void)

Felix moves SW Atteka Islet's crate with Move; moved into the river above the falls, it goes down them.

References fdActorPlaceMovedBlock() and scSettlementsSlideCrateDownFalls().

Referenced by SettlementsAttekaIsletCues.

Definition at lines 268 and 1044 of file settlements.c.

scSettlementsStepOffWall

void scSettlementsStepOffWall(void)

Nothing visible happens when Felix steps on metatile (10, 9), at the other end of the stairs west of Hesperia Settlement's wall; the wall's own metatiles come back.

References fdMapGridCopyMetatileAttributes(), fdScriptClearFlag() and fdScriptGetFlag().

Referenced by SettlementsHesperiaSettlementCues.

Definition at lines 269 and 1100 of file settlements.c.

scSettlementsUnblockCrate

void scSettlementsUnblockCrate(void)

Nothing visible happens as Felix starts to move or push the crate on Hesperia Settlement's wall; the game frees the metatiles where it may go, by where it stands.

References fdActorGet(), fdActorLiftTargetBlock(), fdMapGridCopyMetatileAttributes(), scSettlementsSaveWallMetatiles(), SettlementsWallCrate and Sint32.

Referenced by SettlementsHesperiaSettlementCues.

Definition at lines 270 and 1113 of file settlements.c.

scSettlementsBlockCrate

void scSettlementsBlockCrate(void)

Felix has moved or pushed the crate on Hesperia Settlement's wall; pushed over the edge, it drops.

References fdActorPlaceMovedBlock(), scSettlementsDropCrate() and scSettlementsRestoreWallMetatiles().

Referenced by SettlementsHesperiaSettlementCues.

Definition at lines 271 and 1218 of file settlements.c.

scSettlementsLiftBoulder

void scSettlementsLiftBoulder(void)

Felix casts Lift on the round boulder on SW Atteka Islet's grass above the river, and the hands raise it up out of the way, opening the way to the posts in the river and the Jupiter Djinni.

References syGameFlagSet().

Referenced by SettlementsAttekaIsletCues.

Definition at lines 272 and 1297 of file settlements.c.

scSettlementsSpawnDustRing

void scSettlementsSpawnDustRing(Sint32 actorId)

Puffs a ring of dust out from the crate as it lands.

References fdActorGet(), fdEffectAdvanceMotion(), scFieldEffectSpawn(), Sint32, syCos() and sySin().

Referenced by scSettlementsDropCrate().

Definition at lines 296 and 1261 of file settlements.c.

scSettlementsMovePillar

void scSettlementsMovePillar(void)

Felix moves SW Atteka Islet's pillar with Move; moved into the river, it sinks.

References fdActorPlaceMovedBlock() and scSettlementsSinkPillar().

Referenced by SettlementsAttekaIsletCues.

Definition at lines 298 and 1036 of file settlements.c.

scSettlementsMeetGel

void scSettlementsMeetGel(void)

Felix talks to Gel, the Mercury Djinni in the snow east of Kalt Island's house, and Gel joins the party: "Felix found the Mercury Djinni Gel!"

References fdDjinnJoinParty().

Referenced by SettlementsKaltIslandCues.

Definition at lines 302 and 1324 of file settlements.c.

scSettlementsMeetLostJupiterDjinni

void scSettlementsMeetLostJupiterDjinni(void)

Felix talks to the Jupiter Djinni among the posts in SW Atteka Islet's river, west of the boulder Lift moves, and it joins the party. It is whichever of The Broken Seal's seven Jupiter Djinn the party did not bring; with none missing, it is not there at all.

References fdDjinnJoinParty().

Referenced by SettlementsAttekaIsletCues.

Definition at lines 322 and 1325 of file settlements.c.

scSettlementsHidePostShadow

Sint32 scSettlementsHidePostShadow(ACTOR *actor)

A script call for SW Atteka Islet's river posts, which stand sunk 16 pixels in the water: their shadow, drawn at the water's surface, would show as a black blot on each post's top, so it is taken away with the rest of the sprite's flags.

References fdActorSetSpriteFlags() and Sint32.

Referenced by SettlementsRiverPostScript.

Definition at line 333 of file settlements.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 341 of file settlements.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

References MainRoutineStateWork, SettlementsGondowanSettlementCaveRegions, SettlementsHesperiaSettlementHousesRegions and Sint32.

Definition at line 346 of file settlements.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 359 of file settlements.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References MainRoutineStateWork, SettlementsAttekaIsletHousesPlacements, SettlementsAttekaIsletPlacements, SettlementsGondowanSettlementHousesPlacements, SettlementsGondowanSettlementPlacements, SettlementsHesperiaSettlementHousesPlacements, SettlementsHesperiaSettlementPlacements, SettlementsKaltIslandHousesPlacements, SettlementsKaltIslandPlacements and SettlementsPlacements.

Definition at line 374 of file settlements.c.

scSettlementsWarnOfRiddleOfRock

void scSettlementsWarnOfRiddleOfRock(Sint32 actor)

Talking to the man wandering in front of the houses of Gondowan Settlement: "Don't tell me, you're here to solve the riddle of the rock!" Yes, and he warns that even the warriors who make it back barely survive; no, and he says to steer clear of the mountain.

References fdScriptOpenMessage(), fdScriptShowMessage(), MsgSettlementsDontTellMeYoureHere, scFieldPartyGetLeaderActor(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptSetMessageId(), scFieldScriptWait() and Sint32.

Referenced by SettlementsGondowanSettlementCues.

Definition at line 419 of file settlements.c.

scSettlementsStepOntoLadderFromWest

void scSettlementsStepOntoLadderFromWest(void)

Felix walks east onto the ladder hole on Hesperia Settlement's wall top, beside the palm (metatile (22, 13)), or onto the hole Cyclone uncovered in Gondowan Settlement (metatile (4, 17)), and climbs down: in Hesperia into a room with beds below, in Gondowan into the cave with the Star Dust.

References fdActorWalkByAndWait(), fdScriptStart(), scFieldScriptEndLastingPsynergy() and scSettlementsClimbDownLadder().

Referenced by SettlementsGondowanSettlementCues and SettlementsHesperiaSettlementCues.

Definition at lines 494 and 1326 of file settlements.c.

scSettlementsGrowVine

void scSettlementsGrowVine(void)

Felix casts Growth on the sprout below Hesperia Settlement's west cliff, and it grows into a vine he can climb (its metatile, (3, 15), becomes climbable).

References fdMapGridCopyMetatileAttributes() and fdScriptSetFlag().

Referenced by SettlementsHesperiaSettlementCues.

Definition at lines 529 and 1327 of file settlements.c.

scGetCues

const CUE *scGetCues(void)

References MainRoutineStateWork, SettlementsAttekaIsletCues, SettlementsAttekaIsletHousesCues, SettlementsCues, SettlementsGondowanSettlementCues, SettlementsGondowanSettlementHousesCues, SettlementsHesperiaSettlementCues, SettlementsHesperiaSettlementHousesCues, SettlementsKaltIslandCues and SettlementsKaltIslandHousesCues.

Definition at line 545 of file settlements.c.

scSettlementsPuffChimneySmoke

void scSettlementsPuffChimneySmoke(void)

An event on Kalt Island: a puff from the house's chimney every 64 ticks.

References scSmokeSpawn() and TickCount.

Referenced by scSettlementsSetUpKaltIsland().

Definition at line 572 of file settlements.c.

scSettlementsFloatApple

Sint32 scSettlementsFloatApple(ACTOR *apple)

The apple each tick: it sways up to two pixels either side of its spot and dips up to two pixels below it, at a random pace, as The Broken Seal's Nut floats. A frozen actor is never steered, so the apple keeps the sway's angle in its speedLimit and its spot in targetX and targetY.

References Sint32, syCos() and sySin().

Referenced by scSettlementsSetUpKaltIsland().

Definition at line 582 of file settlements.c.

scSettlementsSetUpKaltIsland

void scSettlementsSetUpKaltIsland(void)

Sets up Kalt Island: the see-through sprites, the chimney smoke, the rope if it is tied, and, until it is taken, the apple floating in the trees.

References fdActorGet(), fdActorSetSpriteFlags(), fdRopeInit(), fdScriptGetFlag(), gmItemLoadIcon(), mnVRAMLoad(), scFieldRopePlace(), scFieldSetTickEvent(), scSettlementsFloatApple(), scSettlementsPuffChimneySmoke(), Sint32, syHeapSlotAllocate() and syHeapSlotRelease().

Referenced by scInit().

Definition at line 602 of file settlements.c.

scSettlementsStartWaterfall

void scSettlementsStartWaterfall(void)

Starts SW Atteka Islet's falls: the running colours of the water, the sound of water, and the split of the screen that scScrollHBlank draws.

References fdQueueMusic(), scFieldSetTickEvent(), scScrollStartHBlank() and scSettlementsCycleWaterColors().

Referenced by scInit().

Definition at lines 651 and 862 of file settlements.c.

scInit

Sint32 scInit(void)

References fdActorGetById(), fdActorPlaceBlocks(), fdActorSetAnimation(), fdEffectStartBlankOverlay(), fdMapGridCopyMetatileAttributes(), fdScriptClearFlag(), fdScriptGetFlag(), MainRoutineStateWork, scSettlementsSetUpKaltIsland(), scSettlementsStartWaterfall(), scSettlementsStepOntoWall(), SettlementsFallsObjects, SettlementsWallCrate and Sint32.

Definition at line 653 of file settlements.c.

scPrepareMap

Sint32 scPrepareMap(void)

References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdScriptGetFlag(), MainRoutineStateWork and Sint32.

Definition at line 708 of file settlements.c.

scSettlementsEnterHouse

void scSettlementsEnterHouse(void)

Felix walks north into a house's door: the door in the cliff east of Tinder's ledge in Hesperia Settlement (metatile (23, 16)), or the door of Kalt Island's house (metatile (14, 18)). The people outside stop, the door opens, and he walks in as the screen fades.

References fdActorCenterAndWalk(), fdActorGet(), fdActorSetAnimation(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest() and scFieldScriptWait().

Referenced by SettlementsHesperiaSettlementCues and SettlementsKaltIslandCues.

Definition at lines 772 and 1328 of file settlements.c.

scSettlementsSplashIntoRiver

void scSettlementsSplashIntoRiver(Sint32 id)

Water splashes up where the pillar or crate goes into the river.

References fdActorGet(), fdScriptPlaySound(), scFieldEffectSpawn(), SettlementsSmokeScript and Sint32.

Referenced by scSettlementsSinkPillar() and scSettlementsSlideCrateDownFalls().

Definition at lines 924 and 1228 of file settlements.c.

scSettlementsPushIntoFalls

void scSettlementsPushIntoFalls(void)

Felix pushes SW Atteka Islet's pillar or crate one metatile: the pillar pushed into the river sinks, and the crate pushed into the river above the falls goes down them.

References fdActorGet(), fdActorPlaceMovedBlock(), MainRoutineStateWork, scSettlementsSinkPillar() and scSettlementsSlideCrateDownFalls().

Referenced by SettlementsAttekaIsletCues.

Definition at lines 1053 and 1329 of file settlements.c.

scSettlementsSaveWallMetatiles

void scSettlementsSaveWallMetatiles(void)

Keeps the metatiles of Hesperia Settlement's wall before its crate moves.

References fdMapGridCopyMetatileAttributes().

Referenced by scSettlementsUnblockCrate().

Definition at line 1063 of file settlements.c.

scLeaderSetSlideStopped

void scLeaderSetSlideStopped(Sint32 value)

Stops or restarts Felix's slide on the ice (fdLeaderSlideOnIce).

References Sint32 and SlideOnIceStopped.

Referenced by scMarsLighthouseEntranceStopSlideWhileRiding() and scMarsLighthouseTowersStopSlideWhileHit().

Definition at line 1317 of file settlements.c.

Variables in detail

MsgSettlementsDontTellMeYoureHere

extern Uint8 MsgSettlementsDontTellMeYoureHere[]

Referenced by scSettlementsWarnOfRiddleOfRock().

Definition at line 230 of file settlements.c.

SettlementsFallsObjects

extern Sint16 SettlementsFallsObjects[]

Sint16 SettlementsFallsObjects[]

The blocks Move pushes, ended by ACTOR_LIST_END: by the falls, a pillar and a crate; by the wall, a crate.

Referenced by scInit(), scSettlementsStartPushingFallsObject() and scSettlementsUnblockFallsObjects().

Definition at lines 232 and 1338 of file settlements.c.

SettlementsHesperiaSettlementHousesRegions

extern SCENE_REGION SettlementsHesperiaSettlementHousesRegions[]

SCENE_REGION SettlementsHesperiaSettlementHousesRegions[]

Referenced by scGetExitRegions().

Definition at lines 247 and 1386 of file settlements.c.

SettlementsGondowanSettlementCaveRegions

extern SCENE_REGION SettlementsGondowanSettlementCaveRegions[]

SCENE_REGION SettlementsGondowanSettlementCaveRegions[]

Referenced by scGetExitRegions().

Definition at lines 248 and 1391 of file settlements.c.

SettlementsRiverPostScript

extern Sint32 SettlementsRiverPostScript[]

Sint32 SettlementsRiverPostScript[]

References scSettlementsHidePostShadow() and Sint32.

Referenced by SettlementsAttekaIsletPlacements.

Definition at lines 276 and 1353 of file settlements.c.

SettlementsWallCrateScript

extern Sint32 SettlementsWallCrateScript[]

Sint32 SettlementsWallCrateScript[]

The crate on Hesperia Settlement's wall stands still until it is pushed.

References Sint32.

Referenced by SettlementsHesperiaSettlementPlacements.

Definition at lines 277 and 1367 of file settlements.c.

SettlementsLoadedWaterColors

Uint16 SettlementsLoadedWaterColors[16]

The falls' palette as the map loads it, and as it is shown with its water colours turned.

Referenced by scSettlementsCycleWaterColors().

Definition at line 289 of file settlements.c.

SettlementsShownWaterColors

Uint16 SettlementsShownWaterColors[16]

Referenced by scSettlementsCycleWaterColors().

Definition at line 290 of file settlements.c.

SettlementsUnusedAfterShownWaterColors

Uint8 SettlementsUnusedAfterShownWaterColors[64]

Definition at line 291 of file settlements.c.

SettlementsWaterfallLine

Sint32 SettlementsWaterfallLine

References Sint32.

Referenced by scLayerTrackScroll() and scScrollHBlank().

Definition at line 292 of file settlements.c.

SettlementsWaterfallScrollAbove

Uint16 SettlementsWaterfallScrollAbove

Referenced by scLayerTrackScroll() and scScrollHBlank().

Definition at line 293 of file settlements.c.

SettlementsWaterfallScrollBelow

Uint16 SettlementsWaterfallScrollBelow

Referenced by scLayerTrackScroll() and scScrollHBlank().

Definition at line 294 of file settlements.c.

SettlementsPlacements

extern ACTOR_PLACE SettlementsPlacements[]

ACTOR_PLACE SettlementsPlacements[]

The two caves' actors, scGetActorPlacements' last resort: Kraden alone, standing in the black by entrance 99, where the party never comes.

Referenced by scGetActorPlacements().

Definition at lines 364 and 1470 of file settlements.c.

SettlementsGondowanSettlementPlacements

extern ACTOR_PLACE SettlementsGondowanSettlementPlacements[]

ACTOR_PLACE SettlementsGondowanSettlementPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 365 and 1476 of file settlements.c.

SettlementsGondowanSettlementHousesPlacements

extern ACTOR_PLACE SettlementsGondowanSettlementHousesPlacements[]

ACTOR_PLACE SettlementsGondowanSettlementHousesPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 366 and 1484 of file settlements.c.

SettlementsHesperiaSettlementPlacements

extern ACTOR_PLACE SettlementsHesperiaSettlementPlacements[]

ACTOR_PLACE SettlementsHesperiaSettlementPlacements[]

References SettlementsWallCrateScript.

Referenced by scGetActorPlacements().

Definition at lines 367 and 1490 of file settlements.c.

SettlementsHesperiaSettlementHousesPlacements

extern ACTOR_PLACE SettlementsHesperiaSettlementHousesPlacements[]

ACTOR_PLACE SettlementsHesperiaSettlementHousesPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 368 and 1502 of file settlements.c.

SettlementsAttekaIsletPlacements

extern ACTOR_PLACE SettlementsAttekaIsletPlacements[]

ACTOR_PLACE SettlementsAttekaIsletPlacements[]

References SettlementsRiverPostScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 369 and 1510 of file settlements.c.

SettlementsAttekaIsletHousesPlacements

extern ACTOR_PLACE SettlementsAttekaIsletHousesPlacements[]

ACTOR_PLACE SettlementsAttekaIsletHousesPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 370 and 1553 of file settlements.c.

SettlementsKaltIslandPlacements

extern ACTOR_PLACE SettlementsKaltIslandPlacements[]

ACTOR_PLACE SettlementsKaltIslandPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 371 and 1559 of file settlements.c.

SettlementsKaltIslandHousesPlacements

extern ACTOR_PLACE SettlementsKaltIslandHousesPlacements[]

ACTOR_PLACE SettlementsKaltIslandHousesPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 372 and 1571 of file settlements.c.

SettlementsCues

extern CUE SettlementsCues[]

CUE SettlementsCues[]

The two caves' cues: their exits 1 and 2, and an exit 9 by metatiles 11 to 14, which neither cave's exit table holds.

Referenced by scGetCues().

Definition at lines 535 and 1581 of file settlements.c.

SettlementsGondowanSettlementCues

extern CUE SettlementsGondowanSettlementCues[]

CUE SettlementsGondowanSettlementCues[]

References scSettlementsCutBushes(), scSettlementsCutLadderBush(), scSettlementsStepOntoLadderFromWest(), scSettlementsTurnAndClimbDownLadder() and scSettlementsWarnOfRiddleOfRock().

Referenced by scGetCues().

Definition at lines 536 and 1592 of file settlements.c.

SettlementsGondowanSettlementHousesCues

extern CUE SettlementsGondowanSettlementHousesCues[]

CUE SettlementsGondowanSettlementHousesCues[]

Referenced by scGetCues().

Definition at lines 537 and 1622 of file settlements.c.

SettlementsHesperiaSettlementCues

extern CUE SettlementsHesperiaSettlementCues[]

CUE SettlementsHesperiaSettlementCues[]

References scSettlementsBlockCrate(), scSettlementsEnterHouse(), scSettlementsGrowVine(), scSettlementsMeetTinder(), scSettlementsStepOffWall(), scSettlementsStepOntoLadderFromEast(), scSettlementsStepOntoLadderFromWest(), scSettlementsStepOntoWall(), scSettlementsTurnAndClimbDownLadder() and scSettlementsUnblockCrate().

Referenced by scGetCues().

Definition at lines 538 and 1633 of file settlements.c.

SettlementsHesperiaSettlementHousesCues

extern CUE SettlementsHesperiaSettlementHousesCues[]

CUE SettlementsHesperiaSettlementHousesCues[]

Referenced by scGetCues().

Definition at lines 539 and 1677 of file settlements.c.

SettlementsKaltIslandCues

extern CUE SettlementsKaltIslandCues[]

CUE SettlementsKaltIslandCues[]

References scSettlementsCatchApple(), scSettlementsEnterHouse(), scSettlementsLashRope(), scSettlementsMeetGel(), scSettlementsResumeIceSlides(), scSettlementsStepOnIceSlide() and scSettlementsStopIceSlides().

Referenced by scGetCues().

Definition at lines 540 and 1702 of file settlements.c.

SettlementsKaltIslandHousesCues

extern CUE SettlementsKaltIslandHousesCues[]

CUE SettlementsKaltIslandHousesCues[]

Referenced by scGetCues().

Definition at lines 541 and 1726 of file settlements.c.

SettlementsAttekaIsletCues

extern CUE SettlementsAttekaIsletCues[]

CUE SettlementsAttekaIsletCues[]

References scSettlementsLiftBoulder(), scSettlementsMeetLostJupiterDjinni(), scSettlementsMoveCrate(), scSettlementsMovePillar(), scSettlementsPushIntoFalls(), scSettlementsStartPushingFallsObject() and scSettlementsUnblockFallsObjects().

Referenced by scGetCues().

Definition at lines 542 and 1746 of file settlements.c.

SettlementsAttekaIsletHousesCues

extern CUE SettlementsAttekaIsletHousesCues[]

CUE SettlementsAttekaIsletHousesCues[]

Referenced by scGetCues().

Definition at lines 543 and 1780 of file settlements.c.

SettlementsWallCrate

extern Sint16 SettlementsWallCrate[]

Sint16 SettlementsWallCrate[]

Referenced by scInit() and scSettlementsUnblockCrate().

Definition at lines 649 and 1341 of file settlements.c.

SettlementsWaterColorTick

extern Sint32 SettlementsWaterColorTick

Sint32 SettlementsWaterColorTick

The ticks the falls' water colours have run; -1 before they start.

References Sint32.

Referenced by scSettlementsCycleWaterColors().

Definition at lines 809 and 1792 of file settlements.c.

SettlementsCrateOnTinderScript

extern Sint32 SettlementsCrateOnTinderScript[]

Sint32 SettlementsCrateOnTinderScript[]

The crate dropped onto Tinder's ledge before he is met: it hops and rocks where he stood.

References scActorBob() and Sint32.

Referenced by scSettlementsDropCrate().

Definition at lines 1142 and 1373 of file settlements.c.

SettlementsSmokeScript

extern Sint32 SettlementsSmokeScript[]

Sint32 SettlementsSmokeScript[]

References Sint32.

Referenced by scSettlementsSplashIntoRiver().

Definition at lines 1225 and 1361 of file settlements.c.

SlideOnIceStopped

volatile Sint16 SlideOnIceStopped

Referenced by scLeaderSetSlideStopped() and scLeaderSlideOnIceFromEdge().

Definition at line 1308 of file settlements.c.

FieldEffectDurationScripts

const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().

Definition at line 1347 of file settlements.c.

SceneEntrances

SCENE_ENTRANCE SceneEntrances[]

The overlay's own entrances. The maps' entrances place the party; no exit leads to entrance 99, out in the black below the caves' rooms, by SettlementsPlacements' Kraden.

Referenced by scGetEntrances().

Definition at line 1380 of file settlements.c.

SceneExits

Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 1396 of file settlements.c.

On this page

StructuresMacrosEnumerationsFunctionsVariablesDescriptionMacros in detailOWN_fdRopeLashEFFECT_SET_MODEEFFECT_SET_SCRIPTFALLS_PALETTEFLAG_KALT_ROPE_TIEDFLAG_ICE_SLIDES_STOPPEDFLAG_PILLAR_SUNKFLAG_FALLS_CRATE_AT_RESTFLAG_FALLS_CRATE_LOSTFLAG_FALLS_CRATE_DROPPEDFLAG_BOULDER_LIFTEDFLAG_ON_WALLFLAG_WALL_CRATE_DROPPEDFLAG_WALL_CRATE_ON_GROUNDFLAG_WALL_CRATE_OFF_STEPFLAG_VINE_GROWNFLAG_LADDER_BUSH_CUTSINKEnumerations in detailGONDOWAN_SETTLEMENT_METATILEHESPERIA_SETTLEMENT_METATILEanonymous enumKALT_ISLAND_METATILEKALT_ISLAND_HOUSES_METATILEGONDOWAN_SETTLEMENT_ACTOR_IDGONDOWAN_SETTLEMENT_HOUSES_ACTOR_IDHESPERIA_SETTLEMENT_ACTOR_IDHESPERIA_SETTLEMENT_HOUSES_ACTOR_IDKALT_ISLAND_ACTOR_IDKALT_ISLAND_HOUSES_ACTOR_IDATTEKA_ISLET_ACTOR_IDATTEKA_ISLET_HOUSES_ACTOR_IDFunctions in detailscSettlementsCycleWaterColorsscSettlementsSinkPillarscSettlementsSlideCrateDownFallsscSettlementsRestoreWallMetatilesscSettlementsDropCratescSettlementsClimbDownLadderscScrollHBlankscLayerTrackScrollscSettlementsStepOntoWallscSettlementsMeetTinderscSettlementsCatchApplescSettlementsCutBushesscSettlementsCutLadderBushscSettlementsStepOntoLadderFromEastscSettlementsTurnAndClimbDownLadderscSettlementsStopIceSlidesscSettlementsResumeIceSlidesscSettlementsStepOnIceSlidescSettlementsLashRopescSettlementsUnblockFallsObjectsscSettlementsStartPushingFallsObjectscSettlementsMoveCratescSettlementsStepOffWallscSettlementsUnblockCratescSettlementsBlockCratescSettlementsLiftBoulderscSettlementsSpawnDustRingscSettlementsMovePillarscSettlementsMeetGelscSettlementsMeetLostJupiterDjinniscSettlementsHidePostShadowscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscSettlementsWarnOfRiddleOfRockscSettlementsStepOntoLadderFromWestscSettlementsGrowVinescGetCuesscSettlementsPuffChimneySmokescSettlementsFloatApplescSettlementsSetUpKaltIslandscSettlementsStartWaterfallscInitscPrepareMapscSettlementsEnterHousescSettlementsSplashIntoRiverscSettlementsPushIntoFallsscSettlementsSaveWallMetatilesscLeaderSetSlideStoppedVariables in detailMsgSettlementsDontTellMeYoureHereSettlementsFallsObjectsSettlementsHesperiaSettlementHousesRegionsSettlementsGondowanSettlementCaveRegionsSettlementsRiverPostScriptSettlementsWallCrateScriptSettlementsLoadedWaterColorsSettlementsShownWaterColorsSettlementsUnusedAfterShownWaterColorsSettlementsWaterfallLineSettlementsWaterfallScrollAboveSettlementsWaterfallScrollBelowSettlementsPlacementsSettlementsGondowanSettlementPlacementsSettlementsGondowanSettlementHousesPlacementsSettlementsHesperiaSettlementPlacementsSettlementsHesperiaSettlementHousesPlacementsSettlementsAttekaIsletPlacementsSettlementsAttekaIsletHousesPlacementsSettlementsKaltIslandPlacementsSettlementsKaltIslandHousesPlacementsSettlementsCuesSettlementsGondowanSettlementCuesSettlementsGondowanSettlementHousesCuesSettlementsHesperiaSettlementCuesSettlementsHesperiaSettlementHousesCuesSettlementsKaltIslandCuesSettlementsKaltIslandHousesCuesSettlementsAttekaIsletCuesSettlementsAttekaIsletHousesCuesSettlementsWallCrateSettlementsWaterColorTickSettlementsCrateOnTinderScriptSettlementsSmokeScriptSlideOnIceStoppedFieldEffectDurationScriptsSceneEntrancesSceneExits