src/scene/mogall_forest.c
Mogall Forest (SceneIdMogallForestSign to SceneIdMogallForestSidePaths), the endless woods between Fuchin Temple and Xian. More…
#include "ability_ids.h"#include "flags.h"#include "item_ids.h"#include "battle/battle.h"#include "debug/debug.h"#include "field/field_effect.h"#include "graphics/graphics.h"#include "scene/floating_nut.h"#include "scene/catch_nut.h"#include "text/msg_ids.h"#include "shared/pushed_actor.c"#include "shared/field_effect_create.c"#include "shared/field_effect_spawn.c"#include "shared/floating_nut.c"#include "shared/pushed_actor_tables.c"#include "shared/field_effect_duration_scripts.c"
Macros
| Name | Description | |
|---|---|---|
#define | EXIT_METATILE (exit) {CUE_EXIT, (exit), CONDITION_ALWAYS, (exit)} | An exit metatile: its metatile behavior is the number of the exit it takes. |
#define | MOGALL_FOREST_EAST_ACTOR_CONDITION | |
#define | MOGALL_FOREST_EAST_SHARED_SPRITE_CONDITION CONDITION_ALWAYS | |
#define | scMogallForestHopActorTo (actorId, targetX, targetZ, verticalSpeed) | Hops an actor with a vertical speed in pixels a tick: scMogallForestHopActorTo(ACTOR_FIRST_AREA_NORTH_APE, 88, 120, 6). |
#define | scMogallForestPuffAtFeet (ape, ahead) | A puff of dust at an ape's feet as it lands from its first hop out of the stump, ahead pixels in front of it (to the south). |
Enumerations
| Name | Description | |
|---|---|---|
enum | MOGALL_FOREST_SIGN_ACTOR_ID { ACTOR_FIRST_AREA_LOG, ACTOR_FIRST_AREA_RIVER_LOG, ACTOR_FIRS … } | Actors of the first area (SceneIdMogallForestSign), numbered in the order of MogallForestSignActorPlacements. |
enum | MOGALL_FOREST_QUARTZ_ACTOR_ID { ACTOR_SECOND_AREA_LOG, ACTOR_SECOND_AREA_SOUTH_LOG, ACTOR_SE … } | Actors of the second area (SceneIdMogallForestQuartz), numbered in the order of MogallForestQuartzActorPlacements. |
enum | MOGALL_FOREST_KILLER_APE_ACTOR_ID { ACTOR_THIRD_AREA_LOG, ACTOR_THIRD_AREA_NORTH_RIVER_LOG, ACTO … } | Actors of the third area (SceneIdMogallForestKillerApe), numbered in the order of MogallForestKillerApeActorPlacements. |
enum | MOGALL_FOREST_LOG_ANIMATION { MOGALL_FOREST_LOG_ROLLING, MOGALL_FOREST_LOG_IN_RIVER, MOGAL … } | The animations of a river log's sprite (SPRITE_LOG_NORTH_SOUTH and SPRITE_LOG_WEST_EAST), named by when these scenes play them. |
enum | anonymous enum { FLAG_MOGALL_FOREST_FIRST_AREA_NORTH_APE_OUT, FLAG_MOGALL_FOR … } | Kept until the party leaves the forest. |
enum | MOGALL_FOREST_METATILE_BEHAVIOR { METATILE_BEHAVIOR_MOGALL_FOREST_LOG, METATILE_BEHAVIOR_MOGAL … } | The metatile behaviors the cue tables answer. |
enum | anonymous enum { FLAG_MOGALL_FOREST_SOUTH_ROCK_SETTLED } | Scene flag, kept while the party stays in the area. |
enum | anonymous enum { FIRST_AREA_RIVER_BANK_ROW, SECOND_AREA_LOG_OPENS_WAY_ROW, SE … } | The map rows and columns where a pushed log reaches the water and rolls in, or is out of the way. |
Functions
| Name | Description | |
|---|---|---|
static void | scMogallForestStartDjinnBattle (void) | Talking to Quartz, the Venus Djinni at the bottom of the second area's river clearing, starts the battle with it. |
static Bool | scMogallForestTryJumpLeaderTo (FIELD_POS *pos) | The leader springs and leaps to a spot (in 16.16 pixels). |
static Sint32 | scMogallForestSetColorFromTimer (ACTOR *actor) | An actor script call: draws the actor in the colour mode its timer holds. |
static Sint32 | scMogallForestClearActorSpriteFlags (ACTOR *actor) | An actor script call: takes the actor's shadow away. |
static void | scMogallForestHopActorToWithSpeedFX (Sint32 actorId, Sint32 targetX, Sint32 targetZ, FIXED verticalSpeed) | Hops an actor to a destination in whole pixels with a vertical speed in 16.16 fixed point; scenes call it through scMogallForestHopActorTo. |
static void | scMogallForestSpawnPuffRing (Sint32 actorId) | With a thump, scatters a ring of puffs of dust round an actor: the puff an ape makes popping out of a stump or diving back in. |
static void | scMogallForestApeComesOut (Sint32 actorId, Sint32 color) | Pans the camera to an ape's stump and, half a second later, brings the ape out in a puff of dust, drawn in the colour mode given. |
static inline void | scMogallForestApePointsTheWay (Sint32 guideId) | The ape turns to the leader, hops on the spot and gestures the way on. |
const SCENE_ENTRANCE * | scGetEntrances (void) | The six rooms share one entrance table. |
const SCENE_EXIT_REGION * | scGetExitRegions (void) | The scene has no exit regions: its regions entry returns none. |
const Uint32 * | scGetExits (void) | Returns the exits, one table for all four scenes. |
const ACTOR_PLACE * | scGetActorPlacements (void) | Some villagers only turn back after talking once the flood is over or their family has gone home. |
static void | scMogallForestFirstAreaPushLog (void) | Isaac pushes a log on the first area's river bank a metatile by walking into it. |
static void | scMogallForestFirstAreaJumpNorth (void) | Walking north along the log lying in the first area's river (metatiles (31, 25) to (34, 25)) makes Isaac leap up onto the raised meadow north of it, by the big stump. |
static void | scMogallForestFirstAreaJumpSouth (void) | Walking south off the edge of the first area's raised meadow (metatiles (31, 23) to (34, 23)) makes Isaac leap down onto the log lying in the river, which dips under him: he and the ground under him sink a pixel, then another, and rise back. |
static void | scMogallForestReadBrokenSign (void) | Isaac reads the broken sign by the path just inside the forest, a broken post a step from where he arrives from the World Map (metatiles (9, 3) and (9, 4)): The broken sign reads: North: Fuchin Temple South: Mogall Prairie... |
static void | scMogallForestFirstAreaNorthApeShowsWay (void) | Force on the stump in the middle of the first clearing brings a green ape out of it. |
static void | scMogallForestFirstAreaApeAttacks (void) | Force on the stump on the west of the river's south bank, in the first area, brings out an ape that cries out in anger, leaps at Isaac and starts a battle with it. |
static void | scMogallForestFirstAreaEastApeShowsWay (void) | Force on the big stump on the meadow north of the first area's river brings a green ape out of it. |
static void | scMogallForestCatchNut (void) | Catch on the Nut in the tree on the east bank of the first area's river brings it down to Isaac: Isaac got a Nut. |
static void | scMogallForestSecondAreaPushLog (void) | Isaac pushes a log in the second area's river clearing a metatile by walking into it. |
static inline void | scMogallForestUpdateRockMetatiles (Sint32 column, Sint32 row) | Makes the rock's new metatile solid and clears the four metatiles round it, one of which it came from. |
static void | scMogallForestSecondAreaUpdateRock (void) | Move on the small grey rock below the upper log in the second area's river clearing pushes it a metatile. |
static void | scMogallForestSecondAreaWestApeShowsWay (void) | Force on the west one of the two stumps side by side in the second area brings a green ape out of it. |
static void | scMogallForestSecondAreaEastApeShowsWay (void) | Force on the east one of the two stumps side by side in the second area brings a green ape out of it. |
static void | scMogallForestSecondAreaSouthApeHidesAgain (void) | Force on the stump on the island in the second area's stream brings a green ape out, which leaps west across the stream into the stump on the bank and hides again. |
static void | scMogallForestSecondAreaSouthApeShowsWay (void) | Force on the stump on the west bank of the second area's stream, where the ape from the island hid, brings it out again. |
static void | scMogallForestThirdAreaPushLog (void) | Isaac pushes a log in the third area a metatile by walking into it: the log by the Elven Shirt's chest, or the logs on the island in the river clearing. |
static void | scMogallForestThirdAreaJumpWest (void) | Walking west off the bank east of the third area's river channel (metatiles (43, 32) to (43, 35)) makes Isaac leap onto the lower log once it lies in the channel, which dips under him. |
static void | scMogallForestThirdAreaUpdateNorthRock (void) | Move on the rock beside the log by the Elven Shirt's chest pushes it a metatile. |
static void | scMogallForestThirdAreaUpdateSouthRock (void) | Move on the rock beside the upper log on the third area's river island pushes it a metatile. |
static void | scMogallForestThirdAreaApeAttacks (void) | Force on the east one of the three stumps in a row in the third area brings out an ape that cries out in anger, leaps at Isaac and starts a battle with it. |
static void | scMogallForestThirdAreaMiddleApeShowsWay (void) | Force on the middle one of the three stumps in a row in the third area brings a green ape out of it. |
static void | scMogallForestThirdAreaWestApeShowsWay (void) | Force on the west one of the three stumps in a row in the third area brings a green ape out of it. |
static void | scMogallForestThirdAreaEastApeHidesAgain (void) | Force on the stump on its own island in the third area's river clearing brings a green ape out, which leaps south into a lower stump and hides again, the camera following it. |
static void | scMogallForestThirdAreaEastApeShowsWay (void) | Force on the lower stump in the third area's river clearing, where the ape from the island hid, brings it out again. |
static void | scMogallForestApeLeadsToKillerApe (void) | Walking up to the lone stump on the island between the two log bridges, on its east side (metatiles (12, 22) and (12, 23)), the ape that led the party there bursts out of it and hops away south over the bridge. |
static void | scMogallForestKillerApeAttacks (void) | Stepping onto the top of the south bridge below the lone stump (metatile (8, 27)) until the Killer Ape is beaten: the camera turns to the stump and the ground shakes twice with puffs of dust round it. |
const CUE * | scGetCues (void) | The first water beast's cave changes its cues once the first drain has lowered its water: the beast is gone and its two puddles can be frozen. |
Sint32 | scInit (void) | Sets up the clearing entered. |
Variables
| Name | Description | |
|---|---|---|
extern Sint32 | MogallForestActorScript [] | The script of each ape, at four fifths of its size, hidden while it hides, and with its shadow off. |
extern SCENE_ENTRANCE | MogallForestSignEntrances [] | |
extern SCENE_ENTRANCE | MogallForestQuartzEntrances [] | |
extern SCENE_ENTRANCE | MogallForestKillerApeEntrances [] | |
extern SCENE_ENTRANCE | MogallForestSidePathsEntrances [] | |
extern Uint32 | MogallForestExits [] | |
extern ACTOR_PLACE | MogallForestSignActorPlacements [] | |
extern ACTOR_PLACE | MogallForestQuartzActorPlacements [] | |
extern ACTOR_PLACE | MogallForestKillerApeActorPlacements [] | |
extern ACTOR_PLACE | MogallForestSidePathsActorPlacements [] | |
extern CUE | MogallForestSignCues [] | |
extern CUE | MogallForestQuartzCues [] | |
extern CUE | MogallForestKillerApeCues [] | |
extern CUE | MogallForestSidePathsCues [] | |
const Sint32 * | FieldEffectDurationScripts [] | The resident copy of the scripts EFFECT_SCRIPT_MASK picks, by enum EFFECT_DURATION. |
Sint32 | MogallForestRockScript [] | The script of each rock moved with Move, which draws it in greys. |
Sint32 | MogallForestHidingPlaceScript [] | The script of each stump's blank actor, the target of Force, which stays still with its sprite hidden. |
Description
Mogall Forest (SceneIdMogallForestSign to SceneIdMogallForestSidePaths), the
endless woods between Fuchin Temple and Xian. Master Nyunpa teaches the party
Force to find the way through: apes hide in the great hollow purple stumps,
and Force on a stump brings its ape out to show the way on, or to attack.
Each area is a few screens of clearings joined by paths, and a wrong path
leads into the side paths and back.
- The first area (
SceneIdMogallForestSign) is entered from the World Map at the north of its first clearing. The first time, an ape peeks out of the stump in the middle and dives back in (FLAG_MOGALL_FOREST_FIRST_APE_SEEN). A broken sign by the path readsNorth: Fuchin Temple South: Mogall Prairie...Force on the stump sends its ape off south. Two clearings on, by the river, the stump on the west of the south bank holds an ape that attacks. Logs on the south bank are pushed about until the last one rolls into the river, a stepping place up to the raised meadow north of it, where the ape in the big stump points east to the second area. A Nut hangs in a tree on the river's east bank. - The second area (
SceneIdMogallForestQuartz). In the clearing of two stumps the west one's ape leads south and the east one's east, to a pond with an Apple in a chest. South, by the river, Move puts a rock into a ring on the ground so that the log above it can be pushed on, and another log rolls into the stream. The ape in the stump on the island in the stream first leaps to a stump on the west bank, then leads west to the third area. Quartz, a Venus Djinni, waits at the bottom of the clearing to be fought. - The third area (
SceneIdMogallForestKillerApe). Of three stumps in a row the east one's ape attacks, the middle one's leads south and the west one's west, to an Elven Shirt in a chest that a rock moved with Move and a log pushed east let the party reach. South, two logs on an island roll into the river and a rock settles with Move, and the ape in the stump on its own island leaps to a lower stump, then leads south. There a lone stump stands on an island between two log bridges. Walking up to it, the ape bursts out and runs off south over the bridge (FLAG_MOGALL_FOREST_LED_TO_KILLER_APE). Following it, at the top of the bridge the Killer Ape bursts out and attacks (ENCOUNTER_ZONE_SCRIPTED_MOGALL_ALTIN_LAMAKAN, slot 1), and coming back from the battle atMOGALL_FOREST_KILLER_APE_AFTER_KILLER_APE_ATTACKSmarks it beaten (FLAG_MOGALL_FOREST_KILLER_APE_BEATEN). The way south leads out to the World Map and Xian. Entering that clearing atMOGALL_FOREST_KILLER_APE_BRIDGES_RIVERorMOGALL_FOREST_KILLER_APE_WORLD_MAPonce Force is learned and the Killer Ape beaten setsFLAG_NYUNPA_ENLIGHTENED. Back at Fuchin Temple the monks then say that Nyunpa has reached enlightenment and passed away. SceneIdMogallForestSidePaths, also named Mogall Forest: small clearings that the wrong paths lead into, whose far sides lead back. A Psynergy Stone lies there.
The apes that attack, one in the first area and one in the third, start a
battle with an Ape (ENCOUNTER_ZONE_SCRIPTED_MOGALL_ALTIN_LAMAKAN, slot 0). An
ape stays gone once out, and logs pushed into the river stay there, for as
long as the party is in the forest (area flags from FLAG_AREA_TEMP(0x00)).
One overlay serves all four scenes. scGetEntrances, scGetActorPlacements and
scGetCues choose each scene's tables. scInit puts back the apes already out,
the rolled logs and the settled rocks, scene by scene and entrance by
entrance.
The third area's east ape is also the ape at the lone stump and the Killer
Ape. The editions differ in how it is kept out of sight once it has come out
(the #if blocks below and in scInit).
The apes and rocks are told apart by colour mode (SPR_COL_MODE). An ape in
hiding is SPRITE_COLOR_HIDDEN. A guide that comes out is drawn green, its red
and green swapped (SPRITE_COLOR_GRB), and an ape that attacks keeps
SPRITE_APE's own tan. The Killer Ape is the same sprite a fifth larger and
blue, its colours rotated (SPRITE_COLOR_BRG). The rocks Move pushes are
SPRITE_TURNING_ROCK drawn in greys (SPRITE_COLOR_GREY).
Macros in detail
EXIT_METATILE
#define EXIT_METATILE(exit) {CUE_EXIT, (exit), CONDITION_ALWAYS, (exit)}
An exit metatile: its metatile behavior is the number of the exit it takes.
Referenced by MogallForestKillerApeCues, MogallForestQuartzCues, MogallForestSidePathsCues and MogallForestSignCues.
Definition at line 274 of file mogall_forest.c.
MOGALL_FOREST_EAST_ACTOR_CONDITION
#define MOGALL_FOREST_EAST_ACTOR_CONDITION
#define MOGALL_FOREST_EAST_ACTOR_CONDITION CONDITION_ALWAYS
Referenced by MogallForestKillerApeActorPlacements.
Definition at lines 287 and 290 of file mogall_forest.c.
MOGALL_FOREST_EAST_SHARED_SPRITE_CONDITION
#define MOGALL_FOREST_EAST_SHARED_SPRITE_CONDITION CONDITION_ALWAYS
#define MOGALL_FOREST_EAST_SHARED_SPRITE_CONDITION
Referenced by MogallForestKillerApeActorPlacements.
Definition at lines 296 and 298 of file mogall_forest.c.
scMogallForestHopActorTo
#define scMogallForestHopActorTo(actorId, targetX, targetZ, verticalSpeed)
Hops an actor with a vertical speed in pixels a tick:
scMogallForestHopActorTo(ACTOR_FIRST_AREA_NORTH_APE, 88, 120, 6).
Referenced by scInit(), scMogallForestApeLeadsToKillerApe(), scMogallForestFirstAreaApeAttacks(), scMogallForestFirstAreaEastApeShowsWay(), scMogallForestFirstAreaNorthApeShowsWay(), scMogallForestKillerApeAttacks(), scMogallForestSecondAreaEastApeShowsWay(), scMogallForestSecondAreaSouthApeHidesAgain(), scMogallForestSecondAreaSouthApeShowsWay(), scMogallForestSecondAreaWestApeShowsWay(), scMogallForestThirdAreaApeAttacks(), scMogallForestThirdAreaEastApeHidesAgain(), scMogallForestThirdAreaEastApeShowsWay(), scMogallForestThirdAreaMiddleApeShowsWay() and scMogallForestThirdAreaWestApeShowsWay().
Definition at line 384 of file mogall_forest.c.
scMogallForestPuffAtFeet
#define scMogallForestPuffAtFeet(ape, ahead)
A puff of dust at an ape's feet as it lands from its first hop out of the
stump, ahead pixels in front of it (to the south).
Referenced by scMogallForestApeLeadsToKillerApe(), scMogallForestFirstAreaApeAttacks(), scMogallForestFirstAreaEastApeShowsWay(), scMogallForestFirstAreaNorthApeShowsWay(), scMogallForestSecondAreaEastApeShowsWay(), scMogallForestSecondAreaSouthApeShowsWay(), scMogallForestSecondAreaWestApeShowsWay(), scMogallForestThirdAreaApeAttacks(), scMogallForestThirdAreaEastApeShowsWay(), scMogallForestThirdAreaMiddleApeShowsWay() and scMogallForestThirdAreaWestApeShowsWay().
Definition at line 421 of file mogall_forest.c.
Enumerations in detail
MOGALL_FOREST_SIGN_ACTOR_ID
enum MOGALL_FOREST_SIGN_ACTOR_ID
Actors of the first area (SceneIdMogallForestSign), numbered in the order of
MogallForestSignActorPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FIRST_AREA_LOG | ACTOR_FIRST_PLACED | A log lying north to south at (488, 464), pushed as the river log is but with nothing happening where it stops. |
ACTOR_FIRST_AREA_RIVER_LOG | The log lying west to east on the river's south bank, which rolls into the river. | |
ACTOR_FIRST_AREA_NORTH_APE | The ape in the stump in the middle of the clearing entered from the World Map, the one that peeks out on the first arrival. | |
ACTOR_FIRST_AREA_ATTACKING_APE | The ape in the stump on the west of the river's south bank. | |
ACTOR_FIRST_AREA_EAST_APE | The ape in the big stump on the raised meadow north of the river. | |
ACTOR_FIRST_AREA_NORTH_APE_STUMP | The stumps themselves: blank actors on the apes' spots, the targets of Force. | |
ACTOR_FIRST_AREA_ATTACKING_APE_STUMP | ||
ACTOR_FIRST_AREA_EAST_APE_STUMP | ||
ACTOR_NUT | A Nut in a tree on the river's east bank, caught with Catch. |
Definition at line 95 of file mogall_forest.c.
MOGALL_FOREST_QUARTZ_ACTOR_ID
enum MOGALL_FOREST_QUARTZ_ACTOR_ID
Actors of the second area (SceneIdMogallForestQuartz), numbered in the order
of MogallForestQuartzActorPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_SECOND_AREA_LOG | ACTOR_FIRST_PLACED | The upper log lying west to east by the river, held by the rock below it. |
ACTOR_SECOND_AREA_SOUTH_LOG | A log lying west to east at (592, 456), south of ACTOR_SECOND_AREA_LOG, pushed with nothing happening where it stops. | |
ACTOR_SECOND_AREA_RIVER_LOG | The log lying north to south by the stream, which rolls into it. | |
ACTOR_SECOND_AREA_ROCK | The small rock below the upper log, moved with Move. It is drawn as the rocks of Altmiller Cave's color puzzle (MsgAltmillerRotatedRock), drawn plain as those are while Reveal is off. | |
ACTOR_SECOND_AREA_WEST_APE | The apes in the two stumps side by side in | |
ACTOR_SECOND_AREA_EAST_APE | the clearing of stumps. | |
ACTOR_SECOND_AREA_SOUTH_APE | The ape in the stump on the island in the stream, which moves to a stump on the stream's west bank. | |
ACTOR_SECOND_AREA_WEST_APE_STUMP | ||
ACTOR_SECOND_AREA_EAST_APE_STUMP | ||
ACTOR_SECOND_AREA_SOUTH_APE_STUMP | ||
ACTOR_SECOND_AREA_QUARTZ | Quartz, a Venus Djinni, at the bottom of the river clearing until the party has it. |
Definition at line 125 of file mogall_forest.c.
MOGALL_FOREST_KILLER_APE_ACTOR_ID
enum MOGALL_FOREST_KILLER_APE_ACTOR_ID
Actors of the third area (SceneIdMogallForestKillerApe), numbered in the
order of MogallForestKillerApeActorPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_THIRD_AREA_LOG | ACTOR_FIRST_PLACED | The log lying north to south beside the Elven Shirt's chest. |
ACTOR_THIRD_AREA_NORTH_RIVER_LOG | The upper of the two logs lying north to south on the island in the river, which roll east into it. | |
ACTOR_THIRD_AREA_WEST_LOG | A log lying north to south at | |
ACTOR_THIRD_AREA_SOUTH_RIVER_LOG | (552, 480), west of the two river logs, pushed with nothing happening where it stops. | |
ACTOR_THIRD_AREA_SOUTHWEST_LOG | A log lying west to east at (544, 536), south of ACTOR_THIRD_AREA_WEST_LOG, pushed with nothing happening where it stops. | |
ACTOR_THIRD_AREA_NORTH_ROCK | Two rocks moved with Move, as | |
ACTOR_THIRD_AREA_SOUTH_ROCK | in the second area: the one beside the Elven Shirt's log and the one beside the upper log on the river island. | |
ACTOR_THIRD_AREA_ATTACKING_APE | The apes in the three stumps in a row: the east one, the middle and the west. | |
ACTOR_THIRD_AREA_MIDDLE_APE | ||
ACTOR_THIRD_AREA_WEST_APE | ||
ACTOR_THIRD_AREA_EAST_APE | The ape in the stump on its own island in the river clearing, which moves to a lower stump. It is also the ape at the lone stump and the Killer Ape. | |
ACTOR_THIRD_AREA_ATTACKING_APE_STUMP | ||
ACTOR_THIRD_AREA_MIDDLE_APE_STUMP | ||
ACTOR_THIRD_AREA_WEST_APE_STUMP | ||
ACTOR_THIRD_AREA_EAST_APE_STUMP |
Definition at line 158 of file mogall_forest.c.
MOGALL_FOREST_LOG_ANIMATION
enum MOGALL_FOREST_LOG_ANIMATION
The animations of a river log's sprite (SPRITE_LOG_NORTH_SOUTH and
SPRITE_LOG_WEST_EAST), named by when these scenes play them.
| Enumerator | Value | Description |
|---|---|---|
MOGALL_FOREST_LOG_ROLLING | 3 | as it rolls over the bank |
MOGALL_FOREST_LOG_IN_RIVER | 4 | lying in the river, set on arrival |
MOGALL_FOREST_LOG_STEPPED_ON | 7 | as the leader jumps onto it |
MOGALL_FOREST_LOG_FALLING_IN | 8 | as it drops into the water |
Definition at line 201 of file mogall_forest.c.
anonymous enum
enum { FLAG_MOGALL_FOREST_FIRST_AREA_NORTH_APE_OUT, FLAG_MOGALL_FOREST_FIRST_AREA_ATTACKING_APE_OUT, FLAG_MOGALL_FOREST_FIRST_AREA_EAST_APE_OUT, FLAG_MOGALL_FOREST_SECOND_AREA_WEST_APE_OUT, … }
Kept until the party leaves the forest.
There is one for each ape once it has come out (or, for two, moved on to a second hiding place) and one for each rolled log.
| Enumerator | Value | Description |
|---|---|---|
FLAG_MOGALL_FOREST_FIRST_AREA_NORTH_APE_OUT | FLAG_AREA_TEMP(0x00) | |
FLAG_MOGALL_FOREST_FIRST_AREA_ATTACKING_APE_OUT | The ape that leaps at the leader instead of pointing the way. | |
FLAG_MOGALL_FOREST_FIRST_AREA_EAST_APE_OUT | ||
FLAG_MOGALL_FOREST_SECOND_AREA_WEST_APE_OUT | ||
FLAG_MOGALL_FOREST_SECOND_AREA_EAST_APE_OUT | ||
FLAG_MOGALL_FOREST_SECOND_AREA_SOUTH_APE_MOVED | ||
FLAG_MOGALL_FOREST_SECOND_AREA_SOUTH_APE_OUT | ||
FLAG_MOGALL_FOREST_THIRD_AREA_ATTACKING_APE_OUT | The ape that leaps at the leader instead of pointing the way. | |
FLAG_MOGALL_FOREST_THIRD_AREA_MIDDLE_APE_OUT | ||
FLAG_MOGALL_FOREST_THIRD_AREA_WEST_APE_OUT | ||
FLAG_MOGALL_FOREST_THIRD_AREA_EAST_APE_MOVED | ||
FLAG_MOGALL_FOREST_THIRD_AREA_EAST_APE_OUT | ||
FLAG_MOGALL_FOREST_FIRST_AREA_LOG_ROLLED | FLAG_AREA_TEMP(0x10) | |
FLAG_MOGALL_FOREST_SECOND_AREA_LOG_ROLLED | ||
FLAG_MOGALL_FOREST_THIRD_AREA_NORTH_LOG_ROLLED | ||
FLAG_MOGALL_FOREST_THIRD_AREA_SOUTH_LOG_ROLLED | ||
FLAG_MOGALL_FOREST_PSYNERGY_STONE | FLAG_AREA_TEMP(0x50) |
Definition at line 213 of file mogall_forest.c.
MOGALL_FOREST_METATILE_BEHAVIOR
enum MOGALL_FOREST_METATILE_BEHAVIOR
The metatile behaviors the cue tables answer.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_MOGALL_FOREST_LOG | 20 | Under each log the party pushes |
METATILE_BEHAVIOR_MOGALL_FOREST_BESIDE_LONE_STUMP | 22 | by walking into it. Beside the lone stump on the island between the two log bridges, metatiles (12, 22) and (12, 23). |
METATILE_BEHAVIOR_MOGALL_FOREST_BELOW_LONE_STUMP | 23 | At the top of the south log bridge below the lone stump, metatile (8, 27). |
METATILE_BEHAVIOR_MOGALL_FOREST_JUMP | 25 | Where walking on jumps across water: from the first area's river log up to the meadow north of it, and onto the third area's lower river log from the bank east of it. |
METATILE_BEHAVIOR_MOGALL_FOREST_JUMP_SOUTH | 26 | The edge of the first area's meadow above the river log, where walking south jumps down onto it. |
METATILE_BEHAVIOR_MOGALL_FOREST_BROKEN_SIGN | 27 | The broken sign at the first clearing, metatiles (9, 3) and (9, 4). |
METATILE_BEHAVIOR_MOGALL_FOREST_TREASURE | 100 | Under the Apple's and the Elven Shirt's chests, and under the side paths' Psynergy Stone. |
Definition at line 237 of file mogall_forest.c.
anonymous enum
enum { FLAG_MOGALL_FOREST_SOUTH_ROCK_SETTLED }
Scene flag, kept while the party stays in the area.
| Enumerator | Value | Description |
|---|---|---|
FLAG_MOGALL_FOREST_SOUTH_ROCK_SETTLED | FLAG_SCENE_TEMP(0x14) |
Definition at line 277 of file mogall_forest.c.
anonymous enum
enum { FIRST_AREA_RIVER_BANK_ROW, SECOND_AREA_LOG_OPENS_WAY_ROW, SECOND_AREA_RIVER_BANK_COLUMN, THIRD_AREA_NORTH_RIVER_BANK_COLUMN, … }
The map rows and columns where a pushed log reaches the water and rolls in, or is out of the way.
| Enumerator | Value | Description |
|---|---|---|
FIRST_AREA_RIVER_BANK_ROW | 26 | The first area's river log, at the river's south bank. |
SECOND_AREA_LOG_OPENS_WAY_ROW | 23 | The second area's upper log, pushed a metatile south into the place of the rock below it. |
SECOND_AREA_RIVER_BANK_COLUMN | 35 | The second area's river log, at the stream's east bank. |
THIRD_AREA_NORTH_RIVER_BANK_COLUMN | 42 | The third area's upper river log, at the island's east bank. |
THIRD_AREA_SOUTH_RIVER_BANK_COLUMN | 40 | The third area's lower river log, at the island's east bank. |
Definition at line 506 of file mogall_forest.c.
Functions in detail
scMogallForestStartDjinnBattle
static void scMogallForestStartDjinnBattle(void)
Talking to Quartz, the Venus Djinni at the bottom of the second area's river clearing, starts the battle with it.
References fdRequestDjinnBattle().
Referenced by MogallForestQuartzCues.
Definition at line 309 of file mogall_forest.c.
scMogallForestTryJumpLeaderTo
static Bool scMogallForestTryJumpLeaderTo(FIELD_POS *pos)
The leader springs and leaps to a spot (in 16.16 pixels). Returns FALSE, and does nothing, when the spot is blocked.
References fdActorGet(), fdActorMoveToAndWait(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdScriptEnd(), fdScriptStart(), scFieldActorCheckMovementCollision(), Sint32, sySoundPlay() and sySynch().
Referenced by scMogallForestFirstAreaJumpNorth(), scMogallForestFirstAreaJumpSouth() and scMogallForestThirdAreaJumpWest().
Definition at line 316 of file mogall_forest.c.
scMogallForestSetColorFromTimer
static Sint32 scMogallForestSetColorFromTimer(ACTOR *actor)
An actor script call: draws the actor in the colour mode its timer holds.
References fdActorSetSpriteColor() and Sint32.
Referenced by MogallForestActorScript and MogallForestRockScript.
Definition at line 346 of file mogall_forest.c.
scMogallForestClearActorSpriteFlags
static Sint32 scMogallForestClearActorSpriteFlags(ACTOR *actor)
An actor script call: takes the actor's shadow away.
References fdActorSetSpriteFlags() and Sint32.
Referenced by MogallForestActorScript and MogallForestHidingPlaceScript.
Definition at line 353 of file mogall_forest.c.
scMogallForestHopActorToWithSpeedFX
static void scMogallForestHopActorToWithSpeedFX(Sint32 actorId, Sint32 targetX, Sint32 targetZ, FIXED verticalSpeed)
Hops an actor to a destination in whole pixels with a vertical speed in 16.16
fixed point; scenes call it through scMogallForestHopActorTo.
References fdActorGet(), fdActorMoveToAndWait(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), Sint32 and sySoundPlay().
Definition at line 361 of file mogall_forest.c.
scMogallForestSpawnPuffRing
static void scMogallForestSpawnPuffRing(Sint32 actorId)
With a thump, scatters a ring of puffs of dust round an actor: the puff an ape makes popping out of a stump or diving back in.
References fdActorGet(), Sint32, syCos(), sySin() and sySoundPlay().
Referenced by scInit(), scMogallForestApeComesOut(), scMogallForestKillerApeAttacks(), scMogallForestSecondAreaSouthApeHidesAgain() and scMogallForestThirdAreaEastApeHidesAgain().
Definition at line 390 of file mogall_forest.c.
scMogallForestApeComesOut
static void scMogallForestApeComesOut(Sint32 actorId, Sint32 color)
Pans the camera to an ape's stump and, half a second later, brings the ape out in a puff of dust, drawn in the colour mode given.
References fdActorSetSpriteColorById(), fdCameraMoveToActorById(), fdCameraSetSpeedParams(), fdCameraWaitForArrival(), fdScriptWait(), scMogallForestSpawnPuffRing() and Sint32.
Referenced by scMogallForestApeLeadsToKillerApe(), scMogallForestFirstAreaApeAttacks(), scMogallForestFirstAreaEastApeShowsWay(), scMogallForestFirstAreaNorthApeShowsWay(), scMogallForestSecondAreaEastApeShowsWay(), scMogallForestSecondAreaSouthApeHidesAgain(), scMogallForestSecondAreaSouthApeShowsWay(), scMogallForestSecondAreaWestApeShowsWay(), scMogallForestThirdAreaApeAttacks(), scMogallForestThirdAreaEastApeHidesAgain(), scMogallForestThirdAreaEastApeShowsWay(), scMogallForestThirdAreaMiddleApeShowsWay() and scMogallForestThirdAreaWestApeShowsWay().
Definition at line 433 of file mogall_forest.c.
scMogallForestApePointsTheWay
static inline void scMogallForestApePointsTheWay(Sint32 guideId)
The ape turns to the leader, hops on the spot and gestures the way on.
References fdActorSetAttachedEffect(), fdActorStartRepeatedMotion(), fdActorTurnToFaceEachOther(), fdCameraFollowActor(), fdScriptWait() and Sint32.
Referenced by scMogallForestFirstAreaEastApeShowsWay(), scMogallForestFirstAreaNorthApeShowsWay(), scMogallForestSecondAreaEastApeShowsWay(), scMogallForestSecondAreaSouthApeShowsWay(), scMogallForestSecondAreaWestApeShowsWay(), scMogallForestThirdAreaEastApeShowsWay(), scMogallForestThirdAreaMiddleApeShowsWay() and scMogallForestThirdAreaWestApeShowsWay().
Definition at line 444 of file mogall_forest.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References MainRoutineStateWork, MogallForestKillerApeEntrances, MogallForestQuartzEntrances, MogallForestSidePathsEntrances and MogallForestSignEntrances.
Definition at line 455 of file mogall_forest.c.
scGetExitRegions
const SCENE_EXIT_REGION *scGetExitRegions(void)
Definition at line 474 of file mogall_forest.c.
scGetExits
const Uint32 *scGetExits(void)
Returns the exits, one table for all four scenes.
References MogallForestExits.
Definition at line 480 of file mogall_forest.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References MainRoutineStateWork, MogallForestKillerApeActorPlacements, MogallForestQuartzActorPlacements, MogallForestSidePathsActorPlacements and MogallForestSignActorPlacements.
Definition at line 485 of file mogall_forest.c.
scMogallForestFirstAreaPushLog
static void scMogallForestFirstAreaPushLog(void)
Isaac pushes a log on the first area's river bank a metatile by walking into it. The log lying west to east, pushed north to the river (row 26), rolls in and lies there, a stepping place up to the meadow on the far side.
Rolling in, the log gives the metatiles (31, 25) to (34, 26) the jump north on their north row, copied from a spare stretch of the map at (38, 27).
References fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffsetById(), fdActorSetSpritePriority(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scPushedActorFindClearPos(), scPushedActorRoll() and sySoundPlay().
Referenced by MogallForestSignCues.
Definition at line 527 of file mogall_forest.c.
scMogallForestFirstAreaJumpNorth
static void scMogallForestFirstAreaJumpNorth(void)
Walking north along the log lying in the first area's river (metatiles (31, 25) to (34, 25)) makes Isaac leap up onto the raised meadow north of it, by the big stump.
References fdActorGet() and scMogallForestTryJumpLeaderTo().
Referenced by MogallForestSignCues.
Definition at line 560 of file mogall_forest.c.
scMogallForestFirstAreaJumpSouth
static void scMogallForestFirstAreaJumpSouth(void)
Walking south off the edge of the first area's raised meadow (metatiles (31, 23) to (34, 23)) makes Isaac leap down onto the log lying in the river, which dips under him: he and the ground under him sink a pixel, then another, and rise back.
References fdActorGet(), fdActorSetAnimation(), fdScriptEnd(), fdScriptStart(), scMogallForestTryJumpLeaderTo(), Sint32 and sySynch().
Referenced by MogallForestSignCues.
Definition at line 581 of file mogall_forest.c.
scMogallForestReadBrokenSign
static void scMogallForestReadBrokenSign(void)
Isaac reads the broken sign by the path just inside the forest, a broken post
a step from where he arrives from the World Map (metatiles (9, 3) and (9,
4)): The broken sign reads: North: Fuchin Temple South: Mogall Prairie...
References fdActorSetAnimation(), fdScriptEnd(), fdScriptStart() and mnFieldMessageShow().
Referenced by MogallForestSignCues.
Definition at line 621 of file mogall_forest.c.
scMogallForestFirstAreaNorthApeShowsWay
static void scMogallForestFirstAreaNorthApeShowsWay(void)
Force on the stump in the middle of the first clearing brings a green ape out of it. The ape turns to Isaac, points the way, and hops off south, the way on to the river.
References fdActorFaceActor(), fdActorGet(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scMogallForestApeComesOut() and scMogallForestApePointsTheWay().
Referenced by MogallForestSignCues.
Definition at line 632 of file mogall_forest.c.
scMogallForestFirstAreaApeAttacks
static void scMogallForestFirstAreaApeAttacks(void)
Force on the stump on the west of the river's south bank, in the first area, brings out an ape that cries out in anger, leaps at Isaac and starts a battle with it.
References fdActorGet(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorTurnToFaceEachOther(), fdCameraFollowActor(), fdRequestBattleFromEncounterTable(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scMogallForestApeComesOut() and sySoundPlay().
Referenced by MogallForestSignCues.
Definition at line 669 of file mogall_forest.c.
scMogallForestFirstAreaEastApeShowsWay
static void scMogallForestFirstAreaEastApeShowsWay(void)
Force on the big stump on the meadow north of the first area's river brings a green ape out of it. The ape points the way and hops off east, the way to the second area.
References fdActorFaceActor(), fdActorGet(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scMogallForestApeComesOut() and scMogallForestApePointsTheWay().
Referenced by MogallForestSignCues.
Definition at line 713 of file mogall_forest.c.
scMogallForestCatchNut
static void scMogallForestCatchNut(void)
Catch on the Nut in the tree on the east bank of the first area's river
brings it down to Isaac: Isaac got a Nut.
References scCatchNut().
Referenced by MogallForestSignCues.
Definition at line 748 of file mogall_forest.c.
scMogallForestSecondAreaPushLog
static void scMogallForestSecondAreaPushLog(void)
Isaac pushes a log in the second area's river clearing a metatile by walking into it. Once Move has put the rock below it into its ring, the upper log can go a metatile south and the way on is open. The log by the stream, pushed west to its bank, rolls into the stream and lies there as a way across.
The upper log's push copies the metatiles (35, 67) to (38, 67) onto the row below them. The rolled log copies its metatiles in the stream from a spare stretch of the map at (44, 30).
References fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffsetById(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scMapGridFillCollisionRectangle(), scPushedActorFindClearPos(), scPushedActorRoll() and sySoundPlay().
Referenced by MogallForestQuartzCues.
Definition at line 761 of file mogall_forest.c.
scMogallForestUpdateRockMetatiles
static inline void scMogallForestUpdateRockMetatiles(Sint32 column, Sint32 row)
Makes the rock's new metatile solid and clears the four metatiles round it,
one of which it came from. Walls are read from the overhead layer's metatiles
(fdMapGridIsWallAt).
References scMapGridFillCollisionRectangle() and Sint32.
Referenced by scMogallForestSecondAreaUpdateRock(), scMogallForestThirdAreaUpdateNorthRock() and scMogallForestThirdAreaUpdateSouthRock().
Definition at line 805 of file mogall_forest.c.
scMogallForestSecondAreaUpdateRock
static void scMogallForestSecondAreaUpdateRock(void)
Move on the small grey rock below the upper log in the second area's river clearing pushes it a metatile. Pushed south into the ring on the ground (metatile (36, 24)), it sinks 2 pixels into place and stays, and the log can be pushed.
References fdActorGet(), fdScriptEnd(), fdScriptStart(), scMogallForestUpdateRockMetatiles() and Sint32.
Referenced by MogallForestQuartzCues.
Definition at line 839 of file mogall_forest.c.
scMogallForestSecondAreaWestApeShowsWay
static void scMogallForestSecondAreaWestApeShowsWay(void)
Force on the west one of the two stumps side by side in the second area brings a green ape out of it. The ape points the way and hops off south, the way on toward the river.
References fdActorFaceActor(), fdActorGet(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scMogallForestApeComesOut() and scMogallForestApePointsTheWay().
Referenced by MogallForestQuartzCues.
Definition at line 866 of file mogall_forest.c.
scMogallForestSecondAreaEastApeShowsWay
static void scMogallForestSecondAreaEastApeShowsWay(void)
Force on the east one of the two stumps side by side in the second area brings a green ape out of it. The ape points the way and hops off east, toward the pond with the Apple's chest.
References fdActorFaceActor(), fdActorGet(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scMogallForestApeComesOut() and scMogallForestApePointsTheWay().
Referenced by MogallForestQuartzCues.
Definition at line 898 of file mogall_forest.c.
scMogallForestSecondAreaSouthApeHidesAgain
static void scMogallForestSecondAreaSouthApeHidesAgain(void)
Force on the stump on the island in the second area's stream brings a green ape out, which leaps west across the stream into the stump on the bank and hides again.
References fdActorGet(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scMogallForestApeComesOut() and scMogallForestSpawnPuffRing().
Referenced by MogallForestQuartzCues.
Definition at line 940 of file mogall_forest.c.
scMogallForestSecondAreaSouthApeShowsWay
static void scMogallForestSecondAreaSouthApeShowsWay(void)
Force on the stump on the west bank of the second area's stream, where the ape from the island hid, brings it out again. It points the way and hops off west, the way to the third area.
References fdActorFaceActor(), fdActorGet(), fdCameraFollowActor(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scMogallForestApeComesOut() and scMogallForestApePointsTheWay().
Referenced by MogallForestQuartzCues.
Definition at line 958 of file mogall_forest.c.
scMogallForestThirdAreaPushLog
static void scMogallForestThirdAreaPushLog(void)
Isaac pushes a log in the third area a metatile by walking into it: the log by the Elven Shirt's chest, or the logs on the island in the river clearing. The two lying north to south on the island, pushed east to its bank, roll into the river and lie there as ways across.
At every push the chest's log and the upper river log copy metatiles onto their new column from spare stretches of the map, in rows 49 to 52 and 68 to 71. A rolled log copies its metatiles in the river from (26, 20).
References fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffsetById(), fdActorSetSpritePriority(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scPushedActorFindClearPos(), scPushedActorRoll(), Sint32 and sySoundPlay().
Referenced by MogallForestKillerApeCues.
Definition at line 1007 of file mogall_forest.c.
scMogallForestThirdAreaJumpWest
static void scMogallForestThirdAreaJumpWest(void)
Walking west off the bank east of the third area's river channel (metatiles (43, 32) to (43, 35)) makes Isaac leap onto the lower log once it lies in the channel, which dips under him.
References fdActorGet(), fdActorSetAnimation(), fdScriptEnd(), fdScriptStart(), scMogallForestTryJumpLeaderTo() and sySynch().
Referenced by MogallForestKillerApeCues.
Definition at line 1074 of file mogall_forest.c.
scMogallForestThirdAreaUpdateNorthRock
static void scMogallForestThirdAreaUpdateNorthRock(void)
Move on the rock beside the log by the Elven Shirt's chest pushes it a metatile. In the ring among the stumps by the stream (metatile (45, 6)) it settles into place and stays, out of the way of the log.
References fdActorGet(), fdScriptEnd(), fdScriptStart(), scMogallForestUpdateRockMetatiles() and Sint32.
Referenced by MogallForestKillerApeCues.
Definition at line 1118 of file mogall_forest.c.
scMogallForestThirdAreaUpdateSouthRock
static void scMogallForestThirdAreaUpdateSouthRock(void)
Move on the rock beside the upper log on the third area's river island pushes it a metatile. Pushed south into the ring on row 27, it settles into place and stays, and the metatile (43, 23) across the channel is made solid.
scInit runs it too, to settle the rock again on arrival.
References fdActorGet(), fdScriptEnd(), fdScriptStart(), gmFlagSet(), scMapGridFillCollisionRectangle() and scMogallForestUpdateRockMetatiles().
Referenced by MogallForestKillerApeCues and scInit().
Definition at line 1147 of file mogall_forest.c.
scMogallForestThirdAreaApeAttacks
static void scMogallForestThirdAreaApeAttacks(void)
Force on the east one of the three stumps in a row in the third area brings out an ape that cries out in anger, leaps at Isaac and starts a battle with it.
References fdActorGet(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorTurnToFaceEachOther(), fdCameraFollowActor(), fdRequestBattleFromEncounterTable(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scMogallForestApeComesOut() and sySoundPlay().
Referenced by MogallForestKillerApeCues.
Definition at line 1171 of file mogall_forest.c.
scMogallForestThirdAreaMiddleApeShowsWay
static void scMogallForestThirdAreaMiddleApeShowsWay(void)
Force on the middle one of the three stumps in a row in the third area brings a green ape out of it. The ape points the way and hops off south, the way on to the river.
References fdActorFaceActor(), fdActorGet(), fdCameraFollowActor(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scMogallForestApeComesOut() and scMogallForestApePointsTheWay().
Referenced by MogallForestKillerApeCues.
Definition at line 1206 of file mogall_forest.c.
scMogallForestThirdAreaWestApeShowsWay
static void scMogallForestThirdAreaWestApeShowsWay(void)
Force on the west one of the three stumps in a row in the third area brings a green ape out of it. The ape points the way and hops off west, toward the Elven Shirt's chest.
References fdActorFaceActor(), fdActorGet(), fdCameraFollowActor(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scMogallForestApeComesOut() and scMogallForestApePointsTheWay().
Referenced by MogallForestKillerApeCues.
Definition at line 1246 of file mogall_forest.c.
scMogallForestThirdAreaEastApeHidesAgain
static void scMogallForestThirdAreaEastApeHidesAgain(void)
Force on the stump on its own island in the third area's river clearing brings a green ape out, which leaps south into a lower stump and hides again, the camera following it.
References fdActorGet(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scMogallForestApeComesOut() and scMogallForestSpawnPuffRing().
Referenced by MogallForestKillerApeCues.
Definition at line 1286 of file mogall_forest.c.
scMogallForestThirdAreaEastApeShowsWay
static void scMogallForestThirdAreaEastApeShowsWay(void)
Force on the lower stump in the third area's river clearing, where the ape from the island hid, brings it out again. It points the way and hops off south, the way to the lone stump.
References fdActorFaceActor(), fdActorGet(), fdCameraFollowActor(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scMogallForestApeComesOut() and scMogallForestApePointsTheWay().
Referenced by MogallForestKillerApeCues.
Definition at line 1304 of file mogall_forest.c.
scMogallForestApeLeadsToKillerApe
static void scMogallForestApeLeadsToKillerApe(void)
Walking up to the lone stump on the island between the two log bridges, on its east side (metatiles (12, 22) and (12, 23)), the ape that led the party there bursts out of it and hops away south over the bridge. It happens once.
References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAttachedEffect(), fdCameraFollowActor(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), gmFlagSet() and scMogallForestApeComesOut().
Referenced by MogallForestKillerApeCues.
Definition at line 1347 of file mogall_forest.c.
scMogallForestKillerApeAttacks
static void scMogallForestKillerApeAttacks(void)
Stepping onto the top of the south bridge below the lone stump (metatile (8, 27)) until the Killer Ape is beaten: the camera turns to the stump and the ground shakes twice with puffs of dust round it. Then the Killer Ape, a big blue ape, bursts out, roars, leaps at Isaac and its battle begins.
References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorStartRepeatedMotion(), fdCameraWaitForArrival(), fdMapGridWaitForShakeToSettle(), fdRequestBattleFromEncounterTable(), fdScriptEnd(), fdScriptSetAfterBattleDestination(), fdScriptStart(), fdScriptWait(), scMogallForestSpawnPuffRing(), syCos(), sySin() and sySoundPlay().
Referenced by MogallForestKillerApeCues.
Definition at line 1383 of file mogall_forest.c.
scGetCues
const CUE *scGetCues(void)
References MainRoutineStateWork, MogallForestKillerApeCues, MogallForestQuartzCues, MogallForestSidePathsCues and MogallForestSignCues.
Definition at line 1456 of file mogall_forest.c.
scInit
Sint32 scInit(void)
Sets up the clearing entered. On the first arrival in the forest it plays the ape peeking out of the first stump; otherwise it puts back the apes already out, the logs in the river and the settled rocks.
References fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetPosFX(), fdActorSetScript(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorWaitForMoveById(), fdActorWalkTo(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagGet(), gmFlagSet(), MainRoutineStateWork, MogallForestActorScript, scFloatNut(), scMapGridFillCollisionRectangle(), scMogallForestSpawnPuffRing(), scMogallForestThirdAreaUpdateSouthRock(), scPushedActorBlockFootprint(), Sint32 and sySynch().
Definition at line 1478 of file mogall_forest.c.
Variables in detail
MogallForestActorScript
extern Sint32 MogallForestActorScript[]
Sint32 MogallForestActorScript[]
The script of each ape, at four fifths of its size, hidden while it hides, and with its shadow off.
References scMogallForestClearActorSpriteFlags(), scMogallForestSetColorFromTimer() and Sint32.
Referenced by MogallForestKillerApeActorPlacements, MogallForestQuartzActorPlacements, MogallForestSignActorPlacements and scInit().
Definition at lines 78 and 1855 of file mogall_forest.c.
MogallForestSignEntrances
extern SCENE_ENTRANCE MogallForestSignEntrances[]
SCENE_ENTRANCE MogallForestSignEntrances[]
Referenced by scGetEntrances().
Definition at lines 79 and 1875 of file mogall_forest.c.
MogallForestQuartzEntrances
extern SCENE_ENTRANCE MogallForestQuartzEntrances[]
SCENE_ENTRANCE MogallForestQuartzEntrances[]
Referenced by scGetEntrances().
Definition at lines 80 and 1897 of file mogall_forest.c.
MogallForestKillerApeEntrances
extern SCENE_ENTRANCE MogallForestKillerApeEntrances[]
SCENE_ENTRANCE MogallForestKillerApeEntrances[]
Referenced by scGetEntrances().
Definition at lines 81 and 1926 of file mogall_forest.c.
MogallForestSidePathsEntrances
extern SCENE_ENTRANCE MogallForestSidePathsEntrances[]
SCENE_ENTRANCE MogallForestSidePathsEntrances[]
Referenced by scGetEntrances().
Definition at lines 82 and 1959 of file mogall_forest.c.
MogallForestExits
extern Uint32 MogallForestExits[]
Uint32 MogallForestExits[]
Referenced by scGetExits().
Definition at lines 83 and 1983 of file mogall_forest.c.
MogallForestSignActorPlacements
extern ACTOR_PLACE MogallForestSignActorPlacements[]
ACTOR_PLACE MogallForestSignActorPlacements[]
References MogallForestActorScript, MogallForestHidingPlaceScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 84 and 2145 of file mogall_forest.c.
MogallForestQuartzActorPlacements
extern ACTOR_PLACE MogallForestQuartzActorPlacements[]
ACTOR_PLACE MogallForestQuartzActorPlacements[]
References MogallForestActorScript, MogallForestHidingPlaceScript, MogallForestRockScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 85 and 2173 of file mogall_forest.c.
MogallForestKillerApeActorPlacements
extern ACTOR_PLACE MogallForestKillerApeActorPlacements[]
ACTOR_PLACE MogallForestKillerApeActorPlacements[]
References MogallForestActorScript, MogallForestHidingPlaceScript, MogallForestRockScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 86 and 2205 of file mogall_forest.c.
MogallForestSidePathsActorPlacements
extern ACTOR_PLACE MogallForestSidePathsActorPlacements[]
ACTOR_PLACE MogallForestSidePathsActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 87 and 2246 of file mogall_forest.c.
MogallForestSignCues
extern CUE MogallForestSignCues[]
CUE MogallForestSignCues[]
References scMogallForestCatchNut(), scMogallForestFirstAreaApeAttacks(), scMogallForestFirstAreaEastApeShowsWay(), scMogallForestFirstAreaJumpNorth(), scMogallForestFirstAreaJumpSouth(), scMogallForestFirstAreaNorthApeShowsWay(), scMogallForestFirstAreaPushLog() and scMogallForestReadBrokenSign().
Referenced by scGetCues().
Definition at lines 88 and 2250 of file mogall_forest.c.
MogallForestQuartzCues
extern CUE MogallForestQuartzCues[]
CUE MogallForestQuartzCues[]
References scMogallForestSecondAreaEastApeShowsWay(), scMogallForestSecondAreaPushLog(), scMogallForestSecondAreaSouthApeHidesAgain(), scMogallForestSecondAreaSouthApeShowsWay(), scMogallForestSecondAreaUpdateRock(), scMogallForestSecondAreaWestApeShowsWay() and scMogallForestStartDjinnBattle().
Referenced by scGetCues().
Definition at lines 89 and 2287 of file mogall_forest.c.
MogallForestKillerApeCues
extern CUE MogallForestKillerApeCues[]
CUE MogallForestKillerApeCues[]
References scMogallForestApeLeadsToKillerApe(), scMogallForestKillerApeAttacks(), scMogallForestThirdAreaApeAttacks(), scMogallForestThirdAreaEastApeHidesAgain(), scMogallForestThirdAreaEastApeShowsWay(), scMogallForestThirdAreaJumpWest(), scMogallForestThirdAreaMiddleApeShowsWay(), scMogallForestThirdAreaPushLog(), scMogallForestThirdAreaUpdateNorthRock(), scMogallForestThirdAreaUpdateSouthRock() and scMogallForestThirdAreaWestApeShowsWay().
Referenced by scGetCues().
Definition at lines 90 and 2327 of file mogall_forest.c.
MogallForestSidePathsCues
extern CUE MogallForestSidePathsCues[]
CUE MogallForestSidePathsCues[]
Referenced by scGetCues().
Definition at lines 91 and 2381 of file mogall_forest.c.
FieldEffectDurationScripts
const Sint32 *FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Definition at line 1839 of file mogall_forest.c.
MogallForestRockScript
Sint32 MogallForestRockScript[]
The script of each rock moved with Move, which draws it in greys.
References scMogallForestSetColorFromTimer() and Sint32.
Referenced by MogallForestKillerApeActorPlacements and MogallForestQuartzActorPlacements.
Definition at line 1846 of file mogall_forest.c.
MogallForestHidingPlaceScript
Sint32 MogallForestHidingPlaceScript[]
The script of each stump's blank actor, the target of Force, which stays still with its sprite hidden.
References scMogallForestClearActorSpriteFlags() and Sint32.
Referenced by MogallForestKillerApeActorPlacements, MogallForestQuartzActorPlacements and MogallForestSignActorPlacements.
Definition at line 1866 of file mogall_forest.c.