src/scene/loho.c
Loho, the miners' village in the north of Gondowan, and its houses. More…
#include "item_ids.h"#include "field/script_inline.h"#include "field/field_engine.h"#include "game/game.h"#include "field/field_engine_script.h"#include "scene/scene.h"#include "field/actor_script.h"#include "text/msg_ids.h"#include "shared/scene_entrances_default.c"
Structures
| Name | Description | |
|---|---|---|
struct | LOHO_SPARK | One of the sparks the cannon's blast throws over the screen: the link the sprite list threads it by, its sprite, and its age in ticks, negative while it waits to appear. |
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_LOHO_BOULDER_LIFTED FLAG_SCENE_TEMP(0x01) | Set once Lift has raised the boulder, this visit. |
#define | FLAG_LOHO_MYTHRIL_SILVER_DUG FLAG_AREA_TEMP(0x00) | The buried treasures dug up this visit: the Mythril Silver, the Golem Core behind the wall, and the one under the boulder. |
#define | FLAG_LOHO_WALL_GOLEM_CORE_DUG FLAG_AREA_TEMP(0x01) | |
#define | FLAG_LOHO_BOULDER_GOLEM_CORE_DUG FLAG_AREA_TEMP(0x02) | |
#define | FLAG_LOHO_SHOPKEEPER_AT_COUNTER FLAG_AREA_TEMP(0x20) | The orange-haired woman has come up to her counter, so talking to her opens the shop or the inn. |
#define | LOHO_BLAST_TICKS 120 | How long the blast throws sparks (EXPLOSION_SPARK_COUNT of them, scene/scene.h), in ticks. |
Enumerations
| Name | Description | |
|---|---|---|
enum | LOHO_ACTOR_ID { ACTOR_MINER_WELCOMING_TO_LOHO, ACTOR_MINER_ON_THE_EXCAVATION … } | Loho, by the rows of LohoTownPlacements. |
enum | LOHO_ROOMS_ACTOR_ID { ACTOR_VILLAGER_ON_COMMERCE, ACTOR_INN_COUNTER, ACTOR_BEARDED … } | Loho's houses, by the rows of LohoRoomsPlacements. |
enum | LOHO_METATILE_BEHAVIOR { METATILE_BEHAVIOR_MYTHRIL_SILVER_SPOT, METATILE_BEHAVIOR_GOL … } | The town's and the houses' own metatiles, as map.txt has them; a door's or the ladder's metatile is the number of the exit it leaves by, named in scene_exits.h. |
enum | LOHO_ROOMS_WAY { WAY_SHOP_STAIRS, WAY_INN_BEDROOM_STAIRS, WAY_SOUTHWEST_HOUSE … } | The houses' stairs, each an exit and the entrance beside it, in pairs: each leads to its partner's entrance and back. |
enum | anonymous enum { SHOP_LOHO } | Loho's shops, as mnShopRun numbers them. |
enum | anonymous enum { INN_ID_LOHO } | Loho's inn, as mnInnCheckIn numbers the inns. |
Functions
| Name | Description | |
|---|---|---|
void | scLohoClimbDownLadder (void) | Felix climbs down the ladder through the hatch on the stone platform north of town into the small room below, by the exit of the metatile he stepped from. |
void | scLohoMeetLull (void) | Felix talks to Lull, the Jupiter Djinni on the roof of the Sanctum, metatile (14, 15), reached once the cannon has breached the wall: it joins the party. |
const SCENE_ENTRANCE * | scGetEntrances (void) | Where the party can enter: the cave under the spring has its own entrances. |
const SCENE_REGION * | scGetExitRegions (void) | The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room. |
const Uint32 * | scGetExits (void) | The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN. |
const ACTOR_PLACE * | scGetActorPlacements (void) | The scene's actor placements: a room of names for its entrance, else the debug room's. |
void | scLohoDrawBrokenWall (void) | Draws the ancient wall north of town as the cannon left it, with a breach through it. |
void | scLohoAskWantCannon (Sint32 actor) | Felix talks to the old man in the purple robe beside the cannon at the east end of town, before the wall is breached: "Did you want this cannon?" If Felix says yes, "Well, if you can figure out a way to break down this wall, it's all yours."; if no, "If we can find someone to do that, we'll give 'im the cannon." |
void | scLohoExamineCannon (void) | Felix checks the cannon at the east end of town: "It looks like it's empty.", and the field menu opens. |
void | scLohoFireCannon (void) | Felix uses the Magma Ball on the cannon at the east end of town: the miners load it and fire it at the ancient wall north of town, which is breached in a blast of sparks, "Is everyone all right?", and the miners give the party the cannon and carry it off to its ship. |
void | scLohoTalkAboutBreachedWall (void) | Felix talks to the old man in the purple robe by the wall north of town, once it is breached: "I saw some of the village men carrying the cannon out of town...", or once the ship carries it, "Now that the wall's been breached, we can get on with the mining! |
void | scLohoMindReadMiner (void) | Felix casts Mind Read on the old man by the wall north of town, once it is breached: "I don't know where they were taking it, but I'm glad the cannon's...", or once the ship carries it, his other thought. |
void | scLohoScoopMythrilSilver (Sint32 id) | Felix casts Scoop on the spot below the stone wall in the south west of town, metatile (14, 32): he digs up Mythril Silver. |
void | scLohoScoopWallGolemCore (Sint32 id) | Felix casts Scoop on the spot behind the breached wall north of town, metatile (32, 12): he digs up a Golem Core. |
void | scLohoScoopBoulderGolemCore (Sint32 id) | Felix casts Scoop on the spot under the round boulder on the high ground in the north east of town, metatile (32, 7), once Lift has raised the boulder: he digs up a Golem Core. |
void | scLohoLiftBoulder (void) | Felix casts Lift on the round boulder on the high ground in the north east of town: it rises out of the way, and the Golem Core buried under it shows until he digs it up. |
const CUE * | scGetCues (void) | The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's. |
void | scLohoReadInnSign (void) | Felix reads the sign by the counter in the shop and inn, from the south, metatiles (9, 8) and (10, 8): "People staying at the inn can check in at the counter." |
void | scLohoTalkToInnkeeper (void) | The woman who keeps the shop checks the party in at the inn counter: "Welcome to our inn." |
void | scLohoTalkAboutCommerce (void) | Felix talks to the orange-haired woman in the shop and inn: once she has come up to the counter she opens the shop; otherwise "Commerce really took off when we started this mining colony in Loho.", or after the wall is breached, "I hear you took our cannon in exchange for knocking down that ancient wall." |
void | scLohoTalkAboutCannon (Sint32 actor) | Felix talks to the bearded man in the Sanctum: from across his altar, to the south, he offers a Sanctum's services; from the side, "If you're only here for the cannon, you can forget about it.", or once the wall is breached, a word on the splendid cannon the party has acquired. |
void | scLohoShopkeeperComesToEastCounter (void) | Felix walks up to the east side of the counter in the shop and inn, facing west, metatiles (11, 6) to (12, 7): the orange-haired woman comes over to the counter, and talking to her then opens the shop. |
void | scLohoShopkeeperComesToSouthCounter (void) | Felix walks up to the counter in the shop and inn from the south, facing north, metatile (8, 9): the orange-haired woman steps up behind the counter across from him, and talking to her then opens the shop. |
void | scLohoShopkeeperGoesBack (void) | Felix steps away from the counter in the shop and inn, onto the metatiles around where he stood: the orange-haired woman goes back to her place. |
static __inline__ void | scLohoAnimateMetatiles (const void *steps, Sint32 x, Sint32 y) | Plays a map metatile animation at its place on the map grid. |
void | scLohoOpenDoorAndEnter (void) | Felix walks north into the wooden double door of the Sanctum, metatiles (15, 16) and (16, 16): it swings open, he steps in, and the screen fades to the Sanctum's hall with its green carpet. |
void | scLohoEnterDoor (void) | Felix walks north into the open doorway of one of the houses, metatiles (5, 15), (5, 24), (24, 26) and (36, 18), and the screen fades to the room inside. |
void | scLohoStepOntoLadderFacingEast (void) | Felix walks east onto the hatch on the stone platform in the north east of town from metatile (35, 15), steps up to it and climbs down the ladder. |
void | scLohoStepOntoLadderFacingWest (void) | Felix walks west onto the hatch on the stone platform in the north east of town from metatile (37, 15), steps up to it and climbs down the ladder. |
void | scLohoTurnAndClimbDownLadder (void) | Felix walks south onto the hatch on the stone platform in the north east of town, metatile (36, 14), turns to face the ladder and climbs down. |
void | scLohoSetUpTown (void) | The town opens with the backdrop fade; the cannon is drawn without a shadow. |
void | scLohoSetUpRooms (void) | The houses open with the window transition; the unseen marker on the inn counter is drawn without a shadow. |
static __inline__ void | scLohoPlaceFacing (Sint32 id, Sint32 x, Sint32 z, Uint16 facing) | Places an actor facing an angle, the angle taken as the Uint16 an actor's facing is, as Madra and its houses also place them. |
Sint32 | scInit (void) | Opens the room through the window transition, and in the debug room draws the cat 1.7 times its size. |
Sint32 | scPrepareMap (void) | Once Briggs is caught the pool has dried up: its colours take the dry ground's. |
Variables
| Name | Description | |
|---|---|---|
extern Sint32 | LohoShopkeeperToEastCounter [] | The orange-haired woman stepping over to the counter by Felix at its east side. |
extern Sint32 | LohoShopkeeperToSouthCounter [] | The orange-haired woman stepping up to the counter across from Felix at its south side. |
extern Sint32 | LohoVillagerReturns [] | The orange-haired woman going back to her place. |
extern SCENE_REGION | LohoRegions [] | The houses' exit regions: the top of the ladder up out of the room under the hatch. |
extern ACTOR_PLACE | LohoTownPlacements [] | The town's actors, by LOHO_ACTOR_ID. |
extern ACTOR_PLACE | LohoRoomsPlacements [] | The houses' actors, by LOHO_ROOMS_ACTOR_ID. |
extern Sint32 | LohoFirstMinerGoesToWall [] | The miner by the cannon walks up to the breached wall. |
extern Sint32 | LohoSecondMinerStepsUp [] | The miner puzzled by the cannon steps up to look at the wall. |
extern Sint32 | LohoThirdMinerStepsUp [] | The man keeping the cannon steps up to look at the wall. |
extern Sint32 | LohoFirstMinerWalksBack [] | The miner by the cannon walks back from the wall. |
extern Sint32 | LohoFirstMinerFetchesCannon [] | The miner by the cannon goes to fetch it. |
extern Sint32 | LohoFirstMinerReturns [] | The miner by the cannon comes back with it. |
extern Sint32 | LohoCannonRises [] | Run on the cannon as the crew sets off with it: it rises two pixels off the ground. |
extern CUE | LohoCues [] | The cues of neither the town nor the houses: none. |
extern CUE | LohoTownCues [] | The town's cues. |
extern CUE | LohoRoomsCues [] | The houses' cues. |
extern MAP_EDIT | LohoSanctumDoor | The Sanctum's door opening, at its place on the map grid. |
extern Sint32 | LohoVillagerPaces [] | The orange-haired woman looking about the shop and inn. |
extern Uint16 | LohoDoorOpening [] | How the Sanctum's double door swings open, as three ticks of metatiles copied over the closed door. |
Uint32 | SceneExits [] | The room has no exits of its own. |
Description
Loho, the miners' village in the north of Gondowan, and its houses.
The miners dig everywhere and find nothing, and an ancient stone wall north of town stops them. Their cannon stands at the east end of town with no ammunition; once Felix has the Magma Ball from Magma Rock he loads it, the cannon breaches the wall, and the miners give the cannon to the party for its ship. The breach opens the way to Lull, the Jupiter Djinni on the roof of the Sanctum, and to a Golem Core for Scoop; a second lies under the boulder Lift raises on the high ground in the north east, and Mythril Silver is buried in the south west. The orange-haired woman keeps the shop and the inn, whose beds are up its stairs; the bearded man in the Sanctum gives its services from across his altar; and a ladder through a hatch on a stone platform in the north east leads down into a small room whose stairs come up in a house in the south west.
Macros in detail
FLAG_LOHO_BOULDER_LIFTED
#define FLAG_LOHO_BOULDER_LIFTED FLAG_SCENE_TEMP(0x01)
Set once Lift has raised the boulder, this visit.
Referenced by LohoTownCues and scLohoLiftBoulder().
Definition at line 113 of file loho.c.
FLAG_LOHO_MYTHRIL_SILVER_DUG
#define FLAG_LOHO_MYTHRIL_SILVER_DUG FLAG_AREA_TEMP(0x00)
The buried treasures dug up this visit: the Mythril Silver, the Golem Core behind the wall, and the one under the boulder.
Referenced by LohoTownCues, scInit() and scLohoScoopMythrilSilver().
Definition at line 116 of file loho.c.
FLAG_LOHO_WALL_GOLEM_CORE_DUG
#define FLAG_LOHO_WALL_GOLEM_CORE_DUG FLAG_AREA_TEMP(0x01)
Referenced by LohoTownCues, scInit() and scLohoScoopWallGolemCore().
Definition at line 117 of file loho.c.
FLAG_LOHO_BOULDER_GOLEM_CORE_DUG
#define FLAG_LOHO_BOULDER_GOLEM_CORE_DUG FLAG_AREA_TEMP(0x02)
Referenced by LohoTownCues, scInit() and scLohoScoopBoulderGolemCore().
Definition at line 118 of file loho.c.
FLAG_LOHO_SHOPKEEPER_AT_COUNTER
#define FLAG_LOHO_SHOPKEEPER_AT_COUNTER FLAG_AREA_TEMP(0x20)
The orange-haired woman has come up to her counter, so talking to her opens the shop or the inn.
Referenced by LohoRoomsCues, scLohoShopkeeperComesToEastCounter(), scLohoShopkeeperComesToSouthCounter(), scLohoShopkeeperGoesBack() and scLohoTalkAboutCommerce().
Definition at line 121 of file loho.c.
LOHO_BLAST_TICKS
#define LOHO_BLAST_TICKS 120
How long the blast throws sparks (EXPLOSION_SPARK_COUNT of them,
scene/scene.h), in ticks.
Referenced by scLohoFireCannon().
Definition at line 161 of file loho.c.
Enumerations in detail
LOHO_ACTOR_ID
enum LOHO_ACTOR_ID
Loho, by the rows of LohoTownPlacements. Each digger is named for what he
says before the cannon breaches the wall.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_MINER_WELCOMING_TO_LOHO | ACTOR_FIRST_PLACED | "Welcome to Loho! We've been excavating all sorts of ores..." |
ACTOR_MINER_ON_THE_EXCAVATIONS | "We have a lot of important excavations going on..." | |
ACTOR_MINER_WHO_FOUND_THE_CANNON | "Some of the miners found an ancient cannon when they were digging..." | |
ACTOR_MINER_AT_THE_WALL | "That wall seems indestructible!" | |
ACTOR_MINER_AWAITING_WORK | "Once we can get through the wall, there will be enough work for everyone in town!" | |
ACTOR_MINER_WHO_KNOWS_THE_EARTH | "If you want to be a miner, you have to know the earth..." | |
ACTOR_MINER_AT_HIS_SPOT | "This is the spot. A good hole here..." | |
ACTOR_MINER_FINDING_NOTHING | "I haven't found anything worth the trouble of digging up." | |
ACTOR_MINER_BY_THE_CANNON | "We brought the cannon up here to break down the old wall..." | |
ACTOR_MAN_KEEPING_THE_CANNON | "If you're only here for the cannon, you can forget about it." | |
ACTOR_MINER_PUZZLED_BY_THE_CANNON | "You can put metal balls in the barrel, but what makes them come out again?" | |
ACTOR_LULL | ||
ACTOR_CANNON | ||
ACTOR_MAGMA_BALL | Shown as ITEM_MAGMA_BALL as it is loaded. | |
ACTOR_BOULDER | Raised by Lift, over the Golem Core. |
Definition at line 27 of file loho.c.
LOHO_ROOMS_ACTOR_ID
enum LOHO_ROOMS_ACTOR_ID
Loho's houses, by the rows of LohoRoomsPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_VILLAGER_ON_COMMERCE | ACTOR_FIRST_PLACED | The woman who keeps the shop and the inn (scLohoTalkAboutCommerce). |
ACTOR_INN_COUNTER | An unseen marker on the inn's counter, so that talking across it reaches the inn (scLohoTalkToInnkeeper). | |
ACTOR_BEARDED_MAN_ON_THE_CANNON | scLohoTalkAboutCannon |
Definition at line 72 of file loho.c.
LOHO_METATILE_BEHAVIOR
enum LOHO_METATILE_BEHAVIOR
The town's and the houses' own metatiles, as map.txt has them; a door's or
the ladder's metatile is the number of the exit it leaves by, named in
scene_exits.h.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_MYTHRIL_SILVER_SPOT | 101 | Below the stone wall in the south west of town, metatile (14, 32). |
METATILE_BEHAVIOR_GOLEM_CORE_SPOT | Behind the breached wall north of town, metatile (32, 12). | |
METATILE_BEHAVIOR_BOULDER_GOLEM_CORE_SPOT | Under the round boulder, metatile (32, 7). | |
METATILE_BEHAVIOR_SOUTH_OF_COUNTER | 20 | The houses: the south side of the counter in the shop and inn, metatile (8, 9). |
METATILE_BEHAVIOR_NEAR_SOUTH_OF_COUNTER | The metatiles around it, (7, 9), (9, 9) and (7, 10) to (9, 10). | |
METATILE_BEHAVIOR_EAST_OF_COUNTER | The east side of the counter, metatiles (11, 6) to (12, 7). | |
METATILE_BEHAVIOR_NEAR_EAST_OF_COUNTER | The metatiles north and south of it, (11, 5), (12, 5), (11, 8) and (12, 8). | |
METATILE_BEHAVIOR_INN_SIGN | 30 | The sign by the counter, read from metatiles (9, 8) and (10, 8). |
Definition at line 86 of file loho.c.
LOHO_ROOMS_WAY
enum LOHO_ROOMS_WAY
The houses' stairs, each an exit and the entrance beside it, in pairs: each leads to its partner's entrance and back.
| Enumerator | Value | Description |
|---|---|---|
WAY_SHOP_STAIRS | 7 | up from the shop and inn to its bedroom |
WAY_INN_BEDROOM_STAIRS | down to the shop and inn | |
WAY_SOUTHWEST_HOUSE_STAIRS | down to the room under the hatch | |
WAY_HATCH_ROOM_STAIRS | up to the house in the south west |
Definition at line 125 of file loho.c.
anonymous enum
enum { SHOP_LOHO }
Loho's shops, as mnShopRun numbers them.
| Enumerator | Value | Description |
|---|---|---|
SHOP_LOHO | 30 |
Definition at line 765 of file loho.c.
anonymous enum
enum { INN_ID_LOHO }
Loho's inn, as mnInnCheckIn numbers the inns.
| Enumerator | Value | Description |
|---|---|---|
INN_ID_LOHO | 13 |
Definition at line 771 of file loho.c.
Functions in detail
scLohoClimbDownLadder
void scLohoClimbDownLadder(void)
Felix climbs down the ladder through the hatch on the stone platform north of town into the small room below, by the exit of the metatile he stepped from.
References fdActorFaceDirection(), fdActorGetById(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdActorSetSpriteFlags(), fdActorWaitForMoveById(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptPlaySound(), fdScriptWait(), Sint32 and syImportScriptSetExitRequest().
Referenced by scLohoStepOntoLadderFacingEast(), scLohoStepOntoLadderFacingWest() and scLohoTurnAndClimbDownLadder().
Definition at lines 138 and 920 of file loho.c.
scLohoMeetLull
void scLohoMeetLull(void)
Felix talks to Lull, the Jupiter Djinni on the roof of the Sanctum, metatile (14, 15), reached once the cannon has breached the wall: it joins the party.
References fdDjinnJoinParty().
Referenced by LohoTownCues.
Definition at line 193 of file loho.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 199 of file loho.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
References LohoRegions and MainRoutineStateWork.
Definition at line 204 of file loho.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 211 of file loho.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References LohoRoomsPlacements, LohoTownPlacements and MainRoutineStateWork.
Definition at line 216 of file loho.c.
scLohoDrawBrokenWall
void scLohoDrawBrokenWall(void)
Draws the ancient wall north of town as the cannon left it, with a breach through it.
References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesLayered().
Referenced by scLohoFireCannon() and scPrepareMap().
Definition at line 225 of file loho.c.
scLohoAskWantCannon
void scLohoAskWantCannon(Sint32 actor)
Felix talks to the old man in the purple robe beside the cannon at the east end of town, before the wall is breached: "Did you want this cannon?" If Felix says yes, "Well, if you can figure out a way to break down this wall, it's all yours."; if no, "If we can find someone to do that, we'll give 'im the cannon."
References fdPartyGetLeaderActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptWait() and Sint32.
Referenced by LohoTownCues.
Definition at line 240 of file loho.c.
scLohoExamineCannon
void scLohoExamineCannon(void)
Felix checks the cannon at the east end of town: "It looks like it's empty.", and the field menu opens.
References mnFieldMessageShow() and Sint32.
Referenced by LohoTownCues.
Definition at line 265 of file loho.c.
scLohoFireCannon
void scLohoFireCannon(void)
Felix uses the Magma Ball on the cannon at the east end of town: the miners load it and fire it at the ancient wall north of town, which is breached in a blast of sparks, "Is everyone all right?", and the miners give the party the cannon and carry it off to its ship.
References fdActorFaceActor(), fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorFaceEachOther(), fdActorGetById(), fdActorMoveToAndWait(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorSetDestination(), fdActorSetDestinationOffset(), fdActorSetPosAndFacing(), fdActorSetScript(), fdActorWaitForMoveById(), fdActorWaitForScriptEndById(), fdActorWalkBy(), fdActorWalkByAndWait(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptOpenMessage(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), FieldExplosionPalette, LohoCannonRises, LohoFirstMinerFetchesCannon, LohoFirstMinerGoesToWall, LohoFirstMinerReturns, LohoFirstMinerWalksBack, LohoSecondMinerStepsUp, LohoThirdMinerStepsUp, scFieldActorShowEmote(), scFieldActorShowItemIconById(), scFieldActorStartRepeatedMotion(), scFieldActorWatchAndSetScript(), scLohoDrawBrokenWall(), Sint32, syDecompressTaggedLZ(), syDMAXCopy(), syHeapAllocate(), syHeapAllocateEWRAM(), syHeapRelease(), syOAMAddSpriteAtDepthClamped() and 8 more.
Referenced by LohoTownCues.
Definition at line 276 of file loho.c.
scLohoTalkAboutBreachedWall
void scLohoTalkAboutBreachedWall(void)
Felix talks to the old man in the purple robe by the wall north of town, once it is breached: "I saw some of the village men carrying the cannon out of town...", or once the ship carries it, "Now that the wall's been breached, we can get on with the mining! Good work!"
References fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage() and Sint32.
Referenced by LohoTownCues.
Definition at line 682 of file loho.c.
scLohoMindReadMiner
void scLohoMindReadMiner(void)
Felix casts Mind Read on the old man by the wall north of town, once it is breached: "I don't know where they were taking it, but I'm glad the cannon's...", or once the ship carries it, his other thought.
References fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage() and Sint32.
Referenced by LohoTownCues.
Definition at line 695 of file loho.c.
scLohoScoopMythrilSilver
void scLohoScoopMythrilSilver(Sint32 id)
Felix casts Scoop on the spot below the stone wall in the south west of town, metatile (14, 32): he digs up Mythril Silver.
References fdScriptDigUpTreasure() and Sint32.
Referenced by LohoTownCues.
Definition at line 707 of file loho.c.
scLohoScoopWallGolemCore
void scLohoScoopWallGolemCore(Sint32 id)
Felix casts Scoop on the spot behind the breached wall north of town, metatile (32, 12): he digs up a Golem Core.
References fdScriptDigUpTreasure() and Sint32.
Referenced by LohoTownCues.
Definition at line 715 of file loho.c.
scLohoScoopBoulderGolemCore
void scLohoScoopBoulderGolemCore(Sint32 id)
Felix casts Scoop on the spot under the round boulder on the high ground in the north east of town, metatile (32, 7), once Lift has raised the boulder: he digs up a Golem Core.
References fdScriptDigUpTreasure() and Sint32.
Referenced by LohoTownCues.
Definition at line 724 of file loho.c.
scLohoLiftBoulder
void scLohoLiftBoulder(void)
Felix casts Lift on the round boulder on the high ground in the north east of town: it rises out of the way, and the Golem Core buried under it shows until he digs it up.
References fdActorGetById(), fdScriptGetFlag() and fdScriptSetFlag().
Referenced by LohoTownCues.
Definition at line 733 of file loho.c.
scGetCues
const CUE *scGetCues(void)
References LohoCues, LohoRoomsCues, LohoTownCues and MainRoutineStateWork.
Definition at line 741 of file loho.c.
scLohoReadInnSign
void scLohoReadInnSign(void)
Felix reads the sign by the counter in the shop and inn, from the south, metatiles (9, 8) and (10, 8): "People staying at the inn can check in at the counter."
References fdActorGetById(), MainRoutineStateWork, mnFieldMessageShow() and Sint32.
Referenced by LohoRoomsCues.
Definition at line 753 of file loho.c.
scLohoTalkToInnkeeper
void scLohoTalkToInnkeeper(void)
The woman who keeps the shop checks the party in at the inn counter: "Welcome to our inn."
It runs when Felix checks the counter, metatile (8, 9), or talks across it to
an unseen marker (ACTOR_INN_COUNTER) once she has come up to it.
References mnInnCheckIn().
Referenced by LohoRoomsCues.
Definition at line 781 of file loho.c.
scLohoTalkAboutCommerce
void scLohoTalkAboutCommerce(void)
Felix talks to the orange-haired woman in the shop and inn: once she has come up to the counter she opens the shop; otherwise "Commerce really took off when we started this mining colony in Loho.", or after the wall is breached, "I hear you took our cannon in exchange for knocking down that ancient wall."
References fdActorGetById(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), MainRoutineStateWork, mnShopRun() and Sint32.
Referenced by LohoRoomsCues.
Definition at line 790 of file loho.c.
scLohoTalkAboutCannon
void scLohoTalkAboutCannon(Sint32 actor)
Felix talks to the bearded man in the Sanctum: from across his altar, to the south, he offers a Sanctum's services; from the side, "If you're only here for the cannon, you can forget about it.", or once the wall is breached, a word on the splendid cannon the party has acquired.
References fdActorGetById(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), MainRoutineStateWork, mnSanctumRun() and Sint32.
Referenced by LohoRoomsCues.
Definition at line 813 of file loho.c.
scLohoShopkeeperComesToEastCounter
void scLohoShopkeeperComesToEastCounter(void)
Felix walks up to the east side of the counter in the shop and inn, facing west, metatiles (11, 6) to (12, 7): the orange-haired woman comes over to the counter, and talking to her then opens the shop.
References fdActorSetScript(), fdScriptSetFlag() and LohoShopkeeperToEastCounter.
Referenced by LohoRoomsCues.
Definition at line 840 of file loho.c.
scLohoShopkeeperComesToSouthCounter
void scLohoShopkeeperComesToSouthCounter(void)
Felix walks up to the counter in the shop and inn from the south, facing north, metatile (8, 9): the orange-haired woman steps up behind the counter across from him, and talking to her then opens the shop.
References fdActorSetScript(), fdScriptSetFlag() and LohoShopkeeperToSouthCounter.
Referenced by LohoRoomsCues.
Definition at line 849 of file loho.c.
scLohoShopkeeperGoesBack
void scLohoShopkeeperGoesBack(void)
Felix steps away from the counter in the shop and inn, onto the metatiles around where he stood: the orange-haired woman goes back to her place.
References fdActorSetScript(), fdScriptClearFlag() and LohoVillagerReturns.
Referenced by LohoRoomsCues.
Definition at line 857 of file loho.c.
scLohoAnimateMetatiles
static __inline__ void scLohoAnimateMetatiles(const void *steps, Sint32 x, Sint32 y)
Plays a map metatile animation at its place on the map grid.
References fdMapGridAnimateMetatiles() and Sint32.
Referenced by scLohoOpenDoorAndEnter().
Definition at line 864 of file loho.c.
scLohoOpenDoorAndEnter
void scLohoOpenDoorAndEnter(void)
Felix walks north into the wooden double door of the Sanctum, metatiles (15, 16) and (16, 16): it swings open, he steps in, and the screen fades to the Sanctum's hall with its green carpet. The town's people stop moving as he goes.
References fdActorGetById(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), LohoSanctumDoor, MainRoutineStateWork, scLohoAnimateMetatiles() and syImportScriptSetExitRequest().
Referenced by LohoTownCues.
Definition at line 874 of file loho.c.
scLohoEnterDoor
void scLohoEnterDoor(void)
Felix walks north into the open doorway of one of the houses, metatiles (5, 15), (5, 24), (24, 26) and (36, 18), and the screen fades to the room inside.
References fdActorSetAnimation(), fdActorSetDestinationOffset(), fdScriptPlaySound(), MainRoutineStateWork and syImportScriptSetExitRequest().
Referenced by LohoTownCues.
Definition at line 907 of file loho.c.
scLohoStepOntoLadderFacingEast
void scLohoStepOntoLadderFacingEast(void)
Felix walks east onto the hatch on the stone platform in the north east of town from metatile (35, 15), steps up to it and climbs down the ladder.
References fdActorWalkByAndWait(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait() and scLohoClimbDownLadder().
Referenced by LohoTownCues.
Definition at line 952 of file loho.c.
scLohoStepOntoLadderFacingWest
void scLohoStepOntoLadderFacingWest(void)
Felix walks west onto the hatch on the stone platform in the north east of town from metatile (37, 15), steps up to it and climbs down the ladder.
References fdActorWalkByAndWait(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait() and scLohoClimbDownLadder().
Referenced by LohoTownCues.
Definition at line 964 of file loho.c.
scLohoTurnAndClimbDownLadder
void scLohoTurnAndClimbDownLadder(void)
Felix walks south onto the hatch on the stone platform in the north east of town, metatile (36, 14), turns to face the ladder and climbs down.
References fdActorFaceDirection(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait() and scLohoClimbDownLadder().
Referenced by LohoTownCues.
Definition at line 976 of file loho.c.
scLohoSetUpTown
void scLohoSetUpTown(void)
The town opens with the backdrop fade; the cannon is drawn without a shadow.
References fdActorGetById() and fdActorSetSpriteFlags().
Referenced by scInit().
Definition at line 986 of file loho.c.
scLohoSetUpRooms
void scLohoSetUpRooms(void)
The houses open with the window transition; the unseen marker on the inn counter is drawn without a shadow.
References fdActorGetById() and fdActorSetSpriteFlags().
Referenced by scInit().
Definition at line 994 of file loho.c.
scLohoPlaceFacing
static __inline__ void scLohoPlaceFacing(Sint32 id, Sint32 x, Sint32 z, Uint16 facing)
Places an actor facing an angle, the angle taken as the Uint16 an actor's facing is, as Madra and its houses also place them.
References fdActorSetPosAndFacing() and Sint32.
Referenced by scInit().
Definition at line 1003 of file loho.c.
scInit
Sint32 scInit(void)
References fdActorGetById(), fdActorSetPosAndFacing(), fdActorSetScript(), fdActorSetWideSprite(), fdScriptGetFlag(), MainRoutineStateWork, scLohoPlaceFacing(), scLohoSetUpRooms(), scLohoSetUpTown() and Sint32.
Definition at line 1009 of file loho.c.
scPrepareMap
Sint32 scPrepareMap(void)
References fdScriptGetFlag(), MainRoutineStateWork, scLohoDrawBrokenWall() and Sint32.
Definition at line 1062 of file loho.c.
Variables in detail
LohoShopkeeperToEastCounter
extern Sint32 LohoShopkeeperToEastCounter[]
Sint32 LohoShopkeeperToEastCounter[]
The orange-haired woman stepping over to the counter by Felix at its east side.
References Sint32.
Referenced by scLohoShopkeeperComesToEastCounter().
Definition at lines 133 and 1215 of file loho.c.
LohoShopkeeperToSouthCounter
extern Sint32 LohoShopkeeperToSouthCounter[]
Sint32 LohoShopkeeperToSouthCounter[]
The orange-haired woman stepping up to the counter across from Felix at its south side.
References Sint32.
Referenced by scLohoShopkeeperComesToSouthCounter().
Definition at lines 134 and 1205 of file loho.c.
LohoVillagerReturns
extern Sint32 LohoVillagerReturns[]
Sint32 LohoVillagerReturns[]
The orange-haired woman going back to her place.
References Sint32.
Referenced by scLohoShopkeeperGoesBack().
Definition at lines 136 and 1186 of file loho.c.
LohoRegions
extern SCENE_REGION LohoRegions[]
SCENE_REGION LohoRegions[]
The houses' exit regions: the top of the ladder up out of the room under the hatch.
Referenced by scGetExitRegions().
Definition at lines 139 and 1227 of file loho.c.
LohoTownPlacements
extern ACTOR_PLACE LohoTownPlacements[]
ACTOR_PLACE LohoTownPlacements[]
The town's actors, by LOHO_ACTOR_ID.
Referenced by scGetActorPlacements().
Definition at lines 140 and 1269 of file loho.c.
LohoRoomsPlacements
extern ACTOR_PLACE LohoRoomsPlacements[]
ACTOR_PLACE LohoRoomsPlacements[]
The houses' actors, by LOHO_ROOMS_ACTOR_ID.
References LohoVillagerPaces.
Referenced by scGetActorPlacements().
Definition at lines 141 and 1304 of file loho.c.
LohoFirstMinerGoesToWall
extern Sint32 LohoFirstMinerGoesToWall[]
Sint32 LohoFirstMinerGoesToWall[]
The miner by the cannon walks up to the breached wall.
References Sint32.
Referenced by scLohoFireCannon().
Definition at lines 142 and 1072 of file loho.c.
LohoSecondMinerStepsUp
extern Sint32 LohoSecondMinerStepsUp[]
Sint32 LohoSecondMinerStepsUp[]
The miner puzzled by the cannon steps up to look at the wall.
References Sint32.
Referenced by scLohoFireCannon().
Definition at lines 143 and 1096 of file loho.c.
LohoThirdMinerStepsUp
extern Sint32 LohoThirdMinerStepsUp[]
Sint32 LohoThirdMinerStepsUp[]
The man keeping the cannon steps up to look at the wall.
References Sint32.
Referenced by scLohoFireCannon().
Definition at lines 145 and 1106 of file loho.c.
LohoFirstMinerWalksBack
extern Sint32 LohoFirstMinerWalksBack[]
Sint32 LohoFirstMinerWalksBack[]
The miner by the cannon walks back from the wall.
References Sint32.
Referenced by scLohoFireCannon().
Definition at lines 147 and 1118 of file loho.c.
LohoFirstMinerFetchesCannon
extern Sint32 LohoFirstMinerFetchesCannon[]
Sint32 LohoFirstMinerFetchesCannon[]
The miner by the cannon goes to fetch it.
References Sint32.
Referenced by scLohoFireCannon().
Definition at lines 148 and 1132 of file loho.c.
LohoFirstMinerReturns
extern Sint32 LohoFirstMinerReturns[]
Sint32 LohoFirstMinerReturns[]
The miner by the cannon comes back with it.
References Sint32.
Referenced by scLohoFireCannon().
Definition at lines 149 and 1145 of file loho.c.
LohoCannonRises
extern Sint32 LohoCannonRises[]
Sint32 LohoCannonRises[]
Run on the cannon as the crew sets off with it: it rises two pixels off the ground.
References Sint32.
Referenced by scLohoFireCannon().
Definition at lines 150 and 1156 of file loho.c.
LohoCues
extern CUE LohoCues[]
CUE LohoCues[]
The cues of neither the town nor the houses: none.
Referenced by scGetCues().
Definition at lines 151 and 1315 of file loho.c.
LohoTownCues
extern CUE LohoTownCues[]
CUE LohoTownCues[]
The town's cues.
References scLohoAskWantCannon(), scLohoEnterDoor(), scLohoExamineCannon(), scLohoFireCannon(), scLohoLiftBoulder(), scLohoMeetLull(), scLohoMindReadMiner(), scLohoOpenDoorAndEnter(), scLohoScoopBoulderGolemCore(), scLohoScoopMythrilSilver(), scLohoScoopWallGolemCore(), scLohoStepOntoLadderFacingEast(), scLohoStepOntoLadderFacingWest(), scLohoTalkAboutBreachedWall() and scLohoTurnAndClimbDownLadder().
Referenced by scGetCues().
Definition at lines 152 and 1320 of file loho.c.
LohoRoomsCues
extern CUE LohoRoomsCues[]
CUE LohoRoomsCues[]
The houses' cues.
References scLohoReadInnSign(), scLohoShopkeeperComesToEastCounter(), scLohoShopkeeperComesToSouthCounter(), scLohoShopkeeperGoesBack(), scLohoTalkAboutCannon(), scLohoTalkAboutCommerce() and scLohoTalkToInnkeeper().
Referenced by scGetCues().
Definition at lines 153 and 1442 of file loho.c.
LohoSanctumDoor
extern MAP_EDIT LohoSanctumDoor
MAP_EDIT LohoSanctumDoor
The Sanctum's door opening, at its place on the map grid.
References LohoDoorOpening.
Referenced by scLohoOpenDoorAndEnter().
Definition at lines 154 and 1491 of file loho.c.
LohoVillagerPaces
extern Sint32 LohoVillagerPaces[]
Sint32 LohoVillagerPaces[]
The orange-haired woman looking about the shop and inn.
References Sint32.
Referenced by LohoRoomsPlacements.
Definition at lines 155 and 1171 of file loho.c.
LohoDoorOpening
extern Uint16 LohoDoorOpening[]
Uint16 LohoDoorOpening[]
How the Sanctum's double door swings open, as three ticks of metatiles copied over the closed door.
Referenced by LohoSanctumDoor.
Definition at lines 157 and 1482 of file loho.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 1232 of file loho.c.