Skip to Content
The Alchemy Project

src/scene/yampi_desert.c

The Yampi Desert, between southern Osenia and Alhafra: twelve rooms on one overlay (SceneIdYampiDesertEntrance to SceneIdYampiDesertCavern). More…

Structures

NameDescription
structGEYSERThe geyser Scoop opens in the scorpion pit: it rises and falls on its timer, carrying the platform at its top, as Gondowan Cliffs' geysers do.
structGEYSER_WORKThe geysers' state, kept in the inventory snapshot's spare room.

Macros

NameDescription
#defineEFFECT_SET_MODE fdActorSelectAnimation
#defineEFFECT_SET_SCRIPT fdActorStartScript
#defineFLAG_YAMPI_DESERT_SCORPION_STIRRED 0x889Set as Pound on a stake of the Psynergy Stone's room stirs the King Scorpion out of the sand, and it flees into the King Scorpion's room.
#defineFLAG_YAMPI_DESERT_SCORPION_STIRRED_AGAIN 0x88aAs FLAG_YAMPI_DESERT_SCORPION_STIRRED, in the King Scorpion's room, from whose south part it flees north.
#defineFLAG_YAMPI_DESERT_SCORPION_CORNERED 0x88bSet once the King Scorpion is cornered at the ring of rocks at the north end of its room.
#defineFLAG_KING_SCORPION_BEATEN 0x88cSet once the King Scorpion is beaten; it leaves the Scoop Gem.
#defineFLAG_YAMPI_DESERT_LADDER_DUG_UP 0x88dSet once Scoop has opened the sand pit that hides the ladder.
#defineFLAG_YAMPI_DESERT_ELDER_INSISTED 0x88fSet once the travelers' elder has said he will not turn back.
#defineFLAG_YAMPI_DESERT_ROCK_PIT_DUG_UP 0x8edSet once Scoop has opened the sand pit between the four rocks.
#defineFLAG_YAMPI_DESERT_TRAVELERS_MET 0x8f0Set once the party has seen the travelers from the ledge above them; they stand about the spring from then on.
#defineFLAG_YAMPI_DESERT_ON_STAKE_TOPS FLAG_SCENE_TEMP(0x0b)Set while the leader walks on the tops of the stakes Pound has not sunk.
#defineFLAG_YAMPI_DESERT_BLOCKS_SHOWN FLAG_SCENE_TEMP(0x0d)Set while the unseen blocks by the sand's flow are drawn.
#defineFLAG_YAMPI_DESERT_ROPE_TIED FLAG_SCENE_TEMP(0x0c)Set once Lash has tied the sand slides' rope.
#defineFLAG_YAMPI_DESERT_COINS_PUDDLE_DUG_UP FLAG_AREA_TEMP(0x02)Set once Scoop has dug up the 315 coins in the room north of the spring.
#defineSTAKE (n) (ACTOR_FIRST_PLACED + (n))The stakes Pound sinks, the first rows of the rooms that have them (the entrance, Blitz's, the Psynergy Stone's, the King Scorpion's and the cavern): stake n is the placed actor STAKE(n), and FLAG_YAMPI_DESERT_STAKE_POUNDED(n) is set once Pound has sunk it.
#defineFLAG_YAMPI_DESERT_STAKE_POUNDED (n) (FLAG_SCENE_TEMP(0x00) + (n))
#defineSTAKE_ROW (n) STAKE(n), STAKE_WOOD, FLAG_YAMPI_DESERT_STAKE_POUNDED(n)A row of a room's stake list, as fdPoundSinkTarget and fdActorSetMetatileOpen read it: the stake, its look (all the desert's are STAKE_WOOD) and its flag.
#defineACTOR_CLIMBABLE_WALL_STAKE STAKE(10)Blitz's room's last stake, standing at the foot of the cliff before a climbable wall, which shows once Pound has sunk it.
#defineACTOR_BLITZ STAKE(11)Blitz, the Jupiter Djinni, after Blitz's room's stakes.
#defineANIM_KING_SCORPION_CLAWS_RAISED 3The King Scorpion's sprite facing the party with its claws raised, as it cries out before its battle.
#defineSAND_CLOUD_POINTS 15The points of YampiDesertSandCloudPoints.
#defineDEFINE_POUND_STAKE_STOPPING_SCORPION (name, stakes)Defines what Pound on one of a room's stakes does: it sinks (fdPoundSinkTarget), and once down it raises the watch for whether the King Scorpion is stopped.
#defineSAND_BURST_GRAINS 17The grains of sand in a burst.
#defineMOVE_LEADER_TO (column, row)Moves the leader to the centre of a metatile, in pixels.
#defineWALK (state_, x, z)A step of the buried King Scorpion's rounds, kept in its sceneCount: sends it toward a point, in pixels, and goes on to the next step, which waits for it there.
#defineWALK_ON (state_, x, z)As WALK, after scYampiDesertClearRaisedCue.
#defineARRIVE (state_, next)Waits for the actor to arrive, then goes on to step next.
#defineARRIVE_OR (state_, flag, turn, next)Waits for the actor to arrive, then goes on to step turn once the flag is set and to step next while it is not.

Enumerations

NameDescription
enumYAMPI_DESERT_RAISED_CUE { RAISED_STIR_SCORPION, RAISED_STIR_SCORPION_AGAIN, RAISED_COR … }The cues the scene raises through YampiDesertRaisedCue while the King Scorpion is chased through the sand.
enumYAMPI_DESERT_METATILE_BEHAVIOR { METATILE_BEHAVIOR_YAMPI_DESERT_FLOW_NORTH, METATILE_BEHAVIOR … }The metatile behaviors the desert's code reads: sand that flows north, south, west or east and carries the leader, the rim round each stream, which carries nobody, and a rise to the upper level.
enumYAMPI_DESERT_ROOM_PART { EXIT_TO_NORTH_PART, EXIT_TO_SOUTH_PART, ENTRANCE_FROM_NORTH_ … }The ways between the two parts of the Psynergy Stone's room and of the King Scorpion's, each part seen through its own camera box: the exit from the south part into the north and back, and the entrances they arrive by.
enumYAMPI_DESERT_SPRING_CAVE_LEVEL { SPRING_CAVE_TO_LOWER_CAVE, SPRING_CAVE_TO_CHAMBER, SPRING_CA … }The ways between the two levels of the cave under the spring: the lower cave, which the ladder Scoop opens in the spring's sand puddle comes down into, and the small chamber above it, which opens onto the ledge over the travelers.
enumYAMPI_DESERT_METATILE { METATILE_ONTO_STAKE_TOPS, METATILE_OFF_STAKE_TOPS, METATILE_ … }The metatiles the rooms' cue tables answer, by the behaviour each room's map gives them.
enumYAMPI_DESERT_TRAVELERS_ACTOR_ID { ACTOR_TRAVELER_FOLLOWING_THE_PIRATES, ACTOR_TRAVELER_SEEKING … }The travelers from Madra resting by the spring (SceneIdYampiDesertSpring), by the rows of YampiDesertSpringActorPlacements and YampiDesertSpringActorPlacementsAfterMeeting, chasing Briggs to Alhafra.
enumYAMPI_DESERT_SCORPION_ACTOR_ID { ACTOR_PSYNERGY_STONE_ROOM_KING_SCORPION, ACTOR_PSYNERGY_STON … }The King Scorpion and the ripple of sand that follows it while it is buried: in the Psynergy Stone's room after its eight stakes, in the King Scorpion's after its thirteen.
enumYAMPI_DESERT_SAND_SLIDES_ACTOR_ID { ACTOR_ROPE_POST, ACTOR_ROPE_OTHER_POST, ACTOR_SIGN, ACTOR_SA … }The sand slides' actors (SceneIdYampiDesertSandSlides).
enumYAMPI_DESERT_SCORPION_PIT_ACTOR_ID { ACTOR_KING_SCORPION, ACTOR_GEYSER }The scorpion pit's actors (SceneIdYampiDesertScorpionPit), where the King Scorpion is fought.
enumanonymous enum { ACTOR_HIDDEN_TREASURE }The room's hidden item: the Lucky Medal's chest in the sand slides, the Psynergy Stone of the south exit, and the 315 coins under the sand puddle north of the spring.
enumYAMPI_DESERT_CAVERN_ACTOR_ID { ACTOR_CAVERN_FIRST_BLOCK, ACTOR_CAVERN_LAST_BLOCK }The cavern's actors after its stake (SceneIdYampiDesertCavern): seven unseen blocks by the sand's flow, hidden as the room is set up.

Functions

