Alchemy
Loading...
Searching...
No Matches

kalay_tolbi_docks.c File Reference

The Kalay and Tolbi docks: tickets, boarding, the crossing's aftermath, and the passengers waiting for the ship to leave again. More...

Go to the source code of this file.

Enumerations

enum  KalayTolbiDocksActor {
  ACTOR_WORRIED_FATHER = 11 , ACTOR_GATEKEEPER = 12 , ACTOR_DOCK_WORKER = 13 , ACTOR_VENUS_DJINNI = 14 ,
  ACTOR_ARRIVALS_GREETER = 8 , ACTOR_WAITING_DAUGHTER = 11 , ACTOR_FIRST_BLOCK = 14 , ACTOR_SECOND_BLOCK = 15 ,
  ACTOR_ANGRY_PASSENGER = 10 , ACTOR_STRANDED_PASSENGER = 11 , ACTOR_TOUR_GUIDE = 13 , ACTOR_BODYGUARD = 16 ,
  ACTOR_TICKET_SELLER = 8
}
 The three maps share actor numbers; each is named on the map it is proved. More...

Functions

static void KalayTolbiDocks_PrepareKalayDocks (void)
 On the first arrival at the Kalay docks, Garet runs to see the Karagol.
static void KalayTolbiDocks_PrepareTolbiDocks (void)
 On the Tolbi docks the two blocks settle into the pier's cells.
static void KalayTolbiDocks_PrepareTicketOffice (void)
 The ticket office opens with a window transition and no location name.
static void KalayTolbiDocks_UpdateBlockCells (void)
 After either block is moved, the pier's cells under both are rebuilt.
static void KalayTolbiDocks_SettleBlock (s32 actorId)
 Stops a dock block's idle motion and sets its sprite priority.
static void KalayTolbiDocks_GaretSeesTheKaragol (void)
 Garet runs to the edge of the Kalay docks and marvels at the sea.
static void KalayTolbiDocks_RecruitVenusDjinni (void)
 Adds the Venus Djinni waiting at the Kalay docks.
const struct SceneEntrance * KalayTolbiDocks_GetEntrances (void)
 Selects the entrance positions for the departure, arrival or ticket office.
const struct SceneRegion * KalayTolbiDocks_GetRegions (void)
const u32 * KalayTolbiDocks_GetExits (void)
 The docks list no numbered exits.
const struct ScenePlacement * KalayTolbiDocks_GetPlacements (void)
 Each map has its people before the ship sails, once it has gone and not come back (flag 0x93e), and once the passengers are stranded (flag 0x950).
static void KalayTolbiDocks_PassengerGreetsArrivals (void)
 Stepping off the ship at Tolbi, the leader walks a few steps and a passenger hurries over to stand beside the party.
const struct SceneEvent * KalayTolbiDocks_GetEvents (void)
 Selects dialogue and interactions for the current port and voyage state.
static void KalayTolbiDocks_AskAboutTolbiCrossing (void)
 A man on the Kalay docks asks whether the party wants to go to Tolbi.
static void KalayTolbiDocks_TalkToWorriedFather (void)
 The father asks whether the party is taking the ship.
static void KalayTolbiDocks_RemindBoardShip (void)
 Spoken to on the shore after boarding, the gatekeeper asks the party to board the ship when it is finished.
static void KalayTolbiDocks_TalkToGatekeeper (void)
 The gatekeeper at the gangway.
static void KalayTolbiDocks_TalkToDockWorker (void)
 The dock worker explains the tickets: hand one over to board, give it to the gatekeeper, or wait on board for the ship to sail.
static void KalayTolbiDocks_TalkToTicketSeller (void)
 The ticket seller offers tickets for the four of them at 600 coins, with the party's coins shown beside the question.
static void KalayTolbiDocks_AskAboutRoughCrossing (void)
 A passenger at Tolbi has heard the party was attacked by a monster on the crossing, and asks whether that is true.
static void KalayTolbiDocks_AskAboutSeasickTourists (void)
 A man at Tolbi asks whether the upset tourists got seasick.
static void KalayTolbiDocks_TalkToWaitingDaughter (void)
 The daughter at Tolbi looks for her parents among the passengers.
static void KalayTolbiDocks_OpenDoorAndLeave (void)
 Walking north into the docks' door, the door opens and the leader walks through it to the town.
