Alchemy

kolima.c

Kolima, whose villagers the forest's curse has turned into trees, in three maps: the village, an interior and the bridge.

games/tbs/src/scene/kolima.c on GitHub

Kolima, whose villagers the forest's curse has turned into trees, in three maps: the village, an interior and the bridge. On the first visit the party sees the curse fall and the bridge collapse.

Functions

Kolima_ApplyPendingPose

static s32 Kolima_ApplyPendingPose(struct ScriptInterpreter *interpreter)

Applies the deferred pose change requested by the falling-effect script.

Used by gKolima_ProtectiveFieldGrowActions.

Line 51

Kolima_UpdateTimedAppearance

static s32 Kolima_UpdateTimedAppearance(struct ScriptInterpreter *interpreter)

Alternates an ambient actor's child appearance with a random timer.

Used by gKolima_EntryActions.

Line 61

Kolima_InitializeCursedVillagers

static void Kolima_InitializeCursedVillagers(struct ScenePlacement *placements)

Replaces the nine villagers' placement sprites with their cursed trees.

Used by Kolima_GetPlacements.

Line 79

Kolima_UpdateFallingDebris

static s32 Kolima_UpdateFallingDebris(struct ScriptInterpreter *interpreter)

Moves, enlarges and releases one bridge fragment after its lifetime.

Used by gKolima_DebrisScript.

Line 101

Kolima_GetEntrances

const struct SceneEntrance *Kolima_GetEntrances(void)

Selects the entrance table for the village, interior or bridge.

Line 121

Kolima_GetRegions

const struct SceneRegion *Kolima_GetRegions(void)

Returns the interior's regions; the other maps have none.

Line 134

Kolima_GetExits

const u32 *Kolima_GetExits(void)

Returns the shared packed exit table.

Line 142

Kolima_GetPlacements

const struct ScenePlacement *Kolima_GetPlacements(void)

Selects placements and applies tree sprites while the villagers are cursed.

Line 145

Kolima_TalkToHealer

static void Kolima_TalkToHealer(void)

Offers sanctum services to a north-facing leader, or discusses the trees.

Used by gKolimaEvents.

Line 161

Kolima_RecruitDjinni

static void Kolima_RecruitDjinni(void)

Lets the village's Djinni join the party.

Used by gKolimaEvents.

Line 175

Kolima_GetEvents

const struct SceneEvent *Kolima_GetEvents(void)

Selects the village or bridge event table.

Line 178

Kolima_WalkThroughExit

static void Kolima_WalkThroughExit(s32 exitId)

Walks the leader northward through the selected exit.

Used by Kolima_AnimateSwitchOrExit.

Line 186

Kolima_AnimateSwitchOrExit

static void Kolima_AnimateSwitchOrExit(void)

Animates the touched map cells or leaves through the southern exit.

Used by gKolimaEvents.

Line 196

Kolima_ShowBridgeCollapse

static void Kolima_ShowBridgeCollapse(void)

Shows the villager's crossing and the bridge collapsing into debris.

Used by gKolimaEvents3.

Line 235

Kolima_Initialize

s32 Kolima_Initialize(void)

Restores the current map and plays the first visit to cursed Kolima.

Line 320

Kolima_SetProtectiveFieldHeight

static __inline__ void Kolima_SetProtectiveFieldHeight(s32 actorId, s32 visibleOnOddFrames)

Shows a protective field on its assigned alternating frame.

Used by Kolima_AlternateProtectiveFieldHeights.

Line 380

Kolima_AlternateProtectiveFieldHeights

static void Kolima_AlternateProtectiveFieldHeights(void)

Alternates the four protective sprites between visible and hidden heights.

Used by Kolima_WitnessForestCurse.

Line 394

Kolima_ReadVillagerThoughts

static void Kolima_ReadVillagerThoughts(s32 actorId, s32 targetId)

Begins Mind Read on one of the villagers transformed into a tree.

Used by Kolima_WitnessForestCurse.

Line 402

Kolima_FinishReadingThoughts

static void Kolima_FinishReadingThoughts(void)

Finishes Mind Read and releases its temporary scene objects.

Used by Kolima_WitnessForestCurse.

Line 411

Kolima_NodTogether

static __inline__ void Kolima_NodTogether(void)

Gives the four companions the same nod, waiting on the final actor.

Used by Kolima_WitnessForestCurse.

Line 418

Kolima_WitnessForestCurse

static void Kolima_WitnessForestCurse(void)

Shows the forest's curse, the party's protective Psynergy and the trees' appeal.

Used by Kolima_Initialize.

Line 427

Kolima_ShowMessageAndWait

static void Kolima_ShowMessageAndWait(s32 actorId, s32 waitFrames)

Shows the selected dialogue through an actor, then holds for its reaction.

Used by Kolima_WitnessForestCurse.

Line 1320

Kolima_FaceActorAndWait

static void Kolima_FaceActorAndWait(s32 actorId, s32 facing, s32 waitFrames)

Turns an actor immediately, then leaves time for the next scene beat.

Used by Kolima_WitnessForestCurse.

Line 1326

Kolima_SpawnCurseSparkle

static void Kolima_SpawnCurseSparkle(void)

Spawns a moving curse sparkle every eighth frame.

Used by Kolima_WitnessForestCurse.

Line 1334

Kolima_TriggerRegionScript

static s32 Kolima_TriggerRegionScript(struct ScriptInterpreter *interpreter)

Triggers a temporary pose when an effect enters the party's occupied area.

Used by gFallingEffectScript.

Line 1373

Also, functions without a comment: Kolima_RestoreBridgeState.

Globals, without a comment: gKolima_PendingPose, gKolima_MiaInParty, gKolima_EffectActive, gKolima_ActionTable1, gKolima_ActionTable2, gKolima_ActionTable3, gKolima_PartySquashActions, gKolima_PartyRestoreScaleActions, gKolima_ProtectiveFieldGrowActions, gKolima_ProtectiveFieldShrinkActions, gKolima_EntryActions, gKolima_DebrisScript, gKolima_FaceLeaderScript, gKolima_SwitchCells, gKolimaEntrances, gKolimaEntrances3, gKolimaEntrances2, gKolimaRegions2, gKolimaExits, gKolimaPlacements, gKolimaPlacements1, gKolima_EntryScript, gKolimaPlacements3, gKolimaEvents, gKolimaEvents3, gKolima_Object26Script, gKolima_RegionScript, gFallingEffectScript.

On this page