Skip to Content
The Alchemy Project

src/scene/naribwe_rooms.c

The insides of Naribwe's huts, behind the village's five doors. More…

Macros

NameDescription
#defineANIM_FORTUNE_TELLER_DANCE 5The fortune-teller's dance: arms spread with his staff, the staff raised high, then a crouch, over and over.
#defineFORTUNE_PRICE 20"It costs 20 coins to hear what your future holds.
#defineARMOR_PRESENCE_SENSED_BEFORE 42"From the garb you have placed before me, I sense the presence of the one you await.", which opens a Djinni's hint, as the message this many before MsgNaribweRoomsInItemYouHavePlaced.
#defineDANCE_TO (x)The fortune-teller steps sideways behind his table to x, still facing the party, and dances on.
#defineHINT_LIMIT_ABOVE_ALL 9999Higher than any element's hint limit, so that the first one is lower.

Enumerations

NameDescription
enumNARIBWE_ROOMS_ACTOR_ID { ACTOR_BOY_DIRECTING_TO_THE_FORTUNE_TELLER, ACTOR_WOMAN_ON_A_ … }The placed actors, numbering the rows of ActorPlacements.
enumTRIDENT_READING_MESSAGE { TRIDENT_FEARSOME_WEAPON, TRIDENT_DEFEAT_THE_BEAST, TRIDENT_N … }The Trident's reading, as messages after MsgNaribweRoomsAreYouPrepared.
enumanonymous enum { NARIBWE_ROOMS_TO_WEST_HUT, NARIBWE_ROOMS_TO_NORTHWEST_HUT, N … }The back door between the northwest hut and the west hut, whose own door opens on the back yard: each way's exit, and the entrance it arrives by.
enumanonymous enum { SHOP_NARIBWE_WEAPONS, SHOP_NARIBWE_ARMOR }Naribwe's shops, as mnShopRun numbers them.
enumanonymous enum { INN_ID_NARIBWE }Naribwe's inn, as mnInnCheckIn numbers the inns.
enumFORTUNE_READING { READING_BEFORE_GABOMBAS_MESSAGE, READING_FOE_IN_MISTY_SEA, R … }The fortune-teller's readings, one numbering for all four kinds: the foe a weapon shows, the power a Psynergy item shows, the path any other item shows and the prong a prong of the Trident shows.

Functions

