Skip to Content
The Alchemy Project

src/scene/imil.c

Imil, the snowbound village north of the Goma Range, near the lighthouse that long ago held the Water of Hermes, and its houses and Sanctum. More…

Macros

NameDescription
#defineSNOWMAN_MOVED_COLUMN 15The map metatile Move leaves the snowman on, the river's ice one west of where it stands at (262, 124).
#defineSNOWMAN_MOVED_ROW 7
#defineIMIL_FACES_COUNTER (facing) FACING_IS_NORTH((Uint16)(facing))
#defineIMIL_FACES_COUNTER_HALFWORD (facing)
#defineICE_SLIDE_HEADINGS ImilSlideHeadings

Enumerations

NameDescription
enumIMIL_VILLAGE_ACTOR_ID { ACTOR_FREEZING_YOUNG_MAN, ACTOR_GREETING_BOY, ACTOR_STRONGMA … }The village's actors (Imil), numbering ImilTownActorPlacements' rows, and ImilTownActorPlacementsCured's, from ACTOR_FIRST_PLACED.
enumICE_ROOMS_ACTOR_ID { ACTOR_OLD_WOMAN, ACTOR_OLD_MAN, ACTOR_OLD_MANS_BED, ACTOR_SI … }The actors of the houses and the Sanctum (IceRooms), numbering ImilRoomActorPlacements' rows from ACTOR_FIRST_PLACED.
enumIMIL_TOWN_FLAG { FLAG_IMIL_NO_FOOTPRINTS, FLAG_IMIL_FOOTPRINTS, FLAG_IMIL_SNO … }The village's own temporary flags, which last until the party leaves the map.
enumanonymous enum { SHOP_IMIL_WEAPONS, SHOP_IMIL_ARMOR, SHOP_IMIL_ITEMS }Imil's shops, by their numbers in the shop table.
enumanonymous enum { INN_ID_IMIL }Imil's inn, as mnInnCheckIn numbers the inns.
enumIMIL_METATILE_BEHAVIOR { METATILE_BEHAVIOR_IMIL_PATH_TO_FALLS_CAVE, METATILE_BEHAVIOR … }The metatile behaviors the village's step cues answer.
enumICE_ROOMS_METATILE_BEHAVIOR { METATILE_BEHAVIOR_ICE_ROOMS_WEAPON_COUNTER, METATILE_BEHAVIO … }The weapon and armor counters' metatile behaviors in the shop.
enumanonymous enum { IMIL_ANIMATION_LIE_IN_BED }The item merchant lying in bed, only her head above the covers (SPRITE_WOMAN_IN_GREEN_DRESS, woman_in_green_dress.png).

Functions

NameDescription
static voidscImilMeetMiaAtOldCouplesHouse (void)Mia's healing, the first time the party enters the old couple's house once Megan has told them Mia went there: the party finds her at the old man's bedside.
static voidscImilMiaCastsPlyOnOldMan (void)Mia casts Ply on the old man in bed, and he bobs up and speaks as it ends.
static voidscImilSpawnChimneySmoke (void)Smoke rises from the chimneys of Imil's five houses, staggered over each second.
static voidscImilUpdateFootprints (void)Isaac leaves no footprints on the frozen river or on the raised ground under the big tree, and leaves them everywhere else in the snow; checked each tick while the party is in the village.
static voidscImilPlaceMovedSnowman (void)Move on the snowman on the east bank at the foot of the frozen falls, pushed west onto the river's ice (metatile (15, 7)): it stands there for the rest of the visit, a block that stops Isaac's slides up the river beside the way into Imil Falls Cave.
static voidscImilArriveFromFallsCave (void)Isaac comes back out of Imil Falls Cave through the frozen waterfall (IMIL_FROM_IMIL_FALLS_CAVE) and walks down onto the bank below it.
static voidscImilMiaSaysFarewellToApprentices (void)Mia's farewell, the first time the party enters the Imil Sanctum after Saturos is beaten: her apprentices Megan and Justin tell her the lighthouse is lit, and she leaves the village in their hands to go on with the party.
static voidscLeaderSlideOnIce (void)Isaac slides along Imil's frozen river the way the pad points, turning toward it as he goes, until a bank or a block stops him.
static Sint32scImilUpdateTremble (ACTOR *actor)A sick person trembles: a quick squash, then a pause.
const SCENE_ENTRANCE *scGetEntrances (void)Imil is two scenes: the village, and its houses and Sanctum.
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)Once Saturos is beaten at Mercury Lighthouse, the villagers are well again.
static voidscImilSlideOnIce (void)Isaac steps onto the frozen river running down the middle of Imil and slides along it the way the pad points, until a bank or a block stops him.
const CUE *scGetCues (void)The village's, or the houses' and the Sanctum's, conversations and Psynergy targets.
static voidscImilTalkToFreezingYoungMan (void)Isaac talks to the young man shivering by the north-west house, before Saturos is beaten: he sneezes and asks whether Mia is here yet, or, while she travels with the party, says the epidemic will just come back next year.
static voidscImilReadFreezingYoungMansMind (void)Mind Read on the young man shivering by the north-west house, before Saturos is beaten: Mia should be here by now, or, while she travels with the party, he cannot see why anyone would exercise in this cold.
static voidscImilGreetVisitor (void)Isaac talks to the small boy wandering the south of Imil, before Saturos is beaten: he turns and asks whether Isaac is new in Imil, and warns of the cold going around or doubts the answer.
static voidscImilTalkToStrongmanKeepingInShape (void)Isaac talks to the strongman exercising on the east ledge: he counts "One, two, three, four!", stops, and turns to talk.
static voidscImilTalkToOldMan (void)Isaac talks to the old man in the old couple's house, the first house from the south entrance: before Mia has been sent for he moans "Oooh...
static voidscImilAskAboutWeapons (void)Isaac talks to the weapon seller lying sick in bed, before Saturos is beaten: he asks whether the party wants weapons, and coughs that he cannot sell until he is cured, or blames the travelers from down south for the disease and tells them to begone.
static voidscImilAskAboutRestaurantMenu (void)Isaac talks to the young man who keeps Imil's restaurant, before Saturos is beaten: he asks whether the party wants to see the menu.
static voidscImilTalkToMegan (void)Isaac talks to Megan in the Imil Sanctum before Saturos is beaten: she asks whether the party has visited the old couple near the entrance of town, where Mia went (FLAG_IMIL_HEARD_MIA_WENT_TO_COUPLE).
static voidscImilReadMegansMind (void)Mind Read on Megan in the Imil Sanctum, before Saturos is beaten: Mia had a bad feeling about something, or, while Mia travels with the party, they must help her.
static voidscImilTalkToOldWoman (void)Isaac talks to the old woman in the old couple's house after Mia has been sent for and met: she asks what happened in the lighthouse to the northeast.
static voidscImilReadOldWomanMind (void)Mind Read on the old woman in the old couple's house, before Saturos is beaten: about Mia running all over town, then her husband's exaggerating once Mia is sent for, then Mia's clan once the party has met her.
static voidscImilTalkToOldManInBed (void)After Mia's visit, Isaac talks to the old man across his bed in the old couple's house, which reaches him as talking to him does.
static voidscImilReadOldManInBedMind (void)After Mia's visit, Mind Read across the bed in the old couple's house: the old man thinks Mia is a good girl.
static voidscImilReadJustinsMind (void)Mind Read on Justin in the Imil Sanctum, before Saturos is beaten: he thinks the party are not bad people, or, while Mia travels with them, he feels grown-up serving as healer.
static voidscImilOpenDoorAndExit (void)Isaac walks north into one of Imil's six doors: everyone stops, the door opens and he walks in.
static voidscImilTalkToWeaponMerchant (void)Isaac talks to the weapon seller across the left counter of the weapon and armor shop once Saturos is beaten: the shop opens.
static voidscImilTalkToArmorMerchant (void)Isaac talks to the armor seller across the right counter of the weapon and armor shop once Saturos is beaten: the shop opens.
static voidscImilTalkToItemMerchant (void)Isaac talks to the item seller across her counter once Saturos is beaten, and the shop opens; spoken to from elsewhere she says the fountain has made her well.
static voidscImilTalkToInnkeeper (void)Isaac talks to the innkeeper across the counter of Imil's inn, and the inn opens.
static voidscImilTalkToJustin (void)Isaac talks to Justin across the counter of the Imil Sanctum: he offers the Sanctum's healing, the first time saying that he is only a student but can act as their healer.
Sint32scInit (void)Sets up the village or the room the party enters: in the village, the chimney smoke and the footprints, the snowman if Move has pushed it, and the walk down from Imil Falls Cave; in the rooms, the sick and the cured where the story has them, and Mia's two scripts.
static voidscImilUpdateSpiralIn (ACTOR *actor)Unused: an update function that spirals an actor in to a point 8 pixels above ImilEffectCenter, a pixel nearer and a 32nd of a turn round each tick, and releases it there.
static voidscImilSwayAndSpark (ACTOR *actor)Unused: an update function that sways an actor 6 pixels either side of ImilEffectCenter every 64 ticks and, every third tick, sheds a sparkle beside it (ImilSparkScript).
static voidscImilOldManBobsAndSpeaks (void)The old man bobs and speaks as Ply ends (its finishCallback).
static voidscImilInitSmoke (ACTOR *smoke)Readies a chimney's smoke puff: no motion of its own, at sprite priority 1, tinted blue and half its size.
static voidscImilDriftSmoke (ACTOR *actor)A smoke puff's update: it drifts east ever faster, rises half a pixel a tick and grows, and is released when its second is up.
static inline voidscImilStartSmoke (ACTOR *actor)Starts a newly created smoke puff on its one-second rise.
static voidscImilLeaveNorth (void)Walking onto the path north out of Imil: the leader faces north and goes into Imil Falls Cave (IMIL_TO_IMIL_FALLS_CAVE).

