src/scene/kalay_tolbi_docks.c
Kalay Docks and Tolbi Docks, the two ends of the ship's crossing of the Karagol Sea, and the cottage at each (SceneIdKalayDocks, SceneIdTolbiDocks and SceneIdCottageRoomsE, the rooms map that holds both cottages' rooms). More…
#include "ability_ids.h"#include "flags.h"#include "item_ids.h"#include "debug/debug.h"#include "field/actor_script.h"#include "field/script_inline.h"#include "field/speaker.h"#include "graphics/graphics.h"#include "text/msg_ids.h"
Macros
| Name | Description | |
|---|---|---|
#define | TICKET_PRICE 600 | The boarding ticket's price in coins, for the four of them. |
Enumerations
| Name | Description | |
|---|---|---|
enum | KALAY_TOLBI_DOCKS_METATILE_BEHAVIOR { METATILE_BEHAVIOR_KALAY_TOLBI_DOCKS_COTTAGE_DOOR, METATILE_B … } | The metatiles of the docks the scenes give a meaning of their own. |
enum | KALAY_DOCKS_ACTOR_ID { ACTOR_YOUNG_MAN_ASKING_ABOUT_TOLBI, ACTOR_WOMAN_IN_A_PICKLE, … } | Kalay Docks' people, numbering the rows of KalayTolbiDocksKalayActorPlacements from ACTOR_FIRST_PLACED. |
enum | TOLBI_DOCKS_ACTOR_ID { ACTOR_MAN_HEARING_OF_THE_SCARY_TRIP, ACTOR_MAN_DONE_SAILING, … } | Tolbi Docks' people after the crossing, numbering the rows of KalayTolbiDocksTolbiActorPlacements from ACTOR_FIRST_PLACED. |
enum | TOLBI_DOCKS_STRANDED_ACTOR_ID { ACTOR_ANGRY_YOUNG_MAN, ACTOR_STRANDED_WOMAN, ACTOR_SECOND_TO … } | Tolbi Docks once the Colosso Tour's passengers are stranded there: the rows of KalayTolbiDocksTolbiActorPlacementsStranded that hold other people than KalayTolbiDocksTolbiActorPlacements. |
enum | KALAY_TOLBI_DOCKS_ROOM_ACTOR_ID { ACTOR_SELLING_TICKETS, ACTOR_OLD_MAN_AWAITING_THE_REPLACEMEN … } | The people of the two dock rooms, numbering the rows of KalayTolbiDocksRoomActorPlacements from ACTOR_FIRST_PLACED: the Kalay room's three, then the Tolbi room's. |
enum | KALAY_TOLBI_DOCKS_ROOM_STRANDED_ACTOR_ID { ACTOR_MAN_ON_THE_SHIP_GOING_NOWHERE, ACTOR_WOMAN_SAYING_THE_ … } | The dock rooms after Colosso (KalayTolbiDocksRoomActorPlacementsStranded): the Tolbi room's last two rows hold other people. |
enum | anonymous enum { KALAY_TOLBI_DOCKS_ENTRANCE_AFTER_COLOSSO } | An entrance no exit, table or code leads to, whose arrival sets FLAG_COLOSSO_OVER. |
Functions
| Name | Description | |
|---|---|---|
static void | scKalayTolbiDocksPrepareKalayDocks (void) | On the first arrival at Kalay Docks from the World Map, Garet runs to see the Karagol. |
static void | scKalayTolbiDocksPrepareTolbiDocks (void) | Sets Tolbi Docks up: the crates' metatiles, the man who met the party on the pier, and after Colosso the stranded passengers where their quarrel left them. |
static void | scKalayTolbiDocksPrepareRoom (void) | The rooms at the docks open with a window transition and no area name. |
static void | scKalayTolbiDocksUpdateCrateMetatiles (void) | After Move pushes either stack of crates by the fence west of the cottage at Tolbi Docks, the ground along their row, metatiles (5, 11) to (9, 11), is walled off again except under each stack, where walking into it hops Isaac up across the crates. |
static void | scKalayTolbiDocksSettleCrates (Sint32 actorId) | Stops a stack of crates' idle motion and sets its sprite priority. |
static void | scKalayTolbiDocksGaretSeesTheKaragol (void) | At Kalay Docks, on the first entry from the World Map, Garet runs to the edge of the docks and marvels at the sea. |
static void | scKalayTolbiDocksGroundJoins (void) | At Kalay Docks, talking to Ground, a Venus Djinni, makes it join the party. |
const SCENE_ENTRANCE * | scGetEntrances (void) | Selects the entrances of Kalay Docks, Tolbi Docks or the rooms on CottageRoomsE. |
const SCENE_EXIT_REGION * | scGetExitRegions (void) | The scene has no exit regions: its regions entry returns none. |
const Uint32 * | scGetExits (void) | The ways out of all three scenes. |
const ACTOR_PLACE * | scGetActorPlacements (void) | Each scene's people before the crossing, once the ship has crossed and not come back (FLAG_TOLBI_SHIP_REACHED_TOLBI), and once the Colosso Tour's passengers are stranded after Colosso (FLAG_COLOSSO_OVER). |
static void | scKalayTolbiDocksGreetArrivals (void) | Stepping off the ship onto the pier at Tolbi Docks (metatile (24, 18)), Isaac walks a few steps and a man in a yellow bandana hurries over to stand beside the party, ready to ask about the crossing. |
const CUE * | scGetCues (void) | Selects each scene's scripts for the same three times as its people. |
static void | scKalayTolbiDocksAskAboutTolbiCrossing (void) | At Kalay Docks, a young man asks whether the party wants to go to Tolbi. |
static void | scKalayTolbiDocksTalkToWomanWithAMessage (void) | At Kalay Docks, a woman asks whether the party is taking the ship. |
static void | scKalayTolbiDocksRemindBoardShip (void) | At Kalay Docks, spoken to on the shore after the party has handed over its ticket and gone ashore, the man checking tickets asks it to board the ship when it is finished. |
static void | scKalayTolbiDocksTalkToManCheckingTickets (void) | At Kalay Docks, the man checking tickets at the ship's plank asks for the party's tickets when it faces him from the east. |
static void | scKalayTolbiDocksTalkToDockWorker (void) | At Kalay Docks, once the tour's group has left Kalay, the dock worker explains the tickets: hand one over to board, give it to the man checking tickets, or wait on board for the ship to sail. |
static void | scKalayTolbiDocksTalkToWomanSellingTickets (void) | In the cottage at Kalay Docks, until the ship has crossed, the woman selling tickets offers tickets for the four of them at 600 coins, with the party's coins shown beside the question. |
static void | scKalayTolbiDocksAskAboutRoughCrossing (void) | At Tolbi Docks, a man on the docks has heard the party was attacked by a monster on the crossing, and asks whether that is true. |
static void | scKalayTolbiDocksAskAboutSeasickTourists (void) | At Tolbi Docks, a young man asks whether the upset tourists got seasick. |
static void | scKalayTolbiDocksTalkToWaitingDaughter (void) | At Tolbi Docks, the daughter looks for her parents among the passengers. |
static void | scKalayTolbiDocksOpenDoorAndLeave (void) | Walking north into the cottage door at Kalay Docks or Tolbi Docks opens it, and Isaac walks in. |
Sint32 | scInit (void) | Prepares whichever of the three scenes is entered. |
static void | scKalayTolbiDocksPassengersBlameTourGuide (void) | After Colosso, the first time the party crosses the meadow at Tolbi Docks below the cottage (metatiles (11, 16) to (11, 19)), it watches the stranded passengers by the pier demand to be taken home, the tour guide tell an angry young man his ticket was refunded, and the guides' bodyguard knock him flat. |
Variables
Description
Kalay Docks and Tolbi Docks, the two ends of the ship's crossing of the
Karagol Sea, and the cottage at each (SceneIdKalayDocks, SceneIdTolbiDocks
and SceneIdCottageRoomsE, the rooms map that holds both cottages' rooms). The
three scenes share one overlay.
What is there changes three times: when the Colosso tour group has left Kalay
(FLAG_KALAY_COLOSSO_TOUR_LEFT), when the ship has made its crossing
(FLAG_TOLBI_SHIP_REACHED_TOLBI, set on the World Map,
scWorldMapSailIntoTolbi), and when the Colosso finals are over
(FLAG_COLOSSO_OVER).
Kalay Docks: the first time the party walks in from the south, Garet runs to
the edge of the docks and marvels at the Karagol, which a young man tells him
is no real ocean (scKalayTolbiDocksGaretSeesTheKaragol). The Tolbi-bound ship
lies at the west side of the docks. Until the tour group has left Kalay,
anyone may look around on board; afterwards the man in a red bandana at its
plank asks for a ticket, which a woman in the cottage sells for 600 coins,
and lets the party aboard once it hands one over. He lets it back ashore
until the ship sails. A woman on the docks asks the party to tell her
daughter in Tolbi that she cannot afford the tickets
(FLAG_KALAY_DOCKS_CARRYING_MESSAGE); the man beside her is the girl's father.
The Japanese text of MsgKalayPassMessageDaughter has her name herself 母,
"Mother", as she would to her daughter, which the English renders Her mother says that tickets are too expensive. Ground, a Venus Djinni, sits at the
north edge of the docks, reached only from the north, by the World Map. Once
the ship has crossed, the travellers are gone and the dock hands wait for a
ship that has not come back.
Tolbi Docks: the ship lands at the pier on the east side. Stepping off, the
party is met by a man who has heard it was attacked by a monster on the
crossing. The woman's daughter watches the sea for her parents and takes the
message (FLAG_TOLBI_DOCKS_MESSAGE_DELIVERED). In the cottage on the ledge
above, no tickets are sold, the sea being too dangerous. Move pushes two
stacks of crates by the fence west of the cottage, and set right they let
Isaac hop up to a chest with a Potion in the north-west corner; a box on the
pier holds 35 coins. The meadow's west edge leads out to the World Map toward
Tolbi.
After Colosso the tour group's passengers are stranded at Tolbi Docks, the
ships not sailing. The first time the party crosses the meadow toward the
pier, it watches them demand to be taken home and the tour guides' hired
bodyguard knock the angriest flat (scKalayTolbiDocksPassengersBlameTourGuide,
FLAG_TOLBI_DOCKS_TOUR_GROUP_BLAMED); scKalayTolbiDocksPrepareTolbiDocks keeps
them where it left them.
Only the debug scene selector, which exits to any scene and entrance by
number, reaches KALAY_TOLBI_DOCKS_ENTRANCE_AFTER_COLOSSO. That entrance sets
FLAG_COLOSSO_OVER as Babi Palace's BABI_PALACE_AFTER_COLOSSO does.
Macros in detail
TICKET_PRICE
#define TICKET_PRICE 600
The boarding ticket's price in coins, for the four of them.
Referenced by scKalayTolbiDocksTalkToWomanSellingTickets().
Definition at line 557 of file kalay_tolbi_docks.c.
Enumerations in detail
KALAY_TOLBI_DOCKS_METATILE_BEHAVIOR
enum KALAY_TOLBI_DOCKS_METATILE_BEHAVIOR
The metatiles of the docks the scenes give a meaning of their own.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_KALAY_TOLBI_DOCKS_COTTAGE_DOOR | 10 | The cottage door at either dock: Kalay's at (18, 88) and (19, 88), Tolbi's at (14, 13) and (15, 13). |
METATILE_BEHAVIOR_TOLBI_DOCKS_PIER_LANDING | 20 | Tolbi's pier where the party steps off the ship, metatile (24, 18). |
METATILE_BEHAVIOR_TOLBI_DOCKS_MEADOW | 50 | Tolbi's meadow below the cottage, metatiles (11, 16) to (11, 19), on the way from the World Map to the pier. |
Definition at line 86 of file kalay_tolbi_docks.c.
KALAY_DOCKS_ACTOR_ID
enum KALAY_DOCKS_ACTOR_ID
Kalay Docks' people, numbering the rows of
KalayTolbiDocksKalayActorPlacements from ACTOR_FIRST_PLACED. Garet's row
takes his own actor slot. Once the ship has crossed
(KalayTolbiDocksKalayActorPlacementsShipGone) the first four stand off the
map.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_YOUNG_MAN_ASKING_ABOUT_TOLBI | ACTOR_FIRST_PLACED | A young man with brown hair (SPRITE_YOUNG_MAN_WITH_BROWN_HAIR), who walks over to tell Garet the Karagol is no real ocean. |
ACTOR_WOMAN_IN_A_PICKLE | A woman with fair hair (SPRITE_WOMAN_WITH_FAIR_HAIR). | |
ACTOR_MAN_AT_SILK_ROADS_END | A burly grey-haired man (SPRITE_BURLY_MAN_WITH_GREY_HAIR), whose thoughts tell of a daughter who left Tolbi to meet him at the docks. | |
ACTOR_WOMAN_WITH_A_MESSAGE | A woman in a green dress (SPRITE_WOMAN_IN_GREEN_DRESS) whose daughter waits on the Tolbi Docks. | |
ACTOR_CHECKING_TICKETS | A man in a red bandana (SPRITE_MAN_IN_RED_BANDANA) who takes the tickets at the ship's plank. "Tickets, please." | |
ACTOR_DOCK_WORKER | A man in a blue bandana (SPRITE_MAN_IN_BLUE_BANDANA). | |
ACTOR_GROUND | A Venus Djinni, placed until it joins. |
Definition at line 107 of file kalay_tolbi_docks.c.
TOLBI_DOCKS_ACTOR_ID
enum TOLBI_DOCKS_ACTOR_ID
Tolbi Docks' people after the crossing, numbering the rows of
KalayTolbiDocksTolbiActorPlacements from ACTOR_FIRST_PLACED.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_MAN_HEARING_OF_THE_SCARY_TRIP | ACTOR_FIRST_PLACED | A man in a yellow bandana (SPRITE_MAN_IN_YELLOW_BANDANA) who hears of the party's scary trip. After Colosso, "There are many here who want to return to Kalay since Colosso is over." |
ACTOR_MAN_DONE_SAILING | A man in a green bandana (SPRITE_MAN_IN_GREEN_BANDANA). After Colosso, "Hanging around here like this and staring out at the sea is boring!" | |
ACTOR_YOUNG_MAN_ASKING_IF_SEASICK | A young man with brown hair (SPRITE_YOUNG_MAN_WITH_BROWN_HAIR). | |
ACTOR_WAITING_DAUGHTER | A woman with fair hair (SPRITE_WOMAN_WITH_FAIR_HAIR) who watches the sea for her parents. | |
ACTOR_WOMAN_POINTING_WEST | A woman in a green dress (SPRITE_WOMAN_IN_GREEN_DRESS). | |
ACTOR_MAN_ON_THE_TOUR_LONG_GONE | A burly grey-haired man (SPRITE_BURLY_MAN_WITH_GREY_HAIR). | |
ACTOR_FIRST_CRATES | The two stacks of wooden crates Move | |
ACTOR_SECOND_CRATES | pushes along the pier. They are SPRITE_CRATES, the crates of the Bilibin Barricade (bilibin.c). |
Definition at line 134 of file kalay_tolbi_docks.c.
TOLBI_DOCKS_STRANDED_ACTOR_ID
enum TOLBI_DOCKS_STRANDED_ACTOR_ID
Tolbi Docks once the Colosso Tour's passengers are stranded there: the rows
of KalayTolbiDocksTolbiActorPlacementsStranded that hold other people than
KalayTolbiDocksTolbiActorPlacements. The man who hears of the scary trip, the
one done sailing and the crates keep their rows.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_ANGRY_YOUNG_MAN | ACTOR_FIRST_PLACED + 2 | A young man with brown hair (SPRITE_YOUNG_MAN_WITH_BROWN_HAIR), the passenger who charges the tour guide and is knocked flat. |
ACTOR_STRANDED_WOMAN | A woman with fair hair (SPRITE_WOMAN_WITH_FAIR_HAIR). | |
ACTOR_SECOND_TOUR_GUIDE | The other guide, a man carrying a pack | |
ACTOR_TOUR_GUIDE | (SPRITE_MAN_CARRYING_A_PACK) as the tour guide is: "it's not our fault the ship won't sail, so we can't offer any refunds." Refunded the angry young man's ticket. | |
ACTOR_BODYGUARD | ACTOR_FIRST_PLACED + 8 | A bald, muscular man (SPRITE_BALD_MUSCULAR_MAN) hired by the tour guides. |
ACTOR_SIGHING_PASSENGER | An old man with a cane (SPRITE_OLD_MAN_WITH_CANE). "Sigh. If I knew it would turn out like this, we wouldn't have come." |
Definition at line 168 of file kalay_tolbi_docks.c.
KALAY_TOLBI_DOCKS_ROOM_ACTOR_ID
enum KALAY_TOLBI_DOCKS_ROOM_ACTOR_ID
The people of the two dock rooms, numbering the rows of
KalayTolbiDocksRoomActorPlacements from ACTOR_FIRST_PLACED: the Kalay room's
three, then the Tolbi room's. Once the ship has crossed
(KalayTolbiDocksRoomActorPlacementsShipGone) the Kalay room's two travellers
stand off the map.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_SELLING_TICKETS | ACTOR_FIRST_PLACED | A woman with fair hair (SPRITE_WOMAN_WITH_FAIR_HAIR) in the Kalay room. |
ACTOR_OLD_MAN_AWAITING_THE_REPLACEMENT_SHIP | An old man with a cane (SPRITE_OLD_MAN_WITH_CANE). | |
ACTOR_OLD_WOMAN_EXCITED_FOR_TOLBI | An old woman (SPRITE_OLD_WOMAN), who wonders whether her husband is giving up on Colosso. | |
ACTOR_SELLING_NO_TICKETS | A woman with fair hair | |
ACTOR_OLD_MAN_WHO_RENTED_OUT_HIS_HOUSE | (SPRITE_WOMAN_WITH_FAIR_HAIR) who sells no tickets in the Tolbi room. "I'm sorry, but we just can't sell any tickets right now." An old man with a cane (SPRITE_OLD_MAN_WITH_CANE). | |
ACTOR_OLD_WOMAN_WITH_NOWHERE_TO_SLEEP | An old woman (SPRITE_OLD_WOMAN). |
Definition at line 197 of file kalay_tolbi_docks.c.
KALAY_TOLBI_DOCKS_ROOM_STRANDED_ACTOR_ID
enum KALAY_TOLBI_DOCKS_ROOM_STRANDED_ACTOR_ID
The dock rooms after Colosso (KalayTolbiDocksRoomActorPlacementsStranded):
the Tolbi room's last two rows hold other people.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_MAN_ON_THE_SHIP_GOING_NOWHERE | ACTOR_FIRST_PLACED + 4 | A burly grey-haired man (SPRITE_BURLY_MAN_WITH_GREY_HAIR). "Some rich guy was here throwing money around, but they still said no." |
ACTOR_WOMAN_SAYING_THE_SEA_LOOKS_CALM | A woman in a green dress (SPRITE_WOMAN_IN_GREEN_DRESS). |
Definition at line 221 of file kalay_tolbi_docks.c.
anonymous enum
enum { KALAY_TOLBI_DOCKS_ENTRANCE_AFTER_COLOSSO }
An entrance no exit, table or code leads to, whose arrival sets
FLAG_COLOSSO_OVER. The debug scene selector reaches it.
| Enumerator | Value | Description |
|---|---|---|
KALAY_TOLBI_DOCKS_ENTRANCE_AFTER_COLOSSO | 90 |
Definition at line 754 of file kalay_tolbi_docks.c.
Functions in detail
scKalayTolbiDocksPrepareKalayDocks
static void scKalayTolbiDocksPrepareKalayDocks(void)
On the first arrival at Kalay Docks from the World Map, Garet runs to see the Karagol.
References fdActorFaceDirection(), fdScriptGetFlag(), gmFlagClear(), gmFlagGet(), gmFlagSet(), MainRoutineStateWork and scKalayTolbiDocksGaretSeesTheKaragol().
Referenced by scInit().
Definition at lines 233 and 784 of file kalay_tolbi_docks.c.
scKalayTolbiDocksPrepareTolbiDocks
static void scKalayTolbiDocksPrepareTolbiDocks(void)
Sets Tolbi Docks up: the crates' metatiles, the man who met the party on the pier, and after Colosso the stranded passengers where their quarrel left them.
References fdActorFaceDirection(), fdActorGet(), fdActorSetSpriteColorById(), fdMapGridCopyMetatileAttributes(), fdScriptGetFlag(), gmFlagClear(), gmFlagGet(), MainRoutineStateWork and scKalayTolbiDocksUpdateCrateMetatiles().
Referenced by scInit().
Definition at lines 234 and 814 of file kalay_tolbi_docks.c.
scKalayTolbiDocksPrepareRoom
static void scKalayTolbiDocksPrepareRoom(void)
The rooms at the docks open with a window transition and no area name.
References gmFlagClear().
Referenced by scInit().
Definition at lines 235 and 869 of file kalay_tolbi_docks.c.
scKalayTolbiDocksUpdateCrateMetatiles
static void scKalayTolbiDocksUpdateCrateMetatiles(void)
After Move pushes either stack of crates by the fence west of the cottage at Tolbi Docks, the ground along their row, metatiles (5, 11) to (9, 11), is walled off again except under each stack, where walking into it hops Isaac up across the crates. Pushed into the right places, they lead up to the Potion chest in the north-west corner.
References fdActorGet(), fdMapGridCopyMetatileAttributes(), scKalayTolbiDocksSettleCrates() and Sint32.
Referenced by KalayTolbiDocksTolbiCues, KalayTolbiDocksTolbiCuesStranded and scKalayTolbiDocksPrepareTolbiDocks().
Definition at lines 236 and 881 of file kalay_tolbi_docks.c.
scKalayTolbiDocksSettleCrates
static void scKalayTolbiDocksSettleCrates(Sint32 actorId)
Stops a stack of crates' idle motion and sets its sprite priority.
References fdActorGet(), fdActorSetSpriteFlags(), fdActorSetSpritePriority() and Sint32.
Referenced by scKalayTolbiDocksUpdateCrateMetatiles().
Definition at lines 237 and 899 of file kalay_tolbi_docks.c.
scKalayTolbiDocksGaretSeesTheKaragol
static void scKalayTolbiDocksGaretSeesTheKaragol(void)
At Kalay Docks, on the first entry from the World Map, Garet runs to the edge of the docks and marvels at the sea.
References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetDestination(), fdActorSetMovementTypeById(), fdActorShowEmote(), fdActorWaitForMoveById(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdEndBusyAndReveal(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks() and scFieldActorLaunchFromLeader().
Referenced by scKalayTolbiDocksPrepareKalayDocks().
Definition at lines 238 and 911 of file kalay_tolbi_docks.c.
scKalayTolbiDocksGroundJoins
static void scKalayTolbiDocksGroundJoins(void)
At Kalay Docks, talking to Ground, a Venus Djinni, makes it join the party.
References fdDjinnJoinParty().
Referenced by KalayTolbiDocksKalayCues and KalayTolbiDocksKalayCuesShipGone.
Definition at line 241 of file kalay_tolbi_docks.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
Selects the entrances of Kalay Docks, Tolbi Docks or the rooms on
CottageRoomsE.
References KalayTolbiDocksKalayEntrances, KalayTolbiDocksNoEntrances, KalayTolbiDocksRoomEntrances, KalayTolbiDocksTolbiEntrances and MainRoutineStateWork.
Definition at line 248 of file kalay_tolbi_docks.c.
scGetExitRegions
const SCENE_EXIT_REGION *scGetExitRegions(void)
Definition at line 267 of file kalay_tolbi_docks.c.
scGetExits
const Uint32 *scGetExits(void)
The ways out of all three scenes.
References KalayTolbiDocksExits.
Definition at line 273 of file kalay_tolbi_docks.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
Each scene's people before the crossing, once the ship has crossed and not
come back (FLAG_TOLBI_SHIP_REACHED_TOLBI), and once the Colosso Tour's
passengers are stranded after Colosso (FLAG_COLOSSO_OVER).
References gmFlagGet(), KalayTolbiDocksKalayActorPlacements, KalayTolbiDocksKalayActorPlacementsShipGone, KalayTolbiDocksNoActorPlacements, KalayTolbiDocksRoomActorPlacements, KalayTolbiDocksRoomActorPlacementsShipGone, KalayTolbiDocksRoomActorPlacementsStranded, KalayTolbiDocksTolbiActorPlacements, KalayTolbiDocksTolbiActorPlacementsStranded and MainRoutineStateWork.
Definition at line 281 of file kalay_tolbi_docks.c.
scKalayTolbiDocksGreetArrivals
static void scKalayTolbiDocksGreetArrivals(void)
Stepping off the ship onto the pier at Tolbi Docks (metatile (24, 18)), Isaac walks a few steps and a man in a yellow bandana hurries over to stand beside the party, ready to ask about the crossing. Once each landing.
References fdActorFaceDirection(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptStart(), fdScriptWait() and gmFlagSet().
Referenced by KalayTolbiDocksTolbiCues.
Definition at line 322 of file kalay_tolbi_docks.c.
scGetCues
const CUE *scGetCues(void)
Selects each scene's scripts for the same three times as its people.
References gmFlagGet(), KalayTolbiDocksKalayCues, KalayTolbiDocksKalayCuesShipGone, KalayTolbiDocksNoCues, KalayTolbiDocksRoomCues, KalayTolbiDocksRoomCuesShipGone, KalayTolbiDocksRoomCuesStranded, KalayTolbiDocksTolbiCues, KalayTolbiDocksTolbiCuesStranded and MainRoutineStateWork.
Definition at line 335 of file kalay_tolbi_docks.c.
scKalayTolbiDocksAskAboutTolbiCrossing
static void scKalayTolbiDocksAskAboutTolbiCrossing(void)
At Kalay Docks, a young man asks whether the party wants to go to Tolbi.
References fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId() and fdScriptStart().
Referenced by KalayTolbiDocksKalayCues.
Definition at line 374 of file kalay_tolbi_docks.c.
scKalayTolbiDocksTalkToWomanWithAMessage
static void scKalayTolbiDocksTalkToWomanWithAMessage(void)
At Kalay Docks, a woman asks whether the party is taking the ship.
References fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and gmFlagSet().
Referenced by KalayTolbiDocksKalayCues.
Definition at line 386 of file kalay_tolbi_docks.c.
scKalayTolbiDocksRemindBoardShip
static void scKalayTolbiDocksRemindBoardShip(void)
At Kalay Docks, spoken to on the shore after the party has handed over its ticket and gone ashore, the man checking tickets asks it to board the ship when it is finished.
References fdActorFaceDirection(), fdActorGet(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptStart() and gmFlagGet().
Referenced by KalayTolbiDocksKalayCues.
Definition at line 419 of file kalay_tolbi_docks.c.
scKalayTolbiDocksTalkToManCheckingTickets
static void scKalayTolbiDocksTalkToManCheckingTickets(void)
At Kalay Docks, the man checking tickets at the ship's plank asks for the party's tickets when it faces him from the east.
References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimationAndWait(), fdActorWalkToAndWait(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), gmInventoryDiscard(), gmInventoryFind(), gmPartyInventoryFindMember() and Sint32.
Referenced by KalayTolbiDocksKalayCues.
Definition at line 448 of file kalay_tolbi_docks.c.
scKalayTolbiDocksTalkToDockWorker
static void scKalayTolbiDocksTalkToDockWorker(void)
At Kalay Docks, once the tour's group has left Kalay, the dock worker explains the tickets: hand one over to board, give it to the man checking tickets, or wait on board for the ship to sail.
References fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and gmFlagGet().
Referenced by KalayTolbiDocksKalayCues.
Definition at line 530 of file kalay_tolbi_docks.c.
scKalayTolbiDocksTalkToWomanSellingTickets
static void scKalayTolbiDocksTalkToWomanSellingTickets(void)
In the cottage at Kalay Docks, until the ship has crossed, the woman selling tickets offers tickets for the four of them at 600 coins, with the party's coins shown beside the question. Once bought, she sends the party to the ship's plank.
References fdActorSetAnimationAndWait(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmPartyAdjustCoins(), gmPartyGiveItem(), MainRoutineStateWork, mnMessageArgumentPush(), mnTextDrawMessageAsTiles(), mnTextDrawNumberInWindow(), mnWindowClose(), mnWindowCreate(), Sint32, state and sySoundPlay().
Referenced by KalayTolbiDocksRoomCues.
Definition at line 563 of file kalay_tolbi_docks.c.
scKalayTolbiDocksAskAboutRoughCrossing
static void scKalayTolbiDocksAskAboutRoughCrossing(void)
At Tolbi Docks, a man on the docks has heard the party was attacked by a monster on the crossing, and asks whether that is true.
References fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId() and fdScriptStart().
Referenced by KalayTolbiDocksTolbiCues.
Definition at line 645 of file kalay_tolbi_docks.c.
scKalayTolbiDocksAskAboutSeasickTourists
static void scKalayTolbiDocksAskAboutSeasickTourists(void)
At Tolbi Docks, a young man asks whether the upset tourists got seasick.
References fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId() and fdScriptStart().
Referenced by KalayTolbiDocksTolbiCues.
Definition at line 657 of file kalay_tolbi_docks.c.
scKalayTolbiDocksTalkToWaitingDaughter
static void scKalayTolbiDocksTalkToWaitingDaughter(void)
At Tolbi Docks, the daughter looks for her parents among the passengers.
References fdActorFaceActor(), fdActorFaceDirection(), fdActorShowEmote(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagGet() and gmFlagSet().
Referenced by KalayTolbiDocksTolbiCues.
Definition at line 669 of file kalay_tolbi_docks.c.
scKalayTolbiDocksOpenDoorAndLeave
static void scKalayTolbiDocksOpenDoorAndLeave(void)
Walking north into the cottage door at Kalay Docks or Tolbi Docks opens it, and Isaac walks in.
References fdActorSetSpritePriority(), fdActorWalkTo(), fdMapGridAnimateMetatiles(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), KalayTolbiDocksKalayDoorMetatiles, KalayTolbiDocksTolbiDoorMetatiles, MainRoutineStateWork, syImportScriptSetExitRequest() and sySoundPlay().
Referenced by KalayTolbiDocksKalayCues, KalayTolbiDocksKalayCuesShipGone, KalayTolbiDocksTolbiCues and KalayTolbiDocksTolbiCuesStranded.
Definition at line 728 of file kalay_tolbi_docks.c.
scInit
Sint32 scInit(void)
Prepares whichever of the three scenes is entered.
References gmFlagSet(), MainRoutineStateWork, scKalayTolbiDocksPrepareKalayDocks(), scKalayTolbiDocksPrepareRoom(), scKalayTolbiDocksPrepareTolbiDocks() and Sint32.
Definition at line 760 of file kalay_tolbi_docks.c.
scKalayTolbiDocksPassengersBlameTourGuide
static void scKalayTolbiDocksPassengersBlameTourGuide(void)
After Colosso, the first time the party crosses the meadow at Tolbi Docks below the cottage (metatiles (11, 16) to (11, 19)), it watches the stranded passengers by the pier demand to be taken home, the tour guide tell an angry young man his ticket was refunded, and the guides' bodyguard knock him flat.
References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkBy(), fdActorWalkByAndWait(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdEndBusyAndReveal(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagSet(), KalayTolbiDocksBodyguardSpinScript and sySoundPlay().
Referenced by KalayTolbiDocksTolbiCuesStranded.
Definition at line 1005 of file kalay_tolbi_docks.c.
Variables in detail
KalayTolbiDocksKalayDoorMetatiles
extern Uint16 KalayTolbiDocksKalayDoorMetatiles[]
Uint16 KalayTolbiDocksKalayDoorMetatiles[]
The docks' cottage doors opening, at Kalay Docks and at Tolbi Docks.
Referenced by scKalayTolbiDocksOpenDoorAndLeave().
Definition at lines 60 and 1220 of file kalay_tolbi_docks.c.
KalayTolbiDocksTolbiDoorMetatiles
extern Uint16 KalayTolbiDocksTolbiDoorMetatiles[]
Uint16 KalayTolbiDocksTolbiDoorMetatiles[]
Referenced by scKalayTolbiDocksOpenDoorAndLeave().
Definition at lines 61 and 1225 of file kalay_tolbi_docks.c.
KalayTolbiDocksBodyguardSpinScript
extern Sint32 KalayTolbiDocksBodyguardSpinScript[]
Sint32 KalayTolbiDocksBodyguardSpinScript[]
References Sint32.
Referenced by scKalayTolbiDocksPassengersBlameTourGuide().
Definition at lines 62 and 1231 of file kalay_tolbi_docks.c.
KalayTolbiDocksNoEntrances
extern SCENE_ENTRANCE KalayTolbiDocksNoEntrances[]
SCENE_ENTRANCE KalayTolbiDocksNoEntrances[]
Referenced by scGetEntrances().
Definition at lines 63 and 1238 of file kalay_tolbi_docks.c.
KalayTolbiDocksKalayEntrances
extern SCENE_ENTRANCE KalayTolbiDocksKalayEntrances[]
SCENE_ENTRANCE KalayTolbiDocksKalayEntrances[]
Referenced by scGetEntrances().
Definition at lines 64 and 1251 of file kalay_tolbi_docks.c.
KalayTolbiDocksTolbiEntrances
extern SCENE_ENTRANCE KalayTolbiDocksTolbiEntrances[]
SCENE_ENTRANCE KalayTolbiDocksTolbiEntrances[]
Referenced by scGetEntrances().
Definition at lines 65 and 1300 of file kalay_tolbi_docks.c.
KalayTolbiDocksRoomEntrances
extern SCENE_ENTRANCE KalayTolbiDocksRoomEntrances[]
SCENE_ENTRANCE KalayTolbiDocksRoomEntrances[]
CottageRoomsE's entrances, each into the room at the dock it is entered from.
Referenced by scGetEntrances().
Definition at lines 66 and 1335 of file kalay_tolbi_docks.c.
KalayTolbiDocksExits
extern Uint32 KalayTolbiDocksExits[]
Uint32 KalayTolbiDocksExits[]
Kalay Docks' exits, then Tolbi Docks' and CottageRoomsE's.
Referenced by scGetExits().
Definition at lines 67 and 1363 of file kalay_tolbi_docks.c.
KalayTolbiDocksNoActorPlacements
extern ACTOR_PLACE KalayTolbiDocksNoActorPlacements[]
ACTOR_PLACE KalayTolbiDocksNoActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 68 and 1392 of file kalay_tolbi_docks.c.
KalayTolbiDocksTolbiActorPlacements
extern ACTOR_PLACE KalayTolbiDocksTolbiActorPlacements[]
ACTOR_PLACE KalayTolbiDocksTolbiActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 69 and 1397 of file kalay_tolbi_docks.c.
KalayTolbiDocksTolbiActorPlacementsStranded
extern ACTOR_PLACE KalayTolbiDocksTolbiActorPlacementsStranded[]
ACTOR_PLACE KalayTolbiDocksTolbiActorPlacementsStranded[]
Referenced by scGetActorPlacements().
Definition at lines 70 and 1417 of file kalay_tolbi_docks.c.
KalayTolbiDocksKalayActorPlacements
extern ACTOR_PLACE KalayTolbiDocksKalayActorPlacements[]
ACTOR_PLACE KalayTolbiDocksKalayActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 71 and 1441 of file kalay_tolbi_docks.c.
KalayTolbiDocksKalayActorPlacementsShipGone
extern ACTOR_PLACE KalayTolbiDocksKalayActorPlacementsShipGone[]
ACTOR_PLACE KalayTolbiDocksKalayActorPlacementsShipGone[]
Referenced by scGetActorPlacements().
Definition at lines 72 and 1461 of file kalay_tolbi_docks.c.
KalayTolbiDocksRoomActorPlacements
extern ACTOR_PLACE KalayTolbiDocksRoomActorPlacements[]
ACTOR_PLACE KalayTolbiDocksRoomActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 73 and 1481 of file kalay_tolbi_docks.c.
KalayTolbiDocksRoomActorPlacementsShipGone
extern ACTOR_PLACE KalayTolbiDocksRoomActorPlacementsShipGone[]
ACTOR_PLACE KalayTolbiDocksRoomActorPlacementsShipGone[]
Referenced by scGetActorPlacements().
Definition at lines 74 and 1497 of file kalay_tolbi_docks.c.
KalayTolbiDocksRoomActorPlacementsStranded
extern ACTOR_PLACE KalayTolbiDocksRoomActorPlacementsStranded[]
ACTOR_PLACE KalayTolbiDocksRoomActorPlacementsStranded[]
Referenced by scGetActorPlacements().
Definition at lines 75 and 1513 of file kalay_tolbi_docks.c.
KalayTolbiDocksNoCues
extern CUE KalayTolbiDocksNoCues[]
CUE KalayTolbiDocksNoCues[]
Referenced by scGetCues().
Definition at lines 76 and 1529 of file kalay_tolbi_docks.c.
KalayTolbiDocksKalayCues
extern CUE KalayTolbiDocksKalayCues[]
CUE KalayTolbiDocksKalayCues[]
References scKalayTolbiDocksAskAboutTolbiCrossing(), scKalayTolbiDocksGroundJoins(), scKalayTolbiDocksOpenDoorAndLeave(), scKalayTolbiDocksRemindBoardShip(), scKalayTolbiDocksTalkToDockWorker(), scKalayTolbiDocksTalkToManCheckingTickets() and scKalayTolbiDocksTalkToWomanWithAMessage().
Referenced by scGetCues().
Definition at lines 77 and 1533 of file kalay_tolbi_docks.c.
KalayTolbiDocksKalayCuesShipGone
extern CUE KalayTolbiDocksKalayCuesShipGone[]
CUE KalayTolbiDocksKalayCuesShipGone[]
References scKalayTolbiDocksGroundJoins() and scKalayTolbiDocksOpenDoorAndLeave().
Referenced by scGetCues().
Definition at lines 78 and 1584 of file kalay_tolbi_docks.c.
KalayTolbiDocksTolbiCues
extern CUE KalayTolbiDocksTolbiCues[]
CUE KalayTolbiDocksTolbiCues[]
References scKalayTolbiDocksAskAboutRoughCrossing(), scKalayTolbiDocksAskAboutSeasickTourists(), scKalayTolbiDocksGreetArrivals(), scKalayTolbiDocksOpenDoorAndLeave(), scKalayTolbiDocksTalkToWaitingDaughter() and scKalayTolbiDocksUpdateCrateMetatiles().
Referenced by scGetCues().
Definition at lines 79 and 1601 of file kalay_tolbi_docks.c.
KalayTolbiDocksTolbiCuesStranded
extern CUE KalayTolbiDocksTolbiCuesStranded[]
CUE KalayTolbiDocksTolbiCuesStranded[]
References scKalayTolbiDocksOpenDoorAndLeave(), scKalayTolbiDocksPassengersBlameTourGuide() and scKalayTolbiDocksUpdateCrateMetatiles().
Referenced by scGetCues().
Definition at lines 80 and 1644 of file kalay_tolbi_docks.c.
KalayTolbiDocksRoomCues
extern CUE KalayTolbiDocksRoomCues[]
CUE KalayTolbiDocksRoomCues[]
References scKalayTolbiDocksTalkToWomanSellingTickets().
Referenced by scGetCues().
Definition at lines 81 and 1691 of file kalay_tolbi_docks.c.
KalayTolbiDocksRoomCuesShipGone
extern CUE KalayTolbiDocksRoomCuesShipGone[]
CUE KalayTolbiDocksRoomCuesShipGone[]
Referenced by scGetCues().
Definition at lines 82 and 1723 of file kalay_tolbi_docks.c.
KalayTolbiDocksRoomCuesStranded
extern CUE KalayTolbiDocksRoomCuesStranded[]
CUE KalayTolbiDocksRoomCuesStranded[]
Referenced by scGetCues().
Definition at lines 83 and 1745 of file kalay_tolbi_docks.c.