NameDescription
voidscNaribweRoomsReadFortune (void)The reading: the party sets one of a member's items on the table, the room turns red while the fortune-teller dances, and he reads the item by its type, a prong of the Trident and the Trident itself on their own, then takes his 20 coins.
voidscNaribweRoomsReadProng (void)A prong of the Trident: the power it holds over a foe, and where a prong still missing lies.
voidscNaribweRoomsReadWeapon (void)A weapon: the foe that lies beyond it.
voidscNaribweRoomsReadArmor (void)Armor, a shield, a helm or boots: where a Djinni still to be found waits, or nothing of the future once none is left.
voidscNaribweRoomsReadOtherItem (void)Any other item: the path the party should follow.
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.
Sint32scNaribweRoomsMindReadFortuneTeller (void)Felix casts Mind Read on the fortune-teller across his table, in his hut at the top of Naribwe: "The items that one carries are filled with one's hopes and desires..."
Sint32scNaribweRoomsMindReadFortuneTellerOnReturn (void)Felix casts Mind Read on the fortune-teller across his table once Piers has carried Gabomba's message: "Items placed before me are filled with the desires of those who..."
const CUE *scGetCues (void)The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's.
voidscNaribweRoomsTalkToWeaponMerchant (Sint32 speaker)Felix talks to the weapon merchant behind the swords in Naribwe's shop: across the mat, he can buy; from elsewhere the merchant advises taking a weapon to the fortune-teller.
voidscNaribweRoomsTalkToWeaponMerchantOnReturn (Sint32 speaker)Felix talks to the weapon merchant in Naribwe's shop once Piers has carried Gabomba's message: across the mat, he can buy; from elsewhere the merchant sends out-of-town customers to the fortune-teller.
voidscNaribweRoomsTalkToArmorMerchant (Sint32 speaker)Felix talks to the armor merchant behind the helms and shields in Naribwe's shop: across the mat, he can buy; from elsewhere the merchant advises visiting the fortune-teller while in the village.
voidscNaribweRoomsTalkToArmorMerchantOnReturn (Sint32 speaker)Felix talks to the armor merchant in Naribwe's shop once Piers has carried Gabomba's message: across the mat, he can buy; from elsewhere the merchant sends the party to the fortune-teller for anything it wishes to know.
voidscNaribweRoomsTalkToInnkeeper (Sint32 speaker)Felix talks to the woman behind the counter of Naribwe's inn: across it, he can stay the night; from elsewhere she talks of the village's cooking.
voidscNaribweRoomsTalkToInnkeeperOnReturn (Sint32 speaker)Felix talks to the innkeeper once Piers has carried Gabomba's message: across the counter, he can stay the night; from elsewhere she sees too many travelers to remember Piers.
voidscNaribweRoomsTalkToFortuneTeller (void)Felix talks to the fortune-teller across his table, in his hut at the top of Naribwe: he offers a reading for 20 coins, and a No to either question ends it.
voidscNaribweRoomsReadShiningItem (void)A Psynergy item: a power shining beyond it, and where the next power to gain waits.
Sint32scNaribweRoomsFoeAhead (void)Which foe a weapon's reading names: none before Gabomba's message is carried, then the foe in the misty sea, and none once Poseidon is beaten.
Sint32scNaribweRoomsNextPowerToGain (void)The first power the party still lacks, for a Psynergy item's reading: three Psynergy (Reveal, Sand and Parch) and two items (the Burst Brooch and the Grindstone), or READING_ALL_POWERS once it has them all.
Sint32scNaribweRoomsNextPath (void)The path an ordinary item's reading points along, by the story's flags, the Trident's prongs and the Trident.
Sint32scNaribweRoomsProngToSeek (void)Where a prong's reading sends the party: to the ruins by the beach while the Right Prong is missing, the moss-covered ruins while the Left Prong is, the icy cape's tower while only the Center Prong is, and on once it holds all three.
Uint8 *scNaribweRoomsGetDjinniHint (void)The message telling where a Djinni still to be found waits, or MsgNaribweRoomsInItemYouHavePlaced when none is left to find.
Sint32scNaribweRoomsDjinniHintLimit (Sint32 group)One past the last Djinni of an element the party has found, of those this game hides and the fortune-teller hints at, or -1 when it has found none.
Sint32scNaribweRoomsListMissingDjinn (Sint32 limit, Sint32 group, Sint32 *out)Lists the flags of an element's Djinn still to be found, from the first Djinni not carried over from Isaac's party up to the limit and skipping Echo, Spring and Shade, which the fortune-teller never hints at; returns how many.
Sint32scInit (void)Opens the houses through the window transition, and keeps the reading's item, smoke and cloud out of sight until a reading needs them.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.

Variables

NameDescription
extern CUENaribweRoomsCues []The ways out, the villagers talked to and read, and the fortune-teller's table, until Gabomba's message is carried.
extern CUENaribweRoomsCuesOnReturn []The same, once Gabomba's message is carried.
Uint32SceneExits []The room has no exits of its own.
ACTOR_PLACEActorPlacements []The room's people: the party's four rows, then PSYNERGY_TEST_ACTOR_ID's.

Description

The insides of Naribwe's huts, behind the village's five doors.

The northwest hut's back door leads into the hut beside it, whose own door opens on the fenced back yard. The southwest hut is the shop, its weapon and armor merchants side by side behind one mat, and the southeast hut the inn. At the top of the village is the fortune-teller's hut, where for 20 coins he reads an item the party sets on his table: a weapon for the foe ahead, a piece of armor for a Djinni still to be found, a prong of the Trident for the prong still missing, the Trident for the beast it was forged against, a Psynergy item for the next power to gain, and anything else for the path to follow.

