src/scene/vault_revisit.c
Vault (SceneIdVaultRevisit), the town once the party has reached Kalay. More…
#include "ability_ids.h"#include "flags.h"#include "item_ids.h"#include "battle/battle.h"#include "debug/debug.h"#include "field/script.h"#include "graphics/graphics.h"#include "scene/vault.h"#include "scene/vault_range.h"#include "text/msg_ids.h"#include "shared/field_effect_create.c"#include "shared/field_effect_spawn.c"#include "shared/position_distance.c"#include "shared/vault_range.c"#include "shared/vault_nearby.c"#include "shared/vault_door_exit.c"#include "shared/vault_doors.c"#include "shared/vault_map_metatiles.c"#include "shared/vault_jail_door.c"#include "shared/vault_toggle.c"#include "shared/field_effect_duration_scripts.c"#include "shared/vault_well_routes.c"#include "shared/vault_door_metatiles.c"
Macros
| Name | Description | |
|---|---|---|
#define | VAULT_GEM_OWNERS_HOUSE_EXIT VAULT_REVISIT_LOG_ROOMS_B_SOUTHEAST | The rooms behind the town's doors (shared/vault_doors.c). |
#define | VAULT_CHILDS_HOUSE_EXIT VAULT_REVISIT_LOG_ROOMS_B_SOUTH | |
#define | VAULT_INN_EXIT VAULT_REVISIT_LOG_ROOMS_B_SOUTHWEST | |
#define | VAULT_ITEM_SHOP_EXIT VAULT_REVISIT_LOG_ROOMS_B_EAST | |
#define | VAULT_WEAPON_AND_ARMOR_SHOP_EXIT VAULT_REVISIT_LOG_ROOMS_B_NORTH | |
#define | VAULT_MAYORS_HOUSE_EXIT VAULT_REVISIT_LOG_ROOMS_B_NORTHWEST | |
#define | VAULT_JAIL_EXIT VAULT_REVISIT_STONE_ROOMS |
Enumerations
| Name | Description | |
|---|---|---|
enum | VAULT_REVISIT_ACTOR_ID { ACTOR_WELCOMING_YOUNG_MAN, ACTOR_WOMAN_ON_THE_FIXED_BRIDGE, … } | The townspeople, the dog and Sap, standing where vault.c places them. |
enum | anonymous enum { FLAG_VAULT_REVISIT_WARRIOR_GUY_GREETED, FLAG_VAULT_REVISIT_Y … } | Area flags for what the townspeople have already said, kept while the party stays in Vault's scenes. |
Functions
| Name | Description | |
|---|---|---|
const SCENE_ENTRANCE * | scGetEntrances (void) | The six rooms share one entrance table. |
const SCENE_EXIT_REGION * | scGetExitRegions (void) | The scene has no exit regions: its regions entry returns none. |
const Uint32 * | scGetExits (void) | Both scenes share one exit table. |
const ACTOR_PLACE * | scGetActorPlacements (void) | The townspeople, the dog and Sap. |
static void | scVaultRevisitShowStandingActorMessage (Sint32 actorId) | Stands the person still while they say the message already chosen. |
static void | scVaultRevisitRecognizeWarriors (void) | The young man outside the gem owner's house, by the rope bridge, turns to Isaac and recognizes the party: "You're the warriors who captured the thieves a while back, aren't you? |
static void | scVaultRevisitTalkOfLunpaThieves (void) | The woman in green who wanders north of the inn stops and turns to Isaac: there have been rumors of thieves from Lunpa running wild, and she wonders why they have been so quiet recently. |
static void | scVaultRevisitPraisePartyStrength (void) | The old man with a cane east of the jail's door turns to Isaac: he was just talking about the party with the mayor, and they are so strong that the thieves are welcome to attack. |
static void | scVaultRevisitHopeVolcanoStaysCalm (void) | The old woman who wanders east of the inn's door stops and turns to Isaac: if the volcano stays calm and the southern bridge stays fixed, Vault won't have any worries at all. |
static void | scVaultRevisitGreetWarriorGuy (void) | The boy walking round the well stops and turns to Isaac. |
static void | scVaultRevisitWishEldersWereBrave (void) | The girl walking round the well stops and turns to Isaac: "I wish Vault's elders were as brave as you!" |
static void | scVaultRevisitAskAboutJail (void) | The strongman by the rope bridge asks, "Oh, so did you guys check out the jail?" If Isaac nods, he wonders how the thugs broke out, the bars being so strong; if he shakes his head, the strongman tells him the thieves broke out and got away. |
static void | scVaultRevisitReadMindAndRecognizeWarriors (void) | Mind Read on the young man by the rope bridge before he has spoken: he turns to Isaac and recognizes the party aloud, as when talked to. |
static void | scVaultRevisitReadMindOnDodonpa (void) | Mind Read on the woman in green north of the inn: "Once Dodonpa took over, Lunpa's outlaws became no better than thieves. |
static void | scVaultRevisitReadMindAndPraisePartyStrength (void) | Mind Read on the old man by the jail's door before he has spoken: he turns to Isaac and praises the party aloud, as when talked to. |
static void | scVaultRevisitReadMindOnWinter (void) | Mind Read on the old woman east of the inn's door: "It would have been great to have everything solved before winter came." |
static void | scVaultRevisitReadMindOnFeelingBrave (void) | Mind Read on the boy walking round the well: watching the party makes him feel brave, and he hopes they'll tell him all about their travels sometime. |
static void | scVaultRevisitReadMindOnScaredGrownUps (void) | Mind Read on the girl walking round the well: "Grown-ups always get so scared whenever anything happens. |
static void | scVaultRevisitReadMindOnJailKey (void) | Mind Read on the strongman by the rope bridge: it's not easy to grab the key to that jail, so the thieves must know the secret of the lock, and that must have been great! |
static void | scVaultRevisitJumpActorToAndWait (Sint32 actorId, Sint32 x, Sint32 z, FIXED velocityY) | Jumps the actor to (x, z), launched upward at velocityY, and waits there until it lands, a second at most. |
static void | scVaultRevisitRingBell (void) | Up on the bell tower, Isaac rings the bell (metatile (17, 8)). |
static void | scVaultRevisitSapJoins (void) | On the cliff top beside the cave mouth, where the bell sent it, talking to Sap, a Venus Djinni, makes it join the party. |
static inline void | scVaultRevisitDogJumpAtPassage (void) | The dog jumps once on the hidden passage's spot, then pauses. |
static void | scVaultRevisitGiveBoneToDog (void) | Isaac gives the dog south of the six gravestones a Bone. |
static void | scVaultRevisitHidePassage (void) | When Reveal wears off, the hole among the six gravestones (metatile (13, 25)) is grass again and can no longer be walked into. |
static void | scVaultRevisitRevealPassage (void) | Reveal, cast near the six gravestones south of the inn, shows a dark hole in the middle of them (metatile (13, 25)), where the dog jumps: the hidden passage down into Vault Cave, which Isaac can walk into while the spell lasts. |
static void | scVaultRevisitTalkToDog (void) | The dog south of the six gravestones turns to Isaac and barks. |
static void | scVaultRevisitPeerIntoWell (void) | Isaac peers into the well in the south-west of Vault (metatiles (7, 24) to (8, 25)): "You can hear water rumbling down there." |
const CUE * | scGetCues (void) | The town's scripts: its people, doors, bell, well and box, the dog's Bone and Reveal among the gravestones. |
static inline Sint32 | scVaultRevisitShouldKeepBellDjinniPos (void) | Patched editions keep Sap on the cliff top when the party keeps its position, as on a return from battle. |
Sint32 | scInit (void) | Sets up Vault as the party finds it after reaching Kalay. |
Variables
| Name | Description | |
|---|---|---|
extern SCENE_ENTRANCE | VaultRevisitEntrances [] | |
extern Uint32 | VaultRevisitExits [] | |
extern ACTOR_PLACE | VaultRevisitActorPlacements [] | |
extern CUE | VaultRevisitCues [] | |
const Sint32 * | FieldEffectDurationScripts [] | The resident copy of the scripts EFFECT_SCRIPT_MASK picks, by enum EFFECT_DURATION. |
Description
Vault (SceneIdVaultRevisit), the town once the party has reached Kalay. It
has the same layout as Vault's first scene (vault.c), and replaces that scene
for the rest of the game.
The World Map still leads into the first scene. Once FLAG_KALAY_REACHED is
set, that scene's setup sends the party straight on here
(VAULT_REVISIT_FROM_VAULT). Vault Sanctum, Vault Cave, the jail and the
houses (log_rooms_b.c) lead back here directly.
The townspeople stand where they stood before, and the news is that the
thieves the party caught have broken out of jail, that the bridge to Kalay is
fixed, and that Hammet is still in Lunpa. Some speak in plain message rows;
the young man by the rope bridge, the woman in green, the old man by the
jail, the old woman by the inn, the two children round the well and the
strongman speak through scripts. Those who greet the party remember it in
area flags (FLAG_VAULT_REVISIT_WARRIOR_GUY_GREETED to
FLAG_VAULT_REVISIT_ASKED_ABOUT_JAIL), so that a Mind Read on one not yet
spoken to plays the greeting first. The old man's praise also sets
FLAG_VAULT_WARNED_OF_ESCAPED_THIEVES, as the mayor's welcome indoors does.
This is where the walkthrough sends the player back for two things. Up on the
bell tower, ringing the bell startles Sap, a Venus Djinni, out of the tree
east of the tower onto the cliff top beside the cave mouth; the party reaches
it there through Vault Cave, and talking to it makes it join. Coming into
town from the World Map sends Sap back into its tree until it has joined
(FLAG_VAULT_SAP_CALLED_BY_BELL). And Reveal among the six gravestones south
of the inn shows a hole, the hidden passage down into Vault Cave. The dog,
given a Bone from the inn, runs to that spot and jumps there three times as a
hint (FLAG_VAULT_DOG_SHOWN_PASSAGE, shared with vault.c). The cave mouth in
the north-east cliff is the cave's other way in.
The wooden box beside the mayor's house still holds a Nut if it was not taken
before, and the well rumbles with water. The metatiles the scripts answer are
VAULT_METATILE_BEHAVIOR (vault.h).
The inn's roof is mended: scInit copies a 3-by-3 block of metatiles from (45,
41) to (8, 45), which draws the thatch whole where vault.c's town shows the
hole the fiery rock burnt in it.
Macros in detail
VAULT_GEM_OWNERS_HOUSE_EXIT
#define VAULT_GEM_OWNERS_HOUSE_EXIT VAULT_REVISIT_LOG_ROOMS_B_SOUTHEAST
The rooms behind the town's doors (shared/vault_doors.c).
Referenced by scVaultEnterGemOwnersHouse().
Definition at line 467 of file vault_revisit.c.
VAULT_CHILDS_HOUSE_EXIT
#define VAULT_CHILDS_HOUSE_EXIT VAULT_REVISIT_LOG_ROOMS_B_SOUTH
Referenced by scVaultEnterChildsHouse().
Definition at line 468 of file vault_revisit.c.
VAULT_INN_EXIT
#define VAULT_INN_EXIT VAULT_REVISIT_LOG_ROOMS_B_SOUTHWEST
Referenced by scVaultEnterInn().
Definition at line 469 of file vault_revisit.c.
VAULT_ITEM_SHOP_EXIT
#define VAULT_ITEM_SHOP_EXIT VAULT_REVISIT_LOG_ROOMS_B_EAST
Referenced by scVaultEnterItemShop().
Definition at line 470 of file vault_revisit.c.
VAULT_WEAPON_AND_ARMOR_SHOP_EXIT
#define VAULT_WEAPON_AND_ARMOR_SHOP_EXIT VAULT_REVISIT_LOG_ROOMS_B_NORTH
Referenced by scVaultEnterWeaponAndArmorShop().
Definition at line 471 of file vault_revisit.c.
VAULT_MAYORS_HOUSE_EXIT
#define VAULT_MAYORS_HOUSE_EXIT VAULT_REVISIT_LOG_ROOMS_B_NORTHWEST
Referenced by scVaultEnterMayorsHouse().
Definition at line 472 of file vault_revisit.c.
VAULT_JAIL_EXIT
#define VAULT_JAIL_EXIT VAULT_REVISIT_STONE_ROOMS
Referenced by scVaultEnterJail().
Definition at line 477 of file vault_revisit.c.
Enumerations in detail
VAULT_REVISIT_ACTOR_ID
enum VAULT_REVISIT_ACTOR_ID
The townspeople, the dog and Sap, standing where vault.c places them.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_WELCOMING_YOUNG_MAN | ACTOR_FIRST_PLACED | The young man with brown hair outside the gem owner's house in the east, by the rope bridge, who recognizes the party. |
ACTOR_WOMAN_ON_THE_FIXED_BRIDGE | A woman with fair hair east of the six gravestones, who brings the news that the bridge to Kalay is fixed. | |
ACTOR_VILLAGER_WONDERING_ABOUT_HAMMET | A burly grey-haired man up on the bell tower, beside the bell, who worries about Hammet. | |
ACTOR_WOMAN_ON_LUNPAS_THIEVES | A woman in a green dress who wanders north of the inn. | |
ACTOR_MAYORS_VISITOR | An old man with a cane east of the jail's door, who has been talking with the mayor. | |
ACTOR_OLD_WOMAN_ON_THE_VOLCANO | An old woman who wanders east of the inn's door. | |
ACTOR_BOY_ROUND_THE_WELL | vault.c's two children, walking round the well again. The boy greets the party. "Hey, it's that warrior guy!" | |
ACTOR_GIRL_ROUND_THE_WELL | Wishes Vault's elders were as brave as the party. | |
ACTOR_STRONGMAN_ON_WATCH | The strongman who wanders near the west end of the rope bridge. "Did you guys check out the jail?" | |
ACTOR_VILLAGER_DIVINE_PLAN | A bearded man in a long robe beside the Sanctum's door, who takes the thieves' escape calmly. | |
ACTOR_VAULT_DOG | The dog south of the six gravestones. | |
ACTOR_YOUNG_MAN_FIXING_THE_ROOF | The young man at the foot of the ladder against the inn's west wall, the roof now mended. | |
ACTOR_SAP | ACTOR_FIRST_PLACED + 13 | Sap, a Venus Djinni, hiding in the tree east of the bell tower until the bell calls it. The row before it, SPRITE_IVY placed at 0, 0, is never referred to. |
Definition at line 57 of file vault_revisit.c.
anonymous enum
enum { FLAG_VAULT_REVISIT_WARRIOR_GUY_GREETED, FLAG_VAULT_REVISIT_YOUNG_MAN_RECOGNIZED_PARTY, FLAG_VAULT_REVISIT_PARTY_PRAISED, FLAG_VAULT_REVISIT_BOY_ROUND_THE_WELL_SPOKE, … }
Area flags for what the townspeople have already said, kept while the party stays in Vault's scenes. A Mind Read before someone has spoken plays the conversation first.
| Enumerator | Value | Description |
|---|---|---|
FLAG_VAULT_REVISIT_WARRIOR_GUY_GREETED | FLAG_AREA_TEMP(0x00) | |
FLAG_VAULT_REVISIT_YOUNG_MAN_RECOGNIZED_PARTY | FLAG_AREA_TEMP(0x05) | |
FLAG_VAULT_REVISIT_PARTY_PRAISED | FLAG_AREA_TEMP(0x06) | |
FLAG_VAULT_REVISIT_BOY_ROUND_THE_WELL_SPOKE | FLAG_AREA_TEMP(0x07) | |
FLAG_VAULT_REVISIT_ASKED_ABOUT_JAIL | FLAG_AREA_TEMP(0x08) |
Definition at line 113 of file vault_revisit.c.
Functions in detail
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References VaultRevisitEntrances.
Definition at line 128 of file vault_revisit.c.
scGetExitRegions
const SCENE_EXIT_REGION *scGetExitRegions(void)
Definition at line 133 of file vault_revisit.c.
scGetExits
const Uint32 *scGetExits(void)
References VaultRevisitExits.
Definition at line 138 of file vault_revisit.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
The townspeople, the dog and Sap.
References VaultRevisitActorPlacements.
Definition at line 144 of file vault_revisit.c.
scVaultRevisitShowStandingActorMessage
static void scVaultRevisitShowStandingActorMessage(Sint32 actorId)
Stands the person still while they say the message already chosen.
References fdActorSetAnimation(), fdScriptEnd(), fdScriptShowMessage(), fdScriptStart() and Sint32.
Referenced by scVaultRevisitHopeVolcanoStaysCalm(), scVaultRevisitReadMindOnDodonpa(), scVaultRevisitReadMindOnFeelingBrave(), scVaultRevisitReadMindOnJailKey(), scVaultRevisitReadMindOnScaredGrownUps(), scVaultRevisitReadMindOnWinter() and scVaultRevisitTalkOfLunpaThieves().
Definition at line 150 of file vault_revisit.c.
scVaultRevisitRecognizeWarriors
static void scVaultRevisitRecognizeWarriors(void)
The young man outside the gem owner's house, by the rope bridge, turns to Isaac and recognizes the party: "You're the warriors who captured the thieves a while back, aren't you? You've returned to Vault!"
References fdActorFaceActor(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and gmFlagSet().
Referenced by VaultRevisitCues.
Definition at line 161 of file vault_revisit.c.
scVaultRevisitTalkOfLunpaThieves
static void scVaultRevisitTalkOfLunpaThieves(void)
The woman in green who wanders north of the inn stops and turns to Isaac: there have been rumors of thieves from Lunpa running wild, and she wonders why they have been so quiet recently.
References fdActorTurnToFaceEachOther(), fdScriptSetMessageId() and scVaultRevisitShowStandingActorMessage().
Referenced by VaultRevisitCues.
Definition at line 175 of file vault_revisit.c.
scVaultRevisitPraisePartyStrength
static void scVaultRevisitPraisePartyStrength(void)
The old man with a cane east of the jail's door turns to Isaac: he was just talking about the party with the mayor, and they are so strong that the thieves are welcome to attack.
References fdActorFaceActor(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and gmFlagSet().
Referenced by VaultRevisitCues.
Definition at line 186 of file vault_revisit.c.
scVaultRevisitHopeVolcanoStaysCalm
static void scVaultRevisitHopeVolcanoStaysCalm(void)
The old woman who wanders east of the inn's door stops and turns to Isaac: if the volcano stays calm and the southern bridge stays fixed, Vault won't have any worries at all.
References fdActorTurnToFaceEachOther(), fdScriptSetMessageId() and scVaultRevisitShowStandingActorMessage().
Referenced by VaultRevisitCues.
Definition at line 201 of file vault_revisit.c.
scVaultRevisitGreetWarriorGuy
static void scVaultRevisitGreetWarriorGuy(void)
The boy walking round the well stops and turns to Isaac. The first time, an exclamation mark pops up over him: "Hey, it's that warrior guy! Yeah, and Ivan, too." Then, each time: "I'm so glad you came back to Vault!" He goes back to walking round the well.
References fdActorGet(), fdActorSetAnimation(), fdActorShowEmote(), fdActorTurnToFaceEachOther(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), gmFlagSet() and sySynch().
Referenced by scVaultRevisitReadMindOnFeelingBrave() and VaultRevisitCues.
Definition at line 213 of file vault_revisit.c.
scVaultRevisitWishEldersWereBrave
static void scVaultRevisitWishEldersWereBrave(void)
The girl walking round the well stops and turns to Isaac: "I wish Vault's elders were as brave as you!"
References fdActorGet(), fdActorSetAnimation(), fdActorTurnToFaceEachOther(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart() and sySynch().
Referenced by VaultRevisitCues.
Definition at line 245 of file vault_revisit.c.
scVaultRevisitAskAboutJail
static void scVaultRevisitAskAboutJail(void)
The strongman by the rope bridge asks, "Oh, so did you guys check out the jail?" If Isaac nods, he wonders how the thugs broke out, the bars being so strong; if he shakes his head, the strongman tells him the thieves broke out and got away.
References fdActorTurnToFaceEachOther(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and gmFlagSet().
Referenced by VaultRevisitCues.
Definition at line 270 of file vault_revisit.c.
scVaultRevisitReadMindAndRecognizeWarriors
static void scVaultRevisitReadMindAndRecognizeWarriors(void)
Mind Read on the young man by the rope bridge before he has spoken: he turns to Isaac and recognizes the party aloud, as when talked to.
References fdActorFaceActor(), fdActorRunRepeatedMotion(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait() and gmFlagSet().
Referenced by VaultRevisitCues.
Definition at line 288 of file vault_revisit.c.
scVaultRevisitReadMindOnDodonpa
static void scVaultRevisitReadMindOnDodonpa(void)
Mind Read on the woman in green north of the inn: "Once Dodonpa took over, Lunpa's outlaws became no better than thieves. There's gotta be a reason those guys are being so quiet."
References fdActorGet(), fdScriptSetMessageId() and scVaultRevisitShowStandingActorMessage().
Referenced by VaultRevisitCues.
Definition at line 304 of file vault_revisit.c.
scVaultRevisitReadMindAndPraisePartyStrength
static void scVaultRevisitReadMindAndPraisePartyStrength(void)
Mind Read on the old man by the jail's door before he has spoken: he turns to Isaac and praises the party aloud, as when talked to.
References fdActorFaceActor(), fdActorRunRepeatedMotion(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait() and gmFlagSet().
Referenced by VaultRevisitCues.
Definition at line 314 of file vault_revisit.c.
scVaultRevisitReadMindOnWinter
static void scVaultRevisitReadMindOnWinter(void)
Mind Read on the old woman east of the inn's door: "It would have been great to have everything solved before winter came."
References fdActorGet(), fdScriptSetMessageId() and scVaultRevisitShowStandingActorMessage().
Referenced by VaultRevisitCues.
Definition at line 330 of file vault_revisit.c.
scVaultRevisitReadMindOnFeelingBrave
static void scVaultRevisitReadMindOnFeelingBrave(void)
Mind Read on the boy walking round the well: watching the party makes him feel brave, and he hopes they'll tell him all about their travels sometime. If he has not spoken to them yet, he greets them aloud instead.
References fdActorGet(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptStart(), gmFlagSet(), scVaultRevisitGreetWarriorGuy() and scVaultRevisitShowStandingActorMessage().
Referenced by VaultRevisitCues.
Definition at line 341 of file vault_revisit.c.
scVaultRevisitReadMindOnScaredGrownUps
static void scVaultRevisitReadMindOnScaredGrownUps(void)
Mind Read on the girl walking round the well: "Grown-ups always get so scared whenever anything happens. I get so tired of that..."
References fdActorGet(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptStart() and scVaultRevisitShowStandingActorMessage().
Referenced by VaultRevisitCues.
Definition at line 361 of file vault_revisit.c.
scVaultRevisitReadMindOnJailKey
static void scVaultRevisitReadMindOnJailKey(void)
Mind Read on the strongman by the rope bridge: it's not easy to grab the key to that jail, so the thieves must know the secret of the lock, and that must have been great! If he has not asked about the jail yet, he asks aloud instead, then wanders off again.
References fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetMovementTypeById(), fdActorTurnToFaceEachOther(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scVaultRevisitShowStandingActorMessage() and Sint32.
Referenced by VaultRevisitCues.
Definition at line 375 of file vault_revisit.c.
scVaultRevisitJumpActorToAndWait
static void scVaultRevisitJumpActorToAndWait(Sint32 actorId, Sint32 x, Sint32 z, FIXED velocityY)
Jumps the actor to (x, z), launched upward at velocityY, and waits there
until it lands, a second at most.
References fdActorGet(), fdActorMoveToAndWait(), fdActorSetSpriteFlags(), Sint32 and sySynch().
Referenced by scVaultRevisitRingBell().
Definition at line 414 of file vault_revisit.c.
scVaultRevisitRingBell
static void scVaultRevisitRingBell(void)
Up on the bell tower, Isaac rings the bell (metatile (17, 8)). The first time since the party came into town, Sap the Venus Djinni pops up, startled, on top of the tree east of the tower, hops twice and leaps away north-east onto the cliff top beside the cave mouth, where it waits.
References fdActorJump(), fdActorSetAttachedEffect(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scVaultRevisitJumpActorToAndWait() and sySoundPlay().
Referenced by VaultRevisitCues.
Definition at line 442 of file vault_revisit.c.
scVaultRevisitSapJoins
static void scVaultRevisitSapJoins(void)
On the cliff top beside the cave mouth, where the bell sent it, talking to Sap, a Venus Djinni, makes it join the party.
References fdDjinnJoinParty().
Referenced by VaultRevisitCues.
Definition at line 484 of file vault_revisit.c.
scVaultRevisitDogJumpAtPassage
static inline void scVaultRevisitDogJumpAtPassage(void)
The dog jumps once on the hidden passage's spot, then pauses.
References fdActorJump() and fdScriptWait().
Referenced by scVaultRevisitGiveBoneToDog().
Definition at line 490 of file vault_revisit.c.
scVaultRevisitGiveBoneToDog
static void scVaultRevisitGiveBoneToDog(void)
Isaac gives the dog south of the six gravestones a Bone. It trots north to the middle of the gravestones (metatile (13, 25)), turns south and jumps there three times, then steps one metatile north and sits facing the spot, where Reveal will show the passage.
References fdActorFaceDirection(), fdActorRunRepeatedMotion(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), gmPartyInventoryDiscard() and scVaultRevisitDogJumpAtPassage().
Referenced by VaultRevisitCues.
Definition at line 500 of file vault_revisit.c.
scVaultRevisitHidePassage
static void scVaultRevisitHidePassage(void)
When Reveal wears off, the hole among the six gravestones (metatile (13, 25)) is grass again and can no longer be walked into.
References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesTo().
Referenced by VaultRevisitCues.
Definition at line 522 of file vault_revisit.c.
scVaultRevisitRevealPassage
static void scVaultRevisitRevealPassage(void)
Reveal, cast near the six gravestones south of the inn, shows a dark hole in the middle of them (metatile (13, 25)), where the dog jumps: the hidden passage down into Vault Cave, which Isaac can walk into while the spell lasts.
References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesTo().
Referenced by VaultRevisitCues.
Definition at line 532 of file vault_revisit.c.
scVaultRevisitTalkToDog
static void scVaultRevisitTalkToDog(void)
The dog south of the six gravestones turns to Isaac and barks. "Ruff! Rrruff!!" If Isaac carries a Bone and the dog has not yet shown its spot, the item menu opens so that he can give it one.
References fdActorSetAnimation(), fdActorTurnToFaceEachOther(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagGet() and gmPartyInventoryFindMember().
Referenced by VaultRevisitCues.
Definition at line 541 of file vault_revisit.c.
scVaultRevisitPeerIntoWell
static void scVaultRevisitPeerIntoWell(void)
Isaac peers into the well in the south-west of Vault (metatiles (7, 24) to (8, 25)): "You can hear water rumbling down there."
References fdScriptEnd(), fdScriptStart() and mnFieldMessageShow().
Referenced by VaultRevisitCues.
Definition at line 563 of file vault_revisit.c.
scGetCues
const CUE *scGetCues(void)
The town's scripts: its people, doors, bell, well and box, the dog's Bone and Reveal among the gravestones.
References VaultRevisitCues.
Definition at line 573 of file vault_revisit.c.
scVaultRevisitShouldKeepBellDjinniPos
static inline Sint32 scVaultRevisitShouldKeepBellDjinniPos(void)
Patched editions keep Sap on the cliff top when the party keeps its position, as on a return from battle.
References gmFlagGet() and Sint32.
Referenced by scInit().
Definition at line 580 of file vault_revisit.c.
scInit
Sint32 scInit(void)
Sets up Vault as the party finds it after reaching Kalay.
References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), gmFlagClear(), gmFlagGet(), MainRoutineStateWork, scVaultRevisitShouldKeepBellDjinniPos(), scVaultUpdateWalkingVillager(), Sint32 and sySynch().
Definition at line 590 of file vault_revisit.c.
Variables in detail
VaultRevisitEntrances
extern SCENE_ENTRANCE VaultRevisitEntrances[]
SCENE_ENTRANCE VaultRevisitEntrances[]
Referenced by scGetEntrances().
Definition at lines 51 and 632 of file vault_revisit.c.
VaultRevisitExits
extern Uint32 VaultRevisitExits[]
Uint32 VaultRevisitExits[]
Referenced by scGetExits().
Definition at lines 52 and 753 of file vault_revisit.c.
VaultRevisitActorPlacements
extern ACTOR_PLACE VaultRevisitActorPlacements[]
ACTOR_PLACE VaultRevisitActorPlacements[]
References Sint32, VaultBoyRoundTheWellRoute and VaultGirlRoundTheWellRoute.
Referenced by scGetActorPlacements().
Definition at lines 53 and 790 of file vault_revisit.c.
VaultRevisitCues
extern CUE VaultRevisitCues[]
CUE VaultRevisitCues[]
References scVaultEnterChildsHouse(), scVaultEnterGemOwnersHouse(), scVaultEnterInn(), scVaultEnterItemShop(), scVaultEnterJail(), scVaultEnterMayorsHouse(), scVaultEnterWeaponAndArmorShop(), scVaultLowerPathUnderBridge(), scVaultOpenDoorwayAndEnter(), scVaultRaisePathToBridge(), scVaultRevisitAskAboutJail(), scVaultRevisitGiveBoneToDog(), scVaultRevisitGreetWarriorGuy(), scVaultRevisitHidePassage(), scVaultRevisitHopeVolcanoStaysCalm(), scVaultRevisitPeerIntoWell(), scVaultRevisitPraisePartyStrength(), scVaultRevisitReadMindAndPraisePartyStrength(), scVaultRevisitReadMindAndRecognizeWarriors(), scVaultRevisitReadMindOnDodonpa(), scVaultRevisitReadMindOnFeelingBrave(), scVaultRevisitReadMindOnJailKey(), scVaultRevisitReadMindOnScaredGrownUps(), scVaultRevisitReadMindOnWinter(), scVaultRevisitRecognizeWarriors(), scVaultRevisitRevealPassage(), scVaultRevisitRingBell(), scVaultRevisitSapJoins(), scVaultRevisitTalkOfLunpaThieves(), scVaultRevisitTalkToDog() and scVaultRevisitWishEldersWereBrave().
Referenced by scGetCues().
Definition at lines 54 and 824 of file vault_revisit.c.
FieldEffectDurationScripts
const Sint32 *FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Definition at line 624 of file vault_revisit.c.