s32 KalayTolbiDocks_Initialize (void)
 Prepares whichever of the three maps is entered.
static void KalayTolbiDocks_PassengersConfrontTourGuide (void)
 Stepping onto the stranded Tolbi docks, the party watches the tour guide tell an angry passenger his ticket was refunded.

Variables

u16 gKalayTolbiDocks_KalayDoorCells []
u16 gKalayTolbiDocks_TolbiDoorCells []
s32 gKalayTolbiDocks_BodyguardSpinScript []
struct SceneEntrance gKalayTolbiDocks_NoEntrances []
struct SceneEntrance gKalayTolbiDocks_KalayEntrances []
struct SceneEntrance gKalayTolbiDocks_TolbiEntrances []
struct SceneEntrance gKalayTolbiDocks_TicketOfficeEntrances []
u32 gKalayTolbiDocks_Exits []
struct ScenePlacement gKalayTolbiDocks_NoPlacements []
struct ScenePlacement gKalayTolbiDocks_TolbiPlacements []
struct ScenePlacement gKalayTolbiDocks_TolbiPlacementsStranded []
struct ScenePlacement gKalayTolbiDocks_KalayPlacements []
struct ScenePlacement gKalayTolbiDocks_KalayPlacementsShipGone []
struct ScenePlacement gKalayTolbiDocks_TicketOfficePlacements []
struct ScenePlacement gKalayTolbiDocks_TicketOfficePlacementsShipGone []
struct ScenePlacement gKalayTolbiDocks_TicketOfficePlacementsStranded []
struct SceneEvent gKalayTolbiDocks_NoEvents []
struct SceneEvent gKalayTolbiDocks_KalayEvents []
struct SceneEvent gKalayTolbiDocks_KalayEventsShipGone []
struct SceneEvent gKalayTolbiDocks_TolbiEvents []
struct SceneEvent gKalayTolbiDocks_TolbiEventsStranded []
struct SceneEvent gKalayTolbiDocks_TicketOfficeEvents []
struct SceneEvent gKalayTolbiDocks_TicketOfficeEventsShipGone []
struct SceneEvent gKalayTolbiDocks_TicketOfficeEventsStranded []

Detailed Description

The Kalay and Tolbi docks: tickets, boarding, the crossing's aftermath, and the passengers waiting for the ship to leave again.

Definition in file kalay_tolbi_docks.c.

Enumeration Type Documentation

◆ KalayTolbiDocksActor

The three maps share actor numbers; each is named on the map it is proved.

Enumerator
ACTOR_WORRIED_FATHER 

his daughter waits on the Tolbi docks

ACTOR_GATEKEEPER 

takes the tickets at the gangway

ACTOR_DOCK_WORKER 
ACTOR_VENUS_DJINNI 
ACTOR_ARRIVALS_GREETER 

hears of the party's scary trip

ACTOR_WAITING_DAUGHTER 
ACTOR_FIRST_BLOCK 

the two blocks Move pushes

ACTOR_SECOND_BLOCK 
ACTOR_ANGRY_PASSENGER 

Tolbi docks, once the tour's passengers are stranded there.

ACTOR_STRANDED_PASSENGER 
ACTOR_TOUR_GUIDE 

refunded the angry passenger's ticket

ACTOR_BODYGUARD 

hired by the tour guides

ACTOR_TICKET_SELLER 

Ticket office.

Definition at line 39 of file kalay_tolbi_docks.c.

Function Documentation

◆ KalayTolbiDocks_PrepareKalayDocks()

void KalayTolbiDocks_PrepareKalayDocks ( void )
static

On the first arrival at the Kalay docks, Garet runs to see the Karagol.

Coming back from the ship clears the shore leave, and once the tour has left the gatekeeper stands at the gangway until the party goes ashore.

Definition at line 476 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_Initialize(), and KalayTolbiDocks_PrepareKalayDocks().

◆ KalayTolbiDocks_PrepareTolbiDocks()

void KalayTolbiDocks_PrepareTolbiDocks ( void )
static

On the Tolbi docks the two blocks settle into the pier's cells.

The passenger who met the party stays beside the ship, and after the confrontation the guide, the bodyguard and the two passengers keep where it left them, the angry one still lying on the ground.

Definition at line 500 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_Initialize(), and KalayTolbiDocks_PrepareTolbiDocks().

◆ KalayTolbiDocks_PrepareTicketOffice()

