src/scene/shaman_village_cave.c
The Shaman Village Cave, on the way east from Hesperia to the Shaman Village. More…
#include "item_ids.h"#include "edition.h"#include "field/actor_script.h"#include "field/call.h"#include "field/script_inline.h"#include "field/field_engine.h"#include "field/field_engine_script.h"#include "field/field_sprite.h"#include "game/game.h"#include "scene/scene.h"#include "text/msg_ids.h"#include "shared/scene_entrances_default.c"
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_SHAMAN_VILLAGE_CAVE_PILLAR_DROPPED 0x9a8 | Set once Move has pushed the stone pillar into the gap in the pillar room's ledge, at metatile (38, 19). |
#define | FLAG_SHAMAN_VILLAGE_CAVE_FIRST_WEEDS_SCATTERED 0x9a9 | Set once Whirlwind has scattered the weeds on the first room's west wall. |
#define | FLAG_SHAMAN_VILLAGE_CAVE_SECOND_WEEDS_SCATTERED 0x9aa | Set once Whirlwind has scattered the weeds in the back room. |
#define | FLAG_SHAMAN_VILLAGE_CAVE_FOUND_BY_GLADIATORS 0xa70 | Set as the gladiators from Colosso find the party: "I found Isaac!" |
#define | FLAG_SHAMAN_VILLAGE_CAVE_LOST_TO_GLADIATORS 0xa71 | Set while the party has lost to the gladiators, who wait for a rematch. |
#define | FLAG_SHAMAN_VILLAGE_CAVE_BEAT_GLADIATORS 0xa72 | Set once the party has beaten the gladiators. |
#define | FLAG_SHAMAN_VILLAGE_CAVE_GOLDEN_SHIRT_LEFT 0xa73 | Set while the Golden Shirt the beaten gladiators leave lies in the cave. |
#define | FLAG_SHAMAN_VILLAGE_CAVE_BOULDER_LIFTED (n) (FLAG_SCENE_TEMP(0x00) + (n)) | Set as Lift raises one of the back room's four boulders, n counting from 0 in the west. |
#define | FLAG_SHAMAN_VILLAGE_CAVE_EDDY_CORNERED FLAG_SCENE_TEMP(0x04) | Set once Eddy, its way south blocked by the lifted third boulder, has winced at the party. |
#define | FLAG_SHAMAN_VILLAGE_CAVE_EDDY_STOPS_FLEEING FLAG_SCENE_TEMP(0x05) | Set once Eddy has been fought or has joined: it no longer hops away from the party. |
#define | FLAG_SHAMAN_VILLAGE_CAVE_EDDY_FOUGHT FLAG_SCENE_TEMP(0x06) | Set as the battle with Eddy begins: back in the cave, Eddy stands on the ledge between the third and fourth boulders. |
#define | FLAG_SHAMAN_VILLAGE_CAVE_PUDDLE_FROZEN FLAG_AREA_TEMP(0x02) | Set once Frost has frozen the back room's puddle into a pillar of ice. |
Enumerations
| Name | Description | |
|---|---|---|
enum | SHAMAN_VILLAGE_CAVE_EXIT { EXIT_WEST_PASSAGE, EXIT_MIDDLE_PASSAGE, EXIT_EAST_PASSAGE, E … } | The cave's ways between its rooms. |
enum | SHAMAN_VILLAGE_CAVE_ENTRANCE { ENTRANCE_BELOW_WEST_PASSAGE, ENTRANCE_BELOW_MIDDLE_PASSAGE, … } | Where the party comes in: from another room, or back from the gladiators' battle, having beaten them or lost. |
enum | SHAMAN_VILLAGE_CAVE_METATILE { GAP_ABOVE_SECOND_BOULDER_WEST_METATILE, GAP_ABOVE_SECOND_BOU … } | The metatiles that run the cave's other scripts. |
enum | SHAMAN_VILLAGE_CAVE_ACTOR_ID { ACTOR_FIRST_WEEDS, ACTOR_HIDDEN_BOULDER, ACTOR_SECOND_WEEDS, … } | The cave's actors, numbering the rows of ActorPlacements. |
Functions
| Name | Description | |
|---|---|---|
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. |
void | scShamanVillageCaveScatterWeeds (Sint32 unused, Sint32 weeds) | Whirlwind blows a clump of weeds away for good: the one on the first room's west wall, metatile (2, 8), uncovering the steps up to the west passage, or the one on the back room's wall, metatile (14, 38), uncovering the steps up toward Eddy. |
void | scShamanVillageCaveDropPillarIntoGap (Sint32 id) | The stone pillar drops into the gap in the ledge until it lands on the floor below, or for a second at most, and stands there without its shadow. |
void | scShamanVillageCaveStartMovingPillar (void) | Nothing visible happens as Move takes hold of the stone pillar in the pillar room. |
void | scShamanVillageCaveFinishMovingPillar (Sint32 unused, Sint32 id) | Each push of the stone pillar ends here. |
void | scShamanVillageCaveFreezePuddle (void) | Frost freezes the puddle on the back room's west side, metatile (6, 42), into a tall pillar of ice, whose top the party can hop across on. |
void | scShamanVillageCaveEddyFlees (void) | Eddy, the Mercury Djinni on the ledge in the middle of the back room, hops away from the leader who comes near it on its side of the third boulder's column: two metatiles south (north when the leader is south of it), four metatiles east or west away from the leader, the last three in a leap, and back. |
void | scShamanVillageCaveFightEddy (void) | Talking to Eddy, the Mercury Djinni, once the party has cornered it, starts its battle. |
Sint32 | scShamanVillageCaveSetUpWeeds (ACTOR *actor) | The weeds' set-up, called by their script: they cast no shadow, stand still, and are drawn at priority 2, the priority of the cave's walls. |
const ACTOR_PLACE * | scGetActorPlacements (void) | The scene's actor placements: a room of names for its entrance, else the debug room's. |
void | scShamanVillageCaveLiftFirstBoulder (void) | Lift raises the leftmost of the back room's four boulders, metatile (8, 50), out of its gap, one of the steps on the way up to Eddy. |
void | scShamanVillageCaveLiftSecondBoulder (void) | Lift raises the second boulder from the west in the back room, metatile (13, 50), out of its gap. |
void | scShamanVillageCaveLiftThirdBoulder (void) | Lift raises the third boulder from the west in the back room, metatile (18, 49), reached from behind once the fourth is up. |
void | scShamanVillageCaveLiftFourthBoulder (void) | Lift raises the rightmost of the back room's four boulders, metatile (22, 49), opening the way behind it to the third. |
const CUE * | scGetCues (void) | The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's. |
void | scShamanVillageCaveTakeGoldenShirt (void) | Talking to the Golden Shirt the gladiators leave on the first room's floor picks it up, if there is room. |
void | scShamanVillageCavePlaceGladiators (void) | The three gladiators stand in the first room, where their rematch left them. |
void | scShamanVillageCavePlaceGoldenShirt (void) | The Golden Shirt lies where the gladiators left it (FLAG_SHAMAN_VILLAGE_CAVE_GOLDEN_SHIRT_LEFT). |
void | scShamanVillageCaveMeetGladiators (void) | Walking halfway up the first room, metatiles (12, 14) and (13, 14), once Isaac has joined, in a game carried over from a The Broken Seal save that won Colosso: Satrage, Azart and Navampa, the gladiators Isaac beat there, come out of the middle passage, call the win a cheat and fight the party. |
void | scShamanVillageCaveFightGladiators (void) | Talking to any of the three gladiators, who wait in the first room after beating the party, starts the rematch. |
void | scShamanVillageCaveLoseToGladiators (void) | Back in the cave after losing the rematch, the gladiators crow over the party: "Hey, these guys aren't very strong at all!" |
void | scShamanVillageCaveBeatGladiators (void) | Back in the cave after winning the rematch, the gladiators marvel: "These guys were phenomenal!" |
void | scShamanVillageCaveEnterPassage (void) | Walking north into one of the dark passages in the rock, Felix steps in and the screen wipes to the room it leads to. |
Sint32 | scInit (void) | Sets the cave up as its flags left it: the scattered weeds gone, the pillar in its gap, the puddle frozen, Eddy where its battle was fought, and the gladiators back from their rematch, won or lost, or waiting for one. |
Sint32 | scPrepareMap (void) | The walls whose weeds Whirlwind has scattered are climbable again. |
void | scShamanVillageCaveJumpForward (void) | Walking east or west against the gap in the back room's ledges above the second or third boulder (metatiles (12, 50) and (14, 50), (17, 49) and (19, 49)), the leader jumps across it, while that boulder still stands in the gap below. |
Variables
| Name | Description | |
|---|---|---|
extern Uint32 | ShamanVillageCaveGladiatorLeaves [] | The beaten gladiators walk off south through the first room, one after another. |
extern Sint32 | ShamanVillageCaveGladiatorFollowsOut [] | The gladiator behind the others steps up to their path and follows them out. |
extern Sint32 | ShamanVillageCaveWeedsScript [] | The weeds' script: they stand half as tall again, and are set up by scShamanVillageCaveSetUpWeeds. |
extern Uint32 | ShamanVillageCavePillarScript [] | The pillar's script: it stands still. |
Uint32 | SceneExits [] | The room has no exits of its own. |
ACTOR_PLACE | ActorPlacements [] | The room's people: the party's four rows, then PSYNERGY_TEST_ACTOR_ID's. |
CUE | SceneCues [] | The room's scripts: talking to its people, Mind Read on them, the metatiles examined, and the field Psynergy each spot answers. |
Description
The Shaman Village Cave, on the way east from Hesperia to the Shaman Village. It has three rooms. The first, entered from the world map at its south, has three passages in its north wall. The back room behind them has raised ledges with four round boulders standing in the gaps between them, and Eddy, the Mercury Djinni, on the ledge in the middle. The pillar room, east of it, has the cave's east mouth.
On the first visit, Whirlwind clears the weeds off the first room's west wall, Felix climbs to the west passage, crosses the back room to the pillar room and Moves the stone pillar two metatiles east into the gap in its ledge, which makes a short cut. Once Isaac has joined, with Lift, the party lifts the boulders, freezes the puddle and clears the back room's weeds to climb up to Eddy, who can no longer hop away once the third boulder is up. In a game carried over from a The Broken Seal save that won Colosso, Satrage, Azart and Navampa, the gladiators Isaac beat there, catch the party in the first room for a rematch, and give up a Golden Shirt when they lose.
Macros in detail
FLAG_SHAMAN_VILLAGE_CAVE_PILLAR_DROPPED
#define FLAG_SHAMAN_VILLAGE_CAVE_PILLAR_DROPPED 0x9a8
Set once Move has pushed the stone pillar into the gap in the pillar room's ledge, at metatile (38, 19).
Referenced by SceneCues, scInit() and scShamanVillageCaveFinishMovingPillar().
Definition at line 31 of file shaman_village_cave.c.
FLAG_SHAMAN_VILLAGE_CAVE_FIRST_WEEDS_SCATTERED
#define FLAG_SHAMAN_VILLAGE_CAVE_FIRST_WEEDS_SCATTERED 0x9a9
Set once Whirlwind has scattered the weeds on the first room's west wall.
Referenced by scInit(), scPrepareMap() and scShamanVillageCaveScatterWeeds().
Definition at line 33 of file shaman_village_cave.c.
FLAG_SHAMAN_VILLAGE_CAVE_SECOND_WEEDS_SCATTERED
#define FLAG_SHAMAN_VILLAGE_CAVE_SECOND_WEEDS_SCATTERED 0x9aa
Set once Whirlwind has scattered the weeds in the back room.
Referenced by scInit(), scPrepareMap() and scShamanVillageCaveScatterWeeds().
Definition at line 35 of file shaman_village_cave.c.
FLAG_SHAMAN_VILLAGE_CAVE_FOUND_BY_GLADIATORS
#define FLAG_SHAMAN_VILLAGE_CAVE_FOUND_BY_GLADIATORS 0xa70
Set as the gladiators from Colosso find the party: "I found Isaac!"
Referenced by SceneCues and scShamanVillageCaveMeetGladiators().
Definition at line 37 of file shaman_village_cave.c.
FLAG_SHAMAN_VILLAGE_CAVE_LOST_TO_GLADIATORS
#define FLAG_SHAMAN_VILLAGE_CAVE_LOST_TO_GLADIATORS 0xa71
Set while the party has lost to the gladiators, who wait for a rematch.
Referenced by scInit() and scShamanVillageCaveBeatGladiators().
Definition at line 39 of file shaman_village_cave.c.
FLAG_SHAMAN_VILLAGE_CAVE_BEAT_GLADIATORS
#define FLAG_SHAMAN_VILLAGE_CAVE_BEAT_GLADIATORS 0xa72
Set once the party has beaten the gladiators.
Referenced by scShamanVillageCaveBeatGladiators().
Definition at line 41 of file shaman_village_cave.c.
FLAG_SHAMAN_VILLAGE_CAVE_GOLDEN_SHIRT_LEFT
#define FLAG_SHAMAN_VILLAGE_CAVE_GOLDEN_SHIRT_LEFT 0xa73
Set while the Golden Shirt the beaten gladiators leave lies in the cave.
Referenced by scInit(), scShamanVillageCavePlaceGoldenShirt() and scShamanVillageCaveTakeGoldenShirt().
Definition at line 43 of file shaman_village_cave.c.
FLAG_SHAMAN_VILLAGE_CAVE_BOULDER_LIFTED
#define FLAG_SHAMAN_VILLAGE_CAVE_BOULDER_LIFTED(n) (FLAG_SCENE_TEMP(0x00) + (n))
Set as Lift raises one of the back room's four boulders, n counting from 0 in the west. While the second or third stands in its gap, the party can jump across the gap in the ledges above it; lifted, it fills the gap and there is no jump.
Referenced by SceneCues, scShamanVillageCaveEddyFlees(), scShamanVillageCaveLiftFirstBoulder(), scShamanVillageCaveLiftFourthBoulder(), scShamanVillageCaveLiftSecondBoulder() and scShamanVillageCaveLiftThirdBoulder().
Definition at line 48 of file shaman_village_cave.c.
FLAG_SHAMAN_VILLAGE_CAVE_EDDY_CORNERED
#define FLAG_SHAMAN_VILLAGE_CAVE_EDDY_CORNERED FLAG_SCENE_TEMP(0x04)
Set once Eddy, its way south blocked by the lifted third boulder, has winced at the party.
Referenced by scShamanVillageCaveEddyFlees().
Definition at line 51 of file shaman_village_cave.c.
FLAG_SHAMAN_VILLAGE_CAVE_EDDY_STOPS_FLEEING
#define FLAG_SHAMAN_VILLAGE_CAVE_EDDY_STOPS_FLEEING FLAG_SCENE_TEMP(0x05)
Set once Eddy has been fought or has joined: it no longer hops away from the party.
Referenced by SceneCues, scInit() and scShamanVillageCaveFightEddy().
Definition at line 54 of file shaman_village_cave.c.
FLAG_SHAMAN_VILLAGE_CAVE_EDDY_FOUGHT
#define FLAG_SHAMAN_VILLAGE_CAVE_EDDY_FOUGHT FLAG_SCENE_TEMP(0x06)
Set as the battle with Eddy begins: back in the cave, Eddy stands on the ledge between the third and fourth boulders.
Referenced by scInit() and scShamanVillageCaveFightEddy().
Definition at line 57 of file shaman_village_cave.c.
FLAG_SHAMAN_VILLAGE_CAVE_PUDDLE_FROZEN
#define FLAG_SHAMAN_VILLAGE_CAVE_PUDDLE_FROZEN FLAG_AREA_TEMP(0x02)
Set once Frost has frozen the back room's puddle into a pillar of ice.
Referenced by SceneCues, scInit() and scShamanVillageCaveFreezePuddle().
Definition at line 59 of file shaman_village_cave.c.
Enumerations in detail
SHAMAN_VILLAGE_CAVE_EXIT
enum SHAMAN_VILLAGE_CAVE_EXIT
The cave's ways between its rooms. Each passage's metatile, and the metatile at each room's edge, holds the number of the exit it leads by.
| Enumerator | Value | Description |
|---|---|---|
EXIT_WEST_PASSAGE | 2 | The first room's west passage, metatile (2, 6), at the top of the wall the first weeds cover: to the back room's west end. |
EXIT_MIDDLE_PASSAGE | 3 | The first room's middle passage, metatile (12, 8): to the middle of the back room. |
EXIT_EAST_PASSAGE | 4 | The first room's east passage, metatile (22, 14): to the pillar room's floor. |
EXIT_BACK_ROOM_WEST | 5 | The back room's west end, metatile (4, 59): back below the west passage. |
EXIT_BACK_ROOM_MIDDLE | 6 | The back room's middle, metatile (14, 59): back below the middle passage. |
EXIT_BACK_ROOM_EAST | 7 | The back room's east end, metatile (26, 55): to the pillar room's ledge. |
EXIT_PILLAR_ROOM_PASSAGE | 8 | The passage behind the pillar room's ledge, metatile (33, 18): to the back room's east end. |
EXIT_PILLAR_ROOM_FLOOR | 9 | The pillar room's floor, metatile (31, 25): back below the east passage. |
Definition at line 63 of file shaman_village_cave.c.
SHAMAN_VILLAGE_CAVE_ENTRANCE
enum SHAMAN_VILLAGE_CAVE_ENTRANCE
Where the party comes in: from another room, or back from the gladiators' battle, having beaten them or lost.
| Enumerator | Value | Description |
|---|---|---|
ENTRANCE_BELOW_WEST_PASSAGE | 2 | |
ENTRANCE_BELOW_MIDDLE_PASSAGE | 3 | |
ENTRANCE_BELOW_EAST_PASSAGE | 4 | |
ENTRANCE_BACK_ROOM_WEST | 5 | |
ENTRANCE_BACK_ROOM_MIDDLE | 6 | |
ENTRANCE_BACK_ROOM_EAST | 7 | |
ENTRANCE_PILLAR_ROOM_LEDGE | 8 | |
ENTRANCE_PILLAR_ROOM_FLOOR | 9 | |
ENTRANCE_AFTER_BEATING_GLADIATORS | 20 | |
ENTRANCE_AFTER_LOSING_TO_GLADIATORS | 21 |
Definition at line 87 of file shaman_village_cave.c.
SHAMAN_VILLAGE_CAVE_METATILE
enum SHAMAN_VILLAGE_CAVE_METATILE
The metatiles that run the cave's other scripts.
| Enumerator | Value | Description |
|---|---|---|
GAP_ABOVE_SECOND_BOULDER_WEST_METATILE | 41 | West of the gap in the back room's ledges above the second boulder, metatile (12, 50), walking east. |
GAP_ABOVE_SECOND_BOULDER_EAST_METATILE | 42 | East of that gap, metatile (14, 50), walking west. |
GAP_ABOVE_THIRD_BOULDER_WEST_METATILE | 43 | West of the gap above the third boulder, metatile (17, 49), walking east. |
GAP_ABOVE_THIRD_BOULDER_EAST_METATILE | 44 | East of that gap, metatile (19, 49), walking west. |
NEAR_EDDY_METATILE | 50 | Close to Eddy on its ledge: metatiles (16, 45), (20, 45), (16, 49), (20, 49) and (15, 50). |
GLADIATORS_AMBUSH_METATILE | 100 | Halfway up the first room, metatiles (12, 14) and (13, 14), where the gladiators catch the party. |
Definition at line 102 of file shaman_village_cave.c.
SHAMAN_VILLAGE_CAVE_ACTOR_ID
enum SHAMAN_VILLAGE_CAVE_ACTOR_ID
The cave's actors, numbering the rows of ActorPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FIRST_WEEDS | ACTOR_FIRST_PLACED | The weeds Whirlwind scatters from the wall below the first room's west passage, over the steps that climb it (SPRITE_WEEDS). |
ACTOR_HIDDEN_BOULDER | A round boulder placed in the map's top left corner, above every room's view; nothing moves it. | |
ACTOR_SECOND_WEEDS | The second clump of weeds, on a wall in the back room, over the steps up toward Eddy. | |
ACTOR_FIRST_BOULDER | Four round boulders standing in | |
ACTOR_LAST_BOULDER | ACTOR_FIRST_BOULDER + 3 | the gaps between the back room's ledges, west to east (SPRITE_ROUND_BOULDER). |
ACTOR_PILLAR | The stone pillar on the pillar room's ledge, which Move pushes (SPRITE_STONE_PILLAR). | |
ACTOR_PUDDLE | The puddle Frost freezes, on the back room's west side (SPRITE_PUDDLE). | |
ACTOR_EDDY | Eddy, the Mercury Djinni, placed | |
ACTOR_KRADEN | until it joins (FLAG_DJINNI(DJINNI_EDDY)). | |
ACTOR_SATRAGE | Colosso's three gladiators, come to call Isaac a cheat: "The name's Satrage.", "And I'm Azart!", "And don't forget Navampa!" | |
ACTOR_AZART | ||
ACTOR_NAVAMPA | ||
ACTOR_GOLDEN_SHIRT | The Golden Shirt the gladiators leave (scShamanVillageCaveTakeGoldenShirt). |
Definition at line 125 of file shaman_village_cave.c.
Functions in detail
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 170 of file shaman_village_cave.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 175 of file shaman_village_cave.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 180 of file shaman_village_cave.c.
scShamanVillageCaveScatterWeeds
void scShamanVillageCaveScatterWeeds(Sint32 unused, Sint32 weeds)
Whirlwind blows a clump of weeds away for good: the one on the first room's west wall, metatile (2, 8), uncovering the steps up to the west passage, or the one on the back room's wall, metatile (14, 38), uncovering the steps up toward Eddy. The leaves flying are the field engine's own Whirlwind; here the clump's flag is set and its metatile made climbable, copied from a spare climbable metatile at the map's west edge.
References fdMapGridCopyMetatileAttributes(), fdScriptSetFlag() and Sint32.
Referenced by SceneCues.
Definition at line 191 of file shaman_village_cave.c.
scShamanVillageCaveDropPillarIntoGap
void scShamanVillageCaveDropPillarIntoGap(Sint32 id)
The stone pillar drops into the gap in the ledge until it lands on the floor below, or for a second at most, and stands there without its shadow.
References fdActorGet(), fdActorSetSpriteFlags(), Sint32 and sySynch().
Referenced by scShamanVillageCaveFinishMovingPillar().
Definition at line 207 of file shaman_village_cave.c.
scShamanVillageCaveStartMovingPillar
void scShamanVillageCaveStartMovingPillar(void)
Nothing visible happens as Move takes hold of the stone pillar in the pillar
room. Before the push, the game walls in the pillar's lane along the ledge,
to its north, south and west, so that it can only travel east; the walls are
a spare ring of wall metatiles copied over the ledge's metatiles (35, 18) to
(38, 20) on the map's middle layer (columns 99 to 102), and come down again
in scShamanVillageCaveFinishMovingPillar.
References fdMapGridCopyMetatileAttributes().
Referenced by SceneCues.
Definition at line 231 of file shaman_village_cave.c.
scShamanVillageCaveFinishMovingPillar
void scShamanVillageCaveFinishMovingPillar(Sint32 unused, Sint32 id)
Each push of the stone pillar ends here. Pushed two metatiles east, to the gap in the pillar room's ledge at metatile (38, 19), it drops into the gap and stays, its top level with the ledge, and the party can hop across on it: the short cut. Either way the walls round its lane come down again.
References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdScriptSetFlag(), scShamanVillageCaveDropPillarIntoGap() and Sint32.
Referenced by SceneCues.
Definition at line 240 of file shaman_village_cave.c.
scShamanVillageCaveFreezePuddle
void scShamanVillageCaveFreezePuddle(void)
Frost freezes the puddle on the back room's west side, metatile (6, 42), into a tall pillar of ice, whose top the party can hop across on.
References fdActorGet(), fdMapGridCopyMetatileAttributes() and fdScriptSetFlag().
Referenced by SceneCues.
Definition at line 257 of file shaman_village_cave.c.
scShamanVillageCaveEddyFlees
void scShamanVillageCaveEddyFlees(void)
Eddy, the Mercury Djinni on the ledge in the middle of the back room, hops away from the leader who comes near it on its side of the third boulder's column: two metatiles south (north when the leader is south of it), four metatiles east or west away from the leader, the last three in a leap, and back. Once the third boulder is lifted, its first hop south is its last: it lands, steps west, jumps, backs away and winces, cornered.
References fdActorFaceDirection(), fdActorGetById(), fdActorSetAttachedEffect(), fdActorSetDestinationOffset(), fdActorShowEmote(), fdActorWalkBy(), fdCameraMoveToActorById(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldActorJump(), scFieldActorStartRepeatedMotion(), scFieldActorWaitForMoveById(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait() and Sint32.
Referenced by SceneCues.
Definition at line 273 of file shaman_village_cave.c.
scShamanVillageCaveFightEddy
void scShamanVillageCaveFightEddy(void)
Talking to Eddy, the Mercury Djinni, once the party has cornered it, starts its battle.
References fdScriptRequestDjinnBattle() and fdScriptSetFlag().
Referenced by SceneCues.
Definition at line 341 of file shaman_village_cave.c.
scShamanVillageCaveSetUpWeeds
Sint32 scShamanVillageCaveSetUpWeeds(ACTOR *actor)
The weeds' set-up, called by their script: they cast no shadow, stand still, and are drawn at priority 2, the priority of the cave's walls.
References fdActorSetSpriteFlags() and Sint32.
Referenced by ShamanVillageCaveWeedsScript.
Definition at line 350 of file shaman_village_cave.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References ActorPlacements.
Definition at line 358 of file shaman_village_cave.c.
scShamanVillageCaveLiftFirstBoulder
void scShamanVillageCaveLiftFirstBoulder(void)
Lift raises the leftmost of the back room's four boulders, metatile (8, 50), out of its gap, one of the steps on the way up to Eddy. Like each of the four, it stays up until the party leaves the cave.
References fdScriptSetFlag().
Referenced by SceneCues.
Definition at line 366 of file shaman_village_cave.c.
scShamanVillageCaveLiftSecondBoulder
void scShamanVillageCaveLiftSecondBoulder(void)
Lift raises the second boulder from the west in the back room, metatile (13,
50), out of its gap. Up in the gap, it stops the jump across the gap in the
ledges above (scShamanVillageCaveJumpForward).
References fdScriptSetFlag().
Referenced by SceneCues.
Definition at line 374 of file shaman_village_cave.c.
scShamanVillageCaveLiftThirdBoulder
void scShamanVillageCaveLiftThirdBoulder(void)
Lift raises the third boulder from the west in the back room, metatile (18, 49), reached from behind once the fourth is up. Up in the gap beside Eddy's ledge, it cuts off Eddy's way south: the next time it hops south, it is cornered.
References fdScriptSetFlag().
Referenced by SceneCues.
Definition at line 383 of file shaman_village_cave.c.
scShamanVillageCaveLiftFourthBoulder
void scShamanVillageCaveLiftFourthBoulder(void)
Lift raises the rightmost of the back room's four boulders, metatile (22, 49), opening the way behind it to the third.
References fdScriptSetFlag().
Referenced by SceneCues.
Definition at line 390 of file shaman_village_cave.c.
scGetCues
const CUE *scGetCues(void)
References SceneCues.
Definition at line 395 of file shaman_village_cave.c.
scShamanVillageCaveTakeGoldenShirt
void scShamanVillageCaveTakeGoldenShirt(void)
Talking to the Golden Shirt the gladiators leave on the first room's floor picks it up, if there is room.
References fdScriptClearFlag(), fdScriptEnd(), fdScriptPickUpItem(), fdScriptStart(), result, scFieldScriptEndLastingPsynergy(), Sint32 and Value3().
Referenced by SceneCues.
Definition at line 402 of file shaman_village_cave.c.
scShamanVillageCavePlaceGladiators
void scShamanVillageCavePlaceGladiators(void)
The three gladiators stand in the first room, where their rematch left them.
References fdActorSetPosAndFacing() and Sint32.
Referenced by scInit().
Definition at line 418 of file shaman_village_cave.c.
scShamanVillageCavePlaceGoldenShirt
void scShamanVillageCavePlaceGoldenShirt(void)
The Golden Shirt lies where the gladiators left it
(FLAG_SHAMAN_VILLAGE_CAVE_GOLDEN_SHIRT_LEFT).
References fdActorSetPosAndFacing(), fdScriptSetFlag(), scFieldActorShowItemIconById() and Sint32.
Referenced by scInit() and scShamanVillageCaveBeatGladiators().
Definition at line 430 of file shaman_village_cave.c.
scShamanVillageCaveMeetGladiators
void scShamanVillageCaveMeetGladiators(void)
Walking halfway up the first room, metatiles (12, 14) and (13, 14), once Isaac has joined, in a game carried over from a The Broken Seal save that won Colosso: Satrage, Azart and Navampa, the gladiators Isaac beat there, come out of the middle passage, call the win a cheat and fight the party.
References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorFaceEachOther(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetDestinationOffset(), fdActorSetPosAndFacing(), fdActorShowEmote(), fdActorWalkBy(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdRequestBattleFromEncounterTable(), fdScriptGetFlag(), fdScriptSetDefeatDestination(), fdScriptSetFlag(), fdScriptStart(), scFieldActorLaunchFromLeader(), scFieldActorWaitForMoveById(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetAfterBattleDestination(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait() and Sint32.
Referenced by SceneCues.
Definition at line 445 of file shaman_village_cave.c.
scShamanVillageCaveFightGladiators
void scShamanVillageCaveFightGladiators(void)
Talking to any of the three gladiators, who wait in the first room after beating the party, starts the rematch.
References fdRequestBattleFromEncounterTable(), fdScriptSetDefeatDestination(), fdScriptStart(), scFieldScriptEndLastingPsynergy() and scFieldScriptSetAfterBattleDestination().
Referenced by SceneCues.
Definition at line 579 of file shaman_village_cave.c.
scShamanVillageCaveLoseToGladiators
void scShamanVillageCaveLoseToGladiators(void)
Back in the cave after losing the rematch, the gladiators crow over the party: "Hey, these guys aren't very strong at all!"
References fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetPosAndFacing(), fdActorShowEmote(), fdScriptOpenMessage(), fdScriptSetDestination(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), fdWorldMapSetReturnLeavingScene(), MainRoutineStateWork, mnMessageCloseFinishedWindows(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scScriptYesNoAsk() and Sint32.
Referenced by scInit().
Definition at line 593 of file shaman_village_cave.c.
scShamanVillageCaveBeatGladiators
void scShamanVillageCaveBeatGladiators(void)
Back in the cave after winning the rematch, the gladiators marvel: "These guys were phenomenal!"
References fdActorFaceActor(), fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorFaceEachOther(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetDestination(), fdActorSetPosAndFacing(), fdActorSetScript(), fdActorShowEmote(), fdScriptClearFlag(), fdScriptEnd(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), scFieldActorWaitForMoveById(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scShamanVillageCavePlaceGoldenShirt(), ShamanVillageCaveGladiatorFollowsOut, ShamanVillageCaveGladiatorLeaves and Sint32.
Referenced by scInit().
Definition at line 654 of file shaman_village_cave.c.
scShamanVillageCaveEnterPassage
void scShamanVillageCaveEnterPassage(void)
Walking north into one of the dark passages in the rock, Felix steps in and the screen wipes to the room it leads to. The first room has three, at the top of its west wall, metatile (2, 6), to the back room's west end; in the middle, metatile (12, 8), to the back room's middle; and in the east, metatile (22, 14), to the pillar room's floor. The fourth, behind the pillar room's ledge at metatile (33, 18), leads back to the back room's east end. Everyone on stage stops as he goes.
References fdActorCenterAndWalk(), fdActorGet(), fdActorSetAnimation(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest() and scFieldScriptWait().
Referenced by SceneCues.
Definition at line 782 of file shaman_village_cave.c.
scInit
Sint32 scInit(void)
Sets the cave up as its flags left it: the scattered weeds gone, the pillar in its gap, the puddle frozen, Eddy where its battle was fought, and the gladiators back from their rematch, won or lost, or waiting for one.
References fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdMapGridCopyMetatileAttributes(), fdScriptGetFlag(), fdScriptSetFlag(), MainRoutineStateWork, scFieldActorSetSpriteColor(), scShamanVillageCaveBeatGladiators(), scShamanVillageCaveLoseToGladiators(), scShamanVillageCavePlaceGladiators(), scShamanVillageCavePlaceGoldenShirt() and Sint32.
Definition at line 810 of file shaman_village_cave.c.
scPrepareMap
Sint32 scPrepareMap(void)
The walls whose weeds Whirlwind has scattered are climbable again.
References fdMapGridCopyMetatileAttributes(), fdScriptGetFlag() and Sint32.
Definition at line 879 of file shaman_village_cave.c.
scShamanVillageCaveJumpForward
void scShamanVillageCaveJumpForward(void)
Walking east or west against the gap in the back room's ledges above the second or third boulder (metatiles (12, 50) and (14, 50), (17, 49) and (19, 49)), the leader jumps across it, while that boulder still stands in the gap below.
References fdTryJumpForward().
Referenced by SceneCues.
Definition at line 899 of file shaman_village_cave.c.
Variables in detail
ShamanVillageCaveGladiatorLeaves
extern Uint32 ShamanVillageCaveGladiatorLeaves[]
Uint32 ShamanVillageCaveGladiatorLeaves[]
The beaten gladiators walk off south through the first room, one after another.
Referenced by scShamanVillageCaveBeatGladiators() and ShamanVillageCaveGladiatorFollowsOut.
Definition at lines 163 and 1082 of file shaman_village_cave.c.
ShamanVillageCaveGladiatorFollowsOut
extern Sint32 ShamanVillageCaveGladiatorFollowsOut[]
Sint32 ShamanVillageCaveGladiatorFollowsOut[]
The gladiator behind the others steps up to their path and follows them out.
References ShamanVillageCaveGladiatorLeaves and Sint32.
Referenced by scShamanVillageCaveBeatGladiators().
Definition at lines 165 and 1095 of file shaman_village_cave.c.
ShamanVillageCaveWeedsScript
extern Sint32 ShamanVillageCaveWeedsScript[]
Sint32 ShamanVillageCaveWeedsScript[]
The weeds' script: they stand half as tall again, and are set up by
scShamanVillageCaveSetUpWeeds.
References scShamanVillageCaveSetUpWeeds() and Sint32.
Referenced by ActorPlacements.
Definition at lines 167 and 953 of file shaman_village_cave.c.
ShamanVillageCavePillarScript
extern Uint32 ShamanVillageCavePillarScript[]
Uint32 ShamanVillageCavePillarScript[]
The pillar's script: it stands still.
Referenced by ActorPlacements.
Definition at lines 168 and 961 of file shaman_village_cave.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 906 of file shaman_village_cave.c.
ActorPlacements
ACTOR_PLACE ActorPlacements[]
References ShamanVillageCavePillarScript, ShamanVillageCaveWeedsScript and Sint32.
Referenced by scGetActorPlacements().
Definition at line 966 of file shaman_village_cave.c.
SceneCues
CUE SceneCues[]
References scShamanVillageCaveEddyFlees(), scShamanVillageCaveEnterPassage(), scShamanVillageCaveFightEddy(), scShamanVillageCaveFightGladiators(), scShamanVillageCaveFinishMovingPillar(), scShamanVillageCaveFreezePuddle(), scShamanVillageCaveJumpForward(), scShamanVillageCaveLiftFirstBoulder(), scShamanVillageCaveLiftFourthBoulder(), scShamanVillageCaveLiftSecondBoulder(), scShamanVillageCaveLiftThirdBoulder(), scShamanVillageCaveMeetGladiators(), scShamanVillageCaveScatterWeeds(), scShamanVillageCaveStartMovingPillar() and scShamanVillageCaveTakeGoldenShirt().
Referenced by scGetCues().
Definition at line 1002 of file shaman_village_cave.c.