NameDescription
voidscYampiDesertStepOntoStakeTops (void)Nothing visible happens when Felix steps from the high ground onto the metatiles beside the stakes in Blitz's room, the Psynergy Stone's or the King Scorpion's; the game makes the tops of the stakes still standing into squares he hops across at his height, so that a row of standing stakes is a way over the sand.
voidscYampiDesertOpenLadderPit (void)Opens the hole over the ladder in the spring's sand puddle.
voidscYampiDesertSetBlocksShown (Sint32 show)Draws (show 1) or stops drawing the unseen blocks of the sand slides or the cavern.
voidscYampiDesertHideBlocks (void)Nothing visible happens when Felix steps onto the inner corner of the flowing sand in the sand slides (metatiles (49, 24) to (51, 24) and (49, 25)); the game stops drawing the two unseen blocks at metatiles (51, 26) and (51, 27).
voidscActorsSetDrawn (Sint32 show, Sint32 first, Uint32 count)Draws (show 1) or stops drawing count actors, from first on.
voidscYampiDesertUpdateSandFlow (void)The event of the rooms with flowing sand.
voidscYampiDesertCheckUpperLevel (void)Notes whether the leader stands on the upper level, more than 16 pixels up.
voidscYampiDesertOpenScoopHole (void)While the King Scorpion's Scoop runs, opens the hole it digs.
voidscActorHide (Sint32 id)Takes an actor out of play and out of sight: disabled, painted transparent and drawn underfoot.
voidscYampiDesertRestoreBlocks (void)Back from a battle, hides the unseen blocks again unless they were shown; otherwise marks them shown.
voidscYampiDesertSetUpCavernBlocks (void)Hides the cavern's unseen blocks.
voidscYampiDesertClimbDownLadder (ACTOR *actor, Sint32 x, Sint32 z, Sint32 exit)The leader climbs down the ladder at (x, z) and leaves by exit.
voidscYampiDesertLayerStakesWithLeader (void)Keeps two of Blitz's room's stakes drawn as the leader is.
voidscYampiDesertPlaceStakes (const void *script)Places each stake of a room's list, sunk if Pound has sunk it.
voidfdPoundSinkTarget (Uint16 *list, Sint32 mode, Sint32 count)Pound's state on a listed actor, an entry of (actor, kind, flag) ended by ACTOR_LIST_END: while it is the target, it sinks a step a tick for the first eight ticks, and once the fist has landed (POUND_STAGE_LANDED) its flag is set and its metatile opened.
voidscYampiDesertElderRefusesToQuit (void)One traveler asks to forget about Briggs, and the elder refuses: there must be a way through the desert.
voidscYampiDesertBlockPoundedStakes (Uint16 *list)As Sand is cast, walls off the metatile of each stake Pound has sunk, in the overhead layer Sand moves on.
voidscYampiDesertOpenStakeMetatiles (Uint16 *list)As Sand ends, makes each stake's metatile in the overhead layer sand again.
voidscFieldScriptWait (Sint32 ticks)Holds the script for ticks while the field goes on (fdScriptWait).
ACTOR *scYampiDesertCreateScoopGem (void)The Scoop Gem's icon as an actor, after the King Scorpion's battle.
voidscYampiDesertClearRaisedCue (void)Clears the cue the scorpion has raised.
voidscYampiDesertPlayScorpionRumble (void)While the King Scorpion roams buried, a rumble every five ticks, but not while Psynergy is being cast, nor while Felix travels as Sand with a direction held.
voidscYampiDesertSetUpPsynergyStoneScorpion (void)Readies the Psynergy Stone room's King Scorpion and the sand ripple that follows it under the sand, and sets the scorpion on its round unless the party is back from a battle.
voidscYampiDesertSetStakeSunk (Sint32 id)Sets up a stake that stands sunk to its top from the start: drawn underfoot and behind the party in its sunk wooden pose, with no shadow, and neither moving nor colliding.
voidscYampiDesertCheckUpperLevelFromLower (void)Notes whether the leader has climbed above the lower level.
voidfdActorSetMetatileOpen (Sint32 id, Uint32 kind, Sint32 flag, Sint32 layer)A stake as its flag leaves it: driven down by Pound, its metatile is open ground and it is drawn underfoot, sunk to its top; still standing, its metatile is a wall.
static inline voidscYampiDesertSetPosAndFacing (Sint32 actorId, Sint32 x, Sint32 z, Uint16 facing)Places an actor at (x, z) on the ground, facing a direction.
static inline voidscYampiDesertPlaceRope (Sint32 index, Sint32 flag, Sint32 post, Sint32 otherPost)Places a rope between two posts.
static inline voidscYampiDesertDigUpTreasure (Sint32 mode, Sint32 actorId, Sint32 flag)Scoop digs up a buried treasure: with mode RETURN_HOME_DUG_UP, the hidden item comes up at its home and its flag is set (fdActorReturnHome).
voidscYampiDesertRippleFollowsScorpion (void)Keeps the ripple of sand over the buried King Scorpion.
voidscYampiDesertScorpionUsesScoop (void)The trapped King Scorpion digs its way out with Scoop.
Sint32scYampiDesertMetatileCenter (Sint32 metatile) __attribute__((const))The centre of a metatile's column or row, in pixels.
voidscYampiDesertSetUpEntrance (void)Sets up the entrance: its stakes, and the way in it was entered by.
voidscYampiDesertSetUpSpring (void)The travelers are gone once the Madrans have reached Alhafra (FLAG_ALHAFRA_MADRANS_ARRIVED); once met (FLAG_YAMPI_DESERT_TRAVELERS_MET) they stand about the spring.
voidscYampiDesertSetUpBlitz (void)Sets up Blitz's room: its stakes and the events that layer them.
voidscYampiDesertSetUpPsynergyStone (void)Sets up the Psynergy Stone's room: its stakes, the four that stand sunk in its north part from the start, and the King Scorpion until it has been stirred.
voidscYampiDesertSetUpKingScorpion (void)Sets up the King Scorpion's room: its stakes; in the south part, the King Scorpion once stirred from the Psynergy Stone's room; in the north, the ten stakes of the trap, and the scorpion until it is beaten, or the hole it leaves in the ring of rocks, which shows sand once the geyser is dug.
voidscYampiDesertSetUpPuddles (void)Sets up the puddles room, north of the spring: its 315 coins stay hidden until dug up.
voidscYampiDesertSetUpSandSlides (void)Sets up the sand slides: its rope, sign and flowing sand, and the way in it was entered by.
voidscYampiDesertSetUpSouthExit (void)Sets up the south exit, with its hidden Psynergy Stone, and the way in it was entered by.
voidscYampiDesertSetUpScorpionPit (void)Sets up the scorpion pit: dropped in, the King Scorpion's battle; back from it, the Scoop Gem; and the geyser between the four rocks once dug.
voidscYampiDesertSetUpSpringCave (void)Sets up the cave under the spring: it opens through a window transition.
voidscYampiDesertSetUpCavern (void)Sets up the cavern: its stake and its flowing sand.
voidscYampiDesertDropScoopGem (void)Back in the pit after the battle, Felix raises his arms with the Scoop Gem the King Scorpion left, its icon shown while the gem is given to the party.
voidscYampiDesertTalkToElder (void)The elder, before the party is seen from the ledge: the first time, he refuses to quit (scYampiDesertElderRefusesToQuit); then he says this is where his son must prove himself as mayor.
voidscYampiDesertReadSign (void)The sign in the sand slides reads: north to Alhafra, south to Air's Rock, with a warning about what lies beyond.
voidscYampiDesertStepOffStakeTops (void)Nothing visible happens when Felix steps back down off the stakes' tops; the game makes the standing stakes walls again at ground level.
voidscYampiDesertCastSand (void)As Sand melts Felix into the sand, so that he can travel under it past rocks and standing stakes, the stakes Pound has hammered down still bar his way underground.
voidscYampiDesertEndSand (void)As Sand ends and Felix rises out of the sand, the sunk stakes' metatiles are sand again under him.
voidscYampiDesertWatchScorpionStop (void)After a stake is Pounded while the King Scorpion roams under the sand, the camera follows the ripple of sand over it until it stops, then returns to Felix.
voidscYampiDesertStirScorpion (void)When the King Scorpion, roaming under the sand of the Psynergy Stone's room, stops against the stake Pound has hammered down, it bursts out of the sand with a spray, scuttles east and burrows away into the next room.
voidscYampiDesertStirScorpionAgain (void)When the King Scorpion, roaming under the sand of the south part of its own room, stops against the stake Pound has hammered down, it bursts out of the sand with a spray and scuttles north, burrowing away towards the trap.
voidscYampiDesertCornerScorpion (void)When the stakes of the trap have shut the King Scorpion's way, the camera follows its ripple of sand north into the ring of rocks at the north end of its room, where it stops, cornered.
voidscYampiDesertTrapKingScorpion (void)Walking up to the cornered King Scorpion in the ring of rocks at the north of its room (metatile (14, 13)): its ripple of sand pulses, Felix stops with a question mark, and the scorpion bursts out before him and uses Scoop.
voidscYampiDesertRevealRockHint (void)Reveal cast in the sand slides changes two rings of rocks while it lasts: the first (metatiles (15, 40) to (19, 45)), three rows of three rocks, shifts into an arrow of rocks pointing north-west (a row along the top, a short column down its west end and a line running down to the south-east from their corner), and the second (metatiles (36, 25) to (40, 29)) shows the Lucky Medal's chest in its middle.
voidscYampiDesertHideRockHint (void)As Reveal fades in the sand slides, both rings of rocks go back as they were and the Lucky Medal's chest is hidden again; Felix is moved off any metatile a rock returns to.
voidscYampiDesertRevealPsynergyStone (void)Reveal cast in the south exit, leading from the sand slides to the World Map, brings out a hidden Psynergy Stone at metatile (18, 15), moving Felix a metatile south if he stands on its spot.
voidscYampiDesertShowBlocks (void)Nothing visible happens when Felix steps onto the sand round the corner of the flowing sand in the sand slides (metatiles (48, 23) to (51, 23) and (48, 24) to (48, 26)) after the inner corner has stopped drawing the two blocks at metatiles (51, 26) and (51, 27): the game draws them again.
voidscYampiDesertClimbRevealedLadder (void)Walking into the hole Scoop has dug in the sand puddle at the south of the spring's room (metatile (8, 32)), holding the pad towards it, Felix climbs down its ladder, facing north, into the cave under the spring.
voidscYampiDesertClimbDownSpringCaveLadder (void)Walking north into the ladder of the small chamber of the cave under the spring, Felix climbs down it to the cave below.
voidscYampiDesertFightBlitz (void)Talking to Blitz, the Jupiter Djinni at the top of the cliff in its room, 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 boxes: the scorpion pit and the cave under the spring.
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; in the spring's room, the travelers stand about the spring once the party has seen them.
voidscYampiDesertDigUpCoins (Sint32 mode)Scoop on the sand puddle on the east side of the room north of the spring (metatile (24, 23)) digs up 315 coins: "Felix got 315 coins."
const CUE *scGetCues (void)The current room's cues.
voidscYampiDesertTalkToTraveler (void)The traveler who followed the pirates from Madra asks whether the party is going to Alhafra too.
voidscYampiDesertTalkToElderAboutWay (void)The traveler who would turn back, before the party is seen from the ledge: the first time, the elder refuses to quit (scYampiDesertElderRefusesToQuit); then the traveler says how insistent the elder is on finding a way through.
voidscYampiDesertPoundEntranceStake (Sint32 mode, Sint32 count)Pound on one of the wooden stakes of the desert's entrance hammers it down into the sand; the one before the Guardian Ring's chest in the south-east corner opens the way to it.
voidscYampiDesertPoundBlitzStake (Sint32 mode, Sint32 count)Pound on one of the wooden stakes in Blitz's room hammers it down into the sand.
DEFINE_POUND_STAKE_STOPPING_SCORPION(scYampiDesertPoundPsynergyStoneStake , YampiDesertPsynergyStoneStakes)Pound on one of the wooden stakes in the Psynergy Stone's room hammers it down into the sand.
voidscYampiDesertPoundCavernStake (Sint32 mode, Sint32 count)Pound on the cavern's wooden stake, before the Blow Mace's chest, hammers it down into the sand.
DEFINE_POUND_STAKE_STOPPING_SCORPION(scYampiDesertPoundKingScorpionStake , YampiDesertKingScorpionStakes)Pound on one of the wooden stakes in the King Scorpion's room hammers it down into the sand.
voidscFieldEffectSpawn (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.
voidscYampiDesertBurstSand (Sint32 x, Sint32 y, Sint32 z)A burst of sand at (x, y, z): its grains thrown east, south, west and north in turn, each a little off at random.
voidscYampiDesertRaiseSandCloud (void)Raises a cloud of dust twice at each point of YampiDesertSandCloudPoints, each moved by -2 to +1 pixels at random, and draws the hole the King Scorpion's Scoop leaves in the ring of rocks at metatile (13, 9), on the middle layer, whose cells the room's map keeps 64 columns east.
voidscYampiDesertOpenGeyser (Sint32 mode)Scoop on the sand between the four rocks in the middle of the King Scorpion's pit (metatile (14, 12)) opens a geyser there, a column of water that rises and falls and carries the party up and out of the pit.
voidscYampiDesertHidePsynergyStone (void)As Reveal fades, the south exit's hidden Psynergy Stone is put away again.
voidscYampiDesertScoopLadderPit (Sint32 mode)Scoop on the oddly shaped sand puddle at the south of the travelers' spring's room (metatile (8, 32)) digs it out to show a ladder going down.
voidscYampiDesertTravelersLookUp (Sint32 metatile)Stepping out onto the ledge above the travelers' spring (metatiles (15, 12) and (16, 12)), the party is seen from below: "Hey!
voidscYampiDesertCarryLeader (ACTOR *actor, FIXED dx, FIXED dz)The flowing sand carries the leader by (dx, dz), hiding his shadow and, unless he travels as Sand, throwing up a puff of dust every other tick; with no direction held, it draws him to the middle of its metatiles.
voidscYampiDesertCheckUpperLevelOnRise (void)Unused: notes whether the leader stands high on the metatiles of METATILE_BEHAVIOR_YAMPI_DESERT_RISE.
voidscYampiDesertCheckLeaderNearPit (void)Unused: notes whether the leader stands near the scorpion pit's middle, where opening a menu raises a cue.
BoolscYampiDesertHasArrived (ACTOR *actor)Whether an actor has no move target left.
voidscYampiDesertScorpionRoamsPsynergyStoneRoom (ACTOR *actor)The buried King Scorpion's round in the Psynergy Stone's room, a loop of steps, two to each point: an even step sends it toward the point, the odd one after waits for it there.
static inline voidscYampiDesertBuryScorpion (ACTOR *scorpion, Sint32 scorpionId, Sint32 rippleId)Buries a room's King Scorpion: it and its sand ripple are hidden, stopped and passable, drawn at priority 3 and following the ground, the ripple under the party's feet and kept in YampiDesertSandRipple, and the scorpion's speed is set to 1.6.
voidscYampiDesertScorpionRoamsKingScorpionRoom (ACTOR *actor)The buried King Scorpion's round in the King Scorpion's room, about stake 0: once Pound has sunk the stake, it stops at its east side and raises RAISED_STIR_SCORPION_AGAIN, or, past that point, keeps from step 32 to a small loop south of it.
voidscYampiDesertSetUpKingScorpionRoomScorpion (void)scYampiDesertSetUpPsynergyStoneScorpion's counterpart in the King Scorpion's room, which also places the scorpion at the start of its round.
voidscYampiDesertScorpionRoamsToTrap (ACTOR *actor)The buried King Scorpion's round in the King Scorpion's room once stirred again, between stakes 1 and 2 of the trap: stopped by stake 2 sunk to its west, it loops east of that stake from step 32, by stake 1 sunk to its east, west of that stake from step 48, and by stake 1 sunk to its north, east of stake 2 from step 34; reaching stake 2's north side once that is sunk, it is cornered and raises RAISED_CORNER_SCORPION.
voidscYampiDesertSetUpTrappedScorpion (void)scYampiDesertSetUpPsynergyStoneScorpion's counterpart in the King Scorpion's room once it is stirred again: once the scorpion is cornered (FLAG_YAMPI_DESERT_SCORPION_CORNERED) it is placed facing south; otherwise, unless the party is back from a battle (FLAG_KEEP_PARTY_POSITION), it is placed and given the update scYampiDesertScorpionRoamsToTrap.
voidscYampiDesertSetUpSandSlidesBlocks (void)Hides the sand slides' unseen blocks.
voidscYampiDesertLandAndFightKingScorpion (void)Felix and the King Scorpion drop into its pit and land in bursts of sand; the scorpion cries out, raises its claws and leaps at him, and its battle begins, one the party cannot run from.
Sint32scInit (void)Clears the scorpion's sand ripple and runs the entered room's setup; the sand pass has none.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.
voidscGeyserStart (Sint32 unused, Sint32 firstTerrain)Starts the geysers: clears their state unless the party keeps its place, loads the column's tiles and starts scGeyserUpdate and btGeyserDraw.
GEYSER *scGeyserAdd ( Sint32 slot, Sint32 id, Sint32 timer, Sint32 minHeight, Sint32 maxHeight)Makes actor id the geyser of entry slot, rising from minHeight to maxHeight pixels every six seconds, starting timer ticks into its round, with an unseen platform at its top for the leader.

Variables

NameDescription
extern Uint16YampiDesertEntranceStakes []Each room's stakes, as STAKE_ROW lists them.
extern Uint16YampiDesertBlitzStakes []Blitz's room's stakes.
extern Uint16YampiDesertPsynergyStoneStakes []The Psynergy Stone's room's stakes.
extern Uint16YampiDesertKingScorpionStakes []The King Scorpion's room's stakes.
extern Uint16YampiDesertCavernStakes []The cavern's stake.
extern Sint32YampiDesertRaisedCueThe cue the scorpions raise for the scene to run, or 0.
extern ACTOR *YampiDesertSandRippleThe sand ripple that follows the room's King Scorpion under the sand.
extern Uint16YampiDesertSandCloudPoints [SAND_CLOUD_POINTS * 2]Where the King Scorpion's cloud of dust rises: x and z in pixels.
extern Uint32YampiDesertSandCloudDrifts []A puff of the King Scorpion's dust drifts aside and frees itself.
extern Uint32YampiDesertFlowDust []A puff of the flowing sand's dust, which frees itself after a while.
extern Uint32YampiDesertTravelerLooksAround []The two travelers resting at the spring look about them in turn.
extern Uint32YampiDesertOtherTravelerLooksAround []As YampiDesertTravelerLooksAround, for the other traveler, out of step with the first.
extern SCENE_ENTRANCESceneEntrances []Besides the party's return to the pier after the ship is stolen, four unused spots about the mast: below the huge block, on the dock by its crate, on the deck, and at the top of the sail's east pole.
extern SCENE_ENTRANCEYampiDesertSpringCaveEntrances []Where the party arrives in the cave under the spring.
extern SCENE_REGIONYampiDesertScorpionPitExitRegions []
extern SCENE_REGIONYampiDesertSpringCaveExitRegions []The two ways up out of the cave under the spring: to the spring and to the small chamber.
extern ACTOR_PLACEYampiDesertPlacements []The actors of the rooms that place none.
extern ACTOR_PLACEYampiDesertEntranceActorPlacements []The entrance's actors.
extern ACTOR_PLACEYampiDesertSpringActorPlacements []The spring's room's actors before the party meets the travelers.
extern ACTOR_PLACEYampiDesertSpringActorPlacementsAfterMeeting []The spring's room's actors once the party has met the travelers.
extern ACTOR_PLACEYampiDesertBlitzActorPlacements []Blitz's room's actors.
extern ACTOR_PLACEYampiDesertPsynergyStoneActorPlacements []The Psynergy Stone's room's actors.
extern ACTOR_PLACEYampiDesertKingScorpionActorPlacements []The King Scorpion's room's actors.
extern ACTOR_PLACEYampiDesertSandSlidesActorPlacements []The sand slides' actors.
extern ACTOR_PLACEYampiDesertScorpionPitActorPlacements []The scorpion's pit's actors.
extern ACTOR_PLACEYampiDesertCavernActorPlacements []The cavern's actors.
extern CUEYampiDesertCues []The cues of the rooms that have none.
extern CUEYampiDesertEntranceCues []The entrance's cues.
extern CUEYampiDesertSpringCues []The spring's room's cues.
extern CUEYampiDesertBlitzCues []Blitz's room's cues.
extern CUEYampiDesertPsynergyStoneCues []The Psynergy Stone's room's cues.
extern CUEYampiDesertKingScorpionCues []The King Scorpion's room's cues.
extern CUEYampiDesertPuddlesCues []The puddles room's cues.
extern CUEYampiDesertSandPassCues []The sand pass's cues.
extern CUEYampiDesertSandSlidesCues []The sand slides' cues.
extern CUEYampiDesertSouthExitCues []The south exit's cues.
extern CUEYampiDesertScorpionPitCues []The scorpion's pit's cues.
extern CUEYampiDesertSpringCaveCues []The cues of the cave under the spring.
extern CUEYampiDesertCavernCues []The cavern's cues.
extern Uint32YampiDesertMayorRunsAhead []The mayor runs ahead to the travelers, and the others follow.
extern Uint32YampiDesertTravelersFollow []As YampiDesertMayorRunsAhead, for the travelers who follow.
extern Uint32YampiDesertLastTravelersFollow []As YampiDesertMayorRunsAhead, for the last travelers, from further back.
LATE_DATA const Sint32 *FieldEffectDurationScripts []The field effects' three scripts by how long an effect lasts: short, medium and long.
SCENE_ENTRANCES_SECTIONLATE_DATA #include "shared/scene_entrances_default.c" // Where the party arrives in the cave under the spring. LATE_DATAA scene's data that its overlay places after pictures linked between its tables: the overlay's linker script places .data.late after the first of them and .data.last after the next.
LATE_DATA SCENE_REGION YampiDesertScorpionPitExitRegions[]ALIGNED (4)The way out of the scorpion's pit: the geyser's top, which carries the party up.
LATE_DATA Uint32SceneExits []The room has no exits of its own.

Description

The Yampi Desert, between southern Osenia and Alhafra: twelve rooms on one overlay (SceneIdYampiDesertEntrance to SceneIdYampiDesertCavern). In the first room Pound sinks the wooden stake before the Guardian Ring's chest. In the second, travelers from Madra chasing Briggs rest by the spring, beside a sand puddle that hides a ladder. In Blitz's room the stakes are Pounded into the sand or walked across on their tops, to the Antidote's chest and up to Blitz. Past the Psynergy Stone the King Scorpion moves under the sand: Pound on a stake makes it burst out and flee, east into the next room and there north, until the stakes of the trap corner it in the ring of rocks at the north of its room. Walking up to it, Felix is dragged down with it by its Scoop into its pit and fights it for the Scoop Gem; Scoop between the pit's four rocks then opens a geyser out. Back at the spring, Scoop opens the ladder, whose cave leads up to a ledge over the travelers, who then find their way north; the next room hides 315 coins in a sand puddle, and the cave beyond it, all slides of flowing sand, holds the Hard Nut and the Blow Mace. In the long room after it Reveal changes two rings of rocks, one to a hint and one to the Lucky Medal's chest, and Lash ties the rope to the Trainer's Whip's chest; Reveal also brings out a Psynergy Stone in the room that leads on from there to the World Map. Sand lets Felix travel under the sand, past rocks and standing stakes, in most of the rooms.

Macros in detail

EFFECT_SET_MODE

#define EFFECT_SET_MODE fdActorSelectAnimation

Referenced by EFFECT_SPAWN.

Definition at line 36 of file yampi_desert.c.

EFFECT_SET_SCRIPT

#define EFFECT_SET_SCRIPT fdActorStartScript

Referenced by EFFECT_SPAWN.

Definition at line 37 of file yampi_desert.c.

FLAG_YAMPI_DESERT_SCORPION_STIRRED

#define FLAG_YAMPI_DESERT_SCORPION_STIRRED 0x889

Set as Pound on a stake of the Psynergy Stone's room stirs the King Scorpion out of the sand, and it flees into the King Scorpion's room.

Referenced by scYampiDesertSetUpKingScorpion(), scYampiDesertSetUpPsynergyStone() and scYampiDesertStirScorpion().

Definition at line 42 of file yampi_desert.c.

FLAG_YAMPI_DESERT_SCORPION_STIRRED_AGAIN

#define FLAG_YAMPI_DESERT_SCORPION_STIRRED_AGAIN 0x88a

As FLAG_YAMPI_DESERT_SCORPION_STIRRED, in the King Scorpion's room, from whose south part it flees north.

Referenced by scYampiDesertSetUpKingScorpion() and scYampiDesertStirScorpionAgain().

Definition at line 45 of file yampi_desert.c.

FLAG_YAMPI_DESERT_SCORPION_CORNERED

#define FLAG_YAMPI_DESERT_SCORPION_CORNERED 0x88b

Set once the King Scorpion is cornered at the ring of rocks at the north end of its room.

Referenced by scYampiDesertCornerScorpion(), scYampiDesertSetUpTrappedScorpion(), scYampiDesertTrapKingScorpion() and YampiDesertKingScorpionCues.

Definition at line 48 of file yampi_desert.c.

FLAG_KING_SCORPION_BEATEN

#define FLAG_KING_SCORPION_BEATEN 0x88c

Set once the King Scorpion is beaten; it leaves the Scoop Gem.

Referenced by scYampiDesertDropScoopGem(), scYampiDesertSetUpKingScorpion(), scYampiDesertSetUpScorpionPit() and YampiDesertKingScorpionCues.

Definition at line 50 of file yampi_desert.c.

FLAG_YAMPI_DESERT_LADDER_DUG_UP

#define FLAG_YAMPI_DESERT_LADDER_DUG_UP 0x88d

Set once Scoop has opened the sand pit that hides the ladder.

Referenced by scYampiDesertClimbRevealedLadder(), scYampiDesertScoopLadderPit(), scYampiDesertSetUpSpring() and YampiDesertSpringCues.

Definition at line 52 of file yampi_desert.c.

FLAG_YAMPI_DESERT_ELDER_INSISTED

#define FLAG_YAMPI_DESERT_ELDER_INSISTED 0x88f

Set once the travelers' elder has said he will not turn back.

Referenced by scYampiDesertTalkToElder(), scYampiDesertTalkToElderAboutWay(), scYampiDesertTravelersLookUp() and YampiDesertSpringCues.

Definition at line 54 of file yampi_desert.c.

FLAG_YAMPI_DESERT_ROCK_PIT_DUG_UP

#define FLAG_YAMPI_DESERT_ROCK_PIT_DUG_UP 0x8ed

Set once Scoop has opened the sand pit between the four rocks.

Referenced by scYampiDesertOpenGeyser(), scYampiDesertSetUpKingScorpion(), scYampiDesertSetUpScorpionPit() and YampiDesertScorpionPitCues.

Definition at line 56 of file yampi_desert.c.

FLAG_YAMPI_DESERT_TRAVELERS_MET

#define FLAG_YAMPI_DESERT_TRAVELERS_MET 0x8f0

Set once the party has seen the travelers from the ledge above them; they stand about the spring from then on.

Referenced by scGetActorPlacements(), scYampiDesertSetUpSpring(), scYampiDesertTravelersLookUp() and YampiDesertSpringCues.

Definition at line 59 of file yampi_desert.c.

FLAG_YAMPI_DESERT_ON_STAKE_TOPS

#define FLAG_YAMPI_DESERT_ON_STAKE_TOPS FLAG_SCENE_TEMP(0x0b)

Set while the leader walks on the tops of the stakes Pound has not sunk.

Referenced by scYampiDesertSetUpBlitz(), scYampiDesertSetUpPsynergyStone(), scYampiDesertStepOffStakeTops(), scYampiDesertStepOntoStakeTops(), YampiDesertBlitzCues and YampiDesertPsynergyStoneCues.

Definition at line 61 of file yampi_desert.c.

FLAG_YAMPI_DESERT_BLOCKS_SHOWN

#define FLAG_YAMPI_DESERT_BLOCKS_SHOWN FLAG_SCENE_TEMP(0x0d)

Set while the unseen blocks by the sand's flow are drawn.

Referenced by scYampiDesertHideBlocks(), scYampiDesertRestoreBlocks(), scYampiDesertShowBlocks() and YampiDesertSandSlidesCues.

Definition at line 63 of file yampi_desert.c.

FLAG_YAMPI_DESERT_ROPE_TIED

#define FLAG_YAMPI_DESERT_ROPE_TIED FLAG_SCENE_TEMP(0x0c)

Set once Lash has tied the sand slides' rope.

Referenced by scYampiDesertSetUpSandSlides() and YampiDesertSandSlidesCues.

Definition at line 65 of file yampi_desert.c.

FLAG_YAMPI_DESERT_COINS_PUDDLE_DUG_UP

#define FLAG_YAMPI_DESERT_COINS_PUDDLE_DUG_UP FLAG_AREA_TEMP(0x02)

Set once Scoop has dug up the 315 coins in the room north of the spring.

Referenced by scYampiDesertDigUpCoins(), scYampiDesertSetUpPuddles() and YampiDesertPuddlesCues.

Definition at line 67 of file yampi_desert.c.

STAKE

#define STAKE(n) (ACTOR_FIRST_PLACED + (n))

The stakes Pound sinks, the first rows of the rooms that have them (the entrance, Blitz's, the Psynergy Stone's, the King Scorpion's and the cavern): stake n is the placed actor STAKE(n), and FLAG_YAMPI_DESERT_STAKE_POUNDED(n) is set once Pound has sunk it.

Referenced by scYampiDesertLayerStakesWithLeader(), scYampiDesertSetUpKingScorpion(), scYampiDesertSetUpPsynergyStone(), YampiDesertBlitzCues, YampiDesertCavernCues, YampiDesertEntranceCues, YampiDesertKingScorpionCues and YampiDesertPsynergyStoneCues.

Definition at line 205 of file yampi_desert.c.

FLAG_YAMPI_DESERT_STAKE_POUNDED

#define FLAG_YAMPI_DESERT_STAKE_POUNDED(n) (FLAG_SCENE_TEMP(0x00) + (n))

Referenced by scYampiDesertScorpionRoamsKingScorpionRoom(), scYampiDesertScorpionRoamsPsynergyStoneRoom(), scYampiDesertScorpionRoamsToTrap(), YampiDesertBlitzCues, YampiDesertCavernCues, YampiDesertEntranceCues, YampiDesertKingScorpionCues and YampiDesertPsynergyStoneCues.

Definition at line 206 of file yampi_desert.c.

STAKE_ROW

#define STAKE_ROW(n) STAKE(n), STAKE_WOOD, FLAG_YAMPI_DESERT_STAKE_POUNDED(n)

A row of a room's stake list, as fdPoundSinkTarget and fdActorSetMetatileOpen read it: the stake, its look (all the desert's are STAKE_WOOD) and its flag. A list ends at ACTOR_LIST_END.

Referenced by YampiDesertBlitzStakes, YampiDesertCavernStakes, YampiDesertEntranceStakes, YampiDesertKingScorpionStakes and YampiDesertPsynergyStoneStakes.

Definition at line 210 of file yampi_desert.c.

ACTOR_CLIMBABLE_WALL_STAKE

#define ACTOR_CLIMBABLE_WALL_STAKE STAKE(10)

Blitz's room's last stake, standing at the foot of the cliff before a climbable wall, which shows once Pound has sunk it.

Referenced by scYampiDesertCheckUpperLevel().

Definition at line 235 of file yampi_desert.c.

ACTOR_BLITZ

#define ACTOR_BLITZ STAKE(11)

Blitz, the Jupiter Djinni, after Blitz's room's stakes.

Referenced by scYampiDesertFightBlitz() and YampiDesertBlitzCues.

Definition at line 237 of file yampi_desert.c.

ANIM_KING_SCORPION_CLAWS_RAISED

#define ANIM_KING_SCORPION_CLAWS_RAISED 3

The King Scorpion's sprite facing the party with its claws raised, as it cries out before its battle.

Referenced by scYampiDesertLandAndFightKingScorpion().

Definition at line 278 of file yampi_desert.c.

SAND_CLOUD_POINTS

#define SAND_CLOUD_POINTS 15

The points of YampiDesertSandCloudPoints.

Referenced by scYampiDesertRaiseSandCloud() and YampiDesertSandCloudPoints.

Definition at line 299 of file yampi_desert.c.

DEFINE_POUND_STAKE_STOPPING_SCORPION

#define DEFINE_POUND_STAKE_STOPPING_SCORPION(name, stakes)

Defines what Pound on one of a room's stakes does: it sinks (fdPoundSinkTarget), and once down it raises the watch for whether the King Scorpion is stopped.

Definition at line 574 of file yampi_desert.c.

SAND_BURST_GRAINS

#define SAND_BURST_GRAINS 17

The grains of sand in a burst.

Referenced by scYampiDesertBurstSand().

Definition at line 820 of file yampi_desert.c.

MOVE_LEADER_TO

#define MOVE_LEADER_TO(column, row)

Moves the leader to the centre of a metatile, in pixels.

Moves the leader to the centre of a metatile, as above.

Referenced by scYampiDesertHideRockHint() and scYampiDesertRevealRockHint().

Definition at lines 1135 and 1201 of file yampi_desert.c.

WALK

#define WALK(state_, x, z)

A step of the buried King Scorpion's rounds, kept in its sceneCount: sends it toward a point, in pixels, and goes on to the next step, which waits for it there.

Referenced by scYampiDesertScorpionRoamsKingScorpionRoom(), scYampiDesertScorpionRoamsPsynergyStoneRoom() and scYampiDesertScorpionRoamsToTrap().

Definition at line 1890 of file yampi_desert.c.

WALK_ON

#define WALK_ON(state_, x, z)

As WALK, after scYampiDesertClearRaisedCue.

Referenced by scYampiDesertScorpionRoamsKingScorpionRoom() and scYampiDesertScorpionRoamsToTrap().

Definition at line 1897 of file yampi_desert.c.

ARRIVE

#define ARRIVE(state_, next)

Waits for the actor to arrive, then goes on to step next.

Referenced by scYampiDesertScorpionRoamsKingScorpionRoom(), scYampiDesertScorpionRoamsPsynergyStoneRoom() and scYampiDesertScorpionRoamsToTrap().

Definition at line 1905 of file yampi_desert.c.

ARRIVE_OR

#define ARRIVE_OR(state_, flag, turn, next)

Waits for the actor to arrive, then goes on to step turn once the flag is set and to step next while it is not.

Referenced by scYampiDesertScorpionRoamsToTrap().

Definition at line 1913 of file yampi_desert.c.

Enumerations in detail

YAMPI_DESERT_RAISED_CUE

enum YAMPI_DESERT_RAISED_CUE

The cues the scene raises through YampiDesertRaisedCue while the King Scorpion is chased through the sand.

EnumeratorValueDescription
RAISED_STIR_SCORPION200
RAISED_STIR_SCORPION_AGAIN201
RAISED_CORNER_SCORPION202
RAISED_WATCH_SCORPION_STOP210

Definition at line 78 of file yampi_desert.c.

YAMPI_DESERT_METATILE_BEHAVIOR

enum YAMPI_DESERT_METATILE_BEHAVIOR

The metatile behaviors the desert's code reads: sand that flows north, south, west or east and carries the leader, the rim round each stream, which carries nobody, and a rise to the upper level.

EnumeratorValueDescription
METATILE_BEHAVIOR_YAMPI_DESERT_FLOW_NORTH10
METATILE_BEHAVIOR_YAMPI_DESERT_FLOW_SOUTH11
METATILE_BEHAVIOR_YAMPI_DESERT_FLOW_WEST12
METATILE_BEHAVIOR_YAMPI_DESERT_FLOW_EAST13
METATILE_BEHAVIOR_YAMPI_DESERT_FLOW_RIM14
METATILE_BEHAVIOR_YAMPI_DESERT_RISE20

Definition at line 89 of file yampi_desert.c.

YAMPI_DESERT_ROOM_PART

enum YAMPI_DESERT_ROOM_PART

The ways between the two parts of the Psynergy Stone's room and of the King Scorpion's, each part seen through its own camera box: the exit from the south part into the north and back, and the entrances they arrive by.

EnumeratorValueDescription
EXIT_TO_NORTH_PART2
EXIT_TO_SOUTH_PART3
ENTRANCE_FROM_NORTH_PART2arriving in the south part
ENTRANCE_FROM_SOUTH_PART3arriving in the north part

Definition at line 102 of file yampi_desert.c.

YAMPI_DESERT_SPRING_CAVE_LEVEL

enum YAMPI_DESERT_SPRING_CAVE_LEVEL

The ways between the two levels of the cave under the spring: the lower cave, which the ladder Scoop opens in the spring's sand puddle comes down into, and the small chamber above it, which opens onto the ledge over the travelers.

EnumeratorValueDescription
SPRING_CAVE_TO_LOWER_CAVE2the chamber's ladder down
SPRING_CAVE_TO_CHAMBER4
SPRING_CAVE_FROM_CHAMBER4
SPRING_CAVE_FROM_LOWER_CAVE2

Definition at line 113 of file yampi_desert.c.

YAMPI_DESERT_METATILE

enum YAMPI_DESERT_METATILE

The metatiles the rooms' cue tables answer, by the behaviour each room's map gives them.

EnumeratorValueDescription
METATILE_ONTO_STAKE_TOPS11The rooms with stakes: stepping from
METATILE_OFF_STAKE_TOPS10the high ground beside the stakes, and back down off them.
METATILE_AROUND_LADDER_PUDDLE5The spring's room: the ring of metatiles round the sand puddle, the puddle that hides the ladder, and the ledge over the spring.
METATILE_LADDER_PUDDLE10
METATILE_LEDGE_OVER_SPRING15
METATILE_COINS_PUDDLE12The room north of the spring: the sand puddle over the 315 coins.
METATILE_BEFORE_TRAP10The King Scorpion's room: before the ring of rocks of the trap.
METATILE_BETWEEN_FOUR_ROCKS10The King Scorpion's pit: the sand between its four rocks.
METATILE_SPRING_CAVE_LADDER2The cave under the spring: the ladder down in its small chamber.
METATILE_FLOW_CORNER_INSIDE7The sand slides: the inner and outer
METATILE_FLOW_CORNER_OUTSIDE8corner of the flowing sand by the unseen blocks.

Definition at line 123 of file yampi_desert.c.

YAMPI_DESERT_TRAVELERS_ACTOR_ID

enum YAMPI_DESERT_TRAVELERS_ACTOR_ID

The travelers from Madra resting by the spring (SceneIdYampiDesertSpring), by the rows of YampiDesertSpringActorPlacements and YampiDesertSpringActorPlacementsAfterMeeting, chasing Briggs to Alhafra.

EnumeratorValueDescription
ACTOR_TRAVELER_FOLLOWING_THE_PIRATESACTOR_FIRST_PLACED"We followed the pirates here from Madra... Are you going to Alhafra?"
ACTOR_TRAVELER_SEEKING_EVIDENCEWho is to find evidence that Piers is a Champa.
ACTOR_DIZZY_TRAVELER"Ooooh... This desert... It's so hot out here! I feel dizzy!"
ACTOR_PARCHED_TRAVELER"Water... My throat is so parched!"
ACTOR_TRAVELER_WHO_WOULD_TURN_BACKWho would forget about Briggs: "Can't we just forget about Briggs?"
ACTOR_ELDERMadra's elder, who will not stop looking for Briggs.
ACTOR_MAYORMadra's mayor, the elder's son, who must get them through the desert.

Definition at line 215 of file yampi_desert.c.

YAMPI_DESERT_SCORPION_ACTOR_ID

enum YAMPI_DESERT_SCORPION_ACTOR_ID

The King Scorpion and the ripple of sand that follows it while it is buried: in the Psynergy Stone's room after its eight stakes, in the King Scorpion's after its thirteen.

EnumeratorValueDescription
ACTOR_PSYNERGY_STONE_ROOM_KING_SCORPIONSTAKE(8)
ACTOR_PSYNERGY_STONE_ROOM_SAND_RIPPLE
ACTOR_KING_SCORPION_ROOM_KING_SCORPIONSTAKE(13)
ACTOR_KING_SCORPION_ROOM_SAND_RIPPLE
ACTOR_KING_SCORPION_ROOM_BOULDERUnused: a brown boulder placed at the origin, which nothing moves, so it is never on stage.

Definition at line 242 of file yampi_desert.c.

YAMPI_DESERT_SAND_SLIDES_ACTOR_ID

enum YAMPI_DESERT_SAND_SLIDES_ACTOR_ID

The sand slides' actors (SceneIdYampiDesertSandSlides).

EnumeratorValueDescription
ACTOR_ROPE_POSTACTOR_FIRST_PLACEDThe posts of the rope Lash ties.
ACTOR_ROPE_OTHER_POST
ACTOR_SIGN
ACTOR_SAND_SLIDES_FIRST_BLOCKTwo unseen blocks by the sand's flow,
ACTOR_SAND_SLIDES_SECOND_BLOCKshown and hidden by the step cues beside it (scYampiDesertSetBlocksShown).

Definition at line 254 of file yampi_desert.c.

YAMPI_DESERT_SCORPION_PIT_ACTOR_ID

enum YAMPI_DESERT_SCORPION_PIT_ACTOR_ID

The scorpion pit's actors (SceneIdYampiDesertScorpionPit), where the King Scorpion is fought.

EnumeratorValueDescription
ACTOR_KING_SCORPIONACTOR_FIRST_PLACED
ACTOR_GEYSERThe unseen point the geyser rises from, moved to the middle of the four rocks once Scoop has dug the pit there; scGeyserAdd takes its shadow off.

Definition at line 268 of file yampi_desert.c.

anonymous enum

enum { ACTOR_HIDDEN_TREASURE }

The room's hidden item: the Lucky Medal's chest in the sand slides, the Psynergy Stone of the south exit, and the 315 coins under the sand puddle north of the spring.

EnumeratorValueDescription
ACTOR_HIDDEN_TREASUREFIELD_TREASURE_ACTOR

Definition at line 283 of file yampi_desert.c.

YAMPI_DESERT_CAVERN_ACTOR_ID

enum YAMPI_DESERT_CAVERN_ACTOR_ID

The cavern's actors after its stake (SceneIdYampiDesertCavern): seven unseen blocks by the sand's flow, hidden as the room is set up.

EnumeratorValueDescription
ACTOR_CAVERN_FIRST_BLOCKSTAKE(1)
ACTOR_CAVERN_LAST_BLOCKACTOR_CAVERN_FIRST_BLOCK + 6

Definition at line 290 of file yampi_desert.c.

Functions in detail

scYampiDesertStepOntoStakeTops

void scYampiDesertStepOntoStakeTops(void)

Nothing visible happens when Felix steps from the high ground onto the metatiles beside the stakes in Blitz's room, the Psynergy Stone's or the King Scorpion's; the game makes the tops of the stakes still standing into squares he hops across at his height, so that a row of standing stakes is a way over the sand. Each stake's metatile gives up its wall and takes the hop flag, and its height rises by four steps.

References fdActorGetById(), fdActorGetMetatileIndex(), fdMapGetTerrainHeight(), fdMapGridGetTerrainKind(), fdMapShapeFindOrAdd(), MainRoutineStateWork, MapShapeGrid, Sint32, syGameFlagGet(), syGameFlagSet(), YampiDesertBlitzStakes, YampiDesertKingScorpionStakes and YampiDesertPsynergyStoneStakes.

Referenced by scYampiDesertSetUpBlitz(), scYampiDesertSetUpPsynergyStone(), YampiDesertBlitzCues and YampiDesertPsynergyStoneCues.

Definition at lines 148, 610 and 2911 of file yampi_desert.c.

scYampiDesertOpenLadderPit

void scYampiDesertOpenLadderPit(void)

Opens the hole over the ladder in the spring's sand puddle.

References fdMapCopyMetatileAttributeRect() and fdMapGridCopyMetatileTilesIndicesRect().

Referenced by scYampiDesertScoopLadderPit() and scYampiDesertSetUpSpring().

Definition at lines 149 and 1278 of file yampi_desert.c.

scYampiDesertSetBlocksShown

void scYampiDesertSetBlocksShown(Sint32 show)

Draws (show 1) or stops drawing the unseen blocks of the sand slides or the cavern.

References MainRoutineStateWork, scActorsSetDrawn() and Sint32.

Referenced by scYampiDesertHideBlocks() and scYampiDesertShowBlocks().

Definition at lines 150 and 1298 of file yampi_desert.c.

scYampiDesertHideBlocks

void scYampiDesertHideBlocks(void)

Nothing visible happens when Felix steps onto the inner corner of the flowing sand in the sand slides (metatiles (49, 24) to (51, 24) and (49, 25)); the game stops drawing the two unseen blocks at metatiles (51, 26) and (51, 27).

References scYampiDesertSetBlocksShown() and syGameFlagClear().

Referenced by scYampiDesertRestoreBlocks() and YampiDesertSandSlidesCues.

Definition at lines 151, 1326 and 2913 of file yampi_desert.c.

scYampiDesertUpdateSandFlow

void scYampiDesertUpdateSandFlow(void)

The event of the rooms with flowing sand. Where the map's middle layer marks a stream, the sand carries the leader a pixel and a half a tick its way; where the ground layer marks one and the pad is held along it, he is carried only a quarter as fast. While Psynergy or a menu is up, nothing is carried and the leader's and the sand's animations stop.

References fdActorGetById(), fdActorGetMetatileIndex(), fdActorSetAnimationSpeed(), fdActorSetSpriteFlags(), fdTilesetAnimationResumeAll(), fdTilesetAnimationSuspendAll(), MainRoutineStateWork, PerWork, scYampiDesertCarryLeader() and Sint32.

Referenced by scYampiDesertSetUpCavern() and scYampiDesertSetUpSandSlides().

Definition at lines 153 and 1681 of file yampi_desert.c.

scYampiDesertCheckUpperLevel

void scYampiDesertCheckUpperLevel(void)

Notes whether the leader stands on the upper level, more than 16 pixels up. In Blitz's room it keeps the stake before the climbable wall drawn as the leader is, and in the room's south-east (east of x 472, south of z 488) he counts as up from 16 pixels below the ground's level.

References fdActorGetById(), fdActorSetSpritePriority() and MainRoutineStateWork.

Referenced by scYampiDesertSetUpBlitz() and scYampiDesertSetUpSpring().

Definition at lines 154 and 1776 of file yampi_desert.c.

scYampiDesertOpenScoopHole

void scYampiDesertOpenScoopHole(void)

While the King Scorpion's Scoop runs, opens the hole it digs.

References fdMapGridCopyMetatileTilesIndicesRect().

Referenced by scYampiDesertScorpionUsesScoop().

Definition at lines 155 and 2213 of file yampi_desert.c.

scYampiDesertRestoreBlocks

void scYampiDesertRestoreBlocks(void)

Back from a battle, hides the unseen blocks again unless they were shown; otherwise marks them shown.

References scYampiDesertHideBlocks(), syGameFlagGet() and syGameFlagSet().

Referenced by scYampiDesertSetUpCavernBlocks() and scYampiDesertSetUpSandSlidesBlocks().

Definition at lines 157 and 2236 of file yampi_desert.c.

scYampiDesertSetUpCavernBlocks

void scYampiDesertSetUpCavernBlocks(void)

Hides the cavern's unseen blocks.

References scActorHide() and scYampiDesertRestoreBlocks().

Referenced by scYampiDesertSetUpCavern().

Definition at lines 158 and 2258 of file yampi_desert.c.

scYampiDesertClimbDownLadder

void scYampiDesertClimbDownLadder(ACTOR *actor, Sint32 x, Sint32 z, Sint32 exit)

The leader climbs down the ladder at (x, z) and leaves by exit.

References fdActorFaceDirectionAndRefreshById(), fdActorGetById(), fdActorSetAnimationById(), fdActorSetMoveTarget(), fdActorSetSpriteFlags(), fdActorWaitForMove(), fdActorWalkToAndWaitById(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, Sint32, syImportScriptSetExitRequest() and sySoundPlay().

Referenced by scYampiDesertClimbDownSpringCaveLadder() and scYampiDesertClimbRevealedLadder().

Definition at lines 159 and 2268 of file yampi_desert.c.

scYampiDesertLayerStakesWithLeader

void scYampiDesertLayerStakesWithLeader(void)

Keeps two of Blitz's room's stakes drawn as the leader is.

References fdActorGetById(), fdActorSetSpritePriority(), MainRoutineStateWork and Sint32.

Referenced by scYampiDesertSetUpBlitz().

Definition at lines 163 and 2515 of file yampi_desert.c.

scYampiDesertPlaceStakes

void scYampiDesertPlaceStakes(const void *script)

Places each stake of a room's list, sunk if Pound has sunk it.

References fdActorGetById(), fdActorSetMetatileOpen(), fdActorSetSpriteFlags() and Sint32.

Referenced by scYampiDesertSetUpBlitz(), scYampiDesertSetUpCavern(), scYampiDesertSetUpEntrance(), scYampiDesertSetUpKingScorpion() and scYampiDesertSetUpPsynergyStone().

Definition at lines 164 and 2803 of file yampi_desert.c.

scYampiDesertElderRefusesToQuit

void scYampiDesertElderRefusesToQuit(void)

One traveler asks to forget about Briggs, and the elder refuses: there must be a way through the desert.

References fdActorFaceDirection(), fdActorFaceDirectionById(), fdActorSetAnimationById(), fdScriptSetMessageId(), fdScriptShowMessageAndWait() and Sint32.

Referenced by scYampiDesertTalkToElder() and scYampiDesertTalkToElderAboutWay().

Definition at lines 166 and 488 of file yampi_desert.c.

scYampiDesertBlockPoundedStakes

void scYampiDesertBlockPoundedStakes(Uint16 *list)

As Sand is cast, walls off the metatile of each stake Pound has sunk, in the overhead layer Sand moves on.

References fdActorGetById(), fdActorGetMetatileIndex() and syGameFlagGet().

Referenced by scYampiDesertCastSand().

Definition at lines 167 and 703 of file yampi_desert.c.

scYampiDesertOpenStakeMetatiles

void scYampiDesertOpenStakeMetatiles(Uint16 *list)

As Sand ends, makes each stake's metatile in the overhead layer sand again.

References fdActorGetById() and fdActorGetMetatileIndex().

Referenced by scYampiDesertEndSand().

Definition at lines 168 and 723 of file yampi_desert.c.

scYampiDesertCreateScoopGem

ACTOR *scYampiDesertCreateScoopGem(void)

The Scoop Gem's icon as an actor, after the King Scorpion's battle.

References mnIconDrawItem(), Sint32, syHeapSlotAllocate(), syHeapSlotRelease(), syImportActorCreate() and syVRAMCacheLoad().

Referenced by scYampiDesertDropScoopGem().

Definition at lines 170 and 1512 of file yampi_desert.c.

scYampiDesertClearRaisedCue

void scYampiDesertClearRaisedCue(void)

Clears the cue the scorpion has raised.

References YampiDesertRaisedCue.

Referenced by scInit(), scYampiDesertCornerScorpion(), scYampiDesertSetUpKingScorpionRoomScorpion(), scYampiDesertSetUpPsynergyStoneScorpion(), scYampiDesertSetUpTrappedScorpion(), scYampiDesertStirScorpion() and scYampiDesertStirScorpionAgain().

Definition at lines 172 and 1871 of file yampi_desert.c.

scYampiDesertPlayScorpionRumble

void scYampiDesertPlayScorpionRumble(void)

While the King Scorpion roams buried, a rumble every five ticks, but not while Psynergy is being cast, nor while Felix travels as Sand with a direction held.

References MainRoutineStateWork, PerWork, sySoundPlay() and TickCount.

Referenced by scYampiDesertCornerScorpion(), scYampiDesertSetUpKingScorpionRoomScorpion(), scYampiDesertSetUpPsynergyStoneScorpion(), scYampiDesertSetUpTrappedScorpion(), scYampiDesertStirScorpion() and scYampiDesertStirScorpionAgain().

Definition at lines 173 and 1859 of file yampi_desert.c.

scYampiDesertSetUpPsynergyStoneScorpion

void scYampiDesertSetUpPsynergyStoneScorpion(void)

Readies the Psynergy Stone room's King Scorpion and the sand ripple that follows it under the sand, and sets the scorpion on its round unless the party is back from a battle.

References fdActorGetById(), scFieldSetTickEvent(), scYampiDesertBuryScorpion(), scYampiDesertClearRaisedCue(), scYampiDesertPlayScorpionRumble(), scYampiDesertRippleFollowsScorpion(), scYampiDesertScorpionRoamsPsynergyStoneRoom(), syGameFlagGet() and sySetEvent().

Referenced by scYampiDesertSetUpPsynergyStone().

Definition at lines 174 and 1990 of file yampi_desert.c.

scYampiDesertSetStakeSunk

void scYampiDesertSetStakeSunk(Sint32 id)

Sets up a stake that stands sunk to its top from the start: drawn underfoot and behind the party in its sunk wooden pose, with no shadow, and neither moving nor colliding.

References fdActorDisableById(), fdActorGetById(), fdActorSetAnimationById(), fdActorSetSpritePriority() and Sint32.

Referenced by scYampiDesertSetUpKingScorpion() and scYampiDesertSetUpPsynergyStone().

Definition at lines 175 and 2542 of file yampi_desert.c.

scYampiDesertCheckUpperLevelFromLower

void scYampiDesertCheckUpperLevelFromLower(void)

Notes whether the leader has climbed above the lower level.

References fdActorGetById() and MainRoutineStateWork.

Referenced by scYampiDesertSetUpPsynergyStone().

Definition at lines 176 and 1807 of file yampi_desert.c.

scYampiDesertSetPosAndFacing

static inline void scYampiDesertSetPosAndFacing(Sint32 actorId, Sint32 x, Sint32 z, Uint16 facing)

Places an actor at (x, z) on the ground, facing a direction.

References fdActorSetHorizontalPosAndAngleWithTerrain() and Sint32.

Referenced by scYampiDesertLandAndFightKingScorpion(), scYampiDesertSetUpKingScorpionRoomScorpion(), scYampiDesertSetUpSpring(), scYampiDesertSetUpTrappedScorpion(), scYampiDesertTrapKingScorpion() and scYampiDesertTravelersLookUp().

Definition at line 180 of file yampi_desert.c.

scYampiDesertPlaceRope

static inline void scYampiDesertPlaceRope(Sint32 index, Sint32 flag, Sint32 post, Sint32 otherPost)

Places a rope between two posts.

References fdRopePlace() and Sint32.

Referenced by scYampiDesertSetUpSandSlides().

Definition at line 187 of file yampi_desert.c.

scYampiDesertDigUpTreasure

static inline void scYampiDesertDigUpTreasure(Sint32 mode, Sint32 actorId, Sint32 flag)

Scoop digs up a buried treasure: with mode RETURN_HOME_DUG_UP, the hidden item comes up at its home and its flag is set (fdActorReturnHome).

References fdActorReturnHome() and Sint32.

Referenced by scYampiDesertDigUpCoins().

Definition at line 195 of file yampi_desert.c.

scYampiDesertRippleFollowsScorpion

void scYampiDesertRippleFollowsScorpion(void)

Keeps the ripple of sand over the buried King Scorpion.

References fdActorGetById(), MainRoutineStateWork, YampiDesertRaisedCue and YampiDesertSandRipple.

Referenced by scYampiDesertSetUpKingScorpionRoomScorpion(), scYampiDesertSetUpPsynergyStoneScorpion(), scYampiDesertSetUpTrappedScorpion(), scYampiDesertStirScorpion() and scYampiDesertStirScorpionAgain().

Definition at lines 296 and 1574 of file yampi_desert.c.

scYampiDesertScorpionUsesScoop

void scYampiDesertScorpionUsesScoop(void)

The trapped King Scorpion digs its way out with Scoop.

References fdBattleEffectStopMainActor(), fdPsynergyEnd(), fdPsynergyLoadResources(), fdPsynergyRunHandler(), fdPsynergySetupActorPair(), fdPsynergyStartCast(), scFieldSetTickEvent(), scYampiDesertOpenScoopHole() and syCloseEvent().

Referenced by scYampiDesertTrapKingScorpion().

Definition at lines 304 and 2220 of file yampi_desert.c.

scYampiDesertMetatileCenter

Sint32 scYampiDesertMetatileCenter(Sint32 metatile) __attribute__((const))

Sint32 scYampiDesertMetatileCenter(Sint32 metatile)

The centre of a metatile's column or row, in pixels.

References Sint32.

Definition at lines 306 and 1129 of file yampi_desert.c.

scYampiDesertSetUpEntrance

void scYampiDesertSetUpEntrance(void)

Sets up the entrance: its stakes, and the way in it was entered by.

References fdEffectStartBlankOverlay(), MainRoutineStateWork, scYampiDesertPlaceStakes(), syGameFlagClear(), syGameFlagSet() and YampiDesertEntranceStakes.

Referenced by scInit().

Definition at lines 308 and 2450 of file yampi_desert.c.

scYampiDesertSetUpSpring

void scYampiDesertSetUpSpring(void)

The travelers are gone once the Madrans have reached Alhafra (FLAG_ALHAFRA_MADRANS_ARRIVED); once met (FLAG_YAMPI_DESERT_TRAVELERS_MET) they stand about the spring.

References scYampiDesertCheckUpperLevel(), scYampiDesertOpenLadderPit(), scYampiDesertSetPosAndFacing(), Sint32, syGameFlagGet() and sySetEvent().

Referenced by scInit().

Definition at lines 309 and 2465 of file yampi_desert.c.

scYampiDesertSetUpBlitz

void scYampiDesertSetUpBlitz(void)

Sets up Blitz's room: its stakes and the events that layer them.

References scFieldSetTickEvent(), scYampiDesertCheckUpperLevel(), scYampiDesertLayerStakesWithLeader(), scYampiDesertPlaceStakes(), scYampiDesertStepOntoStakeTops(), syGameFlagGet(), sySynch() and YampiDesertBlitzStakes.

Referenced by scInit().

Definition at lines 310 and 2527 of file yampi_desert.c.

scYampiDesertSetUpPsynergyStone

void scYampiDesertSetUpPsynergyStone(void)

Sets up the Psynergy Stone's room: its stakes, the four that stand sunk in its north part from the start, and the King Scorpion until it has been stirred.

References fdEffectStartBlankOverlay(), fdScriptGetFlag(), MainRoutineStateWork, scYampiDesertCheckUpperLevelFromLower(), scYampiDesertPlaceStakes(), scYampiDesertSetStakeSunk(), scYampiDesertSetUpPsynergyStoneScorpion(), scYampiDesertStepOntoStakeTops(), sySetEvent(), sySynch() and YampiDesertPsynergyStoneStakes.

Referenced by scInit().

Definition at lines 311 and 2553 of file yampi_desert.c.

scYampiDesertSetUpKingScorpion

void scYampiDesertSetUpKingScorpion(void)

Sets up the King Scorpion's room: its stakes; in the south part, the King Scorpion once stirred from the Psynergy Stone's room; in the north, the ten stakes of the trap, and the scorpion until it is beaten, or the hole it leaves in the ring of rocks, which shows sand once the geyser is dug.

References fdEffectStartBlankOverlay(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatileTilesIndicesRect(), MainRoutineStateWork, scYampiDesertPlaceStakes(), scYampiDesertSetStakeSunk(), scYampiDesertSetUpKingScorpionRoomScorpion(), scYampiDesertSetUpTrappedScorpion(), syGameFlagGet() and YampiDesertKingScorpionStakes.

Referenced by scInit().

Definition at lines 312 and 2585 of file yampi_desert.c.

scYampiDesertSetUpPuddles

void scYampiDesertSetUpPuddles(void)

Sets up the puddles room, north of the spring: its 315 coins stay hidden until dug up.

References fdActorSetWideSprite(), fdEffectStartBlankOverlay() and syGameFlagGet().

Referenced by scInit().

Definition at lines 313 and 2645 of file yampi_desert.c.

scYampiDesertSetUpSandSlides

void scYampiDesertSetUpSandSlides(void)

Sets up the sand slides: its rope, sign and flowing sand, and the way in it was entered by. Entered from the Yampi Desert Cave, it sends Retreat to the World Map door the party last came in by (not in the Japanese edition).

References fdActorGetById(), fdQueueMusic(), fdRopeInit(), MainRoutineStateWork, scYampiDesertPlaceRope(), scYampiDesertSetUpSandSlidesBlocks(), scYampiDesertUpdateSandFlow(), syGameFlagClear(), syGameFlagGet(), syGameFlagSet() and sySetEvent().

Referenced by scInit().

Definition at lines 314 and 2655 of file yampi_desert.c.

scYampiDesertSetUpSouthExit

void scYampiDesertSetUpSouthExit(void)

Sets up the south exit, with its hidden Psynergy Stone, and the way in it was entered by.

References fdActorGetById(), MainRoutineStateWork, syGameFlagClear() and syGameFlagSet().

Referenced by scInit().

Definition at lines 315 and 2707 of file yampi_desert.c.

scYampiDesertSetUpScorpionPit

void scYampiDesertSetUpScorpionPit(void)

Sets up the scorpion pit: dropped in, the King Scorpion's battle; back from it, the Scoop Gem; and the geyser between the four rocks once dug.

References fdMapGridCopyMetatileTilesIndicesRect(), MainRoutineStateWork, scGeyserAdd(), scGeyserStart(), scYampiDesertDropScoopGem(), scYampiDesertLandAndFightKingScorpion(), syGameFlagGet(), syGameFlagSet() and sySynch().

Referenced by scInit().

Definition at lines 316 and 2755 of file yampi_desert.c.

scYampiDesertSetUpSpringCave

void scYampiDesertSetUpSpringCave(void)

Sets up the cave under the spring: it opens through a window transition.

Referenced by scInit().

Definition at lines 317 and 2784 of file yampi_desert.c.

scYampiDesertSetUpCavern

void scYampiDesertSetUpCavern(void)

Sets up the cavern: its stake and its flowing sand.

References fdQueueMusic(), scFieldSetTickEvent(), scYampiDesertPlaceStakes(), scYampiDesertSetUpCavernBlocks(), scYampiDesertUpdateSandFlow() and YampiDesertCavernStakes.

Referenced by scInit().

Definition at lines 318 and 2791 of file yampi_desert.c.

scYampiDesertDropScoopGem

void scYampiDesertDropScoopGem(void)

Back in the pit after the battle, Felix raises his arms with the Scoop Gem the King Scorpion left, its icon shown while the gem is given to the party.

References fdActorRelease(), fdActorSetAnimationById(), fdActorSetPosAndResetMotion(), fdPartyInventoryGiveItem(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldScriptWait(), scYampiDesertCreateScoopGem(), syGameFlagSet() and sySynch().

Referenced by scYampiDesertSetUpScorpionPit().

Definition at lines 319 and 1549 of file yampi_desert.c.

scYampiDesertTalkToElder

void scYampiDesertTalkToElder(void)

The elder, before the party is seen from the ledge: the first time, he refuses to quit (scYampiDesertElderRefusesToQuit); then he says this is where his son must prove himself as mayor.

References fdActorFaceActorById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, scYampiDesertElderRefusesToQuit(), Sint32 and syGameFlagSet().

Referenced by YampiDesertSpringCues.

Definition at lines 320 and 529 of file yampi_desert.c.

scYampiDesertReadSign

void scYampiDesertReadSign(void)

The sign in the sand slides reads: north to Alhafra, south to Air's Rock, with a warning about what lies beyond.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and Sint32.

Referenced by YampiDesertSandSlidesCues.

Definition at lines 321 and 545 of file yampi_desert.c.

scYampiDesertStepOffStakeTops

void scYampiDesertStepOffStakeTops(void)

Nothing visible happens when Felix steps back down off the stakes' tops; the game makes the standing stakes walls again at ground level.

References fdActorGetById(), fdActorGetMetatileIndex(), fdMapGetTerrainHeight(), fdMapGridGetTerrainKind(), fdMapShapeFindOrAdd(), MainRoutineStateWork, MapShapeGrid, Sint32, syGameFlagClear(), syGameFlagGet(), YampiDesertBlitzStakes, YampiDesertKingScorpionStakes and YampiDesertPsynergyStoneStakes.

Referenced by YampiDesertBlitzCues and YampiDesertPsynergyStoneCues.

Definition at lines 322 and 657 of file yampi_desert.c.

scYampiDesertCastSand

void scYampiDesertCastSand(void)

As Sand melts Felix into the sand, so that he can travel under it past rocks and standing stakes, the stakes Pound has hammered down still bar his way underground. He moves on the map's top layer while sunk, and each sunk stake's metatile there is made a wall.

References fdActorGetById(), MainRoutineStateWork, scYampiDesertBlockPoundedStakes(), YampiDesertBlitzStakes, YampiDesertEntranceStakes, YampiDesertKingScorpionStakes and YampiDesertPsynergyStoneStakes.

Referenced by YampiDesertBlitzCues, YampiDesertCavernCues, YampiDesertEntranceCues, YampiDesertKingScorpionCues, YampiDesertPsynergyStoneCues, YampiDesertPuddlesCues, YampiDesertSandPassCues, YampiDesertSandSlidesCues, YampiDesertScorpionPitCues and YampiDesertSpringCues.

Definition at lines 323 and 741 of file yampi_desert.c.

scYampiDesertEndSand

void scYampiDesertEndSand(void)

As Sand ends and Felix rises out of the sand, the sunk stakes' metatiles are sand again under him.

References fdActorGetById(), MainRoutineStateWork, scYampiDesertOpenStakeMetatiles(), YampiDesertBlitzStakes, YampiDesertEntranceStakes, YampiDesertKingScorpionStakes and YampiDesertPsynergyStoneStakes.

Referenced by YampiDesertBlitzCues, YampiDesertCavernCues, YampiDesertEntranceCues, YampiDesertKingScorpionCues, YampiDesertPsynergyStoneCues, YampiDesertPuddlesCues, YampiDesertSandPassCues, YampiDesertSandSlidesCues, YampiDesertScorpionPitCues and YampiDesertSpringCues.

Definition at lines 324 and 760 of file yampi_desert.c.

scYampiDesertWatchScorpionStop

void scYampiDesertWatchScorpionStop(void)

After a stake is Pounded while the King Scorpion roams under the sand, the camera follows the ripple of sand over it until it stops, then returns to Felix.

References fdActorWatchAndSetScript(), fdCameraFollowActor(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, sySynch() and YampiDesertRaisedCue.

Referenced by YampiDesertKingScorpionCues and YampiDesertPsynergyStoneCues.

Definition at lines 325 and 780 of file yampi_desert.c.

scYampiDesertStirScorpion

void scYampiDesertStirScorpion(void)

When the King Scorpion, roaming under the sand of the Psynergy Stone's room, stops against the stake Pound has hammered down, it bursts out of the sand with a spray, scuttles east and burrows away into the next room.

References fdActorGetById(), fdActorMoveToAndWaitById(), fdActorSetSpriteColor(), fdActorSetSpriteFlags(), fdActorStop(), fdActorWalkToAndWaitById(), fdActorWatchAndSetScript(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scFieldScriptWait(), scYampiDesertBurstSand(), scYampiDesertClearRaisedCue(), scYampiDesertPlayScorpionRumble(), scYampiDesertRippleFollowsScorpion(), syCloseEvent(), syGameFlagSet(), sySoundPlay() and sySynch().

Referenced by YampiDesertPsynergyStoneCues.

Definition at lines 326 and 856 of file yampi_desert.c.

scYampiDesertStirScorpionAgain

void scYampiDesertStirScorpionAgain(void)

When the King Scorpion, roaming under the sand of the south part of its own room, stops against the stake Pound has hammered down, it bursts out of the sand with a spray and scuttles north, burrowing away towards the trap.

References fdActorGetById(), fdActorMoveToAndWait(), fdActorMoveToAndWaitById(), fdActorSetSpriteColor(), fdActorSetSpriteFlags(), fdActorStop(), fdActorWalkToAndWait(), fdActorWatchAndSetScript(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scFieldScriptWait(), scYampiDesertBurstSand(), scYampiDesertClearRaisedCue(), scYampiDesertPlayScorpionRumble(), scYampiDesertRippleFollowsScorpion(), syCloseEvent(), syGameFlagSet(), sySoundPlay() and sySynch().

Referenced by YampiDesertKingScorpionCues.

Definition at lines 327 and 899 of file yampi_desert.c.

scYampiDesertCornerScorpion

void scYampiDesertCornerScorpion(void)

When the stakes of the trap have shut the King Scorpion's way, the camera follows its ripple of sand north into the ring of rocks at the north end of its room, where it stops, cornered.

References fdActorFaceDirectionById(), fdActorMoveToAndWait(), fdActorMoveToAndWaitById(), fdActorStop(), fdActorWatchAndSetScript(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scFieldScriptWait(), scYampiDesertClearRaisedCue(), scYampiDesertPlayScorpionRumble(), syCloseEvent() and syGameFlagSet().

Referenced by YampiDesertKingScorpionCues.

Definition at lines 328 and 941 of file yampi_desert.c.

scYampiDesertTrapKingScorpion

void scYampiDesertTrapKingScorpion(void)

Walking up to the cornered King Scorpion in the ring of rocks at the north of its room (metatile (14, 13)): its ripple of sand pulses, Felix stops with a question mark, and the scorpion bursts out before him and uses Scoop. Felix staggers back, raises his arms and sinks into the hole with it, and they drop into its pit below, where its battle begins.

References fdActorFaceDirectionAndRefreshById(), fdActorFaceDirectionById(), fdActorGetById(), fdActorMoveToAndWaitById(), fdActorSetAnimationById(), fdActorSetSpriteColor(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorShowEmoteById(), fdActorWalkToAndWaitById(), fdEffectSetAttached(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldScriptWait(), scYampiDesertBurstSand(), scYampiDesertRaiseSandCloud(), scYampiDesertScorpionUsesScoop(), scYampiDesertSetPosAndFacing(), syGameFlagGet(), syImportScriptSetExitRequest(), sySoundPlay(), sySynch() and YampiDesertSandRipple.

Referenced by YampiDesertKingScorpionCues.

Definition at lines 329 and 1002 of file yampi_desert.c.

scYampiDesertRevealRockHint

void scYampiDesertRevealRockHint(void)

Reveal cast in the sand slides changes two rings of rocks while it lasts: the first (metatiles (15, 40) to (19, 45)), three rows of three rocks, shifts into an arrow of rocks pointing north-west (a row along the top, a short column down its west end and a line running down to the south-east from their corner), and the second (metatiles (36, 25) to (40, 29)) shows the Lucky Medal's chest in its middle. If Felix stands where a rock now appears, he is moved to the nearest open metatile.

References fdActorGetById(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatileTilesIndicesRect(), MainRoutineStateWork and Sint32.

Referenced by YampiDesertSandSlidesCues.

Definition at lines 330 and 1150 of file yampi_desert.c.

scYampiDesertHideRockHint

void scYampiDesertHideRockHint(void)

As Reveal fades in the sand slides, both rings of rocks go back as they were and the Lucky Medal's chest is hidden again; Felix is moved off any metatile a rock returns to.

References fdActorGetById(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatileTilesIndicesRect(), MainRoutineStateWork and Sint32.

Referenced by YampiDesertSandSlidesCues.

Definition at lines 331 and 1213 of file yampi_desert.c.

scYampiDesertRevealPsynergyStone

void scYampiDesertRevealPsynergyStone(void)

Reveal cast in the south exit, leading from the sand slides to the World Map, brings out a hidden Psynergy Stone at metatile (18, 15), moving Felix a metatile south if he stands on its spot. Once Reveal fades the stone is gone again (scYampiDesertHidePsynergyStone), so it has to be touched while Reveal lasts.

References fdActorGetById() and MainRoutineStateWork.

Referenced by YampiDesertSouthExitCues.

Definition at lines 332 and 1253 of file yampi_desert.c.

scYampiDesertShowBlocks

void scYampiDesertShowBlocks(void)

Nothing visible happens when Felix steps onto the sand round the corner of the flowing sand in the sand slides (metatiles (48, 23) to (51, 23) and (48, 24) to (48, 26)) after the inner corner has stopped drawing the two blocks at metatiles (51, 26) and (51, 27): the game draws them again. The room's set-up hid both with scActorHide, see-through and out of play, so drawn or not they stop nothing and show nothing.

References scYampiDesertSetBlocksShown() and syGameFlagSet().

Referenced by YampiDesertSandSlidesCues.

Definition at lines 333 and 1317 of file yampi_desert.c.

scYampiDesertClimbRevealedLadder

void scYampiDesertClimbRevealedLadder(void)

Walking into the hole Scoop has dug in the sand puddle at the south of the spring's room (metatile (8, 32)), holding the pad towards it, Felix climbs down its ladder, facing north, into the cave under the spring.

References fdActorGetById(), MainRoutineStateWork, PerWork, scYampiDesertClimbDownLadder(), Sint32 and syGameFlagGet().

Referenced by YampiDesertSpringCues.

Definition at lines 334 and 2295 of file yampi_desert.c.

scYampiDesertClimbDownSpringCaveLadder

void scYampiDesertClimbDownSpringCaveLadder(void)

Walking north into the ladder of the small chamber of the cave under the spring, Felix climbs down it to the cave below.

References fdActorGetById(), MainRoutineStateWork and scYampiDesertClimbDownLadder().

Referenced by YampiDesertSpringCaveCues.

Definition at lines 335 and 2332 of file yampi_desert.c.

scYampiDesertFightBlitz

void scYampiDesertFightBlitz(void)

Talking to Blitz, the Jupiter Djinni at the top of the cliff in its room, starts its battle.

References fdRequestDjinnBattle().

Referenced by YampiDesertBlitzCues.

Definition at lines 347 and 2908 of file yampi_desert.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

Where the party can enter: the cave under the spring has its own entrances.

References MainRoutineStateWork, SceneEntrances and YampiDesertSpringCaveEntrances.

Definition at line 353 of file yampi_desert.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

The regions of the rooms whose exits are boxes: the scorpion pit and the cave under the spring.

References MainRoutineStateWork, YampiDesertScorpionPitExitRegions and YampiDesertSpringCaveExitRegions.

Definition at line 362 of file yampi_desert.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 373 of file yampi_desert.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

The current room's actors; in the spring's room, the travelers stand about the spring once the party has seen them.

References MainRoutineStateWork, syGameFlagGet(), YampiDesertBlitzActorPlacements, YampiDesertCavernActorPlacements, YampiDesertEntranceActorPlacements, YampiDesertKingScorpionActorPlacements, YampiDesertPlacements, YampiDesertPsynergyStoneActorPlacements, YampiDesertSandSlidesActorPlacements, YampiDesertScorpionPitActorPlacements, YampiDesertSpringActorPlacements and YampiDesertSpringActorPlacementsAfterMeeting.

Definition at line 391 of file yampi_desert.c.

scYampiDesertDigUpCoins

void scYampiDesertDigUpCoins(Sint32 mode)

Scoop on the sand puddle on the east side of the room north of the spring (metatile (24, 23)) digs up 315 coins: "Felix got 315 coins."

References scYampiDesertDigUpTreasure() and Sint32.

Referenced by YampiDesertPuddlesCues.

Definition at line 420 of file yampi_desert.c.

scGetCues

const CUE *scGetCues(void)

The current room's cues.

References MainRoutineStateWork, YampiDesertBlitzCues, YampiDesertCavernCues, YampiDesertCues, YampiDesertEntranceCues, YampiDesertKingScorpionCues, YampiDesertPsynergyStoneCues, YampiDesertPuddlesCues, YampiDesertSandPassCues, YampiDesertSandSlidesCues, YampiDesertScorpionPitCues, YampiDesertSouthExitCues, YampiDesertSpringCaveCues and YampiDesertSpringCues.

Definition at line 441 of file yampi_desert.c.

scYampiDesertTalkToTraveler

void scYampiDesertTalkToTraveler(void)

The traveler who followed the pirates from Madra asks whether the party is going to Alhafra too.

References fdScriptAskYesNo(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptStart() and Sint32.

Referenced by YampiDesertSpringCues.

Definition at lines 474 and 2909 of file yampi_desert.c.

scYampiDesertTalkToElderAboutWay

void scYampiDesertTalkToElderAboutWay(void)

The traveler who would turn back, before the party is seen from the ledge: the first time, the elder refuses to quit (scYampiDesertElderRefusesToQuit); then the traveler says how insistent the elder is on finding a way through.

References fdActorFaceActorById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, scYampiDesertElderRefusesToQuit(), Sint32 and syGameFlagSet().

Referenced by YampiDesertSpringCues.

Definition at lines 510 and 2910 of file yampi_desert.c.

scYampiDesertPoundEntranceStake

void scYampiDesertPoundEntranceStake(Sint32 mode, Sint32 count)

Pound on one of the wooden stakes of the desert's entrance hammers it down into the sand; the one before the Guardian Ring's chest in the south-east corner opens the way to it.

References fdPoundSinkTarget(), Sint32 and YampiDesertEntranceStakes.

Referenced by YampiDesertEntranceCues.

Definition at line 557 of file yampi_desert.c.

scYampiDesertPoundBlitzStake

void scYampiDesertPoundBlitzStake(Sint32 mode, Sint32 count)

Pound on one of the wooden stakes in Blitz's room hammers it down into the sand. The last one stands before the climbable wall that leads up to Blitz; the one below the Antidote's chest is best left standing, as its top is the way across.

References fdPoundSinkTarget(), Sint32 and YampiDesertBlitzStakes.

Referenced by YampiDesertBlitzCues.

Definition at line 566 of file yampi_desert.c.

scYampiDesertPoundPsynergyStoneStake

DEFINE_POUND_STAKE_STOPPING_SCORPION(scYampiDesertPoundPsynergyStoneStake, YampiDesertPsynergyStoneStakes)

Pound on one of the wooden stakes in the Psynergy Stone's room hammers it down into the sand. While the King Scorpion still roams under the sand, the camera then follows the ripple of sand over it until it stops.

Referenced by YampiDesertPsynergyStoneCues.

Definition at line 588 of file yampi_desert.c.

scYampiDesertPoundCavernStake

void scYampiDesertPoundCavernStake(Sint32 mode, Sint32 count)

Pound on the cavern's wooden stake, before the Blow Mace's chest, hammers it down into the sand.

References fdPoundSinkTarget(), Sint32 and YampiDesertCavernStakes.

Referenced by YampiDesertCavernCues.

Definition at line 593 of file yampi_desert.c.

scYampiDesertPoundKingScorpionStake

DEFINE_POUND_STAKE_STOPPING_SCORPION(scYampiDesertPoundKingScorpionStake, YampiDesertKingScorpionStakes)

Pound on one of the wooden stakes in the King Scorpion's room hammers it down into the sand. Until the King Scorpion is cornered, the camera then follows the ripple of sand over it until it stops.

Referenced by YampiDesertKingScorpionCues.

Definition at line 601 of file yampi_desert.c.

scYampiDesertBurstSand

void scYampiDesertBurstSand(Sint32 x, Sint32 y, Sint32 z)

A burst of sand at (x, y, z): its grains thrown east, south, west and north in turn, each a little off at random.

References scEffectAdvanceMotionAtLeaderPriority(), scFieldEffectSpawn(), Sint32, syCos(), syRandom() and sySin().

Referenced by scYampiDesertLandAndFightKingScorpion(), scYampiDesertStirScorpion(), scYampiDesertStirScorpionAgain() and scYampiDesertTrapKingScorpion().

Definition at line 824 of file yampi_desert.c.

scYampiDesertRaiseSandCloud

void scYampiDesertRaiseSandCloud(void)

Raises a cloud of dust twice at each point of YampiDesertSandCloudPoints, each moved by -2 to +1 pixels at random, and draws the hole the King Scorpion's Scoop leaves in the ring of rocks at metatile (13, 9), on the middle layer, whose cells the room's map keeps 64 columns east.

References fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdActorStartScript(), fdMapGridCopyMetatileTilesIndicesRect(), Sint32, syImportActorCreate(), YampiDesertSandCloudDrifts and YampiDesertSandCloudPoints.

Referenced by scYampiDesertTrapKingScorpion().

Definition at line 967 of file yampi_desert.c.

scYampiDesertOpenGeyser

void scYampiDesertOpenGeyser(Sint32 mode)

Scoop on the sand between the four rocks in the middle of the King Scorpion's pit (metatile (14, 12)) opens a geyser there, a column of water that rises and falls and carries the party up and out of the pit.

References fdActorGetById(), fdMapGetTerrainHeight(), fdMapGridCopyMetatileTilesIndicesRect(), Sint32 and syGameFlagSet().

Referenced by YampiDesertScorpionPitCues.

Definition at line 1111 of file yampi_desert.c.

scYampiDesertHidePsynergyStone

void scYampiDesertHidePsynergyStone(void)

As Reveal fades, the south exit's hidden Psynergy Stone is put away again.

References fdActorGetById().

Referenced by YampiDesertSouthExitCues.

Definition at lines 1271 and 2912 of file yampi_desert.c.

scYampiDesertScoopLadderPit

void scYampiDesertScoopLadderPit(Sint32 mode)

Scoop on the oddly shaped sand puddle at the south of the travelers' spring's room (metatile (8, 32)) digs it out to show a ladder going down.

References scYampiDesertOpenLadderPit(), Sint32 and syGameFlagSet().

Referenced by YampiDesertSpringCues.

Definition at line 1287 of file yampi_desert.c.

scYampiDesertTravelersLookUp

void scYampiDesertTravelersLookUp(Sint32 metatile)

Stepping out onto the ledge above the travelers' spring (metatiles (15, 12) and (16, 12)), the party is seen from below: "Hey! Look! Up there!" The travelers wonder how they got up there, the mayor finds the way, and they all run off along it.

References Call1(), fdActorFaceDirection(), fdActorJump(), fdActorSetAnimationAndWait(), fdActorSetAnimationById(), fdActorSetMovementTypeAndWaitById(), fdActorSetMovementTypeById(), fdActorShowEmote(), fdActorShowEmoteById(), fdActorStop(), fdActorWatchAndSetScript(), fdCameraGetActor(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, scFieldActorShowEmote(), scFieldScriptWait(), scYampiDesertSetPosAndFacing(), Sint32, syGameFlagSet(), sySynch(), YampiDesertLastTravelersFollow, YampiDesertMayorRunsAhead and YampiDesertTravelersFollow.

Referenced by YampiDesertSpringCues.

Definition at line 1342 of file yampi_desert.c.

scYampiDesertCarryLeader

void scYampiDesertCarryLeader(ACTOR *actor, FIXED dx, FIXED dz)

The flowing sand carries the leader by (dx, dz), hiding his shadow and, unless he travels as Sand, throwing up a puff of dust every other tick; with no direction held, it draws him to the middle of its metatiles.

The puff is moved as a field effect (scEffectAdvanceMotionAtLeaderPriority), which reads the actor's bounce, gravity and sceneWord as its velocity and its timer as its spin: it drifts with the flow plus a push a pixel a tick toward a random quarter turn, the flow counted twice with B held and the push halved with the pad let go.

References fdActorGetById(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdActorStartScript(), MainRoutineStateWork, PerWork, scEffectAdvanceMotionAtLeaderPriority(), Sint32, syCos(), syImportActorCreate(), sySin(), TickCount, Value4() and YampiDesertFlowDust.

Referenced by scYampiDesertUpdateSandFlow().

Definition at line 1604 of file yampi_desert.c.

scYampiDesertCheckUpperLevelOnRise

void scYampiDesertCheckUpperLevelOnRise(void)

Unused: notes whether the leader stands high on the metatiles of METATILE_BEHAVIOR_YAMPI_DESERT_RISE.

References fdActorGetById(), fdActorGetMetatileIndex(), MainRoutineStateWork and Sint32.

Definition at line 1819 of file yampi_desert.c.

scYampiDesertCheckLeaderNearPit

void scYampiDesertCheckLeaderNearPit(void)

Unused: notes whether the leader stands near the scorpion pit's middle, where opening a menu raises a cue.

References fdActorGetById(), MainRoutineStateWork, syGameFlagClear() and syGameFlagSet().

Definition at line 1844 of file yampi_desert.c.

scYampiDesertHasArrived

Bool scYampiDesertHasArrived(ACTOR *actor)

Whether an actor has no move target left.

References Sint32.

Referenced by scYampiDesertScorpionRoamsKingScorpionRoom(), scYampiDesertScorpionRoamsPsynergyStoneRoom() and scYampiDesertScorpionRoamsToTrap().

Definition at line 1878 of file yampi_desert.c.

scYampiDesertScorpionRoamsPsynergyStoneRoom

void scYampiDesertScorpionRoamsPsynergyStoneRoom(ACTOR *actor)

The buried King Scorpion's round in the Psynergy Stone's room, a loop of steps, two to each point: an even step sends it toward the point, the odd one after waits for it there. Once Pound has sunk stake 3, it stops at the stake's south side and raises RAISED_STIR_SCORPION.

References scYampiDesertHasArrived(), syGameFlagGet() and YampiDesertRaisedCue.

Referenced by scYampiDesertSetUpPsynergyStoneScorpion().

Definition at line 1928 of file yampi_desert.c.

scYampiDesertBuryScorpion

static inline void scYampiDesertBuryScorpion(ACTOR *scorpion, Sint32 scorpionId, Sint32 rippleId)

Buries a room's King Scorpion: it and its sand ripple are hidden, stopped and passable, drawn at priority 3 and following the ground, the ripple under the party's feet and kept in YampiDesertSandRipple, and the scorpion's speed is set to 1.6.

References fdActorDisableById(), fdActorGetById(), fdActorSetSpriteColor(), fdActorSetSpritePriority(), Sint32 and YampiDesertSandRipple.

Referenced by scYampiDesertSetUpKingScorpionRoomScorpion() and scYampiDesertSetUpPsynergyStoneScorpion().

Definition at line 1964 of file yampi_desert.c.

scYampiDesertScorpionRoamsKingScorpionRoom

void scYampiDesertScorpionRoamsKingScorpionRoom(ACTOR *actor)

The buried King Scorpion's round in the King Scorpion's room, about stake 0: once Pound has sunk the stake, it stops at its east side and raises RAISED_STIR_SCORPION_AGAIN, or, past that point, keeps from step 32 to a small loop south of it.

References scYampiDesertHasArrived(), syGameFlagGet() and YampiDesertRaisedCue.

Referenced by scYampiDesertSetUpKingScorpionRoomScorpion().

Definition at line 2011 of file yampi_desert.c.

scYampiDesertSetUpKingScorpionRoomScorpion

void scYampiDesertSetUpKingScorpionRoomScorpion(void)

scYampiDesertSetUpPsynergyStoneScorpion's counterpart in the King Scorpion's room, which also places the scorpion at the start of its round.

References fdActorGetById(), scFieldSetTickEvent(), scYampiDesertBuryScorpion(), scYampiDesertClearRaisedCue(), scYampiDesertPlayScorpionRumble(), scYampiDesertRippleFollowsScorpion(), scYampiDesertScorpionRoamsKingScorpionRoom(), scYampiDesertSetPosAndFacing(), syGameFlagGet() and sySetEvent().

Referenced by scYampiDesertSetUpKingScorpion().

Definition at line 2071 of file yampi_desert.c.

scYampiDesertScorpionRoamsToTrap

void scYampiDesertScorpionRoamsToTrap(ACTOR *actor)

The buried King Scorpion's round in the King Scorpion's room once stirred again, between stakes 1 and 2 of the trap: stopped by stake 2 sunk to its west, it loops east of that stake from step 32, by stake 1 sunk to its east, west of that stake from step 48, and by stake 1 sunk to its north, east of stake 2 from step 34; reaching stake 2's north side once that is sunk, it is cornered and raises RAISED_CORNER_SCORPION.

References scYampiDesertHasArrived(), syGameFlagGet() and YampiDesertRaisedCue.

Referenced by scYampiDesertSetUpTrappedScorpion().

Definition at line 2098 of file yampi_desert.c.

scYampiDesertSetUpTrappedScorpion

void scYampiDesertSetUpTrappedScorpion(void)

scYampiDesertSetUpPsynergyStoneScorpion's counterpart in the King Scorpion's room once it is stirred again: once the scorpion is cornered (FLAG_YAMPI_DESERT_SCORPION_CORNERED) it is placed facing south; otherwise, unless the party is back from a battle (FLAG_KEEP_PARTY_POSITION), it is placed and given the update scYampiDesertScorpionRoamsToTrap.

References fdActorDisableById(), fdActorGetById(), fdActorSetSpriteColor(), fdActorSetSpritePriority(), scFieldSetTickEvent(), scYampiDesertClearRaisedCue(), scYampiDesertPlayScorpionRumble(), scYampiDesertRippleFollowsScorpion(), scYampiDesertScorpionRoamsToTrap(), scYampiDesertSetPosAndFacing(), syGameFlagGet(), sySetEvent() and YampiDesertSandRipple.

Referenced by scYampiDesertSetUpKingScorpion().

Definition at line 2165 of file yampi_desert.c.

scYampiDesertSetUpSandSlidesBlocks

void scYampiDesertSetUpSandSlidesBlocks(void)

Hides the sand slides' unseen blocks.

References scActorHide() and scYampiDesertRestoreBlocks().

Referenced by scYampiDesertSetUpSandSlides().

Definition at line 2250 of file yampi_desert.c.

scYampiDesertLandAndFightKingScorpion

void scYampiDesertLandAndFightKingScorpion(void)

Felix and the King Scorpion drop into its pit and land in bursts of sand; the scorpion cries out, raises its claws and leaps at him, and its battle begins, one the party cannot run from.

References fdActorFaceDirectionById(), fdActorGetById(), fdActorMoveToAndWaitById(), fdActorSetAnimationAndWait(), fdActorSetAnimationById(), fdActorSetSpriteFlags(), fdEffectSetAttached(), fdMapGridCenterOnFollowedPoint(), fdRequestBattleFromEncounterTable(), fdScriptEndLastingPsynergy(), fdScriptSetAfterBattleDestination(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldScriptWait(), scYampiDesertBurstSand(), scYampiDesertSetPosAndFacing(), sySoundPlay() and sySynch().

Referenced by scYampiDesertSetUpScorpionPit().

Definition at line 2344 of file yampi_desert.c.

scInit

Sint32 scInit(void)

Clears the scorpion's sand ripple and runs the entered room's setup; the sand pass has none.

References MainRoutineStateWork, scYampiDesertClearRaisedCue(), scYampiDesertSetUpBlitz(), scYampiDesertSetUpCavern(), scYampiDesertSetUpEntrance(), scYampiDesertSetUpKingScorpion(), scYampiDesertSetUpPsynergyStone(), scYampiDesertSetUpPuddles(), scYampiDesertSetUpSandSlides(), scYampiDesertSetUpScorpionPit(), scYampiDesertSetUpSouthExit(), scYampiDesertSetUpSpring(), scYampiDesertSetUpSpringCave(), Sint32 and YampiDesertSandRipple.

Definition at line 2412 of file yampi_desert.c.

scPrepareMap

Sint32 scPrepareMap(void)

References Sint32.

Definition at line 2444 of file yampi_desert.c.

scGeyserAdd

GEYSER *scGeyserAdd( Sint32 slot, Sint32 id, Sint32 timer, Sint32 minHeight, Sint32 maxHeight)

Makes actor id the geyser of entry slot, rising from minHeight to maxHeight pixels every six seconds, starting timer ticks into its round, with an unseen platform at its top for the leader.

References fdActorGetById(), fdActorSetSpriteFlags(), Sint32, syGameFlagGet() and syImportActorCreate().

Referenced by scInit() and scYampiDesertSetUpScorpionPit().

Definition at lines 2750 and 2838 of file yampi_desert.c.

Variables in detail

YampiDesertEntranceStakes

extern Uint16 YampiDesertEntranceStakes[]

LATE_DATA Uint16 YampiDesertEntranceStakes[]

Each room's stakes, as STAKE_ROW lists them.

Referenced by scYampiDesertCastSand(), scYampiDesertEndSand(), scYampiDesertPoundEntranceStake() and scYampiDesertSetUpEntrance().

Definition at lines 69 and 2986 of file yampi_desert.c.

YampiDesertBlitzStakes

extern Uint16 YampiDesertBlitzStakes[]

LATE_DATA Uint16 YampiDesertBlitzStakes[]

Blitz's room's stakes.

Referenced by scYampiDesertCastSand(), scYampiDesertEndSand(), scYampiDesertPoundBlitzStake(), scYampiDesertSetUpBlitz(), scYampiDesertStepOffStakeTops() and scYampiDesertStepOntoStakeTops().

Definition at lines 70 and 2992 of file yampi_desert.c.

YampiDesertPsynergyStoneStakes

extern Uint16 YampiDesertPsynergyStoneStakes[]

LATE_DATA Uint16 YampiDesertPsynergyStoneStakes[]

The Psynergy Stone's room's stakes.

Referenced by scYampiDesertCastSand(), scYampiDesertEndSand(), scYampiDesertSetUpPsynergyStone(), scYampiDesertStepOffStakeTops() and scYampiDesertStepOntoStakeTops().

Definition at lines 71 and 2999 of file yampi_desert.c.

YampiDesertKingScorpionStakes

extern Uint16 YampiDesertKingScorpionStakes[]

LATE_DATA Uint16 YampiDesertKingScorpionStakes[]

The King Scorpion's room's stakes.

Referenced by scYampiDesertCastSand(), scYampiDesertEndSand(), scYampiDesertSetUpKingScorpion(), scYampiDesertStepOffStakeTops() and scYampiDesertStepOntoStakeTops().

Definition at lines 72 and 3004 of file yampi_desert.c.

YampiDesertCavernStakes

extern Uint16 YampiDesertCavernStakes[]

Uint16 YampiDesertCavernStakes[]

The cavern's stake.

Referenced by scYampiDesertPoundCavernStake() and scYampiDesertSetUpCavern().

Definition at lines 73 and 3009 of file yampi_desert.c.

YampiDesertRaisedCue

extern Sint32 YampiDesertRaisedCue

LATE_DATA Sint32 YampiDesertRaisedCue

The cue the scorpions raise for the scene to run, or 0.

References Sint32.

Referenced by scYampiDesertClearRaisedCue(), scYampiDesertRippleFollowsScorpion(), scYampiDesertScorpionRoamsKingScorpionRoom(), scYampiDesertScorpionRoamsPsynergyStoneRoom(), scYampiDesertScorpionRoamsToTrap() and scYampiDesertWatchScorpionStop().

Definition at lines 74 and 3014 of file yampi_desert.c.

YampiDesertSandRipple

extern ACTOR *YampiDesertSandRipple

LATE_DATA ACTOR *YampiDesertSandRipple

The sand ripple that follows the room's King Scorpion under the sand.

Referenced by scInit(), scYampiDesertBuryScorpion(), scYampiDesertRippleFollowsScorpion(), scYampiDesertSetUpTrappedScorpion() and scYampiDesertTrapKingScorpion().

Definition at lines 171 and 3017 of file yampi_desert.c.

YampiDesertSandCloudPoints

extern Uint16 YampiDesertSandCloudPoints[SAND_CLOUD_POINTS * 2]

Uint16 YampiDesertSandCloudPoints[SAND_CLOUD_POINTS * 2]

Where the King Scorpion's cloud of dust rises: x and z in pixels.

Referenced by scYampiDesertRaiseSandCloud().

Definition at lines 301 and 2891 of file yampi_desert.c.

YampiDesertSandCloudDrifts

extern Uint32 YampiDesertSandCloudDrifts[]

LATE_DATA Uint32 YampiDesertSandCloudDrifts[]

A puff of the King Scorpion's dust drifts aside and frees itself.

Referenced by scYampiDesertRaiseSandCloud().

Definition at lines 302 and 3777 of file yampi_desert.c.

YampiDesertFlowDust

extern Uint32 YampiDesertFlowDust[]

Uint32 YampiDesertFlowDust[]

A puff of the flowing sand's dust, which frees itself after a while.

Referenced by scYampiDesertCarryLeader().

Definition at lines 307 and 2899 of file yampi_desert.c.

YampiDesertTravelerLooksAround

extern Uint32 YampiDesertTravelerLooksAround[]

LATE_DATA Uint32 YampiDesertTravelerLooksAround[]

The two travelers resting at the spring look about them in turn.

Referenced by YampiDesertSpringActorPlacements.

Definition at lines 337 and 2923 of file yampi_desert.c.

YampiDesertOtherTravelerLooksAround

extern Uint32 YampiDesertOtherTravelerLooksAround[]

LATE_DATA Uint32 YampiDesertOtherTravelerLooksAround[]

As YampiDesertTravelerLooksAround, for the other traveler, out of step with the first.

Referenced by YampiDesertSpringActorPlacements.

Definition at lines 338 and 2936 of file yampi_desert.c.

YampiDesertSpringCaveEntrances

extern SCENE_ENTRANCE YampiDesertSpringCaveEntrances[]

SCENE_ENTRANCE YampiDesertSpringCaveEntrances[]

Where the party arrives in the cave under the spring.

Referenced by scGetEntrances().

Definition at lines 341 and 3023 of file yampi_desert.c.

YampiDesertScorpionPitExitRegions

extern SCENE_REGION YampiDesertScorpionPitExitRegions[]

Referenced by ALIGNED and scGetExitRegions().

Definition at line 342 of file yampi_desert.c.

YampiDesertSpringCaveExitRegions

extern SCENE_REGION YampiDesertSpringCaveExitRegions[]

LATE_DATA SCENE_REGION YampiDesertSpringCaveExitRegions[]

The two ways up out of the cave under the spring: to the spring and to the small chamber.

Referenced by scGetExitRegions().

Definition at lines 343 and 3042 of file yampi_desert.c.

YampiDesertPlacements

extern ACTOR_PLACE YampiDesertPlacements[]

LATE_DATA ACTOR_PLACE YampiDesertPlacements[]

The actors of the rooms that place none.

Referenced by scGetActorPlacements().

Definition at lines 378 and 3154 of file yampi_desert.c.

YampiDesertEntranceActorPlacements

extern ACTOR_PLACE YampiDesertEntranceActorPlacements[]

LATE_DATA ACTOR_PLACE YampiDesertEntranceActorPlacements[]

The entrance's actors.

Referenced by scGetActorPlacements().

Definition at lines 379 and 3159 of file yampi_desert.c.

YampiDesertSpringActorPlacements

extern ACTOR_PLACE YampiDesertSpringActorPlacements[]

LATE_DATA ACTOR_PLACE YampiDesertSpringActorPlacements[]

The spring's room's actors before the party meets the travelers.

References Sint32, YampiDesertOtherTravelerLooksAround and YampiDesertTravelerLooksAround.

Referenced by scGetActorPlacements().

Definition at lines 380 and 3176 of file yampi_desert.c.

YampiDesertSpringActorPlacementsAfterMeeting

extern ACTOR_PLACE YampiDesertSpringActorPlacementsAfterMeeting[]

LATE_DATA ACTOR_PLACE YampiDesertSpringActorPlacementsAfterMeeting[]

The spring's room's actors once the party has met the travelers.

Referenced by scGetActorPlacements().

Definition at lines 381 and 3197 of file yampi_desert.c.

YampiDesertBlitzActorPlacements

extern ACTOR_PLACE YampiDesertBlitzActorPlacements[]

LATE_DATA ACTOR_PLACE YampiDesertBlitzActorPlacements[]

Blitz's room's actors.

Referenced by scGetActorPlacements().

Definition at lines 382 and 3216 of file yampi_desert.c.

YampiDesertPsynergyStoneActorPlacements

extern ACTOR_PLACE YampiDesertPsynergyStoneActorPlacements[]

LATE_DATA ACTOR_PLACE YampiDesertPsynergyStoneActorPlacements[]

The Psynergy Stone's room's actors.

Referenced by scGetActorPlacements().

Definition at lines 383 and 3245 of file yampi_desert.c.

YampiDesertKingScorpionActorPlacements

extern ACTOR_PLACE YampiDesertKingScorpionActorPlacements[]

LATE_DATA ACTOR_PLACE YampiDesertKingScorpionActorPlacements[]

The King Scorpion's room's actors.

Referenced by scGetActorPlacements().

Definition at lines 384 and 3273 of file yampi_desert.c.

YampiDesertSandSlidesActorPlacements

extern ACTOR_PLACE YampiDesertSandSlidesActorPlacements[]

LATE_DATA ACTOR_PLACE YampiDesertSandSlidesActorPlacements[]

The sand slides' actors.

Referenced by scGetActorPlacements().

Definition at lines 385 and 3318 of file yampi_desert.c.

YampiDesertScorpionPitActorPlacements

extern ACTOR_PLACE YampiDesertScorpionPitActorPlacements[]

LATE_DATA ACTOR_PLACE YampiDesertScorpionPitActorPlacements[]

The scorpion's pit's actors.

Referenced by scGetActorPlacements().

Definition at lines 386 and 3334 of file yampi_desert.c.

YampiDesertCavernActorPlacements

extern ACTOR_PLACE YampiDesertCavernActorPlacements[]

LATE_DATA ACTOR_PLACE YampiDesertCavernActorPlacements[]

The cavern's actors.

Referenced by scGetActorPlacements().

Definition at lines 387 and 3343 of file yampi_desert.c.

YampiDesertCues

extern CUE YampiDesertCues[]

LATE_DATA CUE YampiDesertCues[]

The cues of the rooms that have none.

Referenced by scGetCues().

Definition at lines 426 and 3370 of file yampi_desert.c.

YampiDesertEntranceCues

extern CUE YampiDesertEntranceCues[]

LATE_DATA CUE YampiDesertEntranceCues[]

The entrance's cues.

References scYampiDesertCastSand(), scYampiDesertEndSand() and scYampiDesertPoundEntranceStake().

Referenced by scGetCues().

Definition at lines 427 and 3375 of file yampi_desert.c.

YampiDesertSpringCues

extern CUE YampiDesertSpringCues[]

LATE_DATA CUE YampiDesertSpringCues[]

The spring's room's cues.

References scYampiDesertCastSand(), scYampiDesertClimbRevealedLadder(), scYampiDesertEndSand(), scYampiDesertScoopLadderPit(), scYampiDesertTalkToElder(), scYampiDesertTalkToElderAboutWay(), scYampiDesertTalkToTraveler() and scYampiDesertTravelersLookUp().

Referenced by scGetCues().

Definition at lines 428 and 3410 of file yampi_desert.c.

YampiDesertBlitzCues

extern CUE YampiDesertBlitzCues[]

LATE_DATA CUE YampiDesertBlitzCues[]

Blitz's room's cues.

References scYampiDesertCastSand(), scYampiDesertEndSand(), scYampiDesertFightBlitz(), scYampiDesertPoundBlitzStake(), scYampiDesertStepOffStakeTops() and scYampiDesertStepOntoStakeTops().

Referenced by scGetCues().

Definition at lines 429 and 3508 of file yampi_desert.c.

YampiDesertPsynergyStoneCues

extern CUE YampiDesertPsynergyStoneCues[]

LATE_DATA CUE YampiDesertPsynergyStoneCues[]

The Psynergy Stone's room's cues.

References scYampiDesertCastSand(), scYampiDesertEndSand(), scYampiDesertPoundPsynergyStoneStake(), scYampiDesertStepOffStakeTops(), scYampiDesertStepOntoStakeTops(), scYampiDesertStirScorpion() and scYampiDesertWatchScorpionStop().

Referenced by scGetCues().

Definition at lines 430 and 3565 of file yampi_desert.c.

YampiDesertKingScorpionCues

extern CUE YampiDesertKingScorpionCues[]

LATE_DATA CUE YampiDesertKingScorpionCues[]

The King Scorpion's room's cues.

References scYampiDesertCastSand(), scYampiDesertCornerScorpion(), scYampiDesertEndSand(), scYampiDesertPoundKingScorpionStake(), scYampiDesertStirScorpionAgain(), scYampiDesertTrapKingScorpion() and scYampiDesertWatchScorpionStop().

Referenced by scGetCues().

Definition at lines 431 and 3606 of file yampi_desert.c.

YampiDesertPuddlesCues

extern CUE YampiDesertPuddlesCues[]

LATE_DATA CUE YampiDesertPuddlesCues[]

The puddles room's cues.

References scYampiDesertCastSand(), scYampiDesertDigUpCoins() and scYampiDesertEndSand().

Referenced by scGetCues().

Definition at lines 432 and 3641 of file yampi_desert.c.

YampiDesertSandPassCues

extern CUE YampiDesertSandPassCues[]

LATE_DATA CUE YampiDesertSandPassCues[]

The sand pass's cues.

References scYampiDesertCastSand() and scYampiDesertEndSand().

Referenced by scGetCues().

Definition at lines 433 and 3661 of file yampi_desert.c.

YampiDesertSandSlidesCues

extern CUE YampiDesertSandSlidesCues[]

LATE_DATA CUE YampiDesertSandSlidesCues[]

The sand slides' cues.

References scYampiDesertCastSand(), scYampiDesertEndSand(), scYampiDesertHideBlocks(), scYampiDesertHideRockHint(), scYampiDesertReadSign(), scYampiDesertRevealRockHint() and scYampiDesertShowBlocks().

Referenced by scGetCues().

Definition at lines 434 and 3678 of file yampi_desert.c.

YampiDesertSouthExitCues

extern CUE YampiDesertSouthExitCues[]

LATE_DATA CUE YampiDesertSouthExitCues[]

The south exit's cues.

References scYampiDesertHidePsynergyStone() and scYampiDesertRevealPsynergyStone().

Referenced by scGetCues().

Definition at lines 435 and 3715 of file yampi_desert.c.

YampiDesertScorpionPitCues

extern CUE YampiDesertScorpionPitCues[]

LATE_DATA CUE YampiDesertScorpionPitCues[]

The scorpion's pit's cues.

References scYampiDesertCastSand(), scYampiDesertEndSand() and scYampiDesertOpenGeyser().

Referenced by scGetCues().

Definition at lines 436 and 3732 of file yampi_desert.c.

YampiDesertSpringCaveCues

extern CUE YampiDesertSpringCaveCues[]

LATE_DATA CUE YampiDesertSpringCaveCues[]

The cues of the cave under the spring.

References scYampiDesertClimbDownSpringCaveLadder().

Referenced by scGetCues().

Definition at lines 437 and 3746 of file yampi_desert.c.

YampiDesertCavernCues

extern CUE YampiDesertCavernCues[]

LATE_DATA CUE YampiDesertCavernCues[]

The cavern's cues.

References scYampiDesertCastSand(), scYampiDesertEndSand() and scYampiDesertPoundCavernStake().

Referenced by scGetCues().

Definition at lines 438 and 3757 of file yampi_desert.c.

YampiDesertMayorRunsAhead

extern Uint32 YampiDesertMayorRunsAhead[]

LATE_DATA Uint32 YampiDesertMayorRunsAhead[]

The mayor runs ahead to the travelers, and the others follow.

Referenced by scYampiDesertTravelersLookUp().

Definition at lines 1334 and 2949 of file yampi_desert.c.

YampiDesertTravelersFollow

extern Uint32 YampiDesertTravelersFollow[]

LATE_DATA Uint32 YampiDesertTravelersFollow[]

As YampiDesertMayorRunsAhead, for the travelers who follow.

Referenced by scYampiDesertTravelersLookUp().

Definition at lines 1335 and 2962 of file yampi_desert.c.

YampiDesertLastTravelersFollow

extern Uint32 YampiDesertLastTravelersFollow[]

LATE_DATA Uint32 YampiDesertLastTravelersFollow[]

As YampiDesertMayorRunsAhead, for the last travelers, from further back.

Referenced by scYampiDesertTravelersLookUp().

Definition at lines 1336 and 2973 of file yampi_desert.c.

FieldEffectDurationScripts

LATE_DATA const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

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

Definition at line 2915 of file yampi_desert.c.

LATE_DATA

SCENE_ENTRANCES_SECTION LATE_DATA #include "shared/scene_entrances_default.c" // Where the party arrives in the cave under the spring. LATE_DATA

Referenced by ActorPlacements, ALIGNED, AnemosInnerSanctumDullahanCues, AnemosInnerSanctumDullahanDragonStatueScript, AnemosInnerSanctumDullahanEmptyCues, AnemosInnerSanctumDullahanEmptyPlacements, AnemosInnerSanctumDullahanPlacements, AquaRockCues, AquaRockPlacements, AquaRockSlopesCues, AquaRockSlopesPlacements, AquaRockSlopesRegions, AquaRockSummitCues, AquaRockSummitPlacements, AquaRockSummitRegions, ChampaCliffCavesChaseToEastScript, ChampaCliffCavesChaseToNorthScript, ChampaCliffCavesChaseToSouthScript, ChampaCliffCavesChaseToWestScript, ChampaCliffCavesCloseDoor, ChampaCliffCavesCloseDoorFrames, ChampaCliffCavesForgeCues, ChampaCliffCavesForgePlacements, ChampaCliffCavesForgePlacementsAfterAvimander, ChampaCliffCavesForgePlacementsBriggsHome, ChampaCliffCavesLowerCues, ChampaCliffCavesLowerPlacements, ChampaCliffCavesLowerPlacementsAfterAvimander, ChampaCliffCavesLowerPlacementsBriggsHome, ChampaCliffCavesMiddleCues, ChampaCliffCavesMiddlePlacements, ChampaCliffCavesMiddlePlacementsAfterAvimander, ChampaCliffCavesMiddlePlacementsBriggsHome, ChampaCliffCavesOpenDoor, ChampaCliffCavesOpenDoorFrames, ChampaCliffCavesUpperCues, ChampaCliffCavesUpperPlacements, ChampaCliffCavesUpperPlacementsAfterAvimander, ChampaCliffCavesUpperPlacementsBriggsHome, ClearImportedKeyItems, ClearImportedMembers, ClearImportedStackItems, ClearPasswordFlags, ClearPasswordKeyItems, ClearPasswordMembers, ClearPasswordStackItems, DOOR_EDIT, FieldEffectDurationScripts, GabombaStatueAkafubuComesUpScript, GabombaStatueChannelSeeds and 155 more.

Definition at line 3019 of file yampi_desert.c.

ALIGNED

LATE_DATA SCENE_REGION YampiDesertScorpionPitExitRegions[] ALIGNED(4)

The way out of the scorpion's pit: the geyser's top, which carries the party up.

References YampiDesertScorpionPitExitRegions.

Definition at line 3035 of file yampi_desert.c.

SceneExits

LATE_DATA Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 3049 of file yampi_desert.c.

On this page

StructuresMacrosEnumerationsFunctionsVariablesDescriptionMacros in detailEFFECT_SET_MODEEFFECT_SET_SCRIPTFLAG_YAMPI_DESERT_SCORPION_STIRREDFLAG_YAMPI_DESERT_SCORPION_STIRRED_AGAINFLAG_YAMPI_DESERT_SCORPION_CORNEREDFLAG_KING_SCORPION_BEATENFLAG_YAMPI_DESERT_LADDER_DUG_UPFLAG_YAMPI_DESERT_ELDER_INSISTEDFLAG_YAMPI_DESERT_ROCK_PIT_DUG_UPFLAG_YAMPI_DESERT_TRAVELERS_METFLAG_YAMPI_DESERT_ON_STAKE_TOPSFLAG_YAMPI_DESERT_BLOCKS_SHOWNFLAG_YAMPI_DESERT_ROPE_TIEDFLAG_YAMPI_DESERT_COINS_PUDDLE_DUG_UPSTAKEFLAG_YAMPI_DESERT_STAKE_POUNDEDSTAKE_ROWACTOR_CLIMBABLE_WALL_STAKEACTOR_BLITZANIM_KING_SCORPION_CLAWS_RAISEDSAND_CLOUD_POINTSDEFINE_POUND_STAKE_STOPPING_SCORPIONSAND_BURST_GRAINSMOVE_LEADER_TOWALKWALK_ONARRIVEARRIVE_OREnumerations in detailYAMPI_DESERT_RAISED_CUEYAMPI_DESERT_METATILE_BEHAVIORYAMPI_DESERT_ROOM_PARTYAMPI_DESERT_SPRING_CAVE_LEVELYAMPI_DESERT_METATILEYAMPI_DESERT_TRAVELERS_ACTOR_IDYAMPI_DESERT_SCORPION_ACTOR_IDYAMPI_DESERT_SAND_SLIDES_ACTOR_IDYAMPI_DESERT_SCORPION_PIT_ACTOR_IDanonymous enumYAMPI_DESERT_CAVERN_ACTOR_IDFunctions in detailscYampiDesertStepOntoStakeTopsscYampiDesertOpenLadderPitscYampiDesertSetBlocksShownscYampiDesertHideBlocksscYampiDesertUpdateSandFlowscYampiDesertCheckUpperLevelscYampiDesertOpenScoopHolescYampiDesertRestoreBlocksscYampiDesertSetUpCavernBlocksscYampiDesertClimbDownLadderscYampiDesertLayerStakesWithLeaderscYampiDesertPlaceStakesscYampiDesertElderRefusesToQuitscYampiDesertBlockPoundedStakesscYampiDesertOpenStakeMetatilesscYampiDesertCreateScoopGemscYampiDesertClearRaisedCuescYampiDesertPlayScorpionRumblescYampiDesertSetUpPsynergyStoneScorpionscYampiDesertSetStakeSunkscYampiDesertCheckUpperLevelFromLowerscYampiDesertSetPosAndFacingscYampiDesertPlaceRopescYampiDesertDigUpTreasurescYampiDesertRippleFollowsScorpionscYampiDesertScorpionUsesScoopscYampiDesertMetatileCenterscYampiDesertSetUpEntrancescYampiDesertSetUpSpringscYampiDesertSetUpBlitzscYampiDesertSetUpPsynergyStonescYampiDesertSetUpKingScorpionscYampiDesertSetUpPuddlesscYampiDesertSetUpSandSlidesscYampiDesertSetUpSouthExitscYampiDesertSetUpScorpionPitscYampiDesertSetUpSpringCavescYampiDesertSetUpCavernscYampiDesertDropScoopGemscYampiDesertTalkToElderscYampiDesertReadSignscYampiDesertStepOffStakeTopsscYampiDesertCastSandscYampiDesertEndSandscYampiDesertWatchScorpionStopscYampiDesertStirScorpionscYampiDesertStirScorpionAgainscYampiDesertCornerScorpionscYampiDesertTrapKingScorpionscYampiDesertRevealRockHintscYampiDesertHideRockHintscYampiDesertRevealPsynergyStonescYampiDesertShowBlocksscYampiDesertClimbRevealedLadderscYampiDesertClimbDownSpringCaveLadderscYampiDesertFightBlitzscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscYampiDesertDigUpCoinsscGetCuesscYampiDesertTalkToTravelerscYampiDesertTalkToElderAboutWayscYampiDesertPoundEntranceStakescYampiDesertPoundBlitzStakescYampiDesertPoundPsynergyStoneStakescYampiDesertPoundCavernStakescYampiDesertPoundKingScorpionStakescYampiDesertBurstSandscYampiDesertRaiseSandCloudscYampiDesertOpenGeyserscYampiDesertHidePsynergyStonescYampiDesertScoopLadderPitscYampiDesertTravelersLookUpscYampiDesertCarryLeaderscYampiDesertCheckUpperLevelOnRisescYampiDesertCheckLeaderNearPitscYampiDesertHasArrivedscYampiDesertScorpionRoamsPsynergyStoneRoomscYampiDesertBuryScorpionscYampiDesertScorpionRoamsKingScorpionRoomscYampiDesertSetUpKingScorpionRoomScorpionscYampiDesertScorpionRoamsToTrapscYampiDesertSetUpTrappedScorpionscYampiDesertSetUpSandSlidesBlocksscYampiDesertLandAndFightKingScorpionscInitscPrepareMapscGeyserAddVariables in detailYampiDesertEntranceStakesYampiDesertBlitzStakesYampiDesertPsynergyStoneStakesYampiDesertKingScorpionStakesYampiDesertCavernStakesYampiDesertRaisedCueYampiDesertSandRippleYampiDesertSandCloudPointsYampiDesertSandCloudDriftsYampiDesertFlowDustYampiDesertTravelerLooksAroundYampiDesertOtherTravelerLooksAroundYampiDesertSpringCaveEntrancesYampiDesertScorpionPitExitRegionsYampiDesertSpringCaveExitRegionsYampiDesertPlacementsYampiDesertEntranceActorPlacementsYampiDesertSpringActorPlacementsYampiDesertSpringActorPlacementsAfterMeetingYampiDesertBlitzActorPlacementsYampiDesertPsynergyStoneActorPlacementsYampiDesertKingScorpionActorPlacementsYampiDesertSandSlidesActorPlacementsYampiDesertScorpionPitActorPlacementsYampiDesertCavernActorPlacementsYampiDesertCuesYampiDesertEntranceCuesYampiDesertSpringCuesYampiDesertBlitzCuesYampiDesertPsynergyStoneCuesYampiDesertKingScorpionCuesYampiDesertPuddlesCuesYampiDesertSandPassCuesYampiDesertSandSlidesCuesYampiDesertSouthExitCuesYampiDesertScorpionPitCuesYampiDesertSpringCaveCuesYampiDesertCavernCuesYampiDesertMayorRunsAheadYampiDesertTravelersFollowYampiDesertLastTravelersFollowFieldEffectDurationScriptsLATE_DATAALIGNEDSceneExits