Skip to Content
The Alchemy Project

src/scene/lacquer_rooms_b.c

The insides of Xian (SceneIdLacquerRoomsB): its houses, its inn and its shop, red lacquered rooms laid side by side on one rooms map, and the small bedroom behind Master Feh's school. More…

Enumerations

NameDescription
enumLACQUER_ROOMS_B_ACTOR_ID { ACTOR_MAN_ON_THE_MULBERRY_HARVEST, ACTOR_FARM_WORKER, ACTOR_ … }The actors of the houses, shops and inn, numbered by the rows of LacquerRoomsBActorPlacements.
enumanonymous enum { XIAN_WEAPON_STOCK, XIAN_ARMOR_STOCK, XIAN_ITEM_STOCK, INN_ID … }Xian's shops and inn, by their numbers in the shop and inn tables.
enumanonymous enum { ACTOR_FEH, ACTOR_FEIZHI, ACTOR_HSU }The three in the bedroom behind Master Feh's school once Xian has heard of Hsu: Master Feh, who says Feizhi's prediction came true, Feizhi, and Hsu, hurt by the rocks on his way from Lama Temple.
enumanonymous enum { ANIM_HSU_IN_BED }Hsu on his back with his arms at his sides, as he lies in the bed in the bedroom behind the school (hsu.png's frame 36).

Functions

NameDescription
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)The room behind the school places only Master Feh, Feizhi and Hsu.
static inline Uint32scLacquerRoomsBGetLeaderFacing (void)The way the leader faces, read before the script turns anyone.
static voidscLacquerRoomsBTalkToWeaponMerchant (void)Talking to the bald weapon merchant in Xian's shop from in front of the counter opens the weapon shop.
static voidscLacquerRoomsBTalkToArmorMerchant (void)Talking to the young armor merchant in Xian's shop from in front of the counter opens the armor shop.
static voidscLacquerRoomsBTalkToItemMerchant (void)Talking to the item merchant, the woman at the end of Xian's shop counter, from in front of it opens the item shop.
static voidscLacquerRoomsBTalkToInnkeeper (void)Talking to Xian's innkeeper across his counter, from the west, lets the party stay at the inn.
static voidscLacquerRoomsBAskAboutSilkRoad (void)Once Xian has heard of Hsu, a young man at home asks whether something is wrong on Silk Road and in Lamakan Desert.
static voidscLacquerRoomsBAskAboutAltinMonsters (void)Once Xian has heard of Hsu, an old man at home asks whether the monsters in Altin really spat water, as Feizhi says.
static voidscLacquerRoomsBFeizhiThanksParty (void)In the bedroom behind Master Feh's school, Feizhi welcomes the party, turns to look at Hsu in his bed and back, and thanks it and Master Hama for saving him.
const CUE *scGetCues (void)The room behind the school has its own cues.
Sint32scInit (void)Each room opens with the window transition.

Variables

NameDescription
extern SCENE_ENTRANCELacquerRoomsBEntrances []
extern Uint32LacquerRoomsBExits []
extern ACTOR_PLACELacquerRoomsBActorPlacements []
extern ACTOR_PLACELacquerRoomsBSchoolRoomActorPlacements []
extern CUELacquerRoomsBCues []
extern CUELacquerRoomsBSchoolRoomCues []
const Sint32 *FieldEffectDurationScripts []The resident copy of the scripts EFFECT_SCRIPT_MASK picks, by enum EFFECT_DURATION.

Description

The insides of Xian (SceneIdLacquerRoomsB): its houses, its inn and its shop, red lacquered rooms laid side by side on one rooms map, and the small bedroom behind Master Feh's school.

Each of Xian's doors opens into a room of its own here. Three are villagers' houses, two to a house. The inn's front room has the innkeeper and a cook, and an inner doorway leads to the room behind it with its beds. In the shop the weapon, armor and item merchants stand side by side behind one long white counter. Every villager has a line, and a thought for Mind Read, for before and after the village hears that Hsu is trapped (FLAG_XIAN_HEARD_HSU_TRAPPED); two of them ask a question with an answer for yes and one for no. The merchants and the innkeeper serve the party only when spoken to across the counter, and otherwise just talk.

The bedroom is reached only through a door of Master Feh's school (fuchin_temple.c) and has its own actors and cues. Once Xian has heard of Hsu, he lies there in bed with Feizhi at his side and Master Feh by the wall. If the party lifted the boulder off him at the Alpine Crossing, Feizhi thanks it and Master Hama; if he was freed while the party was away (FLAG_HSU_RESCUED_WITHOUT_PARTY), she thanks Hama alone, and the three of them think otherwise under Mind Read. Coming in from the school clears FLAG_SHOW_AREA_NAME.

Enumerations in detail

LACQUER_ROOMS_B_ACTOR_ID