Once Piers has carried Gabomba's message (FLAG_GABOMBA_MESSAGE_CARRIED) the villagers have other things to say (NaribweRoomsCuesOnReturn).

Macros in detail

ANIM_FORTUNE_TELLER_DANCE

#define ANIM_FORTUNE_TELLER_DANCE 5

The fortune-teller's dance: arms spread with his staff, the staff raised high, then a crouch, over and over.

Referenced by scNaribweRoomsReadFortune().

Definition at line 65 of file naribwe_rooms.c.

FORTUNE_PRICE

#define FORTUNE_PRICE 20

"It costs 20 coins to hear what your future holds. Will you pay?"

Referenced by scNaribweRoomsReadFortune() and scNaribweRoomsTalkToFortuneTeller().

Definition at line 81 of file naribwe_rooms.c.

ARMOR_PRESENCE_SENSED_BEFORE

#define ARMOR_PRESENCE_SENSED_BEFORE 42

"From the garb you have placed before me, I sense the presence of the one you await.", which opens a Djinni's hint, as the message this many before MsgNaribweRoomsInItemYouHavePlaced.

Referenced by scNaribweRoomsReadArmor().

Definition at line 98 of file naribwe_rooms.c.

DANCE_TO

#define DANCE_TO(x)

The fortune-teller steps sideways behind his table to x, still facing the party, and dances on.

Referenced by scNaribweRoomsReadFortune().

Definition at line 364 of file naribwe_rooms.c.

HINT_LIMIT_ABOVE_ALL

#define HINT_LIMIT_ABOVE_ALL 9999

Higher than any element's hint limit, so that the first one is lower.

Referenced by scNaribweRoomsGetDjinniHint().

Definition at line 939 of file naribwe_rooms.c.

Enumerations in detail

NARIBWE_ROOMS_ACTOR_ID

enum NARIBWE_ROOMS_ACTOR_ID

The placed actors, numbering the rows of ActorPlacements.

EnumeratorValueDescription
ACTOR_BOY_DIRECTING_TO_THE_FORTUNE_TELLERACTOR_FIRST_PLACED"The fortune-teller lives at the highest house in Naribwe..."
ACTOR_WOMAN_ON_A_SMALL_VILLAGE"We're a small village, but if we all cooperate..."
ACTOR_FORTUNE_TELLER"I am a teller of fortunes. Would you have a reading?"
ACTOR_FORTUNE_TELLERS_CHILD"My father is a fortune-teller, not a witch doctor."
ACTOR_VILLAGER_ON_BODY_PAINT"By painting our bodies, we bring about good luck."
ACTOR_WEAPON_MERCHANTBehind the swords on the shop's mat; across it, the weapon shop.
ACTOR_ARMOR_MERCHANTBehind the helms and shields beside them; across the mat, the armor shop.
ACTOR_VILLAGER_ON_ADVENTURE"If you like adventure, you should head out west across the river..."
ACTOR_INNKEEPERA woman behind the inn's counter; across it, the inn.
ACTOR_FORTUNE_TABLEAn unseen actor on the fortune-teller's table, which talking to him across it reaches: "If you desire a reading, stand before the table..."
ACTOR_PLACED_ITEMThe icon of the item the party sets on the table.
ACTOR_RISING_SMOKEThin wisps of smoke that rise from the table after the cloud.
ACTOR_SMOKE_CLOUDA lilac cloud of smoke that bursts on the table as the dance ends.

Definition at line 30 of file naribwe_rooms.c.

TRIDENT_READING_MESSAGE

enum TRIDENT_READING_MESSAGE

The Trident's reading, as messages after MsgNaribweRoomsAreYouPrepared.

EnumeratorValueDescription
TRIDENT_FEARSOME_WEAPON29"That object you have placed before me... It is a fearsome weapon to a particular beast."
TRIDENT_DEFEAT_THE_BEAST30"If you wield this weapon, you can defeat the legendary beast!"
TRIDENT_NO_MORE_BEASTS31"But there are no more beasts for you to fear in this part of the world."

Definition at line 84 of file naribwe_rooms.c.

anonymous enum

