Skip to Content
The Alchemy Project

src/scene/stucco_rooms_a.c

Stucco rooms A (SceneIdStuccoRoomsA) is a rooms map drawn in stucco holding every house of Kalay and its inn, each entered by its own door in the town (kalay.c) and left by the exit of the same name. More…

Enumerations

NameDescription
enumSTUCCO_ROOMS_A_ACTOR_ID { ACTOR_YOUNG_MAN_ON_LUNPA_GONE_BAD, ACTOR_WOMAN_SAYING_LUNPA_ … }The placed actors of the houses, the inn and the Kalay Sanctum, each table numbered from ACTOR_FIRST_PLACED.
enumanonymous enum { INN_ID_KALAY }Kalay's inn, as mnInnCheckIn numbers the inns.
enumSTUCCO_ROOMS_A_METATILE_BEHAVIOR { METATILE_BEHAVIOR_ELEVEN_COINS_BARREL, METATILE_BEHAVIOR_SMO … }The things searched in the houses and the inn, by what they give or what their message says is cooking.

Functions

NameDescription
static voidscStuccoRoomsAApplyRoomState (void)Once the Colosso tour has left, its guests are gone from Kalay's inn, and two people from the houses.
const SCENE_ENTRANCE *scGetEntrances (void)Selects the entrance table of Kalay's houses and inn, or of the Kalay Sanctum.
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)The inn's rooms share one actor placement table and the houses another.
const CUE *scGetCues (void)Selects room dialogue with the same entrance grouping as the actor placements.
static voidscStuccoRoomsATalkToTourGuide (void)Isaac talks to the tour guide with a pack in the dining room of Kalay's inn: "Please finish eating if you are taking the tour!
static voidscStuccoRoomsAAskAboutSouthernContinent (void)Isaac talks to the young man with brown hair in a guest room of the inn's basement, the one behind the passage's south-east doorway, and he asks whether Isaac knows the continent south of Tolbi.
static voidscStuccoRoomsATalkToInnkeeper (void)Isaac talks to Kalay's innkeeper across the counter, facing west, and is offered a room.
static voidscStuccoRoomsATalkToHealer (void)Isaac talks to the healer in a tall hat across the Kalay Sanctum's counter and is offered the Sanctum's services.
static voidscStuccoRoomsAOpenDoorAndExit (void)Isaac walks north into one of the four wooden doors of the inn's basement, and it opens as he walks through: the two in the north wall of the passage (metatiles (34, 40) and (39, 40)), or the door back out of either guest room behind the passage's south doorways (metatiles (50, 38) and (52, 49)).
Sint32scInit (void)Opens the room with the window transition around the leader and sets up the room entered.

Variables

NameDescription
extern SCENE_ENTRANCEStuccoRoomsAHouseEntrances []
extern SCENE_ENTRANCEStuccoRoomsASanctumEntrances []
extern Uint32StuccoRoomsAExits []
extern ACTOR_PLACEStuccoRoomsANoActorPlacements []
extern ACTOR_PLACEStuccoRoomsAHouseActorPlacements []
extern ACTOR_PLACEStuccoRoomsAInnActorPlacements []
extern ACTOR_PLACEStuccoRoomsASanctumActorPlacements []
extern CUEStuccoRoomsANoCues []
extern CUEStuccoRoomsAHouseCues []A row whose condition is a bare flag answers while that flag is clear, so a row on FLAG_KALAY_COLOSSO_TOUR_LEFT is what its actor says before the tour leaves, and the row after it what they say once it has gone.
extern CUEStuccoRoomsAInnCues []
extern CUEStuccoRoomsASanctumCues []
extern MAP_EDITStuccoRoomsADoorMetatiles []
Uint16StuccoRoomsADoorMetatileSteps []A wooden door of the inn's basement opening, and where each door is drawn: its two metatiles on map layer 2, whose rows begin at the map's row 60, over the door's step metatile, so the door stepped into at (34, 40) opens at (34, 98) and (34, 99).

