src/scene/daila_rooms.c
Daila's rooms, in two scenes that share this overlay: the houses (DailaRoomsHouses) and the sanctuary (DailaRoomsSanctum). More…
#include "field/script.h"#include "game/game.h"#include "item_ids.h"#include "field/actor_script.h"#include "field/field_engine_script.h"#include "field/field_engine.h"#include "scene/scene.h"#include "scene/ground_effects.h"#include "window/window.h"#include "shop/shop.h"#include "edition.h"#include "text/msg_ids.h"#include "shared/scene_freeze_puddle_into_pillar.c"#include "shared/scene_fade_in_and_clear_flag.c"#include "shared/scene_entrances_default.c"
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_DAILA_SANCTUARY_PUDDLE_FROZEN_FIRST 0x220 | The first of three flags, one for each of the sanctuary's puddles Frost has frozen into a pillar for this visit, by DailaRoomsPillarFrozenFlags. |
#define | FLAG_DAILA_PRACTICE_AT_DOOR 0x200 | Holds which of his two spots the practicing man has jumped to last. |
Enumerations
| Name | Description | |
|---|---|---|
enum | DAILA_ROOMS_METATILE { METATILE_NORTH_OF_PUDDLE, METATILE_WEST_OF_PUDDLE, METATILE_ … } | The metatiles beside each of the sanctuary's puddles once it has drained, named by the side they lie on: walking from one into the puddle hops over it. |
enum | DAILA_ROOMS_ACTOR_ID { ACTOR_RIKIS_FATHER, ACTOR_RIKIS_MOTHER, ACTOR_TAVIS_FATHER, … } | The houses, shops and inn of DailaRoomsHouses, numbering the rows its two placement tables share. |
enum | DAILA_ROOMS_ACTOR_ID_AFTER_RESCUE { ACTOR_RIKI, ACTOR_TAVI, ACTOR_PRACTICING_PERFORMER, ACTOR_WO … } | The rows of DailaRoomsHousesPlacementsOnceTaviIsRescued after those it shares with DailaRoomsHousesPlacements. |
enum | anonymous enum { ANIM_EATING } | Riki's and Tavi's own animation 5: eating at the table at home, their mouths full. |
enum | anonymous enum { ENTRANCE_COW_ISLET_HOUSE } | The way into the house on the islet with the cow (NorthOseniaIslet), which this overlay also holds: the family by entrance 7. |
enum | DAILA_SANCTUARY_ACTOR_ID { ACTOR_HEALER, ACTOR_SEA_GODS_TEAR, ACTOR_FIRST_PUDDLE, ACTOR … } | The sanctuary's actors, numbering the rows of DailaRoomsSanctumPlacements. |
Functions
| Name | Description | |
|---|---|---|
Sint32 | scDailaRoomsGiveItem (Sint32 item, Sint32 mode) | Gives an item to the party, asking what to drop when no one has room for it; returns who took it, or -1. |
void | scFadeInAndClearFlag (void) | Sets the screen to open with the window transition, and the area's name not to show (FLAG_SHOW_AREA_NAME). |
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 void * | 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. |
void | scDailaRoomsNoOperationHook (void) | Unused: does nothing. |
void | scDailaRoomsPracticeShout (Sint32 unused, Sint32 actor) | Unused: the practicing man shouts and jumps to the other of his two spots. |
void | scDailaRoomsStartleAtTheLeader (Sint32 unused, Sint32 actor) | Unused: the practicing man turns to the leader, startled. |
Sint32 | scDailaRoomsReadArmorMerchantsMind (void) | Mind Read on the armor merchant behind the left-hand counter of the shop, before Tavi is rescued: he thinks of the two scamps. |
Sint32 | scDailaRoomsReadArmorMerchantsMindAfterRescue (void) | Mind Read on the armor merchant once Tavi is rescued: he thinks of hidden treasure. |
void | scDailaRoomsStartLeaderScript (void) | Unused: starts a script and draws the leader in front of the counters. |
const CUE * | scGetCues (void) | The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's. |
void | scDailaRoomsTalkToWeaponMerchant (Sint32 actor) | The weapon merchant at the right-hand counter of the shop sells to Felix when he talks to him from in front of it, facing north; from any other side he warns of the roads south. |
void | scDailaRoomsTalkToArmorMerchant (Sint32 actor) | The armor merchant at the left-hand counter of the shop sells to Felix when he talks to him from in front of it, facing north; from any other side he asks what brings the party to Daila. |
void | scDailaRoomsTalkToInnkeeper (Sint32 actor) | The innkeeper offers a room when Felix talks to him across the counter at his east side, facing west; from any other side he wonders what to cook. |
void | scDailaRoomsTalkToHealer (Sint32 actor) | The sanctuary's healer first asks whether the party has a lot of time and nowhere to go, and sends them to Poi at the Kandorean Temple whatever they answer. |
void | scDailaRoomsTalkToHealerOnceTaviIsRescued (Sint32 actor) | Once Tavi is rescued, the sanctuary's healer heals when Felix talks to him from in front of his counter, facing north, and from any other side tells the party there is nothing left for them in Daila. |
void | scDailaRoomsTalkToWeaponMerchantOnceTaviIsRescued (Sint32 actor) | Once Tavi is rescued, the weapon merchant still sells from in front of his counter, and from any other side tells of Daila's pirate past. |
void | scDailaRoomsTalkToArmorMerchantOnceTaviIsRescued (Sint32 actor) | Once Tavi is rescued, the armor merchant still sells from in front of his counter, and from any other side talks of how spacious the village is. |
void | scDailaRoomsTalkToInnkeeperOnceTaviIsRescued (Sint32 actor) | Once Tavi is rescued, the innkeeper still offers a room across the counter at his east side, and from any other side wonders when the fishermen can put to sea again. |
void | scDailaRoomsAskGoingToMadra (void) | Once Tavi is rescued, the old man in the middle house asks whether Felix is going to Madra, and answers yes or no. |
void | scDailaRoomsAskLookingForBoat (void) | Once Tavi is rescued, the mayor in his house asks whether the party is looking for a boat too, and answers yes or no. |
void | scDailaRoomsTalkCaughtPracticing (void) | Once Tavi is rescued, the woman at the inn caught practicing for the dinner show hopes Felix was not watching, then explains. |
void | scDailaRoomsTakeSeaGodsTear (void) | Felix picks up the Sea God's Tear at the foot of the statue behind the healer (metatile (14, 12)): "Felix got the Sea God's Tear." When the party's bags are full he is asked what to drop for it, and if he keeps everything the Tear stays where it was. |
Sint32 | scInit (void) | Sets up the houses (the boys eating once they are home, the armor merchant behind his counter) or the sanctuary (the Tear on the pillars' top until it is taken, the puddles until Tavi is rescued, the frozen pillars after). |
Sint32 | scPrepareMap (void) | Once Tavi is rescued, draws the sanctuary's pool drained down to its three puddles, from the map's spare copy of it. |
void | scDailaRoomsJumpForward (void) | Felix hops over one of the sanctuary's drained puddles when he walks into it from the metatile beside it on any side, landing on the far side if the ground there is clear. |
Variables
| Name | Description | |
|---|---|---|
extern Sint32 | DailaRoomsExitsOnceTaviIsRescued [] | Where the houses' doors lead once Tavi is rescued, out into the drained village. |
extern ACTOR_PLACE | DailaRoomsHousesPlacements [] | DAILA_ROOMS_ACTOR_ID). |
extern ACTOR_PLACE | DailaRoomsSanctumPlacements [] | The sanctuary (DAILA_SANCTUARY_ACTOR_ID). |
extern ACTOR_PLACE | DailaRoomsHousesPlacementsOnceTaviIsRescued [] | The houses, shops and inn once Tavi is rescued, with Riki and Tavi home. |
extern CUE | DailaRoomsSanctumCues [] | The sanctuary's doors, talk and Mind Read before Tavi is rescued. |
extern CUE | DailaRoomsHousesCuesOnceTaviIsRescued [] | The houses' doors, talk and Mind Read once Tavi is rescued. |
extern CUE | DailaRoomsSanctumCuesOnceTaviIsRescued [] | The sanctuary once Tavi is rescued: Frost on the three puddles, the jumps between the pillars and the Tear at their top. |
extern Sint16 | DailaRoomsPillarFrozenFlags [] | The six puddles Frost freezes into pillars, each with the flag set while it stands (fdFlagBlockPlaceAll). |
extern Sint32 | DailaRoomsExits [] | Where the houses' doors lead, before Tavi is rescued, out into the flooded village. |
extern CUE | DailaRoomsHousesCues [] | The houses' doors, talk and Mind Read before Tavi is rescued. |
Sint32 | DailaRoomsPacingScript [] | Tavi's father's script: he paces his house back and forth. |
Sint32 | DailaRoomsLookAroundScript [] | The inn's two performers' script once Tavi is rescued: they turn on the spot, rehearsing the dinner show. |
Description
Daila's rooms, in two scenes that share this overlay: the houses
(DailaRoomsHouses) and the sanctuary (DailaRoomsSanctum).
The houses are six rooms, one behind each door of the village: Riki's home,
Tavi's home, the middle house, the mayor's house, the inn and the weapon and
armor shop. The same scene also holds the house on the islet with the cow,
reached from North Osenia. Once Tavi is rescued (FLAG_TAVI_RESCUED) the
people have other things to say, the two boys are home eating, and a woman at
the inn is caught practicing for the dinner show.
The sanctuary, up the steps at the north of the village, has a healer at his
counter, and behind him the Sea God's statue with the Sea God's Tear at its
foot, beyond a pool of water. Once Tavi is rescued the water has drained to
three puddles (scPrepareMap). Felix can hop over them, and Frost raises each
into a pillar of ice; with the two on the left frozen he can reach the Tear
and take it (scDailaRoomsTakeSeaGodsTear).
Macros in detail
FLAG_DAILA_SANCTUARY_PUDDLE_FROZEN_FIRST
#define FLAG_DAILA_SANCTUARY_PUDDLE_FROZEN_FIRST 0x220
The first of three flags, one for each of the sanctuary's puddles Frost has
frozen into a pillar for this visit, by DailaRoomsPillarFrozenFlags.
Referenced by DailaRoomsPillarFrozenFlags and DailaRoomsSanctumCuesOnceTaviIsRescued.
Definition at line 142 of file daila_rooms.c.
FLAG_DAILA_PRACTICE_AT_DOOR
#define FLAG_DAILA_PRACTICE_AT_DOOR 0x200
Holds which of his two spots the practicing man has jumped to last.
Referenced by scDailaRoomsPracticeShout().
Definition at line 144 of file daila_rooms.c.
Enumerations in detail
DAILA_ROOMS_METATILE
enum DAILA_ROOMS_METATILE
The metatiles beside each of the sanctuary's puddles once it has drained, named by the side they lie on: walking from one into the puddle hops over it.
| Enumerator | Value | Description |
|---|---|---|
METATILE_NORTH_OF_PUDDLE | 30 | |
METATILE_WEST_OF_PUDDLE | ||
METATILE_EAST_OF_PUDDLE | ||
METATILE_SOUTH_OF_PUDDLE | ||
METATILE_SEA_GODS_TEAR | 40 | The foot of the statue where the Sea God's Tear lies, metatile (14, 12). |
Definition at line 33 of file daila_rooms.c.
DAILA_ROOMS_ACTOR_ID
enum DAILA_ROOMS_ACTOR_ID
The houses, shops and inn of DailaRoomsHouses, numbering the rows its two
placement tables share.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_RIKIS_FATHER | ACTOR_FIRST_PLACED | Riki's parents, in his home at |
ACTOR_RIKIS_MOTHER | the west of the village, scolding the boy who took his father's fishing pole. | |
ACTOR_TAVIS_FATHER | Tavi's parents, next door, | |
ACTOR_TAVIS_MOTHER | waiting for him with his three o'clock snack. | |
ACTOR_OLD_MAN_ON_MADRA | An old man in the middle house who sends boat seekers to Madra. | |
ACTOR_OLD_WOMAN_ON_THE_KANDOREAN_TEMPLE | An old woman in the middle house who tells the way to the Kandorean Temple. | |
ACTOR_MAYOR | "In all my years as mayor, I've never seen a wave like that before..." | |
ACTOR_WOMAN_ON_THE_NOISE | An older woman in the mayor's house, shaken by the noise after the wave. | |
ACTOR_MAN_ON_THE_RUMBLING | A man in the mayor's house who heard the rumbling from the southeast. | |
ACTOR_WOMAN_ON_DAILAS_LUCK | A woman in the mayor's house on Daila's bad luck with pirates and waves. | |
ACTOR_WEAPON_MERCHANT | ||
ACTOR_ARMOR_MERCHANT | ||
ACTOR_INNKEEPER | ||
ACTOR_INN_WORKER | The innkeeper's one helper, who later practices for the dinner show. | |
ACTOR_TRAVELER_FROM_MADRA | A guest of the inn, a man carrying a pack, who misses Madra's food. | |
ACTOR_GUEST_ON_MADRAS_SEAFOOD | A guest of the inn who longs for Madra's seafood. | |
ACTOR_WOMAN_ON_THE_CURRENTS | Until Tavi is rescued: the family in the house on the islet with the cow, whose sons try the Sea of Time. | |
ACTOR_OLD_MAN_ON_THE_RED_ROCKS | ||
ACTOR_OLD_WOMAN_ON_HER_SONS | ||
ACTOR_ARMOR_COUNTER | An unseen actor on the armor shop's counter, so that the merchant behind it answers Felix from across it. |
Definition at line 45 of file daila_rooms.c.
DAILA_ROOMS_ACTOR_ID_AFTER_RESCUE
enum DAILA_ROOMS_ACTOR_ID_AFTER_RESCUE
The rows of DailaRoomsHousesPlacementsOnceTaviIsRescued after those it shares
with DailaRoomsHousesPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_RIKI | ACTOR_GUEST_ON_MADRAS_SEAFOOD + 1 | The two boys, back home, |
ACTOR_TAVI | with their mouths full. | |
ACTOR_PRACTICING_PERFORMER | A woman of the inn caught practicing for the dinner show. | |
ACTOR_WOMAN_ON_THE_CURRENTS_AFTER_RESCUE | ||
ACTOR_OLD_MAN_ON_THE_RED_ROCKS_AFTER_RESCUE | ||
ACTOR_OLD_WOMAN_ON_HER_SONS_AFTER_RESCUE | ||
ACTOR_ARMOR_COUNTER_AFTER_RESCUE |
Definition at line 92 of file daila_rooms.c.
anonymous enum
enum { ANIM_EATING }
Riki's and Tavi's own animation 5: eating at the table at home, their mouths full.
| Enumerator | Value | Description |
|---|---|---|
ANIM_EATING | 5 |
Definition at line 107 of file daila_rooms.c.
anonymous enum
enum { ENTRANCE_COW_ISLET_HOUSE }
The way into the house on the islet with the cow (NorthOseniaIslet), which
this overlay also holds: the family by entrance 7.
| Enumerator | Value | Description |
|---|---|---|
ENTRANCE_COW_ISLET_HOUSE | 7 |
Definition at line 114 of file daila_rooms.c.
DAILA_SANCTUARY_ACTOR_ID
enum DAILA_SANCTUARY_ACTOR_ID
The sanctuary's actors, numbering the rows of DailaRoomsSanctumPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_HEALER | ACTOR_FIRST_PLACED | The sanctuary's healer, who sends travelers with nowhere to go to Poi at the Kandorean Temple, and once that is done heals the party. |
ACTOR_SEA_GODS_TEAR | The Sea God's Tear at the statue's foot: an actor with no picture of its own, on which the game draws the item (fdActorSetItemIcon) until it is taken. | |
ACTOR_FIRST_PUDDLE | The three puddles on the drained floor, from west to east, which Frost raises into pillars of ice. | |
ACTOR_SECOND_PUDDLE | ||
ACTOR_THIRD_PUDDLE | ||
ACTOR_TEAR_SPOT | An actor with no picture, put where the Tear lay once it is taken. |
Definition at line 120 of file daila_rooms.c.
Functions in detail
scDailaRoomsGiveItem
Sint32 scDailaRoomsGiveItem(Sint32 item, Sint32 mode)
Sint32 scDailaRoomsGiveItem(Sint32 item, Sint32 unused)
Gives an item to the party, asking what to drop when no one has room for it;
returns who took it, or -1. The overlay's own copy of the field engine's
fdPartyInventoryGiveItem.
References fdYesNoAsk(), gmInventoryCountItem(), gmInventoryDiscard(), gmInventoryGetQuantity(), gmItemGetDefinition(), gmPartyInventoryAdd(), gmUnitCalculate(), gmUnitGet(), gmUnitRefreshPsynergy(), MainRoutineStateWork, mnFieldMessageShow(), mnItemPickerRunToDrop(), mnMessageArgumentPush(), mnMessageCloseFinishedWindows(), result, Sint32 and sySoundPlay().
Referenced by scDailaRoomsTakeSeaGodsTear().
Definition at lines 156 and 644 of file daila_rooms.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 159 of file daila_rooms.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 164 of file daila_rooms.c.
scGetExits
const void *scGetExits(void)
References DailaRoomsExits, DailaRoomsExitsOnceTaviIsRescued and syGameFlagGet().
Definition at line 171 of file daila_rooms.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References DailaRoomsHousesPlacements, DailaRoomsHousesPlacementsOnceTaviIsRescued, DailaRoomsSanctumPlacements, MainRoutineStateWork and syGameFlagGet().
Definition at line 178 of file daila_rooms.c.
scDailaRoomsNoOperationHook
void scDailaRoomsNoOperationHook(void)
Unused: does nothing.
Definition at line 188 of file daila_rooms.c.
scDailaRoomsPracticeShout
void scDailaRoomsPracticeShout(Sint32 unused, Sint32 actor)
Unused: the practicing man shouts and jumps to the other of his two spots.
References fdActorFaceDirectionById(), fdActorJump(), fdActorWalkToAndWait(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), scFieldActorShowEmote(), scFieldScriptWait(), Sint32, syGameFlagClear() and syGameFlagSet().
Definition at line 193 of file daila_rooms.c.
scDailaRoomsStartleAtTheLeader
void scDailaRoomsStartleAtTheLeader(Sint32 unused, Sint32 actor)
Unused: the practicing man turns to the leader, startled.
References fdActorFaceActorById(), fdActorJump(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), scFieldActorShowEmote(), scFieldScriptWait() and Sint32.
Definition at line 221 of file daila_rooms.c.
scDailaRoomsReadArmorMerchantsMind
Sint32 scDailaRoomsReadArmorMerchantsMind(void)
Mind Read on the armor merchant behind the left-hand counter of the shop, before Tavi is rescued: he thinks of the two scamps.
References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart() and Sint32.
Referenced by DailaRoomsHousesCues.
Definition at line 237 of file daila_rooms.c.
scDailaRoomsReadArmorMerchantsMindAfterRescue
Sint32 scDailaRoomsReadArmorMerchantsMindAfterRescue(void)
Mind Read on the armor merchant once Tavi is rescued: he thinks of hidden treasure.
References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart() and Sint32.
Referenced by DailaRoomsHousesCuesOnceTaviIsRescued.
Definition at line 250 of file daila_rooms.c.
scDailaRoomsStartLeaderScript
void scDailaRoomsStartLeaderScript(void)
Unused: starts a script and draws the leader in front of the counters.
References fdActorSetSpritePriority(), fdScriptEndLastingPsynergy(), fdScriptStart() and MainRoutineStateWork.
Definition at line 262 of file daila_rooms.c.
scGetCues
const CUE *scGetCues(void)
References DailaRoomsHousesCues, DailaRoomsHousesCuesOnceTaviIsRescued, DailaRoomsSanctumCues, DailaRoomsSanctumCuesOnceTaviIsRescued, MainRoutineStateWork, Sint32 and syGameFlagGet().
Definition at line 271 of file daila_rooms.c.
scDailaRoomsTalkToWeaponMerchant
void scDailaRoomsTalkToWeaponMerchant(Sint32 actor)
The weapon merchant at the right-hand counter of the shop sells to Felix when he talks to him from in front of it, facing north; from any other side he warns of the roads south.
References fdActorGetById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, mnShopRun() and Sint32.
Referenced by DailaRoomsHousesCues.
Definition at line 291 of file daila_rooms.c.
scDailaRoomsTalkToArmorMerchant
void scDailaRoomsTalkToArmorMerchant(Sint32 actor)
The armor merchant at the left-hand counter of the shop sells to Felix when he talks to him from in front of it, facing north; from any other side he asks what brings the party to Daila.
References fdActorGetById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, mnShopRun() and Sint32.
Referenced by DailaRoomsHousesCues and DailaRoomsHousesCuesOnceTaviIsRescued.
Definition at line 314 of file daila_rooms.c.
scDailaRoomsTalkToInnkeeper
void scDailaRoomsTalkToInnkeeper(Sint32 actor)
The innkeeper offers a room when Felix talks to him across the counter at his east side, facing west; from any other side he wonders what to cook.
References fdActorGetById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, mnInnCheckIn() and Sint32.
Referenced by DailaRoomsHousesCues.
Definition at line 335 of file daila_rooms.c.
scDailaRoomsTalkToHealer
void scDailaRoomsTalkToHealer(Sint32 actor)
The sanctuary's healer first asks whether the party has a lot of time and nowhere to go, and sends them to Poi at the Kandorean Temple whatever they answer. After that he heals when Felix talks to him from in front of his counter, facing north, and from any other side asks again.
References fdActorGetById(), fdMessageShowAtActor(), fdPartyGetLeaderActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, mnSanctumRun(), scFieldScriptWait(), Sint32, syGameFlagGet() and syGameFlagSet().
Referenced by DailaRoomsSanctumCues.
Definition at line 358 of file daila_rooms.c.
scDailaRoomsTalkToHealerOnceTaviIsRescued
void scDailaRoomsTalkToHealerOnceTaviIsRescued(Sint32 actor)
Once Tavi is rescued, the sanctuary's healer heals when Felix talks to him from in front of his counter, facing north, and from any other side tells the party there is nothing left for them in Daila.
References fdActorGetById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, mnSanctumRun() and Sint32.
Referenced by DailaRoomsSanctumCuesOnceTaviIsRescued.
Definition at line 422 of file daila_rooms.c.
scDailaRoomsTalkToWeaponMerchantOnceTaviIsRescued
void scDailaRoomsTalkToWeaponMerchantOnceTaviIsRescued(Sint32 actor)
Once Tavi is rescued, the weapon merchant still sells from in front of his counter, and from any other side tells of Daila's pirate past.
References fdActorGetById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, mnShopRun() and Sint32.
Referenced by DailaRoomsHousesCuesOnceTaviIsRescued.
Definition at line 444 of file daila_rooms.c.
scDailaRoomsTalkToArmorMerchantOnceTaviIsRescued
void scDailaRoomsTalkToArmorMerchantOnceTaviIsRescued(Sint32 actor)
Once Tavi is rescued, the armor merchant still sells from in front of his counter, and from any other side talks of how spacious the village is.
References fdActorGetById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, mnShopRun() and Sint32.
Referenced by DailaRoomsHousesCuesOnceTaviIsRescued.
Definition at line 466 of file daila_rooms.c.
scDailaRoomsTalkToInnkeeperOnceTaviIsRescued
void scDailaRoomsTalkToInnkeeperOnceTaviIsRescued(Sint32 actor)
Once Tavi is rescued, the innkeeper still offers a room across the counter at his east side, and from any other side wonders when the fishermen can put to sea again.
References fdActorGetById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, mnInnCheckIn() and Sint32.
Referenced by DailaRoomsHousesCuesOnceTaviIsRescued.
Definition at line 488 of file daila_rooms.c.
scDailaRoomsAskGoingToMadra
void scDailaRoomsAskGoingToMadra(void)
Once Tavi is rescued, the old man in the middle house asks whether Felix is going to Madra, and answers yes or no.
References fdMessageShowAtActor(), fdPartyGetLeaderActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), scFieldScriptWait() and Sint32.
Referenced by DailaRoomsHousesCuesOnceTaviIsRescued.
Definition at line 510 of file daila_rooms.c.
scDailaRoomsAskLookingForBoat
void scDailaRoomsAskLookingForBoat(void)
Once Tavi is rescued, the mayor in his house asks whether the party is looking for a boat too, and answers yes or no.
References fdMessageShowAtActor(), fdPartyGetLeaderActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), scFieldScriptWait() and Sint32.
Referenced by DailaRoomsHousesCuesOnceTaviIsRescued.
Definition at line 536 of file daila_rooms.c.
scDailaRoomsTalkCaughtPracticing
void scDailaRoomsTalkCaughtPracticing(void)
Once Tavi is rescued, the woman at the inn caught practicing for the dinner show hopes Felix was not watching, then explains.
References fdActorSetAnimationById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), scFieldScriptWait() and Sint32.
Referenced by DailaRoomsHousesCuesOnceTaviIsRescued.
Definition at line 562 of file daila_rooms.c.
scDailaRoomsTakeSeaGodsTear
void scDailaRoomsTakeSeaGodsTear(void)
Felix picks up the Sea God's Tear at the foot of the statue behind the healer (metatile (14, 12)): "Felix got the Sea God's Tear." When the party's bags are full he is asked what to drop for it, and if he keeps everything the Tear stays where it was.
References fdActorGetById(), fdActorSetSpritePriority(), fdActorStartIdle(), fdItemDisplayShowPicture(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), gmPartyInventoryAdd(), gmPartyInventoryFindRoom(), mnFieldMessageShow(), mnMessageArgumentPush(), scDailaRoomsGiveItem(), scFieldScriptWait(), Sint32, syGameFlagSet() and sySoundPlay().
Referenced by DailaRoomsSanctumCuesOnceTaviIsRescued.
Definition at line 583 of file daila_rooms.c.
scInit
Sint32 scInit(void)
Sets up the houses (the boys eating once they are home, the armor merchant behind his counter) or the sanctuary (the Tear on the pillars' top until it is taken, the puddles until Tavi is rescued, the frozen pillars after).
References DailaRoomsPillarFrozenFlags, fdActorGetById(), fdActorSetAnimationById(), fdActorSetItemIcon(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdEffectStartBlankOverlay(), fdFlagBlockPlaceAll(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scFadeInAndClearFlag(), Sint32 and syGameFlagGet().
Definition at line 759 of file daila_rooms.c.
scPrepareMap
Sint32 scPrepareMap(void)
Once Tavi is rescued, draws the sanctuary's pool drained down to its three puddles, from the map's spare copy of it.
References fdMapGridCopyMetatiles(), fdTilesetAnimationPause(), MainRoutineStateWork, Sint32 and syGameFlagGet().
Definition at line 836 of file daila_rooms.c.
scDailaRoomsJumpForward
void scDailaRoomsJumpForward(void)
Felix hops over one of the sanctuary's drained puddles when he walks into it from the metatile beside it on any side, landing on the far side if the ground there is clear.
References fdTryJumpForward().
Referenced by DailaRoomsSanctumCuesOnceTaviIsRescued.
Definition at line 852 of file daila_rooms.c.
Variables in detail
DailaRoomsExitsOnceTaviIsRescued
extern Sint32 DailaRoomsExitsOnceTaviIsRescued[]
Sint32 DailaRoomsExitsOnceTaviIsRescued[]
Where the houses' doors lead once Tavi is rescued, out into the drained village.
References Sint32.
Referenced by scGetExits().
Definition at lines 146 and 987 of file daila_rooms.c.
DailaRoomsHousesPlacements
extern ACTOR_PLACE DailaRoomsHousesPlacements[]
ACTOR_PLACE DailaRoomsHousesPlacements[]
References DailaRoomsPacingScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 147 and 1004 of file daila_rooms.c.
DailaRoomsSanctumPlacements
extern ACTOR_PLACE DailaRoomsSanctumPlacements[]
ACTOR_PLACE DailaRoomsSanctumPlacements[]
The sanctuary (DAILA_SANCTUARY_ACTOR_ID).
Referenced by scGetActorPlacements().
Definition at lines 148 and 1049 of file daila_rooms.c.
DailaRoomsHousesPlacementsOnceTaviIsRescued
extern ACTOR_PLACE DailaRoomsHousesPlacementsOnceTaviIsRescued[]
ACTOR_PLACE DailaRoomsHousesPlacementsOnceTaviIsRescued[]
The houses, shops and inn once Tavi is rescued, with Riki and Tavi home.
References DailaRoomsLookAroundScript, DailaRoomsPacingScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 149 and 1066 of file daila_rooms.c.
DailaRoomsSanctumCues
extern CUE DailaRoomsSanctumCues[]
CUE DailaRoomsSanctumCues[]
The sanctuary's doors, talk and Mind Read before Tavi is rescued.
References scDailaRoomsTalkToHealer().
Referenced by scGetCues().
Definition at lines 150 and 1202 of file daila_rooms.c.
DailaRoomsHousesCuesOnceTaviIsRescued
extern CUE DailaRoomsHousesCuesOnceTaviIsRescued[]
CUE DailaRoomsHousesCuesOnceTaviIsRescued[]
The houses' doors, talk and Mind Read once Tavi is rescued.
References scDailaRoomsAskGoingToMadra(), scDailaRoomsAskLookingForBoat(), scDailaRoomsReadArmorMerchantsMindAfterRescue(), scDailaRoomsTalkCaughtPracticing(), scDailaRoomsTalkToArmorMerchant(), scDailaRoomsTalkToArmorMerchantOnceTaviIsRescued(), scDailaRoomsTalkToInnkeeperOnceTaviIsRescued() and scDailaRoomsTalkToWeaponMerchantOnceTaviIsRescued().
Referenced by scGetCues().
Definition at lines 151 and 1217 of file daila_rooms.c.
DailaRoomsSanctumCuesOnceTaviIsRescued
extern CUE DailaRoomsSanctumCuesOnceTaviIsRescued[]
CUE DailaRoomsSanctumCuesOnceTaviIsRescued[]
The sanctuary once Tavi is rescued: Frost on the three puddles, the jumps between the pillars and the Tear at their top.
References scDailaRoomsJumpForward(), scDailaRoomsTakeSeaGodsTear(), scDailaRoomsTalkToHealerOnceTaviIsRescued() and scFreezePuddleIntoPillar().
Referenced by scGetCues().
Definition at lines 152 and 1318 of file daila_rooms.c.
DailaRoomsPillarFrozenFlags
extern Sint16 DailaRoomsPillarFrozenFlags[]
Sint16 DailaRoomsPillarFrozenFlags[]
Referenced by scFreezePuddleIntoPillar() and scInit().
Definition at lines 154 and 858 of file daila_rooms.c.
DailaRoomsExits
extern Sint32 DailaRoomsExits[]
Sint32 DailaRoomsExits[]
Where the houses' doors lead, before Tavi is rescued, out into the flooded village.
References Sint32.
Referenced by scGetExits().
Definition at lines 169 and 972 of file daila_rooms.c.
DailaRoomsHousesCues
extern CUE DailaRoomsHousesCues[]
CUE DailaRoomsHousesCues[]
The houses' doors, talk and Mind Read before Tavi is rescued.
References scDailaRoomsReadArmorMerchantsMind(), scDailaRoomsTalkToArmorMerchant(), scDailaRoomsTalkToInnkeeper() and scDailaRoomsTalkToWeaponMerchant().
Referenced by scGetCues().
Definition at lines 269 and 1118 of file daila_rooms.c.
DailaRoomsPacingScript
Sint32 DailaRoomsPacingScript[]
Tavi's father's script: he paces his house back and forth.
References Sint32.
Referenced by DailaRoomsHousesPlacements and DailaRoomsHousesPlacementsOnceTaviIsRescued.
Definition at line 866 of file daila_rooms.c.
DailaRoomsLookAroundScript
Sint32 DailaRoomsLookAroundScript[]
The inn's two performers' script once Tavi is rescued: they turn on the spot, rehearsing the dinner show.
References Sint32.
Referenced by DailaRoomsHousesPlacementsOnceTaviIsRescued.
Definition at line 895 of file daila_rooms.c.