Skip to Content
The Alchemy Project

src/scene/naribwe.c

Naribwe, the desert village south of the Kibombo Mountains. More…

Macros

NameDescription
#defineFLAG_ASKED_WHERE_FROM 0x85eThe villager has asked where the party comes from.
#defineFLAG_ASKED_ABOUT_EXPEDITION 0x85dThe villager has asked about the Kibombo expedition.
#defineFLAG_WEEDS_SCATTERED FLAG_SCENE_TEMP(0x01)Whirlwind has scattered the weeds off the back yard's ladder, for this visit.
#defineFLAG_NARIBWE_ROPE_TIED FLAG_SCENE_TEMP(0x02)The rope between the two posts, tied by Lash, for this visit.
#defineACTOR_UNICORN_RING_CHEST (FIELD_TREASURE_ACTOR + 1)The Unicorn Ring's chest: the village's second scene item.
#defineNARIBWE_FIRE_LIT_ENTRANCE 10An entrance no exit leads to: the village with no villagers about, where Blaze on the fire throws its long jet of flame.
#defineWHERE_FROM_ASKEDThe flag a Yes to "Can you tell me where you have come from?" sets, and the actor the hot-weather line after it opens at.
#defineAFTER_WHERE_FROM_SPEAKER
#defineDEFINE_NARIBWE_PLACEMENTS (name)The village's placements, the same before and after the return with Piers.

Enumerations

NameDescription
enumNARIBWE_ACTOR_ID { ACTOR_BONFIRE, ACTOR_WEST_BRAZIER, ACTOR_EAST_BRAZIER, ACTOR … }Naribwe, by the rows of the village's placements (the same before and after the return from Kibombo).
enumanonymous enum { SHOP_NARIBWE_ITEMS }Naribwe's shops, as mnShopRun numbers them.

Functions

NameDescription
const SCENE_ENTRANCE *scGetEntrances (void)Where the party can enter: the cave under the spring has its own entrances.
const SCENE_REGION *scGetExitRegions (void)The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room.
const Uint32 *scGetExits (void)The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN.
const ACTOR_PLACE *scGetActorPlacements (void)The scene's actor placements: a room of names for its entrance, else the debug room's.
voidscNaribwePrepareBlaze (void)Felix casts Blaze at the fire in the ring of stones in the middle of the village, and its jet of flame shoots up short, as anywhere else.
const CUE *scGetCues (void)The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's.
voidscNaribweAskAboutKibomboExpedition (void)The woman in a purple skirt just southwest of the fire tells Felix: "The Kibombo went on an expedition to the east, but they've already returned," and asks him something.
voidscNaribweAskWhereFrom (void)The old woman in a headband east of the fire asks Felix: "Can you tell me where you have come from?" She asks it again every time, because of a bug (below); the line she was to say after, that it is always hot in Naribwe, is never heard from her.
voidscNaribweAskGoingToKibombo (void)The boy with black hair just north of the fire asks Felix: "You don't plan on going to Kibombo, do you, mister?"
voidscNaribwePraiseFortuneTeller (Sint32 actor)Felix talks to the woman in a teal headband at the item stall in the south of the village: facing her from the east, across her stall, he can shop; from elsewhere she says: "No one can see the future.
voidscNaribwePraiseFortuneTellerOnReturn (Sint32 actor)Felix talks to the woman at the item stall once Piers has carried Gabomba's message: across her stall, he can shop; from elsewhere she says strangers should visit the fortune-teller's hut.
voidscNaribweTalkToPilgrim (Sint32 actor)Felix talks to the pilgrim in white below the fortune-teller's hut: facing him from the south, he can use the Sanctum; from elsewhere the pilgrim says: "I am but a humble pilgrim, serving the greater good in the heart of Gondowan."
voidscNaribweTalkToPilgrimOnReturn (Sint32 actor)Felix talks to the pilgrim below the fortune-teller's hut once Piers has carried Gabomba's message: from the south, he can use the Sanctum; from elsewhere the pilgrim says how cold it grows to the south.
voidscNaribweEnterDoor (void)Felix walks north into the door of the inn, the southeast hut, at metatile (18, 23), or of the fortune-teller's hut at the top of the village, at metatile (21, 8): everyone stops, the door opens, and he goes in.
voidscNaribweScatterWeeds (void)Felix casts Whirlwind at the weeds in the back yard behind the northwest houses: the leaves blow away and the ladder up to the ledge of totem poles shows.
voidscNaribweSetRopeState (void)Unused: writes the rope's post and end into the script state; nothing calls it.
voidscNaribweRevealChest (void)Felix casts Reveal anywhere in the village: on the ledge of totem poles above the back yard, the rock pile is gone and the Unicorn Ring's chest shows in its place.
voidscNaribweHideChest (void)The Unicorn Ring's chest stays hidden under the rock pile on the ledge of totem poles, as the village opens and again as Reveal wears off.
Sint32scInit (void)Opens the room through the window transition, and in the debug room draws the cat 1.7 times its size.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.