void KalayTolbiDocks_PrepareTicketOffice ( void )
static

The ticket office opens with a window transition and no location name.

Definition at line 546 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_Initialize(), and KalayTolbiDocks_PrepareTicketOffice().

◆ KalayTolbiDocks_UpdateBlockCells()

void KalayTolbiDocks_UpdateBlockCells ( void )
static

After either block is moved, the pier's cells under both are rebuilt.

Definition at line 552 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_PrepareTolbiDocks(), and KalayTolbiDocks_UpdateBlockCells().

◆ KalayTolbiDocks_SettleBlock()

void KalayTolbiDocks_SettleBlock ( s32 actorId)
static

Stops a dock block's idle motion and sets its sprite priority.

Definition at line 568 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_SettleBlock(), and KalayTolbiDocks_UpdateBlockCells().

◆ KalayTolbiDocks_GaretSeesTheKaragol()

void KalayTolbiDocks_GaretSeesTheKaragol ( void )
static

Garet runs to the edge of the Kalay docks and marvels at the sea.

"Incredible! So this is the ocean Kraden was talking about!" The man who asks travellers about Tolbi (actor 8) walks over, shaking his head: the Karagol is surrounded by land, so it is not a real ocean. Garet means to see a real one someday, nods with the leader and rejoins the party.

Definition at line 582 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GaretSeesTheKaragol(), and KalayTolbiDocks_PrepareKalayDocks().

◆ KalayTolbiDocks_RecruitVenusDjinni()

void KalayTolbiDocks_RecruitVenusDjinni ( void )
static

Adds the Venus Djinni waiting at the Kalay docks.

Definition at line 67 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_RecruitVenusDjinni().

◆ KalayTolbiDocks_GetEntrances()

const struct SceneEntrance * KalayTolbiDocks_GetEntrances ( void )

Selects the entrance positions for the departure, arrival or ticket office.

Definition at line 72 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetEntrances().

◆ KalayTolbiDocks_GetRegions()

const struct SceneRegion * KalayTolbiDocks_GetRegions ( void )

Definition at line 87 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetRegions().

◆ KalayTolbiDocks_GetExits()

const u32 * KalayTolbiDocks_GetExits ( void )

The docks list no numbered exits.

Definition at line 90 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetExits().

◆ KalayTolbiDocks_GetPlacements()

const struct ScenePlacement * KalayTolbiDocks_GetPlacements ( void )

Each map has its people before the ship sails, once it has gone and not come back (flag 0x93e), and once the passengers are stranded (flag 0x950).

Definition at line 94 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetPlacements().

◆ KalayTolbiDocks_PassengerGreetsArrivals()

void KalayTolbiDocks_PassengerGreetsArrivals ( void )
static

Stepping off the ship at Tolbi, the leader walks a few steps and a passenger hurries over to stand beside the party.

Definition at line 126 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_PassengerGreetsArrivals().

◆ KalayTolbiDocks_GetEvents()

const struct SceneEvent * KalayTolbiDocks_GetEvents ( void )

Selects dialogue and interactions for the current port and voyage state.

Definition at line 138 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetEvents().

◆ KalayTolbiDocks_AskAboutTolbiCrossing()

void KalayTolbiDocks_AskAboutTolbiCrossing ( void )
static

A man on the Kalay docks asks whether the party wants to go to Tolbi.

Definition at line 169 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_AskAboutTolbiCrossing().

◆ KalayTolbiDocks_TalkToWorriedFather()

void KalayTolbiDocks_TalkToWorriedFather ( void )
static

The father asks whether the party is taking the ship.

If it is, he asks it to tell his daughter in Tolbi that the tickets were too expensive for her mother to come; afterwards he repeats the message.

Definition at line 179 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_TalkToWorriedFather().

◆ KalayTolbiDocks_RemindBoardShip()

void KalayTolbiDocks_RemindBoardShip ( void )
static

Spoken to on the shore after boarding, the gatekeeper asks the party to board the ship when it is finished.

Definition at line 200 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_RemindBoardShip().

◆ KalayTolbiDocks_TalkToGatekeeper()

void KalayTolbiDocks_TalkToGatekeeper ( void )
static

The gatekeeper at the gangway.

Facing him from the east, the party is asked for its tickets: with one bought he steps aside, takes it and lets the party aboard. Once aboard, he offers to let the party go ashore again.