Variables

NameDescription
extern Sint16IceKeyHeadings []The heading for each combination of held directions (DPAD_INDEX), or KEY_HEADING_NONE where they point nowhere and the leader looks around.
extern Sint16ImilSlideHeadings []The way the leader slides on the ice for each combination of held directions (DPAD_INDEX); a diagonal slides east or west.
extern Sint32ImilTrembleScript []A sick person trembles (scImilUpdateTremble) for as long as it runs.
extern Sint32ImilOldWomanHurryScript []
extern Sint32ImilLeaderStepAsideScript []
extern Sint32ImilBobScript []Stretches an actor three eighths taller and lets it settle back, twice: the old man and the sick sellers bob up as they talk.
extern Sint32ImilSparkScript []A sparkle scImilSwayAndSpark sheds sinks two fifths of a pixel a tick for 72 ticks, then is released.
extern Sint32ImilMiaCheckRoomScript []
extern Sint32ImilMiaRunOutScript []
extern Sint32ImilFaceTargetScript []
extern Sint32ImilFollowMiaOutScript []
extern SCENE_ENTRANCEImilTownEntrances []
extern SCENE_ENTRANCEImilRoomEntrances []
extern Uint32ImilExits []
extern ACTOR_PLACEImilTownActorPlacements []
extern ACTOR_PLACEImilTownActorPlacementsCured []
extern ACTOR_PLACEImilRoomActorPlacements []
extern CUEImilTownCues []
extern CUEImilRoomCues []
extern Uint16 *ImilDoorMetatileSteps []Each door's opening, in the order of its exit (IMIL_HOUSE_SOUTHWEST first), as scImilOpenDoorAndExit reads it.
extern Sint16ImilDoorMetatilePoints [][2]The metatile (x, y) where each door's opening is drawn, in the same order.
extern Uint16ImilOldManSitUpSteps []The old man's bed as he sits up in it, and as he lies back.
extern Uint16ImilOldManLieBackSteps []
extern Sint32ImilEffectCenter []The point (x, y, z) the unused spiral and sway move around.
Uint16ImilSanctumDoorSteps []Each door's opening, as map grid animations.
Uint16ImilRoomsEastDoorSteps []
Uint16ImilInnDoorSteps []
Uint16ImilHouseSouthwestDoorSteps []
Uint16ImilHouseWestDoorSteps []
Uint16ImilHouseNortheastDoorSteps []

Description

Imil, the snowbound village north of the Goma Range, near the lighthouse that long ago held the Water of Hermes, and its houses and Sanctum.

Mia, the healer the party meets here, is of the Mercury Clan, who once lived in Imil and guarded the lighthouse. She is the last of them.

An epidemic has struck the village. Until the party has beaten Saturos at Mercury Lighthouse (FLAG_SATUROS_BEATEN_AT_MERCURY), the villagers are sick or waiting for Mia. By that time the lighthouse is lit and the fountain at its foot flows again.