Description

Stucco rooms A (SceneIdStuccoRoomsA) is a rooms map drawn in stucco holding every house of Kalay and its inn, each entered by its own door in the town (kalay.c) and left by the exit of the same name. The Kalay Sanctum (SceneIdKalaySanctum), whose healer serves across the counter, is a scene of its own in this file, entered from the town too.

The inn is full of tourists on their way to see Colosso in Tolbi. Stairs lead down to its basement, a passage with two wooden doors in its north wall and two doorways in its south wall, each into a guest room; the rooms behind the doorways have wooden doors of their own back out. One of those holds a young man and a woman about to join the tour, the other two men who fled Lalivero; the rooms behind the doors hold Ouranos and Sean, and nobody.

The innkeeper offers a room when spoken to across the counter. From elsewhere he asks "Are you going to Tolbi also?", and the guide in the dining room says "Please finish eating if you are taking the tour!" Either sets FLAG_KALAY_HEARD_OF_COLOSSO_TOUR, after which leaving the town plays the tour group's departure. Once the tour has left (FLAG_KALAY_COLOSSO_TOUR_LEFT) its guests are gone from the inn, and the young man and the woman from the guest room, and those who stay say so.

Searching the ovens shows what the cooks are making. Barrels hold 11 coins, in the house at the town's lower right, and an Elixir, in the inn's basement; the oven of the easternmost house gives a Smoke Bomb.

Enumerations in detail

STUCCO_ROOMS_A_ACTOR_ID

enum STUCCO_ROOMS_A_ACTOR_ID

The placed actors of the houses, the inn and the Kalay Sanctum, each table numbered from ACTOR_FIRST_PLACED. The inn's table serves the inn, its basement passage and the guest room behind its north-west door; the other guest rooms take the houses'.

EnumeratorValueDescription
ACTOR_YOUNG_MAN_ON_LUNPA_GONE_BADACTOR_FIRST_PLACEDA young man with brown hair (SPRITE_YOUNG_MAN_WITH_BROWN_HAIR).
ACTOR_WOMAN_SAYING_LUNPA_WAS_KINDA woman with fair hair (SPRITE_WOMAN_WITH_FAIR_HAIR).
ACTOR_MAN_ON_THE_NORTHA burly grey-haired man (SPRITE_BURLY_MAN_WITH_GREY_HAIR).
ACTOR_WOMAN_ON_THE_VAULT_MERCHANTA woman in a green dress (SPRITE_WOMAN_IN_GREEN_DRESS), who says the soldiers took the merchant to Lord Hammet's Palace.
ACTOR_WORRIED_FATHERS_SONThe worried father's son, a bald man in red (SPRITE_BALD_MAN_IN_RED_KALAY), who may not go to Vault.
ACTOR_WORRIED_FATHERAn old man with a cane (SPRITE_OLD_MAN_WITH_CANE).
ACTOR_MERCHANTA young man in green (SPRITE_YOUNG_MAN_IN_GREEN_KALAY), whose mother's thoughts call him a merchant.
ACTOR_MERCHANTS_MOTHERThe merchant's mother, an old woman (SPRITE_OLD_WOMAN).
ACTOR_YOUNG_MAN_ASKING_ABOUT_THE_SOUTHA young man with brown hair (SPRITE_YOUNG_MAN_WITH_BROWN_HAIR), gone once the tour has left.
ACTOR_WOMAN_BOUND_FOR_THE_TOURA woman with fair hair (SPRITE_WOMAN_WITH_FAIR_HAIR), about to join the tour, and gone with it.
ACTOR_MAN_FROM_LALIVEROTwo men in white turbans
ACTOR_SECOND_MAN_FROM_LALIVERO(SPRITE_MAN_IN_WHITE_TURBAN) who fled Lalivero, in Gondowan.
ACTOR_INNKEEPERACTOR_FIRST_PLACEDA man with dark hair (SPRITE_MAN_WITH_DARK_HAIR).
ACTOR_INNKEEPERS_WIFEThe innkeeper's wife, a woman in a pink apron (SPRITE_WOMAN_IN_PINK_APRON), who says once the tour has left that even their chef went with it.
ACTOR_FIRST_TOURISTA chef (SPRITE_CHEF).
ACTOR_SECOND_TOURISTA young woman in green (SPRITE_YOUNG_WOMAN_IN_GREEN), who talks of the Colosso gladiators.
ACTOR_TOUR_GUIDEThe tour's guides, men carrying
ACTOR_SECOND_TOUR_GUIDEpacks (SPRITE_MAN_CARRYING_A_PACK), in the inn's dining room.
ACTOR_THIRD_TOURISTA bald, muscular man (SPRITE_BALD_MUSCULAR_MAN), who expects Lord Hammet in Tolbi.
ACTOR_FOURTH_TOURISTAn old man with a cane (SPRITE_OLD_MAN_WITH_CANE), who would have entered Colosso if he were younger.
ACTOR_INN_GUESTAn old woman (SPRITE_OLD_WOMAN), who stays once the tour has left.
ACTOR_WARRIOR_SIGNING_UP_FOR_COLOSSOA woman with a sword (SPRITE_PERSON_WITH_SWORD).
ACTOR_OURANOSThe warriors bound for Colosso,
ACTOR_SEANOuranos and Sean, young men with red and with blue hair (SPRITE_YOUNG_MAN_WITH_RED_HAIR and SPRITE_YOUNG_MAN_WITH_BLUE_HAIR, as in ship_rooms.c).
ACTOR_HEALERACTOR_FIRST_PLACEDA man in a tall hat (SPRITE_MAN_IN_TALL_HAT).

