src/scene/babi_palace.c
Babi's Palace in Tolbi, and the court before its door. More…
#include "ability_ids.h"#include "flags.h"#include "item_ids.h"#include "debug/debug.h"#include "field/actor_script.h"#include "field/script_inline.h"#include "graphics/display_transition.h"#include "graphics/graphics.h"#include "scene/walk_into_leader.h"#include "sound/sound_driver_symbols.h"#include "text/msg_ids.h"
Macros
| Name | Description | |
|---|---|---|
#define | WAKE_WININ | The waking's window round the leader (WINDOW_TRANSITION_LEADER): inside it every layer shows without the colour effect; outside it at first only BG0, then every layer once it is WAKE_WINDOW_OPEN. |
#define | WAKE_WINDOW_OPEN 31 |
Enumerations
| Name | Description | |
|---|---|---|
enum | BABI_PALACE_ACTOR_ID { ACTOR_ASKING_ABOUT_BABIS_SOLDIERS, ACTOR_BED_ATTENDANT, ACTO … } | The palace's actors are placed by one of three tables, as the story goes on. |
enum | BABI_PALACE_FINALS_ACTOR_ID { ACTOR_FINALS_HURRYING_WARRIORS_ALONG, ACTOR_FINALS_ATTENDANT … } | During the finals, ACTOR_ASKING_ABOUT_BABIS_SOLDIERS keeps its number, and the others stand under new ones. |
enum | BABI_PALACE_AFTER_COLOSSO_ACTOR_ID { ACTOR_RELIEVED_SOLDIER, ACTOR_ASKING_ABOUT_THE_EASTERN_SHORE … } | After Colosso there are Babi and the Cloak Ball he keeps on show. |
enum | anonymous enum { ACTOR_FIRST_GUARD, ACTOR_SECOND_GUARD } | The two guards outside the palace (BabiPalaceEntrance). |
enum | anonymous enum { FLAG_BABI_PALACE_ATTENDANT_SHOWED_BEDS } | The attendant has led the party to the beds. |
enum | BABI_PALACE_DOOR_ANIMATION { BABI_PALACE_MEETING_ROOM_DOOR_ANIMATION, BABI_PALACE_OTHER_D … } | The palace map's tileset animations that open its doors, for fdTilesetAnimationResume (play) and fdTilesetAnimationPause (pause). |
enum | BABI_PALACE_BED_ANIMATION { ANIM_IN_BED_LYING, ANIM_IN_BED_SITTING_UP, ANIM_IN_BED_NOD, … } | The leader's animations in the big bedroom's bed, after the four shared ones (ACTOR_ANIMATION). |
enum | BABI_PALACE_METATILE_BEHAVIOR { METATILE_BEHAVIOR_BABI_PALACE_PASSAGE_TO_CARPET, METATILE_BE … } | Metatile behaviors the cues answer besides the exits, whose metatile behaviors are their exits' numbers. |
Functions
| Name | Description | |
|---|---|---|
static inline void | scBabiPalacePauseDoorAnimations (void) | Pauses the tileset animations of the palace's doors as the leader leaves. |
static inline void | scBabiPalaceRestorePartyAndInventory (void) | After a night in the palace's beds, the party's HP and PP are full, Garet, Ivan and Mia rejoin, and the inventory Colosso held is returned. |
const SCENE_ENTRANCE * | scGetEntrances (void) | The six rooms share one entrance table. |
const SCENE_EXIT_REGION * | scGetExitRegions (void) | The palace has no exit regions, so the table is empty. |
const Uint32 * | scGetExits (void) | Both scenes share one exit table. |
const ACTOR_PLACE * | scGetActorPlacements (void) | Returns the actor placements for the scene and the story, which is before Babi's rescue, during the finals or after Colosso. |
static inline void | scBabiPalaceShowQuestionAnswer (Sint32 actorId, Sint32 question) | Asks a yes or no question. |
static void | scBabiPalaceAskAboutSoldiers (Sint32 actorId) | While Babi is missing, the old man with a cane in the entrance hall asks "Did you run into any of Babi's soldiers in Town?"; No gets him grumbling that he told them to search every nook and cranny. |
static void | scBabiPalaceShowBeds (Sint32 actorId) | While Babi is missing, the attendant in the big bedroom, the woman with fair hair by its west wall, says there are just enough beds for everybody and walks over to them. |
static void | scBabiPalaceOfferRest (Sint32 actorId) | During the finals, the attendant in the big bedroom asks whether the party came to rest before its match, and the beds are open to it again. |
static void | scBabiPalaceAskAboutColosso (Sint32 actorId) | While Babi is missing, the warrior in a golden helmet by the table at the north of the big bedroom asks "Are you planning to enter Colosso?". |
static void | scBabiPalaceTalkToWarriorWithIndigestion (Sint32 actorId) | While Babi is missing, the warrior in a golden helmet by the big bedroom's east wall tries to shrug off his indigestion to enter Colosso, and gives up: "It's no use! |
static void | scBabiPalaceReadShebasMind (Sint32 casterId, Sint32 actorId) | Mind Read on Sheba in her room, while Babi is missing, reads that even if she escaped the palace her power could not get her home to Lalivero. |
static void | scBabiPalaceAskAboutMeetingBabi (Sint32 actorId) | After Colosso, the old man with a cane in the entrance hall asks whether the party has met with Babi. |
static void | scBabiPalaceAskAboutEasternShores (Sint32 actorId) | After Colosso, the young man with brown hair in the room west of the soldiers' room asks "So, you're all from the eastern shores of the Karagol Sea, huh?". |
static void | scBabiPalaceOfferCloakBall (void) | After Colosso, picking up the Cloak Ball on show beside Babi's bed: "You found the Cloak Ball." From his bed Babi asks whether Isaac desires it, and on a Yes lends it for the quest. |
static void | scBabiPalaceWakeFromFinalsDream (void) | Losing the first or second match of the finals, Isaac wakes in a bed of the big bedroom: he only dreamt of fighting in them. |
static void | scBabiPalaceRestInPalaceBeds (void) | Searching one of the four beds in the big bedroom, once the attendant has offered them, asks "Would you like to sleep now?". |
static void | scBabiPalaceHearSoldiersReport (void) | While Babi is missing, walking north up the passage towards the red carpet, metatile (32, 26) or (33, 26), Isaac stops short of the carpet as Iodem walks in from the west hall and two soldiers hurry up to him, back from Altmiller Cave: Babi has been gone since last night, and he has slipped into that cave before. |
static void | scBabiPalaceWakeAfterFinals (void) | After the last match of the finals, Isaac wakes in a bed of the big bedroom, having slept long after fighting to the end, and the others tell him Babi wants to see the party. |
static void | scBabiPalaceMeetBabiAfterColosso (void) | After Colosso, the first time the party goes through the throne room's door north of the red carpet, Babi and Iodem are waiting. |
static void | scBabiPalaceLeaveThroughDoor (void) | Walking north into one of the palace's wooden doors opens it with the sound of a door, and Isaac walks through. |
static void | scBabiPalaceLeaveThroughAnimatedDoor (void) | Walking north into the palace's door between the two guards, metatile (12, 15), opens it and Isaac goes in. |
static void | scBabiPalacePassOnBabisWord (void) | During the finals, talking to either guard at the palace door the first time brings Isaac before them: "You're Isaac, aren't you?" Either answer ends with Babi's word that he waits for the party at the colosseum, though No first has the guards confer and decide it was him all the same. |
static void | scBabiPalaceThankForSavingBabi (void) | During the finals, the guard on the west side of the palace door thanks Isaac once for saving Babi, then reminds him that Babi waits at the colosseum. |
static void | scBabiPalaceAskAboutRemainingWarriors (Sint32 actorId) | After Colosso, the guard on the west side of the palace door says all the warriors who stayed in the palace have left, and asks whether the party is going too. |
static void | scBabiPalaceExamineWell (void) | Searching the well in the court, south-west of the palace door at metatile (6, 19): "It's filled with fresh, clean water." |
const CUE * | scGetCues (void) | Returns the cues for the scene and the story, as for the actor placements. |
Sint32 | scInit (void) | Sets up the scene being entered. |
Variables
| Name | Description | |
|---|---|---|
extern Uint16 | BabiPalaceDoorMetatiles [] | The palace door between the two guards opening, a column of three metatiles at a time. |
extern Sint32 | BabiPalaceIndigestionScript [] | |
extern SCENE_ENTRANCE | BabiPalaceEntrances [] | |
extern SCENE_ENTRANCE | BabiPalaceOutsideEntrances [] | |
extern SCENE_EXIT_REGION | BabiPalaceRegions [] | |
extern Uint32 | BabiPalaceExits [] | |
extern ACTOR_PLACE | BabiPalaceOutsideActorPlacements [] | |
extern ACTOR_PLACE | BabiPalaceActorPlacementsBabiMissing [] | |
extern ACTOR_PLACE | BabiPalaceActorPlacementsFinals [] | |
extern ACTOR_PLACE | BabiPalaceActorPlacementsAfterColosso [] | |
extern CUE | BabiPalaceCuesBabiMissing [] | |
extern CUE | BabiPalaceCuesFinals [] | |
extern CUE | BabiPalaceCuesAfterColosso [] | |
extern CUE | BabiPalaceOutsideCuesBabiMissing [] | |
extern CUE | BabiPalaceOutsideCuesFinals [] | |
extern CUE | BabiPalaceOutsideCuesAfterColosso [] |
Description
Babi's Palace in Tolbi, and the court before its door. From the town, the party crosses the court, past two guards and a well, to the palace's double door. Inside, the entrance hall has Babi's statue at its north end and stairs up on either side to the two doors of the big bedroom, where guests and Colosso's warriors sleep in four beds. From the hall a passage runs north between two doors, the soldiers' room's and the room west of it, to a crossroads with a red carpet. Its halls lead west and east to the stairs down to Babi's scholars, to the tunnel into the colosseum's stands and to the landing outside the room where Sheba is kept, and north to Babi's throne room, with Babi's own bedroom beyond.
While Babi is missing, the attendant in the big bedroom offers the party the beds, and walking up the passage to the red carpet the party overhears Iodem and two soldiers back from Altmiller Cave, where Babi has slipped away before. Sheba, held hostage so that Lalivero builds Babi's lighthouse, wonders when she will see her homeland, and notices the first Mind Read on her.
Once the party has saved Babi in Altmiller Cave the finals of Colosso are set: a guard outside passes on Babi's word that he waits at the colosseum, and the attendant offers the beds again. A match lost in the finals, or the last one fought, brings the party back to wake in the big bedroom. After Colosso, Babi and Iodem wait in the throne room: Babi gives the Lure Cap to the winner, tells of Lemuria and its draught, asks the party to sail there for him once Venus Lighthouse is dealt with, and sends Iodem to meet them at Gondowan Passage. In Babi's bedroom afterwards the Cloak Ball on show is his to lend.
The code: the court (SceneIdBabiPalaceEntrance) and the palace's rooms on one
map (SceneIdBabiPalace) share this overlay and one exit table, and each
chooses one of three actor and cue tables by FLAG_BABI_SAVED and
FLAG_COLOSSO_OVER. The exits name the rooms by what each shows: the statue
room is the entrance hall, the carpet room the crossroads, the meeting room
the throne room, the oven room the room west of the soldiers' room, with its
stove, and the round rooms the small eight-sided rooms up the stairs.
Macros in detail
WAKE_WININ
#define WAKE_WININ
The waking's window round the leader (WINDOW_TRANSITION_LEADER): inside it
every layer shows without the colour effect; outside it at first only BG0,
then every layer once it is WAKE_WINDOW_OPEN.
Referenced by scBabiPalaceWakeAfterFinals().
Definition at line 1304 of file babi_palace.c.
WAKE_WINDOW_OPEN
#define WAKE_WINDOW_OPEN 31
Referenced by scBabiPalaceWakeAfterFinals().
Definition at line 1306 of file babi_palace.c.
Enumerations in detail
BABI_PALACE_ACTOR_ID
enum BABI_PALACE_ACTOR_ID
The palace's actors are placed by one of three tables, as the story goes on.
The three are before Babi is rescued (BabiPalaceActorPlacementsBabiMissing),
during the finals (BabiPalaceActorPlacementsFinals) and after Colosso
(BabiPalaceActorPlacementsAfterColosso).
Each numbers its rows from ACTOR_FIRST_PLACED, with Garet, Ivan, Mia and
Sheba in their own party slots. Most of the people stand in all three under
other numbers.
The palace's residents, three old men with canes and a young man with brown hair, stand in all three. One sent Babi's soldiers to search the town, and another tells warriors who are not entering Colosso that they may not stay. The game names none of them.
Before the rescue there are the attendant who shows the party its beds, Iodem and the two soldiers he sent to Altmiller Cave. Sheba is held here until Colosso is over.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_ASKING_ABOUT_BABIS_SOLDIERS | ACTOR_FIRST_PLACED | An old man with a cane, in the same room and at the same number in every table. He is the one who sent Babi's soldiers to search the town. He asks "Did you run into any of Babi's soldiers in Town?", and if not, says "Hmph! I told them to search every nook and cranny of this town..." |
ACTOR_BED_ATTENDANT | The attendant, a woman with fair hair, whose number is the same after Colosso: "No one's going to sleep in this big bedroom until the next Colosso!" | |
ACTOR_INJURED_WARRIOR | A warrior in a golden helmet. "So, did you guys get injured, too?" Thoughts: "I hurt my back during my training, and now I can't move at all." | |
ACTOR_WARRIOR_WITH_INDIGESTION | A warrior in a golden helmet. "I can't fight because of a little indigestion? That's pathetic!" | |
ACTOR_HURRYING_WARRIORS_ALONG | A young man with brown hair in a purple shirt. "If you're entering Colosso, hurry along to the colosseum." Thoughts: "Warriors are not allowed to stay in the palace if they don't enter Colosso!" | |
ACTOR_FIRST_PALACE_SOLDIER | Four of Babi's soldiers, in one room. The first says "Only warriors who fight well in Colosso's finals can become soldiers here." | |
ACTOR_BY_BABIS_BED | ACTOR_FIRST_PALACE_SOLDIER + 4 | An old man with a cane beside Babi's bed. "It looks like Lord Babi didn't use his bed this morning." |
ACTOR_SORRY_FOR_SHEBA | An old man with a cane. "Sheba has been staying as Lord Babi's guest for some time." Thoughts: "It is heartbreaking to see her tears and hear her pleas to be released." | |
ACTOR_OLD_WOMAN_IN_SHEBAS_ROOM | In Sheba's room, in SPRITE_OLD_WOMAN, as in vale_plaza.c. Thoughts: "Sheba is not permitted to leave this room." | |
ACTOR_IODEM | ||
ACTOR_FIRST_SOLDIER | ||
ACTOR_SECOND_SOLDIER |
Definition at line 84 of file babi_palace.c.
BABI_PALACE_FINALS_ACTOR_ID
enum BABI_PALACE_FINALS_ACTOR_ID
During the finals, ACTOR_ASKING_ABOUT_BABIS_SOLDIERS keeps its number, and
the others stand under new ones.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FINALS_HURRYING_WARRIORS_ALONG | ACTOR_FIRST_PLACED + 1 | The same resident as ACTOR_HURRYING_WARRIORS_ALONG: "What are you doing? Hurry over to the colosseum!" |
ACTOR_FINALS_ATTENDANT | The same attendant, a number later. | |
ACTOR_FINALS_BY_BABIS_BED | The same resident as ACTOR_BY_BABIS_BED: "Babi has returned and the finals are set to begin!" | |
ACTOR_FINALS_SORRY_FOR_SHEBA | The same resident as ACTOR_SORRY_FOR_SHEBA: "What's going on? Sheba is looking much happier." | |
ACTOR_FINALS_OLD_WOMAN_IN_SHEBAS_ROOM | The same woman as ACTOR_OLD_WOMAN_IN_SHEBAS_ROOM: "The soldiers came to see Sheba. She's been in a great mood ever since." |
Definition at line 167 of file babi_palace.c.
BABI_PALACE_AFTER_COLOSSO_ACTOR_ID
enum BABI_PALACE_AFTER_COLOSSO_ACTOR_ID
After Colosso there are Babi and the Cloak Ball he keeps on show.
ACTOR_ASKING_ABOUT_BABIS_SOLDIERS, ACTOR_BED_ATTENDANT and Iodem keep their
numbers.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_RELIEVED_SOLDIER | ACTOR_FIRST_PLACED + 2 | One of Babi's soldiers. |
ACTOR_ASKING_ABOUT_THE_EASTERN_SHORES | The same resident as | |
ACTOR_GONDOWAN_BOUND_SOLDIER | ACTOR_HURRYING_WARRIORS_ALONG: "So, you're all from the eastern shores of the Karagol Sea, huh?" One of Babi's soldiers. | |
ACTOR_SOLDIER_PREFERRING_ANGARA | "The southern continent is a | |
ACTOR_BABI | dangerous place... you'll know why I prefer Angara." | |
ACTOR_AFTER_COLOSSO_BY_BABIS_BED | The same resident as | |
ACTOR_CLOAK_BALL | ACTOR_BY_BABIS_BED: "Babi's face is very pale, like that of a dead man." | |
ACTOR_AFTER_COLOSSO_SORRY_FOR_SHEBA | The same resident as ACTOR_SORRY_FOR_SHEBA: "The girl from Lalivero is no longer here." | |
ACTOR_AFTER_COLOSSO_OLD_WOMAN_IN_SHEBAS_ROOM | The same woman as ACTOR_OLD_WOMAN_IN_SHEBAS_ROOM: "I am surprised Sheba was allowed to return to Lalivero like that." |
Definition at line 193 of file babi_palace.c.
anonymous enum
enum { ACTOR_FIRST_GUARD, ACTOR_SECOND_GUARD }
The two guards outside the palace (BabiPalaceEntrance).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FIRST_GUARD | 8 | |
ACTOR_SECOND_GUARD | 9 |
Definition at line 221 of file babi_palace.c.
anonymous enum
enum { FLAG_BABI_PALACE_ATTENDANT_SHOWED_BEDS }
The attendant has led the party to the beds. Talking again sends the attendant back.
| Enumerator | Value | Description |
|---|---|---|
FLAG_BABI_PALACE_ATTENDANT_SHOWED_BEDS | FLAG_SCENE_TEMP(0x00) |
Definition at line 229 of file babi_palace.c.
BABI_PALACE_DOOR_ANIMATION
enum BABI_PALACE_DOOR_ANIMATION
The palace map's tileset animations that open its doors, for
fdTilesetAnimationResume (play) and fdTilesetAnimationPause (pause).
Each scene entry pauses them, so every door is drawn shut. The recording of
scBabiPalaceLeaveThroughDoor shows one swing open
(https://alchemy.pascalpixel.com/places/babi-palace/events/[`scBabiPalaceLeaveThroughDoor`](/tbs/source/src/scene/babi_palace-c#scbabipalaceleavethroughdoor).gif).
| Enumerator | Value | Description |
|---|---|---|
BABI_PALACE_MEETING_ROOM_DOOR_ANIMATION | 1 | the throne room's door |
BABI_PALACE_OTHER_DOORS_ANIMATION | 2 | every door without its own |
BABI_PALACE_OVEN_ROOM_DOOR_ANIMATION | 4 |
Definition at line 240 of file babi_palace.c.
BABI_PALACE_BED_ANIMATION
enum BABI_PALACE_BED_ANIMATION
The leader's animations in the big bedroom's bed, after the four shared ones
(ACTOR_ANIMATION).
The nod and the shake of the head answer yes and no in
scBabiPalaceWakeAfterFinals.
| Enumerator | Value | Description |
|---|---|---|
ANIM_IN_BED_LYING | 31 | |
ANIM_IN_BED_SITTING_UP | 32 | Sitting up. The leader is raised by 3 pixels as it starts. |
ANIM_IN_BED_NOD | 33 | |
ANIM_IN_BED_SHAKE_HEAD | 34 |
Definition at line 252 of file babi_palace.c.
BABI_PALACE_METATILE_BEHAVIOR
enum BABI_PALACE_METATILE_BEHAVIOR
Metatile behaviors the cues answer besides the exits, whose metatile behaviors are their exits' numbers.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_BABI_PALACE_PASSAGE_TO_CARPET | 60 | The passage up to the red carpet, metatiles (32, 26) and (33, 26), where the party overhears Iodem while Babi is missing. |
METATILE_BEHAVIOR_BABI_PALACE_BEDS | 70 | The big bedroom's four beds, searched to sleep. |
METATILE_BEHAVIOR_BABI_PALACE_WELL | 90 | The well in the court, |
METATILE_BEHAVIOR_BABI_PALACE_LUCKY_MEDAL_BARREL | 100 | south-west of the palace door. The barrel in the eight-sided room up the east stairs, metatile (34, 61), with a Lucky Medal in it. |
METATILE_BEHAVIOR_BABI_PALACE_ARMOR_SHELF | 200 | The shelf at the north wall of the big bedroom, metatiles (24, 3) and (25, 3): "The armor looks heavy." |
METATILE_BEHAVIOR_BABI_PALACE_EMPTY_SHELF | 201 | The shelf in the room west of the soldiers' room, (9, 18) and (10, 18): "There's nothing in there." |
METATILE_BEHAVIOR_BABI_PALACE_HEADBAND_SHELF | 202 | The shelf in the |
METATILE_BEHAVIOR_BABI_PALACE_BIG_BEDROOM_BOOKCASE | 203 | soldiers' room, (55, 18) and (56, 18), with a headband on it. The big bedroom's |
METATILE_BEHAVIOR_BABI_PALACE_NOTEBOOK_BOOKCASE | 204 | bookcase, (6, 3) and (7, 3): "The Heart of the..." The bookcase in the room west of the soldiers' room, (12, 18) and (13, 18), with a notebook of records. |
METATILE_BEHAVIOR_BABI_PALACE_SOLDIERS_BOOKCASE | 205 | The soldiers' room's bookcase, (58, 18) and (59, 18): "Become a Macho Man in..." |
METATILE_BEHAVIOR_BABI_PALACE_DIARY_BOOKCASE | 206 | The bookcase in Babi's bedroom, (58, 33) and (59, 33), with Babi's diary. |
Definition at line 263 of file babi_palace.c.
Functions in detail
scBabiPalacePauseDoorAnimations
static inline void scBabiPalacePauseDoorAnimations(void)
Pauses the tileset animations of the palace's doors as the leader leaves.
References fdTilesetAnimationPause().
Referenced by scBabiPalaceLeaveThroughDoor() and scInit().
Definition at line 319 of file babi_palace.c.
scBabiPalaceRestorePartyAndInventory
static inline void scBabiPalaceRestorePartyAndInventory(void)
After a night in the palace's beds, the party's HP and PP are full, Garet, Ivan and Mia rejoin, and the inventory Colosso held is returned.
References gmInventorySnapshotRestore(), gmPartyAddMember(), gmUnitGet(), gmUnitRecalculateGauges(), scFieldPartyListMembers(), Sint32 and state.
Referenced by scInit().
Definition at line 328 of file babi_palace.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References BabiPalaceEntrances, BabiPalaceOutsideEntrances and MainRoutineStateWork.
Definition at line 349 of file babi_palace.c.
scGetExitRegions
const SCENE_EXIT_REGION *scGetExitRegions(void)
The palace has no exit regions, so the table is empty.
References BabiPalaceRegions.
Definition at line 359 of file babi_palace.c.
scGetExits
const Uint32 *scGetExits(void)
Both scenes share one exit table.
References BabiPalaceExits.
Definition at line 365 of file babi_palace.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
Returns the actor placements for the scene and the story, which is before Babi's rescue, during the finals or after Colosso.
References BabiPalaceActorPlacementsAfterColosso, BabiPalaceActorPlacementsBabiMissing, BabiPalaceActorPlacementsFinals, BabiPalaceOutsideActorPlacements, gmFlagGet() and MainRoutineStateWork.
Definition at line 372 of file babi_palace.c.
scBabiPalaceShowQuestionAnswer
static inline void scBabiPalaceShowQuestionAnswer(Sint32 actorId, Sint32 question)
Asks a yes or no question. The answers are the two messages after it.
References fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage() and Sint32.
Referenced by scBabiPalaceAskAboutEasternShores(), scBabiPalaceAskAboutMeetingBabi() and scBabiPalaceAskAboutSoldiers().
Definition at line 390 of file babi_palace.c.
scBabiPalaceAskAboutSoldiers
static void scBabiPalaceAskAboutSoldiers(Sint32 actorId)
While Babi is missing, the old man with a cane in the entrance hall asks "Did you run into any of Babi's soldiers in Town?"; No gets him grumbling that he told them to search every nook and cranny.
References scBabiPalaceShowQuestionAnswer() and Sint32.
Referenced by BabiPalaceCuesBabiMissing.
Definition at line 405 of file babi_palace.c.
scBabiPalaceShowBeds
static void scBabiPalaceShowBeds(Sint32 actorId)
While Babi is missing, the attendant in the big bedroom, the woman with fair hair by its west wall, says there are just enough beds for everybody and walks over to them. Talking to her there, she offers the four beds ("Will you be going right to sleep?"), and from then on a search of a bed lets the party sleep in it.
References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimationAndWait(), fdActorWalkByAndWait(), fdActorWalkToAndWait(), fdEndBusyAndReveal(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagClear(), gmFlagSet() and Sint32.
Referenced by BabiPalaceCuesBabiMissing.
Definition at line 415 of file babi_palace.c.
scBabiPalaceOfferRest
static void scBabiPalaceOfferRest(Sint32 actorId)
During the finals, the attendant in the big bedroom asks whether the party came to rest before its match, and the beds are open to it again.
References fdActorFaceDirection(), fdActorSetAnimationAndWait(), fdActorWalkByAndWait(), fdActorWalkToAndWait(), fdEndBusyAndReveal(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagSet() and Sint32.
Referenced by BabiPalaceCuesFinals.
Definition at line 481 of file babi_palace.c.
scBabiPalaceAskAboutColosso
static void scBabiPalaceAskAboutColosso(Sint32 actorId)
While Babi is missing, the warrior in a golden helmet by the table at the north of the big bedroom asks "Are you planning to enter Colosso?". A Yes makes him wince and send the party to the colosseum; a No has him take it for another injured warrior.
References fdActorShowEmote(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptWait() and Sint32.
Referenced by BabiPalaceCuesBabiMissing.
Definition at line 529 of file babi_palace.c.
scBabiPalaceTalkToWarriorWithIndigestion
static void scBabiPalaceTalkToWarriorWithIndigestion(Sint32 actorId)
While Babi is missing, the warrior in a golden helmet by the big bedroom's east wall tries to shrug off his indigestion to enter Colosso, and gives up: "It's no use! My stomach really hurts!"
References BabiPalaceIndigestionScript, fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetScript(), fdActorShowEmote(), fdActorStop(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait() and Sint32.
Referenced by BabiPalaceCuesBabiMissing.
Definition at line 554 of file babi_palace.c.
scBabiPalaceReadShebasMind
static void scBabiPalaceReadShebasMind(Sint32 casterId, Sint32 actorId)
Mind Read on Sheba in her room, while Babi is missing, reads that even if she escaped the palace her power could not get her home to Lalivero. The first time, she turns with a start ("Did you just..."), then shakes her head: "No, it is nothing."
References fdActorFaceActor(), fdActorFaceDirection(), fdActorSetAnimationAndWait(), fdActorShowEmote(), fdPsynergyCancel(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagSet() and Sint32.
Referenced by BabiPalaceCuesBabiMissing.
Definition at line 599 of file babi_palace.c.
scBabiPalaceAskAboutMeetingBabi
static void scBabiPalaceAskAboutMeetingBabi(Sint32 actorId)
After Colosso, the old man with a cane in the entrance hall asks whether the party has met with Babi.
References scBabiPalaceShowQuestionAnswer() and Sint32.
Referenced by BabiPalaceCuesAfterColosso.
Definition at line 626 of file babi_palace.c.
scBabiPalaceAskAboutEasternShores
static void scBabiPalaceAskAboutEasternShores(Sint32 actorId)
After Colosso, the young man with brown hair in the room west of the soldiers' room asks "So, you're all from the eastern shores of the Karagol Sea, huh?".
References scBabiPalaceShowQuestionAnswer() and Sint32.
Referenced by BabiPalaceCuesAfterColosso.
Definition at line 634 of file babi_palace.c.
scBabiPalaceOfferCloakBall
static void scBabiPalaceOfferCloakBall(void)
After Colosso, picking up the Cloak Ball on show beside Babi's bed: "You found the Cloak Ball." From his bed Babi asks whether Isaac desires it, and on a Yes lends it for the quest. On a No he asks to leave it alone.
References fdActorFaceActor(), fdActorFaceDirection(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdEndBusyAndReveal(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagSet(), gmItemShowFound(), gmPartyGiveItem() and Sint32.
Referenced by BabiPalaceCuesAfterColosso.
Definition at line 642 of file babi_palace.c.
scBabiPalaceWakeFromFinalsDream
static void scBabiPalaceWakeFromFinalsDream(void)
Losing the first or second match of the finals, Isaac wakes in a bed of the big bedroom: he only dreamt of fighting in them. The others tease him, and the party sets off for the colosseum.
References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorWalkByAndWait(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), scWalkIntoLeader() and sySynch().
Referenced by scInit().
Definition at line 686 of file babi_palace.c.
scBabiPalaceRestInPalaceBeds
static void scBabiPalaceRestInPalaceBeds(void)
Searching one of the four beds in the big bedroom, once the attendant has offered them, asks "Would you like to sleep now?". The first night the party talks things over before it sleeps; later nights it sleeps as at an inn.
References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimationAndWait(), fdActorWaitForMoveById(), fdActorWaitForScriptEndById(), fdActorWalkBy(), fdActorWalkByAndWait(), fdActorWalkToAndWait(), fdEndBusyAndReveal(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), mnInnPlaySleep(), scFieldActorLaunchFromLeader() and scWalkIntoLeader().
Referenced by BabiPalaceCuesAfterColosso, BabiPalaceCuesBabiMissing and BabiPalaceCuesFinals.
Definition at line 823 of file babi_palace.c.
scBabiPalaceHearSoldiersReport
static void scBabiPalaceHearSoldiersReport(void)
While Babi is missing, walking north up the passage towards the red carpet, metatile (32, 26) or (33, 26), Isaac stops short of the carpet as Iodem walks in from the west hall and two soldiers hurry up to him, back from Altmiller Cave: Babi has been gone since last night, and he has slipped into that cave before. Iodem then leaves for the colosseum in Babi's stead. It plays once.
References fdActorFaceActor(), fdActorFaceDirection(), fdActorFaceEachOther(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkBy(), fdActorWalkByAndWait(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdEndBusyAndReveal(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagSet() and sySynch().
Referenced by BabiPalaceCuesBabiMissing.
Definition at line 1000 of file babi_palace.c.
scBabiPalaceWakeAfterFinals
static void scBabiPalaceWakeAfterFinals(void)
After the last match of the finals, Isaac wakes in a bed of the big bedroom, having slept long after fighting to the end, and the others tell him Babi wants to see the party.
References fdActorFaceActor(), fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorWalkByAndWait(), fdScreenTransitionStartHeldWindow(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), PerData, scWalkIntoLeader(), Sint32, state and sySynch().
Referenced by scInit().
Definition at line 1311 of file babi_palace.c.
scBabiPalaceMeetBabiAfterColosso
static void scBabiPalaceMeetBabiAfterColosso(void)
After Colosso, the first time the party goes through the throne room's door north of the red carpet, Babi and Iodem are waiting. Iodem hands the winner the Lure Cap; Babi tells of Lemuria and the draught that has kept him alive, asks the party to sail there for him once its business at Venus Lighthouse is done, and sends Iodem with them, to meet at Gondowan Passage.
References fdActorFaceActor(), fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorStop(), fdActorWaitForMoveById(), fdActorWalkBy(), fdActorWalkByAndWait(), fdActorWalkToAndWait(), fdActorWatchAndSetScript(), fdCameraFollowActor(), fdCameraWaitForMove(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagGet(), gmItemShowFound(), gmPartyGiveItem(), gmPlayMusic(), mnMessageArgumentPush(), scFieldActorLaunchFromLeader(), scWalkIntoLeader(), sySoundPlay() and sySynch().
Referenced by scInit().
Definition at line 1595 of file babi_palace.c.
scBabiPalaceLeaveThroughDoor
static void scBabiPalaceLeaveThroughDoor(void)
Walking north into one of the palace's wooden doors opens it with the sound of a door, and Isaac walks through. The doors are the big bedroom's two, up the stairs on either side of Babi's statue, metatiles (36, 3) and (59, 3); the throne room's, north of the red carpet, (32, 18) and (33, 18); the two at the south end of the passage up to the carpet, into the room west of the soldiers' room (29, 31) and into the soldiers' room (36, 31); Babi's bedroom's off its landing, (28, 50); and Sheba's, off hers, (5, 34).
Each door opens by its own tileset animation (BABI_PALACE_DOOR_ANIMATION);
the metatile behaviour is the exit's number.
References fdActorCenterAndWalk(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), fdTilesetAnimationResume(), scBabiPalacePauseDoorAnimations(), state, syImportScriptSetExitRequest() and sySoundPlay().
Referenced by BabiPalaceCuesAfterColosso, BabiPalaceCuesBabiMissing and BabiPalaceCuesFinals.
Definition at line 2672 of file babi_palace.c.
scBabiPalaceLeaveThroughAnimatedDoor
static void scBabiPalaceLeaveThroughAnimatedDoor(void)
Walking north into the palace's door between the two guards, metatile (12, 15), opens it and Isaac goes in.
References BabiPalaceDoorMetatiles, fdActorCenterAndWalk(), fdMapGridAnimateMetatiles(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), syImportScriptSetExitRequest() and sySoundPlay().
Referenced by BabiPalaceOutsideCuesAfterColosso, BabiPalaceOutsideCuesBabiMissing and BabiPalaceOutsideCuesFinals.
Definition at line 2710 of file babi_palace.c.
scBabiPalacePassOnBabisWord
static void scBabiPalacePassOnBabisWord(void)
During the finals, talking to either guard at the palace door the first time brings Isaac before them: "You're Isaac, aren't you?" Either answer ends with Babi's word that he waits for the party at the colosseum, though No first has the guards confer and decide it was him all the same.
References fdActorFaceDirection(), fdActorFaceEachOther(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorShowEmote(), fdActorWalkToAndWait(), fdEndBusyAndReveal(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagSet() and Sint32.
Referenced by BabiPalaceOutsideCuesFinals.
Definition at line 2726 of file babi_palace.c.
scBabiPalaceThankForSavingBabi
static void scBabiPalaceThankForSavingBabi(void)
During the finals, the guard on the west side of the palace door thanks Isaac once for saving Babi, then reminds him that Babi waits at the colosseum.
References fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage() and gmFlagSet().
Referenced by BabiPalaceOutsideCuesFinals.
Definition at line 2782 of file babi_palace.c.
scBabiPalaceAskAboutRemainingWarriors
static void scBabiPalaceAskAboutRemainingWarriors(Sint32 actorId)
After Colosso, the guard on the west side of the palace door says all the warriors who stayed in the palace have left, and asks whether the party is going too.
References fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage() and Sint32.
Referenced by BabiPalaceOutsideCuesAfterColosso.
Definition at line 2802 of file babi_palace.c.
scBabiPalaceExamineWell
static void scBabiPalaceExamineWell(void)
Searching the well in the court, south-west of the palace door at metatile (6, 19): "It's filled with fresh, clean water."
References fdScriptEnd(), fdScriptStart() and mnFieldMessageShow().
Referenced by BabiPalaceOutsideCuesAfterColosso, BabiPalaceOutsideCuesBabiMissing and BabiPalaceOutsideCuesFinals.
Definition at line 2825 of file babi_palace.c.
scGetCues
const CUE *scGetCues(void)
Returns the cues for the scene and the story, as for the actor placements.
References BabiPalaceCuesAfterColosso, BabiPalaceCuesBabiMissing, BabiPalaceCuesFinals, BabiPalaceOutsideCuesAfterColosso, BabiPalaceOutsideCuesBabiMissing, BabiPalaceOutsideCuesFinals, gmFlagGet() and MainRoutineStateWork.
Definition at line 2834 of file babi_palace.c.
scInit
Sint32 scInit(void)
Sets up the scene being entered. Returns 0.
References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdScriptGetFlag(), glyph, gmFlagClear(), gmFlagGet(), gmFlagSet(), gmItemLoadIcon(), MainRoutineStateWork, mnVRAMLoad(), scBabiPalaceMeetBabiAfterColosso(), scBabiPalacePauseDoorAnimations(), scBabiPalaceRestorePartyAndInventory(), scBabiPalaceWakeAfterFinals(), scBabiPalaceWakeFromFinalsDream(), Sint32, syHeapSlotAllocate() and syHeapSlotRelease().
Definition at line 2860 of file babi_palace.c.
Variables in detail
BabiPalaceDoorMetatiles
extern Uint16 BabiPalaceDoorMetatiles[]
Uint16 BabiPalaceDoorMetatiles[]
The palace door between the two guards opening, a column of three metatiles at a time.
Referenced by scBabiPalaceLeaveThroughAnimatedDoor().
Definition at lines 49 and 2965 of file babi_palace.c.
BabiPalaceIndigestionScript
extern Sint32 BabiPalaceIndigestionScript[]
Sint32 BabiPalaceIndigestionScript[]
References Sint32.
Referenced by BabiPalaceActorPlacementsBabiMissing and scBabiPalaceTalkToWarriorWithIndigestion().
Definition at lines 50 and 2970 of file babi_palace.c.
BabiPalaceEntrances
extern SCENE_ENTRANCE BabiPalaceEntrances[]
SCENE_ENTRANCE BabiPalaceEntrances[]
Referenced by scGetEntrances().
Definition at lines 51 and 2988 of file babi_palace.c.
BabiPalaceOutsideEntrances
extern SCENE_ENTRANCE BabiPalaceOutsideEntrances[]
SCENE_ENTRANCE BabiPalaceOutsideEntrances[]
Referenced by scGetEntrances().
Definition at lines 52 and 3075 of file babi_palace.c.
BabiPalaceRegions
extern SCENE_EXIT_REGION BabiPalaceRegions[]
SCENE_EXIT_REGION BabiPalaceRegions[]
Referenced by scGetExitRegions().
Definition at lines 53 and 3084 of file babi_palace.c.
BabiPalaceExits
extern Uint32 BabiPalaceExits[]
Uint32 BabiPalaceExits[]
Referenced by scGetExits().
Definition at lines 54 and 3088 of file babi_palace.c.
BabiPalaceOutsideActorPlacements
extern ACTOR_PLACE BabiPalaceOutsideActorPlacements[]
ACTOR_PLACE BabiPalaceOutsideActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 55 and 3211 of file babi_palace.c.
BabiPalaceActorPlacementsBabiMissing
extern ACTOR_PLACE BabiPalaceActorPlacementsBabiMissing[]
ACTOR_PLACE BabiPalaceActorPlacementsBabiMissing[]
References BabiPalaceIndigestionScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 56 and 3219 of file babi_palace.c.
BabiPalaceActorPlacementsFinals
extern ACTOR_PLACE BabiPalaceActorPlacementsFinals[]
ACTOR_PLACE BabiPalaceActorPlacementsFinals[]
Referenced by scGetActorPlacements().
Definition at lines 57 and 3262 of file babi_palace.c.
BabiPalaceActorPlacementsAfterColosso
extern ACTOR_PLACE BabiPalaceActorPlacementsAfterColosso[]
ACTOR_PLACE BabiPalaceActorPlacementsAfterColosso[]
Referenced by scGetActorPlacements().
Definition at lines 58 and 3286 of file babi_palace.c.
BabiPalaceCuesBabiMissing
extern CUE BabiPalaceCuesBabiMissing[]
CUE BabiPalaceCuesBabiMissing[]
References scBabiPalaceAskAboutColosso(), scBabiPalaceAskAboutSoldiers(), scBabiPalaceHearSoldiersReport(), scBabiPalaceLeaveThroughDoor(), scBabiPalaceReadShebasMind(), scBabiPalaceRestInPalaceBeds(), scBabiPalaceShowBeds() and scBabiPalaceTalkToWarriorWithIndigestion().
Referenced by scGetCues().
Definition at lines 59 and 3322 of file babi_palace.c.
BabiPalaceCuesFinals
extern CUE BabiPalaceCuesFinals[]
CUE BabiPalaceCuesFinals[]
References scBabiPalaceLeaveThroughDoor(), scBabiPalaceOfferRest() and scBabiPalaceRestInPalaceBeds().
Referenced by scGetCues().
Definition at lines 60 and 3441 of file babi_palace.c.
BabiPalaceCuesAfterColosso
extern CUE BabiPalaceCuesAfterColosso[]
CUE BabiPalaceCuesAfterColosso[]
References scBabiPalaceAskAboutEasternShores(), scBabiPalaceAskAboutMeetingBabi(), scBabiPalaceLeaveThroughDoor(), scBabiPalaceOfferCloakBall() and scBabiPalaceRestInPalaceBeds().
Referenced by scGetCues().
Definition at lines 61 and 3535 of file babi_palace.c.
BabiPalaceOutsideCuesBabiMissing
extern CUE BabiPalaceOutsideCuesBabiMissing[]
CUE BabiPalaceOutsideCuesBabiMissing[]
References scBabiPalaceExamineWell() and scBabiPalaceLeaveThroughAnimatedDoor().
Referenced by scGetCues().
Definition at lines 62 and 3646 of file babi_palace.c.
BabiPalaceOutsideCuesFinals
extern CUE BabiPalaceOutsideCuesFinals[]
CUE BabiPalaceOutsideCuesFinals[]
References scBabiPalaceExamineWell(), scBabiPalaceLeaveThroughAnimatedDoor(), scBabiPalacePassOnBabisWord() and scBabiPalaceThankForSavingBabi().
Referenced by scGetCues().
Definition at lines 63 and 3662 of file babi_palace.c.
BabiPalaceOutsideCuesAfterColosso
extern CUE BabiPalaceOutsideCuesAfterColosso[]
CUE BabiPalaceOutsideCuesAfterColosso[]
References scBabiPalaceAskAboutRemainingWarriors(), scBabiPalaceExamineWell() and scBabiPalaceLeaveThroughAnimatedDoor().
Referenced by scGetCues().