enum { NARIBWE_ROOMS_TO_WEST_HUT, NARIBWE_ROOMS_TO_NORTHWEST_HUT, NARIBWE_ROOMS_FROM_NORTHWEST_HUT, NARIBWE_ROOMS_FROM_WEST_HUT }

The back door between the northwest hut and the west hut, whose own door opens on the back yard: each way's exit, and the entrance it arrives by.

EnumeratorValueDescription
NARIBWE_ROOMS_TO_WEST_HUT6
NARIBWE_ROOMS_TO_NORTHWEST_HUT7
NARIBWE_ROOMS_FROM_NORTHWEST_HUT7
NARIBWE_ROOMS_FROM_WEST_HUT6

Definition at line 157 of file naribwe_rooms.c.

anonymous enum

enum { SHOP_NARIBWE_WEAPONS, SHOP_NARIBWE_ARMOR }

Naribwe's shops, as mnShopRun numbers them.

EnumeratorValueDescription
SHOP_NARIBWE_WEAPONS14
SHOP_NARIBWE_ARMOR15

Definition at line 166 of file naribwe_rooms.c.

anonymous enum

enum { INN_ID_NARIBWE }

Naribwe's inn, as mnInnCheckIn numbers the inns.

EnumeratorValueDescription
INN_ID_NARIBWE5

Definition at line 173 of file naribwe_rooms.c.

FORTUNE_READING

enum FORTUNE_READING

The fortune-teller's readings, one numbering for all four kinds: the foe a weapon shows, the power a Psynergy item shows, the path any other item shows and the prong a prong of the Trident shows.

EnumeratorValueDescription
READING_BEFORE_GABOMBAS_MESSAGE0Before Gabomba's message is carried, for a weapon "Many enemies await you, far beyond the mountains.", for any other item "I see you inside a sacred icon."
READING_FOE_IN_MISTY_SEA1"In a misty sea, a mighty foe..."
READING_EAST_CONQUERED2"None in the eastern world can stand..."
READING_SEEK_REVEAL3The first power still lacking: Reveal, Sand, Parch, the Burst Brooch, the Grindstone, or none.
READING_SEEK_SAND4
READING_SEEK_PARCH5
READING_SEEK_BURST_BROOCH6
READING_SEEK_GRINDSTONE7
READING_ALL_POWERS8
READING_FORGE_WEAPON9"You must forge a weapon..."
READING_RAISE_COLUMN10"You will raise a mighty column..."
READING_EASTERN_VILLAGE11"...help from a village on the eastern..."
READING_SEA_BEAST12"You have the weapon you need..."
READING_WEST13"The object that you seek lies...west."
READING_PRONG_BY_BEACH14Where the prongs not yet held lie: the ruins by the beach, the moss-covered ruins, the icy cape's tower, or all held.
READING_PRONG_IN_MOSSY_RUINS15
READING_PRONG_IN_TOWER16
READING_ALL_PRONGS17

Definition at line 556 of file naribwe_rooms.c.

Functions in detail

scNaribweRoomsReadFortune

void scNaribweRoomsReadFortune(void)

The reading: the party sets one of a member's items on the table, the room turns red while the fortune-teller dances, and he reads the item by its type, a prong of the Trident and the Trident itself on their own, then takes his 20 coins.

