Skip to Content
The Alchemy Project

src/scene/cottage_rooms_a.c

Cottage rooms A (SceneIdCottageRoomsA) is a rooms map drawn as cottages. More…

Macros

NameDescription
#defineJENNAS_GRANDMOTHERS_SICKBED_ANIMATION 4The map's paused tileset animation that redraws Jenna's grandmother's bed with her lying sick in it.

Enumerations

NameDescription
enumCOTTAGE_ROOMS_A_METATILE_BEHAVIOR { METATILE_BEHAVIOR_ANTIDOTE_BARREL, METATILE_BEHAVIOR_SIX_COI … }The metatiles the rooms' things answer when searched: the barrel and the four jars (empty on the stormy night), and the bookcases and notebooks, by the title their message gives.
enumCOTTAGE_ROOMS_A_ACTOR_ID { ACTOR_GARETS_GRANDFATHER, ACTOR_GARETS_GRANDMOTHER, ACTOR_GA … }The placed actors, numbered in the order of the actor placement tables, which all place them alike.
enumCOTTAGE_ROOMS_A_ANIMATION { ANIM_GRANDFATHER_ASLEEP, ANIM_GRANDFATHER_LOOK_ABOUT, ANIM_G … }Animations of the houses' sprites beyond ACTOR_ANIMATION, as their animation tables and ticks under graphics/sprite draw them.
enumanonymous enum { SHOP_VALE_WEAPONS, SHOP_VALE_ARMOR, SHOP_VALE_ITEMS }The stock rows the three counters of Vale's shops open (mnShopRun).

Functions

NameDescription
static voidscCottageRoomsAGaretComesHome (void)In Garet's house in Vale, back from Kalay, Garet comes home.
static voidscCottageRoomsASpawnSleepZ (void)Sends a sprite drifting up from Garet's sleeping grandfather.
static Sint32scCottageRoomsAAdvanceSleepZ (ACTOR *actor)Moves and grows a Z drifting up from Garet's sleeping grandfather.
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)On the stormy night, the doors lead out into the storm.
const ACTOR_PLACE *scGetActorPlacements (void)Selects the actor placements for the current visit to Vale, and marks which of their actors are in view.
const CUE *scGetCues (void)Selects the cues for the current visit to Vale.
static voidscCottageRoomsAAskAboutKradensStudies (void)A burly grey-haired man asks whether Isaac knew why Kraden came to Vale.
static voidscCottageRoomsAAskToScareVisitors (void)A strongman asks Isaac to help scare Kraden's visitors with Psynergy.
static voidscCottageRoomsAGiveFarewellHerb (void)In Vale's shops after the party has left Vale, the item merchant gives Isaac a Herb as a farewell gift, and afterwards urges him to save Jenna.
static voidscCottageRoomsAAskAboutStrangePowers (void)A woman in a green dress asks whether the people who caused the eruption had strange powers, in a house of Vale after the party has left.
static voidscCottageRoomsAAskAboutDora (void)Garet's father asks whether Isaac heard them talking about Dora.
static voidscCottageRoomsAWorryAboutTravelersHealth (void)Garet's mother hopes the travelers didn't get sick on the way.
static voidscCottageRoomsALeaveThroughDoor (Sint32 exitNumber)Leaves a house by its door, on the stormy night stopping the lightning first.
static voidscCottageRoomsALeaveToValeWest (void)Leaves the house where a young man dreams of leaving.
static voidscCottageRoomsALeaveToValeNorth (void)Leaves Jenna's grandparents' house.
static voidscCottageRoomsALeaveToValePlazaWest (void)Leaves the empty house.
static voidscCottageRoomsALeaveToValePlazaSouth (void)Leaves Vale's shops.
static voidscCottageRoomsALeaveToValeSouth (void)Leaves the house where villagers talk of Kraden and his visitors.
static voidscCottageRoomsALeaveToValeEast (void)Leaves Garet's house.
static voidscCottageRoomsALeaveToValePlazaEast (void)Leaves the house where a strongman plans to scare Kraden's visitors.
static voidscCottageRoomsALeaveToValePlazaNorth (void)Leaves the house where a woman talks of permission to leave.
Sint32scInit (void)Sets up a house of Vale as the party arrives.
static voidscCottageRoomsATalkToWeaponMerchant (void)In Vale's shops, opens the weapon shop across the counter, or the merchant speaks.
static voidscCottageRoomsATalkToArmorMerchant (void)In Vale's shops, opens the armor shop across the counter, or the merchant speaks.
static voidscCottageRoomsATalkToItemMerchant (void)In Vale's shops, opens the item shop across the counter, or the merchant speaks.
static inline voidscCottageRoomsAFamilyNods (void)Garet's grandparents and father nod.
static inline voidscCottageRoomsAPlayRepeatedAnimationAndWait (Sint32 actorId, Sint32 animation)Has an actor squash and spring back once while it plays an animation through.