enum LACQUER_ROOMS_B_ACTOR_ID

The actors of the houses, shops and inn, numbered by the rows of LacquerRoomsBActorPlacements. Each villager is named by what they talk of before Xian hears of Hsu.

EnumeratorValueDescription
ACTOR_MAN_ON_THE_MULBERRY_HARVESTACTOR_FIRST_PLACEDA man with a topknot, at the table of his house.
ACTOR_FARM_WORKERA woman in a green apron, in the same house.
ACTOR_YOUNG_MAN_ON_SILK_ROADA young man in a blue jacket, at the back of another house.
ACTOR_WOMAN_ON_TOLBIA young woman with black hair who walks about the same house.
ACTOR_OLD_MAN_ON_THE_ALTIN_ROADAn old man in blue, by the door of the third house.
ACTOR_OLD_WOMAN_ON_THE_ALTIN_MINEAn old woman with a cane, in the same house.
ACTOR_XIAN_WEAPON_MERCHANT
ACTOR_XIAN_ARMOR_MERCHANT
ACTOR_XIAN_ITEM_MERCHANT
ACTOR_XIAN_INNKEEPER
ACTOR_WOMAN_AWAITING_MERCHANTSA woman in a pink apron who walks about the inn's back room.
ACTOR_COOKA man in a cook's cap, in the inn's front room with the innkeeper.

Definition at line 42 of file lacquer_rooms_b.c.

anonymous enum

enum { XIAN_WEAPON_STOCK, XIAN_ARMOR_STOCK, XIAN_ITEM_STOCK, INN_ID_XIAN }

Xian's shops and inn, by their numbers in the shop and inn tables.

EnumeratorValueDescription
XIAN_WEAPON_STOCK16
XIAN_ARMOR_STOCK17
XIAN_ITEM_STOCK18
INN_ID_XIAN5

Definition at line 68 of file lacquer_rooms_b.c.

anonymous enum

enum { ACTOR_FEH, ACTOR_FEIZHI, ACTOR_HSU }

The three in the bedroom behind Master Feh's school once Xian has heard of Hsu: Master Feh, who says Feizhi's prediction came true, Feizhi, and Hsu, hurt by the rocks on his way from Lama Temple.

EnumeratorValueDescription
ACTOR_FEHACTOR_FIRST_PLACED
ACTOR_FEIZHI
ACTOR_HSU

Definition at line 79 of file lacquer_rooms_b.c.

anonymous enum

enum { ANIM_HSU_IN_BED }

Hsu on his back with his arms at his sides, as he lies in the bed in the bedroom behind the school (hsu.png's frame 36).

EnumeratorValueDescription
ANIM_HSU_IN_BED6

Definition at line 88 of file lacquer_rooms_b.c.

Functions in detail

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References LacquerRoomsBEntrances.

Definition at line 96 of file lacquer_rooms_b.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 101 of file lacquer_rooms_b.c.

scGetExits

const Uint32 *scGetExits(void)

References LacquerRoomsBExits.

Definition at line 106 of file lacquer_rooms_b.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

The room behind the school places only Master Feh, Feizhi and Hsu.

References fdAssignViewFlags(), LacquerRoomsBActorPlacements, LacquerRoomsBSchoolRoomActorPlacements and MainRoutineStateWork.

Definition at line 112 of file lacquer_rooms_b.c.

scLacquerRoomsBGetLeaderFacing

static inline Uint32 scLacquerRoomsBGetLeaderFacing(void)

The way the leader faces, read before the script turns anyone.

References fdActorGet().

Referenced by scLacquerRoomsBTalkToArmorMerchant(), scLacquerRoomsBTalkToInnkeeper(), scLacquerRoomsBTalkToItemMerchant() and scLacquerRoomsBTalkToWeaponMerchant().

Definition at line 124 of file lacquer_rooms_b.c.

scLacquerRoomsBTalkToWeaponMerchant

static void scLacquerRoomsBTalkToWeaponMerchant(void)

Talking to the bald weapon merchant in Xian's shop from in front of the counter opens the weapon shop. From anywhere else he talks of martial arts, or once the village has heard of Hsu, of the lesson his injury taught.

References fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), gmFlagGet(), mnShopRun() and scLacquerRoomsBGetLeaderFacing().

Referenced by LacquerRoomsBCues.

Definition at line 133 of file lacquer_rooms_b.c.

scLacquerRoomsBTalkToArmorMerchant

static void scLacquerRoomsBTalkToArmorMerchant(void)

Talking to the young armor merchant in Xian's shop from in front of the counter opens the armor shop. From anywhere else he talks of armor and kung fu.

References fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), gmFlagGet(), mnShopRun() and scLacquerRoomsBGetLeaderFacing().

Referenced by LacquerRoomsBCues.

Definition at line 164 of file lacquer_rooms_b.c.

