src/scene/mikasalla_rooms.c
Mikasalla's houses and, as a second scene, the sanctums of Mikasalla, the Apojii Islands and Yallam. More…
#include "game/game.h"#include "field/field_engine_script.h"#include "field/script_inline.h"#include "scene/scene.h"#include "field/actor_script.h"#include "field/field_engine.h"#include "text/msg_ids.h"#include "shared/scene_fade_in_and_clear_flag.c"#include "shared/scene_entrances_default.c"
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_MIKASALLA_GALAHAD_MET 0xa39 | Set once Galahad has met the party and warned it of Isaac's enemies. |
#define | FLAG_MIKASALLA_TOLD_GALAHAD_OF_ISAAC FLAG_AREA_TEMP(0x40) | Set if the party told Galahad it knows Isaac. |
#define | FLAG_MIKASALLA_GALAHAD_MET_THIS_VISIT FLAG_AREA_TEMP(0x41) | Set as Galahad meets the party, for this visit: he stays in the inn until the party leaves the area. |
Enumerations
| Name | Description | |
|---|---|---|
enum | MIKASALLA_ROOMS_ACTOR_ID { ACTOR_EXPLORERS_SON, ACTOR_EXPLORERS_DAUGHTER_IN_LAW, ACTOR_ … } | Mikasalla's houses and inn (MikasallaRoomsHouses), by the rows of MikasallaRoomsHousesPlacements. |
enum | MIKASALLA_ROOMS_SANCTUM_ACTOR_ID { ACTOR_MIKASALLA_HEALER, ACTOR_APOJII_HEALER, ACTOR_ISLANDER_ … } | The sanctums: Mikasalla's, and those of the Apojii Islands and Yallam, which this scene also holds; by the rows of MikasallaRoomsSanctumPlacements. |
enum | anonymous enum { SHOP_MIKASALLA, INN_ID_MIKASALLA } | Mikasalla's shop and inn, as mnShopRun and mnInnCheckIn number them. |
Functions
| Name | Description | |
|---|---|---|
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 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. |
Sint32 | scMikasallaRoomsReadHealersMind (void) | Felix casts Mind Read on the counter of Mikasalla's Sanctum and reads the healer behind it: "I wonder if there are werewolves beyond those in Garoh..." |
Sint32 | scMikasallaRoomsReadApojiiHealersMind (void) | Felix casts Mind Read on the counter of the Apojii Islands' Sanctum and reads the healer behind it: "Whenever visitors come out, the islanders start to complain..." |
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 | scMikasallaRoomsAskAreYouExplorer (void) | The boy in a blue shirt in the explorer's family's house, behind the village's southwest door, asks Felix: "Hey, mister! |
void | scMikasallaRoomsTalkToGeneralStorekeeper (Sint32 speaker) | Felix talks to the woman behind the counter of Mikasalla's general store: facing her across it, he can shop; from elsewhere she says the shop used to sell only items. |
void | scMikasallaRoomsTalkToInnkeeper (Sint32 speaker) | Felix talks to the woman in a pink apron behind the inn's counter: facing her across it, he can stay the night; from elsewhere she bids the party rest its feet. |
void | scMikasallaRoomsTalkToHealer (Sint32 speaker) | Felix talks to the healer of Mikasalla's Sanctum: across the counter, he can use the Sanctum; from elsewhere the healer asks whether he has been to Garoh. |
void | scMikasallaRoomsTalkToApojiiHealer (Sint32 speaker) | Felix talks to the healer of the Apojii Islands' Sanctum: across the counter, he can use the Sanctum; from elsewhere the healer says the little island must seem boring to him. |
void | scMikasallaRoomsTalkToYallamHealer (Sint32 speaker) | Felix talks to the healer of Yallam's Sanctum: across the counter, he can use the Sanctum; from elsewhere the healer talks of the far-off shores. |
Sint32 | scInit (void) | Opens the rooms around the leader. |
Sint32 | scPrepareMap (void) | Once Briggs is caught the pool has dried up: its colours take the dry ground's. |
void | scMikasallaRoomsMeetGalahad (void) | Galahad introduces himself, asks whether the party knows Isaac, and warns that the three gladiators Isaac beat are seeking revenge. |
void | scMikasallaRoomsTalkToGalahad (void) | Felix talks to Galahad, the warrior in a golden helmet in Mikasalla's inn in a linked game: the first time, he introduces himself; after that, he thinks Isaac is in the Eastern Sea if the party said it knows him, and otherwise says Isaac's enemies are gathering. |
void | scMikasallaRoomsMindReadGalahad (void) | Felix casts Mind Read on Galahad in Mikasalla's inn: before they have met, Galahad introduces himself; after, he fears for Isaac. |
Variables
| Name | Description | |
|---|---|---|
extern ACTOR_PLACE | MikasallaRoomsHousesPlacements [] | Mikasalla's houses and inn (MIKASALLA_ROOMS_ACTOR_ID). |
extern ACTOR_PLACE | MikasallaRoomsSanctumPlacements [] | The three sanctums (MIKASALLA_ROOMS_SANCTUM_ACTOR_ID). |
extern CUE | MikasallaRoomsHousesCues [] | The houses' and inn's talk and Mind Read, Galahad, and what is cooking. |
extern CUE | MikasallaRoomsSanctumCues [] | The three sanctums' healers, the islanders and the counters' Mind Read. |
extern Sint32 | MikasallaRoomsDaughterInLawPaces [] | The explorer's son's wife paces her house, stopping to look east. |
extern Sint32 | MikasallaRoomsWorriedWifePaces [] | The worried wife paces her house, stopping to look east. |
Uint32 | SceneExits [] | The room has no exits of its own. |
Description
Mikasalla's houses and, as a second scene, the sanctums of Mikasalla, the Apojii Islands and Yallam.
Behind the village's doors are the inn (the northeast door), where Galahad waits in a linked game, the general store (northwest), the house of an old man who keeps trying to climb Air's Rock (east) and the house of the family of the explorer who founded the village (southwest). The same scene holds the old couple's house on the East Tundaria Islet.
Macros in detail
FLAG_MIKASALLA_GALAHAD_MET
#define FLAG_MIKASALLA_GALAHAD_MET 0xa39
Set once Galahad has met the party and warned it of Isaac's enemies.
Referenced by scInit(), scMikasallaRoomsMeetGalahad(), scMikasallaRoomsMindReadGalahad() and scMikasallaRoomsTalkToGalahad().
Definition at line 19 of file mikasalla_rooms.c.
FLAG_MIKASALLA_TOLD_GALAHAD_OF_ISAAC
#define FLAG_MIKASALLA_TOLD_GALAHAD_OF_ISAAC FLAG_AREA_TEMP(0x40)
Set if the party told Galahad it knows Isaac.
Referenced by scMikasallaRoomsMeetGalahad() and scMikasallaRoomsTalkToGalahad().
Definition at line 21 of file mikasalla_rooms.c.
FLAG_MIKASALLA_GALAHAD_MET_THIS_VISIT
#define FLAG_MIKASALLA_GALAHAD_MET_THIS_VISIT FLAG_AREA_TEMP(0x41)
Set as Galahad meets the party, for this visit: he stays in the inn until the party leaves the area.
Referenced by scInit() and scMikasallaRoomsMeetGalahad().
Definition at line 24 of file mikasalla_rooms.c.
Enumerations in detail
MIKASALLA_ROOMS_ACTOR_ID
enum MIKASALLA_ROOMS_ACTOR_ID
Mikasalla's houses and inn (MikasallaRoomsHouses), by the rows of
MikasallaRoomsHousesPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_EXPLORERS_SON | ACTOR_FIRST_PLACED | The family of the explorer who founded the village: his son, the son's wife, and the grandson who asks whether the leader is an explorer too. |
ACTOR_EXPLORERS_DAUGHTER_IN_LAW | ||
ACTOR_EXPLORERS_GRANDSON | ||
ACTOR_OLD_MAN_ON_AIRS_ROCK | An old man who keeps trying to climb | |
ACTOR_WORRIED_WIFE | Air's Rock, and his wife, worried that he will be hurt. | |
ACTOR_GENERAL_STOREKEEPER | The keeper of the general store: "We only have a small shop here." | |
ACTOR_MAN_ON_THE_ROAD_TO_GAROH | A man at the inn: "There aren't any towns between here and Garoh." | |
ACTOR_INNKEEPER | A woman in a pink apron behind the inn's counter. | |
ACTOR_OLD_MAN_ON_TUNDARIA | An old couple by the fire, who talk of | |
ACTOR_OLD_WOMAN_BY_THE_FIRE | Tundaria. | |
ACTOR_GALAHAD | Galahad, in the inn in a linked game. |
Definition at line 28 of file mikasalla_rooms.c.
MIKASALLA_ROOMS_SANCTUM_ACTOR_ID
enum MIKASALLA_ROOMS_SANCTUM_ACTOR_ID
The sanctums: Mikasalla's, and those of the Apojii Islands and Yallam, which
this scene also holds; by the rows of MikasallaRoomsSanctumPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_MIKASALLA_HEALER | ACTOR_FIRST_PLACED | The healers of Mikasalla's |
ACTOR_APOJII_HEALER | and the Apojii Islands' sanctums. | |
ACTOR_ISLANDER_SICK_OF_PARADISE | Two Apojii islanders tired | |
ACTOR_ISLANDER_LONGING_FOR_LAND | of their island paradise. | |
ACTOR_YALLAM_HEALER | The healer of Yallam's sanctum. | |
ACTOR_MIKASALLA_COUNTER | Blank actors on the counters | |
ACTOR_APOJII_COUNTER | of Mikasalla's and the Apojii sanctums, so the healers answer from across them. |
Definition at line 53 of file mikasalla_rooms.c.
anonymous enum
enum { SHOP_MIKASALLA, INN_ID_MIKASALLA }
Mikasalla's shop and inn, as mnShopRun and mnInnCheckIn number them.
| Enumerator | Value | Description |
|---|---|---|
SHOP_MIKASALLA | 13 | |
INN_ID_MIKASALLA | 4 |
Definition at line 73 of file mikasalla_rooms.c.
Functions in detail
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 89 of file mikasalla_rooms.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 94 of file mikasalla_rooms.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 99 of file mikasalla_rooms.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References MainRoutineStateWork, MikasallaRoomsHousesPlacements and MikasallaRoomsSanctumPlacements.
Definition at line 104 of file mikasalla_rooms.c.
scMikasallaRoomsReadHealersMind
Sint32 scMikasallaRoomsReadHealersMind(void)
Felix casts Mind Read on the counter of Mikasalla's Sanctum and reads the healer behind it: "I wonder if there are werewolves beyond those in Garoh..."
References fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.
Referenced by MikasallaRoomsSanctumCues.
Definition at line 113 of file mikasalla_rooms.c.
scMikasallaRoomsReadApojiiHealersMind
Sint32 scMikasallaRoomsReadApojiiHealersMind(void)
Felix casts Mind Read on the counter of the Apojii Islands' Sanctum and reads the healer behind it: "Whenever visitors come out, the islanders start to complain..."
References fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.
Referenced by MikasallaRoomsSanctumCues.
Definition at line 127 of file mikasalla_rooms.c.
scGetCues
const CUE *scGetCues(void)
References MainRoutineStateWork, MikasallaRoomsHousesCues and MikasallaRoomsSanctumCues.
Definition at line 139 of file mikasalla_rooms.c.
scMikasallaRoomsAskAreYouExplorer
void scMikasallaRoomsAskAreYouExplorer(void)
The boy in a blue shirt in the explorer's family's house, behind the village's southwest door, asks Felix: "Hey, mister! Are you an explorer?" Yes, and he wants to be one too someday; no, and he says his grandpa travelled the whole world.
References fdScriptEnd(), fdScriptOpenMessage(), fdScriptShowMessage(), fdScriptStart(), scFieldPartyGetLeaderActor(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptWait() and Sint32.
Referenced by MikasallaRoomsHousesCues.
Definition at line 150 of file mikasalla_rooms.c.
scMikasallaRoomsTalkToGeneralStorekeeper
void scMikasallaRoomsTalkToGeneralStorekeeper(Sint32 speaker)
Felix talks to the woman behind the counter of Mikasalla's general store: facing her across it, he can shop; from elsewhere she says the shop used to sell only items.
References fdActorGet(), fdScriptShowMessage(), MainRoutineStateWork, mnShopRun(), scFieldScriptSetMessageId() and Sint32.
Referenced by MikasallaRoomsHousesCues.
Definition at line 177 of file mikasalla_rooms.c.
scMikasallaRoomsTalkToInnkeeper
void scMikasallaRoomsTalkToInnkeeper(Sint32 speaker)
Felix talks to the woman in a pink apron behind the inn's counter: facing her across it, he can stay the night; from elsewhere she bids the party rest its feet.
References fdActorGet(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnInnCheckIn(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.
Referenced by MikasallaRoomsHousesCues.
Definition at line 199 of file mikasalla_rooms.c.
scMikasallaRoomsTalkToHealer
void scMikasallaRoomsTalkToHealer(Sint32 speaker)
Felix talks to the healer of Mikasalla's Sanctum: across the counter, he can use the Sanctum; from elsewhere the healer asks whether he has been to Garoh.
References fdActorGet(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnSanctumRun(), scFieldPartyGetLeaderActor(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptWait() and Sint32.
Referenced by MikasallaRoomsSanctumCues.
Definition at line 223 of file mikasalla_rooms.c.
scMikasallaRoomsTalkToApojiiHealer
void scMikasallaRoomsTalkToApojiiHealer(Sint32 speaker)
Felix talks to the healer of the Apojii Islands' Sanctum: across the counter, he can use the Sanctum; from elsewhere the healer says the little island must seem boring to him.
References fdActorGet(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnSanctumRun(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.
Referenced by MikasallaRoomsSanctumCues.
Definition at line 262 of file mikasalla_rooms.c.
scMikasallaRoomsTalkToYallamHealer
void scMikasallaRoomsTalkToYallamHealer(Sint32 speaker)
Felix talks to the healer of Yallam's Sanctum: across the counter, he can use the Sanctum; from elsewhere the healer talks of the far-off shores.
References fdActorGet(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnSanctumRun(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId() and Sint32.
Referenced by MikasallaRoomsSanctumCues.
Definition at line 286 of file mikasalla_rooms.c.
scInit
Sint32 scInit(void)
Opens the rooms around the leader. In the houses, Galahad stands in the inn in a game linked to one where Isaac won at Colosso, from his meeting with the party until it leaves the area, and before the party is reunited. In the sanctums, the healers of Mikasalla and the Apojii Islands answer from across their counters, and the Apojii and Yallam sanctums, which this scene holds, show no area name.
References fdActorGet(), fdScriptClearFlag(), fdScriptGetFlag(), MainRoutineStateWork, scFadeInAndClearFlag(), scFieldActorSetSpriteColor(), scFieldActorSetSpritePriority() and Sint32.
Definition at line 314 of file mikasalla_rooms.c.
scPrepareMap
Sint32 scPrepareMap(void)
References Sint32.
Definition at line 359 of file mikasalla_rooms.c.
scMikasallaRoomsMeetGalahad
void scMikasallaRoomsMeetGalahad(void)
Galahad introduces himself, asks whether the party knows Isaac, and warns that the three gladiators Isaac beat are seeking revenge.
References fdActorFaceActor(), fdActorSetAnimation(), fdActorShowEmote(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptWait() and Sint32.
Referenced by scMikasallaRoomsMindReadGalahad() and scMikasallaRoomsTalkToGalahad().
Definition at lines 368 and 413 of file mikasalla_rooms.c.
scMikasallaRoomsTalkToGalahad
void scMikasallaRoomsTalkToGalahad(void)
Felix talks to Galahad, the warrior in a golden helmet in Mikasalla's inn in a linked game: the first time, he introduces himself; after that, he thinks Isaac is in the Eastern Sea if the party said it knows him, and otherwise says Isaac's enemies are gathering.
References fdScriptGetFlag(), fdScriptShowMessage(), scFieldScriptSetMessageId(), scMikasallaRoomsMeetGalahad() and Sint32.
Referenced by MikasallaRoomsHousesCues.
Definition at line 374 of file mikasalla_rooms.c.
scMikasallaRoomsMindReadGalahad
void scMikasallaRoomsMindReadGalahad(void)
Felix casts Mind Read on Galahad in Mikasalla's inn: before they have met, Galahad introduces himself; after, he fears for Isaac.
References fdScriptGetFlag(), fdScriptShowMessage(), scFieldScriptSetMessageId(), scMikasallaRoomsMeetGalahad() and Sint32.
Referenced by MikasallaRoomsHousesCues.
Definition at line 395 of file mikasalla_rooms.c.
Variables in detail
MikasallaRoomsHousesPlacements
extern ACTOR_PLACE MikasallaRoomsHousesPlacements[]
ACTOR_PLACE MikasallaRoomsHousesPlacements[]
Mikasalla's houses and inn (MIKASALLA_ROOMS_ACTOR_ID).
References MikasallaRoomsDaughterInLawPaces and MikasallaRoomsWorriedWifePaces.
Referenced by scGetActorPlacements().
Definition at lines 79 and 533 of file mikasalla_rooms.c.
MikasallaRoomsSanctumPlacements
extern ACTOR_PLACE MikasallaRoomsSanctumPlacements[]
ACTOR_PLACE MikasallaRoomsSanctumPlacements[]
The three sanctums (MIKASALLA_ROOMS_SANCTUM_ACTOR_ID).
Referenced by scGetActorPlacements().
Definition at lines 80 and 560 of file mikasalla_rooms.c.
MikasallaRoomsHousesCues
extern CUE MikasallaRoomsHousesCues[]
CUE MikasallaRoomsHousesCues[]
The houses' and inn's talk and Mind Read, Galahad, and what is cooking.
References scMikasallaRoomsAskAreYouExplorer(), scMikasallaRoomsMindReadGalahad(), scMikasallaRoomsTalkToGalahad(), scMikasallaRoomsTalkToGeneralStorekeeper() and scMikasallaRoomsTalkToInnkeeper().
Referenced by scGetCues().
Definition at lines 81 and 581 of file mikasalla_rooms.c.
MikasallaRoomsSanctumCues
extern CUE MikasallaRoomsSanctumCues[]
CUE MikasallaRoomsSanctumCues[]
The three sanctums' healers, the islanders and the counters' Mind Read.
References scMikasallaRoomsReadApojiiHealersMind(), scMikasallaRoomsReadHealersMind(), scMikasallaRoomsTalkToApojiiHealer(), scMikasallaRoomsTalkToHealer() and scMikasallaRoomsTalkToYallamHealer().
Referenced by scGetCues().
Definition at lines 82 and 647 of file mikasalla_rooms.c.
MikasallaRoomsDaughterInLawPaces
extern Sint32 MikasallaRoomsDaughterInLawPaces[]
Sint32 MikasallaRoomsDaughterInLawPaces[]
The explorer's son's wife paces her house, stopping to look east.
References Sint32.
Referenced by MikasallaRoomsHousesPlacements.
Definition at lines 86 and 454 of file mikasalla_rooms.c.
MikasallaRoomsWorriedWifePaces
extern Sint32 MikasallaRoomsWorriedWifePaces[]
Sint32 MikasallaRoomsWorriedWifePaces[]
The worried wife paces her house, stopping to look east.
References Sint32.
Referenced by MikasallaRoomsHousesPlacements.
Definition at lines 87 and 478 of file mikasalla_rooms.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 503 of file mikasalla_rooms.c.