Skip to Content
The Alchemy Project

src/scene/world_map.c

The World Map (SceneIdWorldMap), the one perspective map (map/world) that joins the areas, and the only scene of this overlay. More…

Macros

NameDescription
#defineFLAG_WORLD_MAP_FALLING_ROCK_LANDED FLAG_SCENE_TEMP(0x00)The falling rock of Hammet's caravan script has landed and shattered.
#defineFLAG_WORLD_MAP_BLACK_ORB_HANDED_OVER FLAG_SCENE_TEMP(0x34)Iodem has handed Isaac the Black Orb and waits for it to be used on the wreck off Gateway Cave.
#defineFLAG_WORLD_MAP_ORDINARY_ACTORS FLAG_SCENE_TEMP(0x35)The scene's ordinary actor placements (WorldMapActorPlacements) are in use rather than a script's.
#defineFLAG_WORLD_MAP_CAUGHT_IN_STORM FLAG_SCENE_TEMP(0xf0)The storm holds the party up in the air, where Douse can bring it down.
#defineFLAG_WORLD_MAP_STORM_GONE FLAG_SCENE_TEMP(0xf1)The storm is done with, or put away while the Tolbi-bound Ship lies off the island, and catches no one.
#defineFLAG_WORLD_MAP_STORM_TICKS_LEFT FLAG_SCENE_TEMP(0xf8)The first flag of a byte counting the ticks the storm keeps the party in the air.
#defineSTORM_TICKS_IN_AIR 180The ticks the storm holds the party in the air before it drops them outside Suhalla.
#defineFLINT_SPOT_X 5584Flint's spot just outside Vale, in map pixels, which he circles until the party meets him.
#defineFLINT_SPOT_Z 1328
#defineIODEM_COAST_X 6036Where Iodem waits on the coast by Gateway Cave with the Black Orb handed over, in map pixels.
#defineIODEM_COAST_Z 3400
#defineSTEP_CUE_AREA (actorId) (STEP_CUE_AREA_BASE + (actorId))The metatile behavior raised by touching an area's actor.
#defineFLINT_GROW_TICKS 16The ticks Flint takes to grow to full size as he comes down to the party.
#defineWORLD_MAP_QUEUE_TRANSITION_PICTURE (buffer, offset)Queues one picture of the lighthouse transition, a whole tile map, into BG0's screen block.
#defineWORLD_MAP_LIGHT_BALL (size) (LIGHT_BALL_TILES_SIZE + 128 + (size) * 1536)Where picture size of the ball of light lies in the unpacked buffer: 0 is the ball at its largest, 6 at its smallest, and 7 the picture shown before it swells and after it shrinks.
#defineLIGHT_BALL_TILES 128The ball of light's tiles (lighthouse_transition.png), first in the unpacked buffer: LIGHT_BALL_TILES 4-bit tiles, loaded into BG0's character block from tile LIGHT_BALL_FIRST_TILE, which its pictures count from, and shown in BG palette LIGHT_BALL_PALETTE.
#defineLIGHT_BALL_TILES_SIZE (LIGHT_BALL_TILES * TILE_SIZE_4BPP)
#defineLIGHT_BALL_FIRST_TILE 128
#defineLIGHT_BALL_PALETTE 14

Enumerations

NameDescription
enumanonymous enum { CONTACT_LAST_ACTOR, STEP_CUE_AREA_BASE }The actors scWorldMapUpdateAreaContacts looks at, the placed ones to the last slot, and the base of the metatile behaviors a touch raises (STEP_CUE_AREA).
enumWORLD_MAP_ACTOR_ID { ACTOR_VENUS_DJINNI, ACTOR_CORONA, ACTOR_HAIL, ACTOR_TO_VALE_ … }The World Map's own actors, numbered in the order of WorldMapActorPlacements from ACTOR_FIRST_PLACED.
enumWORLD_MAP_METATILE_BEHAVIOR { METATILE_BEHAVIOR_WORLD_MAP_TOLBI_SHIP, METATILE_BEHAVIOR_WO … }The World Map's own metatile behaviors, which the map's metatiles carry.
enumWORLD_MAP_RAISED_CUE { RAISED_STORM_TIME_UP }Raised by scWorldMapUpdateStormTimer when the party's time in the air runs out.
enumanonymous enum { WORLD_MAP_BRIDGE_ANIMATION_LOWERED }SPRITE_WORLD_MAP_BRIDGE's animation once Kolima Bridge's drawbridge is down.
enumanonymous enum { FALLING_ROCK_ANIMATION_TUMBLE, FALLING_ROCK_ANIMATION_SHATTE … }The falling rock's animations (blue_crystal.png).
enumWORLD_MAP_CARAVAN_ACTOR_ID { ACTOR_CARAVAN_HAMMET, ACTOR_CARAVAN_MAN, ACTOR_CARAVAN_FIRST … }The actors of Hammet's caravan leaving Vault (WorldMapActorPlacementsHammetsCaravan, WORLD_MAP_HAMMETS_CARAVAN_LEAVES), numbered from ACTOR_FIRST_PLACED.
enumanonymous enum { ACTOR_CROSSING_SHIP }The Tolbi-bound Ship, shown on its way across the Karagol Sea.
enumanonymous enum { ACTOR_KALAY_WAGON }Bunza's wagon at Kalay (WorldMapActorPlacementsFromKalayTunnelEntranceSouth), after Kalay's and the Kalay Tunnel Entrance's area actors.
enumanonymous enum { ACTOR_DRIFTING_ISLAND }The one actor of WorldMapActorPlacementsFromClear, before the ending.
enumWORLD_MAP_ENDING_ACTOR_ID { ACTOR_KRADEN, ACTOR_ALEX, ACTOR_FELIX }The ending's actors (WorldMapActorPlacementsJennaAndKradenAdrift), numbered from ACTOR_FIRST_PLACED after the rows of Jenna and Sheba, which take their own actor ids.
enumanonymous enum { ANIM_JENNA_LIE, ANIM_KRADEN_LIE }Animations the map plays by number beyond ACTOR_ANIMATION, from each sprite's animation table (graphics/sprite/<name>.tsv).
enumanonymous enum { ENCOUNTER_SLOT_DJINN_LESSON, ENCOUNTER_SLOT_TORNADO_LIZARD, … }The battles the map starts from the scripted encounter tables.
enumanonymous enum { ACTOR_WAGON, ACTOR_BUNZA, ACTOR_HAMMET }The actors placed at WORLD_MAP_WEST_LUNPA_CAVE (WorldMapActorPlacementsFromWestLunpaCave), numbered from ACTOR_FIRST_PLACED.
enumanonymous enum { QUAKE_DUST_LEFT, QUAKE_DUST_TOP, QUAKE_DUST_WIDTH, QUAKE_DUS … }The box around Venus Lighthouse, in pixels, where dust puffs up as it shakes (scWorldMapUpdateLighthouseQuake).

Functions