Definition at line 223 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_TalkToGatekeeper().

◆ KalayTolbiDocks_TalkToDockWorker()

void KalayTolbiDocks_TalkToDockWorker ( void )
static

The dock worker explains the tickets: hand one over to board, give it to the gatekeeper, or wait on board for the ship to sail.

Definition at line 283 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_TalkToDockWorker().

◆ KalayTolbiDocks_TalkToTicketSeller()

void KalayTolbiDocks_TalkToTicketSeller ( void )
static

The ticket seller offers tickets for the four of them at 600 coins, with the party's coins shown beside the question.

Declining, the leader shakes his head; without enough coins the seller refuses; otherwise the party gets its ticket and pays.

Definition at line 304 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_TalkToTicketSeller().

◆ KalayTolbiDocks_AskAboutRoughCrossing()

void KalayTolbiDocks_AskAboutRoughCrossing ( void )
static

A passenger at Tolbi has heard the party was attacked by a monster on the crossing, and asks whether that is true.

Definition at line 378 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_AskAboutRoughCrossing().

◆ KalayTolbiDocks_AskAboutSeasickTourists()

void KalayTolbiDocks_AskAboutSeasickTourists ( void )
static

A man at Tolbi asks whether the upset tourists got seasick.

Definition at line 386 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_AskAboutSeasickTourists().

◆ KalayTolbiDocks_TalkToWaitingDaughter()

void KalayTolbiDocks_TalkToWaitingDaughter ( void )
static

The daughter at Tolbi looks for her parents among the passengers.

If the party carries her father's message she asks for it and thanks them once it is given; otherwise she turns back to the sea.

Definition at line 396 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_TalkToWaitingDaughter().

◆ KalayTolbiDocks_OpenDoorAndLeave()

void KalayTolbiDocks_OpenDoorAndLeave ( void )
static

Walking north into the docks' door, the door opens and the leader walks through it to the town.

Definition at line 438 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_OpenDoorAndLeave().

◆ KalayTolbiDocks_Initialize()

s32 KalayTolbiDocks_Initialize ( void )

Prepares whichever of the three maps is entered.

Entrance 90 sets flag 0x950, which leaves the tour's passengers stranded on the Tolbi docks.

Definition at line 459 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_Initialize().

◆ KalayTolbiDocks_PassengersConfrontTourGuide()

void KalayTolbiDocks_PassengersConfrontTourGuide ( void )
static

Stepping onto the stranded Tolbi docks, the party watches the tour guide tell an angry passenger his ticket was refunded.

The passengers demand to be taken home; when the angry one charges, the guides' hired bodyguard steps in, and after a second try the passenger is knocked flat and the bodyguard spins on the spot.

Definition at line 675 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_PassengersConfrontTourGuide().

Variable Documentation

◆ gKalayTolbiDocks_KalayDoorCells

u16 gKalayTolbiDocks_KalayDoorCells[]
Initial value:
= {
MAP_CELL_STEP(98, 84, 2, 2, 5),
MAP_CELL_STEP(98, 82, 2, 2, 5),
}
#define MAP_CELL_STEP(srcX, srcY, width, height, frames)
Definition field_event.h:59
#define MAP_CELL_STEPS_END
Definition field_event.h:61

Definition at line 868 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_OpenDoorAndLeave().

◆ gKalayTolbiDocks_TolbiDoorCells

u16 gKalayTolbiDocks_TolbiDoorCells[]
Initial value:
= {
MAP_CELL_STEP(92, 9, 2, 2, 5),
MAP_CELL_STEP(92, 7, 2, 2, 5),
}

Definition at line 874 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_OpenDoorAndLeave().

◆ gKalayTolbiDocks_BodyguardSpinScript

s32 gKalayTolbiDocks_BodyguardSpinScript[]
Initial value:
= {
SC_ADD(SW_FACING, -0x2000),
SC_WAIT(2),
}
#define SC_LOOP(n, to)
Repeat up to n times.
Definition objcmd.h:28
#define SC_ADD(w, v)
Definition objcmd.h:38
#define SC_WAIT(n)
Wait n frames.
Definition objcmd.h:16
#define SC_TOP
Script start.
Definition objcmd.h:13
#define SC_END
Return to the main script.
Definition objcmd.h:32
@ SW_FACING
Definition objcmd.h:57

