Skip to Content
The Alchemy Project

src/scene/log_rooms_a.c

Log rooms A (SceneIdLogRoomsA), a rooms map drawn in logs, holds only Vault's rooms while Hammet's Shaman's Rod is missing and just after it is found: the insides of the town's houses, shops and inn, the inn's attic and its loft. More…

Structures

NameDescription
structLOG_ROOMS_A_STOP_CONNECTIONOne of a stop's links: the stop it leads to and the heading toward it.
structLOG_ROOMS_A_STOPA stop on the route network, two half metatiles square, with its links to others.

Macros

NameDescription
#defineLOG_STOP_COUNT 37The chase's stops (LogRoomsAStops), LOG_STOP_COUNT of them, are placed in 8-pixel half metatiles counted from (LOG_STOPS_ORIGIN_X, LOG_STOPS_ORIGIN_Z); each covers two by two of them, around its middle.
#defineLOG_STOPS_ORIGIN_X 64
#defineLOG_STOPS_ORIGIN_Z 624
#defineLOG_STOP_X (stop)The 16.16 middle of a stop.
#defineLOG_STOP_Z (stop)
#defineCRATE_MOVED_COLUMN 42Where Move leaves the crate aside, its map column, which opens the way up to the inn's loft.
#defineMAYOR_AFTER_THIEVES_ZWhere the mayor stands once the thieves are jailed: a step south of his place by the east wall, where the French, Spanish and Italian editions leave him.
#defineLOG_ROOMS_A_CORNERED_TICKS 30A cornering lasts half a second before the chase raises a script.
#defineFLAG_VAULT_CORNERING_SUSPECTS FLAG_SCENE_TEMP(0x50)The scene flag the inn keeps as FLAG_VAULT_LEADER_BESIDE_BONE (shared/vault_leader_beside_bone_flag.c) once the thieves are jailed means something else in the guests' room: the party is cornering the two suspects in the guests' room, so talking to Ivan or the suspects does nothing.
#defineNO_CONNECTIONA link: the stop it leads to and the heading toward it, kept as the facing's high byte.
#defineCONNECTION (stop, direction)

Enumerations

NameDescription
enumIVAN_JOINING_MESSAGE { IVAN_JOINING_ISAAC_CLASPS_HANDS, IVAN_JOINING_GARET_FEELS_MI … }The lines of Ivan's joining (scLogRoomsAIvanJoinsRodSearch), counted from MsgVaultThankHelpBelieve, where the script moves on to a new one.
enumanonymous enum { LOG_STOP_NONE }A link's stopIndex where a stop has fewer than three links.
enumLOG_ROOMS_A_LEADER_SPOT { LEADER_SPOT_WEST_BED_HEAD, LEADER_SPOT_MIDDLE_BED_HEAD, LEAD … }The spots the suspected leader runs between in the guests' room, as talking to him numbers them in his routeSpot: the three beds' heads, west to east, then their feet, east to west (LogRoomsALeaderRunsOn runs him from each to the next, and on round).
enumLOG_ROOMS_A_THIEF_SPOT { THIEF_SPOT_WEST_OF_BEDS, THIEF_SPOT_EAST_OF_BEDS, THIEF_SPOT … }The spots the suspected thief runs between, as talking to him numbers them in his routeSpot: west and east of the beds and the south corners, which LogRoomsAThiefRuns runs him between, and a spot on the south wall, (120, 696), from which he runs to either corner.
enumLOG_ROOMS_A_ROUTE_SPOT { LEADER_ROUTE_WEST_BED_HEAD, LEADER_ROUTE_MIDDLE_BED_HEAD, LE … }The same spots as the party's steps round the beds number them in the suspects' routeSpot (scLogRoomsASuspectsRunFromParty), from 1 and in an order of their own: the leader's heads and then feet west to east, the thief's beside the beds and then the south corners, west first.
enumanonymous enum { ENCOUNTER_SLOT_THIEVES }The thieves' battle, by its slot of ENCOUNTER_ZONE_SCRIPTED_VALE_VAULT: the Bandit and the Thief.
enumLOG_ROOMS_A_RAISED_CUE { LOG_ROOMS_A_CORNERED_SCRIPT_BASE, LOG_ROOMS_A_LEADER_CORNERE … }The chase adds the blocked-suspect mask (1 the leader, 2 the thief) to 200.
enumanonymous enum { ACTOR_GEM_OWNER, ACTOR_GEM_OWNERS_WIFE, ACTOR_VILLAGER_SUSPE … }The townspeople, named by what they say, numbering LogRoomsAActorPlacements' rows from ACTOR_FIRST_PLACED.
enumanonymous enum { FLAG_SUSPECTS_FLEEING }Area flags of Vault's area (0x300 to 0x3ff, kept while the party stays in Vault and its buildings).
enumanonymous enum { ACTOR_TIED_UP_VILLAGER, ACTOR_LOFT_MAYOR, ACTOR_THIEF_LEADER … }The inn's loft (LOG_ROOMS_A_LOFT_FROM_CRATE_ROOM and the two after the battle), where the thieves hid the stolen goods, numbering LogRoomsALoftActorPlacements' rows from ACTOR_FIRST_PLACED.
enumLOG_ROOMS_A_ANIMATION { ANIM_GARET_ARMS_SPREAD, ANIM_THIEF_TIED_UP, ANIM_THIEF_TIED_ … }Animations of the loft's sprites beyond ACTOR_ANIMATION, as their animation tables and ticks under graphics/sprite draw them.

Functions

NameDescription
static voidscLogRoomsAIvanJoinsRodSearch (void)Ivan jumps for joy, thanks Isaac and Garet, reads their names from Isaac's mind, shows them Mind Read on each other, and joins the party.
static voidscLogRoomsADiscussMindReading (void)Outside the guests' room after the Mind Read, Ivan tells what he learned: it is them, and they hid the stolen goods somewhere in the inn.
static voidscLogRoomsAFaceSuspectsTowardLeader (void)Every tick while the suspects are running from the party, both keep facing Isaac.
static voidscLogRoomsAAdvanceSuspectRoute (Sint32 actorId, Sint32 expected, Sint32 next, const Sint32 *actions)Sends the suspect on a run when he waits at the expected spot, and numbers the spot it ends at.
static voidscLogRoomsALoseToThieves (void)After a lost battle with the thieves in the inn's loft, the party lies collapsed while the thieves say these kids are nothing to worry about and keep the tied-up young man as their hostage.
static voidscLogRoomsAFightThievesAgain (void)Coming back up into the inn's loft after losing to the thieves, they are waiting: they complain the party won't go away, and attack again.
static voidscLogRoomsADefeatThieves (void)After the battle in the inn's loft, the beaten thieves lie gasping on the floor.
static voidscLogRoomsAReturnStolenGoods (void)With the thieves tied up, the mayor has them taken down the ladder to jail.
static voidscLogRoomsAOpenWindowTransition (void)Opens the window transition and waits one tick after it finishes.
static voidscLogRoomsAShowMessageAndWait (Sint32 actorId, Sint32 waitTicks)
static voidscLogRoomsAFaceActorAndWait (Sint32 actorId, Sint32 targetId, Sint32 waitTicks)
static voidscLogRoomsAFaceEachOtherAndWait (Sint32 firstId, Sint32 secondId, Sint32 waitTicks)
static voidscLogRoomsAPlayAnimationAndWait (Sint32 actorId, Sint32 animation, Sint32 waitTicks)Plays the animation, waits until it has taken over, then waits waitTicks.
static voidscStartMindRead (Sint32 casterId, Sint32 targetId)The caster begins Mind Read on the target.
static voidscEndMindRead (void)Finishes Mind Read and releases its effect actors.
static voidscLogRoomsAUpdateCorneringChase (void)Every tick of the chase in the guests' room, moves Ivan and the two suspects on from stop to stop round the beds, and raises the cornering script once a suspect has had nowhere to run for half a second.
static voidscLogRoomsASpreadOutToCornerSuspects (void)Sets the chase in the guests' room going: Isaac walks in, Garet and Ivan step out beside him, Garet spreads his arms, and the camera is held on the room.
const SCENE_ENTRANCE *scGetEntrances (void)The six rooms share one entrance table.
const SCENE_EXIT_REGION *scGetExitRegions (void)Returns the one exit region: the box around (648, 416) in the room with the crate, which takes LOG_ROOMS_A_VAULT_WEST back out to Vault.
const Uint32 *scGetExits (void)Both scenes share one exit table.
const ACTOR_PLACE *scGetActorPlacements (void)Places the townspeople, or, for the inn's loft (LOG_ROOMS_A_LOFT_FROM_CRATE_ROOM and the two after the battle), the tied-up villager, the mayor, the thieves, their chests and the found treasures.
static BoolscLogRoomsATryJumpTo (FIELD_POS *pos)Jumps the leader to the requested destination when nothing blocks it there.
static voidscLogRoomsAJumpAcrossHoleInAtticFloor (void)In the inn's attic, walking north or south at the dark hole in the floor (metatiles (41, 25) and (41, 27), either side of it), Isaac jumps across.
static voidscLogRoomsACheckCrateMoved (void)Move on the big crate in the inn's attic: once it has been pushed a metatile west, to map column 42, the way behind it into the loft opens.
static voidscLogRoomsATalkToWeaponMerchant (void)Spoken to across the counter of Vault's weapon and armor shop, the weapon merchant opens his shop.
static voidscLogRoomsATalkToArmorMerchant (void)Spoken to across the counter of Vault's weapon and armor shop, the armor merchant opens his shop.
static voidscLogRoomsATalkToInnkeeper (void)Spoken to across the counter of Vault's inn, the woman behind it offers a room.
static voidscLogRoomsAGaretHasNoTimeForMenu (void)Opening the menu while the party is cornering the suspects in the guests' room at Vault's inn only has Garet tell Isaac they don't have time for that.
static voidscLogRoomsASearchEmptyBarrel (void)Searching the barrel beside the girl at the inn before the thieves are caught, Isaac doesn't find anything.
static voidscLogRoomsASearchEmptyChest (void)Searching one of the three chests in the inn's loft, Isaac finds it empty.
const CUE *scGetCues (void)Returns the loft's scripts for the loft's three entrances, else the houses' scripts, which change once FLAG_VAULT_THIEVES_JAILED is set.
static voidscLogRoomsAStandAndShowMessage (Sint32 speakerId)Stands the speaker, faces the leader, and shows the selected message.
static voidscLogRoomsAAskYesNoAndAnswer (Sint32 speakerId)The speaker and the leader face each other, the speaker asks the selected question, and answers a yes with the next message and a no with the one after it.
static voidscLogRoomsABoyAsksAboutTravel (void)In the house in the middle of Vault, a small boy asks Isaac whether it is fun to see strange new places.
static voidscLogRoomsAOfferIvansSecret (void)Before Ivan has joined the party, a little girl at the mayor's house in Vault teases that Ivan has great powers and asks whether Isaac would like to know them.
static voidscLogRoomsATalkToItemMerchant (void)Spoken to across the counter of Vault's item shop, the item merchant opens her shop.
static voidscLogRoomsATalkAboutRocks (void)In the gem owner's house, his wife wishes their rocks were gems, or, once the thieves are jailed, is thankful they were caught before they stole the gem.
static voidscLogRoomsATalkAboutMissingThings (void)In Vault's item shop, Grandpa wonders whether he is missing something, or, once the thieves are jailed, says they hid the stolen treasure in the hotel's loft and more in the cemetery.
static voidscLogRoomsAMayorAsksHelpForIvan (void)In his house, Vault's mayor asks whether someone could please help Ivan.
static voidscLogRoomsAWarnAboutThreeStrangers (void)Before the thieves are caught, the girl at Vault's inn says the three strangers have fooled the innkeeper and his wife.
static voidscLogRoomsASuspectedLeaderDodges (void)Talking to, or reading the mind of, the suspect with long dark hair in the guests' room at Vault's inn makes him cry out to stop it and run round the beds to his next spot, on or back the way he was going by which side he is pushed from.
static inline voidscLogRoomsAStartThiefRun (ACTOR *actor, Sint32 scriptRow, Sint32 routePair, Uint16 routeDelta)Starts one of the suspected thief's runs (LogRoomsAThiefRuns) and moves his routeSpot on to the spot it ends at.
static voidscLogRoomsASuspectedThiefDodges (void)Talking to, or reading the mind of, the suspect in purple in the guests' room at Vault's inn makes him cry out to be left alone and run to his next spot by the beds or in a corner, picked by the way he is pushed.
static voidscLogRoomsAAskWhetherThievesCameFromLunpa (void)Once the thieves are jailed, the burly grey-haired man in the house in the middle of Vault asks whether they came from Lunpa.
static voidscLogRoomsABoyWorriesAboutFather (void)Once the thieves are jailed, the small boy in the house in the middle of Vault says his father is worried about the prisoners from Lunpa, and asks the party to protect them if Dodonpa's men attack.
static voidscLogRoomsAAskAboutDefeatingThieves (void)Once the thieves are jailed, a small boy at the mayor's house in Vault has heard the party defeated them.
static voidscLogRoomsAMayorGivesWaterOfLife (void)Once the thieves are jailed, Vault's mayor thanks Isaac in his house and gives the promised Water of Life, or asks him to come back with fewer things if his bags are full.
static voidscLogRoomsAOfferBones (void)Once the thieves are jailed, the girl at Vault's inn offers Isaac leftover bones from dinner, or asks whether he wants more.
static voidscLogRoomsAReadGemOwnersWifesMind (void)Mind Read on the gem owner's wife in their house: she wants a look at that rock, or, once the thieves are jailed, wonders whether it is worthless and that is why they didn't steal it.
static voidscLogRoomsAReadBoysMind (void)Mind Read on the small boy in the house in the middle of Vault: he wonders what the outside world is like, or, once the thieves are jailed, thinks his father looks sad with worry.
static voidscLogRoomsAReadGrandpasMind (void)Mind Read on Grandpa in Vault's item shop: he wonders whether the party could be the thieves and doesn't know who to trust anymore.
static voidscLogRoomsAReadMayorMind (void)Mind Read on Vault's mayor in his house: he laughs that it tickles, being tickled by a boy, or, once the thieves are jailed, thinks the cave in the Goma Range is dangerous, but the party will be okay.
static voidscLogRoomsAReadInnGirlsMind (void)Mind Read on the girl at Vault's inn: before the thieves are caught she thinks the master and his wife are blinded by money.
static voidscLogRoomsAMeetIvan (void)Talking to Ivan at the mayor's house in Vault: the first time, he reads Isaac's mind, admits his strange powers, learns they are called Psynergy, and asks for help getting Master Hammet's rod back.
static voidscLogRoomsAFreeVillagerAndFightThieves (void)In the inn's loft, Isaac cuts free the young man tied up on the floor.
static voidscLogRoomsALeaveGuestsRoom (void)Going down the stairs from the inn's upstairs in Vault takes the party to the floor below.
static voidscLogRoomsAEnterLoft (void)Once the crate is pushed aside, walking east from the inn's attic through the way behind it (metatile (45, 25)) takes the party into the loft.
static voidscLogRoomsALeaveLoft (void)Walking west out of the inn's loft (metatile (46, 25)) back into the attic; before the thieves have attacked, the tied-up young man groans as the party goes.
static voidscLogRoomsAApproachSuspects (void)In the guests' room upstairs at Vault's inn, once Ivan is with the party, the two suspects at the west end of the room start, see that weird kid is with them, and run off round the beds.
static voidscLogRoomsADiscussSuspiciousGuests (void)Stepping back out of the guests' room at Vault's inn after the suspects have run, the party talks it over: Mind Read is no use while they keep running, so Garet plans for the three to surround one of them, with Isaac in the lead.
static voidscLogRoomsAStartCorneringSuspects (void)Walking back into the guests' room at Vault's inn after the plan, the party sets out to corner the two suspects.
static voidscLogRoomsAResetSuspectRoutes (void)The suspects see the party back, cry that they're coming for them one-on-one, and run to their first spots again.
static inline voidscLogRoomsASetPartyImagePriority (void)Draws Isaac, Garet and Ivan in front of the room's furniture for the talk after the Mind Read.
static voidscLogRoomsAReadCorneredSuspectsMinds (void)Once one of the suspects is boxed in for half a second in the guests' room at Vault's inn, he cries out, Garet calls Ivan, and Ivan reads their minds while they wonder what he is doing; the screen flashes green and purple.
static voidscLogRoomsASuspectsRunFromParty (void)While the suspects are running from the party in the guests' room, Isaac stepping on one of the spots at the heads and feet of the beds (metatiles (4, 39) to (16, 43)) sends a suspect waiting at the matching spot on to the next.
Sint32scInit (void)Arriving in any room of Vault's houses, shops and inn sets the room up for the story so far, and in the loft plays its scripts.
static Sint32scLogRoomsAGetIvanVenusDjinnCount (void)Counts the Venus Djinn Ivan holds, which he gives back before he leaves the party.
static LOG_ROOMS_A_STOP *scLogRoomsAFindStopAtPos (Sint32 *pos)The chase's stop under a position (its x, y and z), or NULL between stops.
static LOG_ROOMS_A_STOP *scLogRoomsAChooseStopTowardFacing (LOG_ROOMS_A_STOP *stop, Sint16 *requestedFacing)The stop linked to this one in the direction nearest requestedFacing, which is turned to that link's heading; NULL when it has no link.
static BoolscLogRoomsAIsWithinHalfMetatileOfStop (Sint32 x, Sint32 z, Sint32 id)Whether the actor's destination, or where it stands when it has none, is within half a metatile (8 pixels) of the stop at (x, z).
static BoolscLogRoomsAIsWithinMetatileOfStop (Sint32 x, Sint32 z, Sint32 id)Whether the actor's destination, or where it stands when it has none, is within a metatile (16 pixels) of the stop at (x, z).
static Sint32scLogRoomsACheckStopBlocked (LOG_ROOMS_A_STOP *stop)Whether a stop is taken: -1 when Isaac stands within a metatile of it, or Ivan or a suspect within half a metatile; 1 when there is no stop; else 0.
static voidscLogRoomsAMoveActorToStop (ACTOR *actor, LOG_ROOMS_A_STOP *stop)Sends the actor walking to the middle of the stop.