scLacquerRoomsBTalkToItemMerchant

static void scLacquerRoomsBTalkToItemMerchant(void)

Talking to the item merchant, the woman at the end of Xian's shop counter, from in front of it opens the item shop. From anywhere else she talks of Xian's armor, or once the village has heard of Hsu, asks whether the party means to cross the desert.

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

Referenced by LacquerRoomsBCues.

Definition at line 197 of file lacquer_rooms_b.c.

scLacquerRoomsBTalkToInnkeeper

static void scLacquerRoomsBTalkToInnkeeper(void)

Talking to Xian's innkeeper across his counter, from the west, lets the party stay at the inn. From anywhere else he talks of towns, or of how few guests come these days.

References fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), gmFlagGet(), mnInnCheckIn() and scLacquerRoomsBGetLeaderFacing().

Referenced by LacquerRoomsBCues.

Definition at line 228 of file lacquer_rooms_b.c.

scLacquerRoomsBAskAboutSilkRoad

static void scLacquerRoomsBAskAboutSilkRoad(void)

Once Xian has heard of Hsu, a young man at home asks whether something is wrong on Silk Road and in Lamakan Desert.

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

Referenced by LacquerRoomsBCues.

Definition at line 257 of file lacquer_rooms_b.c.

scLacquerRoomsBAskAboutAltinMonsters

static void scLacquerRoomsBAskAboutAltinMonsters(void)

Once Xian has heard of Hsu, an old man at home asks whether the monsters in Altin really spat water, as Feizhi says.

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

Referenced by LacquerRoomsBCues.

Definition at line 270 of file lacquer_rooms_b.c.

scLacquerRoomsBFeizhiThanksParty

static void scLacquerRoomsBFeizhiThanksParty(void)

In the bedroom behind Master Feh's school, Feizhi welcomes the party, turns to look at Hsu in his bed and back, and thanks it and Master Hama for saving him.

References fdActorFaceActor(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart() and fdScriptWait().

Referenced by LacquerRoomsBSchoolRoomCues.

Definition at line 284 of file lacquer_rooms_b.c.

scGetCues

const CUE *scGetCues(void)

The room behind the school has its own cues.

References LacquerRoomsBCues, LacquerRoomsBSchoolRoomCues and MainRoutineStateWork.

Definition at line 300 of file lacquer_rooms_b.c.

scInit

Sint32 scInit(void)

Each room opens with the window transition. The inn and the shop also get unseen still actors of SPRITE_CHEST's sprite sheet near their counters (scPlaceHiddenActor), and the bedroom lays Hsu in his bed.

References fdActorSetAnimation(), gmFlagClear(), MainRoutineStateWork and Sint32.

Definition at line 313 of file lacquer_rooms_b.c.

Variables in detail

LacquerRoomsBEntrances

extern SCENE_ENTRANCE LacquerRoomsBEntrances[]

SCENE_ENTRANCE LacquerRoomsBEntrances[]

Referenced by scGetEntrances().

Definition at lines 32 and 348 of file lacquer_rooms_b.c.

LacquerRoomsBExits

extern Uint32 LacquerRoomsBExits[]

Uint32 LacquerRoomsBExits[]

Referenced by scGetExits().

Definition at lines 33 and 417 of file lacquer_rooms_b.c.

LacquerRoomsBActorPlacements

extern ACTOR_PLACE LacquerRoomsBActorPlacements[]

ACTOR_PLACE LacquerRoomsBActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 34 and 442 of file lacquer_rooms_b.c.

LacquerRoomsBSchoolRoomActorPlacements

extern ACTOR_PLACE LacquerRoomsBSchoolRoomActorPlacements[]

ACTOR_PLACE LacquerRoomsBSchoolRoomActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 35 and 470 of file lacquer_rooms_b.c.

LacquerRoomsBCues

extern CUE LacquerRoomsBCues[]

CUE LacquerRoomsBCues[]

References scLacquerRoomsBAskAboutAltinMonsters(), scLacquerRoomsBAskAboutSilkRoad(), scLacquerRoomsBTalkToArmorMerchant(), scLacquerRoomsBTalkToInnkeeper(), scLacquerRoomsBTalkToItemMerchant() and scLacquerRoomsBTalkToWeaponMerchant().

Referenced by scGetCues().

Definition at lines 36 and 480 of file lacquer_rooms_b.c.

LacquerRoomsBSchoolRoomCues

extern CUE LacquerRoomsBSchoolRoomCues[]

CUE LacquerRoomsBSchoolRoomCues[]

References scLacquerRoomsBFeizhiThanksParty().

Referenced by scGetCues().

Definition at lines 37 and 608 of file lacquer_rooms_b.c.

FieldEffectDurationScripts

const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

Definition at line 342 of file lacquer_rooms_b.c.