Variables

NameDescription
extern Sint32CottageRoomsAFaceTargetScript []Keeps an actor turned toward the actor it watches.
extern Sint32CottageRoomsAFatherPacingScript []Garet's father paces the room: he walks west, turns slowly through south to face east, walks back and turns about to face west, a quarter or half turn over 16 ticks.
extern Sint32CottageRoomsAPartyLeavesScript []Garet, Ivan and Mia walk to where Isaac stands and are taken off the stage.
extern Sint32CottageRoomsASleepZScript []A Z drifts up for 60 ticks, then is taken off the stage until it is sent again.
extern SCENE_ENTRANCECottageRoomsAEntrances []
extern Uint32CottageRoomsAExits []
extern Uint32CottageRoomsAStormExits []
extern ACTOR_PLACECottageRoomsAActorPlacements []
extern ACTOR_PLACECottageRoomsAActorPlacementsAfterLeaving []
extern ACTOR_PLACECottageRoomsAActorPlacementsAfterKalay []
extern CUECottageRoomsAStormCues []
extern CUECottageRoomsACues []
extern CUECottageRoomsACuesAfterLeaving []
extern CUECottageRoomsACuesAfterKalay []

Description

Cottage rooms A (SceneIdCottageRoomsA) is a rooms map drawn as cottages.

The game packs rooms that share a tile style onto one map, and every room on this one is Vale's.

Each room is an entrance with a camera box of its own, named for the door it is entered by. Its door takes the exit of the same number back out.

Here are the rooms in story order, by the exits that lead in:

The actor placements and cues follow the story:

  • The stormy night of the prologue (FLAG_VALE_STORM). Everyone is out: scInit removes every resident and flashes the lightning outside, and the doors out to the village lead into the storm's scene (SceneIdValePrologue) instead (scGetExits). The jars and the barrel are empty, and six more bookcases than by day can be read, a notebook called "Study of Alchemy" among them.
  • Three years later, the day the story begins. The villagers talk of Kraden's visitors and of Vale's law that keeps Psynergy secret from outsiders. The jars and the barrel hold coins, an Antidote and a Smoke Bomb, each found once.
  • After the party has left Vale (FLAG_VALE_PARTY_LEFT), Jenna having been taken on Mt. Aleph. Her grandmother lies sick in bed (scInit, from COTTAGE_ROOMS_A_VALE_NORTH). The villagers talk of the quest and of Felix, and the item merchant gives Isaac a Herb as a farewell gift (FLAG_VALE_FAREWELL_HERB_RECEIVED).
  • Back from Kalay (FLAG_KALAY_REACHED), with Ivan and Mia in the party. The first time the party enters Garet's house, scCottageRoomsAGaretComesHome plays (FLAG_GARET_CAME_HOME). His parents are wondering whether to look for him when his grandmother sees him. The family greets him, Ivan and Mia introduce themselves ("I am Mia, from Imil."), and his father is left pacing. The villagers now worry about Dora, ill since Isaac left.

While Garet's grandfather dozes in scCottageRoomsAGaretComesHome, three letters Z (ACTOR_FIRST_SLEEP_Z and the two after it) rise from him. One appears at each of ticks 10, 20 and 30 of every 180 (scCottageRoomsASpawnSleepZ).

Each starts 24 pixels above him at two fifths of its size. It grows a fortieth a tick as it climbs ever more slowly and drifts right ever faster (scCottageRoomsAAdvanceSleepZ).

Macros in detail