Afterwards both scenes take their cured actor placements and lines, and the villagers talk of Mia leaving with the party. Some lines also change while she travels with them (FLAG_IN_PARTY(MIA)).

  • Imil (SceneIdImil), the village, on both banks of a frozen river that runs down its middle from a frozen waterfall. A young man shivers and sneezes in the snow by the north-west house, waiting for Mia, and a strongman counts out his exercises against the cold on the east ledge.

    Six doors, whose metatiles are their exits past EXIT_METATILE_BEHAVIOR_OFFSET, open into the houses, the shops, the inn and the Sanctum (SceneIdIceRooms). IMIL_TO_WORLD_MAP_SOUTH and IMIL_TO_WORLD_MAP_NORTH lead out to the World Map, and the dark opening in the frozen waterfall (METATILE_BEHAVIOR_IMIL_PATH_TO_FALLS_CAVE) leads into Imil Falls Cave, where Fever waits. Coming back out of it (IMIL_FROM_IMIL_FALLS_CAVE) Isaac walks down into the village.

    Two events run while the party is here. One makes smoke rise from the five houses' chimneys, staggered over each second. The other turns Isaac's footprints in the snow off on the frozen river and on the raised ground under the big tree, and on elsewhere.

    Stepping onto the river's ice (METATILE_BEHAVIOR_IMIL_ICE) slides Isaac the way the pad points, turning toward it as he goes, until a bank or a block stops him. The snowman on the east bank at the foot of the falls is the block the way to the cave needs: Move, cast from the snow, pushes it west onto the ice, where it stays for the rest of the visit and stops the last slide beside the way into the cave.

    Searching finds 9 coins in the jar outside a house on the upper level, a Vial in a chest above the first house, and a Lucky Medal in the upper left grave by the Sanctum.

  • Ice rooms (SceneIdIceRooms), a rooms map drawn in ice, all of them Imil's: inside the houses, the shops and the inn, whose area name is Imil. By ICE_ROOMS_IMIL_EAST_NORTHEAST the same scene is the Imil Sanctum.

    While the epidemic lasts the weapon and armor sellers are sick in bed, their two counters empty. Searching a counter shows the seller in his bed, saying the shop is closed. The item seller lies sick too, and her daughter minds the counter for her.

    In the Sanctum Mia's two apprentices keep her place. Justin offers healing across the counter, the first time saying he can act as the party's healer (FLAG_IMIL_JUSTIN_OFFERED_HEALING). Megan asks whether the party has visited the old couple who live near the entrance of town, where Mia went (FLAG_IMIL_HEARD_MIA_WENT_TO_COUPLE).

    In the old couple's house (ICE_ROOMS_HOUSE_SOUTHWEST) the old man moans for help, and talking to him sends his wife hurrying to fetch Mia. Either sets FLAG_IMIL_MIA_SENT_FOR, which changes the couple's lines and where they stand.

    Mia's healing is this scene's first script. It plays on entering the old couple's house once Megan has told the party where Mia went, before they have met her. The party finds her at the old man's bedside. She heals him with Ply, asks who the party are, and the Mercury Lighthouse flashes. "Was that... the lighthouse?"

    She runs out, and the party follows her (FLAG_IMIL_MET_MIA). At the lighthouse she goes on with them. Afterwards the old man lies in bed feeling much better, and talking or Mind Read across the bed (ACTOR_OLD_MANS_BED) reaches him.

    Once Saturos is beaten the sellers are well and open their shops across the counters.

    The second script is Mia's farewell, the first time the party then enters the Sanctum (FLAG_IMIL_MIA_SAID_FAREWELL). Her apprentices tell her the lighthouse has been lit, and Mia tells them she will join Isaac's quest to protect the world. They promise to protect Imil themselves, as members of the Mercury Clan, and she leaves the village in their hands, Megan and Justin.

    Searching finds an Empty Bottle in the chest in the old couple's house, a Sleep Bomb in a barrel in the weapon and armor shop, and Lucky Pepper in the inn's oven. The oven's find always answers first, so the line about the stew in it is unused.

Macros in detail

SNOWMAN_MOVED_COLUMN

#define SNOWMAN_MOVED_COLUMN 15

The map metatile Move leaves the snowman on, the river's ice one west of where it stands at (262, 124).

Referenced by scImilPlaceMovedSnowman().

Definition at line 219 of file imil.c.

SNOWMAN_MOVED_ROW

#define SNOWMAN_MOVED_ROW 7

Referenced by scImilPlaceMovedSnowman().

Definition at line 220 of file imil.c.

IMIL_FACES_COUNTER

#define IMIL_FACES_COUNTER(facing) FACING_IS_NORTH((Uint16)(facing))

#define IMIL_FACES_COUNTER(facing)

Referenced by scImilTalkToArmorMerchant(), scImilTalkToItemMerchant() and scImilTalkToWeaponMerchant().

Definition at lines 258 and 260 of file imil.c.

IMIL_FACES_COUNTER_HALFWORD

#define IMIL_FACES_COUNTER_HALFWORD(facing)

Referenced by scImilTalkToInnkeeper() and scImilTalkToJustin().

Definition at line 263 of file imil.c.

ICE_SLIDE_HEADINGS

#define ICE_SLIDE_HEADINGS ImilSlideHeadings

Referenced by scLeaderSlideOnIce().

Definition at line 1846 of file imil.c.

Enumerations in detail

IMIL_VILLAGE_ACTOR_ID

enum IMIL_VILLAGE_ACTOR_ID

The village's actors (Imil), numbering ImilTownActorPlacements' rows, and ImilTownActorPlacementsCured's, from ACTOR_FIRST_PLACED.

EnumeratorValueDescription
ACTOR_FREEZING_YOUNG_MANACTOR_FIRST_PLACEDA young man by the north-west house, shivering and sneezing.
ACTOR_GREETING_BOYA small boy who wanders the south of the village.
ACTOR_STRONGMAN_KEEPING_IN_SHAPEA strongman counting his exercises in the snow on the east ledge. "One, two, three, four..."
ACTOR_SNOWMANThe snowman on the east bank of the river at the foot of the frozen falls, which Move pushes onto the ice.

Definition at line 136 of file imil.c.

ICE_ROOMS_ACTOR_ID

enum ICE_ROOMS_ACTOR_ID

The actors of the houses and the Sanctum (IceRooms), numbering ImilRoomActorPlacements' rows from ACTOR_FIRST_PLACED.

The rows of Garet, Ivan and Mia take those characters' own slots.