Variables

NameDescription
extern LOG_ROOMS_A_STOPLogRoomsAStops [LOG_STOP_COUNT]The route network's stops, each with its links to the others.
extern Sint32LogRoomsABeatenThiefGasps []A beaten thief lying on the floor gasps twice, his sprite squashed and let go, then lies still for three seconds, over and over.
extern Sint32LogRoomsAFirstThiefComesIn []The leader's two men come in from the attic behind him and take their places beside him.
extern Sint32LogRoomsASecondThiefComesIn []
extern Sint32LogRoomsAVillagerLeavesLoft []The loft's walks once the thieves are beaten: the freed villager, and the thieves bound, go down the way to the room with the crate and are gone; the strongman and the mayor go round to the second and the first chest and come back from them.
extern Sint32LogRoomsATiedThiefLeavesLoft []
extern Sint32LogRoomsAToSecondChest []
extern Sint32LogRoomsAToFirstChest []
extern Sint32LogRoomsABackFromChests []
extern Sint32LogRoomsASuspectToWestBedHead []The suspects' runs about the guests' room, named by the spot each ends at among the room's three beds: the head of each bed (z 632), its foot (z 696), beside the outer beds (x 72 and 264, z 648) and the room's two south corners.
extern Sint32LogRoomsASuspectRoundToWestBedHead []
extern Sint32LogRoomsASuspectToMiddleBedHead []
extern Sint32LogRoomsASuspectToEastBedHead []
extern Sint32LogRoomsASuspectRoundToEastBedHead []
extern Sint32LogRoomsASuspectToWestBedFoot []
extern Sint32LogRoomsASuspectRoundToWestBedFoot []
extern Sint32LogRoomsASuspectToMiddleBedFoot []
extern Sint32LogRoomsASuspectToEastBedFoot []
extern Sint32LogRoomsASuspectRoundToEastBedFoot []
extern Sint32LogRoomsASuspectAcrossToWestOfBeds []
extern Sint32LogRoomsASuspectToWestOfBeds []
extern Sint32LogRoomsASuspectAcrossToEastOfBeds []
extern Sint32LogRoomsASuspectToEastOfBeds []
extern Sint32LogRoomsASuspectToSouthWestCorner []
extern Sint32LogRoomsASuspectAlongToSouthWestCorner []
extern Sint32LogRoomsASuspectToSouthEastCorner []
extern Sint32LogRoomsASuspectAlongToSouthEastCorner []
extern SCENE_ENTRANCELogRoomsAEntrances []
extern SCENE_EXIT_REGIONLogRoomsARegions []
extern Uint32LogRoomsAExits []
extern ACTOR_PLACELogRoomsAActorPlacements []
extern ACTOR_PLACELogRoomsALoftActorPlacements []
extern CUELogRoomsACues []
extern CUELogRoomsALoftCues []
extern CUELogRoomsACuesAfterThieves []
extern Sint32 *LogRoomsALeaderRunsOn []The suspected leader's runs when the party talks to him, by his routeSpot: on round the beds, from the heads' row eastward, or back the other way.
extern Sint32 *LogRoomsALeaderRunsBack []
extern Sint32 *LogRoomsAThiefRuns []The suspected thief's runs when the party talks to him, four to a row: scLogRoomsASuspectedThiefDodges picks the row by which way he is pushed and the run by his routeSpot.
Uint16LogRoomsACorneredTicksTicks in a row the chase has found a suspect cornered; at LOG_ROOMS_A_CORNERED_TICKS the chase raises its script.

Description

Log rooms A (SceneIdLogRoomsA), a rooms map drawn in logs, holds only Vault's rooms while Hammet's Shaman's Rod is missing and just after it is found: the insides of the town's houses, shops and inn, the inn's attic and its loft.

Every room is on one map, each an entrance with a camera box of its own. Vault's doors (vault.c) lead to the entrances named for them:

  • the gem owner's house, nearest the town's lower gate, where a big pale blue gem stands on the round table;
  • the house of a burly grey-haired man and a small boy, in the middle of town;
  • the inn, with the guests' room and its three beds upstairs, where the three strangers stay;
  • the item shop, which is also the home of Grandpa and his wife;
  • the weapon and armor shop;
  • the mayor's house, where Ivan is.

The ladder outside up to the inn's broken roof (LOG_ROOMS_A_VAULT_WEST) comes into the attic, a small room with a big crate and a dark hole in the floor. Behind the crate is the way into the loft, where the thieves hid the stolen goods.

The loft has actor placements and scripts of its own (scGetActorPlacements and scGetCues). FLAG_VAULT_THIEVES_JAILED chooses the other rooms' tables.

The story flags drive the rooms in order:

The shops and the inn open across their counters when Isaac faces north. Spoken to from anywhere else, their keepers only talk.

A jar, two barrels and a wooden box hold coins, a Sleep Bomb and a Mint, each found once, and two bookcases can be read.

The metatiles the scripts answer are LOG_ROOMS_A_METATILE_BEHAVIOR (log_rooms_a.h).

The three metatiles of the guests' room doorway, (14, 44) to (16, 44), change what they do as the story goes on. At first, stepping on them sets off scLogRoomsAApproachSuspects. After it they are rewritten from copies kept lower on the map, so that stepping on them on the way out plays scLogRoomsADiscussSuspiciousGuests, and after that, on the way back in, scLogRoomsAStartCorneringSuspects. Every later arrival with FLAG_VAULT_SUSPECTS_APPROACHED set rewrites them again.

Macros in detail

LOG_STOP_COUNT

#define LOG_STOP_COUNT 37

The chase's stops (LogRoomsAStops), LOG_STOP_COUNT of them, are placed in 8-pixel half metatiles counted from (LOG_STOPS_ORIGIN_X, LOG_STOPS_ORIGIN_Z); each covers two by two of them, around its middle.

Referenced by LogRoomsAStops and scLogRoomsAFindStopAtPos().

Definition at line 108 of file log_rooms_a.c.

LOG_STOPS_ORIGIN_X

#define LOG_STOPS_ORIGIN_X 64

Referenced by scLogRoomsAFindStopAtPos().

Definition at line 109 of file log_rooms_a.c.

LOG_STOPS_ORIGIN_Z

#define LOG_STOPS_ORIGIN_Z 624

Referenced by scLogRoomsAFindStopAtPos().

Definition at line 110 of file log_rooms_a.c.

LOG_STOP_X

#define LOG_STOP_X(stop)

The 16.16 middle of a stop.

Referenced by scLogRoomsACheckStopBlocked() and scLogRoomsAMoveActorToStop().

Definition at line 112 of file log_rooms_a.c.

