src/scene/timber_rooms_a.c
The insides of Suhalla's buildings, rooms of timber walls and woven floors laid side by side on one map (SceneIdTimberRoomsA). More…
#include "ability_ids.h"#include "flags.h"#include "item_ids.h"#include "sounds.h"#include "field/script_inline.h"#include "text/msg_ids.h"#include "shared/leave_by_exit.c"
Enumerations
| Name | Description | |
|---|---|---|
enum | TIMBER_ROOMS_A_ACTOR_ID { ACTOR_FATHERS_DAUGHTER, ACTOR_FATHER_WHO_WANTS_TO_HELP, ACTO … } | The actors, numbering the rows of TimberRoomsAActorPlacements and of TimberRoomsAActorPlacementsAfterColosso from ACTOR_FIRST_PLACED. |
enum | anonymous enum { SHOP_SUHALLA, INN_ID_SUHALLA } | Suhalla's shop and inn, by their numbers in the shop and inn tables. |
enum | TIMBER_ROOMS_A_METATILE_BEHAVIOR { METATILE_BEHAVIOR_TIMBER_ROOMS_A_BEFORE_WOUNDED } | The metatiles before the wounded soldiers' beds, (21, 9) to (23, 9). |
Functions
| Name | Description | |
|---|---|---|
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) | Suhalla's people, joined after Babi's audience by Iodem, the wounded soldiers and the travelers the sandstorms brought. |
static void | scTimberRoomsATalkToMerchant (Sint32 actorId) | Suhalla's south-west door, opens her shop. |
static void | scTimberRoomsATalkToInnkeeper (Sint32 actorId) | Talking to the innkeeper across his curved counter, in Suhalla's inn, offers a room for the night. |
static void | scTimberRoomsATalkToHealer (Sint32 actorId) | Talking to the Healer across his altar, in Suhalla Sanctum, offers the Sanctum's services. |
static void | scTimberRoomsAAskIfBlownHere (Sint32 actorId) | After Babi's audience, the stout traveler in the inn's loft asks whether the party too was blown here on the way to Babi Lighthouse, and answers yes or no. |
static void | scTimberRoomsAIodemQuestionsWoundedSoldiers (void) | After Babi's audience, walking up toward the two beds in Suhalla's south-east house (metatiles (21, 9) to (23, 9)) brings Iodem out of the party to question the wounded soldiers lying there. |
const CUE * | scGetCues (void) | The doors and inner exits, people and ovens of Suhalla's buildings and Suhalla Sanctum, before or after Babi's audience. |
Sint32 | scInit (void) | Sets Suhalla's buildings up as the party enters: the shopkeeper and innkeeper can be talked to across their counters, and the wounded soldiers are laid flat in the beds. |
Variables
| Name | Description | |
|---|---|---|
extern SCENE_ENTRANCE | TimberRoomsAEntrances [] | |
extern SCENE_EXIT_REGION | TimberRoomsARegions [] | |
extern Uint32 | TimberRoomsAExits [] | |
extern ACTOR_PLACE | TimberRoomsAActorPlacements [] | |
extern ACTOR_PLACE | TimberRoomsAActorPlacementsAfterColosso [] | |
extern CUE | TimberRoomsATriggers [] | |
extern CUE | TimberRoomsATriggersAfterColosso [] |
Description
The insides of Suhalla's buildings, rooms of timber walls and woven floors
laid side by side on one map (SceneIdTimberRoomsA).
Each room has its own camera box, so the party sees only the one it entered, and the area name follows it:
- Suhalla: the inn in the north-west, with its counter, two guest rooms
through doorways at its back and a loft up a ladder; the shop behind the
south-west door; the old couple's house behind the middle door on the south
side; and the house in the south-east corner, whose father takes in anyone
in trouble. The village's exits (
SUHALLA_INN,SUHALLA_SHOP,SUHALLA_HOUSE_SOUTHandSUHALLA_HOUSE_EAST) lead to the entrances of the same numbers. - Suhalla Sanctum: rows of stools before the Healer's altar, behind the
arched double door (
SUHALLA_SANCTUM). A party defeated in Suhalla wakes before the Healer (TIMBER_ROOMS_A_SANCTUM_NORTH).
The rooms' people and talk come in two sets, each an actor placement table
and a cue table, chosen by FLAG_BABI_SPOKE_AFTER_COLOSSO.
Before Babi's audience after Colosso the village talks of Lalivero across the Nol River, out of reach under Tolbi's rule.
After it, two of the soldiers who were escorting Sheba home lie wounded in the beds of the south-east house. Travelers the sandstorms blew back fill the inn, and the old woman half remembers a saying about the death storms.
The two tables agree up to ACTOR_HEALER. The travelers stand off the map
until the audience.
Walking up toward the wounded soldiers' beds (metatiles (21, 9) to (23, 9))
plays scTimberRoomsAIodemQuestionsWoundedSoldiers once, while Iodem travels
with the party and has not yet reached Babi Lighthouse. It sets
FLAG_IODEM_MET_WOUNDED_SOLDIERS either way, which Iodem's lines in the
Suhalla Desert and at Suhalla Gate read.
The merchant, the innkeeper and the Healer serve a leader who faces north across their counters, and otherwise talk by the same flag.
The old couple's oven, at the back of their house, holds a Smoke Bomb
(FLAG_TIMBER_ROOMS_A_OVEN_SMOKE_BOMB); the oven in the south-east house has
mulukhiya soup on.
Unused: the cactus steak line at the old couple's oven, whose item row always
answers first, and the entrance TIMBER_ROOMS_A_SHOP_UNUSED, to which no exit
leads.
Enumerations in detail
TIMBER_ROOMS_A_ACTOR_ID
enum TIMBER_ROOMS_A_ACTOR_ID
The actors, numbering the rows of TimberRoomsAActorPlacements and of
TimberRoomsAActorPlacementsAfterColosso from ACTOR_FIRST_PLACED.
The two tables agree up to ACTOR_HEALER. Where an actor's talk changes after
Babi's audience, the note quotes it before.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FATHERS_DAUGHTER | ACTOR_FIRST_PLACED | A little girl with orange pigtails (SPRITE_GIRL_WITH_PIGTAILS) in the south-east house, the daughter of the man who aids anyone in trouble. She says "My father loves people so much, he can't help but aid anyone in trouble." The man who aids anyone in trouble, a man with brown hair (SPRITE_YOUNG_MAN_WITH_BROWN_HAIR), in whose house the wounded soldiers lie after the audience. |
ACTOR_FATHER_WHO_WANTS_TO_HELP | He says "Let me know if you have any problems. I'll do anything I can to help." A bent old man with a cane (SPRITE_OLD_MAN_WITH_CANE), in the old couple's house. He says Tolbi probably ignores small villages like Suhalla. | |
ACTOR_OLD_MAN_IGNORED_BY_TOLBI | After the audience he says "Do not approach the large cyclones in the middle of the Suhalla." An old woman with white hair (SPRITE_OLD_WOMAN), in the old couple's house. | |
ACTOR_OLD_WOMAN | She says "If you head east across Suhalla, Lalivero is so close you can see it across the Nol River..." After the audience she half remembers a saying about the death storms. | |
ACTOR_MERCHANT | A young woman with a brown ponytail (SPRITE_WOMAN_WITH_PONYTAIL), who keeps the shop behind the south-west door (scTimberRoomsATalkToMerchant). | |
ACTOR_INNKEEPER | A man with dark hair (SPRITE_MAN_WITH_DARK_HAIR), who keeps the inn behind its curved counter (scTimberRoomsATalkToInnkeeper). | |
ACTOR_INN_WOMAN | A woman at the inn, with red-brown hair in a white apron (SPRITE_WOMAN_IN_PINK_APRON), the sprite of Kalay's innkeeper's wife. Travelers the sandstorms blew back, out of sight until the audience. | |
ACTOR_LIGHTHOUSE_WORKER | Two stocky strong men (SPRITE_STRONGMAN) in the inn's east guest room. This one says "We went into the Suhalla to go build the lighthouse, but the storms caught us." | |
ACTOR_SECOND_LIGHTHOUSE_WORKER | "The sandstorms are so bad, we've given up trying to reach Babi Lighthouse." | |
ACTOR_STRANDED_TRAVELER | A stout man with brown hair (SPRITE_STOUT_MAN), who wanders the loft after the audience and asks whether the party was blown here too. | |
ACTOR_HEALER | A bearded man in a long robe (SPRITE_BEARDED_MAN_IN_LONG_ROBE), who keeps Suhalla Sanctum (scTimberRoomsATalkToHealer). | |
ACTOR_IODEM | Iodem, out of sight until he steps out of the party before the wounded soldiers. | |
ACTOR_SOLDIER_SOUTH | The wounded soldiers, lying in the two | |
ACTOR_SOLDIER_NORTH | beds of the south-east house after Babi's audience. |
Definition at line 68 of file timber_rooms_a.c.
anonymous enum
enum { SHOP_SUHALLA, INN_ID_SUHALLA }
Suhalla's shop and inn, by their numbers in the shop and inn tables.
| Enumerator | Value | Description |
|---|---|---|
SHOP_SUHALLA | 31 | |
INN_ID_SUHALLA | 10 |
Definition at line 133 of file timber_rooms_a.c.
TIMBER_ROOMS_A_METATILE_BEHAVIOR
enum TIMBER_ROOMS_A_METATILE_BEHAVIOR
The metatiles before the wounded soldiers' beds, (21, 9) to (23, 9). The doorways' metatile behaviors are the numbers of the exits they lead to.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_TIMBER_ROOMS_A_BEFORE_WOUNDED | 50 |
Definition at line 141 of file timber_rooms_a.c.
Functions in detail
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References TimberRoomsAEntrances.
Definition at line 146 of file timber_rooms_a.c.
scGetExitRegions
const SCENE_EXIT_REGION *scGetExitRegions(void)
References TimberRoomsARegions.
Definition at line 151 of file timber_rooms_a.c.
scGetExits
const Uint32 *scGetExits(void)
References TimberRoomsAExits.
Definition at line 156 of file timber_rooms_a.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
Suhalla's people, joined after Babi's audience by Iodem, the wounded soldiers and the travelers the sandstorms brought.
References gmFlagGet(), TimberRoomsAActorPlacements and TimberRoomsAActorPlacementsAfterColosso.
Definition at line 163 of file timber_rooms_a.c.
scTimberRoomsATalkToMerchant
static void scTimberRoomsATalkToMerchant(Sint32 actorId)
Suhalla's south-west door, opens her shop. From the side she says theirs is the only store in Suhalla, or, after Babi's audience, asks whether the party is surprised to find so few shops.
References fdActorGet(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptWait(), gmFlagGet(), mnShopRun() and Sint32.
Referenced by TimberRoomsATriggers and TimberRoomsATriggersAfterColosso.
Definition at line 177 of file timber_rooms_a.c.
scTimberRoomsATalkToInnkeeper
static void scTimberRoomsATalkToInnkeeper(Sint32 actorId)
Talking to the innkeeper across his curved counter, in Suhalla's inn, offers a room for the night. From the side he sighs that there is nothing to do until Tolbi's festival ends, or, after Babi's audience, that the sandstorms have kept the inn busy.
References fdActorGet(), fdScriptSetMessageId(), fdScriptShowMessage(), gmFlagGet(), mnInnCheckIn() and Sint32.
Referenced by TimberRoomsATriggers and TimberRoomsATriggersAfterColosso.
Definition at line 217 of file timber_rooms_a.c.
scTimberRoomsATalkToHealer
static void scTimberRoomsATalkToHealer(Sint32 actorId)
Talking to the Healer across his altar, in Suhalla Sanctum, offers the Sanctum's services. From the side he says he gets sick thinking of Lalivero under Tolbi's rule, or, after Babi's audience, wonders why there are so many sandstorms.
References fdActorGet(), fdScriptSetMessageId(), fdScriptShowMessage(), gmFlagGet(), mnSanctumRun() and Sint32.
Referenced by TimberRoomsATriggers and TimberRoomsATriggersAfterColosso.
Definition at line 243 of file timber_rooms_a.c.
scTimberRoomsAAskIfBlownHere
static void scTimberRoomsAAskIfBlownHere(Sint32 actorId)
After Babi's audience, the stout traveler in the inn's loft asks whether the party too was blown here on the way to Babi Lighthouse, and answers yes or no.
References fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptWait() and Sint32.
Referenced by TimberRoomsATriggersAfterColosso.
Definition at line 268 of file timber_rooms_a.c.
scTimberRoomsAIodemQuestionsWoundedSoldiers
static void scTimberRoomsAIodemQuestionsWoundedSoldiers(void)
After Babi's audience, walking up toward the two beds in Suhalla's south-east house (metatiles (21, 9) to (23, 9)) brings Iodem out of the party to question the wounded soldiers lying there.
They were escorting Sheba to Lalivero and woke here; others crossed the desert by stopping the sandstorms with water and slaying the monsters that cause them. Iodem resolves to find Sheba and pursue Isaac's foes. It plays only while Iodem travels with the party.
References fdActorFaceActor(), fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetDestination(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWalkByAndWait(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), gmPlayMusic(), scFieldActorLaunchFromLeader() and sySoundPlay().
Referenced by TimberRoomsATriggersAfterColosso.
Definition at line 300 of file timber_rooms_a.c.
scGetCues
const CUE *scGetCues(void)
The doors and inner exits, people and ovens of Suhalla's buildings and Suhalla Sanctum, before or after Babi's audience.
References gmFlagGet(), TimberRoomsATriggers and TimberRoomsATriggersAfterColosso.
Definition at line 617 of file timber_rooms_a.c.
scInit
Sint32 scInit(void)
Sets Suhalla's buildings up as the party enters: the shopkeeper and innkeeper can be talked to across their counters, and the wounded soldiers are laid flat in the beds.
References fdActorGet(), gmFlagSet(), MainRoutineStateWork and Sint32.
Definition at line 629 of file timber_rooms_a.c.
Variables in detail
TimberRoomsAEntrances
extern SCENE_ENTRANCE TimberRoomsAEntrances[]
SCENE_ENTRANCE TimberRoomsAEntrances[]
Referenced by scGetEntrances().
Definition at lines 55 and 653 of file timber_rooms_a.c.
TimberRoomsARegions
extern SCENE_EXIT_REGION TimberRoomsARegions[]
SCENE_EXIT_REGION TimberRoomsARegions[]
Referenced by scGetExitRegions().
Definition at lines 56 and 758 of file timber_rooms_a.c.
TimberRoomsAExits
extern Uint32 TimberRoomsAExits[]
Uint32 TimberRoomsAExits[]
Referenced by scGetExits().
Definition at lines 57 and 764 of file timber_rooms_a.c.
TimberRoomsAActorPlacements
extern ACTOR_PLACE TimberRoomsAActorPlacements[]
ACTOR_PLACE TimberRoomsAActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 58 and 788 of file timber_rooms_a.c.
TimberRoomsAActorPlacementsAfterColosso
extern ACTOR_PLACE TimberRoomsAActorPlacementsAfterColosso[]
ACTOR_PLACE TimberRoomsAActorPlacementsAfterColosso[]
Referenced by scGetActorPlacements().
Definition at lines 59 and 814 of file timber_rooms_a.c.
TimberRoomsATriggers
extern CUE TimberRoomsATriggers[]
CUE TimberRoomsATriggers[]
References scLeaveByExit(), scTimberRoomsATalkToHealer(), scTimberRoomsATalkToInnkeeper() and scTimberRoomsATalkToMerchant().
Referenced by scGetCues().
Definition at lines 60 and 846 of file timber_rooms_a.c.
TimberRoomsATriggersAfterColosso
extern CUE TimberRoomsATriggersAfterColosso[]
CUE TimberRoomsATriggersAfterColosso[]
References scLeaveByExit(), scTimberRoomsAAskIfBlownHere(), scTimberRoomsAIodemQuestionsWoundedSoldiers(), scTimberRoomsATalkToHealer(), scTimberRoomsATalkToInnkeeper() and scTimberRoomsATalkToMerchant().
Referenced by scGetCues().