References fdActorGet(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetItemIcon(), fdActorShowEmote(), fdActorWaitForAnimationChange(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptPlaySound(), fdScriptShowMessage(), gmItemGetDefinition(), gmPartyAdjustCoins(), gmUnitGet(), MainRoutineStateWork, mnItemPickerRunToShow(), mnMessageArgumentPush(), mnMessageShowCentered(), scFieldActorJump(), scFieldPartyGetLeaderActor(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptSetMessageId(), scFieldScriptWait(), scNaribweRoomsReadArmor(), scNaribweRoomsReadOtherItem(), scNaribweRoomsReadProng(), scNaribweRoomsReadShiningItem(), scNaribweRoomsReadWeapon() and Sint32.

Referenced by scNaribweRoomsTalkToFortuneTeller().

Definition at lines 70 and 373 of file naribwe_rooms.c.

scNaribweRoomsReadProng

void scNaribweRoomsReadProng(void)

A prong of the Trident: the power it holds over a foe, and where a prong still missing lies.

References fdScriptShowMessage(), scFieldScriptSetMessageId(), scNaribweRoomsProngToSeek() and Sint32.

Referenced by scNaribweRoomsReadFortune().

Definition at lines 72 and 757 of file naribwe_rooms.c.

scNaribweRoomsReadWeapon

void scNaribweRoomsReadWeapon(void)

A weapon: the foe that lies beyond it.

References fdScriptShowMessage(), scFieldScriptSetMessageId(), scNaribweRoomsFoeAhead() and Sint32.

Referenced by scNaribweRoomsReadFortune().

Definition at lines 74 and 596 of file naribwe_rooms.c.

scNaribweRoomsReadArmor

void scNaribweRoomsReadArmor(void)

Armor, a shield, a helm or boots: where a Djinni still to be found waits, or nothing of the future once none is left.

References fdScriptShowMessage(), scFieldScriptSetMessageId(), scNaribweRoomsGetDjinniHint() and Sint32.

Referenced by scNaribweRoomsReadFortune().

Definition at lines 76 and 680 of file naribwe_rooms.c.

scNaribweRoomsReadOtherItem

void scNaribweRoomsReadOtherItem(void)

Any other item: the path the party should follow.

References fdScriptShowMessage(), scFieldScriptSetMessageId(), scNaribweRoomsNextPath() and Sint32.

Referenced by scNaribweRoomsReadFortune().

Definition at lines 78 and 703 of file naribwe_rooms.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 100 of file naribwe_rooms.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 105 of file naribwe_rooms.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 110 of file naribwe_rooms.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References ActorPlacements.

Definition at line 115 of file naribwe_rooms.c.

scNaribweRoomsMindReadFortuneTeller

Sint32 scNaribweRoomsMindReadFortuneTeller(void)

Felix casts Mind Read on the fortune-teller across his table, in his hut at the top of Naribwe: "The items that one carries are filled with one's hopes and desires..."

References fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.

Referenced by NaribweRoomsCues.

Definition at line 123 of file naribwe_rooms.c.

scNaribweRoomsMindReadFortuneTellerOnReturn

Sint32 scNaribweRoomsMindReadFortuneTellerOnReturn(void)

Felix casts Mind Read on the fortune-teller across his table once Piers has carried Gabomba's message: "Items placed before me are filled with the desires of those who..."

References fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.

Referenced by NaribweRoomsCuesOnReturn.

Definition at line 137 of file naribwe_rooms.c.

scGetCues

const CUE *scGetCues(void)

References fdScriptGetFlag(), NaribweRoomsCues and NaribweRoomsCuesOnReturn.

Definition at line 148 of file naribwe_rooms.c.

scNaribweRoomsTalkToWeaponMerchant

void scNaribweRoomsTalkToWeaponMerchant(Sint32 speaker)

Felix talks to the weapon merchant behind the swords in Naribwe's shop: across the mat, he can buy; from elsewhere the merchant advises taking a weapon to the fortune-teller.

References fdActorGet(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnShopRun(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.

Referenced by NaribweRoomsCues.

Definition at line 181 of file naribwe_rooms.c.

scNaribweRoomsTalkToWeaponMerchantOnReturn

void scNaribweRoomsTalkToWeaponMerchantOnReturn(Sint32 speaker)

Felix talks to the weapon merchant in Naribwe's shop once Piers has carried Gabomba's message: across the mat, he can buy; from elsewhere the merchant sends out-of-town customers to the fortune-teller.

References fdActorGet(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnShopRun(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.

Referenced by NaribweRoomsCuesOnReturn.

Definition at line 203 of file naribwe_rooms.c.

scNaribweRoomsTalkToArmorMerchant

void scNaribweRoomsTalkToArmorMerchant(Sint32 speaker)

Felix talks to the armor merchant behind the helms and shields in Naribwe's shop: across the mat, he can buy; from elsewhere the merchant advises visiting the fortune-teller while in the village.

References fdActorGet(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnShopRun(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.

Referenced by NaribweRoomsCues.

Definition at line 226 of file naribwe_rooms.c.

scNaribweRoomsTalkToArmorMerchantOnReturn

void scNaribweRoomsTalkToArmorMerchantOnReturn(Sint32 speaker)

Felix talks to the armor merchant in Naribwe's shop once Piers has carried Gabomba's message: across the mat, he can buy; from elsewhere the merchant sends the party to the fortune-teller for anything it wishes to know.

References fdActorGet(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnShopRun(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.

Referenced by NaribweRoomsCuesOnReturn.

Definition at line 250 of file naribwe_rooms.c.

scNaribweRoomsTalkToInnkeeper

void scNaribweRoomsTalkToInnkeeper(Sint32 speaker)

Felix talks to the woman behind the counter of Naribwe's inn: across it, he can stay the night; from elsewhere she talks of the village's cooking.

References fdActorGet(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnInnCheckIn(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.

Referenced by NaribweRoomsCues.

Definition at line 272 of file naribwe_rooms.c.

scNaribweRoomsTalkToInnkeeperOnReturn

void scNaribweRoomsTalkToInnkeeperOnReturn(Sint32 speaker)

Felix talks to the innkeeper once Piers has carried Gabomba's message: across the counter, he can stay the night; from elsewhere she sees too many travelers to remember Piers.

References fdActorGet(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnInnCheckIn(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.

Referenced by NaribweRoomsCuesOnReturn.

Definition at line 295 of file naribwe_rooms.c.

scNaribweRoomsTalkToFortuneTeller

void scNaribweRoomsTalkToFortuneTeller(void)

Felix talks to the fortune-teller across his table, in his hut at the top of Naribwe: he offers a reading for 20 coins, and a No to either question ends it.

References fdScriptEnd(), fdScriptOpenMessage(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, scFieldPartyGetLeaderActor(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scNaribweRoomsReadFortune() and Sint32.

Referenced by NaribweRoomsCues and NaribweRoomsCuesOnReturn.

Definition at line 318 of file naribwe_rooms.c.

scNaribweRoomsReadShiningItem

void scNaribweRoomsReadShiningItem(void)

A Psynergy item: a power shining beyond it, and where the next power to gain waits.

References fdScriptShowMessage(), scFieldScriptSetMessageId(), scNaribweRoomsNextPowerToGain() and Sint32.

Referenced by scNaribweRoomsReadFortune().

Definition at lines 360 and 627 of file naribwe_rooms.c.

scNaribweRoomsFoeAhead

Sint32 scNaribweRoomsFoeAhead(void)

Which foe a weapon's reading names: none before Gabomba's message is carried, then the foe in the misty sea, and none once Poseidon is beaten.

References fdScriptGetFlag() and Sint32.

Referenced by scNaribweRoomsReadWeapon().

Definition at lines 589 and 794 of file naribwe_rooms.c.

scNaribweRoomsNextPowerToGain

Sint32 scNaribweRoomsNextPowerToGain(void)

The first power the party still lacks, for a Psynergy item's reading: three Psynergy (Reveal, Sand and Parch) and two items (the Burst Brooch and the Grindstone), or READING_ALL_POWERS once it has them all.

References gmPartyFindOwnerWithAction(), scFieldPartyInventoryFindMember() and Sint32.

Referenced by scNaribweRoomsReadShiningItem().

Definition at lines 590 and 805 of file naribwe_rooms.c.

scNaribweRoomsNextPath

Sint32 scNaribweRoomsNextPath(void)

The path an ordinary item's reading points along, by the story's flags, the Trident's prongs and the Trident.

References fdScriptGetFlag(), scFieldPartyInventoryFindMember() and Sint32.

Referenced by scNaribweRoomsReadOtherItem().

Definition at lines 591 and 822 of file naribwe_rooms.c.

scNaribweRoomsProngToSeek

Sint32 scNaribweRoomsProngToSeek(void)

Where a prong's reading sends the party: to the ruins by the beach while the Right Prong is missing, the moss-covered ruins while the Left Prong is, the icy cape's tower while only the Center Prong is, and on once it holds all three.

References scFieldPartyInventoryFindMember() and Sint32.

Referenced by scNaribweRoomsReadProng().

Definition at lines 592 and 850 of file naribwe_rooms.c.

scNaribweRoomsGetDjinniHint

Uint8 *scNaribweRoomsGetDjinniHint(void)

The message telling where a Djinni still to be found waits, or MsgNaribweRoomsInItemYouHavePlaced when none is left to find.

A Djinni the party has passed by, one before the last of its element it has found, is picked at random; when it has passed none by, the first still to be found of the element it has found the fewest of.

References scNaribweRoomsDjinniHintLimit(), scNaribweRoomsListMissingDjinn(), Sint32, syHeapSlotAllocateEWRAM(), syHeapSlotRelease(), syRandom() and Value2().

Referenced by scNaribweRoomsReadArmor().

Definition at lines 593 and 947 of file naribwe_rooms.c.

scNaribweRoomsDjinniHintLimit

Sint32 scNaribweRoomsDjinniHintLimit(Sint32 group)

One past the last Djinni of an element the party has found, of those this game hides and the fortune-teller hints at, or -1 when it has found none.

References fdScriptGetFlag() and Sint32.

Referenced by scNaribweRoomsGetDjinniHint().

Definition at line 876 of file naribwe_rooms.c.

scNaribweRoomsListMissingDjinn

Sint32 scNaribweRoomsListMissingDjinn(Sint32 limit, Sint32 group, Sint32 *out)

Lists the flags of an element's Djinn still to be found, from the first Djinni not carried over from Isaac's party up to the limit and skipping Echo, Spring and Shade, which the fortune-teller never hints at; returns how many.

References fdScriptGetFlag() and Sint32.

Referenced by scNaribweRoomsGetDjinniHint().

Definition at line 905 of file naribwe_rooms.c.

scInit

Sint32 scInit(void)

Opens the houses through the window transition, and keeps the reading's item, smoke and cloud out of sight until a reading needs them.

References fdActorDisableById(), fdActorGet(), fdActorSetSpriteFlags(), MainRoutineStateWork, scFieldActorSetSpriteColor(), scFieldActorSetSpritePriority() and Sint32.

Definition at line 1118 of file naribwe_rooms.c.

scPrepareMap

Sint32 scPrepareMap(void)

References Sint32.

Definition at line 1166 of file naribwe_rooms.c.

Variables in detail

NaribweRoomsCues

extern CUE NaribweRoomsCues[]

CUE NaribweRoomsCues[]

The ways out, the villagers talked to and read, and the fortune-teller's table, until Gabomba's message is carried.

References scNaribweRoomsMindReadFortuneTeller(), scNaribweRoomsTalkToArmorMerchant(), scNaribweRoomsTalkToFortuneTeller(), scNaribweRoomsTalkToInnkeeper() and scNaribweRoomsTalkToWeaponMerchant().

Referenced by scGetCues().

Definition at lines 67 and 1329 of file naribwe_rooms.c.

NaribweRoomsCuesOnReturn

extern CUE NaribweRoomsCuesOnReturn[]

CUE NaribweRoomsCuesOnReturn[]

The same, once Gabomba's message is carried.

References scNaribweRoomsMindReadFortuneTellerOnReturn(), scNaribweRoomsTalkToArmorMerchantOnReturn(), scNaribweRoomsTalkToFortuneTeller(), scNaribweRoomsTalkToInnkeeperOnReturn() and scNaribweRoomsTalkToWeaponMerchantOnReturn().

Referenced by scGetCues().

Definition at lines 68 and 1415 of file naribwe_rooms.c.

SceneExits

Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 1173 of file naribwe_rooms.c.

ActorPlacements

ACTOR_PLACE ActorPlacements[]

Referenced by scGetActorPlacements().

Definition at line 1206 of file naribwe_rooms.c.