Skip to Content
The Alchemy Project

src/scene/ship_rooms.c

Ship rooms (SceneIdShipRooms): the rooms below the decks of the Tolbi-bound ship, on its voyage across the Karagol Sea from Kalay to Tolbi. More…

Macros

NameDescription
#defineFLAG_TOLBI_SHIP_ANCHOR_CHARM_PLACED FLAG_SCENE_TEMP(0x00)The visible anchor charm has been created this visit.
#defineACTOR_OARSMAN (seat) (ACTOR_ROWING_FIRST_OARSMAN + (seat))The oarsman and the oar of a seat.
#defineACTOR_OAR (seat) (ACTOR_ROWING_FIRST_OAR + (seat))
#defineSHIP_CAMERA_WAIT_TICKS 0xffffscShipRoomsMoveCameraAndWait's flags, above the ticks it waits after in the low bits (SHIP_CAMERA_WAIT_TICKS).
#defineSHIP_CAMERA_JUMP 0x1jump there at once rather than glide
#defineSHIP_CAMERA_RECENTER_LAYERS 0x01000000Then recenter the layers on the camera (fdMapGridCenterOnFollowedPoint).
#defineSHIP_CAMERA_WAIT_FOR_ARRIVAL 0x10000000
#definescShipRoomsMoveCameraAndWait (x, y, z, flags)Moves the camera to a point in whole pixels, CAMERA_KEEP keeping an axis, then waits as its flags say (scShipRoomsMoveCameraAndWaitFX).
#defineTALK_FACING_OF (placements, actorId)The talk facing of an actor's row in a room's actor placements.
#defineTOLBI_SHIP_ASK_TO_ROW (speaker, chosenMessage, question, passenger)A passenger in the hold under sail, when an oar needs a rower.
#defineTOLBI_SHIP_ROWER_LINE_BY_SEAT (What a passenger at the oars says, or thinks under Mind Read, while the Kraken is on deck, by the seat they were chosen for.
#defineTOLBI_SHIP_ROWER_LINE_FIRST_OR_LATER (passenger, actorId, first, later)The same with one line for the first seat and one for any later.

Enumerations

NameDescription
enumSHIP_SCRIPT_COMMAND { SHIP_FACE_PARTY_EAST_AND_WEST, SHIP_FACE_PARTY, SHIP_PARTY_N … }Operations shared by the captain's quarters, passenger hold and rowing-deck scripts (scShipRoomsRunScriptCommand), with what each takes as its arg and opt.
enumTOLBI_SHIP_PASSENGER { PASSENGER_HEAD_GUIDE, PASSENGER_SECOND_GUIDE, PASSENGER_SWEA … }The nine passengers who may be called to the oars.
enumTOLBI_SHIP_CAPTAINS_QUARTERS_ACTOR_ID { ACTOR_QUARTERS_CAPTAIN, ACTOR_QUARTERS_KAJA, ACTOR_QUARTERS_ … }The captain's quarters, numbering the rows of ShipRoomsCaptainsQuartersActorPlacements and ShipRoomsCaptainsQuartersActorPlacementsWarriors from ACTOR_FIRST_PLACED.
enumTOLBI_SHIP_HOLD_ACTOR_ID { ACTOR_HOLD_WARRIOR, ACTOR_HOLD_TICKET_GRUMBLER, ACTOR_HOLD_M … }The hold while the ship waits at Kalay and after it reaches Tolbi, numbering the rows of ShipRoomsHoldActorPlacements from ACTOR_FIRST_PLACED.
enumTOLBI_SHIP_SEA_HOLD_ACTOR_ID { ACTOR_SEA_HOLD_FIRST_PASSENGER, ACTOR_SEA_HOLD_HEAD_GUIDE, A … }The hold at sea, numbering the rows of ShipRoomsHoldActorPlacementsAtSea from ACTOR_FIRST_PLACED.
enumROWING_DECK_SEAT { SEAT_FRONT_WEST, SEAT_FRONT_EAST, SEAT_SECOND_WEST, SEAT_SEC … }The seats on the rowing deck, an oarsman and an oar to each: four rows of two from the front, by the stairs, to the back, the drummer's end, the west seat of each row first.
enumTOLBI_SHIP_ROWING_DECK_ACTOR_ID { ACTOR_ROWING_CREWMAN, ACTOR_ROWING_DRUMMER, ACTOR_ROWING_FIR … }The rowing deck, numbering the rows of ShipRoomsRowingDeckActorPlacements from ACTOR_FIRST_PLACED.
enumSHIP_ROOMS_ANIMATION { ANIM_ROW, ANIM_SECOND_GUIDE_ROW, ANIM_OARSMAN_INJURED, ANIM_ … }Animations of the rowing deck's sprites beyond ACTOR_ANIMATION, as their animation tables and ticks under graphics/sprite draw them.
enumSHIP_ROOMS_METATILE_BEHAVIOR { METATILE_BEHAVIOR_SHIP_ROOMS_ROWING_DECK_STAIRS, METATILE_BE … }The step cues and searched containers below decks whose subjects are more than an exit.
enumKAJA_PACE_STEP { KAJA_PACE_FACE_NORTH_NORTHWEST, KAJA_PACE_FIRST_PAUSE, KAJA_ … }Kaja's pacing in the captain's quarters off the island (scShipRoomsPaceCaptainsQuarters), one step to each value of his userValue.
enumanonymous enum { KAJA_PACE_PAUSE_TICKS }The ticks each of Kaja's pauses counts past before his next step.
enumKAJA_PACE_BEAT { KAJA_BEAT_NONE, KAJA_BEAT_LOOK, KAJA_BEAT_NOD, KAJA_BEAT_FAC … }What Kaja's pacing cues the captain to do (scShipRoomsWatchKaja), held in Kaja's sceneByte until the captain takes it; only while the captain is not paused.
enumanonymous enum { KAJA_ROWING_SPEAKER }Kaja on the rowing deck speaks with the window below him and his portrait on the right.
enumISLAND_REACTION { ISLAND_REACTION_OTHERS, ISLAND_REACTION_LADY_OR_ADMIRER, ISL … }How the passenger in the front west seat answers Kaja at the island (scShipRoomsReachIsland), each with lines of their own.

Functions

NameDescription
static voidscShipRoomsStepBesideLeader (Sint32 passengerId)The chosen oarsman steps out beside the leader, on the leader's right if that spot is free, else on the left, else behind, and turns the way the leader faces.
static BoolscShipRoomsIsSpotFree (Sint32 direction)Returns 1 when the spot next to the leader in the given sixteenth of a turn holds no actor and no wall, else 0.
static Sint32scShipRoomsGetChosenOarsman (void)Returns the passenger chosen to row at the open seat, which the attacks fought off number.
static voidscShipRoomsAskToRow (Sint32 speaker, Sint32 question, Sint32 seatFlag)The passenger asks the line question.
static voidscShipRoomsDiscussLaunchingWithoutAnchor (void)Ouranos, Sean and the tour's other guide press the captain in his cabin to set sail, and he finds his lucky anchor charm gone; it plays when Isaac tells the crewman he wants to see the captain too.
static voidscShipRoomsSetUpCaptainsQuarters (void)Sets the captain's cabin as the voyage has left it.
static voidscShipRoomsSetUpHold (void)Sets the passengers' room as the voyage has left it: only the Healer at Tolbi; off the island the passengers gathered, the head guide looking around and the woman in green trembling; at sea the chosen rowers gone from it; at Kalay the passengers in their places once the charm is back, and the warriors and the guide gone once they have stormed off to the captain.
static voidscShipRoomsSetUpRowingDeck (void)Sets the rowing deck as the voyage has left it.
static voidscShipRoomsSetOarCollision (void)Makes the eight oars beside the seats never a talk or Psynergy target.
static voidscShipRoomsAskForReplacementOarsmen (void)On the rowing deck, once the charm is back, Kaja tells the oarsmen "Our replacement never arrived, but we're shoving off just the same."
static voidscShipRoomsCastOff (void)In his cabin the captain walks up to the Anchor Charm, which swells and shrinks as he raises it, and calls "All right.
static voidscShipRoomsAnnounceDeparture (void)After a new rower has taken his seat, the captain calls from his cabin "All right, we're off!"
static voidscShipRoomsKajaCallsToOars (void)Kaja comes into the passengers' room as the ship casts off and calls "Row those oars!"
static voidscShipRoomsKajaCallsReplacementToOars (void)Kaja comes into the passengers' room when the ship sets off again with its new rower and calls "Row those oars!"
static voidscShipRoomsShowRowing (void)The oarsmen and the passengers chosen row to the drum, and the ship sails on across the World Map to its next attack, the Kraken or land.
static voidscShipRoomsAskAboutMonsters (void)The lookout calls down into the captain's cabin "Avast!
static voidscShipRoomsAnnounceTurn (void)Told to turn the rudder hard to starboard, the captain answers from his cabin "All right, I'm turning!", and the scene goes back up on deck as the monsters board.
static voidscShipRoomsStartFirstAttack (void)Monsters are on the rowing deck in the first attack: three floating monsters beside the seats and an oarsman down, before scShipRoomsReportMonstersBelowdecks.
static voidscShipRoomsEndFirstAttack (void)Back on the rowing deck after the first battle: the monsters are gone, and Kaja finds an oarsman hurt (scShipRoomsFindOarsmanMissing).
static voidscShipRoomsIntroduceReplacementOarsman (Sint32 seat)Back on the rowing deck after choosing a rower, Kaja greets Isaac, "Isaac, you're back!
static ACTOR *scShipRoomsPlaceAnchorCharm (void)Hangs the Anchor Charm in the captain's cabin, drawn as its item icon, once a visit (FLAG_TOLBI_SHIP_ANCHOR_CHARM_PLACED), and returns it for the captain to raise as he casts off.
static voidscShipRoomsInstallRowingDeckActors (Uint32 animationStep)Seats the rowers: at each of the first four seats the passenger chosen for it, the oarsman put away, or else the oarsman, and the oarsmen at the other four, all rowing at animationStep (0 holds them still; a passenger rows at their own pace, scShipRoomsSetPassengerRowing).
static voidscShipRoomsSay (Sint32 speaker)Shows the speaker's next line, then waits 10 ticks.
static voidscShipRoomsTurn (Sint32 actorId, Uint16 facing)Turns an actor to a facing over 10 ticks.
static voidscShipRoomsPlaceActor (Sint32 actorId, Sint32 x, Sint32 z, Sint32 facing)Places an actor at pixel coordinates and sets its initial heading.
static voidscShipRoomsMoveCameraAndWaitFX (FIXED x, FIXED y, FIXED z, Uint32 flags)Moves the camera, gliding unless flags hold SHIP_CAMERA_JUMP, waits for it to arrive and recenters the layers as they say, then waits the ticks in their low bits.
static voidscShipRoomsRunScriptCommand (Sint32 command, Uint32 arg, Uint32 opt)Runs one of the steps the voyage's cutscenes share (SHIP_SCRIPT_COMMAND), on arg and opt.
static Sint32scShipRoomsFindSeatRower (Uint32 seat, Sint32 inHold)The passenger chosen for one of the front four seats, which are filled in seat order: their actor in the hold at sea if inHold, else on the rowing deck; 0 if no one has been chosen.
static voidscShipRoomsHideSelectedPassengers (void)Hides the four passengers who are already filling rowing seats.
static voidscShipRoomsHideSelectedPassenger (Sint32 actorId, Sint32 firstFlag)Hides the passenger whose selection flag is set in this seat's flag group.
static voidscShipRoomsStartSecondAttack (void)Monsters are on the rowing deck in the second attack, the first passenger chosen trembling at the oars.
static voidscShipRoomsReportMonstersBelowdecks (void)An oarsman cries "Monsters belowdecks!", Garet, Ivan and Mia run up beside Isaac, and the crewman begs "Isaac!
static voidscShipRoomsFindOarsmanMissing (void)Back on the rowing deck after the battle, Kaja finds an oarsman missing and sends the party for a passenger to row in his place.
static voidscShipRoomsEndSecondAttack (void)Back on the rowing deck after the second battle, with the first rower chosen in his seat, Kaja finds another oarsman hurt.
static voidscShipRoomsStartThirdAttack (void)Monsters are on the rowing deck in the third attack, with two of the passengers chosen at the oars.
static voidscShipRoomsEndThirdAttack (void)Back on the rowing deck after the third battle, Kaja finds another oarsman hurt.
static voidscShipRoomsNoticeShipRocking (void)The ship rocks badly as it sails on, and Mia wonders "I wonder what's wrong...
static voidscShipRoomsShakeWhileKrakenOnDeck (void)While the Kraken is on deck, now and then (one chance in 120 a tick) plays a rumble with a shake, easing the shake after ten ticks; no other rumble starts for 80 ticks.
static voidscShipRoomsShowCaptainsQuartersBeforeIsland (void)A glimpse of the captain's cabin, Kaja beside the captain, once the ship has come off course, before it sails on across the World Map to the island.
static voidscShipRoomsReachIsland (void)Kaja comes down to the rowing deck: "We've reached the island!
static voidscShipRoomsSwitchLeftAndRightTeams (void)Back from the island, Kaja has the rowers change sides: "Sorry, everyone, but we need to switch the left and right teams!
static voidscShipRoomsSwapRowerSelections (Sint32 firstSeatFlags, Sint32 secondSeatFlags)Exchanges the chosen passengers between two rowing seats.
static Sint32scShipRoomsResetActor (ACTOR *actor)An actor script call that stands the actor still at the origin, with no velocity and no target, once, before its script goes on.
static Sint32scShipRoomsFloat (ACTOR *actor)Floats the actor up and down between the floor and 8 pixels up, by a random half pixel to a pixel each tick.
static Sint32scShipRoomsLookAround (ACTOR *actor)Now and then (two chances in 64) turns the actor to face south-southeast or south-southwest, every tick for as long as its script runs.
static voidscShipRoomsWaitThenAdvance (ACTOR *actor)Counts the ticks of one of Kaja's pauses in sceneCount and moves him to his next step once it passes KAJA_PACE_PAUSE_TICKS.
static BoolscShipRoomsHasArrived (ACTOR *actor)Counts down the actor's walking time in sceneWord.
static voidscShipRoomsPaceCaptainsQuarters (ACTOR *actor)The update of Kaja (ACTOR_QUARTERS_KAJA) while the ship waits off the island: he paces the captain's quarters (KAJA_PACE_STEP), giving each walk 60 ticks to arrive.
static voidscShipRoomsWatchKaja (ACTOR *captain)The update of the captain while Kaja paces: he takes Kaja's cues (enum KAJA_PACE_BEAT), keeping in sceneCount whether he has turned to Kaja.
static Sint32scShipRoomsHide (ACTOR *actor)An actor script call that hides the actor: never a talk or Psynergy target, without its shadow, drawn underfoot in SPRITE_COLOR_HIDDEN, every tick for as long as its script runs.
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.
const ACTOR_PLACE *scGetActorPlacements (void)Picks the actor placements for the room entered and the voyage's stage.
const CUE *scGetCues (void)Chooses the room's interactions for the current stage of the voyage.
static voidscShipRoomsTalkToCaptainsQuartersCrewman (void)The crewman in the blue bandana, in the captain's cabin at Kalay, asks "Now what?
static voidscShipRoomsTalkToSeanInCaptainsQuarters (void)Sean, in the captain's cabin while the charm is lost, asks "You came to ask the captain to set sail, right?" A yes gets "If we had worked together, we'd be out at sea right now..."; a no, "Heh heh...
static voidscShipRoomsTalkToCaptain (void)The captain, an old man with a white beard in his cabin, says "It's too late to hire mercenaries now...
static voidscShipRoomsTalkToWaitingWarrior (void)The woman with a sword, a passenger in the passengers' room at Kalay, says "The longer we sit here, the more time we have to think..." until the Anchor Charm is back.
static voidscShipRoomsTalkToWaitingMuscleAdmirer (void)The woman with fair hair, a passenger in the passengers' room at Kalay, admires "a whole bunch of really muscular men on the floor below", and once the Anchor Charm is back asks Isaac "Are you going to row?"
static voidscShipRoomsAskHeadGuideToRow (void)Isaac asks the tour guide, the man with a pack in the passengers' room, to row after an attack, and he wails "Nooooo!
static voidscShipRoomsAskSweatingPassengerToRow (void)Isaac asks the chef in the passengers' room to row after an attack: "You...
static voidscShipRoomsAskLadyToRow (void)Isaac asks the young woman in green in the passengers' room to row after an attack: "Don't tell me you're going to ask a lady to row?"
static voidscShipRoomsAskStaredAtPassengerToRow (void)Isaac asks the bald, muscular man in the passengers' room to row after an attack, and he flinches: "What?
static voidscShipRoomsAskSecondGuideToRow (void)Isaac asks the tour's other guide, in the passengers' room, to row after an attack.
static voidscShipRoomsAskWarriorToRow (void)Isaac asks the woman with a sword in the passengers' room to row after an attack: "Hey!
static voidscShipRoomsAskTicketGrumblerToRow (void)Isaac asks the young man with brown hair in the passengers' room, who grumbled about the price of the tickets, to row after an attack: "What?
static voidscShipRoomsAskMuscleAdmirerToRow (void)Isaac asks the woman with fair hair in the passengers' room, who admired the oarsmen's muscles, to row after an attack: "That poor oarsman.
static voidscShipRoomsAskOldManToRow (void)Isaac asks the old man with a cane in the passengers' room to row after an attack: "Out of all these people, you're asking a frail old man like me to row?"
static ACTOR *scShipRoomsFindActorNear (Sint32 x, Sint32 z)Finds a placed actor within twelve pixels of the requested floor position.
static voidscShipRoomsTalkToHeadGuideAtOars (void)The tour guide, rowing while the Kraken is on deck, says "That thing has Kaja and his men worried.
static voidscShipRoomsTalkToSecondGuideAtOars (void)The tour's other guide at the oars, with the tour guide's three lines.
static voidscShipRoomsTalkToSweatingPassengerAtOars (void)The chef at the oars, with the tour guide's three lines.
static voidscShipRoomsTalkToLadyAtOars (void)The young woman in green, rowing while the Kraken is on deck, asks "How many monsters are out there?" if she was the first passenger chosen, and otherwise grumbles "Another monster?
static voidscShipRoomsTalkToStaredAtPassengerAtOars (void)The bald, muscular man at the oars, with the tour guide's three lines.
static voidscShipRoomsTalkToWarriorAtOars (void)The woman with a sword at the oars, with the tour guide's three lines.
static voidscShipRoomsTalkToTicketGrumblerAtOars (void)The young man with brown hair at the oars, with the tour guide's three lines.
static voidscShipRoomsTalkToMuscleAdmirerAtOars (void)The woman with fair hair at the oars, with the woman in green's two lines.
static voidscShipRoomsReadHeadGuideMindAtOars (void)Mind Read on the tour guide, rowing while the Kraken is on deck, hears "I don't care what it takes, just hurry up and slay that beast!" if he was the first passenger chosen.
static voidscShipRoomsReadSecondGuideMindAtOars (void)Mind Read on the tour's other guide at the oars, with the tour guide's three thoughts.
static voidscShipRoomsReadSweatingPassengerMindAtOars (void)Mind Read on the chef at the oars, with the tour guide's three thoughts.
static voidscShipRoomsReadLadyMindAtOars (void)Mind Read on the young woman in green at the oars, while the Kraken is on deck, hears "I had no idea there were so many monsters out at sea..." if she was the first passenger chosen, and otherwise "We're surrounded by monsters, and still there's no sign of land!"
static voidscShipRoomsReadStaredAtPassengerMindAtOars (void)Mind Read on the bald, muscular man at the oars, with the tour guide's three thoughts.
static voidscShipRoomsReadWarriorMindAtOars (void)Mind Read on the woman with a sword at the oars, with the tour guide's three thoughts.
static voidscShipRoomsReadTicketGrumblerMindAtOars (void)Mind Read on the young man with brown hair at the oars, with the tour guide's three thoughts.
static voidscShipRoomsReadMuscleAdmirerMindAtOars (void)Mind Read on the woman with fair hair at the oars, with the woman in green's two thoughts.
static voidscShipRoomsTalkToHealer (void)The travelling Healer, the bearded man in a long robe in the south-east corner of the passengers' room, opens his Sanctum when Isaac faces him from the west.
static voidscShipRoomsFightRowingDeckMonsters (void)Isaac walks up to one of the monsters floating over the rowing deck after an attack and talks to it, and the battle starts: three Man o' Wars the first time, a Lizard Fighter and two Rabid Bats the second, a Virago and two Man o' Wars the third.
static voidscShipRoomsCallLeaderBackToBeasts (void)Walking onto the stairs up from the rowing deck (metatile (27, 8)) while monsters are aboard has the crewman call "Where are you going, Isaac?
static voidscShipRoomsWatchCrewWonderAtDelay (void)Stepping inside the door of the captain's cabin at Kalay (metatiles (28, 42), (29, 42), (27, 43) and (29, 43)) after Ouranos and Sean have gone there, Isaac hears the captain, the crewman and Kaja talk of the delay, if he has not heard it on deck already.
static voidscShipRoomsWatchWarriorsStormOff (void)Walking north into the passengers' room at Kalay (metatiles (9..11, 32)) once the tour group is aboard, Isaac overhears Ouranos threaten "If we aren't going to set sail right away, I'm going to go ashore!"
static voidscShipRoomsReturnLuckyAnchor (void)Isaac gives the captain the Anchor Charm from the top of the mast: "Hey!
Sint32scInit (void)Restores the room or plays the script selected by this entrance.
static voidscShipRoomsSeatChosenRowers (Sint32 gated)Puts each chosen passenger at the seat they took, in place of its oarsman; if gated, only those whose seat's attack has since been fought off.
static voidscShipRoomsSetPassengerRowing (Sint32 id)Sets a passenger at the oars rowing at a pace of their own beside the oarsmen's ANIM_STEP_NORMAL: the head guide and the sweating passenger as fast, the stared-at passenger and the warrior a quarter faster, the second guide and the ticket grumbler at half, and the lady, the muscle admirer and the old man at a quarter.