JENNAS_GRANDMOTHERS_SICKBED_ANIMATION

#define JENNAS_GRANDMOTHERS_SICKBED_ANIMATION 4

The map's paused tileset animation that redraws Jenna's grandmother's bed with her lying sick in it.

Referenced by scInit().

Definition at line 203 of file cottage_rooms_a.c.

Enumerations in detail

COTTAGE_ROOMS_A_METATILE_BEHAVIOR

enum COTTAGE_ROOMS_A_METATILE_BEHAVIOR

The metatiles the rooms' things answer when searched: the barrel and the four jars (empty on the stormy night), and the bookcases and notebooks, by the title their message gives.

EnumeratorValueDescription
METATILE_BEHAVIOR_ANTIDOTE_BARREL100
METATILE_BEHAVIOR_SIX_COINS_JAR101
METATILE_BEHAVIOR_TWO_COINS_JAR102
METATILE_BEHAVIOR_SMOKE_BOMB_JAR103
METATILE_BEHAVIOR_THREE_COINS_JAR104
METATILE_BEHAVIOR_NORTHERN_CONTINENT_BOOKS200
METATILE_BEHAVIOR_LAWS_OF_VALE_BOOK201
METATILE_BEHAVIOR_POWER_OF_NATURE_BOOK202
METATILE_BEHAVIOR_PSYNERGY_STONE_BOOK203
METATILE_BEHAVIOR_AUNTS_NOTEBOOK204
METATILE_BEHAVIOR_GREAT_VILLAGE_BOOK205
METATILE_BEHAVIOR_STUDY_OF_ALCHEMY_NOTEBOOK206
METATILE_BEHAVIOR_ANCIENT_LEMURIANS_BOOK207
METATILE_BEHAVIOR_FOUNTAIN_OF_TOLBI_BOOK208
METATILE_BEHAVIOR_ENCYCLOPEDIA_OF_ALCHEMY209
METATILE_BEHAVIOR_LEGEND_OF_ALEPH_BOOK210
METATILE_BEHAVIOR_BEING_AN_ADEPT_BOOK211

Definition at line 87 of file cottage_rooms_a.c.

COTTAGE_ROOMS_A_ACTOR_ID

enum COTTAGE_ROOMS_A_ACTOR_ID

The placed actors, numbered in the order of the actor placement tables, which all place them alike.

CottageRoomsAActorPlacementsAfterKalay adds Garet, Ivan and Mia, who keep their characters' ids, and the drifting sprites.

The villagers' notes quote what they say on the day the story begins.

EnumeratorValueDescription
ACTOR_GARETS_GRANDFATHERACTOR_FIRST_PLACEDGaret's grandfather, the mayor, an old man with white hair and a cane ("your grandpa's the mayor", vale.c). "Isaac, please take care of my grandson, Garet."
ACTOR_GARETS_GRANDMOTHERGaret's grandmother, an old woman with white hair. "Grandma! What's the matter? Are you choking?"
ACTOR_GARETS_FATHERGaret's father, a man with brown hair in a teal shirt. "I'm proud of you, Garet. My own son...on such an important quest!"
ACTOR_GARETS_MOTHERGaret's mother, a woman with orange hair under a green headscarf. "As mothers, Dora and I will always worry about you."
ACTOR_JENNAS_GRANDFATHERJenna's grandfather, a bent old man with a white beard and a cane. "My granddaughter, Jenna, is finally happy again..."
ACTOR_JENNAS_GRANDMOTHERJenna's grandmother, an old woman with white hair. "Please return my precious granddaughter, Jenna, to me." Once Jenna is taken, ACTOR_WOMAN_ON_THE_SPITTING_IMAGE says she "grew sick with despair", and she lies in bed.
ACTOR_WOMAN_ON_THE_SPITTING_IMAGEA woman in a green dress in Jenna's grandparents' house. "Jenna is the spitting image of her mother, whom we lost that day..."
ACTOR_MAN_ON_KRADENS_STUDIESA burly grey-haired man. "So Kraden came to Vale to study Mt. Aleph, right?"
ACTOR_WOMAN_ON_VISITORS_IN_TOWNA woman in a green dress. "If there are visitors in town, we can't use our Psynergy."
ACTOR_YOUNG_MAN_DREAMING_OF_LEAVINGA young man with brown hair. "Do you ever dream of seeing the world outside the village?"
ACTOR_WOMAN_ON_PERMISSION_TO_LEAVEA woman with fair hair. "Few people outside of Vale possess the power of Psynergy. That's why we need permission to leave the village..."
ACTOR_STRONGMAN_SCARING_VISITORSA strongman. "I hear old man
ACTOR_ITEM_MERCHANTKraden's got some visitors. Let's go use our Psynergy to scare 'em!"
ACTOR_WEAPON_MERCHANTA bald man in a red tunic.
ACTOR_ARMOR_MERCHANTA young man with brown hair in a green shirt.
ACTOR_FIRST_SLEEP_ZThree letters Z that drift up from Garet's grandfather as he sleeps.