Variables

NameDescription
extern Uint32SceneExits []The room has no exits of its own.
extern ACTOR_PLACENaribwePlacements []
extern ACTOR_PLACENaribweFireLitPlacements []The village's people until Gabomba's message is carried.
extern ACTOR_PLACENaribwePlacementsOnReturn []
extern CUENaribweCues []The same people once it has been.
extern CUENaribweCuesOnReturn []
extern MAP_EDITNaribweDoors []The inn's door and the fortune-teller's, which open as the party walks through, and the metatiles their opening is drawn at, by exit.
extern Sint32NaribweBrazierBurns []The braziers burn.
extern Sint32NaribweHoldOverBrazier []The unseen actors over the braziers: nothing drawn, held 24 pixels up.
extern Sint32NaribweWeedsAnimation []
extern Uint16NaribweDoorOpening []How the inn's and the fortune-teller's doors open: the open door's metatiles are copied over the closed one's, and held six ticks.
Sint16NaribweUnusedList []Unused: a list of the pilgrim and FLAG_SCENE_TEMP(0x00), in a flag block's pairs; nothing reads it.
SCENE_ENTRANCESceneEntrances []Besides the party's return to the pier after the ship is stolen, four unused spots about the mast: below the huge block, on the dock by its crate, on the deck, and at the top of the sail's east pole.

Description

Naribwe, the desert village south of the Kibombo Mountains.

A fire burns in a ring of stones in the middle of the village. The inn is the southeast hut, the weapon and armor shop the southwest one, and the fortune-teller's hut stands at the top of the village between two burning braziers, where for 20 coins he reads an item. Through the northwest houses is a back yard, where Whirlwind blows away the weeds over a ladder up to a ledge of totem poles, and Reveal there shows the Unicorn Ring's chest under a rock pile. Once Piers has carried Gabomba's message, the villagers talk of the smoke over the Kibombo Mountains.

Macros in detail

FLAG_ASKED_WHERE_FROM

#define FLAG_ASKED_WHERE_FROM 0x85e

The villager has asked where the party comes from.

Referenced by scNaribweAskWhereFrom().

Definition at line 22 of file naribwe.c.

FLAG_ASKED_ABOUT_EXPEDITION

#define FLAG_ASKED_ABOUT_EXPEDITION 0x85d

The villager has asked about the Kibombo expedition.

Referenced by scNaribweAskAboutKibomboExpedition().

Definition at line 25 of file naribwe.c.

FLAG_WEEDS_SCATTERED

#define FLAG_WEEDS_SCATTERED FLAG_SCENE_TEMP(0x01)

Whirlwind has scattered the weeds off the back yard's ladder, for this visit.

Referenced by NaribweCues, NaribweCuesOnReturn, scInit() and scNaribweScatterWeeds().

Definition at line 28 of file naribwe.c.

FLAG_NARIBWE_ROPE_TIED

#define FLAG_NARIBWE_ROPE_TIED FLAG_SCENE_TEMP(0x02)

The rope between the two posts, tied by Lash, for this visit.

Referenced by NaribweCues, NaribweCuesOnReturn and scInit().

Definition at line 31 of file naribwe.c.

ACTOR_UNICORN_RING_CHEST

#define ACTOR_UNICORN_RING_CHEST (FIELD_TREASURE_ACTOR + 1)

The Unicorn Ring's chest: the village's second scene item.

Referenced by scNaribweHideChest() and scNaribweRevealChest().

Definition at line 87 of file naribwe.c.

NARIBWE_FIRE_LIT_ENTRANCE

#define NARIBWE_FIRE_LIT_ENTRANCE 10

An entrance no exit leads to: the village with no villagers about, where Blaze on the fire throws its long jet of flame.

Referenced by scGetActorPlacements() and scNaribwePrepareBlaze().

Definition at line 91 of file naribwe.c.

WHERE_FROM_ASKED

#define WHERE_FROM_ASKED

The flag a Yes to "Can you tell me where you have come from?" sets, and the actor the hot-weather line after it opens at. BUG: a Yes sets FLAG_ASKED_ABOUT_EXPEDITION, the expedition woman's flag, where FLAG_ASKED_WHERE_FROM was meant: she asks every time, the line on the heat after it is never shown (and would be at the expedition woman), and the expedition woman stops asking hers.