Variables

NameDescription
extern Sint32ShipRoomsLeaveHold []The warriors walk out of the hold.
extern Sint32ShipRoomsLeaveCaptainsQuarters []Those gathered in the captain's quarters walk out.
extern Sint32ShipRoomsAnchorCharmPulse []The Anchor Charm swells and shrinks twice as the captain raises it.
extern Sint32ShipRoomsCompanionsJoinLeaderAtFront []Garet, Ivan or Mia walks into the leader, who stands at the front of the rowing deck below the stairs, and is put away.
extern Sint32ShipRoomsCompanionsJoinLeaderByBackSeats []The same, the leader standing between the back seats.
extern Sint32ShipRoomsCompanionsJoinLeaderByFrontSeats []The same, the leader standing between the front seats, two pixels from where ShipRoomsCompanionsJoinLeaderAtFront ends.
extern Sint32ShipRoomsTremble []Squashes the actor and lets it spring back, over and over: a rower trembling at the monsters, or the lady seasick in the hold.
extern Sint32ShipRoomsMonsterFloat []A monster on the rowing deck floats up and down in place (scShipRoomsFloat).
extern Sint32ShipRoomsGoUpstairs []A rower walks up the stairs and is put away.
extern Sint32ShipRoomsStepOutFromSeat []A rower steps out from the front west seats into the walk between them.
extern Sint32ShipRoomsLookAroundScript []A passenger glances about at random.
extern ACTOR *ShipRoomsAnchorCharmThe Anchor Charm's actor, once placed this visit.
extern SCENE_ENTRANCEShipRoomsEntrancesOther []Unused: the entrances for any scene but the ship's rooms, the one scene that loads this overlay.
extern SCENE_ENTRANCEShipRoomsEntrances []The passengers' hold, the cargo hold, the rowing deck and the captain's quarters, each entrance named for its room.
extern Uint32ShipRoomsExits []
extern ACTOR_PLACEShipRoomsActorPlacementsNone []
extern ACTOR_PLACEShipRoomsCaptainsQuartersActorPlacements []The captain's quarters before the tour group boards at Kalay, and in the voyage's cutscenes: the captain, Kaja and the crewman.
extern ACTOR_PLACEShipRoomsCaptainsQuartersActorPlacementsWarriors []The captain's quarters once the warriors have come to see the captain, with Garet, Ivan and Mia.
extern ACTOR_PLACEShipRoomsCaptainsQuartersActorPlacementsArrived []The captain's quarters once the ship has reached Tolbi.
extern ACTOR_PLACEShipRoomsHoldActorPlacementsEmpty []The hold before the party hears of the delay at Kalay: no one but a blue orb in the middle, hidden at once (ShipRoomsHideScript), which the hold's other placements end with too.
extern ACTOR_PLACEShipRoomsHoldActorPlacements []The hold while the ship waits at Kalay, and after it reaches Tolbi.
extern ACTOR_PLACEShipRoomsHoldActorPlacementsAtSea []The hold at sea, once the passengers row.
extern ACTOR_PLACEShipRoomsRowingDeckActorPlacements []The rowing deck, in the order of TOLBI_SHIP_ROWING_DECK_ACTOR_ID.
extern ACTOR_PLACEShipRoomsCompanionActorPlacements []Garet, Ivan and Mia, placed for a script.
extern ACTOR_PLACEShipRoomsFirstAttackMonsters []The monsters of each attack, beside the seats.
extern ACTOR_PLACEShipRoomsSecondAttackMonsters []
extern ACTOR_PLACEShipRoomsThirdAttackMonsters []
extern CUEShipRoomsCuesOther []The cargo hold, and the rooms the voyage's cutscenes play in.
extern CUEShipRoomsHoldCues []The hold while the ship waits at Kalay, and after it reaches Tolbi.
extern CUEShipRoomsHoldCuesChoosingRowers []The hold at sea, where talking to a passenger asks them to row.
extern CUEShipRoomsHoldCuesAtIsland []The hold while the ship waits off the island.
extern CUEShipRoomsCaptainsQuartersCues []The captain's quarters, from the wait at Kalay until the ship reaches Tolbi.
extern CUEShipRoomsCaptainsQuartersCuesAtIsland []The captain's quarters while the ship waits off the island.
extern CUEShipRoomsCaptainsQuartersCuesArrived []The captain's quarters once the ship has reached Tolbi.
extern CUEShipRoomsRowingDeckCues []The rowing deck before the ship reaches Tolbi, and off the island.
extern CUEShipRoomsRowingDeckCuesMonstersBelowdecks []The rowing deck while monsters are belowdecks, where talking to one (ACTOR_ROWING_FIRST_MONSTER and the two after it) fights it.
extern CUEShipRoomsRowingDeckCuesKrakenOnDeck []The rowing deck while the Kraken rocks the ship.
extern CUEShipRoomsRowingDeckCuesArrived []The rowing deck once the ship has reached Tolbi.
Sint32ShipRoomsHideScript []Hides the actor at once (scShipRoomsHide).
Sint32ShipRoomsShakeTimerTicks left of the Kraken's current jolt.

Description

Ship rooms (SceneIdShipRooms): the rooms below the decks of the Tolbi-bound ship, on its voyage across the Karagol Sea from Kalay to Tolbi. The deck and the mast are tolbi_ship_deck.c and the mast's own scene; the voyage moves between all three.

The map is four rooms, one camera box each:

  • The passengers' room, the hold where the Colosso tour group waits, down the stairs from the deck. A ladder behind a railing on its west side goes down to the rowing deck, a travelling Healer stands in its south-east corner, and a barrel beside the stairs holds 23 coins.
  • The cargo hold, down its own stairs in the middle of the ship, where a barrel holds a Lucky Medal.
  • The rowing deck under the passengers' room: eight oarsmen in red bandanas at their seats, two by two, a drummer keeping time and a crewman.
  • The captain's cabin, where a jar holds a Nut.

In story order:

  • At Kalay the ship waits for its relief from Tolbi. Walking into the passengers' room once the tour group is aboard, Isaac overhears Ouranos, a huge warrior bound for Colosso who "can't stand water", threaten to go ashore; he and his friend Sean storm off to make the captain sail (scShipRoomsWatchWarriorsStormOff). If Isaac has not yet overheard the captain, Kaja and a crewman talk over the delay on deck, he hears it on stepping into the cabin (scShipRoomsWatchCrewWonderAtDelay). With the warriors there, the captain agrees to sail, then finds his lucky anchor charm gone and will not leave without it (scShipRoomsDiscussLaunchingWithoutAnchor). The crewman hid it on top of the mast. Giving the Anchor Charm back (scShipRoomsReturnLuckyAnchor) gets Isaac's party asked to guard the oarsmen, and on the rowing deck Kaja tells them the ship sails without its relief.
  • The voyage: the captain raises the charm and casts off, Kaja calls the oarsmen to row, and three times monsters come aboard and attack the rowing deck. Isaac fights them there, and after each battle an oarsman lies hurt, so Isaac must ask a passenger in the passengers' room to row in his place. Each answers in his or her own way, and whoever agrees follows Isaac down to the empty seat. Kaja warns that the two teams of rowers must be balanced; the choices decide whether the ship keeps its course.
  • The Kraken: the ship rocks badly, and the crew calls Isaac up on deck to fight a huge sea monster.
  • If the rowers were badly chosen the ship strays off course to an island, Crossbone Isle, and waits there while the tour group argues about going ashore. Back on board, Kaja has the left and right teams change sides and the ship sets off for Tolbi.
  • A defeat at sea brings the party back to the passengers' room with the voyage's flags cleared, to start the crossing over.

Which actors stand in each room, and which talk and search rows they have, depend on the room entered and the stage of the voyage. The cutscenes are played from scInit by the entrance the other ship scenes send the party in by, and share the operations of scShipRoomsRunScriptCommand. Each cutscene speaks its lines in their order in the text (FieldStateWork->msg). Where a yes or no parts the talk, a branch steps the message on past the other branch's lines.

Macros in detail

FLAG_TOLBI_SHIP_ANCHOR_CHARM_PLACED

#define FLAG_TOLBI_SHIP_ANCHOR_CHARM_PLACED FLAG_SCENE_TEMP(0x00)

The visible anchor charm has been created this visit.

Referenced by scShipRoomsPlaceAnchorCharm().

Definition at line 112 of file ship_rooms.c.

ACTOR_OARSMAN

#define ACTOR_OARSMAN(seat) (ACTOR_ROWING_FIRST_OARSMAN + (seat))

The oarsman and the oar of a seat.

Referenced by scGetActorPlacements(), scShipRoomsAskForReplacementOarsmen(), scShipRoomsEndFirstAttack(), scShipRoomsEndSecondAttack(), scShipRoomsEndThirdAttack(), scShipRoomsFindOarsmanMissing(), scShipRoomsInstallRowingDeckActors(), scShipRoomsNoticeShipRocking(), scShipRoomsReportMonstersBelowdecks(), scShipRoomsRunScriptCommand(), scShipRoomsSeatChosenRowers(), scShipRoomsSetUpRowingDeck(), scShipRoomsStartFirstAttack(), scShipRoomsStartSecondAttack(), scShipRoomsStartThirdAttack(), ShipRoomsRowingDeckCues, ShipRoomsRowingDeckCuesArrived, ShipRoomsRowingDeckCuesKrakenOnDeck and ShipRoomsRowingDeckCuesMonstersBelowdecks.

Definition at line 347 of file ship_rooms.c.

ACTOR_OAR

#define ACTOR_OAR(seat) (ACTOR_ROWING_FIRST_OAR + (seat))

Referenced by scShipRoomsRunScriptCommand().

Definition at line 348 of file ship_rooms.c.

SHIP_CAMERA_WAIT_TICKS

#define SHIP_CAMERA_WAIT_TICKS 0xffff

scShipRoomsMoveCameraAndWait's flags, above the ticks it waits after in the low bits (SHIP_CAMERA_WAIT_TICKS).

Referenced by scShipRoomsMoveCameraAndWaitFX().

Definition at line 446 of file ship_rooms.c.

SHIP_CAMERA_JUMP

#define SHIP_CAMERA_JUMP 0x1

jump there at once rather than glide

Referenced by scShipRoomsAskForReplacementOarsmen(), scShipRoomsFindOarsmanMissing(), scShipRoomsKajaCallsReplacementToOars(), scShipRoomsKajaCallsToOars(), scShipRoomsMoveCameraAndWaitFX(), scShipRoomsNoticeShipRocking(), scShipRoomsReachIsland(), scShipRoomsReportMonstersBelowdecks() and scShipRoomsRunScriptCommand().

Definition at line 447 of file ship_rooms.c.

SHIP_CAMERA_RECENTER_LAYERS

#define SHIP_CAMERA_RECENTER_LAYERS 0x01000000

Then recenter the layers on the camera (fdMapGridCenterOnFollowedPoint).

Referenced by scShipRoomsAskForReplacementOarsmen(), scShipRoomsFindOarsmanMissing(), scShipRoomsKajaCallsReplacementToOars(), scShipRoomsKajaCallsToOars(), scShipRoomsMoveCameraAndWaitFX(), scShipRoomsNoticeShipRocking(), scShipRoomsReachIsland(), scShipRoomsReportMonstersBelowdecks() and scShipRoomsRunScriptCommand().

Definition at line 449 of file ship_rooms.c.

SHIP_CAMERA_WAIT_FOR_ARRIVAL

#define SHIP_CAMERA_WAIT_FOR_ARRIVAL 0x10000000

Referenced by scShipRoomsDiscussLaunchingWithoutAnchor(), scShipRoomsMoveCameraAndWaitFX(), scShipRoomsReportMonstersBelowdecks(), scShipRoomsWatchCrewWonderAtDelay() and scShipRoomsWatchWarriorsStormOff().

Definition at line 450 of file ship_rooms.c.

scShipRoomsMoveCameraAndWait

#define scShipRoomsMoveCameraAndWait(x, y, z, flags)

Moves the camera to a point in whole pixels, CAMERA_KEEP keeping an axis, then waits as its flags say (scShipRoomsMoveCameraAndWaitFX).

Referenced by scShipRoomsAskForReplacementOarsmen(), scShipRoomsDiscussLaunchingWithoutAnchor(), scShipRoomsFindOarsmanMissing(), scShipRoomsKajaCallsReplacementToOars(), scShipRoomsKajaCallsToOars(), scShipRoomsNoticeShipRocking(), scShipRoomsReachIsland(), scShipRoomsReportMonstersBelowdecks(), scShipRoomsRunScriptCommand(), scShipRoomsWatchCrewWonderAtDelay() and scShipRoomsWatchWarriorsStormOff().

Definition at line 483 of file ship_rooms.c.

TALK_FACING_OF

#define TALK_FACING_OF(placements, actorId)