LOG_STOP_Z

#define LOG_STOP_Z(stop)

Referenced by scLogRoomsACheckStopBlocked() and scLogRoomsAMoveActorToStop().

Definition at line 115 of file log_rooms_a.c.

CRATE_MOVED_COLUMN

#define CRATE_MOVED_COLUMN 42

Where Move leaves the crate aside, its map column, which opens the way up to the inn's loft.

Referenced by scLogRoomsACheckCrateMoved().

Definition at line 121 of file log_rooms_a.c.

MAYOR_AFTER_THIEVES_Z

#define MAYOR_AFTER_THIEVES_Z

Where the mayor stands once the thieves are jailed: a step south of his place by the east wall, where the French, Spanish and Italian editions leave him.

Referenced by scInit().

Definition at line 185 of file log_rooms_a.c.

LOG_ROOMS_A_CORNERED_TICKS

#define LOG_ROOMS_A_CORNERED_TICKS 30

A cornering lasts half a second before the chase raises a script.

Referenced by scLogRoomsAUpdateCorneringChase().

Definition at line 243 of file log_rooms_a.c.

FLAG_VAULT_CORNERING_SUSPECTS

#define FLAG_VAULT_CORNERING_SUSPECTS FLAG_SCENE_TEMP(0x50)

The scene flag the inn keeps as FLAG_VAULT_LEADER_BESIDE_BONE (shared/vault_leader_beside_bone_flag.c) once the thieves are jailed means something else in the guests' room: the party is cornering the two suspects in the guests' room, so talking to Ivan or the suspects does nothing.

Referenced by LogRoomsACues, scLogRoomsAReadCorneredSuspectsMinds() and scLogRoomsAStartCorneringSuspects().

Definition at line 306 of file log_rooms_a.c.

NO_CONNECTION

#define NO_CONNECTION

A link: the stop it leads to and the heading toward it, kept as the facing's high byte. An unused link is LOG_STOP_NONE with heading 255.

Referenced by LogRoomsAStops.

Definition at line 3855 of file log_rooms_a.c.

CONNECTION

#define CONNECTION(stop, direction)

Referenced by LogRoomsAStops.

Definition at line 3861 of file log_rooms_a.c.

Enumerations in detail

IVAN_JOINING_MESSAGE

enum IVAN_JOINING_MESSAGE

The lines of Ivan's joining (scLogRoomsAIvanJoinsRodSearch), counted from MsgVaultThankHelpBelieve, where the script moves on to a new one.

EnumeratorValueDescription
IVAN_JOINING_ISAAC_CLASPS_HANDS5
IVAN_JOINING_GARET_FEELS_MIND_READ6
IVAN_JOINING_GARET_CLASPS_HANDS13
IVAN_JOINING_GARET_READS_MIND14
IVAN_JOINING_IVAN_WILL_READ_TOWN22

Definition at line 90 of file log_rooms_a.c.

anonymous enum

enum { LOG_STOP_NONE }

A link's stopIndex where a stop has fewer than three links.

EnumeratorValueDescription
LOG_STOP_NONE255

Definition at line 100 of file log_rooms_a.c.

LOG_ROOMS_A_LEADER_SPOT

enum LOG_ROOMS_A_LEADER_SPOT

The spots the suspected leader runs between in the guests' room, as talking to him numbers them in his routeSpot: the three beds' heads, west to east, then their feet, east to west (LogRoomsALeaderRunsOn runs him from each to the next, and on round).

EnumeratorValueDescription
LEADER_SPOT_WEST_BED_HEAD
LEADER_SPOT_MIDDLE_BED_HEAD
LEADER_SPOT_EAST_BED_HEAD
LEADER_SPOT_EAST_BED_FOOT
LEADER_SPOT_MIDDLE_BED_FOOT
LEADER_SPOT_WEST_BED_FOOT

Definition at line 192 of file log_rooms_a.c.

LOG_ROOMS_A_THIEF_SPOT

enum LOG_ROOMS_A_THIEF_SPOT

The spots the suspected thief runs between, as talking to him numbers them in his routeSpot: west and east of the beds and the south corners, which LogRoomsAThiefRuns runs him between, and a spot on the south wall, (120, 696), from which he runs to either corner.

EnumeratorValueDescription
THIEF_SPOT_WEST_OF_BEDS
THIEF_SPOT_EAST_OF_BEDS
THIEF_SPOT_SOUTH_EAST_CORNER
THIEF_SPOT_SOUTH_WEST_CORNER
THIEF_SPOT_SOUTH_WALL

Definition at line 206 of file log_rooms_a.c.

LOG_ROOMS_A_ROUTE_SPOT

enum LOG_ROOMS_A_ROUTE_SPOT

The same spots as the party's steps round the beds number them in the suspects' routeSpot (scLogRoomsASuspectsRunFromParty), from 1 and in an order of their own: the leader's heads and then feet west to east, the thief's beside the beds and then the south corners, west first. The two numberings share routeSpot, so a suspect talked to after a step has sent him on, or sent on by a step after a talk, can run as from a spot he is not at.

EnumeratorValueDescription
LEADER_ROUTE_WEST_BED_HEAD1
LEADER_ROUTE_MIDDLE_BED_HEAD
LEADER_ROUTE_EAST_BED_HEAD
LEADER_ROUTE_WEST_BED_FOOT
LEADER_ROUTE_MIDDLE_BED_FOOT
LEADER_ROUTE_EAST_BED_FOOT
THIEF_ROUTE_WEST_OF_BEDS1
THIEF_ROUTE_EAST_OF_BEDS
THIEF_ROUTE_SOUTH_WEST_CORNER
THIEF_ROUTE_SOUTH_EAST_CORNER

Definition at line 221 of file log_rooms_a.c.

anonymous enum

enum { ENCOUNTER_SLOT_THIEVES }

The thieves' battle, by its slot of ENCOUNTER_ZONE_SCRIPTED_VALE_VAULT: the Bandit and the Thief.

EnumeratorValueDescription
ENCOUNTER_SLOT_THIEVES5

Definition at line 237 of file log_rooms_a.c.

LOG_ROOMS_A_RAISED_CUE

enum LOG_ROOMS_A_RAISED_CUE

The chase adds the blocked-suspect mask (1 the leader, 2 the thief) to 200.

EnumeratorValueDescription
LOG_ROOMS_A_CORNERED_SCRIPT_BASE200
LOG_ROOMS_A_LEADER_CORNERED
LOG_ROOMS_A_THIEF_CORNERED
LOG_ROOMS_A_BOTH_CORNERED

Definition at line 246 of file log_rooms_a.c.

anonymous enum

enum { ACTOR_GEM_OWNER, ACTOR_GEM_OWNERS_WIFE, ACTOR_VILLAGER_SUSPECTING_THE_NEIGHBOR, ACTOR_BOY_ASKING_ABOUT_TRAVEL, … }

The townspeople, named by what they say, numbering LogRoomsAActorPlacements' rows from ACTOR_FIRST_PLACED. Garet's and Ivan's rows take their own slots.

EnumeratorValueDescription
ACTOR_GEM_OWNERACTOR_FIRST_PLACEDA young man, to whose house a sparkling rock was blown from the volcano.
ACTOR_GEM_OWNERS_WIFEA woman with fair hair.
ACTOR_VILLAGER_SUSPECTING_THE_NEIGHBORA burly grey-haired man who distrusts the man next door. "My neighbor creeps me out."
ACTOR_BOY_ASKING_ABOUT_TRAVELA small boy who asks about travel.
ACTOR_GRANDPAAn old man with a cane who wonders what was stolen.
ACTOR_GRANDPAS_WIFEAn old woman, who says Grandpa keeps wondering if anything was stolen.
ACTOR_BOY_WISHING_TO_BE_OLDERA small boy. "I could help Ivan if I were just a little older."
ACTOR_GIRL_TELLING_A_SECRETA little girl who tells the party Ivan's secret once it helps him.
ACTOR_MAYORIvan's host, an old man with white hair.
ACTOR_MAYORS_WIFEA woman in a green dress.
ACTOR_GIRL_AT_THE_INNThe girl at the inn, as the Bone's description calls her, a young woman with fair hair. "I have a lot of leftover bones from dinner."
ACTOR_WEAPON_MERCHANT
ACTOR_ARMOR_MERCHANT
ACTOR_ITEM_MERCHANT
ACTOR_INN_STAFFA burly grey-haired man who works at the inn.
ACTOR_INNKEEPERA woman in an apron behind the inn's counter.
ACTOR_SUSPECTED_LEADERThe two guests at the inn the town suspects: the
ACTOR_SUSPECTED_THIEFthieves' leader and one of his men.
ACTOR_CRATEPushed aside to open a passage.

Definition at line 256 of file log_rooms_a.c.

anonymous enum

enum { FLAG_SUSPECTS_FLEEING }

Area flags of Vault's area (0x300 to 0x3ff, kept while the party stays in Vault and its buildings).

EnumeratorValueDescription
FLAG_SUSPECTS_FLEEINGFLAG_AREA_TEMP(0x00)Set while the two suspects run from the party, until the party steps aside to talk it over.

Definition at line 295 of file log_rooms_a.c.

anonymous enum

enum { ACTOR_TIED_UP_VILLAGER, ACTOR_LOFT_MAYOR, ACTOR_THIEF_LEADER, ACTOR_FIRST_THIEF, … }

The inn's loft (LOG_ROOMS_A_LOFT_FROM_CRATE_ROOM and the two after the battle), where the thieves hid the stolen goods, numbering LogRoomsALoftActorPlacements' rows from ACTOR_FIRST_PLACED.

EnumeratorValueDescription
ACTOR_TIED_UP_VILLAGERACTOR_FIRST_PLACEDvault.c's
ACTOR_LOFT_MAYORACTOR_YOUNG_MAN_FIXING_THE_ROOF, tied up while fixing the roof.
ACTOR_THIEF_LEADERSpeaks first and bargains for all three ("See, we're not so bad. How about it? Will you let us go?").
ACTOR_FIRST_THIEF
ACTOR_SECOND_THIEF
ACTOR_STRONGMAN_TYING_UP_THIEVESA strongman who comes up with the mayor and helps tie the thieves up.
ACTOR_STRONGMAN_OPENING_THE_CHESTSA strongman who comes up with the mayor and opens the chests.
ACTOR_FIRST_CHEST
ACTOR_SECOND_CHEST
ACTOR_THIRD_CHEST
ACTOR_FOUND_URNRises from the first chest.
ACTOR_FOUND_STATUERises from the second chest, stolen from the Sanctum.

Definition at line 311 of file log_rooms_a.c.

LOG_ROOMS_A_ANIMATION

enum LOG_ROOMS_A_ANIMATION

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

EnumeratorValueDescription
ANIM_GARET_ARMS_SPREAD12Garet seen from behind, his arms spread wide (garet.png).
ANIM_THIEF_TIED_UP5A thief standing bound, a rope wound round his arms (man_with_long_dark_hair.png, person_in_purple.png).
ANIM_THIEF_TIED_UP_WALK6Walking with the rope round his arms.
ANIM_THIEF_BEATEN9Lying on the floor (man_with_long_dark_hair.png, person_in_purple.png).

Definition at line 337 of file log_rooms_a.c.

Functions in detail

scLogRoomsAIvanJoinsRodSearch

static void scLogRoomsAIvanJoinsRodSearch(void)

Ivan jumps for joy, thanks Isaac and Garet, reads their names from Isaac's mind, shows them Mind Read on each other, and joins the party.