Definition at line 880 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_PassengersConfrontTourGuide().

◆ gKalayTolbiDocks_NoEntrances

struct SceneEntrance gKalayTolbiDocks_NoEntrances[]
Initial value:
= {
{0, CONDITION_ALWAYS, 128, 0, 128, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
}
@ SCENE_TABLE_END
Definition field_scene.h:43
@ CONDITION_ALWAYS
Definition field_scene.h:44
@ FACING_SOUTH
Definition field_scene.h:28

Definition at line 887 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetEntrances().

◆ gKalayTolbiDocks_KalayEntrances

struct SceneEntrance gKalayTolbiDocks_KalayEntrances[]
Initial value:
= {
{0, CONDITION_ALWAYS, 248, 0, 1368, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
{1, CONDITION_ALWAYS, 288, 0, 1464, FACING_NORTH, 0, -1, -1, -1, -1, 0},
{2, CONDITION_ALWAYS, 72, 0, 1304, FACING_EAST, 0, -1, -1, -1, -1, 0},
{3, CONDITION_ALWAYS, 304, 0, 1416, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
{4, CONDITION_ALWAYS, 296, 0, 1048, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
}
@ FACING_EAST
Definition field_scene.h:26
@ FACING_NORTH
Definition field_scene.h:32

Definition at line 892 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetEntrances().

◆ gKalayTolbiDocks_TolbiEntrances

struct SceneEntrance gKalayTolbiDocks_TolbiEntrances[]
Initial value:
= {
{0, CONDITION_ALWAYS, 392, 0, 296, FACING_WEST, 0, -1, -1, -1, -1, 0},
{1, CONDITION_ALWAYS, 408, 0, 296, FACING_WEST, 0, 0, 0, 448, 432, 0},
{2, CONDITION_ALWAYS, 24, 0, 232, FACING_EAST, 0, 0, 0, 448, 432, 0},
{3, CONDITION_ALWAYS, 240, 0, 216, FACING_SOUTH, 0, 0, 0, 448, 432, 0},
}
@ FACING_WEST
Definition field_scene.h:30

Definition at line 901 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetEntrances().

◆ gKalayTolbiDocks_TicketOfficeEntrances

struct SceneEntrance gKalayTolbiDocks_TicketOfficeEntrances[]
Initial value:
= {
{0, CONDITION_ALWAYS, 96, 0, 248, FACING_NORTH, 0, -1, -1, -1, -1, 0},
{1, CONDITION_ALWAYS, 96, 0, 248, FACING_NORTH, 0, 32, 32, 272, 272, 0},
{2, CONDITION_ALWAYS, 384, 0, 248, FACING_NORTH, 0, 320, 32, 560, 272, 0},
}

Definition at line 909 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetEntrances().

◆ gKalayTolbiDocks_Exits

u32 gKalayTolbiDocks_Exits[]
Initial value:
= {
SCENE_EXITS(107), SCENE_EXIT(1, 2, 21), SCENE_EXIT(2, 109, 5),
SCENE_EXIT(3, 108, 1), SCENE_EXIT(4, 2, 58), SCENE_EXIT(0, 112, 0),
SCENE_EXIT(1, 2, 22), SCENE_EXIT(2, 109, 6), SCENE_EXIT(3, 108, 2),
SCENE_EXIT(0, 108, 0), SCENE_EXIT(1, 107, 3), SCENE_EXIT(2, 112, 3),
}
#define SCENE_EXITS(scene)
Definition field_scene.h:72
#define SCENE_EXIT(exit, scene, entrance)
Definition field_scene.h:73
#define SCENE_EXITS_END
Definition field_scene.h:77

Definition at line 916 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetExits().

◆ gKalayTolbiDocks_NoPlacements

struct ScenePlacement gKalayTolbiDocks_NoPlacements[]
Initial value:
= {
}

Definition at line 924 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetPlacements().

◆ gKalayTolbiDocks_TolbiPlacements

struct ScenePlacement gKalayTolbiDocks_TolbiPlacements[]
Initial value:
= {
PIXELS(392), 0, PIXELS(344), FACING_SOUTH, TALK_FACE_PARTY, 0 },
PIXELS(216), 0, PIXELS(264), FACING_SOUTH, TALK_FACE_PARTY, 0 },
PIXELS(296), 0, PIXELS(344), FACING_EAST, TALK_KEEP_FACING, 0 },
}
@ TALK_KEEP_FACING
@ TALK_FACE_PARTY
@ TALK_FACE_PARTY_AND_BACK
@ ACTOR_WANDER
@ ACTOR_STAND
@ FACING_SOUTHEAST
Definition field_scene.h:27
#define PIXELS(value)

Definition at line 929 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetPlacements().

◆ gKalayTolbiDocks_TolbiPlacementsStranded

◆ gKalayTolbiDocks_KalayPlacements

struct ScenePlacement gKalayTolbiDocks_KalayPlacements[]
Initial value:

Definition at line 973 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetPlacements().

◆ gKalayTolbiDocks_KalayPlacementsShipGone

struct ScenePlacement gKalayTolbiDocks_KalayPlacementsShipGone[]

◆ gKalayTolbiDocks_TicketOfficePlacements

struct ScenePlacement gKalayTolbiDocks_TicketOfficePlacements[]

◆ gKalayTolbiDocks_TicketOfficePlacementsShipGone

struct ScenePlacement gKalayTolbiDocks_TicketOfficePlacementsShipGone[]

◆ gKalayTolbiDocks_TicketOfficePlacementsStranded

struct ScenePlacement gKalayTolbiDocks_TicketOfficePlacementsStranded[]

◆ gKalayTolbiDocks_NoEvents

struct SceneEvent gKalayTolbiDocks_NoEvents[]
Initial value:
= {
}
#define SCENE_EVENTS_END

Definition at line 1061 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetEvents().

◆ gKalayTolbiDocks_KalayEvents

struct SceneEvent gKalayTolbiDocks_KalayEvents[]
Initial value:
= {
{ EVENT_TALK, 9, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksWeCantTakeSilkRoadSo) },
{ EVENT_TALK, 10, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksYouCantTakeSilkRoadMuch) },
{ EVENT_TALK, 12, FLAG_KALAY_COLOSSO_TOUR_LEFT, MSGNO(MsgKalayTolbiDocksTodayThereAreSupposedToBe) },
{ EVENT_TALK, 13, FLAG_KALAY_COLOSSO_TOUR_LEFT, MSGNO(MsgKalayTolbiDocksTheShipWillBeOpenUntil) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 8, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksWithSilkRoadClosedEveryoneWill) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 9, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksICantBelieveHowExpensiveTickets) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 10, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksWellIsntThisGreatWeCant) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 11, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksWeveSpentAYearPlanningThis) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 12, FLAG_KALAY_COLOSSO_TOUR_LEFT, MSGNO(MsgKalayTolbiDocksTheCaptainsInAGoodMood) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 13, FLAG_KALAY_COLOSSO_TOUR_LEFT, MSGNO(MsgKalayTolbiDocksTheCaptainsInAGoodMoodThats) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 12, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksSilkRoadIsBlockedSoThe) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 13, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksTheReplacementShipHasntArrivedSo) },
}
@ ABILITY_MIND_READ
Definition ability_ids.h:16
@ EVENT_EXIT
@ EVENT_TALK
#define PSYNERGY_ON_ACTOR(ability)
#define EVENT_SCRIPT(script)
#define TOUCH_WALKING_INTO(facing)
#define FLAG_KALAY_DOCKS_WENT_ASHORE
off the ship after boarding
Definition flags.h:252
#define FLAG_KALAY_COLOSSO_TOUR_LEFT
the tour group has left town
Definition flags.h:229
static void KalayTolbiDocks_TalkToDockWorker(void)
The dock worker explains the tickets: hand one over to board, give it to the gatekeeper,...
static void KalayTolbiDocks_TalkToGatekeeper(void)
The gatekeeper at the gangway.
static void KalayTolbiDocks_OpenDoorAndLeave(void)
Walking north into the docks' door, the door opens and the leader walks through it to the town.
@ ACTOR_DOCK_WORKER
@ ACTOR_WORRIED_FATHER
his daughter waits on the Tolbi docks
@ ACTOR_GATEKEEPER
takes the tickets at the gangway
@ ACTOR_VENUS_DJINNI
static void KalayTolbiDocks_TalkToWorriedFather(void)
The father asks whether the party is taking the ship.
static void KalayTolbiDocks_AskAboutTolbiCrossing(void)
A man on the Kalay docks asks whether the party wants to go to Tolbi.
static void KalayTolbiDocks_RecruitVenusDjinni(void)
Adds the Venus Djinni waiting at the Kalay docks.
static void KalayTolbiDocks_RemindBoardShip(void)
Spoken to on the shore after boarding, the gatekeeper asks the party to board the ship when it is fin...