The talk facing of an actor's row in a room's actor placements.

Referenced by scGetActorPlacements().

Definition at line 734 of file ship_rooms.c.

TOLBI_SHIP_ASK_TO_ROW

#define TOLBI_SHIP_ASK_TO_ROW(speaker, chosenMessage, question, passenger)

A passenger in the hold under sail, when an oar needs a rower.

If someone has already been chosen for the open seat, they step beside the leader and follow them out while this one says chosenMessage. Otherwise the party may ask this one to row (question) at the seat the attacks fought off number.

The Ask...ToRow functions are this with each passenger's lines, except the stared-at passenger's and the second guide's, which write it out in full.

Referenced by scShipRoomsAskHeadGuideToRow(), scShipRoomsAskLadyToRow(), scShipRoomsAskMuscleAdmirerToRow(), scShipRoomsAskOldManToRow(), scShipRoomsAskSweatingPassengerToRow(), scShipRoomsAskTicketGrumblerToRow() and scShipRoomsAskWarriorToRow().

Definition at line 1122 of file ship_rooms.c.

TOLBI_SHIP_ROWER_LINE_BY_SEAT

#define TOLBI_SHIP_ROWER_LINE_BY_SEAT(

What a passenger at the oars says, or thinks under Mind Read, while the Kraken is on deck, by the seat they were chosen for.

That is the first seat's line, the second's, or a later one's. Each passenger's talk and Mind Read at the oars (scShipRoomsTalkToHeadGuideAtOars, scShipRoomsReadHeadGuideMindAtOars and the rest below) is this, or TOLBI_SHIP_ROWER_LINE_FIRST_OR_LATER, with that passenger's lines.

Referenced by scShipRoomsReadHeadGuideMindAtOars(), scShipRoomsReadSecondGuideMindAtOars(), scShipRoomsReadStaredAtPassengerMindAtOars(), scShipRoomsReadSweatingPassengerMindAtOars(), scShipRoomsReadTicketGrumblerMindAtOars(), scShipRoomsReadWarriorMindAtOars(), scShipRoomsTalkToHeadGuideAtOars(), scShipRoomsTalkToSecondGuideAtOars(), scShipRoomsTalkToStaredAtPassengerAtOars(), scShipRoomsTalkToSweatingPassengerAtOars(), scShipRoomsTalkToTicketGrumblerAtOars() and scShipRoomsTalkToWarriorAtOars().

Definition at line 1575 of file ship_rooms.c.

TOLBI_SHIP_ROWER_LINE_FIRST_OR_LATER

#define TOLBI_SHIP_ROWER_LINE_FIRST_OR_LATER(passenger, actorId, first, later)

The same with one line for the first seat and one for any later.

Referenced by scShipRoomsReadLadyMindAtOars(), scShipRoomsReadMuscleAdmirerMindAtOars(), scShipRoomsTalkToLadyAtOars() and scShipRoomsTalkToMuscleAdmirerAtOars().

Definition at line 1588 of file ship_rooms.c.

Enumerations in detail

SHIP_SCRIPT_COMMAND

enum SHIP_SCRIPT_COMMAND

Operations shared by the captain's quarters, passenger hold and rowing-deck scripts (scShipRoomsRunScriptCommand), with what each takes as its arg and opt.

EnumeratorValueDescription
SHIP_FACE_PARTY_EAST_AND_WESTThe leader and Ivan face east, Garet and Mia west; then wait opt ticks.
SHIP_FACE_PARTYThe party faces the heading arg; then wait opt ticks.
SHIP_PARTY_NODThe party nods, waiting for Mia's nod to end if arg; then opt ticks.
SHIP_SHOW_PARTY_EMOTEEach of the party shows its attached effect once; then wait opt ticks (arg is not read).
SHIP_HIDE_FIRST_OARSMENThe oarsmen of the first arg seats, in the order of ROWING_DECK_SEAT, leave them to the passengers chosen.
SHIP_START_ROWING_ANIMATIONActor arg rows, at animation speed opt.
SHIP_START_MIRRORED_ROWING_ANIMATIONActor arg rows facing the other way, at animation speed opt.
SHIP_SET_SELECTED_ROWER_POSEActor arg takes its rowing pose, held still unless opt.
SHIP_OPEN_SCREENThe screen opens, waiting for it if arg (opt is not read).
SHIP_CLOSE_SCREENThe screen closes, then the party takes exit arg if it is not 0.
SHIP_SETUP_ROWING_PARTYThe companions are placed, the chosen passengers take their seats and the party stands together on the rowing deck, facing south.
SHIP_RESTORE_ROWING_DECK_POSESThe oarsmen of the back four seats stand at them, and of SEAT_SECOND_EAST too if arg (while no passenger has taken it), and the oars are put back beside the seats.
SHIP_RESTORE_ROWER_POSEActor arg stands, facing south-southeast if opt, else south-southwest.
SHIP_HIDE_ALL_BUT_CAPTAINEveryone in the captain's cabin but
SHIP_HIDE_OURANOS_AND_SEANthe captain goes.
SHIP_SETUP_CAPTAINS_QUARTERSThe view goes to the captain in his cabin, with the anchor charm if arg, opening the screen if opt.
SHIP_SETUP_RECRUITMENT_DECKOnly Kaja stands on the rowing
SHIP_HIDE_OARSdeck, by the stairs.
SHIP_SETUP_PASSENGER_HOLDFive passengers take their places in the hold, and Ouranos and Sean go.
SHIP_SETUP_MONSTER_ENCOUNTERThe crew and oarsmen take their places as the monsters strike, actors arg and opt among them at the west seats.
SHIP_CLEAR_FLAG_RANGEClears the flags arg to opt.
SHIP_CLEAR_ROWING_SELECTIONSClears every seat's chosen rower and the attacks' flags.
SHIP_RESTORE_TREMBLING_OARSMANThe companions go and the third
SHIP_RELEASE_COMPANIONSoarsman trembles.
SHIP_RESET_CAMERAThe camera stays where it is, its actor held still if arg.
SHIP_PLACE_COMPANIONS_AND_MONSTERSThe companions are placed, with attack arg's monsters (1 to 3).

Definition at line 117 of file ship_rooms.c.

TOLBI_SHIP_PASSENGER

enum TOLBI_SHIP_PASSENGER

The nine passengers who may be called to the oars.

Their order is that of their rows in ShipRoomsHoldActorPlacementsAtSea and ShipRoomsRowingDeckActorPlacements and of each seat's group of flags (FLAG_TOLBI_SHIP_FIRST_SEAT_ROWERS + passenger).

The game gives them no names, so each is named for something he or she says or thinks in the hold: the head guide's "I'm the tour group's guide!", the chef's cold sweat.

EnumeratorValueDescription
PASSENGER_HEAD_GUIDEA man carrying a pack (SPRITE_MAN_CARRYING_A_PACK), the tour's guide.
PASSENGER_SECOND_GUIDEThe tour's other guide, a man carrying a pack drawn, as kalay.c draws its ACTOR_SECOND_GUIDE, with his green and blue swapped (SPRITE_COLOR_RBG, set in scInit).
PASSENGER_SWEATINGA chef (SPRITE_CHEF).
PASSENGER_LADYA young woman in green (SPRITE_YOUNG_WOMAN_IN_GREEN).
PASSENGER_STARED_ATA bald, muscular man (SPRITE_BALD_MUSCULAR_MAN), who knows he will be chosen.
PASSENGER_WARRIORA woman with a sword (SPRITE_PERSON_WITH_SWORD).
PASSENGER_TICKET_GRUMBLERA young man with brown hair (SPRITE_YOUNG_MAN_WITH_BROWN_HAIR).
PASSENGER_MUSCLE_ADMIRERA woman with fair hair (SPRITE_WOMAN_WITH_FAIR_HAIR).
PASSENGER_OLD_MANAn old man with a cane
PASSENGER_COUNT(SPRITE_OLD_MAN_WITH_CANE).

Definition at line 192 of file ship_rooms.c.

TOLBI_SHIP_CAPTAINS_QUARTERS_ACTOR_ID

enum TOLBI_SHIP_CAPTAINS_QUARTERS_ACTOR_ID

The captain's quarters, numbering the rows of ShipRoomsCaptainsQuartersActorPlacements and ShipRoomsCaptainsQuartersActorPlacementsWarriors from ACTOR_FIRST_PLACED.

The party's rows take their own slots. The captain, Kaja and the crewman have the sprites they have on deck (tolbi_ship_deck.c).

EnumeratorValueDescription
ACTOR_QUARTERS_CAPTAINACTOR_FIRST_PLACEDThe captain, an old man with a white beard in green (SPRITE_MAN_WITH_WHITE_BEARD_IN_GREEN).
ACTOR_QUARTERS_KAJAA bald man with a beard (SPRITE_KAJA).
ACTOR_QUARTERS_CREWMANThe crewman, a man in a blue bandana (SPRITE_MAN_IN_BLUE_BANDANA), who hid the captain's anchor charm.
ACTOR_QUARTERS_OURANOS
ACTOR_QUARTERS_SEAN
ACTOR_QUARTERS_SECOND_GUIDEPASSENGER_SECOND_GUIDE, drawn the same way.

Definition at line 224 of file ship_rooms.c.

TOLBI_SHIP_HOLD_ACTOR_ID

enum TOLBI_SHIP_HOLD_ACTOR_ID

The hold while the ship waits at Kalay and after it reaches Tolbi, numbering the rows of ShipRoomsHoldActorPlacements from ACTOR_FIRST_PLACED.

They are four of the passengers and the second guide, then the warriors bound for Colosso, Ouranos and his friend Sean, the travelling healer and Kaja.

EnumeratorValueDescription
ACTOR_HOLD_WARRIORACTOR_FIRST_PLACEDPASSENGER_WARRIOR.
ACTOR_HOLD_TICKET_GRUMBLERPASSENGER_TICKET_GRUMBLER.
ACTOR_HOLD_MUSCLE_ADMIRERPASSENGER_MUSCLE_ADMIRER.
ACTOR_HOLD_OLD_MANPASSENGER_OLD_MAN.
ACTOR_HOLD_SECOND_GUIDEPASSENGER_SECOND_GUIDE.
ACTOR_HOLD_OURANOS
ACTOR_HOLD_SEAN
ACTOR_HOLD_HEALERA bearded man in a long robe (SPRITE_BEARDED_MAN_IN_LONG_ROBE) who opens his Sanctum (scShipRoomsTalkToHealer).
ACTOR_HOLD_KAJACalls the first passenger to the oars.

Definition at line 243 of file ship_rooms.c.

TOLBI_SHIP_SEA_HOLD_ACTOR_ID

enum TOLBI_SHIP_SEA_HOLD_ACTOR_ID

The hold at sea, numbering the rows of ShipRoomsHoldActorPlacementsAtSea from ACTOR_FIRST_PLACED.

They are the nine passengers in the order of TOLBI_SHIP_PASSENGER, the healer and Kaja. Each passenger's evidence is its TOLBI_SHIP_PASSENGER line.

EnumeratorValueDescription
ACTOR_SEA_HOLD_FIRST_PASSENGERACTOR_FIRST_PLACED
ACTOR_SEA_HOLD_HEAD_GUIDEACTOR_SEA_HOLD_FIRST_PASSENGER + PASSENGER_HEAD_GUIDE
ACTOR_SEA_HOLD_SECOND_GUIDEACTOR_SEA_HOLD_FIRST_PASSENGER + PASSENGER_SECOND_GUIDE
ACTOR_SEA_HOLD_SWEATING_PASSENGERACTOR_SEA_HOLD_FIRST_PASSENGER + PASSENGER_SWEATING
ACTOR_SEA_HOLD_LADYACTOR_SEA_HOLD_FIRST_PASSENGER + PASSENGER_LADY
ACTOR_SEA_HOLD_STARED_AT_PASSENGERACTOR_SEA_HOLD_FIRST_PASSENGER + PASSENGER_STARED_AT
ACTOR_SEA_HOLD_WARRIORACTOR_SEA_HOLD_FIRST_PASSENGER + PASSENGER_WARRIOR
ACTOR_SEA_HOLD_TICKET_GRUMBLERACTOR_SEA_HOLD_FIRST_PASSENGER + PASSENGER_TICKET_GRUMBLER
ACTOR_SEA_HOLD_MUSCLE_ADMIRERACTOR_SEA_HOLD_FIRST_PASSENGER + PASSENGER_MUSCLE_ADMIRER
ACTOR_SEA_HOLD_OLD_MANACTOR_SEA_HOLD_FIRST_PASSENGER + PASSENGER_OLD_MAN
ACTOR_SEA_HOLD_HEALER
ACTOR_SEA_HOLD_KAJACalls a replacement rower to the oars.

Definition at line 264 of file ship_rooms.c.

ROWING_DECK_SEAT

enum ROWING_DECK_SEAT

The seats on the rowing deck, an oarsman and an oar to each: four rows of two from the front, by the stairs, to the back, the drummer's end, the west seat of each row first. A gap parts the two front rows from the two back rows.

EnumeratorValueDescription
SEAT_FRONT_WEST
SEAT_FRONT_EAST
SEAT_SECOND_WEST
SEAT_SECOND_EAST
SEAT_THIRD_WEST
SEAT_THIRD_EAST
SEAT_BACK_WEST
SEAT_BACK_EAST
SEAT_COUNT

Definition at line 289 of file ship_rooms.c.

TOLBI_SHIP_ROWING_DECK_ACTOR_ID

enum TOLBI_SHIP_ROWING_DECK_ACTOR_ID

The rowing deck, numbering the rows of ShipRoomsRowingDeckActorPlacements from ACTOR_FIRST_PLACED.

The monsters of each attack are placed after them.

EnumeratorValueDescription
ACTOR_ROWING_CREWMANACTOR_FIRST_PLACEDA man in a green bandana (SPRITE_MAN_IN_GREEN_BANDANA), one of the crew by his bandana.
ACTOR_ROWING_DRUMMERA man in a green bandana (SPRITE_MAN_IN_GREEN_BANDANA) who keeps the oarsmen's time.
ACTOR_ROWING_FIRST_OARSMANThe eight oarsmen, men in red bandanas (SPRITE_MAN_IN_RED_BANDANA), a seat each. In the order of ROWING_DECK_SEAT. The passengers chosen take the front four seats.
ACTOR_ROWING_FIRST_PASSENGERACTOR_ROWING_FIRST_OARSMAN + SEAT_COUNTThe nine passengers in the order of TOLBI_SHIP_PASSENGER.
ACTOR_ROWING_HEAD_GUIDEACTOR_ROWING_FIRST_PASSENGER + PASSENGER_HEAD_GUIDE
ACTOR_ROWING_SECOND_GUIDEACTOR_ROWING_FIRST_PASSENGER + PASSENGER_SECOND_GUIDE
ACTOR_ROWING_SWEATING_PASSENGERACTOR_ROWING_FIRST_PASSENGER + PASSENGER_SWEATING
ACTOR_ROWING_LADYACTOR_ROWING_FIRST_PASSENGER + PASSENGER_LADY
ACTOR_ROWING_STARED_AT_PASSENGERACTOR_ROWING_FIRST_PASSENGER + PASSENGER_STARED_AT
ACTOR_ROWING_WARRIORACTOR_ROWING_FIRST_PASSENGER + PASSENGER_WARRIOR
ACTOR_ROWING_TICKET_GRUMBLERACTOR_ROWING_FIRST_PASSENGER + PASSENGER_TICKET_GRUMBLER
ACTOR_ROWING_MUSCLE_ADMIRERACTOR_ROWING_FIRST_PASSENGER + PASSENGER_MUSCLE_ADMIRER
ACTOR_ROWING_OLD_MANACTOR_ROWING_FIRST_PASSENGER + PASSENGER_OLD_MAN
ACTOR_ROWING_KAJAKaja: "Our replacement never arrived, but we're shoving off just the same."
ACTOR_ROWING_FIRST_OARThe eight oars, one beside each seat, hidden while the oarsmen row.
ACTOR_ROWING_FIRST_MONSTERACTOR_ROWING_FIRST_OAR + SEAT_COUNTThe monsters of each attack (ShipRoomsFirstAttackMonsters and the two after it).

Definition at line 306 of file ship_rooms.c.

SHIP_ROOMS_ANIMATION

enum SHIP_ROOMS_ANIMATION

Animations of the rowing deck's sprites beyond ACTOR_ANIMATION, as their animation tables and ticks under graphics/sprite draw them.

EnumeratorValueDescription
ANIM_ROW5Pulling an oar from a seat, as the oarsmen's sprite sheet (man_in_red_bandana.png) and most passengers' sprite sheets draw it.
ANIM_SECOND_GUIDE_ROW6The tour guide's sprite sheet rowing with a pink oar in place of ANIM_ROW's brown one (man_carrying_a_pack.png).
ANIM_OARSMAN_INJURED6An oarsman lying on his back, arms flung out (man_in_red_bandana.png): "An oarsman was injured by a sea monster?"
ANIM_DRUMMER_HOLD_DRUM5The drummer standing with his drum at his side (man_in_green_bandana.png).
ANIM_DRUMMER_BEAT7The drummer, seen from behind, striking his drum once, then ANIM_DRUMMER_HOLD_DRUM (man_in_green_bandana.png).

Definition at line 352 of file ship_rooms.c.

SHIP_ROOMS_METATILE_BEHAVIOR

enum SHIP_ROOMS_METATILE_BEHAVIOR