EnumeratorValueDescription
ACTOR_OLD_WOMANACTOR_FIRST_PLACEDThe old couple's house.
ACTOR_OLD_MAN
ACTOR_OLD_MANS_BEDAn unseen actor on the old man's bed. Once Mia has healed him, talking or Mind Read here reaches him.
ACTOR_SICK_OLD_MANAn old man who shivers while the epidemic lasts.
ACTOR_WEAPON_MERCHANTAn old man, behind the left counter of the weapon and armor shop once he is well, in bed before.
ACTOR_ARMOR_MERCHANTAn old man, behind the right counter once he is well, in bed before.
ACTOR_ITEM_MERCHANTS_DAUGHTERA little girl who minds the shop while her mother is sick.
ACTOR_ITEM_MERCHANTThe item seller, behind her counter
ACTOR_INNKEEPERonce she is well, in bed before.
ACTOR_INN_ATTENDANTA woman who waits on the inn's guests.
ACTOR_RESTAURANT_OWNERA young man who keeps the restaurant and offers its menu.
ACTOR_JUSTINMia's apprentices, a small boy who keeps the Sanctum and a little girl ("I will be a kind girl", MsgImilIWillBeAKindGirl). Her farewell names them together, "Megan, Justin", without
ACTOR_MEGANsaying which is which; the boy is taken to be Justin and the girl Megan.
ACTOR_INVISIBLE_CRATEInvisible in the old couple's house. It is SPRITE_CRATE in SPRITE_COLOR_HIDDEN, every pixel transparent, so the player sees only the stack of logs in the room's metatiles. It is ACTOR_NOT_TARGETED, never a talk or Psynergy target. It is kept under the party as altin.c keeps its ground sprites. Vault's crate (log_rooms_a.c) uses the same sprite.

Definition at line 158 of file imil.c.

IMIL_TOWN_FLAG

enum IMIL_TOWN_FLAG

The village's own temporary flags, which last until the party leaves the map.

EnumeratorValueDescription
FLAG_IMIL_NO_FOOTPRINTSFLAG_SCENE_TEMP(0x00)Whether the leader
FLAG_IMIL_FOOTPRINTSFLAG_SCENE_TEMP(0x01)leaves footprints in the snow, from where he stands (scImilUpdateFootprints). The one set says which he last did.
FLAG_IMIL_SNOWMAN_MOVEDFLAG_SCENE_TEMP(0x03)Move has pushed the snowman to its place, for the rest of the visit.

Definition at line 202 of file imil.c.

anonymous enum

enum { SHOP_IMIL_WEAPONS, SHOP_IMIL_ARMOR, SHOP_IMIL_ITEMS }

Imil's shops, by their numbers in the shop table.

EnumeratorValueDescription
SHOP_IMIL_WEAPONS10
SHOP_IMIL_ARMOR11
SHOP_IMIL_ITEMS12

Definition at line 223 of file imil.c.

anonymous enum

enum { INN_ID_IMIL }

Imil's inn, as mnInnCheckIn numbers the inns.

EnumeratorValueDescription
INN_ID_IMIL4

Definition at line 231 of file imil.c.

IMIL_METATILE_BEHAVIOR

enum IMIL_METATILE_BEHAVIOR

The metatile behaviors the village's step cues answer.

EnumeratorValueDescription
METATILE_BEHAVIOR_IMIL_PATH_TO_FALLS_CAVE4The path north out of the village (scImilLeaveNorth).
METATILE_BEHAVIOR_IMIL_ICE90The frozen river's ice, slid across (scImilSlideOnIce).

Definition at line 237 of file imil.c.

ICE_ROOMS_METATILE_BEHAVIOR

enum ICE_ROOMS_METATILE_BEHAVIOR

The weapon and armor counters' metatile behaviors in the shop. Searching one facing north reaches its seller.

EnumeratorValueDescription
METATILE_BEHAVIOR_ICE_ROOMS_WEAPON_COUNTER10
METATILE_BEHAVIOR_ICE_ROOMS_ARMOR_COUNTER11

Definition at line 248 of file imil.c.

anonymous enum

enum { IMIL_ANIMATION_LIE_IN_BED }

The item merchant lying in bed, only her head above the covers (SPRITE_WOMAN_IN_GREEN_DRESS, woman_in_green_dress.png).

EnumeratorValueDescription
IMIL_ANIMATION_LIE_IN_BED5

Definition at line 269 of file imil.c.

Functions in detail

scImilMeetMiaAtOldCouplesHouse

static void scImilMeetMiaAtOldCouplesHouse(void)

Mia's healing, the first time the party enters the old couple's house once Megan has told them Mia went there: the party finds her at the old man's bedside. She heals him with Ply and asks who they are, and the whole room flashes pink. "Was that... the lighthouse?" She runs out, and the party hurries after her.

References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetDestination(), fdActorSetScript(), fdActorShowEmote(), fdActorStop(), fdActorWaitForScriptEndById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdMapGridAnimateMetatiles(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), ImilBobScript, ImilFaceTargetScript, ImilFollowMiaOutScript, ImilMiaCheckRoomScript, ImilMiaRunOutScript, ImilOldManLieBackSteps, ImilOldManSitUpSteps, scFieldActorWatchAndStartScript(), scImilMiaCastsPlyOnOldMan(), scPlaceAtLeader(), Sint32, state, syImportGameFlagSet(), sySoundPlay() and sySynch().

Referenced by scInit().

Definition at lines 279 and 1217 of file imil.c.

scImilMiaCastsPlyOnOldMan

static void scImilMiaCastsPlyOnOldMan(void)

Mia casts Ply on the old man in bed, and he bobs up and speaks as it ends.

References fdPsynergyEnd(), fdPsynergyLoadResources(), fdPsynergyRunHandler(), fdPsynergySetupActorPair(), fdPsynergyStartCast(), fdPsynergyStopCasterUpdate() and scImilOldManBobsAndSpeaks().

Referenced by scImilMeetMiaAtOldCouplesHouse().

Definition at lines 282 and 1483 of file imil.c.

scImilSpawnChimneySmoke

static void scImilSpawnChimneySmoke(void)

Smoke rises from the chimneys of Imil's five houses, staggered over each second.

References scFieldActorCreate(), scImilStartSmoke() and TickCount.

Referenced by scInit().

Definition at lines 286 and 1546 of file imil.c.

scImilUpdateFootprints

static void scImilUpdateFootprints(void)

Isaac leaves no footprints on the frozen river or on the raised ground under the big tree, and leaves them everywhere else in the snow; checked each tick while the party is in the village.

References fdActorGet(), gmFlagClear(), gmFlagGet(), Sint32 and syImportGameFlagSet().

Referenced by scInit().

Definition at lines 291 and 1582 of file imil.c.

scImilPlaceMovedSnowman

static void scImilPlaceMovedSnowman(void)

Move on the snowman on the east bank at the foot of the frozen falls, pushed west onto the river's ice (metatile (15, 7)): it stands there for the rest of the visit, a block that stops Isaac's slides up the river beside the way into Imil Falls Cave.