Definition at line 1065 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetEvents().

◆ gKalayTolbiDocks_KalayEventsShipGone

struct SceneEvent gKalayTolbiDocks_KalayEventsShipGone[]
Initial value:
= {
{ EVENT_TALK, 12, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksTheShipHasntReturnedSoWe) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 12, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksOhHoHoWithoutAShip) },
{ EVENT_TALK, 13, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksImGladIOnlyWorkOn) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 13, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksIWonderIfMonstersGotEveryone) },
}

Definition at line 1096 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetEvents().

◆ gKalayTolbiDocks_TolbiEvents

struct SceneEvent gKalayTolbiDocks_TolbiEvents[]
Initial value:
= {
{ EVENT_TALK, 9, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksSighIThinkWereDoneSailing) },
{ EVENT_TALK, 12, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksIfYoureGoingToTolbiKeep) },
{ EVENT_TALK, 13, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksItsBeenQuiteSomeTimeSince) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 11, IF_FLAG_SET(FLAG_TOLBI_DOCKS_MESSAGE_DELIVERED), MSGNO(MsgKalayTolbiDocksItWasAHardCrossingVery) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 10, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksAfterSeeingTheLooksOnThe) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 12, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksIGetTheFeelingThatIt) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 13, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksYouCrossedTheSeaJustFor) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 8, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksIGuessWeWontBeSeeing) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 9, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksIThinkThatMissingShipMust) },
{ SEARCH(SEARCH_WOODEN_BOX), 101, 0xf95, FIND_COINS(35) },
}
@ ABILITY_MOVE
Definition ability_ids.h:15
#define FIND_ITEM(item)
@ EVENT_TOUCH
#define IF_FLAG_SET(flag)
Definition field_scene.h:48
#define SEARCH(target)
@ SEARCH_WOODEN_BOX
@ SEARCH_CHEST
#define FIND_COINS(coins)
#define FLAG_TOLBI_DOCKS_PASSENGER_MET_PARTY
A passenger on the Tolbi docks walked up to the party as it arrived.
Definition flags.h:254
#define FLAG_TOLBI_DOCKS_MESSAGE_DELIVERED
Definition flags.h:251
@ ITEM_POTION
Definition item_ids.h:43
@ ACTOR_SECOND_BLOCK
Definition kalay.c:76
@ ACTOR_FIRST_BLOCK
the blocks that open the two passages
Definition kalay.c:75
static void KalayTolbiDocks_AskAboutRoughCrossing(void)
A passenger at Tolbi has heard the party was attacked by a monster on the crossing,...
static void KalayTolbiDocks_AskAboutSeasickTourists(void)
A man at Tolbi asks whether the upset tourists got seasick.
static void KalayTolbiDocks_UpdateBlockCells(void)
After either block is moved, the pier's cells under both are rebuilt.
@ ACTOR_ARRIVALS_GREETER
hears of the party's scary trip
@ ACTOR_WAITING_DAUGHTER
static void KalayTolbiDocks_PassengerGreetsArrivals(void)
Stepping off the ship at Tolbi, the leader walks a few steps and a passenger hurries over to stand be...
static void KalayTolbiDocks_TalkToWaitingDaughter(void)
The daughter at Tolbi looks for her parents among the passengers.

