World Map
The World Map, the one perspective map (map/world) that joins the areas, and the only scene of this overlay.
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:
- Leaving Vale (
WORLD_MAP_VALE_PLAZA) setsFLAG_VALE_PARTY_LEFTthe first time. - Flint, the first Djinni, circles his spot until the party walks up to him
(
scWorldMapMeetFlint). He joins and teaches how Djinn are set and put on standby, and a lesson battle follows. - Hammet's caravan. It plays the first time the party touches Vault
(
WORLD_MAP_HAMMETS_CARAVAN_LEAVES). The caravan, cut off from Kalay by the destroyed bridge, turns north for Lunpa as the ground shakes and a rock falls beside it. Then the party goes on into Vault. It setsFLAG_LUNPA_GUARDS_SUSPECT_KALAY. - Mercury Lighthouse lit (
WORLD_MAP_AFTER_MERCURY_LIGHTHOUSE_LIT). The lighthouse transition plays (scWorldMapPlayLighthouseTransition), then Mercury Lighthouse Aerie follows (MERCURY_LIGHTHOUSE_AERIE_AFTER_BEACON_LIT). - Bunza's wagon. Out of West Lunpa Cave (
WORLD_MAP_WEST_LUNPA_CAVE) Bunza, Hammet and the leader board it and it rolls off (FLAG_BUNZAS_WAGON_LEFT). At the Kalay Tunnel Entrance (WORLD_MAP_FROM_KALAY_TUNNEL_ENTRANCE_SOUTH) it stops and the leader steps down. - The Tolbi-bound Ship's crossing of the Karagol Sea. Between the ship's
scenes (
WORLD_MAP_FROM_SHIP_ROOMS_SAIL_TO_FIRST_ATTACKto _SAIL_TO_LAND) the map shows the ship sailing west and sends the party back aboard (FLAG_TOLBI_SHIP_ROWING). A rowing off course takes it north to anchor off the island (WORLD_MAP_FROM_SHIP_ROOMS,FLAG_TOLBI_SHIP_AT_ISLAND). ThereMETATILE_BEHAVIOR_WORLD_MAP_CROSSBONE_ISLEleads ashore andMETATILE_BEHAVIOR_WORLD_MAP_TOLBI_SHIPback aboard.WORLD_MAP_FROM_TOLBI_SHIP_DECK_REACH_TOLBIends the crossing at Tolbi (FLAG_TOLBI_SHIP_REACHED_TOLBI). - The Black Orb. Out of Gateway Cave (
WORLD_MAP_GATEWAY_CAVE) Iodem sees Babi's ship scuttled off the coast and gives Isaac the orb to use on it (FLAG_WORLD_MAP_BLACK_ORB_HANDED_OVER,FLAG_SAW_SHIP_AT_IDEJIMA). He calls him back if he walks into the cave again. Used on the wreck, the orb sparkles but nothing happens: Iodem decides it is not yet time, takes it back and sends the party on to Babi Lighthouse (FLAG_BLACK_ORB_RETURNED). A defeat meanwhile returns toWORLD_MAP_AFTER_BLACK_ORB_DEFEAT, which discards the orb and leads on byWORLD_MAP_TO_ROCK_ROOMS. - Venus Lighthouse lit (
WORLD_MAP_AFTER_VENUS_LIGHTHOUSE_LIT). The lighthouse transition plays, then the party is back at the Lighthouse Aerie (VENUS_LIGHTHOUSE_AERIE_AFTER_BEACON_LIT). After the look back (WORLD_MAP_BEFORE_SHEBAS_FALL) the lighthouse shakes in clouds of dust before Sheba's fall (WORLD_MAP_TO_VENUS_LIGHTHOUSE_AERIE). - The ending. Once the cleared game is saved (scene/
file_screen.c,WORLD_MAP_FROM_FILE_SCREEN), the island Jenna and Kraden are adrift on drifts east.WORLD_MAP_JENNA_AND_KRADEN_ADRIFTthen shows Alex leading them to Felix and Sheba before the Title returns.
WORLD_MAP_FROM_DEBUG, the debug menus' entrance, turns encounters off.

Events
scWorldMapMeetFlint
Walking up to Flint, the spark circling his spot just outside Vale.
Oh!
Meanie! …
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.
scWorldMapTalkAboutBlackOrb
Talking to Iodem, who gave the Black Orb, or reading his mind, makes him urge its use.

Now use it... on the ship.
"Now use it... on the ship."
scWorldMapIodemCallsIsaacBack
Walking back into Gateway Cave with the Black Orb unused makes Iodem call the leader back to the coast.

Isaac, where you going? I said to use the Orb on Babi's ship!
scWorldMapSearchWreckage
Checking the wreck of Babi's ship off the coast by Gateway Cave reads.

The wreckage of a ship scuttled off the coast.
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.
scWorldMapDouseMapStorm
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.
scWorldMapStormDropsParty
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.

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

scWorldMapStartDousingStorm
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.
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).
scWorldMapSetUpStorm
Sets up the storm as it is placed.
Sets up the storm (ACTOR_STORM) as it is placed.
scWorldMapEnterBilibinBarricade
Walking onto the Bilibin Barricade on the World Map enters it by the side the party comes from, west or east.

scWorldMapEnterKolimaBridge
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.

scWorldMapEnterKalayDocks
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.

scWorldMapEnterGondowanPassage
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.

scWorldMapEnterLalivero
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.

scWorldMapEnterVault
Walking onto Vault on the World Map enters the town by its south side.

The first time, Hammet's caravan is seen leaving first.
scWorldMapReturnToTolbiShip
Walking east along Crossbone Isle's shore into the anchored Tolbi-bound Ship takes the party back aboard, onto its deck.

scWorldMapMeetVine
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.
scWorldMapMeetCorona
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.
scWorldMapMeetHail
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.
scWorldMapSetUpFlint
Flint's actor script.
Flint's actor script (WorldMapFlintScript). Until he is caught or his lesson
has begun (FLAG_DJINN_LESSON), he circles his spot at half size.
scWorldMapSetUpKolimaBridge
Kolima Bridge's actor script.
Kolima Bridge's actor script (WorldMapKolimaBridgeScript).
scWorldMapUseBlackOrb
Using the Black Orb on the wreck off Gateway Cave, Isaac holds it up and it pulses and sparkles, but nothing happens.

What's the matter?
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.
scWorldMapFlashWhiteWithGoldenRings (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.
scWorldMapCycleColorsWithGoldenRings (unused)
An actor's update function that cycles it through six colour modes and every sixteenth tick sets off a golden ring around it.
Its code is in world_map.c.