Referenced by scNaribweAskWhereFrom().

Definition at line 190 of file naribwe.c.

AFTER_WHERE_FROM_SPEAKER

#define AFTER_WHERE_FROM_SPEAKER

Referenced by scNaribweAskWhereFrom().

Definition at line 194 of file naribwe.c.

DEFINE_NARIBWE_PLACEMENTS

#define DEFINE_NARIBWE_PLACEMENTS(name)

The village's placements, the same before and after the return with Piers.

Referenced by NaribweCues and NaribweFireLitPlacements.

Definition at line 456 of file naribwe.c.

Enumerations in detail

NARIBWE_ACTOR_ID

enum NARIBWE_ACTOR_ID

Naribwe, by the rows of the village's placements (the same before and after the return from Kibombo).

EnumeratorValueDescription
ACTOR_BONFIREACTOR_FIRST_PLACEDThe fire in the ring of stones in the middle of the village.
ACTOR_WEST_BRAZIERThe burning braziers either side
ACTOR_EAST_BRAZIERof the fortune teller's hut.
ACTOR_OVER_WEST_BRAZIERUnseen actors held 24 pixels over
ACTOR_OVER_EAST_BRAZIERthe braziers: the exclamation bubble's sprite sheet, whose first animation draws nothing.
ACTOR_MAN_AMAZED_BY_THE_RETURN"Don't tell me you just came back from Kibombo!"
ACTOR_WOMAN_ON_THE_KIBOMBO_EXPEDITION"The Kibombo went on an expedition to the east, but they've already returned."
ACTOR_MAN_WARNING_OF_THE_NORTH"I would not venture far north of here if I were you..."
ACTOR_WOMAN_WHO_SAW_THE_GEMS_FALL"It's been dangerous out ever since the day the gems fell from the sky."
ACTOR_OLD_MAN_ON_OEIA"When Oeia was their witch doctor, the Kibombo were much more peaceful."
ACTOR_WOMAN_ASKING_WHERE_FROM"Can you tell me where you have come from?"
ACTOR_BOY_ASKING_OF_KIBOMBO"You don't plan on going to Kibombo, do you, mister?"
ACTOR_VILLAGER_ON_MAGMA_ROCK"On the far side of the river lies a huge mountain we call Magma Rock."
ACTOR_OLD_MAN_HURT_BY_A_BRUTE"Ouch... Some big brute came through here looking for a woman named Menardi."
ACTOR_ITEM_SHOPKEEPERThe item stall's keeper: "No one can see the future. Absolutely no one. Except for our fortune-teller."
ACTOR_WEEDSThe weeds over the back yard's ladder, which Whirlwind blows away.
ACTOR_ROPE_POSTThe post Lash throws the rope
ACTOR_ROPE_ENDfrom, and the rope's unseen end up on the ledge.
ACTOR_PILGRIM"I am but a humble pilgrim..."
ACTOR_ROCK_PILEThe rock pile over the Unicorn Ring's chest, which Reveal clears.

Definition at line 35 of file naribwe.c.

anonymous enum

enum { SHOP_NARIBWE_ITEMS }

Naribwe's shops, as mnShopRun numbers them.

EnumeratorValueDescription
SHOP_NARIBWE_ITEMS16

Definition at line 255 of file naribwe.c.

Functions in detail

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 102 of file naribwe.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 107 of file naribwe.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 112 of file naribwe.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References fdScriptGetFlag(), MainRoutineStateWork, NaribweFireLitPlacements, NaribwePlacements and NaribwePlacementsOnReturn.

Definition at line 117 of file naribwe.c.

scNaribwePrepareBlaze

void scNaribwePrepareBlaze(void)

Felix casts Blaze at the fire in the ring of stones in the middle of the village, and its jet of flame shoots up short, as anywhere else.

Before the cast, blazeLongSpray is set only when the party came in by NARIBWE_FIRE_LIT_ENTRANCE, which no exit leads to; there the jet shoots up long.

References MainRoutineStateWork.

Referenced by NaribweCues and NaribweCuesOnReturn.

Definition at line 132 of file naribwe.c.

scGetCues

const CUE *scGetCues(void)

References fdScriptGetFlag(), NaribweCues and NaribweCuesOnReturn.

Definition at line 143 of file naribwe.c.

scNaribweAskAboutKibomboExpedition

void scNaribweAskAboutKibomboExpedition(void)

The woman in a purple skirt just southwest of the fire tells Felix: "The Kibombo went on an expedition to the east, but they've already returned," and asks him something. Once he has answered Yes, she says instead that the Kibombo never move in such numbers without orders.

References fdPartyGetLeaderActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage() and Sint32.

Referenced by NaribweCues.

Definition at line 154 of file naribwe.c.

scNaribweAskWhereFrom

void scNaribweAskWhereFrom(void)

The old woman in a headband east of the fire asks Felix: "Can you tell me where you have come from?" She asks it again every time, because of a bug (below); the line she was to say after, that it is always hot in Naribwe, is never heard from her.

References fdPartyGetLeaderActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage() and Sint32.

Referenced by NaribweCues.

Definition at line 203 of file naribwe.c.

scNaribweAskGoingToKibombo

void scNaribweAskGoingToKibombo(void)

The boy with black hair just north of the fire asks Felix: "You don't plan on going to Kibombo, do you, mister?"

References fdPartyGetLeaderActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptWait() and Sint32.

Referenced by NaribweCues.

Definition at line 235 of file naribwe.c.

scNaribwePraiseFortuneTeller

void scNaribwePraiseFortuneTeller(Sint32 actor)

Felix talks to the woman in a teal headband at the item stall in the south of the village: facing her from the east, across her stall, he can shop; from elsewhere she says: "No one can see the future. Absolutely no one. Except for our fortune-teller."

References fdActorGetById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnShopRun() and Sint32.

Referenced by NaribweCues.

Definition at line 264 of file naribwe.c.

scNaribwePraiseFortuneTellerOnReturn

void scNaribwePraiseFortuneTellerOnReturn(Sint32 actor)

Felix talks to the woman at the item stall once Piers has carried Gabomba's message: across her stall, he can shop; from elsewhere she says strangers should visit the fortune-teller's hut.

References fdActorGetById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnShopRun() and Sint32.

Referenced by NaribweCuesOnReturn.

Definition at line 284 of file naribwe.c.

scNaribweTalkToPilgrim

void scNaribweTalkToPilgrim(Sint32 actor)

Felix talks to the pilgrim in white below the fortune-teller's hut: facing him from the south, he can use the Sanctum; from elsewhere the pilgrim says: "I am but a humble pilgrim, serving the greater good in the heart of Gondowan."

References fdActorGetById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnSanctumRun() and Sint32.

Referenced by NaribweCues.

Definition at line 305 of file naribwe.c.

scNaribweTalkToPilgrimOnReturn

void scNaribweTalkToPilgrimOnReturn(Sint32 actor)

Felix talks to the pilgrim below the fortune-teller's hut once Piers has carried Gabomba's message: from the south, he can use the Sanctum; from elsewhere the pilgrim says how cold it grows to the south.

References fdActorGetById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnSanctumRun() and Sint32.

Referenced by NaribweCuesOnReturn.

Definition at line 325 of file naribwe.c.

scNaribweEnterDoor

void scNaribweEnterDoor(void)

Felix walks north into the door of the inn, the southeast hut, at metatile (18, 23), or of the fortune-teller's hut at the top of the village, at metatile (21, 8): everyone stops, the door opens, and he goes in.

Each door's metatile carries the number of the exit it leaves by; the other three houses' doorways are plain exits.