The metatile takes the attributes of the bank north of it (15, 6), so a slide stops against it. The row answers only while Isaac stands in the snow, not on the ice or the raised ground under the tree. In the Japanese, English and German editions the metatile is walled off wherever Move took the snowman; in the others only once the snowman is on it. scInit runs it again when the village reloads with FLAG_IMIL_SNOWMAN_MOVED set.

References fdActorGet(), fdActorSetSpritePriority(), fdMapGridCopyMetatileAttributes(), Sint32 and syImportGameFlagSet().

Referenced by ImilTownCues and scInit().

Definition at lines 304 and 1629 of file imil.c.

scImilArriveFromFallsCave

static void scImilArriveFromFallsCave(void)

Isaac comes back out of Imil Falls Cave through the frozen waterfall (IMIL_FROM_IMIL_FALLS_CAVE) and walks down onto the bank below it.

References fdActorMoveToAndWait(), fdScriptEnd(), fdScriptStart() and fdScriptStartScreenTransition().

Referenced by scInit().

Definition at lines 308 and 1667 of file imil.c.

scImilMiaSaysFarewellToApprentices

static void scImilMiaSaysFarewellToApprentices(void)

Mia's farewell, the first time the party enters the Imil Sanctum after Saturos is beaten: her apprentices Megan and Justin tell her the lighthouse is lit, and she leaves the village in their hands to go on with the party.

References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraGetActor(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), gmFlagClear(), scFieldScriptShowMessageThenWait(), scPlaceAtLeader(), state and syImportGameFlagSet().

Referenced by scInit().

Definition at lines 313 and 1676 of file imil.c.

scImilUpdateTremble

static Sint32 scImilUpdateTremble(ACTOR *actor)

A sick person trembles: a quick squash, then a pause.

References Sint32 and syRandomNext().

Referenced by ImilTrembleScript.

Definition at line 320 of file imil.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

Imil is two scenes: the village, and its houses and Sanctum.

References ImilRoomEntrances, ImilTownEntrances and MainRoutineStateWork.

Definition at line 356 of file imil.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 365 of file imil.c.

scGetExits

const Uint32 *scGetExits(void)

References ImilExits.

Definition at line 370 of file imil.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

Once Saturos is beaten at Mercury Lighthouse, the villagers are well again.

References fdAssignViewFlags(), gmFlagGet(), ImilRoomActorPlacements, ImilTownActorPlacements, ImilTownActorPlacementsCured and MainRoutineStateWork.

Definition at line 376 of file imil.c.

scImilSlideOnIce

static void scImilSlideOnIce(void)

Isaac steps onto the frozen river running down the middle of Imil and slides along it the way the pad points, until a bank or a block stops him.

References scLeaderSlideOnIce().

Referenced by ImilTownCues.

Definition at line 404 of file imil.c.

scGetCues

const CUE *scGetCues(void)

The village's, or the houses' and the Sanctum's, conversations and Psynergy targets.

References ImilRoomCues, ImilTownCues and MainRoutineStateWork.

Definition at line 411 of file imil.c.

scImilTalkToFreezingYoungMan

static void scImilTalkToFreezingYoungMan(void)

Isaac talks to the young man shivering by the north-west house, before Saturos is beaten: he sneezes and asks whether Mia is here yet, or, while she travels with the party, says the epidemic will just come back next year.

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

Referenced by ImilTownCues.

Definition at line 423 of file imil.c.

scImilReadFreezingYoungMansMind

static void scImilReadFreezingYoungMansMind(void)

Mind Read on the young man shivering by the north-west house, before Saturos is beaten: Mia should be here by now, or, while she travels with the party, he cannot see why anyone would exercise in this cold.

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

Referenced by ImilTownCues.

Definition at line 443 of file imil.c.

scImilGreetVisitor

static void scImilGreetVisitor(void)

Isaac talks to the small boy wandering the south of Imil, before Saturos is beaten: he turns and asks whether Isaac is new in Imil, and warns of the cold going around or doubts the answer.

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

Referenced by ImilTownCues.

Definition at line 463 of file imil.c.

scImilTalkToStrongmanKeepingInShape

static void scImilTalkToStrongmanKeepingInShape(void)

Isaac talks to the strongman exercising on the east ledge: he counts "One, two, three, four!", stops, and turns to talk.

While the epidemic lasts he stays indoors too much in the cold, he says; once Saturos is beaten he asks whether the lighthouse fountain is really back, and wonders what he trained so hard for.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait() and gmFlagGet().

Referenced by ImilTownCues.

Definition at line 481 of file imil.c.

scImilTalkToOldMan

static void scImilTalkToOldMan(void)

Isaac talks to the old man in the old couple's house, the first house from the south entrance: before Mia has been sent for he moans "Oooh... Help me...", and his wife hurries over and cries for someone to get Mia (FLAG_IMIL_MIA_SENT_FOR).

After Mia's visit he sits up in bed and says he feels much better; once Saturos is beaten he laughs at having said he would die of it.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorStop(), fdMapGridAnimateMetatiles(), fdMapGridPlayMapEdit(), fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagGet(), ImilLeaderStepAsideScript, ImilOldManLieBackSteps, ImilOldManSitUpSteps, ImilOldWomanHurryScript, ImilTrembleScript and syImportGameFlagSet().

Referenced by ImilRoomCues and scImilTalkToOldManInBed().

Definition at line 538 of file imil.c.

scImilAskAboutWeapons

static void scImilAskAboutWeapons(void)

Isaac talks to the weapon seller lying sick in bed, before Saturos is beaten: he asks whether the party wants weapons, and coughs that he cannot sell until he is cured, or blames the travelers from down south for the disease and tells them to begone.

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

Referenced by ImilRoomCues.

Definition at line 610 of file imil.c.

scImilAskAboutRestaurantMenu

static void scImilAskAboutRestaurantMenu(void)

Isaac talks to the young man who keeps Imil's restaurant, before Saturos is beaten: he asks whether the party wants to see the menu.

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

Referenced by ImilRoomCues.

Definition at line 622 of file imil.c.

scImilTalkToMegan

static void scImilTalkToMegan(void)

Isaac talks to Megan in the Imil Sanctum before Saturos is beaten: she asks whether the party has visited the old couple near the entrance of town, where Mia went (FLAG_IMIL_HEARD_MIA_WENT_TO_COUPLE). While Mia travels with them she says everyone counts on Mia instead.

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

Referenced by ImilRoomCues.

Definition at line 637 of file imil.c.