Definition at line 52 of file stucco_rooms_a.c.

anonymous enum

enum { INN_ID_KALAY }

Kalay's inn, as mnInnCheckIn numbers the inns.

EnumeratorValueDescription
INN_ID_KALAY7

Definition at line 133 of file stucco_rooms_a.c.

STUCCO_ROOMS_A_METATILE_BEHAVIOR

enum STUCCO_ROOMS_A_METATILE_BEHAVIOR

The things searched in the houses and the inn, by what they give or what their message says is cooking. The roasted eggplant oven shares the Smoke Bomb's.

EnumeratorValueDescription
METATILE_BEHAVIOR_ELEVEN_COINS_BARREL100
METATILE_BEHAVIOR_SMOKE_BOMB_OVEN101
METATILE_BEHAVIOR_ELIXIR_BARREL102
METATILE_BEHAVIOR_TOAST_OVEN200
METATILE_BEHAVIOR_CURRY_OVEN201
METATILE_BEHAVIOR_KALAY_SALAD203
METATILE_BEHAVIOR_GARLIC_PICKLES204

Definition at line 141 of file stucco_rooms_a.c.

Functions in detail

scStuccoRoomsAApplyRoomState

static void scStuccoRoomsAApplyRoomState(void)

Once the Colosso tour has left, its guests are gone from Kalay's inn, and two people from the houses. In the north-east house's lower room the weapon shop's top right corner, metatiles (30, 16) to (33, 17), would show at the bottom left of the view, so the empty metatiles north of it are copied over it.

References fdActorReleaseById(), fdActorSetSpriteColorById(), fdMapGridCopyMetatilesTo(), gmFlagGet() and MainRoutineStateWork.

Referenced by scInit().

Definition at lines 152 and 416 of file stucco_rooms_a.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

Selects the entrance table of Kalay's houses and inn, or of the Kalay Sanctum.

References KalayFallbackEntrances, MainRoutineStateWork, StuccoRoomsAHouseEntrances and StuccoRoomsASanctumEntrances.

Definition at line 156 of file stucco_rooms_a.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 171 of file stucco_rooms_a.c.

scGetExits

const Uint32 *scGetExits(void)