Definition at line 115 of file cottage_rooms_a.c.

COTTAGE_ROOMS_A_ANIMATION

enum COTTAGE_ROOMS_A_ANIMATION

Animations of the houses' sprites beyond ACTOR_ANIMATION, as their animation tables and ticks under graphics/sprite draw them.

EnumeratorValueDescription
ANIM_GRANDFATHER_ASLEEP5Garet's grandfather standing with his eyes shut, asleep (old_man_with_white_hair.png).
ANIM_GRANDFATHER_LOOK_ABOUT6Garet's grandfather glancing quickly from side to side (old_man_with_white_hair.png).
ANIM_GRANDMOTHER_IN_BED5Jenna's grandmother lying in bed, only her head on the pillow (old_woman.png).

Definition at line 180 of file cottage_rooms_a.c.

anonymous enum

enum { SHOP_VALE_WEAPONS, SHOP_VALE_ARMOR, SHOP_VALE_ITEMS }

The stock rows the three counters of Vale's shops open (mnShopRun).

EnumeratorValueDescription
SHOP_VALE_WEAPONS1
SHOP_VALE_ARMOR2
SHOP_VALE_ITEMS3

Definition at line 194 of file cottage_rooms_a.c.

Functions in detail

scCottageRoomsAGaretComesHome

static void scCottageRoomsAGaretComesHome(void)

In Garet's house in Vale, back from Kalay, Garet comes home.