Definition at line 1109 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetEvents().

◆ gKalayTolbiDocks_TolbiEventsStranded

struct SceneEvent gKalayTolbiDocks_TolbiEventsStranded[]
Initial value:
= {
{ EVENT_TALK, 8, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksThereAreManyHereWhoWant) },
{ EVENT_TALK, 9, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksHangingAroundHereLikeThisAnd) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 8, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksIfBothTheCaptainAndKaja) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 9, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksIfKajaAndTheOthersSay) },
{ EVENT_TALK, 12, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksTourGroupsShouldTakeCareOf) },
{ EVENT_TALK, 10, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksToHeckWithYouImStaying) },
{ EVENT_TALK, 11, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksSighIWonderWhenWellBe) },
{ EVENT_TALK, 13, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksWellBeCountingOnYouIf) },
{ EVENT_TALK, 16, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksAsLongAsWereStuckHere) },
{ EVENT_TALK, 17, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksSighIfIKnewItWould) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 12, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksIfTheydJustLetTheShip) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 10, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksIfImGoingToBeStuck) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 11, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksGrrrWhyDontYouGetUp) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 13, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksAsLongAsYoureHereWe) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 16, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksThisTourWasntWellOrganizedThats) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 17, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksIWonderIfGrandmaIsDoing) },
{ SEARCH(SEARCH_WOODEN_BOX), 101, 0xf95, FIND_COINS(35) },
}
#define FLAG_TOLBI_DOCKS_CONFRONTATION_SEEN
The passengers confronted the tour guides and their bodyguard.
Definition flags.h:256
static void KalayTolbiDocks_PassengersConfrontTourGuide(void)
Stepping onto the stranded Tolbi docks, the party watches the tour guide tell an angry passenger his ...