References StuccoRoomsAExits.

Definition at line 176 of file stucco_rooms_a.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

The inn's rooms share one actor placement table and the houses another.

References fdAssignViewFlags(), MainRoutineStateWork, Sint32, StuccoRoomsAHouseActorPlacements, StuccoRoomsAInnActorPlacements, StuccoRoomsANoActorPlacements and StuccoRoomsASanctumActorPlacements.

Definition at line 182 of file stucco_rooms_a.c.

scGetCues

const CUE *scGetCues(void)

Selects room dialogue with the same entrance grouping as the actor placements.

References MainRoutineStateWork, Sint32, StuccoRoomsAHouseCues, StuccoRoomsAInnCues, StuccoRoomsANoCues and StuccoRoomsASanctumCues.

Definition at line 217 of file stucco_rooms_a.c.

scStuccoRoomsATalkToTourGuide

static void scStuccoRoomsATalkToTourGuide(void)

Isaac talks to the tour guide with a pack in the dining room of Kalay's inn: "Please finish eating if you are taking the tour! We'll be leaving soon!" From then on, leaving the town plays the tour group's departure.

References fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and gmFlagSet().

Referenced by StuccoRoomsAInnCues.

Definition at line 249 of file stucco_rooms_a.c.

scStuccoRoomsAAskAboutSouthernContinent

static void scStuccoRoomsAAskAboutSouthernContinent(void)

Isaac talks to the young man with brown hair in a guest room of the inn's basement, the one behind the passage's south-east doorway, and he asks whether Isaac knows the continent south of Tolbi. Yes: the guest next door is dressed like he comes from Gondowan. No: he tells of Gondowan, very large and very warm.

He has left with the Colosso tour once it has gone.

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

Referenced by StuccoRoomsAHouseCues.

Definition at line 266 of file stucco_rooms_a.c.

scStuccoRoomsATalkToInnkeeper

static void scStuccoRoomsATalkToInnkeeper(void)

Isaac talks to Kalay's innkeeper across the counter, facing west, and is offered a room. From anywhere else the innkeeper asks, "Are you going to Tolbi also?", or, once the tour has gone, says the inn feels empty.

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

Referenced by StuccoRoomsAInnCues.

Definition at line 280 of file stucco_rooms_a.c.

scStuccoRoomsATalkToHealer

static void scStuccoRoomsATalkToHealer(void)

Isaac talks to the healer in a tall hat across the Kalay Sanctum's counter and is offered the Sanctum's services. From the side the healer only says that one can live in peace in Kalay.

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

Referenced by StuccoRoomsASanctumCues.

Definition at line 315 of file stucco_rooms_a.c.

scStuccoRoomsAOpenDoorAndExit

static void scStuccoRoomsAOpenDoorAndExit(void)

Isaac walks north into one of the four wooden doors of the inn's basement, and it opens as he walks through: the two in the north wall of the passage (metatiles (34, 40) and (39, 40)), or the door back out of either guest room behind the passage's south doorways (metatiles (50, 38) and (52, 49)). Each door's step cue is the exit it leaves by.

References fdActorCenterAndWalk(), fdActorGet(), fdActorSetAnimation(), fdMapGridAnimateMetatiles(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), Sint32, state, StuccoRoomsADoorMetatiles, syImportScriptSetExitRequest() and sySoundPlay().

Referenced by StuccoRoomsAHouseCues and StuccoRoomsAInnCues.

Definition at line 338 of file stucco_rooms_a.c.

scInit

Sint32 scInit(void)

Opens the room with the window transition around the leader and sets up the room entered.

References MainRoutineStateWork, scStuccoRoomsAApplyRoomState() and Sint32.

Definition at line 400 of file stucco_rooms_a.c.

Variables in detail

StuccoRoomsAHouseEntrances

extern SCENE_ENTRANCE StuccoRoomsAHouseEntrances[]

SCENE_ENTRANCE StuccoRoomsAHouseEntrances[]