scImilReadMegansMind

static void scImilReadMegansMind(void)

Mind Read on Megan in the Imil Sanctum, before Saturos is beaten: Mia had a bad feeling about something, or, while Mia travels with the party, they must help her.

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

Referenced by ImilRoomCues.

Definition at line 662 of file imil.c.

scImilTalkToOldWoman

static void scImilTalkToOldWoman(void)

Isaac talks to the old woman in the old couple's house after Mia has been sent for and met: she asks what happened in the lighthouse to the northeast.

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

Referenced by ImilRoomCues.

Definition at line 681 of file imil.c.

scImilReadOldWomanMind

static void scImilReadOldWomanMind(void)

Mind Read on the old woman in the old couple's house, before Saturos is beaten: about Mia running all over town, then her husband's exaggerating once Mia is sent for, then Mia's clan once the party has met her.

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

Referenced by ImilRoomCues.

Definition at line 694 of file imil.c.

scImilTalkToOldManInBed

static void scImilTalkToOldManInBed(void)

After Mia's visit, Isaac talks to the old man across his bed in the old couple's house, which reaches him as talking to him does.

References scImilTalkToOldMan().

Referenced by ImilRoomCues.

Definition at line 719 of file imil.c.

scImilReadOldManInBedMind

static void scImilReadOldManInBedMind(void)

After Mia's visit, Mind Read across the bed in the old couple's house: the old man thinks Mia is a good girl.

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

Referenced by ImilRoomCues.

Definition at line 726 of file imil.c.

scImilReadJustinsMind

static void scImilReadJustinsMind(void)

Mind Read on Justin in the Imil Sanctum, before Saturos is beaten: he thinks the party are not bad people, or, while Mia travels with them, he feels grown-up serving as healer.

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

Referenced by ImilRoomCues.

Definition at line 738 of file imil.c.

scImilOpenDoorAndExit

static void scImilOpenDoorAndExit(void)

Isaac walks north into one of Imil's six doors: everyone stops, the door opens and he walks in.

References fdActorCenterAndWalk(), fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdActorSetSpritePriority(), fdMapGridPlayMapEdit(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), ImilDoorMetatilePoints, ImilDoorMetatileSteps, Sint32, state, syImportScriptSetExitRequest() and sySoundPlay().

Referenced by ImilTownCues.

Definition at line 757 of file imil.c.

scImilTalkToWeaponMerchant

static void scImilTalkToWeaponMerchant(void)

Isaac talks to the weapon seller across the left counter of the weapon and armor shop once Saturos is beaten: the shop opens.

