Skip to Content
The Alchemy Project

src/scene/garoh.c

Garoh, the village of werewolves that guards Air's Rock, in five scenes that share this overlay: the entrance from the world map (SceneIdGarohEntrance), the path up to the village (SceneIdGarohPath, whose chest holds the Hypnos Sword), the village itself (SceneIdGaroh), the tunnels under its houses (SceneIdGarohTunnels) and the cave behind the rock by the sanctum (SceneIdGarohWerewolfCave). More…

Macros

NameDescription
#defineOWN_fdRopeLashThis unit declares its own form of fdRopeLash, below.
#defineEFFECT_SET_MODE fdActorSelectAnimation
#defineEFFECT_SET_SCRIPT fdActorStartScript
#defineFLAG_GAROH_REACHED_VILLAGE 0x919Story flags of the werewolves' secret, in the order the party meets them.
#defineFLAG_GAROH_SAW_WEREWOLF 0x91c
#defineFLAG_GAROH_FOLLOWED_WEREWOLF 0x91d
#defineFLAG_GAROH_MET_WEREWOLVES 0x91e
#defineFLAG_GAROH_HEARD_MAHA 0x91f
#defineFLAG_WEREWOLF_PEERED_OUT FLAG_AREA_TEMP(0x20)For this visit to the area: the old werewolf has peered from the cave, the little werewolf has thanked the party, and the entrance is in the evening's light, between its two lines.
#defineFLAG_LITTLE_WEREWOLF_THANKED FLAG_AREA_TEMP(0x01)
#defineFLAG_EVENING FLAG_AREA_TEMP(0x18)
#defineFLAG_NIGHT_TINTS_ACTORS FLAG_AREA_TEMP(0x11)By night the village's actors take the warm tint as well as its map.
#defineFLAG_FIRST_PILLAR_SUNK FLAG_SCENE_TEMP(0x01)The entrance: the pillars sunk into their slots, and the rope Lashed.
#defineFLAG_SECOND_PILLAR_SUNK FLAG_SCENE_TEMP(0x02)
#defineFLAG_GAROH_ROPE_LASHED FLAG_SCENE_TEMP(0x03)
#defineFLAG_FOURTH_PILLAR_SUNK FLAG_SCENE_TEMP(0x04)
#defineFLAG_CROSSED_LOWER_TWILIGHT_LINE FLAG_SCENE_TEMP(0x10)The two lines in the entrance where the light changes, crossed since the party came in.
#defineFLAG_CROSSED_UPPER_TWILIGHT_LINE FLAG_SCENE_TEMP(0x11)
#defineWINDOW_LIGHT 14The houses' lit windows, colour 14 of BG palette 1, kept white when the village darkens for the night.
#defineENTRANCE_PATH_PURPLE_NIGHT 12The way into the path up to the village that no exit uses: by night it tints the path purple rather than warm and dark.
#defineETHER_GROW_STEPS 20The steps in which the Ether grows from two fifths of its size to full.
#defineDEFINE_GAROH_LOAD_PALETTE (name, components, first, count)Writes count colours from first on, from a table of red, green and blue halfwords, to the BG palette and the palette fade's source.
#defineHOWL_PERIOD_MASK 0x3ffA howl comes each time the night's ticks under this mask are 0.
#defineDEFINE_GAROH_SINK_PILLAR_ON_METATILE (Defines a check that sinks pillar actorId (scGarohSinkPillar) once it stands on metatile (metatileX, metatileZ), and sets flag so it sinks once.
#defineDEFINE_GAROH_PLAY_EFFECT (name, handler, fromX)Defines Reveal's effect played on actor at the cave's passage: the step of Reveal it runs, and the passage's 3 by 3 metatiles redrawn from column fromX.

Enumerations

NameDescription
enumGAROH_VILLAGE_ACTOR_ID { ACTOR_VILLAGER_ASKING_ABOUT_THE_WEREWOLF, ACTOR_HOODED_VILLA … }The village's people by night and by day (SceneIdGaroh), numbering the rows of GarohVillageActorPlacements and GarohVillageDayActorPlacements: the five who go hooded by night show their faces by day.
enumGAROH_WEREWOLF_ACTOR_ID { ACTOR_WEREWOLF, ACTOR_KRADEN, ACTOR_MAHA, ACTOR_CAVE_PASSAGE … }The path up to the village and the werewolves' cave (SceneIdGarohPath and SceneIdGarohWerewolfCave), numbering the rows of GarohWerewolfCaveActorPlacements; GarohPath places the werewolf and Kraden on the same rows.
enumanonymous enum { ACTOR_PATH_TIGHTROPE_POST_A, ACTOR_PATH_TIGHTROPE_POST_B }The tightrope posts on the path up to the village: Jenna, Sheba and Piers take their own numbers, so the posts follow the werewolf and Kraden.
enumGAROH_ENTRANCE_ACTOR_ID { ACTOR_FIRST_PILLAR, ACTOR_SECOND_PILLAR, ACTOR_THIRD_PILLAR, … }The stone pillars in the entrance (SceneIdGarohEntrance), numbering the rows of GarohEntranceActorPlacements: Move or a push takes each onto the slot where it sinks.
enumGAROH_METATILE_BEHAVIOR { METATILE_BEHAVIOR_BY_SANCTUM_DOOR, METATILE_BEHAVIOR_GAROH_W … }The metatiles the step and examine cues answer, by their behavior in each scene's map.
enumGAROH_WEREWOLF_CAVE_PASSAGE { GAROH_WEREWOLF_CAVE_SOUTH_TO_NORTH_EAST, GAROH_WEREWOLF_CAVE … }The passages within the werewolves' cave (scene_exits.h names only the exits between scenes).
enumGAROH_TUNNELS_PASSAGE { GAROH_TUNNELS_NORTH_TO_MIDDLE, GAROH_TUNNELS_MIDDLE_TO_NORTH … }The passages within the tunnels under the houses, between its three parts, each with a camera of its own: the north tunnel in from Garoh's west, the long middle one, and the south one in from Garoh's south.
enumanonymous enum { ANIM_WEREWOLF_SIT }The werewolf sheet's last picture, held: sitting on the ground.
enumanonymous enum { WEAVE_ACROSS, WEAVE_DOWN }How far, in pixels, the werewolf weaves either side of the path as it runs past: across the screen, and up and down it.

Functions