References fdActorGetById(), fdActorSetAnimation(), fdMapGridAnimateMetatiles(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, NaribweDoors, Sint32 and syImportScriptSetExitRequest().

Referenced by NaribweCues and NaribweCuesOnReturn.

Definition at line 348 of file naribwe.c.

scNaribweScatterWeeds

void scNaribweScatterWeeds(void)

Felix casts Whirlwind at the weeds in the back yard behind the northwest houses: the leaves blow away and the ladder up to the ledge of totem poles shows. The weeds stay gone until the party leaves the village.

References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetFlag() and fdScriptStart().

Referenced by NaribweCues and NaribweCuesOnReturn.

Definition at line 387 of file naribwe.c.

scNaribweSetRopeState

void scNaribweSetRopeState(void)

Unused: writes the rope's post and end into the script state; nothing calls it.

Definition at line 397 of file naribwe.c.

scNaribweRevealChest

void scNaribweRevealChest(void)

Felix casts Reveal anywhere in the village: on the ledge of totem poles above the back yard, the rock pile is gone and the Unicorn Ring's chest shows in its place.

References fdTreasureSpotSetPos().

Referenced by NaribweCues and NaribweCuesOnReturn.

Definition at line 409 of file naribwe.c.

scNaribweHideChest

void scNaribweHideChest(void)

The Unicorn Ring's chest stays hidden under the rock pile on the ledge of totem poles, as the village opens and again as Reveal wears off.

References fdTreasureSpotSetActorPos().

Referenced by NaribweCues, NaribweCuesOnReturn and scInit().

Definition at line 417 of file naribwe.c.

scInit

Sint32 scInit(void)

References fdActorDisableById(), fdActorGetById(), fdActorSetSpriteFlags(), fdRopeInit(), fdRopePlace(), fdScriptGetFlag(), scNaribweHideChest() and Sint32.

Definition at line 423 of file naribwe.c.

scPrepareMap

Sint32 scPrepareMap(void)

References Sint32.

Definition at line 442 of file naribwe.c.

Variables in detail

SceneExits

extern Uint32 SceneExits[]

Uint32 SceneExits[]

Referenced by scGetExits().

Definition at lines 93 and 686 of file naribwe.c.

NaribwePlacements

extern ACTOR_PLACE NaribwePlacements[]

Referenced by NaribweFireLitPlacements and scGetActorPlacements().

Definition at line 95 of file naribwe.c.

NaribweFireLitPlacements

extern ACTOR_PLACE NaribweFireLitPlacements[]

DEFINE_NARIBWE_PLACEMENTS(NaribwePlacements) ACTOR_PLACE NaribweFireLitPlacements[]

The village's people until Gabomba's message is carried.

References NaribwePlacements.

Referenced by scGetActorPlacements().

Definition at lines 96 and 706 of file naribwe.c.

NaribwePlacementsOnReturn

extern ACTOR_PLACE NaribwePlacementsOnReturn[]

Referenced by NaribweCues and scGetActorPlacements().

Definition at line 97 of file naribwe.c.

NaribweCues

extern CUE NaribweCues[]

DEFINE_NARIBWE_PLACEMENTS(NaribwePlacementsOnReturn) CUE NaribweCues[]

The same people once it has been.

References NaribwePlacementsOnReturn, scNaribweAskAboutKibomboExpedition(), scNaribweAskGoingToKibombo(), scNaribweAskWhereFrom(), scNaribweEnterDoor(), scNaribweHideChest(), scNaribwePraiseFortuneTeller(), scNaribwePrepareBlaze(), scNaribweRevealChest(), scNaribweScatterWeeds() and scNaribweTalkToPilgrim().

Referenced by scGetCues().

Definition at lines 98 and 724 of file naribwe.c.

NaribweCuesOnReturn

extern CUE NaribweCuesOnReturn[]

CUE NaribweCuesOnReturn[]

References scNaribweEnterDoor(), scNaribweHideChest(), scNaribwePraiseFortuneTellerOnReturn(), scNaribwePrepareBlaze(), scNaribweRevealChest(), scNaribweScatterWeeds() and scNaribweTalkToPilgrimOnReturn().

Referenced by scGetCues().

Definition at lines 99 and 825 of file naribwe.c.

NaribweDoors

extern MAP_EDIT NaribweDoors[]

MAP_EDIT NaribweDoors[]

The inn's door and the fortune-teller's, which open as the party walks through, and the metatiles their opening is drawn at, by exit.

References NaribweDoorOpening.

Referenced by scNaribweEnterDoor().

Definition at lines 100 and 676 of file naribwe.c.

NaribweBrazierBurns

extern Sint32 NaribweBrazierBurns[]

Sint32 NaribweBrazierBurns[]

The braziers burn.

References Sint32.

Definition at lines 449 and 649 of file naribwe.c.

NaribweHoldOverBrazier

extern Sint32 NaribweHoldOverBrazier[]

Sint32 NaribweHoldOverBrazier[]

The unseen actors over the braziers: nothing drawn, held 24 pixels up.

References Sint32.

Definition at lines 450 and 655 of file naribwe.c.

NaribweWeedsAnimation

extern Sint32 NaribweWeedsAnimation[]

Sint32 NaribweWeedsAnimation[]

References Sint32.

Definition at lines 452 and 662 of file naribwe.c.

NaribweDoorOpening

extern Uint16 NaribweDoorOpening[]

Uint16 NaribweDoorOpening[]

How the inn's and the fortune-teller's doors open: the open door's metatiles are copied over the closed one's, and held six ticks.

Referenced by NaribweDoors.

Definition at lines 453 and 669 of file naribwe.c.

NaribweUnusedList

Sint16 NaribweUnusedList[]

Unused: a list of the pilgrim and FLAG_SCENE_TEMP(0x00), in a flag block's pairs; nothing reads it.

Definition at line 644 of file naribwe.c.

SceneEntrances

SCENE_ENTRANCE SceneEntrances[]

Referenced by scGetEntrances().

Definition at line 681 of file naribwe.c.