The step cues and searched containers below decks whose subjects are more than an exit.

EnumeratorValueDescription
METATILE_BEHAVIOR_SHIP_ROOMS_ROWING_DECK_STAIRS4The rowing deck's stairs up to the passengers' room, metatile (27, 8), barred while monsters are aboard.
METATILE_BEHAVIOR_SHIP_ROOMS_QUARTERS_CREW10Just inside the captain's cabin
METATILE_BEHAVIOR_SHIP_ROOMS_HOLD_WARRIORS11door, metatiles (28, 42), (29, 42), (27, 43) and (29, 43), where the crew's talk of the delay plays. Across the passengers' room
METATILE_BEHAVIOR_SHIP_ROOMS_CRATE_HOLD_BARREL100north of the stairs, metatiles (9..11, 32), where Ouranos threatens to go ashore. The cargo hold's barrel holding a Lucky Medal, metatile (10, 19).
METATILE_BEHAVIOR_SHIP_ROOMS_HOLD_BARREL101The barrel beside the passengers' room stairs holding 23 coins, metatile (9, 35).
METATILE_BEHAVIOR_SHIP_ROOMS_QUARTERS_JAR102The jar in the captain's cabin holding a Nut, metatile (26, 40).

Definition at line 372 of file ship_rooms.c.

KAJA_PACE_STEP

enum KAJA_PACE_STEP

Kaja's pacing in the captain's quarters off the island (scShipRoomsPaceCaptainsQuarters), one step to each value of his userValue. He looks about where he stands, then walks south-southwest and back.

EnumeratorValueDescription
KAJA_PACE_FACE_NORTH_NORTHWEST
KAJA_PACE_FIRST_PAUSE
KAJA_PACE_FACE_EAST
KAJA_PACE_SECOND_PAUSE
KAJA_PACE_WALK_SOUTH
KAJA_PACE_ARRIVE_SOUTHcues KAJA_BEAT_LOOK
KAJA_PACE_THIRD_PAUSE
KAJA_PACE_NODcues KAJA_BEAT_NOD
KAJA_PACE_FOURTH_PAUSE
KAJA_PACE_WALK_BACKcues KAJA_BEAT_FACE_EAST
KAJA_PACE_ARRIVE_BACK
KAJA_PACE_LAST_PAUSE
KAJA_PACE_REPEAT

Definition at line 410 of file ship_rooms.c.

anonymous enum

enum { KAJA_PACE_PAUSE_TICKS }

The ticks each of Kaja's pauses counts past before his next step.

EnumeratorValueDescription
KAJA_PACE_PAUSE_TICKS80

Definition at line 428 of file ship_rooms.c.

KAJA_PACE_BEAT

enum KAJA_PACE_BEAT

What Kaja's pacing cues the captain to do (scShipRoomsWatchKaja), held in Kaja's sceneByte until the captain takes it; only while the captain is not paused.

EnumeratorValueDescription
KAJA_BEAT_NONE
KAJA_BEAT_LOOKthe captain turns north-northeast, to Kaja
KAJA_BEAT_NODthe captain nods, if he turned to Kaja
KAJA_BEAT_FACE_EASTthe captain turns back east

Definition at line 436 of file ship_rooms.c.

anonymous enum

enum { KAJA_ROWING_SPEAKER }

Kaja on the rowing deck speaks with the window below him and his portrait on the right.

EnumeratorValueDescription
KAJA_ROWING_SPEAKERSPEAKER(ACTOR_ROWING_KAJA, SPEAKER_WINDOW_BELOW | SPEAKER_PORTRAIT_RIGHT)

Definition at line 1511 of file ship_rooms.c.

ISLAND_REACTION

enum ISLAND_REACTION

How the passenger in the front west seat answers Kaja at the island (scShipRoomsReachIsland), each with lines of their own.

EnumeratorValueDescription
ISLAND_REACTION_OTHERS
ISLAND_REACTION_LADY_OR_ADMIRERThe lady or the muscle admirer.
ISLAND_REACTION_OLD_MAN
ISLAND_REACTION_GUIDEA guide, who says the same as the others at first.

Definition at line 4903 of file ship_rooms.c.

Functions in detail

scShipRoomsStepBesideLeader

static void scShipRoomsStepBesideLeader(Sint32 passengerId)

The chosen oarsman steps out beside the leader, on the leader's right if that spot is free, else on the left, else behind, and turns the way the leader faces.

References fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdActorSetPosFX(), fdActorSetSpritePriority(), fdActorWaitForMoveById(), PushedActorDirectionSteps, scShipRoomsIsSpotFree(), scShipRoomsTurn() and Sint32.

Referenced by scShipRoomsAskSecondGuideToRow() and scShipRoomsAskStaredAtPassengerToRow().

Definition at lines 452 and 1454 of file ship_rooms.c.

scShipRoomsIsSpotFree

static Bool scShipRoomsIsSpotFree(Sint32 direction)

Returns 1 when the spot next to the leader in the given sixteenth of a turn holds no actor and no wall, else 0.

References fdActorGet(), PushedActorDirectionSteps, scFieldActorCheckMovementCollision(), scShipRoomsFindActorNear() and Sint32.

Referenced by scShipRoomsStepBesideLeader().

Definition at lines 453 and 1519 of file ship_rooms.c.

scShipRoomsGetChosenOarsman

static Sint32 scShipRoomsGetChosenOarsman(void)

Returns the passenger chosen to row at the open seat, which the attacks fought off number.

References gmFlagGet(), scShipRoomsFindSeatRower() and Sint32.

Referenced by scShipRoomsAskSecondGuideToRow() and scShipRoomsAskStaredAtPassengerToRow().

Definition at lines 454 and 1548 of file ship_rooms.c.

scShipRoomsAskToRow

static void scShipRoomsAskToRow(Sint32 speaker, Sint32 question, Sint32 seatFlag)

The passenger asks the line question. A yes gets the line after it and the passenger follows Isaac, chosen for the seat flag seatFlag; a no gets the line after that.

References fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptStart(), gmFlagSet(), scShipRoomsSay(), scWalkIntoLeader() and Sint32.

Definition at lines 455 and 1787 of file ship_rooms.c.

scShipRoomsDiscussLaunchingWithoutAnchor

static void scShipRoomsDiscussLaunchingWithoutAnchor(void)

Ouranos, Sean and the tour's other guide press the captain in his cabin to set sail, and he finds his lucky anchor charm gone; it plays when Isaac tells the crewman he wants to see the captain too.

Kaja, angry, says they can't sail in this dangerous sea, but the captain has just decided to sail. Kaja tells of monsters never before seen in the Karagol, Ouranos and Sean offer to guard the deck, and Sean remembers some young warriors among the passengers. Then the captain finds the anchor gone and refuses to leave without it, the crewman mutters "(Maybe we shouldn't have taken it.)", and Kaja sends the party out: "This ship goes nowhere!!"