NameDescription
Sint32fdRopeLash ()fdRopeLash as this scene's callers see it, with no parameter list and a Sint32 result; the definition takes the rope and its two posts and returns nothing.
voidscGarohSinkPillar (Sint32 id, ACTOR *actor)A pillar set down on its slot sinks 32 pixels into the ground with a whoosh and a ring of dust.
voidscGarohSinkFirstPillarOnMetatile (void)The first pillar sinks once it stands on metatile (10, 29), one west of where it starts.
voidscGarohSinkSecondPillarOnMetatile (void)The second pillar sinks once it stands on metatile (15, 28), one east of where it starts.
voidscGarohCheckThirdPillar (void)The third pillar has no slot to sink into: its check reads the pillar and the rope's flag and does nothing.
voidscGarohSinkFourthPillarOnMetatile (void)The fourth pillar sinks once it stands on metatile (15, 25), one south of where it starts.
voidscGarohScatterDustRing (Sint32 id)A ring of puffs of dust spreads out from the actor, one every eighth of a turn: nine, the first and last both to the east.
voidscGarohWerewolvesRevealThemselves (void)The first night in the werewolves' cave, at metatiles (19..21, 15): Kraden wonders where the werewolf went, the werewolves surround the party, and their elder Maha speaks with them and tells them to come back later.
voidscGarohMahaTellsTheLegend (void)By day in the werewolves' cave, at metatiles (19..21, 15): "Ah, you came...
voidscGarohInitVillage (void)The village: by night darkened, the wolves howling and its houses' windows lit white; by day three of those windows are drawn dark, on both map layers.
voidscGarohInitEntrance (void)The entrance from the world map: the four stone pillars where they were left, in the evening's or the night's light once the party has climbed into it.
Sint32scGarohMetWerewolves ()Until the secret is shared, whether the party has met the werewolves; after it, nothing is returned.
voidscGarohOpenDoorAndEnter (void)Walking north into the door of one of Garoh's round houses, or of the sanctum, opens it and Felix walks inside, while the villagers stand still: the young werewolf's family's home at metatile (14, 23), the old couple's at (8, 14), the weapons and armor shop's at (10, 24), the inn at (21, 25) and the sanctum's wide arched door at (14, 15).
voidscGarohWerewolfPeersFromCave (void)Walking past the sanctum's door at night before meeting the werewolves, metatile (20, 16): the camera looks up at the big grey rock on the ledge above, an old grey-maned werewolf opens it with Reveal and steps out, cries "What!?
voidscGarohEnterOpening (void)Walking north into an opening Reveal has shown takes the party through it: the cleft at the foot of the big grey rock north-east of the sanctum, metatile (22, 11), leads down into the werewolves' cave, and the passage behind the round grey rock in the cave leads on.
voidscGarohMeetInTheCave (void)Walking north to metatiles (19..21, 15) of the werewolves' cave, below where Maha stands: the first night the werewolves surround the party, and by day Maha is waiting there to tell the legend.
voidscGarohPlaceFirstPillar (void)Move on the first stone pillar, on the lowest ledge of the entrance at metatile (11, 29): slid one metatile west, onto metatile (10, 29), it drops off the ledge and sinks into the ground with a whoosh and a ring of dust until its top is level with the ledge, so that Felix can walk west off the ledge onto it.
voidscGarohPlaceSecondPillar (void)Move on the second stone pillar, east of the first at metatile (14, 28): slid one metatile east, onto metatile (15, 28), it drops off its ledge onto the path below and sinks into the ground with a whoosh and a ring of dust until its top is level with the ledge.
voidscGarohPlaceThirdPillar (void)Move on the third stone pillar, on the ledge above at metatile (10, 24): it slides where Move sends it, and has no slot to sink into.
voidscGarohPlaceFourthPillar (void)Move on the fourth stone pillar, east of the third at metatile (15, 24): cast from the ledge north of it and slid one metatile south, onto metatile (15, 25), it drops off the ledge onto the path below and sinks into the ground with a whoosh and a ring of dust until its top is level with the ledge.
voidscGarohPlacePushedPillar (void)Pushing a stone pillar in the entrance sinks it just as Move does when it comes to rest on its slot: the first on metatile (10, 29), the second on (15, 28), the fourth on (15, 25).
voidscGarohRevealTunnelPassage (void)Reveal in the tunnels shows a hidden passage at metatiles (11, 33..35).
voidscGarohHideCaveEntrance (void)Reveal wearing off in the village hides the cleft in the big grey rock again.
voidscGarohRestoreEntranceLight (void)Reveal wearing off in the entrance brings back the evening's or the night's light.
voidscGarohHideTunnelPassage (void)Reveal wearing off in the tunnels hides their passage again.
voidscGarohHideCavePassage (void)Reveal wearing off in the werewolves' cave closes the round grey rock again.
voidscGarohCrossLowerTwilightLine (void)Climbing through the entrance from the world map before the werewolves' secret is shared, the step onto metatile (13, 26), the lower of its two lines, turns the daylight to a golden evening; coming down from the path, the same step brings the daylight back.
voidscGarohCrossUpperTwilightLine (void)Climbing on up past metatile (16, 22), the upper of the entrance's two lines, the evening darkens into night; coming down from the path, the same step turns the night to evening.
voidscGarohLashRope (void)Unused: Lash ties a rope between the third and fourth stone pillars in the entrance; no cue runs it.
BSS_DATAALIGNED (16)BG2's horizontal offset for each screen line while the path's layer ripples by night (scGarohWavePathLayer).
voidscGarohMatchSecondLayer (void)By day the second map layer of the path up to the village takes the first layer's scale and wrap.
voidscGarohWavePathLayer (void)By night the second map layer of the path up to the village ripples: each line is offset by two sines of the tick count, handed to an HBlank DMA.
DEFINE_GAROH_LOAD_PALETTE(scGarohLoadPathDayColors , GarohPathDayColors, 24, 8)By day the path's colours: BG palette 1's colours 8 to 15.
DEFINE_GAROH_LOAD_PALETTE(scGarohLoadPathNightColors , GarohPathNightColors, 97, 9)By night the path's colours: BG palette 6's colours 1 to 9.
Sint32scGarohHideScriptedShadow (ACTOR *actor)A script command that draws the wall lamp it runs on without a shadow.
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 void *scGetActorPlacements (void)The people of the scene being entered: in the village, the hooded villagers by night or their faces once Maha has shared the secret.
voidscGarohAskIfSawWerewolf (Sint32 actor)Talking at night to the hooded villager outside the young werewolf's family's home: "So, uh...you say you saw a werewolf?" Yes gets "Don't be ridiculous...
voidscGarohAskAboutFullMoon (Sint32 actor)Talking at night to the hooded villager outside the Item Shopkeeper's house: "Don't you love the sight of the full moon?" Yes gets "Yes, I agree...
voidscGarohAskAboutSecret (Sint32 actor)Talking by day to the woman in green south-west of the well, the villager who warned strangers off at night: "Maha said that you were the only outsiders we could share our secret with...", and she asks whether it bothers them that everyone here is a werewolf.
voidscGarohHowlOutLoud (Sint32 actor)Talking by day to the grey-haired man west of the well, who claimed at night to be calling his dog: he howls "Awoooooh!" and is glad he no longer has to hide it.
voidscGarohHowlForDog (Sint32 actor)Talking at night to the hooded villager west of the well: he howls "Gaaaroooooo!", catches himself ("Gah!
voidscGarohLittleWerewolfThanks (void)Talking by day to the fair-haired boy running about by the sanctum, or reading his mind the first time: "Hey, it's you guys!
const void *scGetCues (void)The cues of the scene being entered: in the village, the night's until Maha has shared the secret and the day's after.
voidscGarohHowlAtNight (void)A wolf howls in the distance every 1,024 ticks while it is night.
voidscGarohInitPath (void)The path up to the village: the tightrope strung; by night darkened, with the full moon shining in the pond below the falls and the second map layer rippling; by day the pond's blue water and the falls drawn over the moon.
Sint32scInit (void)Sets up the scene being entered: the cave's lamps, and Maha once he has told the legend; the village by night or day; the path up to the village; or the entrance, which also makes the sanctum the place a defeat returns the party to once they have reached the village.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.
voidscGarohLiftPillar (void)Nothing visible happens as Felix starts casting Move on one of the stone pillars in the entrance; the game lifts the pillar off the map's metatiles so that Move can slide it.
voidscGarohLiftPushedPillar (void)Nothing visible happens as Felix starts pushing one of the stone pillars in the entrance; as with Move, the game first lifts the pillar off the map's metatiles so that it can slide.
voidscGarohRevealCaveEntrance (void)Reveal in the village shows the cleft at the foot of the big grey rock north-east of the sanctum, metatile (22, 11), as a way in.
voidscGarohRevealCavePassage (void)Reveal in the werewolves' cave shows a passage through the round grey rock in its middle, metatiles (19..21, 5..7).
Sint32scGarohIsNight (void)Reveal wearing off on the path up to the village.
voidscFieldEffectSpawn (Sint32 x, Sint32 y, Sint32 z, Sint32 velocityX, Sint32 velocityY, Sint32 velocityZ, Uint32 flags, const EFFECT_OPTIONS *options)Spawns a field effect at x, y, z moving at the velocity given, its type, scale, palette, priority, script, rotation, spin and update chosen by the EFFECT_USE_ flags from the options.
voidscGarohPopQuestionMark (x, y, z, rotation, ticks) Sint32 x, y, z; Sint16 rotation; Sint32 ticks;Pops a "?" bubble up at (x, y, z), tilted by rotation, for the given ticks.
voidscGarohPopQuestionMarks (Sint32 id)Two question marks pop up over the actor's head in turn, right and left, each tilted, a third of a second apart.
DEFINE_GAROH_PLAY_EFFECT(scGarohOpenCavePassage , FIELD_PSYNERGY_HANDLER_ON_TARGET, 44)Reveal's effect played on the cave's passage as it opens.
DEFINE_GAROH_PLAY_EFFECT(scGarohCloseCavePassage , FIELD_PSYNERGY_HANDLER_END, 39)Reveal's effect played on the cave's passage as it closes.
static inline voidscWalkTowardLeader (Sint32 actorId)Sends an actor walking to where the leader stands, if there is a leader.
static inline voidscWalkIntoLeader (Sint32 actorId)An actor walks into the leader and is taken off the map, as the party closes up into one walking sprite at the end of a script.
static inline Sint32scGarohPathStep (Sint32 from, Sint32 to, Sint32 i)The point i eighths of the way from from to to.
voidscGarohWerewolfRunsPast (void)Walking up the path to the village the first night, metatiles (9..11, 19): a werewolf howls "Gaaaroooooo!" and bounds down the path past the pond and off into the village, and Kraden explains to the startled party what a werewolf is.
voidscGarohFollowWerewolfIntoCave (void)Coming down into the werewolves' cave through the cleft by the sanctum, metatiles (17..18, 49): a howl echoes, the little werewolf from the path comes into sight, Kraden cries "Look!

Variables

NameDescription
extern ACTOR_PLACEGarohVillageDayActorPlacements []
extern CUEGarohEntranceCues []No end row: the room reads on into the tunnels' table, whose exits and Reveal answer here too.
extern Uint32GarohWerewolfLookAroundScript []The werewolf on the path glancing from side to side as it howls (scGarohWerewolfRunsPast).
extern Uint32FieldEffectShortScript []
extern Uint32FieldEffectLongScript []
extern Sint32GarohWallLampScript []A wall lamp's actor script: the fire lowered 4 pixels, moved 6 east and shrunk to four fifths, with no shadow.
extern Uint16GarohHouseDoorOpening []A round house's door opening, in two steps of six ticks each.
extern Uint16GarohShopDoorOpening []The weapons and armor shop's door opening, under its stone lintel.
extern Uint16GarohSanctumDoorOpening []The sanctum's arched door opening, two metatiles wide.
Uint16GarohWaveLines [DISPLAY_HEIGHT]BG2's horizontal offset for each screen line while the path's layer ripples by night (scGarohWavePathLayer).
extern Uint16GarohPathDayColors []The path's colours by day, BG palette 1's colours 8 to 15: red, green and blue, 0 to 31.
extern Uint16GarohPathNightColors []The path's colours by night, BG palette 6's colours 1 to 9: red, green and blue, 0 to 31.
extern ACTOR_PLACEGarohActorPlacements []
extern ACTOR_PLACEGarohVillageActorPlacements []
extern ACTOR_PLACEGarohEntranceActorPlacements []
extern ACTOR_PLACEGarohTunnelsActorPlacements []
extern ACTOR_PLACEGarohPathActorPlacements []
extern ACTOR_PLACEGarohWerewolfCaveActorPlacements []
extern MAP_EDITGarohDoors []The doors Felix walks into, a row for each exit from the first: the opening, and the metatile of map layer 1 (64 columns east of layer 0's) where it is drawn, over the doorway's top.
extern CUEGarohCues []The cues of a scene the overlay holds no table for: its first two exits.
extern CUEGarohVillageCues []
extern CUEGarohVillageDayCues []
extern CUEGarohPathCues []
extern CUEGarohTunnelsCues []
extern CUEGarohWerewolfCaveCues []
extern Sint32GarohHowlTicksThe ticks counted at night; a wolf howls every 1,024.
extern Sint16GarohPillars []The four pillars Move pushes, ended by -1.
extern Uint32GarohQuestionMarkScript []A "?" bubble's script, run once the wait scGarohPopQuestionMark gives it has passed: the bubble is released.
extern Uint32FieldEffectMediumScript []The flash about the Tomegathericon: held 45 ticks, then put away and freed.
const Sint32 *FieldEffectDurationScripts []The field effects' three scripts by how long an effect lasts: short, medium and long.
Uint32SceneExits []The room has no exits of its own.

Description

Garoh, the village of werewolves that guards Air's Rock, in five scenes that share this overlay: the entrance from the world map (SceneIdGarohEntrance), the path up to the village (SceneIdGarohPath, whose chest holds the Hypnos Sword), the village itself (SceneIdGaroh), the tunnels under its houses (SceneIdGarohTunnels) and the cave behind the rock by the sanctum (SceneIdGarohWerewolfCave).

The party first comes on a night of the full moon. Climbing through the entrance, the light turns to evening and then to night (scGarohCrossLowerTwilightLine, scGarohCrossUpperTwilightLine); on the path a werewolf howls and runs past into the village (scGarohWerewolfRunsPast). The hooded villagers say there are no werewolves, and by the sanctum an old werewolf peers out of the big grey rock and hides again (scGarohWerewolfPeersFromCave). With Reveal from Air's Rock the party opens the rock, follows the little werewolf into the cave (scGarohFollowWerewolfIntoCave) and is surrounded by the werewolves, whose elder Maha tells them to come back later (scGarohWerewolvesRevealThemselves). By day the villagers show their faces, and Maha tells the werewolves' legend and gives the party Ether (scGarohMahaTellsTheLegend).

Macros in detail

OWN_fdRopeLash

#define OWN_fdRopeLash

This unit declares its own form of fdRopeLash, below.

Definition at line 22 of file garoh.c.

EFFECT_SET_MODE

#define EFFECT_SET_MODE fdActorSelectAnimation

Referenced by EFFECT_SPAWN.

Definition at line 31 of file garoh.c.

EFFECT_SET_SCRIPT

#define EFFECT_SET_SCRIPT fdActorStartScript

Referenced by EFFECT_SPAWN.

Definition at line 32 of file garoh.c.

FLAG_GAROH_REACHED_VILLAGE

#define FLAG_GAROH_REACHED_VILLAGE 0x919

Story flags of the werewolves' secret, in the order the party meets them.

Referenced by scInit().

Definition at line 183 of file garoh.c.

FLAG_GAROH_SAW_WEREWOLF

#define FLAG_GAROH_SAW_WEREWOLF 0x91c

Referenced by GarohPathCues and scGarohWerewolfRunsPast().

Definition at line 184 of file garoh.c.

FLAG_GAROH_FOLLOWED_WEREWOLF

#define FLAG_GAROH_FOLLOWED_WEREWOLF 0x91d

Referenced by GarohWerewolfCaveCues and scGarohFollowWerewolfIntoCave().

Definition at line 185 of file garoh.c.

FLAG_GAROH_MET_WEREWOLVES

#define FLAG_GAROH_MET_WEREWOLVES 0x91e

Referenced by GarohVillageCues, scGarohMeetInTheCave(), scGarohMetWerewolves() and scGarohWerewolvesRevealThemselves().

Definition at line 186 of file garoh.c.

FLAG_GAROH_HEARD_MAHA

#define FLAG_GAROH_HEARD_MAHA 0x91f

Referenced by scGarohMahaTellsTheLegend(), scGarohMeetInTheCave() and scInit().

Definition at line 187 of file garoh.c.

FLAG_WEREWOLF_PEERED_OUT

#define FLAG_WEREWOLF_PEERED_OUT FLAG_AREA_TEMP(0x20)

For this visit to the area: the old werewolf has peered from the cave, the little werewolf has thanked the party, and the entrance is in the evening's light, between its two lines.

Referenced by scGarohWerewolfPeersFromCave().

Definition at line 191 of file garoh.c.

FLAG_LITTLE_WEREWOLF_THANKED

#define FLAG_LITTLE_WEREWOLF_THANKED FLAG_AREA_TEMP(0x01)

Referenced by GarohVillageDayCues and scGarohLittleWerewolfThanks().

Definition at line 192 of file garoh.c.

FLAG_EVENING

#define FLAG_EVENING FLAG_AREA_TEMP(0x18)

Referenced by scGarohCrossLowerTwilightLine(), scGarohCrossUpperTwilightLine(), scGarohInitEntrance() and scGarohRestoreEntranceLight().

Definition at line 193 of file garoh.c.

FLAG_NIGHT_TINTS_ACTORS

#define FLAG_NIGHT_TINTS_ACTORS FLAG_AREA_TEMP(0x11)

By night the village's actors take the warm tint as well as its map. Nothing in the code sets it, so they keep their own colours.

Referenced by scGarohInitVillage().

Definition at line 196 of file garoh.c.

FLAG_FIRST_PILLAR_SUNK

#define FLAG_FIRST_PILLAR_SUNK FLAG_SCENE_TEMP(0x01)

The entrance: the pillars sunk into their slots, and the rope Lashed.

Referenced by GarohEntranceCues.

Definition at line 242 of file garoh.c.

FLAG_SECOND_PILLAR_SUNK

#define FLAG_SECOND_PILLAR_SUNK FLAG_SCENE_TEMP(0x02)

Referenced by GarohEntranceCues.

Definition at line 243 of file garoh.c.

FLAG_GAROH_ROPE_LASHED

#define FLAG_GAROH_ROPE_LASHED FLAG_SCENE_TEMP(0x03)

Referenced by GarohEntranceCues, scGarohCheckThirdPillar() and scGarohLashRope().

Definition at line 244 of file garoh.c.

FLAG_FOURTH_PILLAR_SUNK

#define FLAG_FOURTH_PILLAR_SUNK FLAG_SCENE_TEMP(0x04)

Referenced by GarohEntranceCues and scGarohSinkFourthPillarOnMetatile().

Definition at line 245 of file garoh.c.

FLAG_CROSSED_LOWER_TWILIGHT_LINE

#define FLAG_CROSSED_LOWER_TWILIGHT_LINE FLAG_SCENE_TEMP(0x10)

The two lines in the entrance where the light changes, crossed since the party came in.

Referenced by GarohEntranceCues and scGarohCrossLowerTwilightLine().

Definition at line 248 of file garoh.c.

FLAG_CROSSED_UPPER_TWILIGHT_LINE

#define FLAG_CROSSED_UPPER_TWILIGHT_LINE FLAG_SCENE_TEMP(0x11)

Referenced by GarohEntranceCues and scGarohCrossUpperTwilightLine().

Definition at line 249 of file garoh.c.

WINDOW_LIGHT

#define WINDOW_LIGHT 14

The houses' lit windows, colour 14 of BG palette 1, kept white when the village darkens for the night.

Referenced by scGarohInitVillage().

Definition at line 253 of file garoh.c.

ENTRANCE_PATH_PURPLE_NIGHT

#define ENTRANCE_PATH_PURPLE_NIGHT 12

The way into the path up to the village that no exit uses: by night it tints the path purple rather than warm and dark.

Referenced by scGarohInitPath().

Definition at line 257 of file garoh.c.

ETHER_GROW_STEPS

#define ETHER_GROW_STEPS 20

The steps in which the Ether grows from two fifths of its size to full.

Referenced by scGarohMahaTellsTheLegend().

Definition at line 260 of file garoh.c.

DEFINE_GAROH_LOAD_PALETTE

#define DEFINE_GAROH_LOAD_PALETTE(name, components, first, count)

Writes count colours from first on, from a table of red, green and blue halfwords, to the BG palette and the palette fade's source.

Definition at line 344 of file garoh.c.

HOWL_PERIOD_MASK

#define HOWL_PERIOD_MASK 0x3ff

A howl comes each time the night's ticks under this mask are 0.

Referenced by scGarohHowlAtNight().

Definition at line 768 of file garoh.c.

DEFINE_GAROH_SINK_PILLAR_ON_METATILE

#define DEFINE_GAROH_SINK_PILLAR_ON_METATILE(

Defines a check that sinks pillar actorId (scGarohSinkPillar) once it stands on metatile (metatileX, metatileZ), and sets flag so it sinks once.

Definition at line 995 of file garoh.c.

DEFINE_GAROH_PLAY_EFFECT

#define DEFINE_GAROH_PLAY_EFFECT(name, handler, fromX)

Defines Reveal's effect played on actor at the cave's passage: the step of Reveal it runs, and the passage's 3 by 3 metatiles redrawn from column fromX.

Definition at line 1351 of file garoh.c.

Enumerations in detail

GAROH_VILLAGE_ACTOR_ID

enum GAROH_VILLAGE_ACTOR_ID

The village's people by night and by day (SceneIdGaroh), numbering the rows of GarohVillageActorPlacements and GarohVillageDayActorPlacements: the five who go hooded by night show their faces by day.

EnumeratorValueDescription
ACTOR_VILLAGER_ASKING_ABOUT_THE_WEREWOLFACTOR_FIRST_PLACEDBy night he asks whether the party has seen a werewolf; by day he has heard from Maha that the party is special.
ACTOR_HOODED_VILLAGER"Forgive me for not taking my hood off..."
ACTOR_HOWLING_VILLAGER"Gaaaroooooo!" ... "I was just calling my dog."
ACTOR_VILLAGER_WARNING_STRANGERS"Strangers should not go about at night..."
ACTOR_VILLAGER_ON_THE_FULL_MOON"Don't you love the sight of the full moon?"
ACTOR_LITTLE_WEREWOLFBy day only: "I was in the cave with Maha! I was that little werewolf!"
ACTOR_MAHA_AT_THE_CAVE_ENTRANCEACTOR_FIRST_PLACED + 13The old
ACTOR_CAVE_ENTRANCEwerewolf who peers out of the cave's entrance by the Sanctum the first night: Maha, on his sprite in the cave.

Definition at line 89 of file garoh.c.

GAROH_WEREWOLF_ACTOR_ID

enum GAROH_WEREWOLF_ACTOR_ID

The path up to the village and the werewolves' cave (SceneIdGarohPath and SceneIdGarohWerewolfCave), numbering the rows of GarohWerewolfCaveActorPlacements; GarohPath places the werewolf and Kraden on the same rows.

EnumeratorValueDescription
ACTOR_WEREWOLFACTOR_FIRST_PLACED
ACTOR_KRADEN
ACTOR_MAHA
ACTOR_CAVE_PASSAGE
ACTOR_ETHER
ACTOR_FIRE_AACTOR_FIRST_PLACED + 5The cave's fires, shrunk to lamps
ACTOR_FIRE_Bon its walls (GarohWallLampScript); the first two, which burn in hollows of the rock, keep sprite priority 1 (scInit).

Definition at line 122 of file garoh.c.

anonymous enum

enum { ACTOR_PATH_TIGHTROPE_POST_A, ACTOR_PATH_TIGHTROPE_POST_B }

The tightrope posts on the path up to the village: Jenna, Sheba and Piers take their own numbers, so the posts follow the werewolf and Kraden.

EnumeratorValueDescription
ACTOR_PATH_TIGHTROPE_POST_AACTOR_FIRST_PLACED + 2
ACTOR_PATH_TIGHTROPE_POST_B

Definition at line 140 of file garoh.c.

GAROH_ENTRANCE_ACTOR_ID

enum GAROH_ENTRANCE_ACTOR_ID

The stone pillars in the entrance (SceneIdGarohEntrance), numbering the rows of GarohEntranceActorPlacements: Move or a push takes each onto the slot where it sinks.

EnumeratorValueDescription
ACTOR_FIRST_PILLARACTOR_FIRST_PLACED
ACTOR_SECOND_PILLAR
ACTOR_THIRD_PILLAR
ACTOR_FOURTH_PILLAR

Definition at line 149 of file garoh.c.

GAROH_METATILE_BEHAVIOR

enum GAROH_METATILE_BEHAVIOR

The metatiles the step and examine cues answer, by their behavior in each scene's map. A door's or an opening's behavior is the exit it leaves by.

EnumeratorValueDescription
METATILE_BEHAVIOR_BY_SANCTUM_DOOR20The village: east of the sanctum's door, metatile (20, 16).
METATILE_BEHAVIOR_GAROH_WELL200The village: the well, metatiles (19..20, 18..19).
METATILE_BEHAVIOR_WEREWOLF_RUNS_PAST30The path up to the village: across it at metatiles (9..11, 19).
METATILE_BEHAVIOR_LOWER_TWILIGHT_LINE20The entrance: where the
METATILE_BEHAVIOR_UPPER_TWILIGHT_LINE21light turns to evening, metatile (13, 26), and to night, metatile (16, 22).
METATILE_BEHAVIOR_CAVE_MOUTH30The werewolves' cave: below
METATILE_BEHAVIOR_BELOW_MAHA31the cleft, metatiles (17..18, 49), and below where Maha stands, metatiles (19..21, 15).

Definition at line 159 of file garoh.c.

GAROH_WEREWOLF_CAVE_PASSAGE

enum GAROH_WEREWOLF_CAVE_PASSAGE

The passages within the werewolves' cave (scene_exits.h names only the exits between scenes). An exit and the entrance on its side share a number. Two doorways in the north wall of its south half, the way in from Garoh, lead up to its north half; and behind the round grey rock there, which Reveal opens (scGarohEnterOpening), a passage leads to the little room beyond it.

EnumeratorValueDescription
GAROH_WEREWOLF_CAVE_SOUTH_TO_NORTH_EAST2
GAROH_WEREWOLF_CAVE_SOUTH_TO_NORTH_WEST
GAROH_WEREWOLF_CAVE_NORTH_TO_SOUTH_EAST
GAROH_WEREWOLF_CAVE_NORTH_TO_SOUTH_WEST
GAROH_WEREWOLF_CAVE_TO_ROOM_BEHIND_ROCK
GAROH_WEREWOLF_CAVE_ROOM_BEHIND_ROCK_TO_CAVE
GAROH_WEREWOLF_CAVE_SOUTH_FROM_NORTH_EAST2
GAROH_WEREWOLF_CAVE_SOUTH_FROM_NORTH_WEST
GAROH_WEREWOLF_CAVE_NORTH_FROM_SOUTH_EAST
GAROH_WEREWOLF_CAVE_NORTH_FROM_SOUTH_WEST
GAROH_WEREWOLF_CAVE_FROM_ROOM_BEHIND_ROCK
GAROH_WEREWOLF_CAVE_ROOM_BEHIND_ROCK_FROM_CAVE

Definition at line 203 of file garoh.c.

GAROH_TUNNELS_PASSAGE

enum GAROH_TUNNELS_PASSAGE

The passages within the tunnels under the houses, between its three parts, each with a camera of its own: the north tunnel in from Garoh's west, the long middle one, and the south one in from Garoh's south. Each is a doorway near a part's west end.

EnumeratorValueDescription
GAROH_TUNNELS_NORTH_TO_MIDDLE2
GAROH_TUNNELS_MIDDLE_TO_NORTH
GAROH_TUNNELS_MIDDLE_TO_SOUTH9
GAROH_TUNNELS_SOUTH_TO_MIDDLE
GAROH_TUNNELS_NORTH_FROM_MIDDLE2
GAROH_TUNNELS_MIDDLE_FROM_NORTH
GAROH_TUNNELS_MIDDLE_FROM_SOUTH9
GAROH_TUNNELS_SOUTH_FROM_MIDDLE

Definition at line 223 of file garoh.c.

anonymous enum

enum { ANIM_WEREWOLF_SIT }

The werewolf sheet's last picture, held: sitting on the ground.

EnumeratorValueDescription
ANIM_WEREWOLF_SIT5

Definition at line 236 of file garoh.c.

anonymous enum

enum { WEAVE_ACROSS, WEAVE_DOWN }

How far, in pixels, the werewolf weaves either side of the path as it runs past: across the screen, and up and down it.

EnumeratorValueDescription
WEAVE_ACROSS12
WEAVE_DOWN7

Definition at line 1409 of file garoh.c.

Functions in detail

scGarohSinkPillar

void scGarohSinkPillar(Sint32 id, ACTOR *actor)

A pillar set down on its slot sinks 32 pixels into the ground with a whoosh and a ring of dust.

References fdScriptPlaySound(), scFieldScriptWait(), scGarohScatterDustRing() and Sint32.

Referenced by scGarohSinkFourthPillarOnMetatile().

Definition at lines 36 and 977 of file garoh.c.

scGarohSinkFirstPillarOnMetatile

void scGarohSinkFirstPillarOnMetatile(void)

DEFINE_GAROH_SINK_PILLAR_ON_METATILE(scGarohSinkFirstPillarOnMetatile, ACTOR_FIRST_PILLAR, FLAG_FIRST_PILLAR_SUNK, 10, 29)

The first pillar sinks once it stands on metatile (10, 29), one west of where it starts.

Referenced by scGarohPlaceFirstPillar() and scGarohPlacePushedPillar().

Definition at lines 37 and 1014 of file garoh.c.

scGarohSinkSecondPillarOnMetatile

void scGarohSinkSecondPillarOnMetatile(void)

DEFINE_GAROH_SINK_PILLAR_ON_METATILE(scGarohSinkSecondPillarOnMetatile, ACTOR_SECOND_PILLAR, FLAG_SECOND_PILLAR_SUNK, 15, 28)

The second pillar sinks once it stands on metatile (15, 28), one east of where it starts.

Referenced by scGarohPlacePushedPillar() and scGarohPlaceSecondPillar().

Definition at lines 38 and 1022 of file garoh.c.

scGarohCheckThirdPillar

void scGarohCheckThirdPillar(void)

The third pillar has no slot to sink into: its check reads the pillar and the rope's flag and does nothing.

References fdActorGet() and fdScriptGetFlag().

Referenced by scGarohPlacePushedPillar() and scGarohPlaceThirdPillar().

Definition at lines 39 and 1030 of file garoh.c.

scGarohSinkFourthPillarOnMetatile

void scGarohSinkFourthPillarOnMetatile(void)

The fourth pillar sinks once it stands on metatile (15, 25), one south of where it starts.

References fdActorGet(), fdScriptGetFlag(), fdScriptSetFlag(), scGarohSinkPillar() and Sint32.

Referenced by scGarohPlaceFourthPillar() and scGarohPlacePushedPillar().

Definition at lines 40 and 1038 of file garoh.c.

scGarohScatterDustRing

void scGarohScatterDustRing(Sint32 id)

A ring of puffs of dust spreads out from the actor, one every eighth of a turn: nine, the first and last both to the east.

References fdActorGet(), fdEffectAdvanceMotion(), scFieldEffectSpawn(), Sint32, syCos() and sySin().

Referenced by scGarohSinkPillar().

Definition at lines 41 and 1252 of file garoh.c.

scGarohWerewolvesRevealThemselves

void scGarohWerewolvesRevealThemselves(void)

The first night in the werewolves' cave, at metatiles (19..21, 15): Kraden wonders where the werewolf went, the werewolves surround the party, and their elder Maha speaks with them and tells them to come back later.

References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorWalkBy(), fdActorWalkByAndWait(), fdActorWalkToAndWait(), fdCameraMoveToActorById(), fdCameraWaitForArrival(), fdMessageShowAtActor(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldActorJump(), scFieldActorLaunchFromLeader(), scFieldActorSetAnimation(), scFieldActorStartRepeatedMotion(), scFieldActorStop(), scFieldActorWaitForMoveById(), scFieldActorWatchAndSetScript(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scGarohCloseCavePassage(), scGarohMetWerewolves(), scGarohOpenCavePassage(), scScriptCameraFollowActor(), scWalkTowardLeader() and Sint32.

Referenced by scGarohMeetInTheCave().

Definition at lines 53 and 1950 of file garoh.c.

scGarohMahaTellsTheLegend

void scGarohMahaTellsTheLegend(void)

By day in the werewolves' cave, at metatiles (19..21, 15): "Ah, you came... I've been waiting for you." Maha tells the werewolves' legend and of Mt. Aleph, and gives the party the Jupiter Djinni Ether.

References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorWalkByAndWait(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdDjinnJoinParty(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldActorJump(), scFieldActorLaunchFromLeader(), scFieldActorSetSpritePriority(), scFieldActorStartRepeatedMotion(), scFieldActorWaitForMoveById(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptShowTwoMessagesAndWait(), scFieldScriptWait(), scGarohCloseCavePassage(), scGarohOpenCavePassage(), scGarohPopQuestionMarks(), scScriptCameraFollowActor(), scWalkIntoLeader(), Sint32, syMathDivide() and sySynch().

Referenced by scGarohMeetInTheCave().

Definition at lines 54 and 2540 of file garoh.c.

scGarohInitVillage

void scGarohInitVillage(void)

The village: by night darkened, the wolves howling and its houses' windows lit white; by day three of those windows are drawn dark, on both map layers.

References fdMapGridCopyMetatilesTo(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdPaletteFadePackTarget(), fdScriptClearFlag(), fdScriptGetFlag(), fdScriptSetFlag(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldSetTickEvent() and scGarohHowlAtNight().

Referenced by scInit().

Definition at lines 55 and 856 of file garoh.c.

scGarohInitEntrance

void scGarohInitEntrance(void)

The entrance from the world map: the four stone pillars where they were left, in the evening's or the night's light once the party has climbed into it.

References fdActorPlaceBlocks(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptGetFlag(), fdScriptWaitTransitionTicks(), GarohPillars, scFieldSetTickEvent() and scGarohHowlAtNight().

Referenced by scInit().

Definition at lines 56 and 944 of file garoh.c.

scGarohMetWerewolves

Sint32 scGarohMetWerewolves()

Sint32 scGarohMetWerewolves(void)

Until the secret is shared, whether the party has met the werewolves; after it, nothing is returned. Its one caller, the end of the first night in the cave, ignores the answer.

References fdScriptGetFlag() and Sint32.

Referenced by scGarohWerewolvesRevealThemselves().

Definition at lines 58 and 1300 of file garoh.c.

scGarohOpenDoorAndEnter

void scGarohOpenDoorAndEnter(void)

Walking north into the door of one of Garoh's round houses, or of the sanctum, opens it and Felix walks inside, while the villagers stand still: the young werewolf's family's home at metatile (14, 23), the old couple's at (8, 14), the weapons and armor shop's at (10, 24), the inn at (21, 25) and the sanctum's wide arched door at (14, 15).

The door's metatile behavior is the exit it leaves by, which also picks its row of GarohDoors.

References fdActorCenterAndWalk(), fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdMapGridAnimateMetatiles(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), fdScriptWaitTransitionTicks(), GarohDoors, MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptWait() and Sint32.

Referenced by GarohVillageCues and GarohVillageDayCues.

Definition at lines 59 and 429 of file garoh.c.

scGarohWerewolfPeersFromCave

void scGarohWerewolfPeersFromCave(void)

Walking past the sanctum's door at night before meeting the werewolves, metatile (20, 16): the camera looks up at the big grey rock on the ledge above, an old grey-maned werewolf opens it with Reveal and steps out, cries "What!? Outsiders, here?" and slips back inside, the rock closing behind him. Once a visit.

References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetPosAndFacing(), fdActorSetSpriteFlags(), fdActorWalkByAndWait(), fdBattleEffectStopMainActor(), fdCameraWaitForArrival(), fdPsynergyEnd(), fdPsynergyLoadResources(), fdPsynergyRunHandler(), fdPsynergySetupActorPair(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetFlag(), fdScriptStart(), scFieldActorShowEmote(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait() and Sint32.

Referenced by GarohVillageCues.

Definition at lines 60 and 629 of file garoh.c.

scGarohEnterOpening

void scGarohEnterOpening(void)

Walking north into an opening Reveal has shown takes the party through it: the cleft at the foot of the big grey rock north-east of the sanctum, metatile (22, 11), leads down into the werewolves' cave, and the passage behind the round grey rock in the cave leads on.

References fdScriptPlaySound(), fdScriptSetFlag() and scFieldScriptSetExitRequest().

Referenced by GarohVillageCues, GarohVillageDayCues and GarohWerewolfCaveCues.

Definition at lines 61 and 715 of file garoh.c.

scGarohMeetInTheCave

void scGarohMeetInTheCave(void)

Walking north to metatiles (19..21, 15) of the werewolves' cave, below where Maha stands: the first night the werewolves surround the party, and by day Maha is waiting there to tell the legend.

References fdScriptGetFlag(), scGarohMahaTellsTheLegend() and scGarohWerewolvesRevealThemselves().

Referenced by GarohWerewolfCaveCues.

Definition at lines 62 and 730 of file garoh.c.

scGarohPlaceFirstPillar

void scGarohPlaceFirstPillar(void)

Move on the first stone pillar, on the lowest ledge of the entrance at metatile (11, 29): slid one metatile west, onto metatile (10, 29), it drops off the ledge and sinks into the ground with a whoosh and a ring of dust until its top is level with the ledge, so that Felix can walk west off the ledge onto it. From the ledge its top is a dead end: holding west or south there takes him no further, and he can only step back east onto the ledge. The second pillar's top is the same (scGarohPlaceSecondPillar).

References fdActorPlaceMovedBlock() and scGarohSinkFirstPillarOnMetatile().

Referenced by GarohEntranceCues.

Definition at lines 63 and 1058 of file garoh.c.

scGarohPlaceSecondPillar

void scGarohPlaceSecondPillar(void)

Move on the second stone pillar, east of the first at metatile (14, 28): slid one metatile east, onto metatile (15, 28), it drops off its ledge onto the path below and sinks into the ground with a whoosh and a ring of dust until its top is level with the ledge. Felix can walk east onto its top, but holding east or south there takes him no further.

References fdActorPlaceMovedBlock() and scGarohSinkSecondPillarOnMetatile().

Referenced by GarohEntranceCues.

Definition at lines 64 and 1069 of file garoh.c.

scGarohPlaceThirdPillar

void scGarohPlaceThirdPillar(void)

Move on the third stone pillar, on the ledge above at metatile (10, 24): it slides where Move sends it, and has no slot to sink into.

References fdActorPlaceMovedBlock() and scGarohCheckThirdPillar().

Referenced by GarohEntranceCues.

Definition at lines 65 and 1077 of file garoh.c.

scGarohPlaceFourthPillar

void scGarohPlaceFourthPillar(void)

Move on the fourth stone pillar, east of the third at metatile (15, 24): cast from the ledge north of it and slid one metatile south, onto metatile (15, 25), it drops off the ledge onto the path below and sinks into the ground with a whoosh and a ring of dust until its top is level with the ledge. Felix can walk south onto its top, but like the first two it is a dead end: holding south, west or east there takes him no further.

References fdActorPlaceMovedBlock() and scGarohSinkFourthPillarOnMetatile().

Referenced by GarohEntranceCues.

Definition at lines 66 and 1089 of file garoh.c.

scGarohPlacePushedPillar

void scGarohPlacePushedPillar(void)

Pushing a stone pillar in the entrance sinks it just as Move does when it comes to rest on its slot: the first on metatile (10, 29), the second on (15, 28), the fourth on (15, 25).

The push rows answer only while the first pillar has not sunk.

References fdActorPlaceMovedBlock(), scGarohCheckThirdPillar(), scGarohSinkFirstPillarOnMetatile(), scGarohSinkFourthPillarOnMetatile() and scGarohSinkSecondPillarOnMetatile().

Referenced by GarohEntranceCues.

Definition at lines 67 and 1100 of file garoh.c.

scGarohRevealTunnelPassage

void scGarohRevealTunnelPassage(void)

Reveal in the tunnels shows a hidden passage at metatiles (11, 33..35).

References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesTo().

Referenced by GarohTunnelsCues.

Definition at lines 68 and 1118 of file garoh.c.

scGarohHideCaveEntrance

void scGarohHideCaveEntrance(void)

Reveal wearing off in the village hides the cleft in the big grey rock again.

References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesTo().

Referenced by GarohVillageCues and GarohVillageDayCues.

Definition at lines 69 and 1134 of file garoh.c.

scGarohRestoreEntranceLight

void scGarohRestoreEntranceLight(void)

Reveal wearing off in the entrance brings back the evening's or the night's light.

References fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate() and fdScriptGetFlag().

Referenced by GarohEntranceCues.

Definition at lines 70 and 1150 of file garoh.c.

scGarohHideTunnelPassage

void scGarohHideTunnelPassage(void)

Reveal wearing off in the tunnels hides their passage again.

References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesTo().

Referenced by GarohTunnelsCues.

Definition at lines 71 and 1163 of file garoh.c.

scGarohHideCavePassage

void scGarohHideCavePassage(void)

Reveal wearing off in the werewolves' cave closes the round grey rock again.

References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesTo().

Referenced by GarohWerewolfCaveCues.

Definition at lines 72 and 1170 of file garoh.c.

scGarohCrossLowerTwilightLine

void scGarohCrossLowerTwilightLine(void)

Climbing through the entrance from the world map before the werewolves' secret is shared, the step onto metatile (13, 26), the lower of its two lines, turns the daylight to a golden evening; coming down from the path, the same step brings the daylight back. Once a visit.

References fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptClearFlag(), fdScriptGetFlag(), fdScriptSetFlag() and MainRoutineStateWork.

Referenced by GarohEntranceCues.

Definition at lines 73 and 1181 of file garoh.c.

scGarohCrossUpperTwilightLine

void scGarohCrossUpperTwilightLine(void)

Climbing on up past metatile (16, 22), the upper of the entrance's two lines, the evening darkens into night; coming down from the path, the same step turns the night to evening. Once a visit, before the werewolves' secret is shared.

References fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptClearFlag(), fdScriptGetFlag(), fdScriptSetFlag() and MainRoutineStateWork.

Referenced by GarohEntranceCues.

Definition at lines 74 and 1210 of file garoh.c.

scGarohLashRope

void scGarohLashRope(void)

Unused: Lash ties a rope between the third and fourth stone pillars in the entrance; no cue runs it.

References fdRopeLash() and fdScriptSetFlag().

Definition at lines 81 and 1291 of file garoh.c.

scGarohMatchSecondLayer

void scGarohMatchSecondLayer(void)

By day the second map layer of the path up to the village takes the first layer's scale and wrap.

Referenced by scGarohInitPath().

Definition at line 264 of file garoh.c.

scGarohWavePathLayer

void scGarohWavePathLayer(void)

By night the second map layer of the path up to the village ripples: each line is offset by two sines of the tick count, handed to an HBlank DMA.

References fdMapGridGetLayer(), GarohWaveLines, Sint32, syDMAXCopy(), sySin() and TickCount.

Referenced by scGarohInitPath().

Definition at line 278 of file garoh.c.

scGarohLoadPathDayColors

DEFINE_GAROH_LOAD_PALETTE(scGarohLoadPathDayColors, GarohPathDayColors, 24, 8)

By day the path's colours: BG palette 1's colours 8 to 15.

Referenced by scGarohInitPath().

Definition at line 359 of file garoh.c.

scGarohLoadPathNightColors

DEFINE_GAROH_LOAD_PALETTE(scGarohLoadPathNightColors, GarohPathNightColors, 97, 9)

By night the path's colours: BG palette 6's colours 1 to 9.

Referenced by scGarohInitPath().

Definition at line 362 of file garoh.c.

scGarohHideScriptedShadow

Sint32 scGarohHideScriptedShadow(ACTOR *actor)

A script command that draws the wall lamp it runs on without a shadow.

References fdActorSetSpriteFlags() and Sint32.

Referenced by GarohWallLampScript.

Definition at line 368 of file garoh.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 374 of file garoh.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 379 of file garoh.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 384 of file garoh.c.

scGetActorPlacements

const void *scGetActorPlacements(void)

The people of the scene being entered: in the village, the hooded villagers by night or their faces once Maha has shared the secret.

References fdScriptGetFlag(), GarohActorPlacements, GarohEntranceActorPlacements, GarohPathActorPlacements, GarohTunnelsActorPlacements, GarohVillageActorPlacements, GarohVillageDayActorPlacements, GarohWerewolfCaveActorPlacements and MainRoutineStateWork.

Definition at line 400 of file garoh.c.

scGarohAskIfSawWerewolf

void scGarohAskIfSawWerewolf(Sint32 actor)

Talking at night to the hooded villager outside the young werewolf's family's home: "So, uh...you say you saw a werewolf?" Yes gets "Don't be ridiculous... There's no such thing as werewolves!"; No gets its own reply.

References fdScriptOpenMessage(), fdScriptShowMessage(), scFieldPartyGetLeaderActor(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptSetMessageId(), scFieldScriptWait() and Sint32.

Referenced by GarohVillageCues.

Definition at line 473 of file garoh.c.

scGarohAskAboutFullMoon

void scGarohAskAboutFullMoon(Sint32 actor)

Talking at night to the hooded villager outside the Item Shopkeeper's house: "Don't you love the sight of the full moon?" Yes gets "Yes, I agree... But it brings me grief."; No gets its own reply.

References fdScriptOpenMessage(), fdScriptShowMessage(), scFieldPartyGetLeaderActor(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptSetMessageId(), scFieldScriptWait() and Sint32.

Referenced by GarohVillageCues.

Definition at line 496 of file garoh.c.

scGarohAskAboutSecret

void scGarohAskAboutSecret(Sint32 actor)

Talking by day to the woman in green south-west of the well, the villager who warned strangers off at night: "Maha said that you were the only outsiders we could share our secret with...", and she asks whether it bothers them that everyone here is a werewolf.

References fdScriptOpenMessage(), fdScriptShowMessage(), scFieldPartyGetLeaderActor(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptSetMessageId(), scFieldScriptWait() and Sint32.

Referenced by GarohVillageDayCues.

Definition at line 520 of file garoh.c.

scGarohHowlOutLoud

void scGarohHowlOutLoud(Sint32 actor)

Talking by day to the grey-haired man west of the well, who claimed at night to be calling his dog: he howls "Awoooooh!" and is glad he no longer has to hide it.

References fdScriptEnd(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait() and Sint32.

Referenced by GarohVillageDayCues.

Definition at line 543 of file garoh.c.

scGarohHowlForDog

void scGarohHowlForDog(Sint32 actor)

Talking at night to the hooded villager west of the well: he howls "Gaaaroooooo!", catches himself ("Gah! Whoops...") and says he was just calling his dog. His code would cut him to the howl alone once FLAG_AREA_TEMP(0x00) is set, but nothing in Garoh, its paths, tunnels, cave or rooms sets that flag, so the player always hears all three lines.

References fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait() and Sint32.

Referenced by GarohVillageCues.

Definition at line 560 of file garoh.c.

scGarohLittleWerewolfThanks

void scGarohLittleWerewolfThanks(void)

Talking by day to the fair-haired boy running about by the sanctum, or reading his mind the first time: "Hey, it's you guys! Thanks for last night!", and he explains he was the little werewolf in the cave. Later he says he is the reason the village no longer needs its hoods.

References fdActorFaceActor(), fdActorSetAnimation(), fdActorSetScript(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetFlag(), fdScriptStart(), scFieldActorShowEmote(), scFieldActorStop(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait() and Sint32.

Referenced by GarohVillageDayCues.

Definition at lines 589 and 3353 of file garoh.c.

scGetCues

const void *scGetCues(void)

The cues of the scene being entered: in the village, the night's until Maha has shared the secret and the day's after.

References fdScriptGetFlag(), GarohCues, GarohEntranceCues, GarohPathCues, GarohTunnelsCues, GarohVillageCues, GarohVillageDayCues, GarohWerewolfCaveCues and MainRoutineStateWork.

Definition at line 746 of file garoh.c.

scGarohHowlAtNight

void scGarohHowlAtNight(void)

A wolf howls in the distance every 1,024 ticks while it is night.

References fdScriptGetFlag(), fdScriptPlaySound() and GarohHowlTicks.

Referenced by scGarohInitEntrance(), scGarohInitPath() and scGarohInitVillage().

Definition at line 771 of file garoh.c.

scGarohInitPath

void scGarohInitPath(void)

The path up to the village: the tightrope strung; by night darkened, with the full moon shining in the pond below the falls and the second map layer rippling; by day the pond's blue water and the falls drawn over the moon.

References fdMapGridCopyMetatilesTo(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdPaletteFadePackTarget(), fdScriptGetFlag(), fdScriptWaitTransitionTicks(), fdTightropeInit(), fdTightropePlace(), MainRoutineStateWork, scGarohHowlAtNight(), scGarohLoadPathDayColors(), scGarohLoadPathNightColors(), scGarohMatchSecondLayer(), scGarohWavePathLayer(), Sint32 and sySetTickEvent().

Referenced by scInit().

Definition at lines 782 and 905 of file garoh.c.

scInit

Sint32 scInit(void)

Sets up the scene being entered: the cave's lamps, and Maha once he has told the legend; the village by night or day; the path up to the village; or the entrance, which also makes the sanctum the place a defeat returns the party to once they have reached the village.

References fdActorSetPosAndFacing(), fdEffectStartBlankOverlay(), fdScriptClearFlag(), fdScriptGetFlag(), fdScriptSetFlag(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldActorSetSpritePriority(), scGarohInitEntrance(), scGarohInitPath(), scGarohInitVillage() and Sint32.

Definition at line 788 of file garoh.c.

scPrepareMap

Sint32 scPrepareMap(void)

References Sint32.

Definition at line 849 of file garoh.c.

scGarohLiftPillar

void scGarohLiftPillar(void)

Nothing visible happens as Felix starts casting Move on one of the stone pillars in the entrance; the game lifts the pillar off the map's metatiles so that Move can slide it.

References fdActorLiftTargetBlock() and GarohPillars.

Referenced by GarohEntranceCues.

Definition at lines 962 and 3354 of file garoh.c.

scGarohLiftPushedPillar

void scGarohLiftPushedPillar(void)

Nothing visible happens as Felix starts pushing one of the stone pillars in the entrance; as with Move, the game first lifts the pillar off the map's metatiles so that it can slide.

References fdActorLiftTargetBlock() and GarohPillars.

Referenced by GarohEntranceCues.

Definition at lines 970 and 3355 of file garoh.c.

scGarohRevealCaveEntrance

void scGarohRevealCaveEntrance(void)

Reveal in the village shows the cleft at the foot of the big grey rock north-east of the sanctum, metatile (22, 11), as a way in.

References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesTo().

Referenced by GarohVillageCues and GarohVillageDayCues.

Definition at lines 1111 and 3356 of file garoh.c.

scGarohRevealCavePassage

void scGarohRevealCavePassage(void)

Reveal in the werewolves' cave shows a passage through the round grey rock in its middle, metatiles (19..21, 5..7).

References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesTo().

Referenced by GarohWerewolfCaveCues.

Definition at lines 1126 and 3357 of file garoh.c.

scGarohIsNight

Sint32 scGarohIsNight(void)

Reveal wearing off on the path up to the village. At night the path's dark colours come back as they were without its help: it only asks whether it is night in Garoh, and does nothing with the answer.

References fdScriptGetFlag() and Sint32.

Referenced by GarohPathCues.

Definition at line 1143 of file garoh.c.

scGarohPopQuestionMark

void scGarohPopQuestionMark(x, y, z, rotation, ticks) Sint32 x, y, z; Sint16 rotation; Sint32 ticks;

Pops a "?" bubble up at (x, y, z), tilted by rotation, for the given ticks.

References fdActorSelectAnimation(), fdActorStartScript(), GarohQuestionMarkScript, scFieldActorCreate() and Sint32.

Referenced by scGarohPopQuestionMarks().

Definition at line 1307 of file garoh.c.

scGarohPopQuestionMarks

void scGarohPopQuestionMarks(Sint32 id)

Two question marks pop up over the actor's head in turn, right and left, each tilted, a third of a second apart.

References fdActorGet(), fdScriptPlaySound(), scFieldScriptWait(), scGarohPopQuestionMark() and Sint32.

Referenced by scGarohMahaTellsTheLegend() and scGarohWerewolfRunsPast().

Definition at line 1329 of file garoh.c.

scGarohOpenCavePassage

DEFINE_GAROH_PLAY_EFFECT(scGarohOpenCavePassage, FIELD_PSYNERGY_HANDLER_ON_TARGET, 44)

Reveal's effect played on the cave's passage as it opens.

Referenced by scGarohMahaTellsTheLegend() and scGarohWerewolvesRevealThemselves().

Definition at line 1363 of file garoh.c.

scGarohCloseCavePassage

DEFINE_GAROH_PLAY_EFFECT(scGarohCloseCavePassage, FIELD_PSYNERGY_HANDLER_END, 39)

Reveal's effect played on the cave's passage as it closes.

Referenced by scGarohMahaTellsTheLegend() and scGarohWerewolvesRevealThemselves().

Definition at line 1368 of file garoh.c.

scWalkTowardLeader

static inline void scWalkTowardLeader(Sint32 actorId)

Sends an actor walking to where the leader stands, if there is a leader.

References fdActorGet(), fdActorSetDestination(), MainRoutineStateWork and Sint32.

Referenced by scGarohFollowWerewolfIntoCave() and scGarohWerewolvesRevealThemselves().

Definition at line 1373 of file garoh.c.

scWalkIntoLeader

static inline void scWalkIntoLeader(Sint32 actorId)

An actor walks into the leader and is taken off the map, as the party closes up into one walking sprite at the end of a script.

References fdActorGet(), fdActorSetAnimation(), fdActorSetDestination(), MainRoutineStateWork, scFieldActorWaitForMoveById() and Sint32.

Referenced by scGarohMahaTellsTheLegend() and scGarohWerewolfRunsPast().

Definition at line 1386 of file garoh.c.

scGarohPathStep

static inline Sint32 scGarohPathStep(Sint32 from, Sint32 to, Sint32 i)

The point i eighths of the way from from to to.

References Sint32.

Referenced by scGarohWerewolfRunsPast().

Definition at line 1402 of file garoh.c.

scGarohWerewolfRunsPast

void scGarohWerewolfRunsPast(void)

Walking up the path to the village the first night, metatiles (9..11, 19): a werewolf howls "Gaaaroooooo!" and bounds down the path past the pond and off into the village, and Kraden explains to the startled party what a werewolf is.

References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorSetSpeedFX(), fdActorShowEmote(), fdActorWalkByAndWait(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptStart(), GarohWerewolfLookAroundScript, MainRoutineStateWork, scFieldActorJump(), scFieldActorLaunchFromLeader(), scFieldActorStartRepeatedMotion(), scFieldActorStop(), scFieldActorWaitForMoveById(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scGarohPathStep(), scGarohPopQuestionMarks(), scScriptCameraFollowActor(), scWalkIntoLeader(), Sint32 and sySin().

Referenced by GarohPathCues.

Definition at line 1419 of file garoh.c.

scGarohFollowWerewolfIntoCave

void scGarohFollowWerewolfIntoCave(void)

Coming down into the werewolves' cave through the cleft by the sanctum, metatiles (17..18, 49): a howl echoes, the little werewolf from the path comes into sight, Kraden cries "Look! It's that werewolf!", and it looks around and runs off deeper into the cave; Kraden wants to follow it.

References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorShowEmote(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldActorJump(), scFieldActorLaunchFromLeader(), scFieldActorStartRepeatedMotion(), scFieldActorWaitForMoveById(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scScriptCameraFollowActor(), scWalkTowardLeader() and Sint32.

Referenced by GarohWerewolfCaveCues.

Definition at line 1845 of file garoh.c.

Variables in detail

GarohVillageDayActorPlacements

extern ACTOR_PLACE GarohVillageDayActorPlacements[]

ACTOR_PLACE GarohVillageDayActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 51 and 3547 of file garoh.c.

GarohEntranceCues

extern CUE GarohEntranceCues[]

CUE GarohEntranceCues[]

No end row: the room reads on into the tunnels' table, whose exits and Reveal answer here too.

References scGarohCrossLowerTwilightLine(), scGarohCrossUpperTwilightLine(), scGarohLiftPillar(), scGarohLiftPushedPillar(), scGarohPlaceFirstPillar(), scGarohPlaceFourthPillar(), scGarohPlacePushedPillar(), scGarohPlaceSecondPillar(), scGarohPlaceThirdPillar() and scGarohRestoreEntranceLight().

Referenced by scGetCues().

Definition at lines 52 and 3894 of file garoh.c.

GarohWerewolfLookAroundScript

extern Uint32 GarohWerewolfLookAroundScript[]

Uint32 GarohWerewolfLookAroundScript[]

The werewolf on the path glancing from side to side as it howls (scGarohWerewolfRunsPast).

Referenced by scGarohWerewolfRunsPast().

Definition at lines 57 and 3371 of file garoh.c.

GarohWallLampScript

extern Sint32 GarohWallLampScript[]

Sint32 GarohWallLampScript[]

A wall lamp's actor script: the fire lowered 4 pixels, moved 6 east and shrunk to four fifths, with no shadow.

References scGarohHideScriptedShadow() and Sint32.

Referenced by GarohTunnelsActorPlacements and GarohWerewolfCaveActorPlacements.

Definition at lines 77 and 3416 of file garoh.c.

GarohHouseDoorOpening

extern Uint16 GarohHouseDoorOpening[]

Uint16 GarohHouseDoorOpening[]

A round house's door opening, in two steps of six ticks each.

Referenced by GarohDoors.

Definition at lines 78 and 3675 of file garoh.c.

GarohShopDoorOpening

extern Uint16 GarohShopDoorOpening[]

Uint16 GarohShopDoorOpening[]

The weapons and armor shop's door opening, under its stone lintel.

Referenced by GarohDoors.

Definition at lines 79 and 3682 of file garoh.c.

GarohSanctumDoorOpening

extern Uint16 GarohSanctumDoorOpening[]

Uint16 GarohSanctumDoorOpening[]

The sanctum's arched door opening, two metatiles wide.

Referenced by GarohDoors.

Definition at lines 80 and 3689 of file garoh.c.

GarohWaveLines

Uint16 GarohWaveLines[DISPLAY_HEIGHT]

BG2's horizontal offset for each screen line while the path's layer ripples by night (scGarohWavePathLayer).

Referenced by scGarohWavePathLayer().

Definition at line 84 of file garoh.c.

GarohPathDayColors

extern Uint16 GarohPathDayColors[]

Uint16 GarohPathDayColors[]

The path's colours by day, BG palette 1's colours 8 to 15: red, green and blue, 0 to 31.

Definition at lines 339 and 3397 of file garoh.c.

GarohPathNightColors

extern Uint16 GarohPathNightColors[]

Uint16 GarohPathNightColors[]

The path's colours by night, BG palette 6's colours 1 to 9: red, green and blue, 0 to 31.

Definition at lines 340 and 3384 of file garoh.c.

GarohActorPlacements

extern ACTOR_PLACE GarohActorPlacements[]

ACTOR_PLACE GarohActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 389 and 3507 of file garoh.c.

GarohVillageActorPlacements

extern ACTOR_PLACE GarohVillageActorPlacements[]

ACTOR_PLACE GarohVillageActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 390 and 3511 of file garoh.c.

GarohEntranceActorPlacements

extern ACTOR_PLACE GarohEntranceActorPlacements[]

ACTOR_PLACE GarohEntranceActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 391 and 3581 of file garoh.c.

GarohTunnelsActorPlacements

extern ACTOR_PLACE GarohTunnelsActorPlacements[]

ACTOR_PLACE GarohTunnelsActorPlacements[]

References GarohWallLampScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 392 and 3593 of file garoh.c.

GarohPathActorPlacements

extern ACTOR_PLACE GarohPathActorPlacements[]

ACTOR_PLACE GarohPathActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 393 and 3617 of file garoh.c.

GarohWerewolfCaveActorPlacements

extern ACTOR_PLACE GarohWerewolfCaveActorPlacements[]

ACTOR_PLACE GarohWerewolfCaveActorPlacements[]

References GarohWallLampScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 394 and 3636 of file garoh.c.

GarohDoors

extern MAP_EDIT GarohDoors[]

MAP_EDIT GarohDoors[]

The doors Felix walks into, a row for each exit from the first: the opening, and the metatile of map layer 1 (64 columns east of layer 0's) where it is drawn, over the doorway's top. Exit 2's cue is a plain exit, so its row is never played.

References GarohHouseDoorOpening, GarohSanctumDoorOpening and GarohShopDoorOpening.

Referenced by scGarohOpenDoorAndEnter().

Definition at lines 396 and 3698 of file garoh.c.

GarohCues

extern CUE GarohCues[]

CUE GarohCues[]

The cues of a scene the overlay holds no table for: its first two exits.

Referenced by scGetCues().

Definition at lines 702 and 3708 of file garoh.c.

GarohVillageCues

extern CUE GarohVillageCues[]

CUE GarohVillageCues[]

References scGarohAskAboutFullMoon(), scGarohAskIfSawWerewolf(), scGarohEnterOpening(), scGarohHideCaveEntrance(), scGarohHowlForDog(), scGarohOpenDoorAndEnter(), scGarohRevealCaveEntrance() and scGarohWerewolfPeersFromCave().

Referenced by scGetCues().

Definition at lines 703 and 3715 of file garoh.c.

GarohVillageDayCues

extern CUE GarohVillageDayCues[]

CUE GarohVillageDayCues[]

References scGarohAskAboutSecret(), scGarohEnterOpening(), scGarohHideCaveEntrance(), scGarohHowlOutLoud(), scGarohLittleWerewolfThanks(), scGarohOpenDoorAndEnter() and scGarohRevealCaveEntrance().

Referenced by scGetCues().

Definition at lines 704 and 3793 of file garoh.c.

GarohPathCues

extern CUE GarohPathCues[]

CUE GarohPathCues[]

References scGarohIsNight() and scGarohWerewolfRunsPast().

Referenced by scGetCues().

Definition at lines 705 and 3877 of file garoh.c.

GarohTunnelsCues

extern CUE GarohTunnelsCues[]

CUE GarohTunnelsCues[]

References scGarohHideTunnelPassage() and scGarohRevealTunnelPassage().

Referenced by scGetCues().

Definition at lines 706 and 3940 of file garoh.c.

GarohWerewolfCaveCues

extern CUE GarohWerewolfCaveCues[]

CUE GarohWerewolfCaveCues[]

References scGarohEnterOpening(), scGarohFollowWerewolfIntoCave(), scGarohHideCavePassage(), scGarohMeetInTheCave() and scGarohRevealCavePassage().

Referenced by scGetCues().

Definition at lines 707 and 3983 of file garoh.c.

GarohHowlTicks

extern Sint32 GarohHowlTicks

Sint32 GarohHowlTicks

The ticks counted at night; a wolf howls every 1,024.

References Sint32.

Referenced by scGarohHowlAtNight().

Definition at lines 709 and 4030 of file garoh.c.

GarohPillars

extern Sint16 GarohPillars[]

Sint16 GarohPillars[]

The four pillars Move pushes, ended by -1.

Referenced by scGarohInitEntrance(), scGarohLiftPillar() and scGarohLiftPushedPillar().

Definition at lines 940 and 3365 of file garoh.c.

GarohQuestionMarkScript

extern Uint32 GarohQuestionMarkScript[]

Uint32 GarohQuestionMarkScript[]

A "?" bubble's script, run once the wait scGarohPopQuestionMark gives it has passed: the bubble is released.

Referenced by scGarohPopQuestionMark().

Definition at lines 1287 and 4034 of file garoh.c.

FieldEffectDurationScripts

const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().

Definition at line 3408 of file garoh.c.

SceneExits

Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 3428 of file garoh.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailOWN_fdRopeLashEFFECT_SET_MODEEFFECT_SET_SCRIPTFLAG_GAROH_REACHED_VILLAGEFLAG_GAROH_SAW_WEREWOLFFLAG_GAROH_FOLLOWED_WEREWOLFFLAG_GAROH_MET_WEREWOLVESFLAG_GAROH_HEARD_MAHAFLAG_WEREWOLF_PEERED_OUTFLAG_LITTLE_WEREWOLF_THANKEDFLAG_EVENINGFLAG_NIGHT_TINTS_ACTORSFLAG_FIRST_PILLAR_SUNKFLAG_SECOND_PILLAR_SUNKFLAG_GAROH_ROPE_LASHEDFLAG_FOURTH_PILLAR_SUNKFLAG_CROSSED_LOWER_TWILIGHT_LINEFLAG_CROSSED_UPPER_TWILIGHT_LINEWINDOW_LIGHTENTRANCE_PATH_PURPLE_NIGHTETHER_GROW_STEPSDEFINE_GAROH_LOAD_PALETTEHOWL_PERIOD_MASKDEFINE_GAROH_SINK_PILLAR_ON_METATILEDEFINE_GAROH_PLAY_EFFECTEnumerations in detailGAROH_VILLAGE_ACTOR_IDGAROH_WEREWOLF_ACTOR_IDanonymous enumGAROH_ENTRANCE_ACTOR_IDGAROH_METATILE_BEHAVIORGAROH_WEREWOLF_CAVE_PASSAGEGAROH_TUNNELS_PASSAGEanonymous enumanonymous enumFunctions in detailscGarohSinkPillarscGarohSinkFirstPillarOnMetatilescGarohSinkSecondPillarOnMetatilescGarohCheckThirdPillarscGarohSinkFourthPillarOnMetatilescGarohScatterDustRingscGarohWerewolvesRevealThemselvesscGarohMahaTellsTheLegendscGarohInitVillagescGarohInitEntrancescGarohMetWerewolvesscGarohOpenDoorAndEnterscGarohWerewolfPeersFromCavescGarohEnterOpeningscGarohMeetInTheCavescGarohPlaceFirstPillarscGarohPlaceSecondPillarscGarohPlaceThirdPillarscGarohPlaceFourthPillarscGarohPlacePushedPillarscGarohRevealTunnelPassagescGarohHideCaveEntrancescGarohRestoreEntranceLightscGarohHideTunnelPassagescGarohHideCavePassagescGarohCrossLowerTwilightLinescGarohCrossUpperTwilightLinescGarohLashRopescGarohMatchSecondLayerscGarohWavePathLayerscGarohLoadPathDayColorsscGarohLoadPathNightColorsscGarohHideScriptedShadowscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscGarohAskIfSawWerewolfscGarohAskAboutFullMoonscGarohAskAboutSecretscGarohHowlOutLoudscGarohHowlForDogscGarohLittleWerewolfThanksscGetCuesscGarohHowlAtNightscGarohInitPathscInitscPrepareMapscGarohLiftPillarscGarohLiftPushedPillarscGarohRevealCaveEntrancescGarohRevealCavePassagescGarohIsNightscGarohPopQuestionMarkscGarohPopQuestionMarksscGarohOpenCavePassagescGarohCloseCavePassagescWalkTowardLeaderscWalkIntoLeaderscGarohPathStepscGarohWerewolfRunsPastscGarohFollowWerewolfIntoCaveVariables in detailGarohVillageDayActorPlacementsGarohEntranceCuesGarohWerewolfLookAroundScriptGarohWallLampScriptGarohHouseDoorOpeningGarohShopDoorOpeningGarohSanctumDoorOpeningGarohWaveLinesGarohPathDayColorsGarohPathNightColorsGarohActorPlacementsGarohVillageActorPlacementsGarohEntranceActorPlacementsGarohTunnelsActorPlacementsGarohPathActorPlacementsGarohWerewolfCaveActorPlacementsGarohDoorsGarohCuesGarohVillageCuesGarohVillageDayCuesGarohPathCuesGarohTunnelsCuesGarohWerewolfCaveCuesGarohHowlTicksGarohPillarsGarohQuestionMarkScriptFieldEffectDurationScriptsSceneExits