Referenced by scGetEntrances().

Definition at lines 35 and 465 of file stucco_rooms_a.c.

StuccoRoomsASanctumEntrances

extern SCENE_ENTRANCE StuccoRoomsASanctumEntrances[]

SCENE_ENTRANCE StuccoRoomsASanctumEntrances[]

Referenced by scGetEntrances().

Definition at lines 36 and 611 of file stucco_rooms_a.c.

StuccoRoomsAExits

extern Uint32 StuccoRoomsAExits[]

Uint32 StuccoRoomsAExits[]

Referenced by scGetExits().

Definition at lines 37 and 638 of file stucco_rooms_a.c.

StuccoRoomsANoActorPlacements

extern ACTOR_PLACE StuccoRoomsANoActorPlacements[]

ACTOR_PLACE StuccoRoomsANoActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 38 and 694 of file stucco_rooms_a.c.

StuccoRoomsAHouseActorPlacements

extern ACTOR_PLACE StuccoRoomsAHouseActorPlacements[]

ACTOR_PLACE StuccoRoomsAHouseActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 39 and 699 of file stucco_rooms_a.c.

StuccoRoomsAInnActorPlacements

extern ACTOR_PLACE StuccoRoomsAInnActorPlacements[]

ACTOR_PLACE StuccoRoomsAInnActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 40 and 727 of file stucco_rooms_a.c.

StuccoRoomsASanctumActorPlacements

extern ACTOR_PLACE StuccoRoomsASanctumActorPlacements[]

ACTOR_PLACE StuccoRoomsASanctumActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 41 and 755 of file stucco_rooms_a.c.

StuccoRoomsANoCues

extern CUE StuccoRoomsANoCues[]

CUE StuccoRoomsANoCues[]

Referenced by scGetCues().

Definition at lines 42 and 761 of file stucco_rooms_a.c.

StuccoRoomsAHouseCues

extern CUE StuccoRoomsAHouseCues[]

CUE StuccoRoomsAHouseCues[]

A row whose condition is a bare flag answers while that flag is clear, so a row on FLAG_KALAY_COLOSSO_TOUR_LEFT is what its actor says before the tour leaves, and the row after it what they say once it has gone.

References scStuccoRoomsAAskAboutSouthernContinent() and scStuccoRoomsAOpenDoorAndExit().

Referenced by scGetCues().

Definition at lines 43 and 768 of file stucco_rooms_a.c.

StuccoRoomsAInnCues

extern CUE StuccoRoomsAInnCues[]

CUE StuccoRoomsAInnCues[]

References scStuccoRoomsAOpenDoorAndExit(), scStuccoRoomsATalkToInnkeeper() and scStuccoRoomsATalkToTourGuide().

Referenced by scGetCues().

Definition at lines 44 and 866 of file stucco_rooms_a.c.

StuccoRoomsASanctumCues

extern CUE StuccoRoomsASanctumCues[]

CUE StuccoRoomsASanctumCues[]

References scStuccoRoomsATalkToHealer().

Referenced by scGetCues().

Definition at lines 45 and 956 of file stucco_rooms_a.c.

StuccoRoomsADoorMetatiles

extern MAP_EDIT StuccoRoomsADoorMetatiles[]

MAP_EDIT StuccoRoomsADoorMetatiles[]

References StuccoRoomsADoorMetatileSteps.

Referenced by scStuccoRoomsAOpenDoorAndExit().

Definition at lines 46 and 974 of file stucco_rooms_a.c.

StuccoRoomsADoorMetatileSteps

Uint16 StuccoRoomsADoorMetatileSteps[]

A wooden door of the inn's basement opening, and where each door is drawn: its two metatiles on map layer 2, whose rows begin at the map's row 60, over the door's step metatile, so the door stepped into at (34, 40) opens at (34, 98) and (34, 99).

Referenced by StuccoRoomsADoorMetatiles.

Definition at line 969 of file stucco_rooms_a.c.