Spoken to from elsewhere he says he has lost business to catch up on. Before then, searching the empty counter shows him sick in bed, saying the store is closed until they get well.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorRunScriptAndWait(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagGet(), ImilBobScript, mnShopRun() and Sint32.

Referenced by ImilRoomCues.

Definition at line 814 of file imil.c.

scImilTalkToArmorMerchant

static void scImilTalkToArmorMerchant(void)

Isaac talks to the armor seller across the right counter of the weapon and armor shop once Saturos is beaten: the shop opens.

Spoken to from elsewhere he says it was a shame to close for a cold. Before then, searching the empty counter shows him sick in bed, too sick to do business.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorRunScriptAndWait(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagGet(), ImilBobScript, mnShopRun() and Sint32.

Referenced by ImilRoomCues.

Definition at line 861 of file imil.c.

scImilTalkToItemMerchant

static void scImilTalkToItemMerchant(void)

Isaac talks to the item seller across her counter once Saturos is beaten, and the shop opens; spoken to from elsewhere she says the fountain has made her well.

Before then her daughter minds the counter: across it she says her mother is sick and opens the shop herself, and from elsewhere she says her father is a lumberjack working in Kolima.

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

Referenced by ImilRoomCues.

Definition at line 909 of file imil.c.

scImilTalkToInnkeeper

static void scImilTalkToInnkeeper(void)

Isaac talks to the innkeeper across the counter of Imil's inn, and the inn opens. From elsewhere the innkeeper wonders why two groups of travelers came through the snows, or, once Saturos is beaten, asks whether it is time for the party to leave.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), gmFlagGet() and mnInnCheckIn().

Referenced by ImilRoomCues.

Definition at line 957 of file imil.c.

scImilTalkToJustin

static void scImilTalkToJustin(void)

Isaac talks to Justin across the counter of the Imil Sanctum: he offers the Sanctum's healing, the first time saying that he is only a student but can act as their healer.

From elsewhere he asks whether they are looking for Mia, says he is the healer while she is out, or, once Saturos is beaten, that she is going on a journey with them.

References fdActorFaceDirection(), fdActorGet(), fdScriptAskYesNo(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), gmFlagGet(), mnSanctumRun() and syImportGameFlagSet().

Referenced by ImilRoomCues.

Definition at line 994 of file imil.c.

scInit

Sint32 scInit(void)

Sets up the village or the room the party enters: in the village, the chimney smoke and the footprints, the snowman if Move has pushed it, and the walk down from Imil Falls Cave; in the rooms, the sick and the cured where the story has them, and Mia's two scripts.

References fdActorGet(), fdActorSetAnimation(), fdActorSetMovementTypeById(), fdActorSetScript(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdScriptGetFlag(), gmFlagClear(), gmFlagGet(), ImilTrembleScript, MainRoutineStateWork, scImilArriveFromFallsCave(), scImilMeetMiaAtOldCouplesHouse(), scImilMiaSaysFarewellToApprentices(), scImilPlaceMovedSnowman(), scImilSpawnChimneySmoke(), scImilUpdateFootprints(), Sint32, sySetTickEvent() and sySynch().

Definition at line 1041 of file imil.c.

scImilUpdateSpiralIn

static void scImilUpdateSpiralIn(ACTOR *actor)

Unused: an update function that spirals an actor in to a point 8 pixels above ImilEffectCenter, a pixel nearer and a 32nd of a turn round each tick, and releases it there. No actor is given it.

References fdActorRelease(), ImilEffectCenter, Sint32 and syVectorAddPolarOffset().

Definition at line 1406 of file imil.c.

scImilSwayAndSpark

static void scImilSwayAndSpark(ACTOR *actor)

Unused: an update function that sways an actor 6 pixels either side of ImilEffectCenter every 64 ticks and, every third tick, sheds a sparkle beside it (ImilSparkScript). No actor is given it.

References fdActorSelectAnimation(), fdActorSetSpriteColor(), fdActorSetSpriteFlags(), fdActorStartScript(), ImilEffectCenter, ImilSparkScript, scFieldActorCreate(), Sint32, syMulFX(), syRandomNext(), sySin(), syVectorAddPolarOffset() and TickCount.

Definition at line 1442 of file imil.c.

scImilOldManBobsAndSpeaks

static void scImilOldManBobsAndSpeaks(void)

The old man bobs and speaks as Ply ends (its finishCallback).

References fdActorSetScript(), fdScriptShowMessage() and ImilBobScript.

Referenced by scImilMiaCastsPlyOnOldMan().

Definition at line 1476 of file imil.c.

scImilInitSmoke

static void scImilInitSmoke(ACTOR *smoke)

Readies a chimney's smoke puff: no motion of its own, at sprite priority 1, tinted blue and half its size.

References fdActorSetSpriteColor() and fdActorSetSpriteFlags().

Referenced by scImilStartSmoke().

Definition at line 1499 of file imil.c.

scImilDriftSmoke

static void scImilDriftSmoke(ACTOR *actor)

A smoke puff's update: it drifts east ever faster, rises half a pixel a tick and grows, and is released when its second is up.

References fdActorRelease().

Referenced by scImilStartSmoke().

Definition at line 1519 of file imil.c.

scImilStartSmoke

static inline void scImilStartSmoke(ACTOR *actor)

Starts a newly created smoke puff on its one-second rise.

References fdActorSelectAnimation(), scImilDriftSmoke() and scImilInitSmoke().

Referenced by scImilSpawnChimneySmoke().

Definition at line 1535 of file imil.c.

scImilLeaveNorth

static void scImilLeaveNorth(void)

Walking onto the path north out of Imil: the leader faces north and goes into Imil Falls Cave (IMIL_TO_IMIL_FALLS_CAVE).

References fdActorGet(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWaitTransitionTicks(), syImportScriptSetExitRequest() and sySoundPlay().

Referenced by ImilTownCues.

Definition at line 1657 of file imil.c.

Variables in detail

ImilSlideHeadings

extern Sint16 ImilSlideHeadings[]

Sint16 ImilSlideHeadings[]

The way the leader slides on the ice for each combination of held directions (DPAD_INDEX); a diagonal slides east or west.

Definition at lines 109 and 1854 of file imil.c.

ImilTrembleScript

extern Sint32 ImilTrembleScript[]

Sint32 ImilTrembleScript[]

A sick person trembles (scImilUpdateTremble) for as long as it runs.

References scImilUpdateTremble() and Sint32.

Referenced by scImilTalkToOldMan() and scInit().

Definition at lines 110 and 1864 of file imil.c.

ImilOldWomanHurryScript

extern Sint32 ImilOldWomanHurryScript[]

Sint32 ImilOldWomanHurryScript[]

References Sint32.

Referenced by scImilTalkToOldMan().

Definition at lines 111 and 1869 of file imil.c.

ImilLeaderStepAsideScript

extern Sint32 ImilLeaderStepAsideScript[]

Sint32 ImilLeaderStepAsideScript[]

References Sint32.

Referenced by scImilTalkToOldMan().

Definition at lines 112 and 1882 of file imil.c.

ImilBobScript

extern Sint32 ImilBobScript[]

Sint32 ImilBobScript[]

Stretches an actor three eighths taller and lets it settle back, twice: the old man and the sick sellers bob up as they talk.

References Sint32.

Referenced by scImilMeetMiaAtOldCouplesHouse(), scImilOldManBobsAndSpeaks(), scImilTalkToArmorMerchant() and scImilTalkToWeaponMerchant().

Definition at lines 113 and 1903 of file imil.c.

ImilSparkScript

extern Sint32 ImilSparkScript[]

Sint32 ImilSparkScript[]

A sparkle scImilSwayAndSpark sheds sinks two fifths of a pixel a tick for 72 ticks, then is released.

References Sint32.

Referenced by scImilSwayAndSpark().

Definition at lines 114 and 1918 of file imil.c.

ImilMiaCheckRoomScript

extern Sint32 ImilMiaCheckRoomScript[]

Sint32 ImilMiaCheckRoomScript[]

References Sint32.

Referenced by scImilMeetMiaAtOldCouplesHouse().

Definition at lines 115 and 1925 of file imil.c.

ImilMiaRunOutScript

extern Sint32 ImilMiaRunOutScript[]

Sint32 ImilMiaRunOutScript[]

References Sint32.

Referenced by scImilMeetMiaAtOldCouplesHouse().

Definition at lines 116 and 1940 of file imil.c.

ImilFaceTargetScript

extern Sint32 ImilFaceTargetScript[]

Sint32 ImilFaceTargetScript[]

References scTurnTowardTarget() and Sint32.

Referenced by scImilMeetMiaAtOldCouplesHouse().

Definition at lines 117 and 1954 of file imil.c.

ImilFollowMiaOutScript

extern Sint32 ImilFollowMiaOutScript[]

Sint32 ImilFollowMiaOutScript[]

References Sint32.

Referenced by scImilMeetMiaAtOldCouplesHouse().

Definition at lines 118 and 1959 of file imil.c.

ImilTownEntrances

extern SCENE_ENTRANCE ImilTownEntrances[]

SCENE_ENTRANCE ImilTownEntrances[]

Referenced by scGetEntrances().

Definition at lines 119 and 1968 of file imil.c.

ImilRoomEntrances

extern SCENE_ENTRANCE ImilRoomEntrances[]

SCENE_ENTRANCE ImilRoomEntrances[]

Referenced by scGetEntrances().

Definition at lines 120 and 1986 of file imil.c.

ImilExits

extern Uint32 ImilExits[]

Uint32 ImilExits[]

Referenced by scGetExits().

Definition at lines 121 and 2005 of file imil.c.

ImilTownActorPlacements

extern ACTOR_PLACE ImilTownActorPlacements[]

ACTOR_PLACE ImilTownActorPlacements[]

References ActorTrembleScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 122 and 2028 of file imil.c.

ImilTownActorPlacementsCured

extern ACTOR_PLACE ImilTownActorPlacementsCured[]

ACTOR_PLACE ImilTownActorPlacementsCured[]

Referenced by scGetActorPlacements().

Definition at lines 123 and 2040 of file imil.c.

ImilRoomActorPlacements

extern ACTOR_PLACE ImilRoomActorPlacements[]

ACTOR_PLACE ImilRoomActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 124 and 2052 of file imil.c.

ImilTownCues

extern CUE ImilTownCues[]

CUE ImilTownCues[]

References scImilGreetVisitor(), scImilLeaveNorth(), scImilOpenDoorAndExit(), scImilPlaceMovedSnowman(), scImilReadFreezingYoungMansMind(), scImilSlideOnIce(), scImilTalkToFreezingYoungMan() and scImilTalkToStrongmanKeepingInShape().

Referenced by scGetCues().

Definition at lines 125 and 2090 of file imil.c.

ImilRoomCues

extern CUE ImilRoomCues[]

CUE ImilRoomCues[]

References scImilAskAboutRestaurantMenu(), scImilAskAboutWeapons(), scImilReadJustinsMind(), scImilReadMegansMind(), scImilReadOldManInBedMind(), scImilReadOldWomanMind(), scImilTalkToArmorMerchant(), scImilTalkToInnkeeper(), scImilTalkToItemMerchant(), scImilTalkToJustin(), scImilTalkToMegan(), scImilTalkToOldMan(), scImilTalkToOldManInBed(), scImilTalkToOldWoman() and scImilTalkToWeaponMerchant().

Referenced by scGetCues().

Definition at lines 126 and 2147 of file imil.c.

ImilDoorMetatileSteps

extern Uint16 *ImilDoorMetatileSteps[]

Uint16 *ImilDoorMetatileSteps[]

Each door's opening, in the order of its exit (IMIL_HOUSE_SOUTHWEST first), as scImilOpenDoorAndExit reads it.

References ImilHouseNortheastDoorSteps, ImilHouseSouthwestDoorSteps, ImilHouseWestDoorSteps, ImilInnDoorSteps, ImilRoomsEastDoorSteps and ImilSanctumDoorSteps.

Referenced by scImilOpenDoorAndExit().

Definition at lines 127 and 2300 of file imil.c.

ImilDoorMetatilePoints

extern Sint16 ImilDoorMetatilePoints[][2]

Sint16 ImilDoorMetatilePoints[][2]

The metatile (x, y) where each door's opening is drawn, in the same order.

Referenced by scImilOpenDoorAndExit().

Definition at lines 128 and 2310 of file imil.c.

ImilOldManSitUpSteps

extern Uint16 ImilOldManSitUpSteps[]

Uint16 ImilOldManSitUpSteps[]

The old man's bed as he sits up in it, and as he lies back.

Referenced by scImilMeetMiaAtOldCouplesHouse() and scImilTalkToOldMan().

Definition at lines 129 and 2316 of file imil.c.

ImilOldManLieBackSteps

extern Uint16 ImilOldManLieBackSteps[]

Uint16 ImilOldManLieBackSteps[]

Referenced by scImilMeetMiaAtOldCouplesHouse() and scImilTalkToOldMan().

Definition at lines 130 and 2321 of file imil.c.

ImilEffectCenter

extern Sint32 ImilEffectCenter[]

Sint32 ImilEffectCenter[3]

The point (x, y, z) the unused spiral and sway move around.

References Sint32.

Referenced by scImilSwayAndSpark() and scImilUpdateSpiralIn().

Definition at lines 132 and 2327 of file imil.c.

ImilSanctumDoorSteps

Uint16 ImilSanctumDoorSteps[]

Each door's opening, as map grid animations.

Referenced by ImilDoorMetatileSteps.

Definition at line 2271 of file imil.c.

ImilRoomsEastDoorSteps

Uint16 ImilRoomsEastDoorSteps[]

Referenced by ImilDoorMetatileSteps.

Definition at line 2277 of file imil.c.

ImilInnDoorSteps

Uint16 ImilInnDoorSteps[]

Referenced by ImilDoorMetatileSteps.

Definition at line 2281 of file imil.c.

ImilHouseSouthwestDoorSteps

Uint16 ImilHouseSouthwestDoorSteps[]

Referenced by ImilDoorMetatileSteps.

Definition at line 2285 of file imil.c.

ImilHouseWestDoorSteps

Uint16 ImilHouseWestDoorSteps[]

Referenced by ImilDoorMetatileSteps.

Definition at line 2289 of file imil.c.

ImilHouseNortheastDoorSteps

Uint16 ImilHouseNortheastDoorSteps[]

Referenced by ImilDoorMetatileSteps.

Definition at line 2293 of file imil.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailSNOWMAN_MOVED_COLUMNSNOWMAN_MOVED_ROWIMIL_FACES_COUNTERIMIL_FACES_COUNTER_HALFWORDICE_SLIDE_HEADINGSEnumerations in detailIMIL_VILLAGE_ACTOR_IDICE_ROOMS_ACTOR_IDIMIL_TOWN_FLAGanonymous enumanonymous enumIMIL_METATILE_BEHAVIORICE_ROOMS_METATILE_BEHAVIORanonymous enumFunctions in detailscImilMeetMiaAtOldCouplesHousescImilMiaCastsPlyOnOldManscImilSpawnChimneySmokescImilUpdateFootprintsscImilPlaceMovedSnowmanscImilArriveFromFallsCavescImilMiaSaysFarewellToApprenticesscImilUpdateTremblescGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscImilSlideOnIcescGetCuesscImilTalkToFreezingYoungManscImilReadFreezingYoungMansMindscImilGreetVisitorscImilTalkToStrongmanKeepingInShapescImilTalkToOldManscImilAskAboutWeaponsscImilAskAboutRestaurantMenuscImilTalkToMeganscImilReadMegansMindscImilTalkToOldWomanscImilReadOldWomanMindscImilTalkToOldManInBedscImilReadOldManInBedMindscImilReadJustinsMindscImilOpenDoorAndExitscImilTalkToWeaponMerchantscImilTalkToArmorMerchantscImilTalkToItemMerchantscImilTalkToInnkeeperscImilTalkToJustinscInitscImilUpdateSpiralInscImilSwayAndSparkscImilOldManBobsAndSpeaksscImilInitSmokescImilDriftSmokescImilStartSmokescImilLeaveNorthVariables in detailImilSlideHeadingsImilTrembleScriptImilOldWomanHurryScriptImilLeaderStepAsideScriptImilBobScriptImilSparkScriptImilMiaCheckRoomScriptImilMiaRunOutScriptImilFaceTargetScriptImilFollowMiaOutScriptImilTownEntrancesImilRoomEntrancesImilExitsImilTownActorPlacementsImilTownActorPlacementsCuredImilRoomActorPlacementsImilTownCuesImilRoomCuesImilDoorMetatileStepsImilDoorMetatilePointsImilOldManSitUpStepsImilOldManLieBackStepsImilEffectCenterImilSanctumDoorStepsImilRoomsEastDoorStepsImilInnDoorStepsImilHouseSouthwestDoorStepsImilHouseWestDoorStepsImilHouseNortheastDoorSteps