NameDescription
Sint32scInit (void)Sets the map up for the entrance the party arrives by: the lighthouse transitions and the Black Orb defeat lead straight on to another scene; every other way in starts the area contacts and plays the story moment its entrance names, if any.
static Sint32scWorldMapAlignToMap (ACTOR *actor)The actor script of every picture on the map (WorldMapAlignToMapScript).
static voidscWorldMapBoardBunzasWagon (void)Out of West Lunpa Cave once Dodonpa is locked up, Bunza and then Hammet come out beside Isaac at the cave mouth, face each other and nod.
static voidscWorldMapShowHammetsCaravan (void)The first time the party walks onto Vault, Hammet's caravan comes out of the town: its wagons roll up beside the party, Hammet says they cannot stay in so dangerous a place, and the caravan heads south to the river, where his man finds the bridge is down.
static voidscWorldMapShakeCameraOverCaravan (void)Shakes the camera around Hammet and his man as the ground trembles.
static voidscWorldMapShakeCameraWhereRockFalls (void)Shakes the camera around the spot where the falling rock lands.
static voidscWorldMapUpdateFallingRock (void)Keeps the falling rock above its guide as it drops, and lands it once.
static voidscWorldMapSailToFirstMonsterAttack (void)The Tolbi-bound Ship, drawn a quarter larger, sails out of Kalay Docks on the World Map before the first attack at the mast.
static voidscWorldMapSailToSecondMonsterAttack (void)The ship sails west across the Karagol Sea after the first attack, and the screen closes for the second attack at the mast.
static voidscWorldMapSailToThirdMonsterAttack (void)The ship sails on west after the second attack, and the screen closes for the third.
static voidscWorldMapSailToKraken (void)The ship sails on west after the third attack, and the screen closes on the ship's rooms for the fourth, the Kraken's.
static voidscWorldMapSailUntilLandSighted (void)After the Kraken, the ship sails west across open sea until the screen closes on the mast, where land is sighted.
static voidscWorldMapSailIntoTolbi (void)The ship sails the last stretch along the coast into Tolbi's harbour, and the scene changes to its deck.
static voidscWorldMapStepDownFromBunzasWagon (void)Brings Bunza's wagon to a stop and lets Isaac step down, after Hammet's return home (kalay.c's scKalayHammetReturnsToPalace).
static voidscWorldMapRunBlackOrbScript (void)Out of Gateway Cave, Iodem sees Babi's ship scuttled off the coast, gives Isaac the Black Orb and prompts him to use it on the ship.
static voidscWorldMapBlockGatewayCaveExit (Sint32 actorId)While Iodem waits with the Black Orb handed over, walking into Gateway Cave runs scWorldMapIodemCallsIsaacBack instead of entering it, and his row of the placements stands him on the coast.
static voidscWorldMapIodemCallsIsaacBack (void)Walking back into Gateway Cave with the Black Orb unused makes Iodem call the leader back to the coast.
static voidscWorldMapShowEndingScript (void)The ending, on the island Jenna and Kraden are adrift on: they lie on its grass and talk of the Venus beacon, Alex comes to them, and he leads them to the shore, where Felix and Sheba lie washed up, alive.
static voidscWorldMapShakeVenusLighthouse (void)After the beacon is lit, the view settles on Venus Lighthouse on the World Map, which shakes with a rumble as yellow clouds of dust puff up round it, before the scene returns to the aerie for Sheba's fall.
static voidscWorldMapUpdateLighthouseQuake (void)Run each tick while Venus Lighthouse shakes.
static voidscWorldMapSailTolbiShipToIsland (void)A leg of the Tolbi-bound Ship's crossing: from open sea the ship sails north-west with the camera on it until the green, wooded coast of an island comes into view, then turns north along the shore through the shallows and slows to a stop beside it.
static Sint32scWorldMapGetRowingBalance (void)The rowing balance of the chosen passengers, as scTolbiShipMastGetRowingBalance reckons it: the values of those at the west seats (the first and third) less those at the east seats (the second and fourth).
static Sint32scWorldMapGetSeatRowValue (Uint32 seat)The rowing value of the passenger chosen for a seat, or 0 while it is empty.
static voidscWorldMapShowIslandDrifting (void)Before the ending, the island Jenna and Kraden are adrift on drifts east across a darkened sea, trailing a pale wake, as the view closes in on it, then the screen fades to white.
static voidscWorldMapUpdateStormTimer (void)Run each tick while a storm holds the party in the air: it spins the leader round and counts down the time left, which stands still while the menu is open.
static voidscWorldMapPlayLighthouseTransition (WORLD_MAP_LIGHTHOUSE lighthouse)The lighthouse transition, after a beacon is lit: on the World Map, darkened to a deep blue, a ball of light in the lighthouse's colours (blue for Mercury Lighthouse) swells over the lighthouse's top, glows there for 140 ticks and shrinks away.
static voidscWorldMapMeetVine (void)Walking over the small island north-west of the Lamakan Desert's way out, once a random battle is nearly due, may start a battle with the Venus Djinni Vine; nothing is seen of him beforehand.
static voidscWorldMapMeetCorona (void)Walking over the lone island far north of Xian, once a random battle is nearly due, starts a battle with the Mars Djinni Corona; nothing is seen of him beforehand.
static voidscWorldMapMeetHail (void)Walking over the fields far west of Tolbi, once a random battle is nearly due, starts a battle with the Mercury Djinni Hail; nothing is seen of him beforehand.
static voidscWorldMapReleaseSparkAfterDelay (ACTOR *actor)The update function of a sparkle around the Black Orb.
static voidscWorldMapPulseOrbAndSpawnSparks (ACTOR *actor)The update function of the Black Orb held up over the wreck.
static voidscWorldMapCircleFlint (ACTOR *actor)Flint's update function until the party meets him (scWorldMapSetUpFlint).
static Sint32scWorldMapSetUpFlint (ACTOR *actor)Flint's actor script (WorldMapFlintScript).
const SCENE_ENTRANCE *scGetEntrances (void)The six rooms share one entrance table.
const SCENE_EXIT_REGION *scGetExitRegions (void)The scene has no exit regions: its regions entry returns none.
const Uint32 *scGetExits (void)Both scenes share one exit table.
static Sint32scWorldMapSetUpKolimaBridge (ACTOR *actor)Kolima Bridge's actor script (WorldMapKolimaBridgeScript).
static Sint32scWorldMapSetUpIodem (ACTOR *actor)Iodem's actor script (WorldMapIodemScript).
static Sint32scWorldMapSetUpStorm (ACTOR *actor)Sets up the storm (ACTOR_STORM) as it is placed.
static Sint32scWorldMapHideStormOnOddTicks (ACTOR *actor)Called each tick by the storm's actor script (WorldMapStormScript): it hides the storm on odd ticks, but scWorldMapUpdateAreaContacts shows it again in the same tick, and it is drawn in every tick.
const ACTOR_PLACE *scGetActorPlacements (void)Chooses the actors for the entrance.
static voidscWorldMapSelectExitByX (Sint32 cue, Sint32 exitBefore, Sint32 exitAfter)Takes the party into an area with two ways in by the side it walks up from: exitBefore if the leader is west of the area's picture, else exitAfter, with the sound of leaving the map.
static voidscWorldMapSelectExitByZ (Sint32 cue, Sint32 exitBefore, Sint32 exitAfter)Takes the party into an area with two ways in by the side it walks up from: exitBefore if the leader is north of the area's picture, else exitAfter, with the sound of leaving the map.
static voidscWorldMapEnterBilibinBarricade (void)Walking onto the Bilibin Barricade on the World Map enters it by the side the party comes from, west or east.
static voidscWorldMapEnterKolimaBridge (void)Walking onto Kolima Bridge on the World Map enters it at its north end from the north, or at its south end from the south.
static voidscWorldMapEnterKalayDocks (void)Walking onto Kalay Docks on the World Map enters them by their north side from the north, or by their south side from the south.
static voidscWorldMapEnterGondowanPassage (void)Walking onto Gondowan Passage on the World Map enters it at its north end from the north, or at its south end from the south.
static voidscWorldMapEnterLalivero (void)Walking onto Lalivero on the World Map enters the town by its west side from the north, or by its east side from the south.
const CUE *scGetCues (void)The first water beast's cave changes its cues once the first drain has lowered its water: the beast is gone and its two puddles can be frozen.
static voidscWorldMapUpdateAreaContacts (void)Run each tick on the map, where scInit adds it: it shows only the area pictures near the view and, when the leader touches one, raises that area's cue.
static voidscWorldMapEnterVault (void)Walking onto Vault on the World Map enters the town by its south side.
static voidscWorldMapReturnToTolbiShip (void)Walking east along Crossbone Isle's shore into the anchored Tolbi-bound Ship takes the party back aboard, onto its deck.
static inline voidscWorldMapMoveShakeCamera (Sint32 x, Sint32 z)Moves to the next camera-shake point, in whole pixels, and holds it for four ticks.
static inline voidscWorldMapSailCrossingLeg (Sint32 exit)A middle leg of the Karagol Sea crossing: the ship, seen from above, sails west over open sea with the camera following it, until the screen closes on the scene exit leads to.
static voidscWorldMapExplainSettingDjinn (void)Flint explains how a Djinni is set and put on standby, running the Djinn menu for each part of the lesson, then starts the lesson battle.
static voidscWorldMapMeetFlint (void)Walking up to Flint, the spark circling his spot just outside Vale: he cries "Oh!", drops down beside Isaac at full size, "A traveling warrior!", shimmers with sparkles, and asks to come along to find his comrades, telling how Djinn make an Adept's Psynergy stronger.
static voidscWorldMapRestoreGatewayCaveExit (void)Makes touching Gateway Cave an exit again, to WORLD_MAP_GATEWAY_CAVE.
static voidscWorldMapTalkAboutBlackOrb (void)Talking to Iodem, who gave the Black Orb, or reading his mind, makes him urge its use.
static voidscWorldMapSearchWreckage (void)Checking the wreck of Babi's ship off the coast by Gateway Cave reads "The wreckage of a ship scuttled off the coast." While Isaac holds the Black Orb Iodem gave him, the field menu then opens, so that he can use it.
static voidscWorldMapUseBlackOrb (void)Using the Black Orb on the wreck off Gateway Cave, Isaac holds it up and it pulses and sparkles, but nothing happens.
static voidscWorldMapSpawnIslandWake (void)Spawns a puff of the wake behind ACTOR_DRIFTING_ISLAND every 16 ticks.
static voidscWorldMapCatchInStorm (Sint32 targetActorId)Draws the leader into the storm, lifts him and starts its timer.
static voidscWorldMapWalkIntoStorm (void)Walking into the whirlwind near Crossbone Isle draws the leader into it and lifts the party into the air for three seconds.
static voidscWorldMapStartDousingStorm (void)Casting Douse on the whirlwind that holds the party gathers the rain cloud high up, over the party where it floats, not on the ground below (script_commands_douse.c reads sceneVariant).
static voidscWorldMapDouseMapStorm (void)Douse on the whirlwind that holds the party stops it, and the party drops to fight the Tempest Lizard inside, as in Suhalla Desert's red storm.
static voidscWorldMapStormDropsParty (void)If the party is not brought down within three seconds, the whirlwind rises with them faster and faster out of sight, the screen closes, and they drop onto the World Map outside Suhalla.
static voidscWorldMapUpdateTransitionBlend (void)Run each tick of the lighthouse transition: blends the ball of light over the map, its own weight flickering between 12 and 16 sixteenths every two ticks over WorldMapBlendWork.
static voidscWorldMapJitterTransitionCamera (void)Run each tick at the end of the lighthouse transition, as the ground rumbles: every third tick it moves the camera a pixel diagonally from the leader.
static inline voidscWorldMapShowTransitionPicture (Uint8 *buf, Sint32 offset, Sint32 ticks)Queues one picture of the lighthouse transition and holds it for ticks ticks.
static voidscWorldMapFlashWhiteWithGoldenRings (ACTOR *actor)Unused: an actor's update function that flashes it white, two ticks on and two off, and every sixteenth tick sets off a golden ring around it, as Flint shimmers on meeting the party.
static voidscWorldMapCycleColorsWithGoldenRings (ACTOR *actor)Unused: an actor's update function that cycles it through six colour modes and every sixteenth tick sets off a golden ring around it.

Variables

NameDescription
extern Sint32IodemActorIodem's actor on the World Map, set as he comes out to meet the party.
extern Sint32CaravanFirstWagonArrives []Hammet's caravan outside Vault (scWorldMapShowHammetsCaravan): each of the four wagons, at one and a half times its size, rolls up to the party and stops in its own place.
extern Sint32CaravanFirstWagonDeparts []Each wagon rolls south for the bridge and, out of sight, is put down where it waits at the broken bridge.
extern Sint32CaravanFirstWagonReturns []Each wagon rolls back from the broken bridge and leaves the stage.
extern Sint32CaravanWagonHeadsNorth []Every wagon in turn: from the road south of Vault it rolls north for Lunpa and leaves the stage.
extern Sint32CaravanSecondWagonArrives []The second to fourth wagons stop in a column 32 pixels west of the first, the second southmost and each after it 16 pixels north.
extern Sint32CaravanSecondWagonDeparts []The second to fourth wagons wait side by side north of the first, west to east.
extern Sint32CaravanSecondWagonReturns []The second to fourth wagons each roll south to the first's road and follow it.
extern Sint32CaravanThirdWagonArrives []
extern Sint32CaravanThirdWagonDeparts []
extern Sint32CaravanThirdWagonReturns []
extern Sint32CaravanFourthWagonArrives []
extern Sint32CaravanFourthWagonDeparts []
extern Sint32CaravanFourthWagonReturns []
extern Sint32CaravanRockGuideScript []The invisible guide of the rock that falls beside the caravan: it grows from a tenth of its size over 160 ticks as it moves to where the rock lands.
extern Sint32BlackOrbLeaderScript []The leader's walk in scWorldMapRunBlackOrbScript: SW_TIMER turns 1 when he has stopped.
extern Sint32EndingAlexWalk []The walks of the ending (scWorldMapShowEndingScript): Alex, Kraden and Jenna follow one path and stop side by side; Jenna's turns SW_TIMER to 1 when she has stopped.
extern Sint32EndingKradenWalk []
extern Sint32EndingJennaWalk []
extern Sint32QuakeCloudScript []A cloud of dust in the lighthouse quake (scWorldMapUpdateLighthouseQuake): it lasts 16 ticks.
extern Sint32CrossingShipSailsWest []The ship crossing the sea (scWorldMapSailCrossingLeg, scWorldMapSailUntilLandSighted): 8 pixels west a step for 40 steps, then SW_TIMER turns 1 while it sails on two more.
extern Sint32CrossingShipDriftsNorth []As CrossingShipSailsWest, drifting 2 pixels north with each step.
extern Sint32IslandDriftsEast []The island drifting east (scWorldMapShowIslandDrifting): 24 pixels a step for 10 steps, then SW_TIMER turns 1 while it drifts on two more.
extern SCENE_ENTRANCEWorldMapEntrances []
extern Uint32WorldMapExits []
extern ACTOR_PLACEWorldMapActorPlacements []
extern ACTOR_PLACEWorldMapActorPlacementsHammetsCaravan []
extern ACTOR_PLACEWorldMapActorPlacementsFromWestLunpaCave []
extern ACTOR_PLACEWorldMapActorPlacementsCrossingEnds []
extern ACTOR_PLACEWorldMapActorPlacementsCrossing []
extern ACTOR_PLACEWorldMapActorPlacementsFromKalayTunnelEntranceSouth []
extern ACTOR_PLACEWorldMapActorPlacementsJennaAndKradenAdrift []
extern ACTOR_PLACEWorldMapActorPlacementsFromClear []
extern ACTOR_PLACEWorldMapActorPlacementsBeforeShebasFall []
extern CUEWorldMapCues []
extern Sint32IslandWakeScript []A puff of the drifting island's wake (scWorldMapSpawnIslandWake): for 48 ticks it drifts west and south as it spreads wider and flatter, then it is released.
Uint16WorldMapBlendWorkThe second weight of the lighthouse transition's blend (BLEND_ALPHA), which the picture's weight flickers over.
Sint32WorldMapFlintScript []Flint's actor script on the map: it sets him up (scWorldMapSetUpFlint).
Sint32WorldMapKolimaBridgeScript []
Sint32WorldMapAlignToMapScript []
Sint32WorldMapIodemScript []
Sint32WorldMapStormScript []

Description

The World Map (SceneIdWorldMap), the one perspective map (map/world) that joins the areas, and the only scene of this overlay.

Its code does three kinds of work.

It lets the party into the areas. Each town, cave, dock and passage stands on the map as a small picture of its kind (a village, a cave mouth, a pier and the rest), turned as the map turns, and walking into the picture enters the place. A few ways in are stretches of ground instead, such as the deserts' edges and the paths up to Venus Lighthouse.

scWorldMapUpdateAreaContacts runs every tick. It shows only the pictures near the view and, when the leader touches one, raises that area's STEP_CUE_AREA, which the cue table turns into the area's exit.

Five areas have two ways in, and the party comes in by the side it walks up from: the Bilibin Barricade from the west or the east, and Kolima Bridge, Kalay Docks, Gondowan Passage and Lalivero from the north or the south.

Kolima Bridge's picture shows the drawbridge let down once it has been lowered (FLAG_KOLIMA_BRIDGE_LOWERED).

It holds what the party meets on the map itself. Flint, the first Djinni, is a small spark circling a spot just outside Vale. Three more wait unseen: Vine on a small island north-west of the Lamakan Desert's way out, Corona on a lone island far north of Xian, and Hail in the fields far west of Tolbi. Walking over their ground once a random battle is nearly due may bring the Djinni's battle instead.

A whirlwind spins near Crossbone Isle (ACTOR_STORM), where the red storm in Suhalla Desert drops a party it carries off. It is put away while the Tolbi-bound Ship lies at anchor off the island. Walked into, it lifts the party into the air for three seconds, as Suhalla Desert's storms do. Douse on it brings the party down to fight the Tempest Lizard inside. If the time runs out it carries the party off and drops them outside Suhalla.

The Turtle Boots are buried past the Bilibin Barricade, in the forest at the end of a long, narrow island, and are found by checking the ground there.

And it plays the story's moments on the map, each run by scInit for the entrance another scene sends the party to. In story order:

WORLD_MAP_FROM_DEBUG, the debug menus' entrance, turns encounters off.

Macros in detail

FLAG_WORLD_MAP_FALLING_ROCK_LANDED

#define FLAG_WORLD_MAP_FALLING_ROCK_LANDED FLAG_SCENE_TEMP(0x00)

The falling rock of Hammet's caravan script has landed and shattered.

Referenced by scWorldMapUpdateFallingRock().

Definition at line 143 of file world_map.c.

FLAG_WORLD_MAP_BLACK_ORB_HANDED_OVER

#define FLAG_WORLD_MAP_BLACK_ORB_HANDED_OVER FLAG_SCENE_TEMP(0x34)

Iodem has handed Isaac the Black Orb and waits for it to be used on the wreck off Gateway Cave.

Referenced by scInit(), scWorldMapRunBlackOrbScript(), scWorldMapSearchWreckage() and scWorldMapUseBlackOrb().

Definition at line 146 of file world_map.c.

FLAG_WORLD_MAP_ORDINARY_ACTORS

#define FLAG_WORLD_MAP_ORDINARY_ACTORS FLAG_SCENE_TEMP(0x35)

The scene's ordinary actor placements (WorldMapActorPlacements) are in use rather than a script's.

Referenced by scGetActorPlacements().

Definition at line 149 of file world_map.c.

FLAG_WORLD_MAP_CAUGHT_IN_STORM

#define FLAG_WORLD_MAP_CAUGHT_IN_STORM FLAG_SCENE_TEMP(0xf0)

The storm holds the party up in the air, where Douse can bring it down.

Referenced by scWorldMapCatchInStorm(), scWorldMapDouseMapStorm() and WorldMapCues.

Definition at line 151 of file world_map.c.

FLAG_WORLD_MAP_STORM_GONE

#define FLAG_WORLD_MAP_STORM_GONE FLAG_SCENE_TEMP(0xf1)

The storm is done with, or put away while the Tolbi-bound Ship lies off the island, and catches no one.

Referenced by scWorldMapDouseMapStorm(), scWorldMapSetUpStorm(), WorldMapActorPlacements and WorldMapCues.

Definition at line 154 of file world_map.c.

FLAG_WORLD_MAP_STORM_TICKS_LEFT

#define FLAG_WORLD_MAP_STORM_TICKS_LEFT FLAG_SCENE_TEMP(0xf8)

The first flag of a byte counting the ticks the storm keeps the party in the air. The byte is read and written with scFieldGameFlagGetByte and scFieldGameFlagSetByte.

Referenced by scInit(), scWorldMapCatchInStorm(), scWorldMapDouseMapStorm() and scWorldMapUpdateStormTimer().

Definition at line 158 of file world_map.c.

STORM_TICKS_IN_AIR

#define STORM_TICKS_IN_AIR 180

The ticks the storm holds the party in the air before it drops them outside Suhalla.

Referenced by scWorldMapCatchInStorm().

Definition at line 161 of file world_map.c.

FLINT_SPOT_X

#define FLINT_SPOT_X 5584

Flint's spot just outside Vale, in map pixels, which he circles until the party meets him.

Referenced by scWorldMapCircleFlint() and scWorldMapMeetFlint().

Definition at line 164 of file world_map.c.

FLINT_SPOT_Z

#define FLINT_SPOT_Z 1328

Referenced by scWorldMapCircleFlint() and scWorldMapMeetFlint().

Definition at line 165 of file world_map.c.

IODEM_COAST_X

#define IODEM_COAST_X 6036

Where Iodem waits on the coast by Gateway Cave with the Black Orb handed over, in map pixels.

Referenced by scInit(), scWorldMapBlockGatewayCaveExit() and scWorldMapRunBlackOrbScript().

Definition at line 168 of file world_map.c.

IODEM_COAST_Z

#define IODEM_COAST_Z 3400

Referenced by scInit(), scWorldMapBlockGatewayCaveExit() and scWorldMapRunBlackOrbScript().

Definition at line 169 of file world_map.c.

STEP_CUE_AREA

#define STEP_CUE_AREA(actorId) (STEP_CUE_AREA_BASE + (actorId))

The metatile behavior raised by touching an area's actor.

Referenced by scWorldMapBlockGatewayCaveExit(), scWorldMapEnterBilibinBarricade(), scWorldMapEnterGondowanPassage(), scWorldMapEnterKalayDocks(), scWorldMapEnterKolimaBridge(), scWorldMapEnterLalivero(), scWorldMapRestoreGatewayCaveExit() and WorldMapCues.

Definition at line 293 of file world_map.c.

FLINT_GROW_TICKS

#define FLINT_GROW_TICKS 16

The ticks Flint takes to grow to full size as he comes down to the party.

Referenced by scWorldMapMeetFlint().

Definition at line 1651 of file world_map.c.

WORLD_MAP_QUEUE_TRANSITION_PICTURE

#define WORLD_MAP_QUEUE_TRANSITION_PICTURE(buffer, offset)

Queues one picture of the lighthouse transition, a whole tile map, into BG0's screen block.

Referenced by scWorldMapPlayLighthouseTransition() and scWorldMapShowTransitionPicture().

Definition at line 2354 of file world_map.c.

WORLD_MAP_LIGHT_BALL

#define WORLD_MAP_LIGHT_BALL(size) (LIGHT_BALL_TILES_SIZE + 128 + (size) * 1536)

Where picture size of the ball of light lies in the unpacked buffer: 0 is the ball at its largest, 6 at its smallest, and 7 the picture shown before it swells and after it shrinks.

Referenced by scWorldMapPlayLighthouseTransition().

Definition at line 2362 of file world_map.c.

LIGHT_BALL_TILES

#define LIGHT_BALL_TILES 128

The ball of light's tiles (lighthouse_transition.png), first in the unpacked buffer: LIGHT_BALL_TILES 4-bit tiles, loaded into BG0's character block from tile LIGHT_BALL_FIRST_TILE, which its pictures count from, and shown in BG palette LIGHT_BALL_PALETTE.

Definition at line 2368 of file world_map.c.

LIGHT_BALL_TILES_SIZE

#define LIGHT_BALL_TILES_SIZE (LIGHT_BALL_TILES * TILE_SIZE_4BPP)

Referenced by scWorldMapPlayLighthouseTransition().

Definition at line 2369 of file world_map.c.

LIGHT_BALL_FIRST_TILE

#define LIGHT_BALL_FIRST_TILE 128

Referenced by scWorldMapPlayLighthouseTransition().

Definition at line 2370 of file world_map.c.

LIGHT_BALL_PALETTE

#define LIGHT_BALL_PALETTE 14

Referenced by scWorldMapPlayLighthouseTransition().

Definition at line 2371 of file world_map.c.

Enumerations in detail

anonymous enum

enum { CONTACT_LAST_ACTOR, STEP_CUE_AREA_BASE }

The actors scWorldMapUpdateAreaContacts looks at, the placed ones to the last slot, and the base of the metatile behaviors a touch raises (STEP_CUE_AREA).

EnumeratorValueDescription
CONTACT_LAST_ACTOR65
STEP_CUE_AREA_BASE100

Definition at line 199 of file world_map.c.

WORLD_MAP_ACTOR_ID

enum WORLD_MAP_ACTOR_ID

The World Map's own actors, numbered in the order of WorldMapActorPlacements from ACTOR_FIRST_PLACED.

First come the Djinn met on the map, then the areas, then the Tolbi-bound Ship, the storm and Iodem.

Each area is named by the scene its exit leads into (WorldMapExits). Touching it raises its STEP_CUE_AREA (scWorldMapUpdateAreaContacts).

EnumeratorValueDescription
ACTOR_VENUS_DJINNIACTOR_FIRST_PLACEDThe Venus Djinni: Flint, circling his spot until the party meets him, and later Vine.
ACTOR_CORONAThe Mars Djinni Corona.
ACTOR_HAILThe Mercury Djinni Hail.
ACTOR_TO_VALE_PLAZAVale, whose exit leads to the town gate (SceneIdValePlaza).
ACTOR_TO_VAULT
ACTOR_TO_ALTIN
ACTOR_TO_SUHALLA
ACTOR_TO_LUNPA
ACTOR_TO_KALAY_DOCKS
ACTOR_TO_TOLBI_DOCKS
ACTOR_TO_IMIL
ACTOR_TO_KOLIMA
ACTOR_TO_XIAN
ACTOR_TO_LAMA_TEMPLE
ACTOR_TO_FUCHIN_TEMPLE
ACTOR_TO_BILIBIN
ACTOR_TO_KALAY
ACTOR_TO_LALIVERO
ACTOR_TO_TOLBI
ACTOR_TO_MERCURY_LIGHTHOUSE
ACTOR_TO_BILIBIN_BARRICADEACTOR_TO_MERCURY_LIGHTHOUSE + 3After two pictures no script answers: a mountain north of Vale (SPRITE_WORLD_MAP_MOUNTAIN) and Venus Lighthouse, which is entered by the metatiles around it.
ACTOR_TO_ROAD_TO_BABI_LIGHTHOUSE
ACTOR_TO_GOMA_CAVE_ENTRANCE
ACTOR_TO_GOMA_CAVE_BRIDGEGoma Cave's way out, where a wooden bridge crosses the river (SceneIdGomaCaveBridge).
ACTOR_TO_ALTMILLER_CAVE
ACTOR_TO_GONDOWAN_CAVE_NORTH
ACTOR_TO_GONDOWAN_CAVE_SOUTH
ACTOR_TO_MOGALL_FOREST_KILLER_APEThe way into Mogall Forest where the Killer Ape waits (SceneIdMogallForestKillerApe).
ACTOR_TO_GATEWAY_CAVE
ACTOR_TO_BILIBIN_CAVE_ENTRANCE
ACTOR_TO_BILIBIN_CAVE
ACTOR_TO_WEST_LUNPA_CAVE
ACTOR_TO_ALTIN_PEAK
ACTOR_TO_LAMAKAN_DESERT_CAVE
ACTOR_TO_KOLIMA_FOREST
ACTOR_TO_MOGALL_FOREST_SIGNThe way into Mogall Forest by its broken
ACTOR_TO_KALAY_TUNNEL_ENTRANCEsign (SceneIdMogallForestSign).
ACTOR_TO_KOLIMA_BRIDGEACTOR_TO_KALAY_TUNNEL_ENTRANCE + 4After three
ACTOR_TO_GONDOWAN_PASSAGEsignposts (SPRITE_SIGNPOST). Unused: they stand at the map's origin, out of the player's reach, and no code moves them.
ACTOR_TOLBI_SHIPACTOR_TO_GONDOWAN_PASSAGE + 2The Tolbi-bound Ship at anchor off Crossbone Isle, after the wreck of Babi's ship (SPRITE_SHIPWRECK), which stands off Gateway Cave.
ACTOR_STORMThe storm that lifts the party, as the Suhalla Desert's do.
ACTOR_IODEMPlaced by the coast once he has handed over the Black Orb.

Definition at line 213 of file world_map.c.

WORLD_MAP_METATILE_BEHAVIOR

enum WORLD_MAP_METATILE_BEHAVIOR

The World Map's own metatile behaviors, which the map's metatiles carry.

Each exit metatile carries the number of the exit it leads to, so the exit rows of WorldMapCues name their metatile behavior by that exit.

EnumeratorValueDescription
METATILE_BEHAVIOR_WORLD_MAP_TOLBI_SHIP74the shore beside the anchored ship
METATILE_BEHAVIOR_WORLD_MAP_CROSSBONE_ISLE75the island's shore, walked onto northward
METATILE_BEHAVIOR_WORLD_MAP_FLINT90the ground around Flint
METATILE_BEHAVIOR_WORLD_MAP_CORONA91the ground around Corona
METATILE_BEHAVIOR_WORLD_MAP_VINE92the ground around Vine
METATILE_BEHAVIOR_WORLD_MAP_HAIL93the ground around Hail
METATILE_BEHAVIOR_WORLD_MAP_STORM95the ground under the storm
METATILE_BEHAVIOR_WORLD_MAP_SHIPWRECK96the scuttled ship off Gateway Cave
METATILE_BEHAVIOR_WORLD_MAP_TURTLE_BOOTS100the ground where the Turtle Boots are buried

Definition at line 299 of file world_map.c.

WORLD_MAP_RAISED_CUE

enum WORLD_MAP_RAISED_CUE

Raised by scWorldMapUpdateStormTimer when the party's time in the air runs out.

EnumeratorValueDescription
RAISED_STORM_TIME_UP99

Definition at line 319 of file world_map.c.

anonymous enum

enum { WORLD_MAP_BRIDGE_ANIMATION_LOWERED }

SPRITE_WORLD_MAP_BRIDGE's animation once Kolima Bridge's drawbridge is down.

EnumeratorValueDescription
WORLD_MAP_BRIDGE_ANIMATION_LOWERED2

Definition at line 325 of file world_map.c.

anonymous enum

enum { FALLING_ROCK_ANIMATION_TUMBLE, FALLING_ROCK_ANIMATION_SHATTER }

The falling rock's animations (blue_crystal.png). It tumbles as it falls, then shatters where it lands.

EnumeratorValueDescription
FALLING_ROCK_ANIMATION_TUMBLE2
FALLING_ROCK_ANIMATION_SHATTER3

Definition at line 332 of file world_map.c.

WORLD_MAP_CARAVAN_ACTOR_ID

enum WORLD_MAP_CARAVAN_ACTOR_ID

The actors of Hammet's caravan leaving Vault (WorldMapActorPlacementsHammetsCaravan, WORLD_MAP_HAMMETS_CARAVAN_LEAVES), numbered from ACTOR_FIRST_PLACED. Garet's row takes his own actor id.

EnumeratorValueDescription
ACTOR_CARAVAN_HAMMETACTOR_FIRST_PLACEDHammet, in his sprite, as ACTOR_HAMMET is out of West Lunpa Cave.
ACTOR_CARAVAN_MANOne of Hammet's men, bald and bare-chested. "Master Hammet! This is terrible! The bridge has been destroyed..."
ACTOR_CARAVAN_FIRST_WAGONThe caravan's four wagons, in
ACTOR_INVISIBLE_ROCK_GUIDEACTOR_CARAVAN_FIRST_WAGON + 4the sprite of Bunza's wagon. A blank actor (SPRITE_BLANK) that the falling rock is held above as it drops (scWorldMapUpdateFallingRock). It grows from a tenth of its size as it moves (CaravanRockGuideScript).
ACTOR_FALLING_ROCKDrawn as the rocks in sol_sanctum_eruption.c. It lands by the caravan and shatters.

Definition at line 341 of file world_map.c.

anonymous enum

enum { ACTOR_CROSSING_SHIP }

The Tolbi-bound Ship, shown on its way across the Karagol Sea.

It is the first actor of WorldMapActorPlacementsCrossingEnds and WorldMapActorPlacementsCrossing (WORLD_MAP_FROM_SHIP_ROOMS_SAIL_TO_FIRST_ATTACK to WORLD_MAP_FROM_TOLBI_SHIP_DECK_REACH_TOLBI and WORLD_MAP_FROM_SHIP_ROOMS).

EnumeratorValueDescription
ACTOR_CROSSING_SHIPACTOR_FIRST_PLACED

Definition at line 370 of file world_map.c.

anonymous enum

enum { ACTOR_KALAY_WAGON }

Bunza's wagon at Kalay (WorldMapActorPlacementsFromKalayTunnelEntranceSouth), after Kalay's and the Kalay Tunnel Entrance's area actors.

EnumeratorValueDescription
ACTOR_KALAY_WAGONACTOR_FIRST_PLACED + 2

Definition at line 377 of file world_map.c.

anonymous enum

enum { ACTOR_DRIFTING_ISLAND }

The one actor of WorldMapActorPlacementsFromClear, before the ending.

It is the island Jenna and Kraden are adrift on ("How long will this island continue to drift?"). It drifts east trailing a wake (scWorldMapSpawnIslandWake) until the map leads into their script.

EnumeratorValueDescription
ACTOR_DRIFTING_ISLANDACTOR_FIRST_PLACED

Definition at line 387 of file world_map.c.

WORLD_MAP_ENDING_ACTOR_ID

enum WORLD_MAP_ENDING_ACTOR_ID

The ending's actors (WorldMapActorPlacementsJennaAndKradenAdrift), numbered from ACTOR_FIRST_PLACED after the rows of Jenna and Sheba, which take their own actor ids.

EnumeratorValueDescription
ACTOR_KRADENACTOR_FIRST_PLACEDKraden, adrift with Jenna.
ACTOR_ALEXAlex, who comes to show them that Felix and Sheba are alive. "There is something I wish to show you."
ACTOR_FELIXFelix, in his sprite as at Mercury Lighthouse (SPRITE_FELIX, mercury_lighthouse_aerie.c), shown with Sheba as Jenna and Kraden call their names.

Definition at line 395 of file world_map.c.

anonymous enum

enum { ANIM_JENNA_LIE, ANIM_KRADEN_LIE }

Animations the map plays by number beyond ACTOR_ANIMATION, from each sprite's animation table (graphics/sprite/<name>.tsv).

EnumeratorValueDescription
ANIM_JENNA_LIE19lying on her back (jenna.tsv's animation list)
ANIM_KRADEN_LIE5lying on his back (kraden.tsv)

Definition at line 410 of file world_map.c.

anonymous enum

enum { ENCOUNTER_SLOT_DJINN_LESSON, ENCOUNTER_SLOT_TORNADO_LIZARD, ENCOUNTER_SLOT_TEMPEST_LIZARD }

The battles the map starts from the scripted encounter tables.

EnumeratorValueDescription
ENCOUNTER_SLOT_DJINN_LESSON6Flint's lesson battle (ENCOUNTER_ZONE_SCRIPTED_VALE_VAULT).
ENCOUNTER_SLOT_TORNADO_LIZARD5The Tornado Lizard of Suhalla Desert's sandstorms (ENCOUNTER_ZONE_SCRIPTED).
ENCOUNTER_SLOT_TEMPEST_LIZARD7The Tempest Lizard of its great red storm (ENCOUNTER_ZONE_SCRIPTED).

Definition at line 417 of file world_map.c.

anonymous enum

enum { ACTOR_WAGON, ACTOR_BUNZA, ACTOR_HAMMET }

The actors placed at WORLD_MAP_WEST_LUNPA_CAVE (WorldMapActorPlacementsFromWestLunpaCave), numbered from ACTOR_FIRST_PLACED.

Bunza's wagon comes first. Bunza and Hammet come after Lunpa's and West Lunpa Cave's area actors.

EnumeratorValueDescription
ACTOR_WAGONACTOR_FIRST_PLACEDBunza's wagon.
ACTOR_BUNZAACTOR_FIRST_PLACED + 3
ACTOR_HAMMET

Definition at line 1040 of file world_map.c.

anonymous enum

enum { QUAKE_DUST_LEFT, QUAKE_DUST_TOP, QUAKE_DUST_WIDTH, QUAKE_DUST_DEPTH }

The box around Venus Lighthouse, in pixels, where dust puffs up as it shakes (scWorldMapUpdateLighthouseQuake).

EnumeratorValueDescription
QUAKE_DUST_LEFT6064
QUAKE_DUST_TOP3148
QUAKE_DUST_WIDTH40
QUAKE_DUST_DEPTH30

Definition at line 2340 of file world_map.c.

Functions in detail

scInit

Sint32 scInit(void)

Sets the map up for the entrance the party arrives by: the lighthouse transitions and the Black Orb defeat lead straight on to another scene; every other way in starts the area contacts and plays the story moment its entrance names, if any.

References fdActorGet(), fdScriptGetFlag(), fdScriptSetDestination(), fdScriptStart(), fdSetWorldMapGridTile(), gmFlagClear(), gmFlagGet(), gmFlagSet(), gmPartyInventoryDiscard(), IodemActor, MainRoutineStateWork, scFieldGameFlagGetByte(), scWorldMapBlockGatewayCaveExit(), scWorldMapBoardBunzasWagon(), scWorldMapPlayLighthouseTransition(), scWorldMapRunBlackOrbScript(), scWorldMapSailIntoTolbi(), scWorldMapSailToFirstMonsterAttack(), scWorldMapSailToKraken(), scWorldMapSailTolbiShipToIsland(), scWorldMapSailToSecondMonsterAttack(), scWorldMapSailToThirdMonsterAttack(), scWorldMapSailUntilLandSighted(), scWorldMapShakeVenusLighthouse(), scWorldMapShowEndingScript(), scWorldMapShowHammetsCaravan(), scWorldMapShowIslandDrifting(), scWorldMapStepDownFromBunzasWagon(), scWorldMapUpdateAreaContacts(), scWorldMapUpdateStormTimer(), Sint32, syImportScriptSetExitRequest(), sySetTickEvent() and sySynch().

Definition at lines 104 and 892 of file world_map.c.

scWorldMapAlignToMap

static Sint32 scWorldMapAlignToMap(ACTOR *actor)

The actor script of every picture on the map (WorldMapAlignToMapScript). It turns the sprite with the map's rotation.

References Sint32 and state.

Referenced by scWorldMapSetUpKolimaBridge() and WorldMapAlignToMapScript.

Definition at lines 171 and 611 of file world_map.c.

scWorldMapBoardBunzasWagon

static void scWorldMapBoardBunzasWagon(void)

Out of West Lunpa Cave once Dodonpa is locked up, Bunza and then Hammet come out beside Isaac at the cave mouth, face each other and nod. A covered wagon pulls up beside them; Hammet, Bunza and Isaac climb aboard in turn, and it rolls off east and away south out of sight, and the screen closes for the Kalay Tunnel Entrance.

References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorSetDestination(), fdActorSetDestinationOffset(), fdActorWaitForMoveById(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdWorldMapFreeze(), gmFlagSet() and syImportScriptSetExitRequest().

Referenced by scInit().

Definition at lines 172 and 1053 of file world_map.c.

scWorldMapShowHammetsCaravan

static void scWorldMapShowHammetsCaravan(void)

The first time the party walks onto Vault, Hammet's caravan comes out of the town: its wagons roll up beside the party, Hammet says they cannot stay in so dangerous a place, and the caravan heads south to the river, where his man finds the bridge is down.

While Hammet and his man talk of leaving Ivan behind and of the rod Ivan will search for, the ground shakes and a rock falls beside them. The party is then taken into Vault by its south side.

References CaravanFirstWagonArrives, CaravanFirstWagonDeparts, CaravanFirstWagonReturns, CaravanFourthWagonArrives, CaravanFourthWagonDeparts, CaravanFourthWagonReturns, CaravanRockGuideScript, CaravanSecondWagonArrives, CaravanSecondWagonDeparts, CaravanSecondWagonReturns, CaravanThirdWagonArrives, CaravanThirdWagonDeparts, CaravanThirdWagonReturns, CaravanWagonHeadsNorth, fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSelectAnimation(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetPosFX(), fdActorSetScript(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForScriptEndById(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdWorldMapFreeze(), fdWorldMapStartZoom(), fdWorldMapUnfreeze(), gmFlagSet(), scFieldScriptShowMessageThenWait(), scWalkIntoLeader(), scWorldMapShakeCameraOverCaravan(), scWorldMapShakeCameraWhereRockFalls(), scWorldMapUpdateFallingRock() and 6 more.

Referenced by scInit().

Definition at lines 173 and 1128 of file world_map.c.

scWorldMapShakeCameraOverCaravan

static void scWorldMapShakeCameraOverCaravan(void)

Shakes the camera around Hammet and his man as the ground trembles.

References scWorldMapMoveShakeCamera().

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 174 and 1421 of file world_map.c.

scWorldMapShakeCameraWhereRockFalls

static void scWorldMapShakeCameraWhereRockFalls(void)

Shakes the camera around the spot where the falling rock lands.

References scWorldMapMoveShakeCamera().

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 175 and 1438 of file world_map.c.

scWorldMapUpdateFallingRock

static void scWorldMapUpdateFallingRock(void)

Keeps the falling rock above its guide as it drops, and lands it once.

References fdActorGet(), fdActorSelectAnimation(), fdScriptGetFlag(), gmFlagSet() and sySoundPlay().

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 176 and 1455 of file world_map.c.

scWorldMapSailToFirstMonsterAttack

static void scWorldMapSailToFirstMonsterAttack(void)

The Tolbi-bound Ship, drawn a quarter larger, sails out of Kalay Docks on the World Map before the first attack at the mast.

References fdActorGet(), fdActorWalkToAndWait(), fdCameraFollowActor(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), gmFlagSet(), syImportScriptSetExitRequest() and sySynch().

Referenced by scInit().

Definition at lines 177 and 1479 of file world_map.c.

scWorldMapSailToSecondMonsterAttack

static void scWorldMapSailToSecondMonsterAttack(void)

The ship sails west across the Karagol Sea after the first attack, and the screen closes for the second attack at the mast.

References scWorldMapSailCrossingLeg().

Referenced by scInit().

Definition at lines 178 and 1535 of file world_map.c.

scWorldMapSailToThirdMonsterAttack

static void scWorldMapSailToThirdMonsterAttack(void)

The ship sails on west after the second attack, and the screen closes for the third.

References scWorldMapSailCrossingLeg().

Referenced by scInit().

Definition at lines 179 and 1542 of file world_map.c.

scWorldMapSailToKraken

static void scWorldMapSailToKraken(void)

The ship sails on west after the third attack, and the screen closes on the ship's rooms for the fourth, the Kraken's.

References scWorldMapSailCrossingLeg().

Referenced by scInit().

Definition at lines 180 and 1549 of file world_map.c.

scWorldMapSailUntilLandSighted

static void scWorldMapSailUntilLandSighted(void)

After the Kraken, the ship sails west across open sea until the screen closes on the mast, where land is sighted.

References CrossingShipDriftsNorth, CrossingShipSailsWest, fdActorGet(), fdActorSetScript(), fdCameraFollowActor(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), gmFlagSet(), scWorldMapGetRowingBalance(), syImportScriptSetExitRequest() and sySynch().

Referenced by scInit().

Definition at lines 181 and 1556 of file world_map.c.

scWorldMapSailIntoTolbi

static void scWorldMapSailIntoTolbi(void)

The ship sails the last stretch along the coast into Tolbi's harbour, and the scene changes to its deck.

References fdActorGet(), fdActorWalkToAndWait(), fdCameraFollowActor(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), gmFlagClear(), gmFlagSet(), syImportScriptSetExitRequest() and sySynch().

Referenced by scInit().

Definition at lines 182 and 1594 of file world_map.c.

scWorldMapStepDownFromBunzasWagon

static void scWorldMapStepDownFromBunzasWagon(void)

Brings Bunza's wagon to a stop and lets Isaac step down, after Hammet's return home (kalay.c's scKalayHammetReturnsToPalace).

References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorMoveToAndWait(), fdActorSetAnimation(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), syImportScriptSetExitRequest(), sySoundPlay() and sySynch().

Referenced by scInit().

Definition at lines 183 and 1935 of file world_map.c.

scWorldMapRunBlackOrbScript

static void scWorldMapRunBlackOrbScript(void)

Out of Gateway Cave, Iodem sees Babi's ship scuttled off the coast, gives Isaac the Black Orb and prompts him to use it on the ship.

References BlackOrbLeaderScript, fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAttachedEffect(), fdActorSetPosFX(), fdActorSetScript(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdWorldMapFreeze(), fdWorldMapStartZoom(), fdWorldMapUnfreeze(), gmFlagSet(), gmItemShowFound(), gmPartyGiveItem(), IodemActor, MainRoutineStateWork, scWorldMapBlockGatewayCaveExit() and sySynch().

Referenced by scInit().

Definition at lines 184 and 1996 of file world_map.c.

scWorldMapBlockGatewayCaveExit

static void scWorldMapBlockGatewayCaveExit(Sint32 actorId)

While Iodem waits with the Black Orb handed over, walking into Gateway Cave runs scWorldMapIodemCallsIsaacBack instead of entering it, and his row of the placements stands him on the coast. actorId goes unread.

References scWorldMapIodemCallsIsaacBack(), Sint32, WorldMapActorPlacements and WorldMapCues.

Referenced by scInit() and scWorldMapRunBlackOrbScript().

Definition at lines 185 and 2085 of file world_map.c.

scWorldMapIodemCallsIsaacBack

static void scWorldMapIodemCallsIsaacBack(void)

Walking back into Gateway Cave with the Black Orb unused makes Iodem call the leader back to the coast.

References fdActorWalkToAndWait(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdWorldMapFreeze(), fdWorldMapUnfreeze() and IodemActor.

Referenced by scWorldMapBlockGatewayCaveExit().

Definition at lines 186 and 2150 of file world_map.c.

scWorldMapShowEndingScript

static void scWorldMapShowEndingScript(void)

The ending, on the island Jenna and Kraden are adrift on: they lie on its grass and talk of the Venus beacon, Alex comes to them, and he leads them to the shore, where Felix and Sheba lie washed up, alive.

References EndingAlexWalk, EndingJennaWalk, EndingKradenWalk, fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkTo(), fdActorWalkToAndWait(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptSetDestination(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitForZoomTransition(), fdWorldMapFreeze(), fdWorldMapLoadDefaultMetatilesAndUpdateBlock(), fdWorldMapStartZoom(), MainRoutineStateWork, mnWindowColorApply(), scFieldScriptShowMessageThenWait(), scFieldScriptShowTwoMessagesAndWait(), sySoundPlay() and sySynch().

Referenced by scInit().

Definition at lines 187 and 2376 of file world_map.c.

scWorldMapShakeVenusLighthouse

static void scWorldMapShakeVenusLighthouse(void)

After the beacon is lit, the view settles on Venus Lighthouse on the World Map, which shakes with a rumble as yellow clouds of dust puff up round it, before the scene returns to the aerie for Sheba's fall.

References fdActorGet(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagSet(), scWorldMapUpdateLighthouseQuake(), syImportScriptSetExitRequest(), sySetTickEvent(), sySoundPlay() and sySynch().

Referenced by scInit().

Definition at lines 188 and 2521 of file world_map.c.

scWorldMapUpdateLighthouseQuake

static void scWorldMapUpdateLighthouseQuake(void)

Run each tick while Venus Lighthouse shakes.

References fdActorSelectAnimation(), fdActorStartScript(), QuakeCloudScript, scFieldActorCreate() and TickCount.

Referenced by scWorldMapShakeVenusLighthouse().

Definition at lines 189 and 2551 of file world_map.c.

scWorldMapSailTolbiShipToIsland

static void scWorldMapSailTolbiShipToIsland(void)

A leg of the Tolbi-bound Ship's crossing: from open sea the ship sails north-west with the camera on it until the green, wooded coast of an island comes into view, then turns north along the shore through the shallows and slows to a stop beside it. The screen closes for the rowing deck at the island.

References fdActorGet(), fdActorMoveToAndWait(), fdActorSetAnimation(), fdCameraFollowActor(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdWorldMapStartZoom(), syImportScriptSetExitRequest() and sySynch().

Referenced by scInit().

Definition at lines 190 and 2591 of file world_map.c.

scWorldMapGetRowingBalance

static Sint32 scWorldMapGetRowingBalance(void)

The rowing balance of the chosen passengers, as scTolbiShipMastGetRowingBalance reckons it: the values of those at the west seats (the first and third) less those at the east seats (the second and fourth).

References scWorldMapGetSeatRowValue() and Sint32.

Referenced by scWorldMapSailUntilLandSighted().

Definition at lines 191 and 2626 of file world_map.c.

scWorldMapGetSeatRowValue

static Sint32 scWorldMapGetSeatRowValue(Uint32 seat)

The rowing value of the passenger chosen for a seat, or 0 while it is empty.

References gmFlagGet(), Sint32 and TolbiShipPassengerRowValues.

Referenced by scWorldMapGetRowingBalance().

Definition at lines 192 and 2637 of file world_map.c.

scWorldMapShowIslandDrifting

static void scWorldMapShowIslandDrifting(void)

Before the ending, the island Jenna and Kraden are adrift on drifts east across a darkened sea, trailing a pale wake, as the view closes in on it, then the screen fades to white.

The darkening is PALETTE_TINT_DIM, applied to the backgrounds only.

References fdActorGet(), fdActorSetScript(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdCameraFollowActor(), fdPaletteFadeApplyTarget(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdWorldMapStartZoom(), IslandDriftsEast, scWorldMapSpawnIslandWake(), syImportScriptSetExitRequest(), sySetTickEvent() and sySynch().

Referenced by scInit().

Definition at lines 193 and 2706 of file world_map.c.

scWorldMapUpdateStormTimer

static void scWorldMapUpdateStormTimer(void)

Run each tick while a storm holds the party in the air: it spins the leader round and counts down the time left, which stands still while the menu is open.

References fdActorGet(), gmFlagGet(), MainRoutineStateWork, scFieldGameFlagGetByte(), scFieldGameFlagSetByte(), Sint32, state and TickCount.

Referenced by scInit() and scWorldMapCatchInStorm().

Definition at lines 194 and 2742 of file world_map.c.

scWorldMapPlayLighthouseTransition

static void scWorldMapPlayLighthouseTransition(WORLD_MAP_LIGHTHOUSE lighthouse)

The lighthouse transition, after a beacon is lit: on the World Map, darkened to a deep blue, a ball of light in the lighthouse's colours (blue for Mercury Lighthouse) swells over the lighthouse's top, glows there for 140 ticks and shrinks away. The map brightens again as the camera shakes with a rumble, then the screen closes for the aerie, its beacon lit (https://alchemy.pascalpixel.com/story/venus-lighthouse-lit.gif).

The ball is seven pictures, tile maps drawn on BG0 in the lighthouse's colours (WorldMapPalettes, by WORLD_MAP_LIGHTHOUSE).

It clears FLAG_KEEP_PARTY_POSITION and sets FLAG_SKIP_SCENE_CHANGE_SOUND.

References fdActorGet(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdWorldMapLoadAreaGraphics(), fdWorldMapStartStillImage(), gmFlagClear(), gmFlagSet(), MainRoutineStateWork, scFieldDecompressTaggedLZ(), scWorldMapJitterTransitionCamera(), scWorldMapShowTransitionPicture(), scWorldMapUpdateTransitionBlend(), syHeapAllocateEWRAM(), syHeapRelease(), sySetTickEvent(), sySoundPlay(), sySynch(), WorldMapBlendWork, WorldMapPackedPictures, WorldMapPackedTiles and WorldMapPalettes.

Referenced by scInit().

Definition at lines 195 and 2961 of file world_map.c.

scWorldMapMeetVine

static void scWorldMapMeetVine(void)

Walking over the small island north-west of the Lamakan Desert's way out, once a random battle is nearly due, may start a battle with the Venus Djinni Vine; nothing is seen of him beforehand.

From nine tenths of the steps to the next battle on, each step there has an even chance of bringing Vine's battle; otherwise the next random battle is made due at once. The row for talking to him is never reached, as his actor stays at the map's corner once it has played Flint.

References fdRequestDjinnBattle(), MainRoutineStateWork, state and syRandomNext().

Referenced by WorldMapCues.

Definition at line 435 of file world_map.c.

scWorldMapMeetCorona

static void scWorldMapMeetCorona(void)

Walking over the lone island far north of Xian, once a random battle is nearly due, starts a battle with the Mars Djinni Corona; nothing is seen of him beforehand.

His actor is placed at the map's corner, out of reach, so the row for talking to him is never reached.

References fdRequestDjinnBattle(), MainRoutineStateWork, Sint32 and state.

Referenced by WorldMapCues.

Definition at line 461 of file world_map.c.

scWorldMapMeetHail

static void scWorldMapMeetHail(void)

Walking over the fields far west of Tolbi, once a random battle is nearly due, starts a battle with the Mercury Djinni Hail; nothing is seen of him beforehand.

His actor is placed at the map's corner, out of reach, so the row for talking to him is never reached.

References fdRequestDjinnBattle(), MainRoutineStateWork, Sint32 and state.

Referenced by WorldMapCues.

Definition at line 480 of file world_map.c.

scWorldMapReleaseSparkAfterDelay

static void scWorldMapReleaseSparkAfterDelay(ACTOR *actor)

The update function of a sparkle around the Black Orb. It releases the sparkle on its second tick.

References fdActorRelease().

Referenced by scWorldMapPulseOrbAndSpawnSparks().

Definition at line 495 of file world_map.c.

scWorldMapPulseOrbAndSpawnSparks

static void scWorldMapPulseOrbAndSpawnSparks(ACTOR *actor)

The update function of the Black Orb held up over the wreck. It swells and shrinks every four ticks and gives off a sparkle every other tick.

References fdActorSelectAnimation(), fdActorSetSpriteFlags(), scFieldActorCreate(), scWorldMapReleaseSparkAfterDelay(), sySoundPlay() and TickCount.

Referenced by scWorldMapUseBlackOrb().

Definition at line 509 of file world_map.c.

scWorldMapCircleFlint

static void scWorldMapCircleFlint(ACTOR *actor)

Flint's update function until the party meets him (scWorldMapSetUpFlint).

References fdActorSetColorMode(), syMulFX(), sySin(), syVectorAddPolarOffset() and TickCount.

Referenced by scWorldMapSetUpFlint().

Definition at line 544 of file world_map.c.

scWorldMapSetUpFlint

static Sint32 scWorldMapSetUpFlint(ACTOR *actor)

Flint's actor script (WorldMapFlintScript). Until he is caught or his lesson has begun (FLAG_DJINN_LESSON), he circles his spot at half size.

References gmFlagGet(), scWorldMapCircleFlint() and Sint32.

Referenced by WorldMapFlintScript.

Definition at line 564 of file world_map.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References WorldMapEntrances.

Definition at line 583 of file world_map.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 588 of file world_map.c.

scGetExits

const Uint32 *scGetExits(void)

References WorldMapExits.

Definition at line 593 of file world_map.c.

scWorldMapSetUpKolimaBridge

static Sint32 scWorldMapSetUpKolimaBridge(ACTOR *actor)

Kolima Bridge's actor script (WorldMapKolimaBridgeScript).

References fdActorSelectAnimation(), gmFlagGet(), scWorldMapAlignToMap() and Sint32.

Referenced by WorldMapKolimaBridgeScript.

Definition at line 599 of file world_map.c.

scWorldMapSetUpIodem

static Sint32 scWorldMapSetUpIodem(ACTOR *actor)

Iodem's actor script (WorldMapIodemScript). He turns with the map and blocks the way, so the leader cannot walk through him.

References Sint32 and state.

Referenced by WorldMapIodemScript.

Definition at line 623 of file world_map.c.

scWorldMapSetUpStorm

static Sint32 scWorldMapSetUpStorm(ACTOR *actor)

Sets up the storm (ACTOR_STORM) as it is placed.

References fdActorSetColorMode(), fdActorSetSpriteFlags(), gmFlagGet(), gmFlagSet() and Sint32.

Referenced by WorldMapStormScript.

Definition at line 634 of file world_map.c.

scWorldMapHideStormOnOddTicks

static Sint32 scWorldMapHideStormOnOddTicks(ACTOR *actor)

Called each tick by the storm's actor script (WorldMapStormScript): it hides the storm on odd ticks, but scWorldMapUpdateAreaContacts shows it again in the same tick, and it is drawn in every tick.

References Sint32 and TickCount.

Referenced by WorldMapStormScript.

Definition at line 651 of file world_map.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

Chooses the actors for the entrance.

References gmFlagGet(), gmFlagSet(), MainRoutineStateWork, WorldMapActorPlacements, WorldMapActorPlacementsBeforeShebasFall, WorldMapActorPlacementsCrossing, WorldMapActorPlacementsCrossingEnds, WorldMapActorPlacementsFromClear, WorldMapActorPlacementsFromKalayTunnelEntranceSouth, WorldMapActorPlacementsFromWestLunpaCave, WorldMapActorPlacementsHammetsCaravan and WorldMapActorPlacementsJennaAndKradenAdrift.

Definition at line 659 of file world_map.c.

scWorldMapSelectExitByX

static void scWorldMapSelectExitByX(Sint32 cue, Sint32 exitBefore, Sint32 exitAfter)

Takes the party into an area with two ways in by the side it walks up from: exitBefore if the leader is west of the area's picture, else exitAfter, with the sound of leaving the map.

References fdActorGet(), MainRoutineStateWork, Sint32, state and sySoundPlay().

Referenced by scWorldMapEnterBilibinBarricade().

Definition at line 702 of file world_map.c.

scWorldMapSelectExitByZ

static void scWorldMapSelectExitByZ(Sint32 cue, Sint32 exitBefore, Sint32 exitAfter)

Takes the party into an area with two ways in by the side it walks up from: exitBefore if the leader is north of the area's picture, else exitAfter, with the sound of leaving the map.

References fdActorGet(), MainRoutineStateWork, Sint32, state and sySoundPlay().

Referenced by scWorldMapEnterGondowanPassage(), scWorldMapEnterKalayDocks(), scWorldMapEnterKolimaBridge() and scWorldMapEnterLalivero().

Definition at line 726 of file world_map.c.

scWorldMapEnterBilibinBarricade

static void scWorldMapEnterBilibinBarricade(void)

Walking onto the Bilibin Barricade on the World Map enters it by the side the party comes from, west or east.

References scWorldMapSelectExitByX().

Referenced by WorldMapCues.

Definition at line 749 of file world_map.c.

scWorldMapEnterKolimaBridge

static void scWorldMapEnterKolimaBridge(void)

Walking onto Kolima Bridge on the World Map enters it at its north end from the north, or at its south end from the south.

References scWorldMapSelectExitByZ().

Referenced by WorldMapCues.

Definition at line 758 of file world_map.c.

scWorldMapEnterKalayDocks

static void scWorldMapEnterKalayDocks(void)

Walking onto Kalay Docks on the World Map enters them by their north side from the north, or by their south side from the south.

References scWorldMapSelectExitByZ().

Referenced by WorldMapCues.

Definition at line 767 of file world_map.c.

scWorldMapEnterGondowanPassage

static void scWorldMapEnterGondowanPassage(void)

Walking onto Gondowan Passage on the World Map enters it at its north end from the north, or at its south end from the south.

References scWorldMapSelectExitByZ().

Referenced by WorldMapCues.

Definition at line 776 of file world_map.c.

scWorldMapEnterLalivero

static void scWorldMapEnterLalivero(void)

Walking onto Lalivero on the World Map enters the town by its west side from the north, or by its east side from the south.

References scWorldMapSelectExitByZ().

Referenced by WorldMapCues.

Definition at line 785 of file world_map.c.

scGetCues

const CUE *scGetCues(void)

References WorldMapCues.

Definition at line 792 of file world_map.c.

scWorldMapUpdateAreaContacts

static void scWorldMapUpdateAreaContacts(void)

Run each tick on the map, where scInit adds it: it shows only the area pictures near the view and, when the leader touches one, raises that area's cue.

References DebugMode, fdActorGet(), fdActorLookup(), gmFlagGet(), MainRoutineStateWork, Sint32 and state.

Referenced by scInit().

Definition at line 800 of file world_map.c.

scWorldMapEnterVault

static void scWorldMapEnterVault(void)

Walking onto Vault on the World Map enters the town by its south side. The first time, Hammet's caravan is seen leaving first.

References gmFlagGet(), syImportScriptSetExitRequest() and sySoundPlay().

Referenced by WorldMapCues.

Definition at line 867 of file world_map.c.

scWorldMapReturnToTolbiShip

static void scWorldMapReturnToTolbiShip(void)

Walking east along Crossbone Isle's shore into the anchored Tolbi-bound Ship takes the party back aboard, onto its deck.

References fdScriptStart() and syImportScriptSetExitRequest().

Referenced by WorldMapCues.

Definition at line 882 of file world_map.c.

scWorldMapMoveShakeCamera

static inline void scWorldMapMoveShakeCamera(Sint32 x, Sint32 z)

Moves to the next camera-shake point, in whole pixels, and holds it for four ticks.

References fdCameraMoveToFX(), Sint32 and sySynch().

Referenced by scWorldMapShakeCameraOverCaravan() and scWorldMapShakeCameraWhereRockFalls().

Definition at line 1414 of file world_map.c.

scWorldMapSailCrossingLeg

static inline void scWorldMapSailCrossingLeg(Sint32 exit)

A middle leg of the Karagol Sea crossing: the ship, seen from above, sails west over open sea with the camera following it, until the screen closes on the scene exit leads to.

References CrossingShipSailsWest, fdActorGet(), fdActorSetScript(), fdCameraFollowActor(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), gmFlagSet(), Sint32, syImportScriptSetExitRequest() and sySynch().

Referenced by scWorldMapSailToKraken(), scWorldMapSailToSecondMonsterAttack() and scWorldMapSailToThirdMonsterAttack().

Definition at line 1504 of file world_map.c.

scWorldMapExplainSettingDjinn

static void scWorldMapExplainSettingDjinn(void)

Flint explains how a Djinni is set and put on standby, running the Djinn menu for each part of the lesson, then starts the lesson battle. "After bringing a Djinni into your party, you must set it to somebody."

References fdActorJump(), fdActorRunRepeatedMotion(), fdRequestBattleFromEncounterTable(), fdScriptClearFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptWait(), fdScriptWaitForZoomTransition(), fdWorldMapFreeze(), fdWorldMapStartZoom(), fdWorldMapUnfreeze(), gmFlagClear(), gmFlagSet(), mnAnimateSelectionToEntry(), mnDjinnMenuRun() and sySoundPlay().

Referenced by scWorldMapMeetFlint().

Definition at line 1622 of file world_map.c.

scWorldMapMeetFlint

static void scWorldMapMeetFlint(void)

Walking up to Flint, the spark circling his spot just outside Vale: he cries "Oh!", drops down beside Isaac at full size, "A traveling warrior!", shimmers with sparkles, and asks to come along to find his comrades, telling how Djinn make an Adept's Psynergy stronger. Each "No" makes him plead again, and the seventh time he comes anyway; on "Yes", "Flint, the Venus Djinni, is now Isaac's ally!" Then he teaches the Djinn screen: it opens, and he shows how to give a Djinni to another Adept and set it, and that setting one changes attributes and even class. Then comes the lesson battle.

Back from it, still on his ground (FLAG_DJINN_LESSON set), he leaps up again: "See! We Djinn can be very useful, can't we?" He shows the Djinn screen once more for standby and recovery, offers to explain it all again, and at last joins for good.

References fdActorFaceActor(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetColorMode(), fdActorSetPosFX(), fdActorShowEmote(), fdActorWalkToAndWait(), fdDjinnJoinParty(), fdPsynergyEnd(), fdPsynergyLoadResources(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), fdScriptWaitForZoomTransition(), fdWorldMapFreeze(), fdWorldMapStartZoom(), fdWorldMapUnfreeze(), gmDjinnGive(), gmDjinnRecoveryAddStandby(), gmFlagClear(), gmFlagSet(), gmPartyRestoreHpPp(), mnAnimateSelectionToEntry(), mnDjinnMenuRun(), mnMessageArgumentPush(), mnMessageShowCentered(), scFieldActorSetMoveTargetFX(), scSpawnGoldenRing(), scWorldMapExplainSettingDjinn(), Sint32, sySoundPlay(), sySynch() and TickCount.

Referenced by WorldMapCues.

Definition at line 1666 of file world_map.c.

scWorldMapRestoreGatewayCaveExit

static void scWorldMapRestoreGatewayCaveExit(void)

Makes touching Gateway Cave an exit again, to WORLD_MAP_GATEWAY_CAVE.

References Sint32 and WorldMapCues.

Referenced by scWorldMapUseBlackOrb().

Definition at line 2115 of file world_map.c.

scWorldMapTalkAboutBlackOrb

static void scWorldMapTalkAboutBlackOrb(void)

Talking to Iodem, who gave the Black Orb, or reading his mind, makes him urge its use. "Now use it... on the ship."

References fdActorFaceActor(), fdActorFaceDirection(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and IodemActor.

Referenced by WorldMapCues.

Definition at line 2137 of file world_map.c.

scWorldMapSearchWreckage

static void scWorldMapSearchWreckage(void)

Checking the wreck of Babi's ship off the coast by Gateway Cave reads "The wreckage of a ship scuttled off the coast." While Isaac holds the Black Orb Iodem gave him, the field menu then opens, so that he can use it.

References fdScriptEnd(), fdScriptStart(), fdWorldMapFreeze(), fdWorldMapUnfreeze(), gmFlagGet() and mnFieldMessageShow().

Referenced by WorldMapCues.

Definition at line 2166 of file world_map.c.

scWorldMapUseBlackOrb

static void scWorldMapUseBlackOrb(void)

Using the Black Orb on the wreck off Gateway Cave, Isaac holds it up and it pulses and sparkles, but nothing happens. Iodem decides it is not yet time ("We must press on to Babi Lighthouse"), takes the orb back and leaves, and Gateway Cave can be entered again.

References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRelease(), fdActorReleaseById(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetDestination(), fdActorShowEmote(), fdActorStartIdle(), fdActorWaitForMove(), fdActorWaitForMoveById(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), fdWorldMapFreeze(), fdWorldMapStartZoom(), fdWorldMapUnfreeze(), gmFlagClear(), gmFlagSet(), gmItemLoadIcon(), gmPartyInventoryDiscard(), IodemActor, mnMessageShowCentered(), mnVRAMLoad(), scFieldActorCreate(), scFieldActorSetMoveTargetFX(), scWorldMapPulseOrbAndSpawnSparks(), scWorldMapRestoreGatewayCaveExit(), Sint32, syHeapSlotAllocate() and syHeapSlotRelease().

Referenced by WorldMapCues.

Definition at line 2187 of file world_map.c.

scWorldMapSpawnIslandWake

static void scWorldMapSpawnIslandWake(void)

Spawns a puff of the wake behind ACTOR_DRIFTING_ISLAND every 16 ticks.

References fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteColor(), fdActorStartScript(), IslandWakeScript, scFieldActorCreate(), Sint32 and TickCount.

Referenced by scWorldMapShowIslandDrifting().

Definition at line 2658 of file world_map.c.

scWorldMapCatchInStorm

static void scWorldMapCatchInStorm(Sint32 targetActorId)

Draws the leader into the storm, lifts him and starts its timer.

References fdActorGet(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorSetDestination(), fdActorWaitForMoveById(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), gmFlagSet(), MainRoutineStateWork, scFieldActorSetMoveTargetFX(), scFieldGameFlagSetByte(), scWorldMapUpdateStormTimer(), Sint32, sySetTickEvent() and sySoundPlay().

Referenced by scWorldMapWalkIntoStorm().

Definition at line 2768 of file world_map.c.

scWorldMapWalkIntoStorm

static void scWorldMapWalkIntoStorm(void)

Walking into the whirlwind near Crossbone Isle draws the leader into it and lifts the party into the air for three seconds.

References scWorldMapCatchInStorm().

Referenced by WorldMapCues.

Definition at line 2810 of file world_map.c.

scWorldMapStartDousingStorm

static void scWorldMapStartDousingStorm(void)

Casting Douse on the whirlwind that holds the party gathers the rain cloud high up, over the party where it floats, not on the ground below (script_commands_douse.c reads sceneVariant).

Referenced by WorldMapCues.

Definition at line 2818 of file world_map.c.

scWorldMapDouseMapStorm

static void scWorldMapDouseMapStorm(void)

Douse on the whirlwind that holds the party stops it, and the party drops to fight the Tempest Lizard inside, as in Suhalla Desert's red storm. The battle is taken from the scripted encounter table as that storm's is.

References fdActorGet(), fdRequestBattleFromEncounterTable(), gmFlagClear(), gmFlagSet(), MainRoutineStateWork and scFieldGameFlagSetByte().

Referenced by WorldMapCues.

Definition at line 2826 of file world_map.c.

scWorldMapStormDropsParty

static void scWorldMapStormDropsParty(void)

If the party is not brought down within three seconds, the whirlwind rises with them faster and faster out of sight, the screen closes, and they drop onto the World Map outside Suhalla.

References fdActorGet(), fdActorSetSpriteFlags(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptSetDestination(), fdScriptStart(), fdScriptWaitTransitionTicks(), gmFlagSet(), MainRoutineStateWork, Sint32, sySoundPlay() and sySynch().

Referenced by WorldMapCues.

Definition at line 2848 of file world_map.c.

scWorldMapUpdateTransitionBlend

static void scWorldMapUpdateTransitionBlend(void)

Run each tick of the lighthouse transition: blends the ball of light over the map, its own weight flickering between 12 and 16 sixteenths every two ticks over WorldMapBlendWork.

References syIOWriteQueueStore16(), TickCount and WorldMapBlendWork.

Referenced by scWorldMapPlayLighthouseTransition().

Definition at line 2879 of file world_map.c.

scWorldMapJitterTransitionCamera

static void scWorldMapJitterTransitionCamera(void)

Run each tick at the end of the lighthouse transition, as the ground rumbles: every third tick it moves the camera a pixel diagonally from the leader.

References fdActorGet(), fdCameraMoveToFX(), fdCameraMoveWithinMapBounds(), MainRoutineStateWork, Sint32 and TickCount.

Referenced by scWorldMapPlayLighthouseTransition().

Definition at line 2898 of file world_map.c.

scWorldMapShowTransitionPicture

static inline void scWorldMapShowTransitionPicture(Uint8 *buf, Sint32 offset, Sint32 ticks)

Queues one picture of the lighthouse transition and holds it for ticks ticks.

References fdScriptWait() and Sint32.

Referenced by scWorldMapPlayLighthouseTransition().

Definition at line 2943 of file world_map.c.

scWorldMapFlashWhiteWithGoldenRings

static void scWorldMapFlashWhiteWithGoldenRings(ACTOR *actor)

Unused: an actor's update function that flashes it white, two ticks on and two off, and every sixteenth tick sets off a golden ring around it, as Flint shimmers on meeting the party.

References fdActorSetColorMode(), scSpawnGoldenRing() and TickCount.

Definition at line 3036 of file world_map.c.

scWorldMapCycleColorsWithGoldenRings

static void scWorldMapCycleColorsWithGoldenRings(ACTOR *actor)

Unused: an actor's update function that cycles it through six colour modes and every sixteenth tick sets off a golden ring around it.

References fdActorSetColorMode(), scSpawnGoldenRing() and TickCount.

Definition at line 3054 of file world_map.c.

Variables in detail

IodemActor

extern Sint32 IodemActor

Sint32 IodemActor

Iodem's actor on the World Map, set as he comes out to meet the party. Neither this nor WorldMapBlendWork has a starting value, and the linker orders such variables by a hash of their names: these two names keep them in the ROM's order, where a WorldMap name for Iodem's actor would not.

References Sint32.

Referenced by scInit(), scWorldMapIodemCallsIsaacBack(), scWorldMapRunBlackOrbScript(), scWorldMapTalkAboutBlackOrb() and scWorldMapUseBlackOrb().

Definition at lines 105 and 1931 of file world_map.c.

CaravanFirstWagonArrives

extern Sint32 CaravanFirstWagonArrives[]

Sint32 CaravanFirstWagonArrives[]

Hammet's caravan outside Vault (scWorldMapShowHammetsCaravan): each of the four wagons, at one and a half times its size, rolls up to the party and stops in its own place.

References Sint32.

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 106 and 3074 of file world_map.c.

CaravanFirstWagonDeparts

extern Sint32 CaravanFirstWagonDeparts[]

Sint32 CaravanFirstWagonDeparts[]

Each wagon rolls south for the bridge and, out of sight, is put down where it waits at the broken bridge.

References Sint32.

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 107 and 3094 of file world_map.c.

CaravanFirstWagonReturns

extern Sint32 CaravanFirstWagonReturns[]

Sint32 CaravanFirstWagonReturns[]

Each wagon rolls back from the broken bridge and leaves the stage.

References Sint32.

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 108 and 3106 of file world_map.c.

CaravanWagonHeadsNorth

extern Sint32 CaravanWagonHeadsNorth[]

Sint32 CaravanWagonHeadsNorth[]

Every wagon in turn: from the road south of Vault it rolls north for Lunpa and leaves the stage.

References Sint32.

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 109 and 3116 of file world_map.c.

CaravanSecondWagonArrives

extern Sint32 CaravanSecondWagonArrives[]

Sint32 CaravanSecondWagonArrives[]

The second to fourth wagons stop in a column 32 pixels west of the first, the second southmost and each after it 16 pixels north.

References Sint32.

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 110 and 3130 of file world_map.c.

CaravanSecondWagonDeparts

extern Sint32 CaravanSecondWagonDeparts[]

Sint32 CaravanSecondWagonDeparts[]

The second to fourth wagons wait side by side north of the first, west to east.

References Sint32.

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 111 and 3150 of file world_map.c.

CaravanSecondWagonReturns

extern Sint32 CaravanSecondWagonReturns[]

Sint32 CaravanSecondWagonReturns[]

The second to fourth wagons each roll south to the first's road and follow it.

References Sint32.

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 112 and 3163 of file world_map.c.

CaravanThirdWagonArrives

extern Sint32 CaravanThirdWagonArrives[]

Sint32 CaravanThirdWagonArrives[]

References Sint32.

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 113 and 3173 of file world_map.c.

CaravanThirdWagonDeparts

extern Sint32 CaravanThirdWagonDeparts[]

Sint32 CaravanThirdWagonDeparts[]

References Sint32.

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 114 and 3191 of file world_map.c.

CaravanThirdWagonReturns

extern Sint32 CaravanThirdWagonReturns[]

Sint32 CaravanThirdWagonReturns[]

References Sint32.

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 115 and 3202 of file world_map.c.

CaravanFourthWagonArrives

extern Sint32 CaravanFourthWagonArrives[]

Sint32 CaravanFourthWagonArrives[]

References Sint32.

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 116 and 3212 of file world_map.c.

CaravanFourthWagonDeparts

extern Sint32 CaravanFourthWagonDeparts[]

Sint32 CaravanFourthWagonDeparts[]

References Sint32.

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 117 and 3230 of file world_map.c.

CaravanFourthWagonReturns

extern Sint32 CaravanFourthWagonReturns[]

Sint32 CaravanFourthWagonReturns[]

References Sint32.

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 118 and 3241 of file world_map.c.

CaravanRockGuideScript

extern Sint32 CaravanRockGuideScript[]

Sint32 CaravanRockGuideScript[]

The invisible guide of the rock that falls beside the caravan: it grows from a tenth of its size over 160 ticks as it moves to where the rock lands.

References Sint32.

Referenced by scWorldMapShowHammetsCaravan().

Definition at lines 119 and 3256 of file world_map.c.

BlackOrbLeaderScript

extern Sint32 BlackOrbLeaderScript[]

Sint32 BlackOrbLeaderScript[]

The leader's walk in scWorldMapRunBlackOrbScript: SW_TIMER turns 1 when he has stopped.

References Sint32.

Referenced by scWorldMapRunBlackOrbScript().

Definition at lines 120 and 3271 of file world_map.c.

EndingAlexWalk

extern Sint32 EndingAlexWalk[]

Sint32 EndingAlexWalk[]

The walks of the ending (scWorldMapShowEndingScript): Alex, Kraden and Jenna follow one path and stop side by side; Jenna's turns SW_TIMER to 1 when she has stopped.

References Sint32.

Referenced by scWorldMapShowEndingScript().

Definition at lines 121 and 3287 of file world_map.c.

EndingKradenWalk

extern Sint32 EndingKradenWalk[]

Sint32 EndingKradenWalk[]

References Sint32.

Referenced by scWorldMapShowEndingScript().

Definition at lines 122 and 3307 of file world_map.c.

EndingJennaWalk

extern Sint32 EndingJennaWalk[]

Sint32 EndingJennaWalk[]

References Sint32.

Referenced by scWorldMapShowEndingScript().

Definition at lines 123 and 3325 of file world_map.c.

QuakeCloudScript

extern Sint32 QuakeCloudScript[]

Sint32 QuakeCloudScript[]

A cloud of dust in the lighthouse quake (scWorldMapUpdateLighthouseQuake): it lasts 16 ticks.

References Sint32.

Referenced by scWorldMapUpdateLighthouseQuake().

Definition at lines 124 and 3347 of file world_map.c.

CrossingShipSailsWest

extern Sint32 CrossingShipSailsWest[]

Sint32 CrossingShipSailsWest[]

The ship crossing the sea (scWorldMapSailCrossingLeg, scWorldMapSailUntilLandSighted): 8 pixels west a step for 40 steps, then SW_TIMER turns 1 while it sails on two more.

References Sint32.

Referenced by scWorldMapSailCrossingLeg() and scWorldMapSailUntilLandSighted().

Definition at lines 125 and 3355 of file world_map.c.

CrossingShipDriftsNorth

extern Sint32 CrossingShipDriftsNorth[]

Sint32 CrossingShipDriftsNorth[]

As CrossingShipSailsWest, drifting 2 pixels north with each step.

References Sint32.

Referenced by scWorldMapSailUntilLandSighted().

Definition at lines 126 and 3369 of file world_map.c.

IslandDriftsEast

extern Sint32 IslandDriftsEast[]

Sint32 IslandDriftsEast[]

The island drifting east (scWorldMapShowIslandDrifting): 24 pixels a step for 10 steps, then SW_TIMER turns 1 while it drifts on two more.

References Sint32.

Referenced by scWorldMapShowIslandDrifting().

Definition at lines 127 and 3384 of file world_map.c.

WorldMapEntrances

extern SCENE_ENTRANCE WorldMapEntrances[]

SCENE_ENTRANCE WorldMapEntrances[]

Referenced by scGetEntrances().

Definition at lines 128 and 3402 of file world_map.c.

WorldMapExits

extern Uint32 WorldMapExits[]

Uint32 WorldMapExits[]

Referenced by scGetExits().

Definition at lines 129 and 4116 of file world_map.c.

WorldMapActorPlacements

extern ACTOR_PLACE WorldMapActorPlacements[]

ACTOR_PLACE WorldMapActorPlacements[]

References Sint32, WorldMapAlignToMapScript, WorldMapFlintScript, WorldMapIodemScript, WorldMapKolimaBridgeScript and WorldMapStormScript.

Referenced by scGetActorPlacements() and scWorldMapBlockGatewayCaveExit().

Definition at lines 130 and 4310 of file world_map.c.

WorldMapActorPlacementsHammetsCaravan

extern ACTOR_PLACE WorldMapActorPlacementsHammetsCaravan[]

ACTOR_PLACE WorldMapActorPlacementsHammetsCaravan[]

References Sint32 and WorldMapAlignToMapScript.

Referenced by scGetActorPlacements().

Definition at lines 131 and 4421 of file world_map.c.

WorldMapActorPlacementsFromWestLunpaCave

extern ACTOR_PLACE WorldMapActorPlacementsFromWestLunpaCave[]

ACTOR_PLACE WorldMapActorPlacementsFromWestLunpaCave[]

References Sint32 and WorldMapAlignToMapScript.

Referenced by scGetActorPlacements().

Definition at lines 132 and 4445 of file world_map.c.

WorldMapActorPlacementsCrossingEnds

extern ACTOR_PLACE WorldMapActorPlacementsCrossingEnds[]

ACTOR_PLACE WorldMapActorPlacementsCrossingEnds[]

References Sint32 and WorldMapAlignToMapScript.

Referenced by scGetActorPlacements().

Definition at lines 133 and 4459 of file world_map.c.

WorldMapActorPlacementsCrossing

extern ACTOR_PLACE WorldMapActorPlacementsCrossing[]

ACTOR_PLACE WorldMapActorPlacementsCrossing[]

References Sint32 and WorldMapAlignToMapScript.

Referenced by scGetActorPlacements().

Definition at lines 134 and 4471 of file world_map.c.

WorldMapActorPlacementsFromKalayTunnelEntranceSouth

extern ACTOR_PLACE WorldMapActorPlacementsFromKalayTunnelEntranceSouth[]

ACTOR_PLACE WorldMapActorPlacementsFromKalayTunnelEntranceSouth[]

References Sint32 and WorldMapAlignToMapScript.

Referenced by scGetActorPlacements().

Definition at lines 135 and 4477 of file world_map.c.

WorldMapActorPlacementsJennaAndKradenAdrift

extern ACTOR_PLACE WorldMapActorPlacementsJennaAndKradenAdrift[]

ACTOR_PLACE WorldMapActorPlacementsJennaAndKradenAdrift[]

References Sint32 and WorldMapAlignToMapScript.

Referenced by scGetActorPlacements().

Definition at lines 136 and 4487 of file world_map.c.

WorldMapActorPlacementsFromClear

extern ACTOR_PLACE WorldMapActorPlacementsFromClear[]

ACTOR_PLACE WorldMapActorPlacementsFromClear[]

References Sint32 and WorldMapAlignToMapScript.

Referenced by scGetActorPlacements().

Definition at lines 137 and 4503 of file world_map.c.

WorldMapActorPlacementsBeforeShebasFall

extern ACTOR_PLACE WorldMapActorPlacementsBeforeShebasFall[]

ACTOR_PLACE WorldMapActorPlacementsBeforeShebasFall[]

References Sint32 and WorldMapAlignToMapScript.

Referenced by scGetActorPlacements().

Definition at lines 138 and 4509 of file world_map.c.

WorldMapCues

extern CUE WorldMapCues[]

CUE WorldMapCues[]

References scWorldMapDouseMapStorm(), scWorldMapEnterBilibinBarricade(), scWorldMapEnterGondowanPassage(), scWorldMapEnterKalayDocks(), scWorldMapEnterKolimaBridge(), scWorldMapEnterLalivero(), scWorldMapEnterVault(), scWorldMapMeetCorona(), scWorldMapMeetFlint(), scWorldMapMeetHail(), scWorldMapMeetVine(), scWorldMapReturnToTolbiShip(), scWorldMapSearchWreckage(), scWorldMapStartDousingStorm(), scWorldMapStormDropsParty(), scWorldMapTalkAboutBlackOrb(), scWorldMapUseBlackOrb() and scWorldMapWalkIntoStorm().

Referenced by scGetCues(), scWorldMapBlockGatewayCaveExit() and scWorldMapRestoreGatewayCaveExit().

Definition at lines 139 and 4516 of file world_map.c.

IslandWakeScript

extern Sint32 IslandWakeScript[]

Sint32 IslandWakeScript[]

A puff of the drifting island's wake (scWorldMapSpawnIslandWake): for 48 ticks it drifts west and south as it spreads wider and flatter, then it is released.

References Sint32.

Referenced by scWorldMapSpawnIslandWake().

Definition at lines 140 and 4639 of file world_map.c.

WorldMapBlendWork

Uint16 WorldMapBlendWork

The second weight of the lighthouse transition's blend (BLEND_ALPHA), which the picture's weight flickers over.

Referenced by scWorldMapPlayLighthouseTransition() and scWorldMapUpdateTransitionBlend().

Definition at line 2350 of file world_map.c.

WorldMapFlintScript

Sint32 WorldMapFlintScript[]

Flint's actor script on the map: it sets him up (scWorldMapSetUpFlint).

References scWorldMapSetUpFlint() and Sint32.

Referenced by WorldMapActorPlacements.

Definition at line 3397 of file world_map.c.

WorldMapKolimaBridgeScript

Sint32 WorldMapKolimaBridgeScript[]

References scWorldMapSetUpKolimaBridge() and Sint32.

Referenced by WorldMapActorPlacements.

Definition at line 4288 of file world_map.c.

WorldMapAlignToMapScript

Sint32 WorldMapAlignToMapScript[]

References scWorldMapAlignToMap() and Sint32.

Referenced by WorldMapActorPlacements, WorldMapActorPlacementsBeforeShebasFall, WorldMapActorPlacementsCrossing, WorldMapActorPlacementsCrossingEnds, WorldMapActorPlacementsFromClear, WorldMapActorPlacementsFromKalayTunnelEntranceSouth, WorldMapActorPlacementsFromWestLunpaCave, WorldMapActorPlacementsHammetsCaravan and WorldMapActorPlacementsJennaAndKradenAdrift.

Definition at line 4293 of file world_map.c.

WorldMapIodemScript

Sint32 WorldMapIodemScript[]

References scWorldMapSetUpIodem() and Sint32.

Referenced by WorldMapActorPlacements.

Definition at line 4298 of file world_map.c.

WorldMapStormScript

Sint32 WorldMapStormScript[]

References scWorldMapHideStormOnOddTicks(), scWorldMapSetUpStorm() and Sint32.

Referenced by WorldMapActorPlacements.

Definition at line 4303 of file world_map.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailFLAG_WORLD_MAP_FALLING_ROCK_LANDEDFLAG_WORLD_MAP_BLACK_ORB_HANDED_OVERFLAG_WORLD_MAP_ORDINARY_ACTORSFLAG_WORLD_MAP_CAUGHT_IN_STORMFLAG_WORLD_MAP_STORM_GONEFLAG_WORLD_MAP_STORM_TICKS_LEFTSTORM_TICKS_IN_AIRFLINT_SPOT_XFLINT_SPOT_ZIODEM_COAST_XIODEM_COAST_ZSTEP_CUE_AREAFLINT_GROW_TICKSWORLD_MAP_QUEUE_TRANSITION_PICTUREWORLD_MAP_LIGHT_BALLLIGHT_BALL_TILESLIGHT_BALL_TILES_SIZELIGHT_BALL_FIRST_TILELIGHT_BALL_PALETTEEnumerations in detailanonymous enumWORLD_MAP_ACTOR_IDWORLD_MAP_METATILE_BEHAVIORWORLD_MAP_RAISED_CUEanonymous enumanonymous enumWORLD_MAP_CARAVAN_ACTOR_IDanonymous enumanonymous enumanonymous enumWORLD_MAP_ENDING_ACTOR_IDanonymous enumanonymous enumanonymous enumanonymous enumFunctions in detailscInitscWorldMapAlignToMapscWorldMapBoardBunzasWagonscWorldMapShowHammetsCaravanscWorldMapShakeCameraOverCaravanscWorldMapShakeCameraWhereRockFallsscWorldMapUpdateFallingRockscWorldMapSailToFirstMonsterAttackscWorldMapSailToSecondMonsterAttackscWorldMapSailToThirdMonsterAttackscWorldMapSailToKrakenscWorldMapSailUntilLandSightedscWorldMapSailIntoTolbiscWorldMapStepDownFromBunzasWagonscWorldMapRunBlackOrbScriptscWorldMapBlockGatewayCaveExitscWorldMapIodemCallsIsaacBackscWorldMapShowEndingScriptscWorldMapShakeVenusLighthousescWorldMapUpdateLighthouseQuakescWorldMapSailTolbiShipToIslandscWorldMapGetRowingBalancescWorldMapGetSeatRowValuescWorldMapShowIslandDriftingscWorldMapUpdateStormTimerscWorldMapPlayLighthouseTransitionscWorldMapMeetVinescWorldMapMeetCoronascWorldMapMeetHailscWorldMapReleaseSparkAfterDelayscWorldMapPulseOrbAndSpawnSparksscWorldMapCircleFlintscWorldMapSetUpFlintscGetEntrancesscGetExitRegionsscGetExitsscWorldMapSetUpKolimaBridgescWorldMapSetUpIodemscWorldMapSetUpStormscWorldMapHideStormOnOddTicksscGetActorPlacementsscWorldMapSelectExitByXscWorldMapSelectExitByZscWorldMapEnterBilibinBarricadescWorldMapEnterKolimaBridgescWorldMapEnterKalayDocksscWorldMapEnterGondowanPassagescWorldMapEnterLaliveroscGetCuesscWorldMapUpdateAreaContactsscWorldMapEnterVaultscWorldMapReturnToTolbiShipscWorldMapMoveShakeCamerascWorldMapSailCrossingLegscWorldMapExplainSettingDjinnscWorldMapMeetFlintscWorldMapRestoreGatewayCaveExitscWorldMapTalkAboutBlackOrbscWorldMapSearchWreckagescWorldMapUseBlackOrbscWorldMapSpawnIslandWakescWorldMapCatchInStormscWorldMapWalkIntoStormscWorldMapStartDousingStormscWorldMapDouseMapStormscWorldMapStormDropsPartyscWorldMapUpdateTransitionBlendscWorldMapJitterTransitionCamerascWorldMapShowTransitionPicturescWorldMapFlashWhiteWithGoldenRingsscWorldMapCycleColorsWithGoldenRingsVariables in detailIodemActorCaravanFirstWagonArrivesCaravanFirstWagonDepartsCaravanFirstWagonReturnsCaravanWagonHeadsNorthCaravanSecondWagonArrivesCaravanSecondWagonDepartsCaravanSecondWagonReturnsCaravanThirdWagonArrivesCaravanThirdWagonDepartsCaravanThirdWagonReturnsCaravanFourthWagonArrivesCaravanFourthWagonDepartsCaravanFourthWagonReturnsCaravanRockGuideScriptBlackOrbLeaderScriptEndingAlexWalkEndingKradenWalkEndingJennaWalkQuakeCloudScriptCrossingShipSailsWestCrossingShipDriftsNorthIslandDriftsEastWorldMapEntrancesWorldMapExitsWorldMapActorPlacementsWorldMapActorPlacementsHammetsCaravanWorldMapActorPlacementsFromWestLunpaCaveWorldMapActorPlacementsCrossingEndsWorldMapActorPlacementsCrossingWorldMapActorPlacementsFromKalayTunnelEntranceSouthWorldMapActorPlacementsJennaAndKradenAdriftWorldMapActorPlacementsFromClearWorldMapActorPlacementsBeforeShebasFallWorldMapCuesIslandWakeScriptWorldMapBlendWorkWorldMapFlintScriptWorldMapKolimaBridgeScriptWorldMapAlignToMapScriptWorldMapIodemScriptWorldMapStormScript