References CottageRoomsAFaceTargetScript, CottageRoomsAFatherPacingScript, CottageRoomsAPartyLeavesScript, fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetPosFX(), fdActorSetScript(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorStop(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraGetActor(), fdCameraWaitForMove(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagSet(), scCottageRoomsAFamilyNods(), scCottageRoomsAPlayRepeatedAnimationAndWait(), scCottageRoomsASpawnSleepZ(), scFieldActorWatchAndStartScript(), scFieldScriptShowMessageThenWait(), scFieldScriptShowTwoMessagesAndWait(), Sint32, syCloseEvent(), sySetTickEvent() and sySynch().

Referenced by scInit().

Definition at lines 205 and 612 of file cottage_rooms_a.c.

scCottageRoomsASpawnSleepZ

static void scCottageRoomsASpawnSleepZ(void)

Sends a sprite drifting up from Garet's sleeping grandfather.

References CottageRoomsASleepZScript, fdActorGet(), fdActorSetPosFX(), fdActorSetScript(), Sint32 and TickCount.

Referenced by scCottageRoomsAGaretComesHome().

Definition at lines 206 and 977 of file cottage_rooms_a.c.

scCottageRoomsAAdvanceSleepZ

static Sint32 scCottageRoomsAAdvanceSleepZ(ACTOR *actor)

Moves and grows a Z drifting up from Garet's sleeping grandfather.

References Sint32.

Referenced by CottageRoomsASleepZScript.

Definition at line 211 of file cottage_rooms_a.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References CottageRoomsAEntrances.

Definition at line 222 of file cottage_rooms_a.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 227 of file cottage_rooms_a.c.

scGetExits

const Uint32 *scGetExits(void)

On the stormy night, the doors lead out into the storm.

References CottageRoomsAExits, CottageRoomsAStormExits and gmFlagGet().

Definition at line 233 of file cottage_rooms_a.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

Selects the actor placements for the current visit to Vale, and marks which of their actors are in view.

References CottageRoomsAActorPlacements, CottageRoomsAActorPlacementsAfterKalay, CottageRoomsAActorPlacementsAfterLeaving, fdAssignViewFlags() and gmFlagGet().

Definition at line 242 of file cottage_rooms_a.c.

scGetCues

const CUE *scGetCues(void)

Selects the cues for the current visit to Vale.

References CottageRoomsACues, CottageRoomsACuesAfterKalay, CottageRoomsACuesAfterLeaving, CottageRoomsAStormCues and gmFlagGet().

Definition at line 263 of file cottage_rooms_a.c.

scCottageRoomsAAskAboutKradensStudies

static void scCottageRoomsAAskAboutKradensStudies(void)

A burly grey-haired man asks whether Isaac knew why Kraden came to Vale.

References fdActorFaceEachOther(), fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId() and fdScriptStart().

Referenced by CottageRoomsACues.

Definition at line 275 of file cottage_rooms_a.c.

scCottageRoomsAAskToScareVisitors

static void scCottageRoomsAAskToScareVisitors(void)

A strongman asks Isaac to help scare Kraden's visitors with Psynergy.

References fdActorFaceEachOther(), fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId() and fdScriptStart().

Referenced by CottageRoomsACues.

Definition at line 288 of file cottage_rooms_a.c.

scCottageRoomsAGiveFarewellHerb

static void scCottageRoomsAGiveFarewellHerb(void)

In Vale's shops after the party has left Vale, the item merchant gives Isaac a Herb as a farewell gift, and afterwards urges him to save Jenna.

References CottageRoomsAFaceTargetScript, fdScriptEnd(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), gmFlagSet(), gmPartyGiveItem(), mnFieldMessageShow(), scFieldActorWatchAndStartScript() and Sint32.

Referenced by scCottageRoomsATalkToItemMerchant().

Definition at line 303 of file cottage_rooms_a.c.

scCottageRoomsAAskAboutStrangePowers

static void scCottageRoomsAAskAboutStrangePowers(void)

A woman in a green dress asks whether the people who caused the eruption had strange powers, in a house of Vale after the party has left.

References fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId() and fdScriptStart().

Referenced by CottageRoomsACuesAfterLeaving.

Definition at line 334 of file cottage_rooms_a.c.

scCottageRoomsAAskAboutDora

static void scCottageRoomsAAskAboutDora(void)

Garet's father asks whether Isaac heard them talking about Dora.

References fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId() and fdScriptStart().

Referenced by CottageRoomsACuesAfterKalay.

Definition at line 346 of file cottage_rooms_a.c.

scCottageRoomsAWorryAboutTravelersHealth

static void scCottageRoomsAWorryAboutTravelersHealth(void)

Garet's mother hopes the travelers didn't get sick on the way.

References fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage() and fdScriptStart().

Referenced by CottageRoomsACuesAfterKalay.

Definition at line 358 of file cottage_rooms_a.c.

scCottageRoomsALeaveThroughDoor

static void scCottageRoomsALeaveThroughDoor(Sint32 exitNumber)

Leaves a house by its door, on the stormy night stopping the lightning first.

References fdScriptFinishScreenTransition(), fdScriptWaitTransitionTicks(), fdWeatherStopLightning(), gmFlagGet(), Sint32, syImportScriptSetExitRequest() and sySoundPlay().

Referenced by scCottageRoomsALeaveToValeEast(), scCottageRoomsALeaveToValeNorth(), scCottageRoomsALeaveToValePlazaEast(), scCottageRoomsALeaveToValePlazaNorth(), scCottageRoomsALeaveToValePlazaSouth(), scCottageRoomsALeaveToValePlazaWest(), scCottageRoomsALeaveToValeSouth() and scCottageRoomsALeaveToValeWest().

Definition at line 368 of file cottage_rooms_a.c.

scCottageRoomsALeaveToValeWest

static void scCottageRoomsALeaveToValeWest(void)

Leaves the house where a young man dreams of leaving.

References scCottageRoomsALeaveThroughDoor().

Referenced by CottageRoomsACues, CottageRoomsACuesAfterKalay, CottageRoomsACuesAfterLeaving and CottageRoomsAStormCues.

Definition at line 387 of file cottage_rooms_a.c.

scCottageRoomsALeaveToValeNorth

static void scCottageRoomsALeaveToValeNorth(void)

Leaves Jenna's grandparents' house.

References scCottageRoomsALeaveThroughDoor().

Referenced by CottageRoomsACues, CottageRoomsACuesAfterKalay, CottageRoomsACuesAfterLeaving and CottageRoomsAStormCues.

Definition at line 393 of file cottage_rooms_a.c.

scCottageRoomsALeaveToValePlazaWest

static void scCottageRoomsALeaveToValePlazaWest(void)

Leaves the empty house.

References scCottageRoomsALeaveThroughDoor().

Referenced by CottageRoomsACues, CottageRoomsACuesAfterKalay, CottageRoomsACuesAfterLeaving and CottageRoomsAStormCues.

Definition at line 399 of file cottage_rooms_a.c.

scCottageRoomsALeaveToValePlazaSouth

static void scCottageRoomsALeaveToValePlazaSouth(void)

Leaves Vale's shops.

References scCottageRoomsALeaveThroughDoor().

Referenced by CottageRoomsACues, CottageRoomsACuesAfterKalay, CottageRoomsACuesAfterLeaving and CottageRoomsAStormCues.

Definition at line 405 of file cottage_rooms_a.c.

scCottageRoomsALeaveToValeSouth

static void scCottageRoomsALeaveToValeSouth(void)

Leaves the house where villagers talk of Kraden and his visitors.

References scCottageRoomsALeaveThroughDoor().

Referenced by CottageRoomsACues, CottageRoomsACuesAfterKalay, CottageRoomsACuesAfterLeaving and CottageRoomsAStormCues.

Definition at line 411 of file cottage_rooms_a.c.

scCottageRoomsALeaveToValeEast

static void scCottageRoomsALeaveToValeEast(void)

Leaves Garet's house.

References scCottageRoomsALeaveThroughDoor().

Referenced by CottageRoomsACues, CottageRoomsACuesAfterKalay, CottageRoomsACuesAfterLeaving and CottageRoomsAStormCues.

Definition at line 417 of file cottage_rooms_a.c.

scCottageRoomsALeaveToValePlazaEast

static void scCottageRoomsALeaveToValePlazaEast(void)

Leaves the house where a strongman plans to scare Kraden's visitors.

References scCottageRoomsALeaveThroughDoor().

Referenced by CottageRoomsACues, CottageRoomsACuesAfterKalay, CottageRoomsACuesAfterLeaving and CottageRoomsAStormCues.

Definition at line 423 of file cottage_rooms_a.c.

scCottageRoomsALeaveToValePlazaNorth

static void scCottageRoomsALeaveToValePlazaNorth(void)

Leaves the house where a woman talks of permission to leave.

References scCottageRoomsALeaveThroughDoor().

Referenced by CottageRoomsACues, CottageRoomsACuesAfterKalay, CottageRoomsACuesAfterLeaving and CottageRoomsAStormCues.

Definition at line 429 of file cottage_rooms_a.c.

scInit

Sint32 scInit(void)

Sets up a house of Vale as the party arrives.

References fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), fdTilesetAnimationResume(), fdWeatherLastLightning(), fdWeatherResumeLightning(), fdWeatherStartLightning(), gmFlagGet(), MainRoutineStateWork, scCottageRoomsAGaretComesHome(), Sint32 and sySynch().

Definition at line 435 of file cottage_rooms_a.c.

scCottageRoomsATalkToWeaponMerchant

static void scCottageRoomsATalkToWeaponMerchant(void)

In Vale's shops, opens the weapon shop across the counter, or the merchant speaks.

References fdActorGet(), fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), gmFlagGet() and mnShopRun().

Referenced by CottageRoomsACues, CottageRoomsACuesAfterKalay and CottageRoomsACuesAfterLeaving.

Definition at line 495 of file cottage_rooms_a.c.

scCottageRoomsATalkToArmorMerchant

static void scCottageRoomsATalkToArmorMerchant(void)

In Vale's shops, opens the armor shop across the counter, or the merchant speaks.

References fdActorGet(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), gmFlagGet() and mnShopRun().

Referenced by CottageRoomsACues, CottageRoomsACuesAfterKalay and CottageRoomsACuesAfterLeaving.

Definition at line 529 of file cottage_rooms_a.c.

scCottageRoomsATalkToItemMerchant

static void scCottageRoomsATalkToItemMerchant(void)

In Vale's shops, opens the item shop across the counter, or the merchant speaks.

References fdActorGet(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), gmFlagGet(), mnShopRun() and scCottageRoomsAGiveFarewellHerb().

Referenced by CottageRoomsACues, CottageRoomsACuesAfterKalay and CottageRoomsACuesAfterLeaving.

Definition at line 560 of file cottage_rooms_a.c.

scCottageRoomsAFamilyNods

static inline void scCottageRoomsAFamilyNods(void)

Garet's grandparents and father nod.

References fdActorSetAnimation() and fdActorSetAnimationAndWait().

Referenced by scCottageRoomsAGaretComesHome().

Definition at line 595 of file cottage_rooms_a.c.

scCottageRoomsAPlayRepeatedAnimationAndWait

static inline void scCottageRoomsAPlayRepeatedAnimationAndWait(Sint32 actorId, Sint32 animation)

Has an actor squash and spring back once while it plays an animation through.

References fdActorSetAnimationAndWait(), fdActorStartRepeatedMotion() and Sint32.

Referenced by scCottageRoomsAGaretComesHome().

Definition at line 604 of file cottage_rooms_a.c.

Variables in detail

CottageRoomsAFaceTargetScript

extern Sint32 CottageRoomsAFaceTargetScript[]

Sint32 CottageRoomsAFaceTargetScript[]

Keeps an actor turned toward the actor it watches.

References scTurnTowardTarget() and Sint32.

Referenced by scCottageRoomsAGaretComesHome() and scCottageRoomsAGiveFarewellHerb().

Definition at lines 69 and 1019 of file cottage_rooms_a.c.

CottageRoomsAFatherPacingScript

extern Sint32 CottageRoomsAFatherPacingScript[]

Sint32 CottageRoomsAFatherPacingScript[]

Garet's father paces the room: he walks west, turns slowly through south to face east, walks back and turns about to face west, a quarter or half turn over 16 ticks.

References Sint32.

Referenced by CottageRoomsAActorPlacementsAfterKalay and scCottageRoomsAGaretComesHome().

Definition at lines 70 and 1027 of file cottage_rooms_a.c.

CottageRoomsAPartyLeavesScript

extern Sint32 CottageRoomsAPartyLeavesScript[]

Sint32 CottageRoomsAPartyLeavesScript[]

Garet, Ivan and Mia walk to where Isaac stands and are taken off the stage.

References Sint32.

Referenced by scCottageRoomsAGaretComesHome().

Definition at lines 71 and 1057 of file cottage_rooms_a.c.

CottageRoomsASleepZScript

extern Sint32 CottageRoomsASleepZScript[]

Sint32 CottageRoomsASleepZScript[]

A Z drifts up for 60 ticks, then is taken off the stage until it is sent again.

References scCottageRoomsAAdvanceSleepZ() and Sint32.

Referenced by scCottageRoomsASpawnSleepZ().

Definition at lines 72 and 1069 of file cottage_rooms_a.c.

CottageRoomsAEntrances

extern SCENE_ENTRANCE CottageRoomsAEntrances[]

SCENE_ENTRANCE CottageRoomsAEntrances[]

Referenced by scGetEntrances().

Definition at lines 73 and 1078 of file cottage_rooms_a.c.

CottageRoomsAExits

extern Uint32 CottageRoomsAExits[]

Uint32 CottageRoomsAExits[]

Referenced by scGetExits().

Definition at lines 74 and 1147 of file cottage_rooms_a.c.

CottageRoomsAStormExits

extern Uint32 CottageRoomsAStormExits[]

Uint32 CottageRoomsAStormExits[]

Referenced by scGetExits().

Definition at lines 75 and 1170 of file cottage_rooms_a.c.

CottageRoomsAActorPlacements

extern ACTOR_PLACE CottageRoomsAActorPlacements[]

ACTOR_PLACE CottageRoomsAActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 76 and 1200 of file cottage_rooms_a.c.

CottageRoomsAActorPlacementsAfterLeaving

extern ACTOR_PLACE CottageRoomsAActorPlacementsAfterLeaving[]

ACTOR_PLACE CottageRoomsAActorPlacementsAfterLeaving[]

Referenced by scGetActorPlacements().

Definition at lines 77 and 1234 of file cottage_rooms_a.c.

CottageRoomsAActorPlacementsAfterKalay

extern ACTOR_PLACE CottageRoomsAActorPlacementsAfterKalay[]

ACTOR_PLACE CottageRoomsAActorPlacementsAfterKalay[]

References CottageRoomsAFatherPacingScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 78 and 1268 of file cottage_rooms_a.c.

CottageRoomsAStormCues

extern CUE CottageRoomsAStormCues[]

CUE CottageRoomsAStormCues[]

References scCottageRoomsALeaveToValeEast(), scCottageRoomsALeaveToValeNorth(), scCottageRoomsALeaveToValePlazaEast(), scCottageRoomsALeaveToValePlazaNorth(), scCottageRoomsALeaveToValePlazaSouth(), scCottageRoomsALeaveToValePlazaWest(), scCottageRoomsALeaveToValeSouth() and scCottageRoomsALeaveToValeWest().

Referenced by scGetCues().

Definition at lines 79 and 1315 of file cottage_rooms_a.c.

CottageRoomsACues

extern CUE CottageRoomsACues[]

CUE CottageRoomsACues[]

References scCottageRoomsAAskAboutKradensStudies(), scCottageRoomsAAskToScareVisitors(), scCottageRoomsALeaveToValeEast(), scCottageRoomsALeaveToValeNorth(), scCottageRoomsALeaveToValePlazaEast(), scCottageRoomsALeaveToValePlazaNorth(), scCottageRoomsALeaveToValePlazaSouth(), scCottageRoomsALeaveToValePlazaWest(), scCottageRoomsALeaveToValeSouth(), scCottageRoomsALeaveToValeWest(), scCottageRoomsATalkToArmorMerchant(), scCottageRoomsATalkToItemMerchant() and scCottageRoomsATalkToWeaponMerchant().

Referenced by scGetCues().

Definition at lines 80 and 1373 of file cottage_rooms_a.c.

CottageRoomsACuesAfterLeaving

extern CUE CottageRoomsACuesAfterLeaving[]

CUE CottageRoomsACuesAfterLeaving[]

References scCottageRoomsAAskAboutStrangePowers(), scCottageRoomsALeaveToValeEast(), scCottageRoomsALeaveToValeNorth(), scCottageRoomsALeaveToValePlazaEast(), scCottageRoomsALeaveToValePlazaNorth(), scCottageRoomsALeaveToValePlazaSouth(), scCottageRoomsALeaveToValePlazaWest(), scCottageRoomsALeaveToValeSouth(), scCottageRoomsALeaveToValeWest(), scCottageRoomsATalkToArmorMerchant(), scCottageRoomsATalkToItemMerchant() and scCottageRoomsATalkToWeaponMerchant().

Referenced by scGetCues().

Definition at lines 81 and 1446 of file cottage_rooms_a.c.

CottageRoomsACuesAfterKalay

extern CUE CottageRoomsACuesAfterKalay[]

CUE CottageRoomsACuesAfterKalay[]

References scCottageRoomsAAskAboutDora(), scCottageRoomsALeaveToValeEast(), scCottageRoomsALeaveToValeNorth(), scCottageRoomsALeaveToValePlazaEast(), scCottageRoomsALeaveToValePlazaNorth(), scCottageRoomsALeaveToValePlazaSouth(), scCottageRoomsALeaveToValePlazaWest(), scCottageRoomsALeaveToValeSouth(), scCottageRoomsALeaveToValeWest(), scCottageRoomsATalkToArmorMerchant(), scCottageRoomsATalkToItemMerchant(), scCottageRoomsATalkToWeaponMerchant() and scCottageRoomsAWorryAboutTravelersHealth().

Referenced by scGetCues().

Definition at lines 82 and 1549 of file cottage_rooms_a.c.