Definition at line 1134 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetEvents().

◆ gKalayTolbiDocks_TicketOfficeEvents

struct SceneEvent gKalayTolbiDocks_TicketOfficeEvents[]
Initial value:
= {
{ EVENT_TALK, 9, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksHmmmThatsStrangeIsntTheReplacement) },
{ EVENT_TALK, 10, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksOnceWeveCrossedTheKaragolWell) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 8, FLAG_KALAY_DOCKS_TICKET_BOUGHT, MSGNO(MsgKalayTolbiDocksIFeelSortOfBadThat) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 8, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksIfYouveAlreadyBoughtYourTicket) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 9, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksTheShipWontLeaveHereTill) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 10, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksLetsGetGoingImNotGetting) },
{ EVENT_TALK, 11, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksImSorryButWeJustCant) },
{ EVENT_TALK, 12, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksWeRentedOutOurHouseFor) },
{ EVENT_TALK, 13, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksWeRentedOutOurHouseIf) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 11, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksSighWeCouldHaveMadeLots) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 12, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksMaybeWellStayHereUntilThe) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 13, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksAreWeSupposedToSleepOn) },
}
#define FLAG_KALAY_DOCKS_TICKET_BOUGHT
Definition flags.h:246
static void KalayTolbiDocks_TalkToTicketSeller(void)
The ticket seller offers tickets for the four of them at 600 coins, with the party's coins shown besi...
@ ACTOR_TICKET_SELLER
Ticket office.

Definition at line 1162 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetEvents().

◆ gKalayTolbiDocks_TicketOfficeEventsShipGone

struct SceneEvent gKalayTolbiDocks_TicketOfficeEventsShipGone[]
Initial value:
= {
{ EVENT_TALK, 8, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksTheShipWontBeLeavingHere) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 8, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksAhhhImBoredWhenAreWe) },
{ EVENT_TALK, 11, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksImSorryButWeJustCant) },
{ EVENT_TALK, 12, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksWeRentedOutOurHouseFor) },
{ EVENT_TALK, 13, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksWeRentedOutOurHouseIf) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 11, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksSighWeCouldHaveMadeLots) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 12, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksMaybeWellStayHereUntilThe) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 13, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksAreWeSupposedToSleepOn) },
}

Definition at line 1181 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetEvents().

◆ gKalayTolbiDocks_TicketOfficeEventsStranded

struct SceneEvent gKalayTolbiDocks_TicketOfficeEventsStranded[]
Initial value:
= {
{ EVENT_TALK, 8, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksTheShipWontBeLeavingHere) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 8, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksAhhhImBoredWhenAreWe) },
{ EVENT_TALK, 11, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksImStuckIWantToCross) },
{ EVENT_TALK, 12, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksYeahTheShipsNotGoingAnywhere) },
{ EVENT_TALK, 13, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksTheKaragolSeaLooksSoCalm) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 11, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksWeveGotPassengersButNobodysSailing) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 12, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksTheCaptainMustBeAStubborn) },
{ PSYNERGY_ON_ACTOR(ABILITY_MIND_READ), 13, CONDITION_ALWAYS, MSGNO(MsgKalayTolbiDocksTheMarineBlueKaragolSeaIs) },
}

Definition at line 1195 of file kalay_tolbi_docks.c.

Referenced by KalayTolbiDocks_GetEvents().