References fdActorFaceDirection(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptWait(), gmFlagSet(), gmPlayMusic(), scFieldScriptShowMessageThenWait(), scShipRoomsSay(), scShipRoomsTurn(), Sint32 and sySoundPlay().

Referenced by scShipRoomsTalkToCaptainsQuartersCrewman().

Definition at lines 457 and 2160 of file ship_rooms.c.

scShipRoomsSetUpCaptainsQuarters

static void scShipRoomsSetUpCaptainsQuarters(void)

Sets the captain's cabin as the voyage has left it. The Anchor Charm hangs there before the tour group boards and again from the first attack on. Off the island Kaja paces while the captain watches him; under sail, and once the charm is back, the captain is alone; once he has found the charm gone, everyone stands where scShipRoomsDiscussLaunchingWithoutAnchor left them.

References fdActorGet(), fdScriptGetFlag(), gmFlagGet(), scShipRoomsPaceCaptainsQuarters(), scShipRoomsPlaceActor(), scShipRoomsPlaceAnchorCharm(), scShipRoomsRunScriptCommand(), scShipRoomsWatchKaja() and Sint32.

Referenced by scInit().

Definition at lines 458 and 3030 of file ship_rooms.c.

scShipRoomsSetUpHold

static void scShipRoomsSetUpHold(void)

Sets the passengers' room as the voyage has left it: only the Healer at Tolbi; off the island the passengers gathered, the head guide looking around and the woman in green trembling; at sea the chosen rowers gone from it; at Kalay the passengers in their places once the charm is back, and the warriors and the guide gone once they have stormed off to the captain.

References fdActorSetScript(), gmFlagGet(), scShipRoomsHideSelectedPassengers(), scShipRoomsPlaceActor(), scShipRoomsRunScriptCommand(), ShipRoomsLookAroundScript and ShipRoomsTremble.

Referenced by scInit().

Definition at lines 459 and 3101 of file ship_rooms.c.

scShipRoomsSetUpRowingDeck

static void scShipRoomsSetUpRowingDeck(void)

Sets the rowing deck as the voyage has left it. After an attack Isaac comes down with the passenger he chose for the empty seat (scShipRoomsIntroduceReplacementOarsman), and at Kalay, once the charm is back, Kaja gives his orders (scShipRoomsAskForReplacementOarsmen).

References fdActorSetAnimation(), gmFlagGet(), scShipRoomsAskForReplacementOarsmen(), scShipRoomsIntroduceReplacementOarsman(), scShipRoomsPlaceActor(), scShipRoomsRunScriptCommand(), scShipRoomsSetOarCollision() and sySynch().

Referenced by scInit().

Definition at lines 460 and 3162 of file ship_rooms.c.

scShipRoomsSetOarCollision

static void scShipRoomsSetOarCollision(void)

Makes the eight oars beside the seats never a talk or Psynergy target.

References fdActorGet().

Referenced by scShipRoomsReachIsland(), scShipRoomsSetUpRowingDeck(), scShipRoomsStartFirstAttack(), scShipRoomsStartSecondAttack() and scShipRoomsStartThirdAttack().

Definition at lines 461 and 3241 of file ship_rooms.c.

scShipRoomsAskForReplacementOarsmen

static void scShipRoomsAskForReplacementOarsmen(void)

On the rowing deck, once the charm is back, Kaja tells the oarsmen "Our replacement never arrived, but we're shoving off just the same."

He, Ouranos and Sean will guard the deck and Isaac's party the oarsmen. If an oarsman falls, Isaac is to choose a passenger and bring him down, keeping the two teams of rowers balanced: "Right. You have your orders."

References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetPosFX(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkTo(), fdActorWalkToAndWait(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), gmFlagSet(), scShipRoomsPlaceActor(), scShipRoomsRunScriptCommand(), scShipRoomsSay() and scShipRoomsTurn().

Referenced by scShipRoomsSetUpRowingDeck().

Definition at lines 462 and 3305 of file ship_rooms.c.

scShipRoomsCastOff

static void scShipRoomsCastOff(void)

In his cabin the captain walks up to the Anchor Charm, which swells and shrinks as he raises it, and calls "All right. Cast off!"

References fdActorFaceDirection(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorStartRepeatedMotion(), fdActorStartScript(), fdActorWalkToAndWait(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), scShipRoomsPlaceAnchorCharm(), scShipRoomsRunScriptCommand(), scShipRoomsTurn(), ShipRoomsAnchorCharmPulse and sySoundPlay().

Referenced by scInit().

Definition at lines 463 and 3459 of file ship_rooms.c.

scShipRoomsAnnounceDeparture

static void scShipRoomsAnnounceDeparture(void)

After a new rower has taken his seat, the captain calls from his cabin "All right, we're off!"

References fdActorFaceDirection(), fdActorStartRepeatedMotion(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart() and scShipRoomsRunScriptCommand().

Referenced by scInit().

Definition at lines 464 and 3493 of file ship_rooms.c.

scShipRoomsKajaCallsToOars

static void scShipRoomsKajaCallsToOars(void)

Kaja comes into the passengers' room as the ship casts off and calls "Row those oars!"

References fdActorFaceDirection(), fdActorStartRepeatedMotion(), fdActorWalkToAndWait(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart() and scShipRoomsRunScriptCommand().

Referenced by scInit().

Definition at lines 465 and 3510 of file ship_rooms.c.

scShipRoomsKajaCallsReplacementToOars

static void scShipRoomsKajaCallsReplacementToOars(void)

Kaja comes into the passengers' room when the ship sets off again with its new rower and calls "Row those oars!"

References fdActorFaceDirection(), fdActorStartRepeatedMotion(), fdActorWalkToAndWait(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), scShipRoomsHideSelectedPassengers() and scShipRoomsRunScriptCommand().

Referenced by scInit().

Definition at lines 466 and 3534 of file ship_rooms.c.

scShipRoomsShowRowing

static void scShipRoomsShowRowing(void)

The oarsmen and the passengers chosen row to the drum, and the ship sails on across the World Map to its next attack, the Kraken or land.

References fdActorSetAnimation(), fdScriptStart(), fdScriptWait(), gmFlagGet(), scShipRoomsInstallRowingDeckActors(), scShipRoomsRunScriptCommand(), syImportScriptSetExitRequest() and sySoundPlay().

Referenced by scInit().

Definition at lines 467 and 3557 of file ship_rooms.c.

scShipRoomsAskAboutMonsters

static void scShipRoomsAskAboutMonsters(void)

The lookout calls down into the captain's cabin "Avast! Monsters sighted!" "Monsters?" "Aye, Captain! Sea monsters!", and the party goes up on deck.

References fdActorFaceDirection(), fdActorRunRepeatedMotion(), fdActorStartRepeatedMotion(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait() and scShipRoomsRunScriptCommand().

Referenced by scInit().

Definition at lines 468 and 3622 of file ship_rooms.c.

scShipRoomsAnnounceTurn

static void scShipRoomsAnnounceTurn(void)

Told to turn the rudder hard to starboard, the captain answers from his cabin "All right, I'm turning!", and the scene goes back up on deck as the monsters board.

References fdActorFaceDirection(), fdActorRunRepeatedMotion(), fdScriptSetMessageId(), fdScriptStart(), scShipRoomsRunScriptCommand(), scShipRoomsSay() and sySynch().

Referenced by scInit().

Definition at lines 469 and 3642 of file ship_rooms.c.

scShipRoomsStartFirstAttack

static void scShipRoomsStartFirstAttack(void)

Monsters are on the rowing deck in the first attack: three floating monsters beside the seats and an oarsman down, before scShipRoomsReportMonstersBelowdecks.

References fdActorSetAnimation(), fdActorSetScript(), fdActorSetSpriteColorById(), fdScriptEnd(), fdScriptStart(), scShipRoomsReportMonstersBelowdecks(), scShipRoomsRunScriptCommand(), scShipRoomsSetOarCollision(), ShipRoomsMonsterFloat, ShipRoomsTremble and Sint32.

Referenced by scInit().

Definition at lines 470 and 3662 of file ship_rooms.c.

scShipRoomsEndFirstAttack

static void scShipRoomsEndFirstAttack(void)

Back on the rowing deck after the first battle: the monsters are gone, and Kaja finds an oarsman hurt (scShipRoomsFindOarsmanMissing).

References fdScriptEnd(), fdScriptStart(), gmFlagSet(), scShipRoomsFindOarsmanMissing() and scShipRoomsRunScriptCommand().

Referenced by scInit().

Definition at lines 471 and 3688 of file ship_rooms.c.

scShipRoomsIntroduceReplacementOarsman

static void scShipRoomsIntroduceReplacementOarsman(Sint32 seat)

Back on the rowing deck after choosing a rower, Kaja greets Isaac, "Isaac, you're back! And you brought an oarsman with you!", and the passenger takes the empty seat.

Coming down without one gets "Hey! Where's the replacement for our injured oarsman?... I'm sorry, but you're going to have to choose someone!", and Isaac is sent back up to the passengers' room.

References fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetPosFX(), fdActorSetSpeedFX(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkTo(), fdActorWalkToAndWait(), fdScriptSetMessageId(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), gmFlagGet(), scFieldScriptShowMessageThenWait(), scShipRoomsFindSeatRower(), scShipRoomsPlaceActor(), scShipRoomsRunScriptCommand(), scShipRoomsSay(), scShipRoomsSeatChosenRowers(), scShipRoomsTurn(), Sint32, syImportScriptSetExitRequest() and sySynch().

Referenced by scShipRoomsSetUpRowingDeck().

Definition at lines 472 and 3708 of file ship_rooms.c.

scShipRoomsPlaceAnchorCharm

static ACTOR *scShipRoomsPlaceAnchorCharm(void)

Hangs the Anchor Charm in the captain's cabin, drawn as its item icon, once a visit (FLAG_TOLBI_SHIP_ANCHOR_CHARM_PLACED), and returns it for the captain to raise as he casts off.

References fdScriptGetFlag(), gmFlagSet(), mnIconDrawItem(), scFieldActorCreate(), ShipRoomsAnchorCharm, Sint32, syHeapSlotAllocate(), syHeapSlotRelease() and syVRAMCacheLoad().

Referenced by scShipRoomsCastOff(), scShipRoomsRunScriptCommand() and scShipRoomsSetUpCaptainsQuarters().

Definition at lines 473 and 3849 of file ship_rooms.c.

scShipRoomsInstallRowingDeckActors

static void scShipRoomsInstallRowingDeckActors(Uint32 animationStep)

Seats the rowers: at each of the first four seats the passenger chosen for it, the oarsman put away, or else the oarsman, and the oarsmen at the other four, all rowing at animationStep (0 holds them still; a passenger rows at their own pace, scShipRoomsSetPassengerRowing).

References fdActorGet(), gmFlagGet(), scShipRoomsFindSeatRower(), scShipRoomsRunScriptCommand() and Sint32.

Referenced by scShipRoomsNoticeShipRocking(), scShipRoomsReachIsland() and scShipRoomsShowRowing().

Definition at lines 474 and 3881 of file ship_rooms.c.

scShipRoomsSay

static void scShipRoomsSay(Sint32 speaker)

Shows the speaker's next line, then waits 10 ticks.

References fdScriptShowMessage(), fdScriptWait() and Sint32.

Referenced by scShipRoomsAnnounceTurn(), scShipRoomsAskForReplacementOarsmen(), scShipRoomsAskSecondGuideToRow(), scShipRoomsAskStaredAtPassengerToRow(), scShipRoomsAskToRow(), scShipRoomsDiscussLaunchingWithoutAnchor(), scShipRoomsFindOarsmanMissing(), scShipRoomsIntroduceReplacementOarsman(), scShipRoomsNoticeShipRocking(), scShipRoomsReachIsland(), scShipRoomsReportMonstersBelowdecks(), scShipRoomsReturnLuckyAnchor(), scShipRoomsSwitchLeftAndRightTeams(), scShipRoomsTalkToCaptain(), scShipRoomsTalkToWaitingWarrior(), scShipRoomsWatchCrewWonderAtDelay() and scShipRoomsWatchWarriorsStormOff().

Definition at lines 475 and 3999 of file ship_rooms.c.

scShipRoomsTurn

static void scShipRoomsTurn(Sint32 actorId, Uint16 facing)

Turns an actor to a facing over 10 ticks.

References fdActorFaceDirection() and Sint32.

Referenced by scShipRoomsAskForReplacementOarsmen(), scShipRoomsCallLeaderBackToBeasts(), scShipRoomsCastOff(), scShipRoomsDiscussLaunchingWithoutAnchor(), scShipRoomsFindOarsmanMissing(), scShipRoomsIntroduceReplacementOarsman(), scShipRoomsNoticeShipRocking(), scShipRoomsReachIsland(), scShipRoomsReportMonstersBelowdecks(), scShipRoomsReturnLuckyAnchor(), scShipRoomsRunScriptCommand(), scShipRoomsStepBesideLeader(), scShipRoomsSwitchLeftAndRightTeams(), scShipRoomsTalkToWaitingWarrior(), scShipRoomsWatchCrewWonderAtDelay() and scShipRoomsWatchWarriorsStormOff().

Definition at lines 476 and 4006 of file ship_rooms.c.

scShipRoomsPlaceActor

static void scShipRoomsPlaceActor(Sint32 actorId, Sint32 x, Sint32 z, Sint32 facing)

Places an actor at pixel coordinates and sets its initial heading.

References fdActorGet(), Sint32 and syImportActorSetPos().

Referenced by scShipRoomsAskForReplacementOarsmen(), scShipRoomsFindOarsmanMissing(), scShipRoomsIntroduceReplacementOarsman(), scShipRoomsRunScriptCommand(), scShipRoomsSeatChosenRowers(), scShipRoomsSetUpCaptainsQuarters(), scShipRoomsSetUpHold(), scShipRoomsSetUpRowingDeck(), scShipRoomsShowCaptainsQuartersBeforeIsland() and scShipRoomsSwitchLeftAndRightTeams().

Definition at lines 477 and 4012 of file ship_rooms.c.

scShipRoomsMoveCameraAndWaitFX

static void scShipRoomsMoveCameraAndWaitFX(FIXED x, FIXED y, FIXED z, Uint32 flags)

Moves the camera, gliding unless flags hold SHIP_CAMERA_JUMP, waits for it to arrive and recenters the layers as they say, then waits the ticks in their low bits.

References fdCameraMoveWithinMapBounds(), fdCameraWaitForMove(), fdMapGridCenterOnFollowedPoint() and fdScriptWait().

Definition at lines 479 and 4022 of file ship_rooms.c.

scShipRoomsRunScriptCommand

static void scShipRoomsRunScriptCommand(Sint32 command, Uint32 arg, Uint32 opt)

Runs one of the steps the voyage's cutscenes share (SHIP_SCRIPT_COMMAND), on arg and opt. opt is most often a wait in ticks (the party's last turn, a nod, an emote); other commands take it as an animation speed, a second actor or the last of a range of flags.

References fdActorFaceDirection(), fdActorGet(), fdActorReleaseById(), fdActorSetAnimation(), fdActorSetAnimationSpeedById(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorWaitForAnimationChange(), fdCameraGetActor(), fdScriptAppendActorPlacements(), fdScriptFinishScreenTransition(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagClear(), scShipRoomsPlaceActor(), scShipRoomsPlaceAnchorCharm(), scShipRoomsSeatChosenRowers(), scShipRoomsSetPassengerRowing(), scShipRoomsTurn(), ShipRoomsCompanionActorPlacements, ShipRoomsFirstAttackMonsters, ShipRoomsSecondAttackMonsters, ShipRoomsThirdAttackMonsters, ShipRoomsTremble, Sint32, syImportScriptSetExitRequest() and sySynch().

Referenced by scInit(), scShipRoomsAnnounceDeparture(), scShipRoomsAnnounceTurn(), scShipRoomsAskAboutMonsters(), scShipRoomsAskForReplacementOarsmen(), scShipRoomsCastOff(), scShipRoomsEndFirstAttack(), scShipRoomsEndSecondAttack(), scShipRoomsEndThirdAttack(), scShipRoomsFindOarsmanMissing(), scShipRoomsInstallRowingDeckActors(), scShipRoomsIntroduceReplacementOarsman(), scShipRoomsKajaCallsReplacementToOars(), scShipRoomsKajaCallsToOars(), scShipRoomsNoticeShipRocking(), scShipRoomsReachIsland(), scShipRoomsReportMonstersBelowdecks(), scShipRoomsReturnLuckyAnchor(), scShipRoomsSetUpCaptainsQuarters(), scShipRoomsSetUpHold(), scShipRoomsSetUpRowingDeck(), scShipRoomsShowCaptainsQuartersBeforeIsland(), scShipRoomsShowRowing(), scShipRoomsStartFirstAttack(), scShipRoomsStartSecondAttack(), scShipRoomsStartThirdAttack() and scShipRoomsSwitchLeftAndRightTeams().

Definition at lines 488 and 4047 of file ship_rooms.c.

scShipRoomsFindSeatRower

static Sint32 scShipRoomsFindSeatRower(Uint32 seat, Sint32 inHold)

The passenger chosen for one of the front four seats, which are filled in seat order: their actor in the hold at sea if inHold, else on the rowing deck; 0 if no one has been chosen.

References gmFlagGet() and Sint32.

Referenced by scShipRoomsEndSecondAttack(), scShipRoomsEndThirdAttack(), scShipRoomsGetChosenOarsman(), scShipRoomsInstallRowingDeckActors(), scShipRoomsIntroduceReplacementOarsman(), scShipRoomsNoticeShipRocking(), scShipRoomsReachIsland(), scShipRoomsSeatChosenRowers(), scShipRoomsStartSecondAttack(), scShipRoomsStartThirdAttack() and scShipRoomsSwitchLeftAndRightTeams().

Definition at lines 489 and 4387 of file ship_rooms.c.

scShipRoomsHideSelectedPassengers

static void scShipRoomsHideSelectedPassengers(void)

Hides the four passengers who are already filling rowing seats.

References scShipRoomsHideSelectedPassenger().

Referenced by scShipRoomsKajaCallsReplacementToOars() and scShipRoomsSetUpHold().

Definition at lines 490 and 4415 of file ship_rooms.c.

scShipRoomsHideSelectedPassenger

static void scShipRoomsHideSelectedPassenger(Sint32 actorId, Sint32 firstFlag)

Hides the passenger whose selection flag is set in this seat's flag group.

References gmFlagGet() and Sint32.

Referenced by scShipRoomsHideSelectedPassengers().

Definition at lines 491 and 4428 of file ship_rooms.c.

scShipRoomsStartSecondAttack

static void scShipRoomsStartSecondAttack(void)

Monsters are on the rowing deck in the second attack, the first passenger chosen trembling at the oars.

References fdActorReleaseById(), fdActorSetAnimation(), fdActorSetScript(), fdScriptEnd(), fdScriptStart(), scShipRoomsFindSeatRower(), scShipRoomsReportMonstersBelowdecks(), scShipRoomsRunScriptCommand(), scShipRoomsSetOarCollision(), ShipRoomsMonsterFloat, ShipRoomsTremble and Sint32.

Referenced by scInit().

Definition at lines 492 and 4447 of file ship_rooms.c.

scShipRoomsReportMonstersBelowdecks

static void scShipRoomsReportMonstersBelowdecks(void)

An oarsman cries "Monsters belowdecks!", Garet, Ivan and Mia run up beside Isaac, and the crewman begs "Isaac! Take care of these beasts and save my mates!" The three fall in behind Isaac, and the stairs up stay barred until the monsters are beaten.

References fdActorFaceDirection(), fdActorGet(), fdActorMoveToAndWait(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetPosFX(), fdActorSetScript(), fdActorWalkTo(), fdActorWalkToAndWait(), fdMessageSetVoiceFromActor(), fdScriptSetMessageId(), fdScriptStartScreenTransition(), fdScriptWait(), gmFlagClear(), gmFlagSet(), mnFieldMessageShowCentered(), scShipRoomsRunScriptCommand(), scShipRoomsSay(), scShipRoomsTurn(), ShipRoomsCompanionsJoinLeaderAtFront, Sint32 and sySynch().

Referenced by scShipRoomsStartFirstAttack(), scShipRoomsStartSecondAttack() and scShipRoomsStartThirdAttack().

Definition at lines 493 and 4477 of file ship_rooms.c.

scShipRoomsFindOarsmanMissing

static void scShipRoomsFindOarsmanMissing(void)

Back on the rowing deck after the battle, Kaja finds an oarsman missing and sends the party for a passenger to row in his place.

References fdActorFaceDirection(), fdActorMoveToAndWait(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetScript(), fdActorStartRepeatedMotion(), fdActorWalkTo(), fdActorWalkToAndWait(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagClear(), scShipRoomsPlaceActor(), scShipRoomsRunScriptCommand(), scShipRoomsSay(), scShipRoomsTurn(), ShipRoomsCompanionsJoinLeaderByBackSeats, Sint32 and syImportScriptSetExitRequest().

Referenced by scShipRoomsEndFirstAttack(), scShipRoomsEndSecondAttack() and scShipRoomsEndThirdAttack().

Definition at lines 494 and 4549 of file ship_rooms.c.

scShipRoomsEndSecondAttack

static void scShipRoomsEndSecondAttack(void)

Back on the rowing deck after the second battle, with the first rower chosen in his seat, Kaja finds another oarsman hurt.

References fdScriptEnd(), fdScriptStart(), gmFlagSet(), scShipRoomsFindOarsmanMissing(), scShipRoomsFindSeatRower(), scShipRoomsRunScriptCommand(), scShipRoomsSeatChosenRowers() and Sint32.

Referenced by scInit().

Definition at lines 495 and 4657 of file ship_rooms.c.

scShipRoomsStartThirdAttack

static void scShipRoomsStartThirdAttack(void)

Monsters are on the rowing deck in the third attack, with two of the passengers chosen at the oars.

References fdActorReleaseById(), fdActorSetAnimation(), fdActorSetScript(), fdActorSetSpriteColorById(), fdScriptEnd(), fdScriptStart(), scShipRoomsFindSeatRower(), scShipRoomsReportMonstersBelowdecks(), scShipRoomsRunScriptCommand(), scShipRoomsSetOarCollision(), ShipRoomsMonsterFloat, ShipRoomsTremble and Sint32.

Referenced by scInit().

Definition at lines 496 and 4676 of file ship_rooms.c.

scShipRoomsEndThirdAttack

static void scShipRoomsEndThirdAttack(void)

Back on the rowing deck after the third battle, Kaja finds another oarsman hurt.

References fdScriptEnd(), fdScriptStart(), gmFlagSet(), scShipRoomsFindOarsmanMissing(), scShipRoomsFindSeatRower(), scShipRoomsRunScriptCommand(), scShipRoomsSeatChosenRowers() and Sint32.

Referenced by scInit().

Definition at lines 497 and 4708 of file ship_rooms.c.

scShipRoomsNoticeShipRocking

static void scShipRoomsNoticeShipRocking(void)

The ship rocks badly as it sails on, and Mia wonders "I wonder what's wrong... The ship shouldn't be rocking this badly."

Kaja runs down calling Isaac up on deck, "there's a huge sea monster on the ship!", Garet says "Let's go bag us some sea monsters," and the party falls in behind Isaac. The ship shakes now and then while the Kraken is on deck (scShipRoomsShakeWhileKrakenOnDeck).

References fdActorFaceDirection(), fdActorGet(), fdActorReleaseById(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagClear(), gmFlagSet(), scShipRoomsFindSeatRower(), scShipRoomsInstallRowingDeckActors(), scShipRoomsRunScriptCommand(), scShipRoomsSay(), scShipRoomsShakeWhileKrakenOnDeck(), scShipRoomsTurn(), ShipRoomsCompanionsJoinLeaderByFrontSeats, ShipRoomsShakeTimer, Sint32, sySetTickEvent() and sySoundPlay().

Referenced by scInit().

Definition at lines 498 and 4733 of file ship_rooms.c.

scShipRoomsShakeWhileKrakenOnDeck

static void scShipRoomsShakeWhileKrakenOnDeck(void)

While the Kraken is on deck, now and then (one chance in 120 a tick) plays a rumble with a shake, easing the shake after ten ticks; no other rumble starts for 80 ticks.

References ShipRoomsShakeTimer and sySoundPlay().

Referenced by scInit() and scShipRoomsNoticeShipRocking().

Definition at lines 499 and 4869 of file ship_rooms.c.

scShipRoomsShowCaptainsQuartersBeforeIsland

static void scShipRoomsShowCaptainsQuartersBeforeIsland(void)

A glimpse of the captain's cabin, Kaja beside the captain, once the ship has come off course, before it sails on across the World Map to the island.

References fdActorFaceDirection(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdScriptStart(), fdScriptWait(), scShipRoomsPlaceActor() and scShipRoomsRunScriptCommand().

Referenced by scInit().

Definition at lines 500 and 4886 of file ship_rooms.c.

scShipRoomsReachIsland

static void scShipRoomsReachIsland(void)

Kaja comes down to the rowing deck: "We've reached the island! Rowers, rest those weary arms!"

The passengers at the oars ask whether this is Tolbi, Kaja admits the ship went off course and stopped to get its bearings, and the oarsmen go out to take their break.

References fdActorFaceDirection(), fdActorGet(), fdActorReleaseById(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetScript(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptStart(), fdScriptWait(), gmFlagClear(), gmFlagGet(), gmFlagSet(), scShipRoomsFindSeatRower(), scShipRoomsInstallRowingDeckActors(), scShipRoomsRunScriptCommand(), scShipRoomsSay(), scShipRoomsSetOarCollision(), scShipRoomsTurn(), ShipRoomsCompanionsJoinLeaderAtFront, ShipRoomsGoUpstairs, ShipRoomsStepOutFromSeat and Sint32.

Referenced by scInit().

Definition at lines 501 and 4918 of file ship_rooms.c.

scShipRoomsSwitchLeftAndRightTeams

static void scShipRoomsSwitchLeftAndRightTeams(void)

Back from the island, Kaja has the rowers change sides: "Sorry, everyone, but we need to switch the left and right teams! We've strayed off course because the left team's timing is off."

Each passenger chosen swaps seats with the one across the walk, and the ship sets off one last time for Tolbi.

References fdActorFaceDirection(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorStartRepeatedMotion(), fdActorWalkTo(), fdActorWalkToAndWait(), fdScriptFinishScreenTransition(), fdScriptSetMessageId(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagClear(), scShipRoomsFindSeatRower(), scShipRoomsPlaceActor(), scShipRoomsRunScriptCommand(), scShipRoomsSay(), scShipRoomsSwapRowerSelections(), scShipRoomsTurn(), Sint32 and syImportScriptSetExitRequest().

Referenced by scInit().

Definition at lines 502 and 5069 of file ship_rooms.c.

scShipRoomsSwapRowerSelections

static void scShipRoomsSwapRowerSelections(Sint32 firstSeatFlags, Sint32 secondSeatFlags)

Exchanges the chosen passengers between two rowing seats.

References gmFlagClear(), gmFlagGet(), gmFlagSet() and Sint32.

Referenced by scShipRoomsSwitchLeftAndRightTeams().

Definition at lines 503 and 5153 of file ship_rooms.c.

scShipRoomsResetActor

static Sint32 scShipRoomsResetActor(ACTOR *actor)

An actor script call that stands the actor still at the origin, with no velocity and no target, once, before its script goes on.

References fdActorSelectAnimation() and Sint32.

Referenced by ShipRoomsCompanionsJoinLeaderAtFront, ShipRoomsCompanionsJoinLeaderByBackSeats, ShipRoomsCompanionsJoinLeaderByFrontSeats, ShipRoomsLeaveCaptainsQuarters and ShipRoomsLeaveHold.

Definition at line 508 of file ship_rooms.c.

scShipRoomsFloat

static Sint32 scShipRoomsFloat(ACTOR *actor)

Floats the actor up and down between the floor and 8 pixels up, by a random half pixel to a pixel each tick. The actor's userValue says which way it is going, 1 down and 0 up. It runs every tick for as long as its script does.

References Sint32.

Referenced by ShipRoomsMonsterFloat.

Definition at line 523 of file ship_rooms.c.

scShipRoomsLookAround

static Sint32 scShipRoomsLookAround(ACTOR *actor)

Now and then (two chances in 64) turns the actor to face south-southeast or south-southwest, every tick for as long as its script runs.

References Sint32.

Referenced by ShipRoomsLookAroundScript.

Definition at line 546 of file ship_rooms.c.

scShipRoomsWaitThenAdvance

static void scShipRoomsWaitThenAdvance(ACTOR *actor)

Counts the ticks of one of Kaja's pauses in sceneCount and moves him to his next step once it passes KAJA_PACE_PAUSE_TICKS.

Referenced by scShipRoomsPaceCaptainsQuarters().

Definition at line 563 of file ship_rooms.c.

scShipRoomsHasArrived

static Bool scShipRoomsHasArrived(ACTOR *actor)

Counts down the actor's walking time in sceneWord.

Returns 1 once the time is up or the actor has reached its target, else 0.

Referenced by scShipRoomsPaceCaptainsQuarters().

Definition at line 574 of file ship_rooms.c.

scShipRoomsPaceCaptainsQuarters

static void scShipRoomsPaceCaptainsQuarters(ACTOR *actor)

The update of Kaja (ACTOR_QUARTERS_KAJA) while the ship waits off the island: he paces the captain's quarters (KAJA_PACE_STEP), giving each walk 60 ticks to arrive.

References fdActorGet(), fdActorSelectAnimation(), scShipRoomsHasArrived() and scShipRoomsWaitThenAdvance().

Referenced by scShipRoomsSetUpCaptainsQuarters().

Definition at line 595 of file ship_rooms.c.

scShipRoomsWatchKaja

static void scShipRoomsWatchKaja(ACTOR *captain)

The update of the captain while Kaja paces: he takes Kaja's cues (enum KAJA_PACE_BEAT), keeping in sceneCount whether he has turned to Kaja.

References fdActorGet() and fdActorSelectAnimation().

Referenced by scShipRoomsSetUpCaptainsQuarters().

Definition at line 670 of file ship_rooms.c.

scShipRoomsHide

static Sint32 scShipRoomsHide(ACTOR *actor)

An actor script call that hides the actor: never a talk or Psynergy target, without its shadow, drawn underfoot in SPRITE_COLOR_HIDDEN, every tick for as long as its script runs.

References fdActorSetSpriteColor(), fdActorSetSpriteFlags() and Sint32.

Referenced by ShipRoomsHideScript.

Definition at line 700 of file ship_rooms.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References MainRoutineStateWork, ShipRoomsEntrances and ShipRoomsEntrancesOther.

Definition at line 714 of file ship_rooms.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 723 of file ship_rooms.c.

scGetExits

const Uint32 *scGetExits(void)

References ShipRoomsExits.

Definition at line 728 of file ship_rooms.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

Picks the actor placements for the room entered and the voyage's stage.

References fdScriptGetFlag(), gmFlagGet(), MainRoutineStateWork, ShipRoomsActorPlacementsNone, ShipRoomsCaptainsQuartersActorPlacements, ShipRoomsCaptainsQuartersActorPlacementsArrived, ShipRoomsCaptainsQuartersActorPlacementsWarriors, ShipRoomsHoldActorPlacements, ShipRoomsHoldActorPlacementsAtSea, ShipRoomsHoldActorPlacementsEmpty and ShipRoomsRowingDeckActorPlacements.

Definition at line 738 of file ship_rooms.c.

scGetCues

const CUE *scGetCues(void)

Chooses the room's interactions for the current stage of the voyage.

References gmFlagGet(), MainRoutineStateWork, ShipRoomsCaptainsQuartersCues, ShipRoomsCaptainsQuartersCuesArrived, ShipRoomsCaptainsQuartersCuesAtIsland, ShipRoomsCuesOther, ShipRoomsHoldCues, ShipRoomsHoldCuesAtIsland, ShipRoomsHoldCuesChoosingRowers, ShipRoomsRowingDeckCues, ShipRoomsRowingDeckCuesArrived, ShipRoomsRowingDeckCuesKrakenOnDeck, ShipRoomsRowingDeckCuesMonstersBelowdecks and Sint32.

Definition at line 877 of file ship_rooms.c.

scShipRoomsTalkToCaptainsQuartersCrewman

static void scShipRoomsTalkToCaptainsQuartersCrewman(void)

The crewman in the blue bandana, in the captain's cabin at Kalay, asks "Now what? You want to see the captain too?" once Ouranos and Sean have stormed in; a yes plays scShipRoomsDiscussLaunchingWithoutAnchor.

Before then he says "But we can't send the ship out without hiring some warriors," and once the captain has decided to sail, "If the ship from Tolbi had come, I'd feel differently... Hmmm... I wonder where that anchor charm went." A no gets "Well, you don't have any business here then. Off with you now!"

References fdActorFaceDirection(), fdActorStartRepeatedMotion(), fdEndBusyAndReveal(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), gmFlagGet() and scShipRoomsDiscussLaunchingWithoutAnchor().

Referenced by ShipRoomsCaptainsQuartersCues.

Definition at line 932 of file ship_rooms.c.

scShipRoomsTalkToSeanInCaptainsQuarters

static void scShipRoomsTalkToSeanInCaptainsQuarters(void)

Sean, in the captain's cabin while the charm is lost, asks "You came to ask the captain to set sail, right?" A yes gets "If we had worked together, we'd be out at sea right now..."; a no, "Heh heh... In that case, why don't you take a tour of the ship?"

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

Referenced by ShipRoomsCaptainsQuartersCues.

Definition at line 978 of file ship_rooms.c.

scShipRoomsTalkToCaptain

static void scShipRoomsTalkToCaptain(void)

The captain, an old man with a white beard in his cabin, says "It's too late to hire mercenaries now... There's no time" at first, and "Oh, of all the bad luck...losing my lucky charm! This ship can't leave until we find it!" once it is lost.

If Isaac is carrying the Anchor Charm by then, the field menu opens so that he can hand it over. With the charm back he says "We don't know what might happen before we arrive. Be ready for anything," and after the first attack he asks "An oarsman was injured?", shakes his head and says "There's no time to worry. We must escape the waters of the Karagol!"

References fdActorFaceDirection(), fdActorSetAnimationAndWait(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), gmFlagGet() and scShipRoomsSay().

Referenced by ShipRoomsCaptainsQuartersCues.

Definition at line 999 of file ship_rooms.c.

scShipRoomsTalkToWaitingWarrior

static void scShipRoomsTalkToWaitingWarrior(void)

The woman with a sword, a passenger in the passengers' room at Kalay, says "The longer we sit here, the more time we have to think..." until the Anchor Charm is back.

Then she says "These proud warriors are not going to like being told to row," and asks Isaac "What do you think? You guys wanna trade jobs?" A yes gets "You look so scary... You say you want to trade, but it's not that easy," and she turns away: "I see. Sure, why don't you take over the rowing." A no gets "I figured you'd say that. Fine. Rowing is fine with me."

References fdActorFaceActor(), fdActorFaceDirection(), fdActorStartRepeatedMotion(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagGet(), scShipRoomsSay() and scShipRoomsTurn().

Referenced by ShipRoomsHoldCues.

Definition at line 1049 of file ship_rooms.c.

scShipRoomsTalkToWaitingMuscleAdmirer

static void scShipRoomsTalkToWaitingMuscleAdmirer(void)

The woman with fair hair, a passenger in the passengers' room at Kalay, admires "a whole bunch of really muscular men on the floor below", and once the Anchor Charm is back asks Isaac "Are you going to row?"

A yes gets "Hmmm. So, you have to row, even though you're a fighter, huh?"; a no, "Oh. Helping to protect the ship suits you better, doesn't it?"

References fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and gmFlagGet().

Referenced by ShipRoomsHoldCues.

Definition at line 1093 of file ship_rooms.c.

scShipRoomsAskHeadGuideToRow

static void scShipRoomsAskHeadGuideToRow(void)

Isaac asks the tour guide, the man with a pack in the passengers' room, to row after an attack, and he wails "Nooooo! You're not going to make me row, are you?"

A yes gets "I've never done much physical labor, but if I must, then I guess I must," and he follows Isaac. A no gets "I'm just a businessman. I'm not strong enough to be of any use." Once someone else has been chosen, the chosen one steps out beside Isaac and the guide says "Looks like you've been chosen to help row, doesn't it? So, get on with the rowing!"

Referenced by ShipRoomsHoldCuesChoosingRowers.

Definition at line 1167 of file ship_rooms.c.

scShipRoomsAskSweatingPassengerToRow

static void scShipRoomsAskSweatingPassengerToRow(void)

Isaac asks the chef in the passengers' room to row after an attack: "You... You must be joking. You want me to row?"

A yes gets "You jerk! What do you have against me?", and he follows Isaac. A no gets "Ye-Yeah. Besides, a spatula suits me better than an oar." Once someone else has been chosen he laughs, "Ha ha ha! Chosen to be an oarsman, huh?"

Referenced by ShipRoomsHoldCuesChoosingRowers.

Definition at line 1182 of file ship_rooms.c.

scShipRoomsAskLadyToRow

static void scShipRoomsAskLadyToRow(void)

Isaac asks the young woman in green in the passengers' room to row after an attack: "Don't tell me you're going to ask a lady to row?"

A yes gets "What? I don't believe this. You're evil! A monster! I won't forget this!", and she follows Isaac. A no gets "You startled me, sir. Don't frighten me like that!" Once someone else has been chosen she says "So you finally picked someone, didn't you? Show your stuff!" Off the island she is seasick: she trembles and says "I don't feel so well.. Don't talk to me..."

References fdActorSetAttachedEffect(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait() and gmFlagGet().

Referenced by ShipRoomsHoldCuesAtIsland and ShipRoomsHoldCuesChoosingRowers.

Definition at line 1198 of file ship_rooms.c.

scShipRoomsAskStaredAtPassengerToRow

static void scShipRoomsAskStaredAtPassengerToRow(void)

Isaac asks the bald, muscular man in the passengers' room to row after an attack, and he flinches: "What? Ohhhh, noooo... Are you going to make me row?"

A yes gets "Huh? You DO want me to row? Okay, okay. I'm going already...", and he follows Isaac. A no gets "What? You're not going to pick me? You really are a nice guy!" Once someone else has been chosen he says "It gives me chills to think that could have been me." The steps are the other passengers' (TOLBI_SHIP_ASK_TO_ROW), written out with a flinch first.

References fdActorRunRepeatedMotion(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scShipRoomsGetChosenOarsman(), scShipRoomsSay(), scShipRoomsStepBesideLeader(), scWalkIntoLeader() and Sint32.

Referenced by ShipRoomsHoldCuesChoosingRowers.

Definition at line 1230 of file ship_rooms.c.

scShipRoomsAskSecondGuideToRow

static void scShipRoomsAskSecondGuideToRow(void)

Isaac asks the tour's other guide, in the passengers' room, to row after an attack. He laughs, "Ha ha ha. Rowing, right? Feel free to choose whomever you like," then starts: "What? Me? You must be joking! Really?"

A yes gets "Awwwww! Oh, this is just too much to handle," and he follows Isaac. A no gets "Phew! Don't frighten me like that!" Once someone else has been chosen he says "Hey, Isaac. You've got a good eye!"

References fdActorRunRepeatedMotion(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), gmFlagGet(), gmFlagSet(), scShipRoomsGetChosenOarsman(), scShipRoomsSay(), scShipRoomsStepBesideLeader(), scWalkIntoLeader() and Sint32.

Referenced by ShipRoomsHoldCuesChoosingRowers.

Definition at line 1295 of file ship_rooms.c.

scShipRoomsAskWarriorToRow

static void scShipRoomsAskWarriorToRow(void)

Isaac asks the woman with a sword in the passengers' room to row after an attack: "Hey! You're not thinking of making me an oarsman, are you?"

A yes gets "Grrr... I can't believe this guy is actually choosing me...", and she follows Isaac. A no gets "Heh-heh! Not picking me is a smart choice, buddy." Once someone else has been chosen she says "That's who you picked to be an oarsman? Good choice! ...Looks very...oarsmanly."

Referenced by ShipRoomsHoldCuesChoosingRowers.

Definition at line 1361 of file ship_rooms.c.

scShipRoomsAskTicketGrumblerToRow

static void scShipRoomsAskTicketGrumblerToRow(void)

Isaac asks the young man with brown hair in the passengers' room, who grumbled about the price of the tickets, to row after an attack: "What? Me? An oarsman? Give me a break! Seriously?"

A yes gets "Oh, you are serious... Fine! I'll do it...", and he follows Isaac. A no gets "Hahhh... You scared me so bad, my heart nearly stopped!" Once someone else has been chosen he says "If you've chosen an oarsman, let's get to rowing!"

Referenced by ShipRoomsHoldCuesChoosingRowers.

Definition at line 1377 of file ship_rooms.c.

scShipRoomsAskMuscleAdmirerToRow

static void scShipRoomsAskMuscleAdmirerToRow(void)

Isaac asks the woman with fair hair in the passengers' room, who admired the oarsmen's muscles, to row after an attack: "That poor oarsman. I feel so sorry for him. What? You want me to take his place?"

A yes gets "How can you ask a young lady to take his place? It's not fair!!!", and she follows Isaac. A no gets "That's right... You can't ask a proper lady to do such a filthy job!" Once someone else has been chosen she says "You've been chosen as an oarsman? Aye, now that's an honor!"

Referenced by ShipRoomsHoldCuesChoosingRowers.

Definition at line 1393 of file ship_rooms.c.

scShipRoomsAskOldManToRow

static void scShipRoomsAskOldManToRow(void)

Isaac asks the old man with a cane in the passengers' room to row after an attack: "Out of all these people, you're asking a frail old man like me to row?"

A yes gets "You'll regret this when I collapse from exhaustion or something!", and he follows Isaac. A no gets "Th... That's right... Nobody would ever choose me." Once someone else has been chosen he asks "Ho ho! Is that person going to get us to Tolbi?"

Referenced by ShipRoomsHoldCuesChoosingRowers.

Definition at line 1409 of file ship_rooms.c.

scShipRoomsFindActorNear

static ACTOR *scShipRoomsFindActorNear(Sint32 x, Sint32 z)

Finds a placed actor within twelve pixels of the requested floor position.

References Sint32 and state.

Referenced by scShipRoomsIsSpotFree().

Definition at line 1420 of file ship_rooms.c.

scShipRoomsTalkToHeadGuideAtOars

static void scShipRoomsTalkToHeadGuideAtOars(void)

The tour guide, rowing while the Kraken is on deck, says "That thing has Kaja and his men worried. It's going to be a tough fight" if he was the first passenger chosen.

Chosen second he says "Monsters everywhere, and I'm stuck rowing... I should have stayed home!", and chosen third, "The ship is starting to list... If we don't do something, she'll sink!" Every passenger at the oars but the two women in green and fair hair says the same three lines.

Referenced by ShipRoomsRowingDeckCuesKrakenOnDeck.

Definition at line 1605 of file ship_rooms.c.

scShipRoomsTalkToSecondGuideAtOars

static void scShipRoomsTalkToSecondGuideAtOars(void)

The tour's other guide at the oars, with the tour guide's three lines.

Referenced by ShipRoomsRowingDeckCuesKrakenOnDeck.

Definition at line 1615 of file ship_rooms.c.

scShipRoomsTalkToSweatingPassengerAtOars

static void scShipRoomsTalkToSweatingPassengerAtOars(void)

The chef at the oars, with the tour guide's three lines.

Referenced by ShipRoomsRowingDeckCuesKrakenOnDeck.

Definition at line 1625 of file ship_rooms.c.

scShipRoomsTalkToLadyAtOars

static void scShipRoomsTalkToLadyAtOars(void)

The young woman in green, rowing while the Kraken is on deck, asks "How many monsters are out there?" if she was the first passenger chosen, and otherwise grumbles "Another monster? This isn't the first-class passage I paid for!"

Referenced by ShipRoomsRowingDeckCuesKrakenOnDeck.

Definition at line 1637 of file ship_rooms.c.

scShipRoomsTalkToStaredAtPassengerAtOars

static void scShipRoomsTalkToStaredAtPassengerAtOars(void)

The bald, muscular man at the oars, with the tour guide's three lines.

Referenced by ShipRoomsRowingDeckCuesKrakenOnDeck.

Definition at line 1647 of file ship_rooms.c.

scShipRoomsTalkToWarriorAtOars

static void scShipRoomsTalkToWarriorAtOars(void)

The woman with a sword at the oars, with the tour guide's three lines.

Referenced by ShipRoomsRowingDeckCuesKrakenOnDeck.

Definition at line 1657 of file ship_rooms.c.

scShipRoomsTalkToTicketGrumblerAtOars

static void scShipRoomsTalkToTicketGrumblerAtOars(void)

The young man with brown hair at the oars, with the tour guide's three lines.

Referenced by ShipRoomsRowingDeckCuesKrakenOnDeck.

Definition at line 1667 of file ship_rooms.c.

scShipRoomsTalkToMuscleAdmirerAtOars

static void scShipRoomsTalkToMuscleAdmirerAtOars(void)

The woman with fair hair at the oars, with the woman in green's two lines.

Referenced by ShipRoomsRowingDeckCuesKrakenOnDeck.

Definition at line 1677 of file ship_rooms.c.

scShipRoomsReadHeadGuideMindAtOars

static void scShipRoomsReadHeadGuideMindAtOars(void)

Mind Read on the tour guide, rowing while the Kraken is on deck, hears "I don't care what it takes, just hurry up and slay that beast!" if he was the first passenger chosen.

Chosen second he thinks "If those monsters come back...go teach 'em another lesson!", and chosen third, "The boat's rocking so much. I'm certain we're doomed!" Every passenger at the oars but the two women in green and fair hair thinks the same three thoughts.

Referenced by ShipRoomsRowingDeckCuesKrakenOnDeck.

Definition at line 1694 of file ship_rooms.c.

scShipRoomsReadSecondGuideMindAtOars

static void scShipRoomsReadSecondGuideMindAtOars(void)

Mind Read on the tour's other guide at the oars, with the tour guide's three thoughts.

Referenced by ShipRoomsRowingDeckCuesKrakenOnDeck.

Definition at line 1705 of file ship_rooms.c.

scShipRoomsReadSweatingPassengerMindAtOars

static void scShipRoomsReadSweatingPassengerMindAtOars(void)

Mind Read on the chef at the oars, with the tour guide's three thoughts.

Referenced by ShipRoomsRowingDeckCuesKrakenOnDeck.

Definition at line 1715 of file ship_rooms.c.

scShipRoomsReadLadyMindAtOars

static void scShipRoomsReadLadyMindAtOars(void)

Mind Read on the young woman in green at the oars, while the Kraken is on deck, hears "I had no idea there were so many monsters out at sea..." if she was the first passenger chosen, and otherwise "We're surrounded by monsters, and still there's no sign of land!"

Referenced by ShipRoomsRowingDeckCuesKrakenOnDeck.

Definition at line 1728 of file ship_rooms.c.

scShipRoomsReadStaredAtPassengerMindAtOars

static void scShipRoomsReadStaredAtPassengerMindAtOars(void)

Mind Read on the bald, muscular man at the oars, with the tour guide's three thoughts.

Referenced by ShipRoomsRowingDeckCuesKrakenOnDeck.

Definition at line 1739 of file ship_rooms.c.

scShipRoomsReadWarriorMindAtOars

static void scShipRoomsReadWarriorMindAtOars(void)

Mind Read on the woman with a sword at the oars, with the tour guide's three thoughts.

Referenced by ShipRoomsRowingDeckCuesKrakenOnDeck.

Definition at line 1750 of file ship_rooms.c.

scShipRoomsReadTicketGrumblerMindAtOars

static void scShipRoomsReadTicketGrumblerMindAtOars(void)

Mind Read on the young man with brown hair at the oars, with the tour guide's three thoughts.

Referenced by ShipRoomsRowingDeckCuesKrakenOnDeck.

Definition at line 1761 of file ship_rooms.c.

scShipRoomsReadMuscleAdmirerMindAtOars

static void scShipRoomsReadMuscleAdmirerMindAtOars(void)

Mind Read on the woman with fair hair at the oars, with the woman in green's two thoughts.

Referenced by ShipRoomsRowingDeckCuesKrakenOnDeck.

Definition at line 1772 of file ship_rooms.c.

scShipRoomsTalkToHealer

static void scShipRoomsTalkToHealer(void)

The travelling Healer, the bearded man in a long robe in the south-east corner of the passengers' room, opens his Sanctum when Isaac faces him from the west.

Spoken to from any other side, he says "I'm spreading goodwill wherever I travel" at Kalay, "The ship's crew is ready for anything, and I'll be right here for them. Ask the others to do the rowing" once the voyage is under way, "I hate arguing..." off the island and "It is good that the ship has arrived safely" at Tolbi.

References fdActorGet(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), gmFlagGet() and mnSanctumRun().

Referenced by ShipRoomsHoldCues, ShipRoomsHoldCuesAtIsland and ShipRoomsHoldCuesChoosingRowers.

Definition at line 1817 of file ship_rooms.c.

scShipRoomsFightRowingDeckMonsters

static void scShipRoomsFightRowingDeckMonsters(void)

Isaac walks up to one of the monsters floating over the rowing deck after an attack and talks to it, and the battle starts: three Man o' Wars the first time, a Lizard Fighter and two Rabid Bats the second, a Virago and two Man o' Wars the third.

The battle is the Tolbi ship's encounter table's first, second or third scripted battle, and afterwards the party comes back to the rowing deck for scShipRoomsEndFirstAttack or the one after it.

References fdEndBusyAndReveal(), fdRequestBattleFromEncounterTable(), fdScriptEnd(), fdScriptSetAfterBattleDestination(), fdScriptStart(), gmFlagClear() and gmFlagGet().

Referenced by ShipRoomsRowingDeckCuesMonstersBelowdecks.

Definition at line 1877 of file ship_rooms.c.

scShipRoomsCallLeaderBackToBeasts

static void scShipRoomsCallLeaderBackToBeasts(void)

Walking onto the stairs up from the rowing deck (metatile (27, 8)) while monsters are aboard has the crewman call "Where are you going, Isaac? Slay the beasts and save my mates!", and Isaac walks back off the stairs.

References fdActorWalkToAndWait(), fdMessageSetVoiceFromActor(), fdScriptEnd(), fdScriptStart(), gmFlagGet(), mnFieldMessageShowCentered() and scShipRoomsTurn().

Referenced by ShipRoomsRowingDeckCuesMonstersBelowdecks.

Definition at line 1915 of file ship_rooms.c.

scShipRoomsWatchCrewWonderAtDelay

static void scShipRoomsWatchCrewWonderAtDelay(void)

Stepping inside the door of the captain's cabin at Kalay (metatiles (28, 42), (29, 42), (27, 43) and (29, 43)) after Ouranos and Sean have gone there, Isaac hears the captain, the crewman and Kaja talk of the delay, if he has not heard it on deck already.

"I wonder what could have happened," the captain says of the ship from Tolbi. Kaja says the oarsmen are fearless, but if monsters appear at sea he can't handle them alone; the captain can let no one but Kaja fight, since the oarsmen will have their hands full: "Hmmm. What to do..." It plays once.

References fdActorFaceDirection(), fdEndBusyAndReveal(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptStart(), gmFlagGet(), gmFlagSet(), scShipRoomsSay() and scShipRoomsTurn().

Referenced by ShipRoomsCaptainsQuartersCues.

Definition at line 1940 of file ship_rooms.c.

scShipRoomsWatchWarriorsStormOff

static void scShipRoomsWatchWarriorsStormOff(void)

Walking north into the passengers' room at Kalay (metatiles (9..11, 32)) once the tour group is aboard, Isaac overhears Ouranos threaten "If we aren't going to set sail right away, I'm going to go ashore!"

The tour's other guide begs him to be patient. Sean explains that his friend Ouranos, huge as he is, can't stand water, and the two decide to go to the captain's quarters and make him set sail, ignoring the guide's "I don't want any violence!" They march out, the guide hurries after them, and it plays once.

References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForScriptEndById(), fdActorWalkToAndWait(), fdEndBusyAndReveal(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scFieldScriptShowMessageThenWait(), scShipRoomsSay(), scShipRoomsTurn(), ShipRoomsLeaveHold and Sint32.

Referenced by ShipRoomsHoldCues.

Definition at line 1993 of file ship_rooms.c.

scShipRoomsReturnLuckyAnchor

static void scShipRoomsReturnLuckyAnchor(void)

Isaac gives the captain the Anchor Charm from the top of the mast: "Hey! It's my lucky anchor!" Then the captain asks the party to guard the oarsmen.

Sean names the party as the young warriors he had in mind, and Isaac agrees to help (a no only gets him talked round). Then passengers must promise to row if an oarsman falls, which the tour's guide calls crazy, and the captain asks Isaac's name before sending everyone to their stations.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetDestination(), fdActorSetPosFX(), fdActorSetScript(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWalkToAndWait(), fdEndBusyAndReveal(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagSet(), gmPartyInventoryDiscard(), scFieldScriptShowMessageThenWait(), scShipRoomsRunScriptCommand(), scShipRoomsSay(), scShipRoomsTurn(), scWalkIntoLeader(), ShipRoomsLeaveCaptainsQuarters and Sint32.

Referenced by ShipRoomsCaptainsQuartersCues.

Definition at line 2498 of file ship_rooms.c.

scInit

Sint32 scInit(void)

Restores the room or plays the script selected by this entrance.

References fdActorSetAnimation(), fdActorSetScript(), fdActorSetSpriteColorById(), fdScriptEnd(), fdScriptStart(), gmFlagGet(), gmFlagSet(), MainRoutineStateWork, scShipRoomsAnnounceDeparture(), scShipRoomsAnnounceTurn(), scShipRoomsAskAboutMonsters(), scShipRoomsCastOff(), scShipRoomsEndFirstAttack(), scShipRoomsEndSecondAttack(), scShipRoomsEndThirdAttack(), scShipRoomsKajaCallsReplacementToOars(), scShipRoomsKajaCallsToOars(), scShipRoomsNoticeShipRocking(), scShipRoomsReachIsland(), scShipRoomsRunScriptCommand(), scShipRoomsSetUpCaptainsQuarters(), scShipRoomsSetUpHold(), scShipRoomsSetUpRowingDeck(), scShipRoomsShakeWhileKrakenOnDeck(), scShipRoomsShowCaptainsQuartersBeforeIsland(), scShipRoomsShowRowing(), scShipRoomsStartFirstAttack(), scShipRoomsStartSecondAttack(), scShipRoomsStartThirdAttack(), scShipRoomsSwitchLeftAndRightTeams(), ShipRoomsMonsterFloat, ShipRoomsShakeTimer, Sint32, syImportScriptSetExitRequest(), sySetTickEvent() and sySynch().

Definition at line 2817 of file ship_rooms.c.

scShipRoomsSeatChosenRowers

static void scShipRoomsSeatChosenRowers(Sint32 gated)

Puts each chosen passenger at the seat they took, in place of its oarsman; if gated, only those whose seat's attack has since been fought off.

References gmFlagGet(), scShipRoomsFindSeatRower(), scShipRoomsPlaceActor() and Sint32.

Referenced by scShipRoomsEndSecondAttack(), scShipRoomsEndThirdAttack(), scShipRoomsIntroduceReplacementOarsman() and scShipRoomsRunScriptCommand().

Definition at line 3257 of file ship_rooms.c.

scShipRoomsSetPassengerRowing

static void scShipRoomsSetPassengerRowing(Sint32 id)

Sets a passenger at the oars rowing at a pace of their own beside the oarsmen's ANIM_STEP_NORMAL: the head guide and the sweating passenger as fast, the stared-at passenger and the warrior a quarter faster, the second guide and the ticket grumbler at half, and the lady, the muscle admirer and the old man at a quarter.

References fdActorSetAnimation(), fdActorSetAnimationSpeedById() and Sint32.

Referenced by scShipRoomsRunScriptCommand().

Definition at line 3964 of file ship_rooms.c.

Variables in detail

ShipRoomsLeaveHold

extern Sint32 ShipRoomsLeaveHold[]

Sint32 ShipRoomsLeaveHold[]

The warriors walk out of the hold.

References scShipRoomsResetActor() and Sint32.

Referenced by scShipRoomsWatchWarriorsStormOff().

Definition at lines 72 and 5189 of file ship_rooms.c.

ShipRoomsLeaveCaptainsQuarters

extern Sint32 ShipRoomsLeaveCaptainsQuarters[]

Sint32 ShipRoomsLeaveCaptainsQuarters[]

Those gathered in the captain's quarters walk out.

References scShipRoomsResetActor() and Sint32.

Referenced by scShipRoomsReturnLuckyAnchor().

Definition at lines 73 and 5200 of file ship_rooms.c.

ShipRoomsAnchorCharmPulse

extern Sint32 ShipRoomsAnchorCharmPulse[]

Sint32 ShipRoomsAnchorCharmPulse[]

The Anchor Charm swells and shrinks twice as the captain raises it.

References Sint32.

Referenced by scShipRoomsCastOff().

Definition at lines 74 and 5213 of file ship_rooms.c.

ShipRoomsCompanionsJoinLeaderAtFront

extern Sint32 ShipRoomsCompanionsJoinLeaderAtFront[]

Sint32 ShipRoomsCompanionsJoinLeaderAtFront[]

Garet, Ivan or Mia walks into the leader, who stands at the front of the rowing deck below the stairs, and is put away.

References scShipRoomsResetActor() and Sint32.

Referenced by scShipRoomsReachIsland() and scShipRoomsReportMonstersBelowdecks().

Definition at lines 75 and 5232 of file ship_rooms.c.

ShipRoomsCompanionsJoinLeaderByBackSeats

extern Sint32 ShipRoomsCompanionsJoinLeaderByBackSeats[]

Sint32 ShipRoomsCompanionsJoinLeaderByBackSeats[]

The same, the leader standing between the back seats.

References scShipRoomsResetActor() and Sint32.

Referenced by scShipRoomsFindOarsmanMissing().

Definition at lines 76 and 5241 of file ship_rooms.c.

ShipRoomsCompanionsJoinLeaderByFrontSeats

extern Sint32 ShipRoomsCompanionsJoinLeaderByFrontSeats[]

Sint32 ShipRoomsCompanionsJoinLeaderByFrontSeats[]

The same, the leader standing between the front seats, two pixels from where ShipRoomsCompanionsJoinLeaderAtFront ends.

References scShipRoomsResetActor() and Sint32.

Referenced by scShipRoomsNoticeShipRocking().

Definition at lines 77 and 5251 of file ship_rooms.c.

ShipRoomsTremble

extern Sint32 ShipRoomsTremble[]

Sint32 ShipRoomsTremble[]

Squashes the actor and lets it spring back, over and over: a rower trembling at the monsters, or the lady seasick in the hold.

References Sint32.

Referenced by scShipRoomsRunScriptCommand(), scShipRoomsSetUpHold(), scShipRoomsStartFirstAttack(), scShipRoomsStartSecondAttack() and scShipRoomsStartThirdAttack().

Definition at lines 78 and 5261 of file ship_rooms.c.

ShipRoomsMonsterFloat

extern Sint32 ShipRoomsMonsterFloat[]

Sint32 ShipRoomsMonsterFloat[]

A monster on the rowing deck floats up and down in place (scShipRoomsFloat).

References scShipRoomsFloat() and Sint32.

Referenced by scInit(), scShipRoomsStartFirstAttack(), scShipRoomsStartSecondAttack() and scShipRoomsStartThirdAttack().

Definition at lines 79 and 5280 of file ship_rooms.c.

ShipRoomsGoUpstairs

extern Sint32 ShipRoomsGoUpstairs[]

Sint32 ShipRoomsGoUpstairs[]

A rower walks up the stairs and is put away.

References Sint32.

Referenced by scShipRoomsReachIsland().

Definition at lines 80 and 5287 of file ship_rooms.c.

ShipRoomsStepOutFromSeat

extern Sint32 ShipRoomsStepOutFromSeat[]

Sint32 ShipRoomsStepOutFromSeat[]

A rower steps out from the front west seats into the walk between them.

References Sint32.

Referenced by scShipRoomsReachIsland().

Definition at lines 81 and 5297 of file ship_rooms.c.

ShipRoomsLookAroundScript

extern Sint32 ShipRoomsLookAroundScript[]

Sint32 ShipRoomsLookAroundScript[]

A passenger glances about at random.

References scShipRoomsLookAround() and Sint32.

Referenced by scShipRoomsSetUpHold().

Definition at lines 82 and 5305 of file ship_rooms.c.

ShipRoomsAnchorCharm

extern ACTOR *ShipRoomsAnchorCharm

ACTOR *ShipRoomsAnchorCharm

The Anchor Charm's actor, once placed this visit.

Referenced by scShipRoomsPlaceAnchorCharm().

Definition at lines 83 and 5315 of file ship_rooms.c.

ShipRoomsEntrancesOther

extern SCENE_ENTRANCE ShipRoomsEntrancesOther[]

SCENE_ENTRANCE ShipRoomsEntrancesOther[]

Unused: the entrances for any scene but the ship's rooms, the one scene that loads this overlay.

Referenced by scGetEntrances().

Definition at lines 84 and 5319 of file ship_rooms.c.

ShipRoomsEntrances

extern SCENE_ENTRANCE ShipRoomsEntrances[]

SCENE_ENTRANCE ShipRoomsEntrances[]

The passengers' hold, the cargo hold, the rowing deck and the captain's quarters, each entrance named for its room.

Referenced by scGetEntrances().

Definition at lines 85 and 5325 of file ship_rooms.c.

ShipRoomsExits

extern Uint32 ShipRoomsExits[]

Uint32 ShipRoomsExits[]

Referenced by scGetExits().

Definition at lines 86 and 5371 of file ship_rooms.c.

ShipRoomsActorPlacementsNone

extern ACTOR_PLACE ShipRoomsActorPlacementsNone[]

ACTOR_PLACE ShipRoomsActorPlacementsNone[]

Referenced by scGetActorPlacements().

Definition at lines 87 and 5425 of file ship_rooms.c.

ShipRoomsCaptainsQuartersActorPlacements

extern ACTOR_PLACE ShipRoomsCaptainsQuartersActorPlacements[]

ACTOR_PLACE ShipRoomsCaptainsQuartersActorPlacements[]

The captain's quarters before the tour group boards at Kalay, and in the voyage's cutscenes: the captain, Kaja and the crewman.

Referenced by scGetActorPlacements().

Definition at lines 88 and 5431 of file ship_rooms.c.

ShipRoomsCaptainsQuartersActorPlacementsWarriors

extern ACTOR_PLACE ShipRoomsCaptainsQuartersActorPlacementsWarriors[]

ACTOR_PLACE ShipRoomsCaptainsQuartersActorPlacementsWarriors[]

The captain's quarters once the warriors have come to see the captain, with Garet, Ivan and Mia.

Referenced by scGetActorPlacements().

Definition at lines 89 and 5442 of file ship_rooms.c.

ShipRoomsCaptainsQuartersActorPlacementsArrived

extern ACTOR_PLACE ShipRoomsCaptainsQuartersActorPlacementsArrived[]

ACTOR_PLACE ShipRoomsCaptainsQuartersActorPlacementsArrived[]

The captain's quarters once the ship has reached Tolbi.

Referenced by scGetActorPlacements().

Definition at lines 90 and 5465 of file ship_rooms.c.

ShipRoomsHoldActorPlacementsEmpty

extern ACTOR_PLACE ShipRoomsHoldActorPlacementsEmpty[]

ACTOR_PLACE ShipRoomsHoldActorPlacementsEmpty[]

The hold before the party hears of the delay at Kalay: no one but a blue orb in the middle, hidden at once (ShipRoomsHideScript), which the hold's other placements end with too.

References ShipRoomsHideScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 91 and 5473 of file ship_rooms.c.

ShipRoomsHoldActorPlacements

extern ACTOR_PLACE ShipRoomsHoldActorPlacements[]

ACTOR_PLACE ShipRoomsHoldActorPlacements[]

The hold while the ship waits at Kalay, and after it reaches Tolbi.

References ShipRoomsHideScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 92 and 5482 of file ship_rooms.c.

ShipRoomsHoldActorPlacementsAtSea

extern ACTOR_PLACE ShipRoomsHoldActorPlacementsAtSea[]

ACTOR_PLACE ShipRoomsHoldActorPlacementsAtSea[]

The hold at sea, once the passengers row.

References ShipRoomsHideScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 93 and 5507 of file ship_rooms.c.

ShipRoomsRowingDeckActorPlacements

extern ACTOR_PLACE ShipRoomsRowingDeckActorPlacements[]

ACTOR_PLACE ShipRoomsRowingDeckActorPlacements[]

The rowing deck, in the order of TOLBI_SHIP_ROWING_DECK_ACTOR_ID.

They are the crewman and the drummer, the oarsmen at the seats, the passengers who may take a seat, Kaja and the eight oars beside the seats.

Referenced by scGetActorPlacements().

Definition at lines 94 and 5539 of file ship_rooms.c.

ShipRoomsCompanionActorPlacements

extern ACTOR_PLACE ShipRoomsCompanionActorPlacements[]

ACTOR_PLACE ShipRoomsCompanionActorPlacements[]

Garet, Ivan and Mia, placed for a script.

Referenced by scShipRoomsRunScriptCommand().

Definition at lines 95 and 5600 of file ship_rooms.c.

ShipRoomsFirstAttackMonsters

extern ACTOR_PLACE ShipRoomsFirstAttackMonsters[]

ACTOR_PLACE ShipRoomsFirstAttackMonsters[]

The monsters of each attack, beside the seats.

Referenced by scShipRoomsRunScriptCommand().

Definition at lines 96 and 5611 of file ship_rooms.c.

ShipRoomsSecondAttackMonsters

extern ACTOR_PLACE ShipRoomsSecondAttackMonsters[]

ACTOR_PLACE ShipRoomsSecondAttackMonsters[]

Referenced by scShipRoomsRunScriptCommand().

Definition at lines 97 and 5621 of file ship_rooms.c.

ShipRoomsThirdAttackMonsters

extern ACTOR_PLACE ShipRoomsThirdAttackMonsters[]

ACTOR_PLACE ShipRoomsThirdAttackMonsters[]

Referenced by scShipRoomsRunScriptCommand().

Definition at lines 98 and 5631 of file ship_rooms.c.

ShipRoomsCuesOther

extern CUE ShipRoomsCuesOther[]

CUE ShipRoomsCuesOther[]

The cargo hold, and the rooms the voyage's cutscenes play in.

Referenced by scGetCues().

Definition at lines 99 and 5642 of file ship_rooms.c.

ShipRoomsHoldCues

extern CUE ShipRoomsHoldCues[]

CUE ShipRoomsHoldCues[]

The hold while the ship waits at Kalay, and after it reaches Tolbi.

References scShipRoomsTalkToHealer(), scShipRoomsTalkToWaitingMuscleAdmirer(), scShipRoomsTalkToWaitingWarrior() and scShipRoomsWatchWarriorsStormOff().

Referenced by scGetCues().

Definition at lines 100 and 5650 of file ship_rooms.c.

ShipRoomsHoldCuesChoosingRowers

extern CUE ShipRoomsHoldCuesChoosingRowers[]

CUE ShipRoomsHoldCuesChoosingRowers[]

The hold at sea, where talking to a passenger asks them to row.

References scShipRoomsAskHeadGuideToRow(), scShipRoomsAskLadyToRow(), scShipRoomsAskMuscleAdmirerToRow(), scShipRoomsAskOldManToRow(), scShipRoomsAskSecondGuideToRow(), scShipRoomsAskStaredAtPassengerToRow(), scShipRoomsAskSweatingPassengerToRow(), scShipRoomsAskTicketGrumblerToRow(), scShipRoomsAskWarriorToRow() and scShipRoomsTalkToHealer().

Referenced by scGetCues().

Definition at lines 101 and 5703 of file ship_rooms.c.

ShipRoomsHoldCuesAtIsland

extern CUE ShipRoomsHoldCuesAtIsland[]

CUE ShipRoomsHoldCuesAtIsland[]

The hold while the ship waits off the island.

References scShipRoomsAskLadyToRow() and scShipRoomsTalkToHealer().

Referenced by scGetCues().

Definition at lines 102 and 5766 of file ship_rooms.c.

ShipRoomsCaptainsQuartersCues

extern CUE ShipRoomsCaptainsQuartersCues[]

CUE ShipRoomsCaptainsQuartersCues[]

The captain's quarters, from the wait at Kalay until the ship reaches Tolbi.

The Anchor Charm is given back to the captain here.

References scShipRoomsReturnLuckyAnchor(), scShipRoomsTalkToCaptain(), scShipRoomsTalkToCaptainsQuartersCrewman(), scShipRoomsTalkToSeanInCaptainsQuarters() and scShipRoomsWatchCrewWonderAtDelay().

Referenced by scGetCues().

Definition at lines 103 and 5815 of file ship_rooms.c.

ShipRoomsCaptainsQuartersCuesAtIsland

extern CUE ShipRoomsCaptainsQuartersCuesAtIsland[]

CUE ShipRoomsCaptainsQuartersCuesAtIsland[]

The captain's quarters while the ship waits off the island.

Referenced by scGetCues().

Definition at lines 104 and 5865 of file ship_rooms.c.

ShipRoomsCaptainsQuartersCuesArrived

extern CUE ShipRoomsCaptainsQuartersCuesArrived[]

CUE ShipRoomsCaptainsQuartersCuesArrived[]

The captain's quarters once the ship has reached Tolbi.

Referenced by scGetCues().

Definition at lines 105 and 5881 of file ship_rooms.c.

ShipRoomsRowingDeckCues

extern CUE ShipRoomsRowingDeckCues[]

CUE ShipRoomsRowingDeckCues[]

The rowing deck before the ship reaches Tolbi, and off the island.

Referenced by scGetCues().

Definition at lines 106 and 5893 of file ship_rooms.c.

ShipRoomsRowingDeckCuesMonstersBelowdecks

extern CUE ShipRoomsRowingDeckCuesMonstersBelowdecks[]

CUE ShipRoomsRowingDeckCuesMonstersBelowdecks[]

The rowing deck while monsters are belowdecks, where talking to one (ACTOR_ROWING_FIRST_MONSTER and the two after it) fights it.

References scShipRoomsCallLeaderBackToBeasts() and scShipRoomsFightRowingDeckMonsters().

Referenced by scGetCues().

Definition at lines 107 and 5964 of file ship_rooms.c.

ShipRoomsRowingDeckCuesKrakenOnDeck

extern CUE ShipRoomsRowingDeckCuesKrakenOnDeck[]

CUE ShipRoomsRowingDeckCuesKrakenOnDeck[]

The rowing deck while the Kraken rocks the ship.

References scShipRoomsReadHeadGuideMindAtOars(), scShipRoomsReadLadyMindAtOars(), scShipRoomsReadMuscleAdmirerMindAtOars(), scShipRoomsReadSecondGuideMindAtOars(), scShipRoomsReadStaredAtPassengerMindAtOars(), scShipRoomsReadSweatingPassengerMindAtOars(), scShipRoomsReadTicketGrumblerMindAtOars(), scShipRoomsReadWarriorMindAtOars(), scShipRoomsTalkToHeadGuideAtOars(), scShipRoomsTalkToLadyAtOars(), scShipRoomsTalkToMuscleAdmirerAtOars(), scShipRoomsTalkToSecondGuideAtOars(), scShipRoomsTalkToStaredAtPassengerAtOars(), scShipRoomsTalkToSweatingPassengerAtOars(), scShipRoomsTalkToTicketGrumblerAtOars() and scShipRoomsTalkToWarriorAtOars().

Referenced by scGetCues().

Definition at lines 108 and 6049 of file ship_rooms.c.

ShipRoomsRowingDeckCuesArrived

extern CUE ShipRoomsRowingDeckCuesArrived[]

CUE ShipRoomsRowingDeckCuesArrived[]

The rowing deck once the ship has reached Tolbi.

Referenced by scGetCues().

Definition at lines 109 and 6118 of file ship_rooms.c.

ShipRoomsHideScript

Sint32 ShipRoomsHideScript[]

Hides the actor at once (scShipRoomsHide).

References scShipRoomsHide() and Sint32.

Referenced by ShipRoomsHoldActorPlacements, ShipRoomsHoldActorPlacementsAtSea and ShipRoomsHoldActorPlacementsEmpty.

Definition at line 5310 of file ship_rooms.c.

ShipRoomsShakeTimer

Sint32 ShipRoomsShakeTimer

Ticks left of the Kraken's current jolt. At 0 another may start.

References Sint32.

Referenced by scInit(), scShipRoomsNoticeShipRocking() and scShipRoomsShakeWhileKrakenOnDeck().

Definition at line 6149 of file ship_rooms.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailFLAG_TOLBI_SHIP_ANCHOR_CHARM_PLACEDACTOR_OARSMANACTOR_OARSHIP_CAMERA_WAIT_TICKSSHIP_CAMERA_JUMPSHIP_CAMERA_RECENTER_LAYERSSHIP_CAMERA_WAIT_FOR_ARRIVALscShipRoomsMoveCameraAndWaitTALK_FACING_OFTOLBI_SHIP_ASK_TO_ROWTOLBI_SHIP_ROWER_LINE_BY_SEATTOLBI_SHIP_ROWER_LINE_FIRST_OR_LATEREnumerations in detailSHIP_SCRIPT_COMMANDTOLBI_SHIP_PASSENGERTOLBI_SHIP_CAPTAINS_QUARTERS_ACTOR_IDTOLBI_SHIP_HOLD_ACTOR_IDTOLBI_SHIP_SEA_HOLD_ACTOR_IDROWING_DECK_SEATTOLBI_SHIP_ROWING_DECK_ACTOR_IDSHIP_ROOMS_ANIMATIONSHIP_ROOMS_METATILE_BEHAVIORKAJA_PACE_STEPanonymous enumKAJA_PACE_BEATanonymous enumISLAND_REACTIONFunctions in detailscShipRoomsStepBesideLeaderscShipRoomsIsSpotFreescShipRoomsGetChosenOarsmanscShipRoomsAskToRowscShipRoomsDiscussLaunchingWithoutAnchorscShipRoomsSetUpCaptainsQuartersscShipRoomsSetUpHoldscShipRoomsSetUpRowingDeckscShipRoomsSetOarCollisionscShipRoomsAskForReplacementOarsmenscShipRoomsCastOffscShipRoomsAnnounceDeparturescShipRoomsKajaCallsToOarsscShipRoomsKajaCallsReplacementToOarsscShipRoomsShowRowingscShipRoomsAskAboutMonstersscShipRoomsAnnounceTurnscShipRoomsStartFirstAttackscShipRoomsEndFirstAttackscShipRoomsIntroduceReplacementOarsmanscShipRoomsPlaceAnchorCharmscShipRoomsInstallRowingDeckActorsscShipRoomsSayscShipRoomsTurnscShipRoomsPlaceActorscShipRoomsMoveCameraAndWaitFXscShipRoomsRunScriptCommandscShipRoomsFindSeatRowerscShipRoomsHideSelectedPassengersscShipRoomsHideSelectedPassengerscShipRoomsStartSecondAttackscShipRoomsReportMonstersBelowdecksscShipRoomsFindOarsmanMissingscShipRoomsEndSecondAttackscShipRoomsStartThirdAttackscShipRoomsEndThirdAttackscShipRoomsNoticeShipRockingscShipRoomsShakeWhileKrakenOnDeckscShipRoomsShowCaptainsQuartersBeforeIslandscShipRoomsReachIslandscShipRoomsSwitchLeftAndRightTeamsscShipRoomsSwapRowerSelectionsscShipRoomsResetActorscShipRoomsFloatscShipRoomsLookAroundscShipRoomsWaitThenAdvancescShipRoomsHasArrivedscShipRoomsPaceCaptainsQuartersscShipRoomsWatchKajascShipRoomsHidescGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscGetCuesscShipRoomsTalkToCaptainsQuartersCrewmanscShipRoomsTalkToSeanInCaptainsQuartersscShipRoomsTalkToCaptainscShipRoomsTalkToWaitingWarriorscShipRoomsTalkToWaitingMuscleAdmirerscShipRoomsAskHeadGuideToRowscShipRoomsAskSweatingPassengerToRowscShipRoomsAskLadyToRowscShipRoomsAskStaredAtPassengerToRowscShipRoomsAskSecondGuideToRowscShipRoomsAskWarriorToRowscShipRoomsAskTicketGrumblerToRowscShipRoomsAskMuscleAdmirerToRowscShipRoomsAskOldManToRowscShipRoomsFindActorNearscShipRoomsTalkToHeadGuideAtOarsscShipRoomsTalkToSecondGuideAtOarsscShipRoomsTalkToSweatingPassengerAtOarsscShipRoomsTalkToLadyAtOarsscShipRoomsTalkToStaredAtPassengerAtOarsscShipRoomsTalkToWarriorAtOarsscShipRoomsTalkToTicketGrumblerAtOarsscShipRoomsTalkToMuscleAdmirerAtOarsscShipRoomsReadHeadGuideMindAtOarsscShipRoomsReadSecondGuideMindAtOarsscShipRoomsReadSweatingPassengerMindAtOarsscShipRoomsReadLadyMindAtOarsscShipRoomsReadStaredAtPassengerMindAtOarsscShipRoomsReadWarriorMindAtOarsscShipRoomsReadTicketGrumblerMindAtOarsscShipRoomsReadMuscleAdmirerMindAtOarsscShipRoomsTalkToHealerscShipRoomsFightRowingDeckMonstersscShipRoomsCallLeaderBackToBeastsscShipRoomsWatchCrewWonderAtDelayscShipRoomsWatchWarriorsStormOffscShipRoomsReturnLuckyAnchorscInitscShipRoomsSeatChosenRowersscShipRoomsSetPassengerRowingVariables in detailShipRoomsLeaveHoldShipRoomsLeaveCaptainsQuartersShipRoomsAnchorCharmPulseShipRoomsCompanionsJoinLeaderAtFrontShipRoomsCompanionsJoinLeaderByBackSeatsShipRoomsCompanionsJoinLeaderByFrontSeatsShipRoomsTrembleShipRoomsMonsterFloatShipRoomsGoUpstairsShipRoomsStepOutFromSeatShipRoomsLookAroundScriptShipRoomsAnchorCharmShipRoomsEntrancesOtherShipRoomsEntrancesShipRoomsExitsShipRoomsActorPlacementsNoneShipRoomsCaptainsQuartersActorPlacementsShipRoomsCaptainsQuartersActorPlacementsWarriorsShipRoomsCaptainsQuartersActorPlacementsArrivedShipRoomsHoldActorPlacementsEmptyShipRoomsHoldActorPlacementsShipRoomsHoldActorPlacementsAtSeaShipRoomsRowingDeckActorPlacementsShipRoomsCompanionActorPlacementsShipRoomsFirstAttackMonstersShipRoomsSecondAttackMonstersShipRoomsThirdAttackMonstersShipRoomsCuesOtherShipRoomsHoldCuesShipRoomsHoldCuesChoosingRowersShipRoomsHoldCuesAtIslandShipRoomsCaptainsQuartersCuesShipRoomsCaptainsQuartersCuesAtIslandShipRoomsCaptainsQuartersCuesArrivedShipRoomsRowingDeckCuesShipRoomsRowingDeckCuesMonstersBelowdecksShipRoomsRowingDeckCuesKrakenOnDeckShipRoomsRowingDeckCuesArrivedShipRoomsHideScriptShipRoomsShakeTimer