References fdActorFaceActor(), fdActorFaceEachOther(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorShowEmote(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdPsynergyRestoreMindReadPalette(), fdScriptAddPartyMember(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptWait(), mnFieldMessageShow(), scEndMindRead(), scLogRoomsAFaceActorAndWait(), scLogRoomsAFaceEachOtherAndWait(), scLogRoomsAPlayAnimationAndWait(), scLogRoomsAShowMessageAndWait() and scStartMindRead().

Referenced by scLogRoomsAMeetIvan().

Definition at lines 349 and 1270 of file log_rooms_a.c.

scLogRoomsADiscussMindReading

static void scLogRoomsADiscussMindReading(void)

Outside the guests' room after the Mind Read, Ivan tells what he learned: it is them, and they hid the stolen goods somewhere in the inn. Garet says they have to search it. A Yes gets Garet's leave it to us; a No, another plea, from Garet and then Ivan, and after three Garet vouches for Isaac's sense of duty.

References fdActorFaceActor(), fdActorFaceEachOther(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetSpritePriority(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraFollowActor(), fdCameraWaitForMove(), fdMapGridCenterOnFollowedPoint(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdSetCameraBounds(), gmPlayMusic(), scLogRoomsAFaceActorAndWait(), scLogRoomsAFaceEachOtherAndWait(), scLogRoomsAPlayAnimationAndWait(), scLogRoomsASetPartyImagePriority(), scLogRoomsAShowMessageAndWait(), Sint32 and state.

Referenced by scLogRoomsAReadCorneredSuspectsMinds().

Definition at lines 350 and 2086 of file log_rooms_a.c.

scLogRoomsAFaceSuspectsTowardLeader

static void scLogRoomsAFaceSuspectsTowardLeader(void)

Every tick while the suspects are running from the party, both keep facing Isaac.

References fdActorGet() and syAtan().

Referenced by scInit(), scLogRoomsAApproachSuspects(), scLogRoomsADiscussSuspiciousGuests() and scLogRoomsAReadCorneredSuspectsMinds().

Definition at lines 351 and 2549 of file log_rooms_a.c.

scLogRoomsAAdvanceSuspectRoute

static void scLogRoomsAAdvanceSuspectRoute(Sint32 actorId, Sint32 expected, Sint32 next, const Sint32 *actions)

Sends the suspect on a run when he waits at the expected spot, and numbers the spot it ends at.

References fdActorGet(), fdActorSetScript() and Sint32.

Referenced by scLogRoomsASuspectsRunFromParty().

Definition at lines 352 and 2341 of file log_rooms_a.c.

scLogRoomsALoseToThieves

static void scLogRoomsALoseToThieves(void)

After a lost battle with the thieves in the inn's loft, the party lies collapsed while the thieves say these kids are nothing to worry about and keep the tied-up young man as their hostage.

References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdActorWaitForMoveById(), fdActorWalkTo(), fdCameraFollowActor(), fdCameraWaitForMove(), fdMapGridCenterOnFollowedPoint(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptStart(), fdScriptWait(), scLogRoomsAFaceActorAndWait(), scLogRoomsAOpenWindowTransition(), scLogRoomsAPlayAnimationAndWait(), scLogRoomsAShowMessageAndWait() and Sint32.

Referenced by scInit().

Definition at lines 356 and 2564 of file log_rooms_a.c.

scLogRoomsAFightThievesAgain

static void scLogRoomsAFightThievesAgain(void)

Coming back up into the inn's loft after losing to the thieves, they are waiting: they complain the party won't go away, and attack again.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdCameraFollowActor(), fdCameraWaitForMove(), fdMapGridCenterOnFollowedPoint(), fdRequestBattleFromEncounterTable(), fdScriptSetAfterBattleDestination(), fdScriptSetDefeatDestination(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptWait(), scLogRoomsAFaceEachOtherAndWait(), scLogRoomsAOpenWindowTransition(), scLogRoomsAPlayAnimationAndWait(), scLogRoomsAShowMessageAndWait() and sySynch().

Referenced by scInit().

Definition at lines 357 and 2623 of file log_rooms_a.c.

scLogRoomsADefeatThieves

static void scLogRoomsADefeatThieves(void)

After the battle in the inn's loft, the beaten thieves lie gasping on the floor. The freed young man runs for the mayor, who comes up with two strongmen; the thieves are tied up.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraFollowActor(), fdCameraWaitForMove(), fdMapGridCenterOnFollowedPoint(), fdPsynergyRestoreMindReadPalette(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), LogRoomsABeatenThiefGasps, scEndMindRead(), scLogRoomsAFaceActorAndWait(), scLogRoomsAFaceEachOtherAndWait(), scLogRoomsAOpenWindowTransition(), scLogRoomsAPlayAnimationAndWait(), scLogRoomsAShowMessageAndWait(), scStartMindRead(), Sint32 and state.

Referenced by scInit().

Definition at lines 358 and 2693 of file log_rooms_a.c.

scLogRoomsAReturnStolenGoods

static void scLogRoomsAReturnStolenGoods(void)

With the thieves tied up, the mayor has them taken down the ladder to jail. The chests give back his urn, the gold statue stolen from the Sanctum and Master Hammet's Shaman's Rod; the mayor tells that Hammet was kidnapped by Dodonpa of Lunpa, and Ivan takes the rod and leaves the party to rescue him.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorMoveToAndWait(), fdActorRelease(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetDestination(), fdActorSetDestinationOffset(), fdActorSetScript(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWaitForScriptEndById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdChestOpenAndShowItem(), fdPartyRemoveMemberRestored(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagSet(), LogRoomsABackFromChests, LogRoomsATiedThiefLeavesLoft, LogRoomsAToFirstChest, LogRoomsAToSecondChest, LogRoomsAVillagerLeavesLoft, mnFieldMessageShow(), scLogRoomsAFaceActorAndWait(), scLogRoomsAFaceEachOtherAndWait(), scLogRoomsAGetIvanVenusDjinnCount(), scLogRoomsAPlayAnimationAndWait(), scLogRoomsAShowMessageAndWait(), scVaultReturnIsaacsDjinni(), Sint32, state and sySoundPlay().

Referenced by scInit().

Definition at lines 359 and 2951 of file log_rooms_a.c.

scLogRoomsAOpenWindowTransition

static void scLogRoomsAOpenWindowTransition(void)

Opens the window transition and waits one tick after it finishes.

References fdScriptStartScreenTransition(), fdScriptWait() and fdScriptWaitTransitionTicks().

Referenced by scInit(), scLogRoomsADefeatThieves(), scLogRoomsAFightThievesAgain() and scLogRoomsALoseToThieves().

Definition at lines 360 and 3478 of file log_rooms_a.c.

scLogRoomsAShowMessageAndWait

static void scLogRoomsAShowMessageAndWait(Sint32 actorId, Sint32 waitTicks)

References fdScriptShowMessage(), fdScriptWait() and Sint32.

Referenced by scInit(), scLogRoomsAApproachSuspects(), scLogRoomsADefeatThieves(), scLogRoomsADiscussMindReading(), scLogRoomsADiscussSuspiciousGuests(), scLogRoomsAFightThievesAgain(), scLogRoomsAFreeVillagerAndFightThieves(), scLogRoomsAIvanJoinsRodSearch(), scLogRoomsALoseToThieves(), scLogRoomsAMayorGivesWaterOfLife(), scLogRoomsAMeetIvan(), scLogRoomsAReadCorneredSuspectsMinds(), scLogRoomsAResetSuspectRoutes() and scLogRoomsAReturnStolenGoods().

Definition at lines 361 and 3487 of file log_rooms_a.c.

scLogRoomsAFaceActorAndWait

static void scLogRoomsAFaceActorAndWait(Sint32 actorId, Sint32 targetId, Sint32 waitTicks)

References fdActorFaceActor(), fdScriptWait() and Sint32.

Referenced by scLogRoomsAApproachSuspects(), scLogRoomsADefeatThieves(), scLogRoomsADiscussMindReading(), scLogRoomsADiscussSuspiciousGuests(), scLogRoomsAFreeVillagerAndFightThieves(), scLogRoomsAIvanJoinsRodSearch(), scLogRoomsALoseToThieves() and scLogRoomsAReturnStolenGoods().

Definition at lines 362 and 3493 of file log_rooms_a.c.

scLogRoomsAFaceEachOtherAndWait

static void scLogRoomsAFaceEachOtherAndWait(Sint32 firstId, Sint32 secondId, Sint32 waitTicks)

References fdActorFaceEachOther(), fdScriptWait() and Sint32.

Referenced by scLogRoomsAAskYesNoAndAnswer(), scLogRoomsADefeatThieves(), scLogRoomsADiscussMindReading(), scLogRoomsADiscussSuspiciousGuests(), scLogRoomsAFightThievesAgain(), scLogRoomsAFreeVillagerAndFightThieves(), scLogRoomsAIvanJoinsRodSearch(), scLogRoomsAMayorGivesWaterOfLife(), scLogRoomsAMeetIvan(), scLogRoomsAOfferBones(), scLogRoomsAReturnStolenGoods() and scLogRoomsAStandAndShowMessage().

Definition at lines 364 and 3500 of file log_rooms_a.c.

scLogRoomsAPlayAnimationAndWait

static void scLogRoomsAPlayAnimationAndWait(Sint32 actorId, Sint32 animation, Sint32 waitTicks)

Plays the animation, waits until it has taken over, then waits waitTicks.

References fdActorWaitForAnimationChange(), fdScriptWait(), Sint32 and syImportActorSetAnimation().

Referenced by scLogRoomsADefeatThieves(), scLogRoomsADiscussMindReading(), scLogRoomsADiscussSuspiciousGuests(), scLogRoomsAFightThievesAgain(), scLogRoomsAFreeVillagerAndFightThieves(), scLogRoomsAIvanJoinsRodSearch(), scLogRoomsALoseToThieves(), scLogRoomsAMayorAsksHelpForIvan(), scLogRoomsAMayorGivesWaterOfLife(), scLogRoomsAMeetIvan() and scLogRoomsAReturnStolenGoods().

Definition at lines 367 and 3509 of file log_rooms_a.c.

scLogRoomsAUpdateCorneringChase

static void scLogRoomsAUpdateCorneringChase(void)

Every tick of the chase in the guests' room, moves Ivan and the two suspects on from stop to stop round the beds, and raises the cornering script once a suspect has had nowhere to run for half a second.

References fdActorLookup(), fdActorSelectAnimation(), fdActorSetAttachedEffect(), LogRoomsACorneredTicks, scLogRoomsACheckStopBlocked(), scLogRoomsAChooseStopTowardFacing(), scLogRoomsAFindStopAtPos(), scLogRoomsAMoveActorToStop(), Sint32, state and syAtan().

Referenced by scLogRoomsAReadCorneredSuspectsMinds() and scLogRoomsASpreadOutToCornerSuspects().

Definition at lines 372 and 3677 of file log_rooms_a.c.

scLogRoomsASpreadOutToCornerSuspects

static void scLogRoomsASpreadOutToCornerSuspects(void)

Sets the chase in the guests' room going: Isaac walks in, Garet and Ivan step out beside him, Garet spreads his arms, and the camera is held on the room.

References fdActorFaceDirection(), fdActorSetAnimation(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdScriptClearFlag(), fdScriptEnd(), fdScriptStart(), fdSetCameraBounds(), LogRoomsACorneredTicks, scLogRoomsAResetSuspectRoutes(), scLogRoomsAUpdateCorneringChase(), sySetOrUpdateTickEvent() and sySoundPlay().

Referenced by scLogRoomsAStartCorneringSuspects().

Definition at lines 373 and 3818 of file log_rooms_a.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References LogRoomsAEntrances.

Definition at line 375 of file log_rooms_a.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Returns the one exit region: the box around (648, 416) in the room with the crate, which takes LOG_ROOMS_A_VAULT_WEST back out to Vault.

References LogRoomsARegions.

Definition at line 382 of file log_rooms_a.c.

scGetExits

const Uint32 *scGetExits(void)

References LogRoomsAExits.

Definition at line 387 of file log_rooms_a.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

Places the townspeople, or, for the inn's loft (LOG_ROOMS_A_LOFT_FROM_CRATE_ROOM and the two after the battle), the tied-up villager, the mayor, the thieves, their chests and the found treasures.

References fdAssignViewFlags(), LogRoomsAActorPlacements, LogRoomsALoftActorPlacements and MainRoutineStateWork.

Definition at line 395 of file log_rooms_a.c.

scLogRoomsATryJumpTo

static Bool scLogRoomsATryJumpTo(FIELD_POS *pos)

Jumps the leader to the requested destination when nothing blocks it there. Returns TRUE when it jumped.

References fdActorGet(), fdActorMoveToAndWait(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdScriptEnd(), fdScriptStart(), scFieldActorCheckMovementCollision(), sySoundPlay() and sySynch().

Definition at line 415 of file log_rooms_a.c.

scLogRoomsAJumpAcrossHoleInAtticFloor

static void scLogRoomsAJumpAcrossHoleInAtticFloor(void)

In the inn's attic, walking north or south at the dark hole in the floor (metatiles (41, 25) and (41, 27), either side of it), Isaac jumps across.

The jump also decides whether the crate at (43, 25), east of the hole's north side, can be moved. While Move pushes it, the crate goes by the overhead layer's ground (the map's rows from 60 on), where it may go only one metatile west, into (42, 85): every metatile around those two is floor 32 pixels up. As Isaac lands north, (42, 85) takes the high floor of the metatile west of it, and the crate cannot move; as he lands south, it takes the bare floor east of it again.

References fdActorGet(), fdMapGridCopyMetatileAttributes() and fdTryJumpForward().

Referenced by LogRoomsACues.

Definition at line 458 of file log_rooms_a.c.

scLogRoomsACheckCrateMoved

static void scLogRoomsACheckCrateMoved(void)

Move on the big crate in the inn's attic: once it has been pushed a metatile west, to map column 42, the way behind it into the loft opens.

References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart() and gmFlagSet().

Referenced by LogRoomsACues.

Definition at line 496 of file log_rooms_a.c.

scLogRoomsATalkToWeaponMerchant

static void scLogRoomsATalkToWeaponMerchant(void)

Spoken to across the counter of Vault's weapon and armor shop, the weapon merchant opens his shop. From anywhere else he says Hammet wasn't the only one robbed, or, once the thieves are jailed, that their stolen weapons were found rusted in the cemetery.

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

Referenced by LogRoomsACues and LogRoomsACuesAfterThieves.

Definition at line 511 of file log_rooms_a.c.

scLogRoomsATalkToArmorMerchant

static void scLogRoomsATalkToArmorMerchant(void)

Spoken to across the counter of Vault's weapon and armor shop, the armor merchant opens his shop. From anywhere else he is angry at the thieves, or, once they are jailed, warns the party to be prepared for the cave in Goma Range.

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

Referenced by LogRoomsACues and LogRoomsACuesAfterThieves.

Definition at line 539 of file log_rooms_a.c.

scLogRoomsATalkToInnkeeper

static void scLogRoomsATalkToInnkeeper(void)

Spoken to across the counter of Vault's inn, the woman behind it offers a room. From anywhere else she thinks it unfair to accuse the polite guests upstairs, or, once they are jailed, is shocked they hid the stolen goods in the loft.

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

Referenced by LogRoomsACues and LogRoomsACuesAfterThieves.

Definition at line 567 of file log_rooms_a.c.

scLogRoomsAGaretHasNoTimeForMenu

static void scLogRoomsAGaretHasNoTimeForMenu(void)

Opening the menu while the party is cornering the suspects in the guests' room at Vault's inn only has Garet tell Isaac they don't have time for that.

References fdLeaderStopMoving(), fdScriptSetMessageId() and fdScriptShowMessage().

Referenced by LogRoomsACues.

Definition at line 595 of file log_rooms_a.c.

scLogRoomsASearchEmptyBarrel

static void scLogRoomsASearchEmptyBarrel(void)

Searching the barrel beside the girl at the inn before the thieves are caught, Isaac doesn't find anything. Later the Bones are there.

References fdScriptEnd(), fdScriptStart() and mnFieldMessageShow().

Referenced by LogRoomsACues.

Definition at line 607 of file log_rooms_a.c.

scLogRoomsASearchEmptyChest

static void scLogRoomsASearchEmptyChest(void)

Searching one of the three chests in the inn's loft, Isaac finds it empty.

References fdScriptEnd(), fdScriptStart() and mnFieldMessageShow().

Referenced by LogRoomsALoftCues.

Definition at line 616 of file log_rooms_a.c.

scGetCues

const CUE *scGetCues(void)

Returns the loft's scripts for the loft's three entrances, else the houses' scripts, which change once FLAG_VAULT_THIEVES_JAILED is set.

References gmFlagGet(), LogRoomsACues, LogRoomsACuesAfterThieves, LogRoomsALoftCues and MainRoutineStateWork.

Definition at line 626 of file log_rooms_a.c.

scLogRoomsAStandAndShowMessage

static void scLogRoomsAStandAndShowMessage(Sint32 speakerId)

Stands the speaker, faces the leader, and shows the selected message.

References fdActorSetAnimation(), fdScriptShowMessage(), scLogRoomsAFaceEachOtherAndWait() and Sint32.

Referenced by scLogRoomsABoyWorriesAboutFather(), scLogRoomsAMayorAsksHelpForIvan(), scLogRoomsATalkAboutMissingThings(), scLogRoomsATalkAboutRocks() and scLogRoomsAWarnAboutThreeStrangers().

Definition at line 642 of file log_rooms_a.c.

scLogRoomsAAskYesNoAndAnswer

static void scLogRoomsAAskYesNoAndAnswer(Sint32 speakerId)

The speaker and the leader face each other, the speaker asks the selected question, and answers a yes with the next message and a no with the one after it.

References fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptShowMessage(), scLogRoomsAFaceEachOtherAndWait() and Sint32.

Referenced by scLogRoomsAAskAboutDefeatingThieves(), scLogRoomsAAskWhetherThievesCameFromLunpa(), scLogRoomsABoyAsksAboutTravel(), scLogRoomsAOfferIvansSecret() and scLogRoomsATalkToItemMerchant().

Definition at line 654 of file log_rooms_a.c.

scLogRoomsABoyAsksAboutTravel

static void scLogRoomsABoyAsksAboutTravel(void)

In the house in the middle of Vault, a small boy asks Isaac whether it is fun to see strange new places. A Yes has him dream of being an adventurer and sleeping in a tent; a No, wonder why bother then.

References fdActorSetAnimation(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptStart() and scLogRoomsAAskYesNoAndAnswer().

Referenced by LogRoomsACues.

Definition at line 668 of file log_rooms_a.c.

scLogRoomsAOfferIvansSecret

static void scLogRoomsAOfferIvansSecret(void)

Before Ivan has joined the party, a little girl at the mayor's house in Vault teases that Ivan has great powers and asks whether Isaac would like to know them. A Yes gets no way, it's their secret; a No, a warning not to say what he doesn't mean, as Ivan can tell in an instant.

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

Referenced by LogRoomsACues.

Definition at line 681 of file log_rooms_a.c.

scLogRoomsATalkToItemMerchant

static void scLogRoomsATalkToItemMerchant(void)

Spoken to across the counter of Vault's item shop, the item merchant opens her shop. From anywhere else she asks whether the party arrived in town today, and finds them fishy on a No; once the thieves are jailed she says it will be a while before anyone can go to Kalay with the bridge out.

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

Referenced by LogRoomsACues and LogRoomsACuesAfterThieves.

Definition at line 694 of file log_rooms_a.c.

scLogRoomsATalkAboutRocks

static void scLogRoomsATalkAboutRocks(void)

In the gem owner's house, his wife wishes their rocks were gems, or, once the thieves are jailed, is thankful they were caught before they stole the gem.

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

Referenced by LogRoomsACues and LogRoomsACuesAfterThieves.

Definition at line 719 of file log_rooms_a.c.

scLogRoomsATalkAboutMissingThings

static void scLogRoomsATalkAboutMissingThings(void)

In Vault's item shop, Grandpa wonders whether he is missing something, or, once the thieves are jailed, says they hid the stolen treasure in the hotel's loft and more in the cemetery.

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

Referenced by LogRoomsACues and LogRoomsACuesAfterThieves.

Definition at line 737 of file log_rooms_a.c.

scLogRoomsAMayorAsksHelpForIvan

static void scLogRoomsAMayorAsksHelpForIvan(void)

In his house, Vault's mayor asks whether someone could please help Ivan. Once Ivan has joined the party, he thanks Isaac the first time, and after that asks him to look after Ivan.

References fdScriptEnd(), fdScriptSetMessageId(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scLogRoomsAPlayAnimationAndWait(), scLogRoomsAStandAndShowMessage() and Sint32.

Referenced by LogRoomsACues.

Definition at line 755 of file log_rooms_a.c.

scLogRoomsAWarnAboutThreeStrangers

static void scLogRoomsAWarnAboutThreeStrangers(void)

Before the thieves are caught, the girl at Vault's inn says the three strangers have fooled the innkeeper and his wife.

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

Referenced by LogRoomsACues.

Definition at line 784 of file log_rooms_a.c.

scLogRoomsASuspectedLeaderDodges

static void scLogRoomsASuspectedLeaderDodges(void)

Talking to, or reading the mind of, the suspect with long dark hair in the guests' room at Vault's inn makes him cry out to stop it and run round the beds to his next spot, on or back the way he was going by which side he is pushed from.

References fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetScript(), fdActorWaitForScriptEndById(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), LogRoomsALeaderRunsBack and LogRoomsALeaderRunsOn.

Referenced by LogRoomsACues.

Definition at line 796 of file log_rooms_a.c.

scLogRoomsAStartThiefRun

static inline void scLogRoomsAStartThiefRun(ACTOR *actor, Sint32 scriptRow, Sint32 routePair, Uint16 routeDelta)

Starts one of the suspected thief's runs (LogRoomsAThiefRuns) and moves his routeSpot on to the spot it ends at.

References fdActorSetScript(), LogRoomsAThiefRuns and Sint32.

Referenced by scLogRoomsASuspectedThiefDodges().

Definition at line 854 of file log_rooms_a.c.

scLogRoomsASuspectedThiefDodges

static void scLogRoomsASuspectedThiefDodges(void)

Talking to, or reading the mind of, the suspect in purple in the guests' room at Vault's inn makes him cry out to be left alone and run to his next spot by the beds or in a corner, picked by the way he is pushed.

References fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetScript(), fdActorWaitForScriptEndById(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), LogRoomsASuspectAlongToSouthEastCorner, LogRoomsASuspectAlongToSouthWestCorner, scLogRoomsAStartThiefRun() and Sint32.

Referenced by LogRoomsACues.

Definition at line 867 of file log_rooms_a.c.

scLogRoomsAAskWhetherThievesCameFromLunpa

static void scLogRoomsAAskWhetherThievesCameFromLunpa(void)

Once the thieves are jailed, the burly grey-haired man in the house in the middle of Vault asks whether they came from Lunpa. A Yes has him say Lunpa's master Dodonpa is an awful man and catching his thieves means trouble; a No, that the Lunpans were noble thieves until Dodonpa.

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

Referenced by LogRoomsACuesAfterThieves.

Definition at line 930 of file log_rooms_a.c.

scLogRoomsABoyWorriesAboutFather

static void scLogRoomsABoyWorriesAboutFather(void)

Once the thieves are jailed, the small boy in the house in the middle of Vault says his father is worried about the prisoners from Lunpa, and asks the party to protect them if Dodonpa's men attack.

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

Referenced by LogRoomsACuesAfterThieves.

Definition at line 941 of file log_rooms_a.c.

scLogRoomsAAskAboutDefeatingThieves

static void scLogRoomsAAskAboutDefeatingThieves(void)

Once the thieves are jailed, a small boy at the mayor's house in Vault has heard the party defeated them. A Yes has him say you can't judge people by their looks; a No, that his father said it was them.

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

Referenced by LogRoomsACuesAfterThieves.

Definition at line 952 of file log_rooms_a.c.

scLogRoomsAMayorGivesWaterOfLife

static void scLogRoomsAMayorGivesWaterOfLife(void)

Once the thieves are jailed, Vault's mayor thanks Isaac in his house and gives the promised Water of Life, or asks him to come back with fewer things if his bags are full. Then he asks whether the party is heading beyond Goma Range: a Yes gets directions to the cave in its mountains north-east of Vault, past which lies Bilibin; a No, that there is no other way out.

References fdActorFaceDirection(), fdActorRunRepeatedMotion(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagSet(), gmPartyGiveItem(), gmPartyInventoryHasSpace(), scLogRoomsAFaceEachOtherAndWait(), scLogRoomsAPlayAnimationAndWait() and scLogRoomsAShowMessageAndWait().

Referenced by LogRoomsACuesAfterThieves.

Definition at line 965 of file log_rooms_a.c.

scLogRoomsAOfferBones

static void scLogRoomsAOfferBones(void)

Once the thieves are jailed, the girl at Vault's inn offers Isaac leftover bones from dinner, or asks whether he wants more. Accepting gives a Bone, unless his bags are full and she calls him a greedy lad.

References fdActorFaceDirection(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), gmItemShowFound(), gmPartyGiveItem(), gmPartyInventoryHasSpace() and scLogRoomsAFaceEachOtherAndWait().

Referenced by LogRoomsACuesAfterThieves.

Definition at line 1007 of file log_rooms_a.c.

scLogRoomsAReadGemOwnersWifesMind

static void scLogRoomsAReadGemOwnersWifesMind(void)

Mind Read on the gem owner's wife in their house: she wants a look at that rock, or, once the thieves are jailed, wonders whether it is worthless and that is why they didn't steal it.

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

Referenced by LogRoomsACues and LogRoomsACuesAfterThieves.

Definition at line 1061 of file log_rooms_a.c.

scLogRoomsAReadBoysMind

static void scLogRoomsAReadBoysMind(void)

Mind Read on the small boy in the house in the middle of Vault: he wonders what the outside world is like, or, once the thieves are jailed, thinks his father looks sad with worry.

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

Referenced by LogRoomsACues and LogRoomsACuesAfterThieves.

Definition at line 1079 of file log_rooms_a.c.

scLogRoomsAReadGrandpasMind

static void scLogRoomsAReadGrandpasMind(void)

Mind Read on Grandpa in Vault's item shop: he wonders whether the party could be the thieves and doesn't know who to trust anymore. Once the thieves are jailed, he thinks nothing in their house was valuable enough to steal.

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

Referenced by LogRoomsACues and LogRoomsACuesAfterThieves.

Definition at line 1097 of file log_rooms_a.c.

scLogRoomsAReadMayorMind

static void scLogRoomsAReadMayorMind(void)

Mind Read on Vault's mayor in his house: he laughs that it tickles, being tickled by a boy, or, once the thieves are jailed, thinks the cave in the Goma Range is dangerous, but the party will be okay.

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

Referenced by LogRoomsACues and LogRoomsACuesAfterThieves.

Definition at line 1115 of file log_rooms_a.c.

scLogRoomsAReadInnGirlsMind

static void scLogRoomsAReadInnGirlsMind(void)

Mind Read on the girl at Vault's inn: before the thieves are caught she thinks the master and his wife are blinded by money. After, she is tempted to taste the cooking, or, once Isaac has a Bone, wonders whether he has a calcium deficiency.

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

Referenced by LogRoomsACues and LogRoomsACuesAfterThieves.

Definition at line 1134 of file log_rooms_a.c.

scLogRoomsAMeetIvan

static void scLogRoomsAMeetIvan(void)

Talking to Ivan at the mayor's house in Vault: the first time, he reads Isaac's mind, admits his strange powers, learns they are called Psynergy, and asks for help getting Master Hammet's rod back. Later he only asks again. A Yes has him join the party.

References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetDestination(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWalkToAndWait(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagSet(), gmPlayMusic(), scEndMindRead(), scLogRoomsAFaceEachOtherAndWait(), scLogRoomsAIvanJoinsRodSearch(), scLogRoomsAPlayAnimationAndWait(), scLogRoomsAShowMessageAndWait(), scStartMindRead() and sySoundPlay().

Referenced by LogRoomsACues.

Definition at line 1157 of file log_rooms_a.c.

scLogRoomsAFreeVillagerAndFightThieves

static void scLogRoomsAFreeVillagerAndFightThieves(void)

In the inn's loft, Isaac cuts free the young man tied up on the floor. He tells how he was whacked from behind while fixing the roof, and notices the chests; then the three thieves come in, tell of Lunpa and Dodonpa, ask to be let go, and attack.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetScript(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWaitForScriptEndById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdRequestBattleFromEncounterTable(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetAfterBattleDestination(), fdScriptSetDefeatDestination(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagSet(), LogRoomsAFirstThiefComesIn, LogRoomsASecondThiefComesIn, mnFieldMessageShow(), scLogRoomsAFaceActorAndWait(), scLogRoomsAFaceEachOtherAndWait(), scLogRoomsAPlayAnimationAndWait(), scLogRoomsAShowMessageAndWait(), Sint32 and sySoundPlay().

Referenced by LogRoomsALoftCues.

Definition at line 1473 of file log_rooms_a.c.

scLogRoomsALeaveGuestsRoom

static void scLogRoomsALeaveGuestsRoom(void)

Going down the stairs from the inn's upstairs in Vault takes the party to the floor below.

References syImportScriptSetExitRequest() and sySoundPlay().

Referenced by LogRoomsACues.

Definition at line 1714 of file log_rooms_a.c.

scLogRoomsAEnterLoft

static void scLogRoomsAEnterLoft(void)

Once the crate is pushed aside, walking east from the inn's attic through the way behind it (metatile (45, 25)) takes the party into the loft.

References fdActorWalkTo(), syImportScriptSetExitRequest() and sySoundPlay().

Referenced by LogRoomsACues and LogRoomsACuesAfterThieves.

Definition at line 1722 of file log_rooms_a.c.

scLogRoomsALeaveLoft

static void scLogRoomsALeaveLoft(void)

Walking west out of the inn's loft (metatile (46, 25)) back into the attic; before the thieves have attacked, the tied-up young man groans as the party goes.

References fdActorWalkToAndWait(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), gmFlagGet(), syImportScriptSetExitRequest() and sySoundPlay().

Referenced by LogRoomsACuesAfterThieves and LogRoomsALoftCues.

Definition at line 1734 of file log_rooms_a.c.

scLogRoomsAApproachSuspects

static void scLogRoomsAApproachSuspects(void)

In the guests' room upstairs at Vault's inn, once Ivan is with the party, the two suspects at the west end of the room start, see that weird kid is with them, and run off round the beds.

References fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorShowEmote(), fdActorWaitForScriptEndById(), fdActorWalkToAndWait(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptStart(), fdScriptWait(), gmFlagSet(), LogRoomsASuspectRoundToWestBedHead, LogRoomsASuspectToSouthWestCorner, scLogRoomsAFaceActorAndWait(), scLogRoomsAFaceSuspectsTowardLeader(), scLogRoomsAShowMessageAndWait() and sySetTickEvent().

Referenced by LogRoomsACues.

Definition at line 1754 of file log_rooms_a.c.

scLogRoomsADiscussSuspiciousGuests

static void scLogRoomsADiscussSuspiciousGuests(void)

Stepping back out of the guests' room at Vault's inn after the suspects have run, the party talks it over: Mind Read is no use while they keep running, so Garet plans for the three to surround one of them, with Isaac in the lead.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetScript(), fdActorShowEmote(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdMapGridCopyMetatileAttributes(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagClear(), LogRoomsASuspectAcrossToWestOfBeds, LogRoomsASuspectRoundToWestBedFoot, LogRoomsASuspectToWestBedFoot, scLogRoomsAFaceActorAndWait(), scLogRoomsAFaceEachOtherAndWait(), scLogRoomsAFaceSuspectsTowardLeader(), scLogRoomsAPlayAnimationAndWait(), scLogRoomsAShowMessageAndWait(), Sint32 and syCloseEvent().

Referenced by LogRoomsACues.

Definition at line 1811 of file log_rooms_a.c.

scLogRoomsAStartCorneringSuspects

static void scLogRoomsAStartCorneringSuspects(void)

Walking back into the guests' room at Vault's inn after the plan, the party sets out to corner the two suspects.

References gmFlagSet() and scLogRoomsASpreadOutToCornerSuspects().

Referenced by LogRoomsACues.

Definition at line 1916 of file log_rooms_a.c.

scLogRoomsAResetSuspectRoutes

static void scLogRoomsAResetSuspectRoutes(void)

The suspects see the party back, cry that they're coming for them one-on-one, and run to their first spots again.

References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorWaitForScriptEndById(), fdMapGridCopyMetatileAttributes(), fdScriptSetMessageId(), fdScriptWait(), LogRoomsASuspectRoundToWestBedHead, LogRoomsASuspectToSouthWestCorner and scLogRoomsAShowMessageAndWait().

Referenced by scLogRoomsASpreadOutToCornerSuspects().

Definition at line 1925 of file log_rooms_a.c.

scLogRoomsASetPartyImagePriority

static inline void scLogRoomsASetPartyImagePriority(void)

Draws Isaac, Garet and Ivan in front of the room's furniture for the talk after the Mind Read.

References fdActorGet().

Referenced by scLogRoomsADiscussMindReading() and scLogRoomsAReadCorneredSuspectsMinds().

Definition at line 1959 of file log_rooms_a.c.

scLogRoomsAReadCorneredSuspectsMinds

static void scLogRoomsAReadCorneredSuspectsMinds(void)

Once one of the suspects is boxed in for half a second in the guests' room at Vault's inn, he cries out, Garet calls Ivan, and Ivan reads their minds while they wonder what he is doing; the screen flashes green and purple.

References fdActorFaceActor(), fdActorFaceEachOther(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdMapGridCopyMetatileAttributes(), fdPsynergyRestoreMindReadPalette(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptSetMessageId(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagClear(), gmFlagSet(), scEndMindRead(), scLogRoomsADiscussMindReading(), scLogRoomsAFaceSuspectsTowardLeader(), scLogRoomsASetPartyImagePriority(), scLogRoomsAShowMessageAndWait(), scLogRoomsAUpdateCorneringChase(), scStartMindRead(), Sint32, state, syCloseEvent() and sySetTickEvent().

Referenced by LogRoomsACues.

Definition at line 1978 of file log_rooms_a.c.

scLogRoomsASuspectsRunFromParty

static void scLogRoomsASuspectsRunFromParty(void)

While the suspects are running from the party in the guests' room, Isaac stepping on one of the spots at the heads and feet of the beds (metatiles (4, 39) to (16, 43)) sends a suspect waiting at the matching spot on to the next.

References LogRoomsASuspectAcrossToEastOfBeds, LogRoomsASuspectAcrossToWestOfBeds, LogRoomsASuspectAlongToSouthEastCorner, LogRoomsASuspectAlongToSouthWestCorner, LogRoomsASuspectRoundToEastBedFoot, LogRoomsASuspectRoundToEastBedHead, LogRoomsASuspectRoundToWestBedFoot, LogRoomsASuspectRoundToWestBedHead, LogRoomsASuspectToEastBedFoot, LogRoomsASuspectToEastBedHead, LogRoomsASuspectToEastOfBeds, LogRoomsASuspectToMiddleBedFoot, LogRoomsASuspectToMiddleBedHead, LogRoomsASuspectToSouthEastCorner, LogRoomsASuspectToSouthWestCorner, LogRoomsASuspectToWestBedFoot, LogRoomsASuspectToWestBedHead, LogRoomsASuspectToWestOfBeds and scLogRoomsAAdvanceSuspectRoute().

Referenced by LogRoomsACues.

Definition at line 2234 of file log_rooms_a.c.

scInit

Sint32 scInit(void)

Arriving in any room of Vault's houses, shops and inn sets the room up for the story so far, and in the loft plays its scripts.

References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorSetMovementTypeById(), fdActorSetSpriteFlags(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatiles(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptStart(), fdScriptWait(), gmFlagGet(), MainRoutineStateWork, scLogRoomsADefeatThieves(), scLogRoomsAFaceSuspectsTowardLeader(), scLogRoomsAFightThievesAgain(), scLogRoomsALoseToThieves(), scLogRoomsAOpenWindowTransition(), scLogRoomsAReturnStolenGoods(), scLogRoomsAShowMessageAndWait(), scVaultPlaceItemIcon(), scVaultUpdateLeaderBesideBoneFlag(), Sint32, syImportScriptSetExitRequest(), sySetTickEvent() and sySoundPlay().

Definition at line 2359 of file log_rooms_a.c.

scLogRoomsAGetIvanVenusDjinnCount

static Sint32 scLogRoomsAGetIvanVenusDjinnCount(void)

Counts the Venus Djinn Ivan holds, which he gives back before he leaves the party.

References gmUnitGet() and Sint32.

Referenced by scLogRoomsAReturnStolenGoods().

Definition at line 2683 of file log_rooms_a.c.

scLogRoomsAFindStopAtPos

static LOG_ROOMS_A_STOP *scLogRoomsAFindStopAtPos(Sint32 *pos)

The chase's stop under a position (its x, y and z), or NULL between stops.

References LogRoomsAStops and Sint32.

Referenced by scLogRoomsAUpdateCorneringChase().

Definition at line 3523 of file log_rooms_a.c.

scLogRoomsAChooseStopTowardFacing

static LOG_ROOMS_A_STOP * scLogRoomsAChooseStopTowardFacing(LOG_ROOMS_A_STOP *stop, Sint16 *requestedFacing)

The stop linked to this one in the direction nearest requestedFacing, which is turned to that link's heading; NULL when it has no link.

References LogRoomsAStops and Sint32.

Referenced by scLogRoomsAUpdateCorneringChase().

Definition at line 3551 of file log_rooms_a.c.

scLogRoomsAIsWithinHalfMetatileOfStop

static Bool scLogRoomsAIsWithinHalfMetatileOfStop(Sint32 x, Sint32 z, Sint32 id)

Whether the actor's destination, or where it stands when it has none, is within half a metatile (8 pixels) of the stop at (x, z).

References fdActorLookup() and Sint32.

Referenced by scLogRoomsACheckStopBlocked().

Definition at line 3597 of file log_rooms_a.c.

scLogRoomsAIsWithinMetatileOfStop

static Bool scLogRoomsAIsWithinMetatileOfStop(Sint32 x, Sint32 z, Sint32 id)

Whether the actor's destination, or where it stands when it has none, is within a metatile (16 pixels) of the stop at (x, z).

References fdActorLookup() and Sint32.

Referenced by scLogRoomsACheckStopBlocked().

Definition at line 3623 of file log_rooms_a.c.

scLogRoomsACheckStopBlocked

static Sint32 scLogRoomsACheckStopBlocked(LOG_ROOMS_A_STOP *stop)

Whether a stop is taken: -1 when Isaac stands within a metatile of it, or Ivan or a suspect within half a metatile; 1 when there is no stop; else 0.

References scLogRoomsAIsWithinHalfMetatileOfStop(), scLogRoomsAIsWithinMetatileOfStop() and Sint32.

Referenced by scLogRoomsAUpdateCorneringChase().

Definition at line 3645 of file log_rooms_a.c.

scLogRoomsAMoveActorToStop

static void scLogRoomsAMoveActorToStop(ACTOR *actor, LOG_ROOMS_A_STOP *stop)

Sends the actor walking to the middle of the stop.

References scFieldActorSetMoveTargetFX().

Referenced by scLogRoomsAUpdateCorneringChase().

Definition at line 3669 of file log_rooms_a.c.

Variables in detail

LogRoomsAStops

extern LOG_ROOMS_A_STOP LogRoomsAStops[LOG_STOP_COUNT]

LOG_ROOMS_A_STOP LogRoomsAStops[LOG_STOP_COUNT]

The route network's stops, each with its links to the others.

Referenced by scLogRoomsAChooseStopTowardFacing() and scLogRoomsAFindStopAtPos().

Definition at lines 144 and 3868 of file log_rooms_a.c.

LogRoomsABeatenThiefGasps

extern Sint32 LogRoomsABeatenThiefGasps[]

Sint32 LogRoomsABeatenThiefGasps[]

A beaten thief lying on the floor gasps twice, his sprite squashed and let go, then lies still for three seconds, over and over.

References Sint32.

Referenced by scLogRoomsADefeatThieves().

Definition at lines 145 and 3950 of file log_rooms_a.c.

LogRoomsAFirstThiefComesIn

extern Sint32 LogRoomsAFirstThiefComesIn[]

Sint32 LogRoomsAFirstThiefComesIn[]

The leader's two men come in from the attic behind him and take their places beside him.

References Sint32.

Referenced by scLogRoomsAFreeVillagerAndFightThieves().

Definition at lines 146 and 3973 of file log_rooms_a.c.

LogRoomsASecondThiefComesIn

extern Sint32 LogRoomsASecondThiefComesIn[]

Sint32 LogRoomsASecondThiefComesIn[]

References Sint32.

Referenced by scLogRoomsAFreeVillagerAndFightThieves().

Definition at lines 147 and 3987 of file log_rooms_a.c.

LogRoomsAVillagerLeavesLoft

extern Sint32 LogRoomsAVillagerLeavesLoft[]

Sint32 LogRoomsAVillagerLeavesLoft[]

The loft's walks once the thieves are beaten: the freed villager, and the thieves bound, go down the way to the room with the crate and are gone; the strongman and the mayor go round to the second and the first chest and come back from them.

References Sint32.

Referenced by scLogRoomsAReturnStolenGoods().

Definition at lines 148 and 4002 of file log_rooms_a.c.

LogRoomsATiedThiefLeavesLoft

extern Sint32 LogRoomsATiedThiefLeavesLoft[]

Sint32 LogRoomsATiedThiefLeavesLoft[]

References Sint32.

Referenced by scLogRoomsAReturnStolenGoods().

Definition at lines 149 and 4014 of file log_rooms_a.c.

LogRoomsAToSecondChest

extern Sint32 LogRoomsAToSecondChest[]

Sint32 LogRoomsAToSecondChest[]

References Sint32.

Referenced by scLogRoomsAReturnStolenGoods().

Definition at lines 150 and 4026 of file log_rooms_a.c.

LogRoomsAToFirstChest

extern Sint32 LogRoomsAToFirstChest[]

Sint32 LogRoomsAToFirstChest[]

References Sint32.

Referenced by scLogRoomsAReturnStolenGoods().

Definition at lines 151 and 4045 of file log_rooms_a.c.

LogRoomsABackFromChests

extern Sint32 LogRoomsABackFromChests[]

Sint32 LogRoomsABackFromChests[]

References Sint32.

Referenced by scLogRoomsAReturnStolenGoods().

Definition at lines 152 and 4062 of file log_rooms_a.c.

LogRoomsASuspectToWestBedHead

extern Sint32 LogRoomsASuspectToWestBedHead[]

Sint32 LogRoomsASuspectToWestBedHead[]

The suspects' runs about the guests' room, named by the spot each ends at among the room's three beds: the head of each bed (z 632), its foot (z 696), beside the outer beds (x 72 and 264, z 648) and the room's two south corners. A Round run goes about the end of the outer bed, an Across run over the beds' row, an Along run past the feet of the beds.

References Sint32.

Referenced by LogRoomsALeaderRunsBack and scLogRoomsASuspectsRunFromParty().

Definition at lines 153 and 4081 of file log_rooms_a.c.

LogRoomsASuspectRoundToWestBedHead

extern Sint32 LogRoomsASuspectRoundToWestBedHead[]

Sint32 LogRoomsASuspectRoundToWestBedHead[]

References Sint32.

Referenced by LogRoomsALeaderRunsOn, scLogRoomsAApproachSuspects(), scLogRoomsAResetSuspectRoutes() and scLogRoomsASuspectsRunFromParty().

Definition at lines 154 and 4089 of file log_rooms_a.c.

LogRoomsASuspectToMiddleBedHead

extern Sint32 LogRoomsASuspectToMiddleBedHead[]

Sint32 LogRoomsASuspectToMiddleBedHead[]

References Sint32.

Referenced by LogRoomsALeaderRunsBack, LogRoomsALeaderRunsOn and scLogRoomsASuspectsRunFromParty().

Definition at lines 155 and 4101 of file log_rooms_a.c.

LogRoomsASuspectToEastBedHead

extern Sint32 LogRoomsASuspectToEastBedHead[]

Sint32 LogRoomsASuspectToEastBedHead[]

References Sint32.

Referenced by LogRoomsALeaderRunsOn and scLogRoomsASuspectsRunFromParty().

Definition at lines 156 and 4109 of file log_rooms_a.c.

LogRoomsASuspectRoundToEastBedHead

extern Sint32 LogRoomsASuspectRoundToEastBedHead[]

Sint32 LogRoomsASuspectRoundToEastBedHead[]

References Sint32.

Referenced by LogRoomsALeaderRunsBack and scLogRoomsASuspectsRunFromParty().

Definition at lines 157 and 4117 of file log_rooms_a.c.

LogRoomsASuspectToWestBedFoot

extern Sint32 LogRoomsASuspectToWestBedFoot[]

Sint32 LogRoomsASuspectToWestBedFoot[]

References Sint32.

Referenced by LogRoomsALeaderRunsOn, scLogRoomsADiscussSuspiciousGuests() and scLogRoomsASuspectsRunFromParty().

Definition at lines 158 and 4129 of file log_rooms_a.c.

LogRoomsASuspectRoundToWestBedFoot

extern Sint32 LogRoomsASuspectRoundToWestBedFoot[]

Sint32 LogRoomsASuspectRoundToWestBedFoot[]

References Sint32.

Referenced by LogRoomsALeaderRunsBack, scLogRoomsADiscussSuspiciousGuests() and scLogRoomsASuspectsRunFromParty().

Definition at lines 159 and 4137 of file log_rooms_a.c.

LogRoomsASuspectToMiddleBedFoot

extern Sint32 LogRoomsASuspectToMiddleBedFoot[]

Sint32 LogRoomsASuspectToMiddleBedFoot[]

References Sint32.

Referenced by LogRoomsALeaderRunsBack, LogRoomsALeaderRunsOn and scLogRoomsASuspectsRunFromParty().

Definition at lines 160 and 4149 of file log_rooms_a.c.

LogRoomsASuspectToEastBedFoot

extern Sint32 LogRoomsASuspectToEastBedFoot[]

Sint32 LogRoomsASuspectToEastBedFoot[]

References Sint32.

Referenced by LogRoomsALeaderRunsBack and scLogRoomsASuspectsRunFromParty().

Definition at lines 161 and 4157 of file log_rooms_a.c.

LogRoomsASuspectRoundToEastBedFoot

extern Sint32 LogRoomsASuspectRoundToEastBedFoot[]

Sint32 LogRoomsASuspectRoundToEastBedFoot[]

References Sint32.

Referenced by LogRoomsALeaderRunsOn and scLogRoomsASuspectsRunFromParty().

Definition at lines 162 and 4165 of file log_rooms_a.c.

LogRoomsASuspectAcrossToWestOfBeds

extern Sint32 LogRoomsASuspectAcrossToWestOfBeds[]

Sint32 LogRoomsASuspectAcrossToWestOfBeds[]

References Sint32.

Referenced by LogRoomsAThiefRuns, scLogRoomsADiscussSuspiciousGuests() and scLogRoomsASuspectsRunFromParty().

Definition at lines 163 and 4177 of file log_rooms_a.c.

LogRoomsASuspectToWestOfBeds

extern Sint32 LogRoomsASuspectToWestOfBeds[]

Sint32 LogRoomsASuspectToWestOfBeds[]

References Sint32.

Referenced by LogRoomsAThiefRuns and scLogRoomsASuspectsRunFromParty().

Definition at lines 164 and 4187 of file log_rooms_a.c.

LogRoomsASuspectAcrossToEastOfBeds

extern Sint32 LogRoomsASuspectAcrossToEastOfBeds[]

Sint32 LogRoomsASuspectAcrossToEastOfBeds[]

References Sint32.

Referenced by LogRoomsAThiefRuns and scLogRoomsASuspectsRunFromParty().

Definition at lines 165 and 4195 of file log_rooms_a.c.

LogRoomsASuspectToEastOfBeds

extern Sint32 LogRoomsASuspectToEastOfBeds[]

Sint32 LogRoomsASuspectToEastOfBeds[]

References Sint32.

Referenced by LogRoomsAThiefRuns and scLogRoomsASuspectsRunFromParty().

Definition at lines 166 and 4205 of file log_rooms_a.c.

LogRoomsASuspectToSouthWestCorner

extern Sint32 LogRoomsASuspectToSouthWestCorner[]

Sint32 LogRoomsASuspectToSouthWestCorner[]

References Sint32.

Referenced by LogRoomsAThiefRuns, scLogRoomsAApproachSuspects(), scLogRoomsAResetSuspectRoutes() and scLogRoomsASuspectsRunFromParty().

Definition at lines 167 and 4213 of file log_rooms_a.c.

LogRoomsASuspectAlongToSouthWestCorner

extern Sint32 LogRoomsASuspectAlongToSouthWestCorner[]

Sint32 LogRoomsASuspectAlongToSouthWestCorner[]

References Sint32.

Referenced by LogRoomsAThiefRuns, scLogRoomsASuspectedThiefDodges() and scLogRoomsASuspectsRunFromParty().

Definition at lines 168 and 4221 of file log_rooms_a.c.

LogRoomsASuspectToSouthEastCorner

extern Sint32 LogRoomsASuspectToSouthEastCorner[]

Sint32 LogRoomsASuspectToSouthEastCorner[]

References Sint32.

Referenced by LogRoomsAThiefRuns and scLogRoomsASuspectsRunFromParty().

Definition at lines 169 and 4231 of file log_rooms_a.c.

LogRoomsASuspectAlongToSouthEastCorner

extern Sint32 LogRoomsASuspectAlongToSouthEastCorner[]

Sint32 LogRoomsASuspectAlongToSouthEastCorner[]

References Sint32.

Referenced by LogRoomsAThiefRuns, scLogRoomsASuspectedThiefDodges() and scLogRoomsASuspectsRunFromParty().

Definition at lines 170 and 4239 of file log_rooms_a.c.

LogRoomsAEntrances

extern SCENE_ENTRANCE LogRoomsAEntrances[]

SCENE_ENTRANCE LogRoomsAEntrances[]

Referenced by scGetEntrances().

Definition at lines 171 and 4249 of file log_rooms_a.c.

LogRoomsARegions

extern SCENE_EXIT_REGION LogRoomsARegions[]

SCENE_EXIT_REGION LogRoomsARegions[]

Referenced by scGetExitRegions().

Definition at lines 172 and 4280 of file log_rooms_a.c.

LogRoomsAExits

extern Uint32 LogRoomsAExits[]

Uint32 LogRoomsAExits[]

Referenced by scGetExits().

Definition at lines 173 and 4285 of file log_rooms_a.c.

LogRoomsAActorPlacements

extern ACTOR_PLACE LogRoomsAActorPlacements[]

ACTOR_PLACE LogRoomsAActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 174 and 4302 of file log_rooms_a.c.

LogRoomsALoftActorPlacements

extern ACTOR_PLACE LogRoomsALoftActorPlacements[]

ACTOR_PLACE LogRoomsALoftActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 175 and 4349 of file log_rooms_a.c.

LogRoomsACues

extern CUE LogRoomsACues[]

CUE LogRoomsACues[]

References scLogRoomsAApproachSuspects(), scLogRoomsABoyAsksAboutTravel(), scLogRoomsACheckCrateMoved(), scLogRoomsADiscussSuspiciousGuests(), scLogRoomsAEnterLoft(), scLogRoomsAGaretHasNoTimeForMenu(), scLogRoomsAJumpAcrossHoleInAtticFloor(), scLogRoomsALeaveGuestsRoom(), scLogRoomsAMayorAsksHelpForIvan(), scLogRoomsAMeetIvan(), scLogRoomsAOfferIvansSecret(), scLogRoomsAReadBoysMind(), scLogRoomsAReadCorneredSuspectsMinds(), scLogRoomsAReadGemOwnersWifesMind(), scLogRoomsAReadGrandpasMind(), scLogRoomsAReadInnGirlsMind(), scLogRoomsAReadMayorMind(), scLogRoomsASearchEmptyBarrel(), scLogRoomsAStartCorneringSuspects(), scLogRoomsASuspectedLeaderDodges(), scLogRoomsASuspectedThiefDodges(), scLogRoomsASuspectsRunFromParty(), scLogRoomsATalkAboutMissingThings(), scLogRoomsATalkAboutRocks(), scLogRoomsATalkToArmorMerchant(), scLogRoomsATalkToInnkeeper(), scLogRoomsATalkToItemMerchant(), scLogRoomsATalkToWeaponMerchant() and scLogRoomsAWarnAboutThreeStrangers().

Referenced by scGetCues().

Definition at lines 176 and 4381 of file log_rooms_a.c.

LogRoomsALoftCues

extern CUE LogRoomsALoftCues[]

CUE LogRoomsALoftCues[]

References scLogRoomsAFreeVillagerAndFightThieves(), scLogRoomsALeaveLoft() and scLogRoomsASearchEmptyChest().

Referenced by scGetCues().

Definition at lines 177 and 4527 of file log_rooms_a.c.

LogRoomsACuesAfterThieves

extern CUE LogRoomsACuesAfterThieves[]

CUE LogRoomsACuesAfterThieves[]

References scLogRoomsAAskAboutDefeatingThieves(), scLogRoomsAAskWhetherThievesCameFromLunpa(), scLogRoomsABoyWorriesAboutFather(), scLogRoomsAEnterLoft(), scLogRoomsALeaveLoft(), scLogRoomsAMayorGivesWaterOfLife(), scLogRoomsAOfferBones(), scLogRoomsAReadBoysMind(), scLogRoomsAReadGemOwnersWifesMind(), scLogRoomsAReadGrandpasMind(), scLogRoomsAReadInnGirlsMind(), scLogRoomsAReadMayorMind(), scLogRoomsATalkAboutMissingThings(), scLogRoomsATalkAboutRocks(), scLogRoomsATalkToArmorMerchant(), scLogRoomsATalkToInnkeeper(), scLogRoomsATalkToItemMerchant(), scLogRoomsATalkToWeaponMerchant() and scVaultFindBone().

Referenced by scGetCues().

Definition at lines 178 and 4540 of file log_rooms_a.c.

LogRoomsALeaderRunsOn

extern Sint32 *LogRoomsALeaderRunsOn[]

Sint32 *LogRoomsALeaderRunsOn[]

The suspected leader's runs when the party talks to him, by his routeSpot: on round the beds, from the heads' row eastward, or back the other way.

References LogRoomsASuspectRoundToEastBedFoot, LogRoomsASuspectRoundToWestBedHead, LogRoomsASuspectToEastBedHead, LogRoomsASuspectToMiddleBedFoot, LogRoomsASuspectToMiddleBedHead, LogRoomsASuspectToWestBedFoot and Sint32.

Referenced by scLogRoomsASuspectedLeaderDodges().

Definition at lines 179 and 4629 of file log_rooms_a.c.

LogRoomsALeaderRunsBack

extern Sint32 *LogRoomsALeaderRunsBack[]

Sint32 *LogRoomsALeaderRunsBack[]

References LogRoomsASuspectRoundToEastBedHead, LogRoomsASuspectRoundToWestBedFoot, LogRoomsASuspectToEastBedFoot, LogRoomsASuspectToMiddleBedFoot, LogRoomsASuspectToMiddleBedHead, LogRoomsASuspectToWestBedHead and Sint32.

Referenced by scLogRoomsASuspectedLeaderDodges().

Definition at lines 180 and 4637 of file log_rooms_a.c.

LogRoomsAThiefRuns

extern Sint32 *LogRoomsAThiefRuns[]

Sint32 *LogRoomsAThiefRuns[]

The suspected thief's runs when the party talks to him, four to a row: scLogRoomsASuspectedThiefDodges picks the row by which way he is pushed and the run by his routeSpot.

References LogRoomsASuspectAcrossToEastOfBeds, LogRoomsASuspectAcrossToWestOfBeds, LogRoomsASuspectAlongToSouthEastCorner, LogRoomsASuspectAlongToSouthWestCorner, LogRoomsASuspectToEastOfBeds, LogRoomsASuspectToSouthEastCorner, LogRoomsASuspectToSouthWestCorner, LogRoomsASuspectToWestOfBeds and Sint32.

Referenced by scLogRoomsAStartThiefRun().

Definition at lines 181 and 4649 of file log_rooms_a.c.

LogRoomsACorneredTicks

Uint16 LogRoomsACorneredTicks

Ticks in a row the chase has found a suspect cornered; at LOG_ROOMS_A_CORNERED_TICKS the chase raises its script.

Referenced by scLogRoomsASpreadOutToCornerSuspects() and scLogRoomsAUpdateCorneringChase().

Definition at line 4660 of file log_rooms_a.c.

On this page

StructuresMacrosEnumerationsFunctionsVariablesDescriptionMacros in detailLOG_STOP_COUNTLOG_STOPS_ORIGIN_XLOG_STOPS_ORIGIN_ZLOG_STOP_XLOG_STOP_ZCRATE_MOVED_COLUMNMAYOR_AFTER_THIEVES_ZLOG_ROOMS_A_CORNERED_TICKSFLAG_VAULT_CORNERING_SUSPECTSNO_CONNECTIONCONNECTIONEnumerations in detailIVAN_JOINING_MESSAGEanonymous enumLOG_ROOMS_A_LEADER_SPOTLOG_ROOMS_A_THIEF_SPOTLOG_ROOMS_A_ROUTE_SPOTanonymous enumLOG_ROOMS_A_RAISED_CUEanonymous enumanonymous enumanonymous enumLOG_ROOMS_A_ANIMATIONFunctions in detailscLogRoomsAIvanJoinsRodSearchscLogRoomsADiscussMindReadingscLogRoomsAFaceSuspectsTowardLeaderscLogRoomsAAdvanceSuspectRoutescLogRoomsALoseToThievesscLogRoomsAFightThievesAgainscLogRoomsADefeatThievesscLogRoomsAReturnStolenGoodsscLogRoomsAOpenWindowTransitionscLogRoomsAShowMessageAndWaitscLogRoomsAFaceActorAndWaitscLogRoomsAFaceEachOtherAndWaitscLogRoomsAPlayAnimationAndWaitscLogRoomsAUpdateCorneringChasescLogRoomsASpreadOutToCornerSuspectsscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscLogRoomsATryJumpToscLogRoomsAJumpAcrossHoleInAtticFloorscLogRoomsACheckCrateMovedscLogRoomsATalkToWeaponMerchantscLogRoomsATalkToArmorMerchantscLogRoomsATalkToInnkeeperscLogRoomsAGaretHasNoTimeForMenuscLogRoomsASearchEmptyBarrelscLogRoomsASearchEmptyChestscGetCuesscLogRoomsAStandAndShowMessagescLogRoomsAAskYesNoAndAnswerscLogRoomsABoyAsksAboutTravelscLogRoomsAOfferIvansSecretscLogRoomsATalkToItemMerchantscLogRoomsATalkAboutRocksscLogRoomsATalkAboutMissingThingsscLogRoomsAMayorAsksHelpForIvanscLogRoomsAWarnAboutThreeStrangersscLogRoomsASuspectedLeaderDodgesscLogRoomsAStartThiefRunscLogRoomsASuspectedThiefDodgesscLogRoomsAAskWhetherThievesCameFromLunpascLogRoomsABoyWorriesAboutFatherscLogRoomsAAskAboutDefeatingThievesscLogRoomsAMayorGivesWaterOfLifescLogRoomsAOfferBonesscLogRoomsAReadGemOwnersWifesMindscLogRoomsAReadBoysMindscLogRoomsAReadGrandpasMindscLogRoomsAReadMayorMindscLogRoomsAReadInnGirlsMindscLogRoomsAMeetIvanscLogRoomsAFreeVillagerAndFightThievesscLogRoomsALeaveGuestsRoomscLogRoomsAEnterLoftscLogRoomsALeaveLoftscLogRoomsAApproachSuspectsscLogRoomsADiscussSuspiciousGuestsscLogRoomsAStartCorneringSuspectsscLogRoomsAResetSuspectRoutesscLogRoomsASetPartyImagePriorityscLogRoomsAReadCorneredSuspectsMindsscLogRoomsASuspectsRunFromPartyscInitscLogRoomsAGetIvanVenusDjinnCountscLogRoomsAFindStopAtPosscLogRoomsAChooseStopTowardFacingscLogRoomsAIsWithinHalfMetatileOfStopscLogRoomsAIsWithinMetatileOfStopscLogRoomsACheckStopBlockedscLogRoomsAMoveActorToStopVariables in detailLogRoomsAStopsLogRoomsABeatenThiefGaspsLogRoomsAFirstThiefComesInLogRoomsASecondThiefComesInLogRoomsAVillagerLeavesLoftLogRoomsATiedThiefLeavesLoftLogRoomsAToSecondChestLogRoomsAToFirstChestLogRoomsABackFromChestsLogRoomsASuspectToWestBedHeadLogRoomsASuspectRoundToWestBedHeadLogRoomsASuspectToMiddleBedHeadLogRoomsASuspectToEastBedHeadLogRoomsASuspectRoundToEastBedHeadLogRoomsASuspectToWestBedFootLogRoomsASuspectRoundToWestBedFootLogRoomsASuspectToMiddleBedFootLogRoomsASuspectToEastBedFootLogRoomsASuspectRoundToEastBedFootLogRoomsASuspectAcrossToWestOfBedsLogRoomsASuspectToWestOfBedsLogRoomsASuspectAcrossToEastOfBedsLogRoomsASuspectToEastOfBedsLogRoomsASuspectToSouthWestCornerLogRoomsASuspectAlongToSouthWestCornerLogRoomsASuspectToSouthEastCornerLogRoomsASuspectAlongToSouthEastCornerLogRoomsAEntrancesLogRoomsARegionsLogRoomsAExitsLogRoomsAActorPlacementsLogRoomsALoftActorPlacementsLogRoomsACuesLogRoomsALoftCuesLogRoomsACuesAfterThievesLogRoomsALeaderRunsOnLogRoomsALeaderRunsBackLogRoomsAThiefRunsLogRoomsACorneredTicks