src/scene/shaman_village.c
Shaman Village, in the middle of Hesperia, whose people will not talk to outsiders by Moapa's order; only the priest in the sanctum, in the cave on the east side, does. More…
#include "item_ids.h"#include "macros.h"#include "field/actor_script.h"#include "field/script_inline.h"#include "field/field_engine.h"#include "game/game.h"#include "graphics/glyph.h"#include "scene/scene.h"#include "window/window.h"#include "text/msg_ids.h"#include "shared/actor_set_sprite_priority.c"#include "shop/shop.h"#include "../field/field_effect_move.c"#include "shared/field_effect_spawn.c"#include "shared/field_effect_wave_scroll.c"#include "shared/scene_show_entrance_locked.c"#include "shared/emote_pop_tilted.c"#include "shared/smoke_drift.c"#include "shared/field_effect_duration_scripts.c"#include "shared/leader_walk_through_door_script.c"#include "shared/scene_entrances_default.c"
Structures
| Name | Description | |
|---|---|---|
struct | LETTERING_SHEET | The decoded lettering sprite sheet: its palette rows, then eight pictures of 32 tiles each. |
Macros
| Name | Description | |
|---|---|---|
#define | SAND_X 38 | The sand that fills the way up Trial Road until Sheba's Whirlwind: its picture, 9 by 11 metatiles at (38, 19) on the map, which the blank metatiles beside it at (47, 19) wipe away. |
#define | SAND_Z 19 | |
#define | SAND_WIDTH 9 | |
#define | SAND_HEIGHT 11 | |
#define | SAND_BLANK_X 47 | |
#define | ACTOR_OLD_MAN_ON_THE_LEGENDARY_BATTLE (ACTOR_FIRST_PLACED + 7) | The old man by the fortune-teller's tent: "Your battle with Moapa was just like the legendary battle..." |
#define | ACTOR_MOUNTAIN_SIDE_SHAMAN (ACTOR_FIRST_PLACED + 5) | The villager who asks whether the party has looked over the mountain. |
#define | ACTOR_GIRL_BELOW_THE_CAVE (ACTOR_FIRST_PLACED + 6) | The girl who wanders below the mouth of the sanctum's cave, and the sprout north-west of the inn that Growth grows into a vine, both drawn at the leader's sprite priority. |
#define | ACTOR_SPROUT (ACTOR_FIRST_PLACED + 13) | |
#define | ACTOR_GENERAL_STOREKEEPER (ACTOR_FIRST_PLACED + 4) | The general store's keeper, in the west tent. |
#define | ACTOR_PRIEST ACTOR_FIRST_PLACED | The sanctum's priest, behind the counter in the cave. |
#define | ACTOR_AROMA_ROOM_PILLAR (ACTOR_FIRST_PLACED + 6) | The north-east of the village, around the fortune-teller's tent: the pillar Move drops into the gap, the fortune-teller and her fire, and Aroma, the Jupiter Djinni, on the ledge east of the tent. |
#define | ACTOR_FORTUNE_TELLERS_FLAME (ACTOR_FIRST_PLACED + 8) | The small fire before the fortune-teller, which flares as she hops. |
#define | ACTOR_FORTUNE_TELLER (ACTOR_FIRST_PLACED + 9) | |
#define | ACTOR_AROMA (ACTOR_FIRST_PLACED + 10) | |
#define | FLAG_SHAMAN_VILLAGE_DOORS_OPEN 0x94d | Set as the party comes back from beating Moapa: the village's locked doors and tents open. |
#define | FLAG_SHAMAN_VILLAGE_PILLAR_BRIDGE_DROPPED 0x94e | Set once Move has dropped the pillar by the fortune-teller's tent into the gap. |
#define | FLAG_SHAMAN_VILLAGE_TRIAL_RULES_HEARD 0x9e0 | Set once Moapa has told the party the rules of the trial: the Shaman's Rod and eight pieces of equipment. |
#define | FLAG_SHAMAN_VILLAGE_MOAPA_KNOWS_NAMES 0x9ed | Set once Moapa has asked the party's names after the battle; he remembers them from then on. |
#define | FLAG_SHAMAN_VILLAGE_FORTUNE_TOLD FLAG_AREA_TEMP(0x01) | Set once the fortune-teller has read the party's fortune, for this visit. |
#define | FLAG_SHAMAN_VILLAGE_ROPE_TIED FLAG_SCENE_TEMP(0x04) | Set once Lash has tied the rope across the river by Moapa's house. |
#define | FLAG_SHAMAN_VILLAGE_VINE_GROWN FLAG_SCENE_TEMP(0x05) | Set once Growth has grown the vine north-west of the inn. |
#define | FLAG_SHAMAN_VILLAGE_MOAPAS_DOOR_OPEN FLAG_SCENE_TEMP(0x02) | Set once the party has shown the Shaman's Rod (scShamanVillageShowShamansRod): Moapa's door stays open. |
#define | FLAG_SHAMAN_VILLAGE_EXPLANATION_AGAIN FLAG_SCENE_TEMP(0x00) | Set once the party has asked to hear Moapa's explanation again: he gives only its rules. |
#define | FLAG_SHAMAN_VILLAGE_CHALLENGE_ACCEPTED FLAG_SCENE_TEMP(0x01) | Set once Moapa has accepted the party's challenge, until Felix steps back from the trial: walking back to Moapa then has him offer to let the party give up. |
#define | FLAG_SHAMAN_VILLAGE_FORTUNE_TELLER_CALLED_OUT FLAG_SCENE_TEMP(0x03) | Set once the fortune-teller has called out to Felix, for this visit. |
#define | LETTERING_OBJ_MODE | The lettering's sprites: affine, drawn at twice their size so turning never clips them, and blended; in LETTERING_PALETTE at priority 1, just behind the windows. |
#define | LETTERING_PALETTE 15 | |
#define | LETTERING_ATTRIBUTES (OBJ_PALETTE(LETTERING_PALETTE) | OBJ_PRIORITY(1)) | |
#define | LETTERING_DEPTH (OAM_DEPTH_WINDOW - 4) | |
#define | LETTERING_SUBPIXELS 256 | The lettering's x and speed are kept in 256ths of a pixel. |
#define | LETTERING_PIECE_X (i, n) ((i) * 32 - ((n) - 1) * 16) | The lettering's pieces are 32 pixels wide: piece i of a row of n lies this far from the row's centre. |
#define | LETTERING_TITLE_HOLD 15 | The word of ShamanVillageLetteringTitleScript that holds the title still in the middle: its second LETTERING_WAIT's ticks. |
#define | EFFECT_SET_MODE syImportActorSelectAnimation | |
#define | EFFECT_SET_SCRIPT syImportActorStartScript | |
#define | WAVE_SCROLL scShamanVillageWaveWhirlwindLines | The whirlwind's swirl: its lines waver from side to side, as a jittered sine wave. |
#define | WAVE_SCROLL_LINES ShamanVillageWaveLines | |
#define | TWISTER_ROCK_X 168 | The twister rock's x, which the whirlwind's sand swirls about. |
#define | DEFINE_SHAMAN_VILLAGE_TAKE_PATH (name, | Felix steps onto one of the two paths up Trial Road: the Knights go to Moapa, the one beside Felix's path first, "If you have chosen, then we shall take the other path.", Moapa takes the other path, "On the count of three, the challenge begins!", the countdown, and the race starts. leftRunner and rightRunner are the actors on the left and right paths; Moapa first faces the first Knight, who faces him. |
#define | PILLAR_BRIDGE_METATILE_X 32 | The gap west of the pillar by the fortune-teller's tent, metatile (32, 11), which the pillar fills, and the ground beside it whose metatile it then copies. |
#define | PILLAR_BRIDGE_METATILE_Z 11 | |
#define | PILLAR_BRIDGE_ATTRIBUTES_METATILE_X 30 | |
#define | TRIAL_ROAD_CHEST_ITEMS 8 | The pieces of equipment the trial's chests take from a party last to every door: "you will lose eight items to the chests!" |
#define | LETTERING_PALETTE_ROWS 6 | |
#define | DEFINE_LEADER_PRIORITY_EVENT (name, first, second) | Defines an event in which two actors take the leader's sprite priority each tick, so they pass behind what he passes behind. |
#define | LETTERING_GO_PALETTE_OFFSET | GO has a palette row of its own in the European editions' sprite sheet. |
#define | LETTERING_TITLE_SCALE FRENCH_OR(384, 256) | The title's and GO's scales, which fit each language's lettering. |
#define | LETTERING_GO_START_SCALE BY_LANGUAGE(512, 512, 512, 384, 512, 384) | |
#define | LETTERING_GO_SMALL_SCALE FRENCH_OR(384, 256) | |
#define | LETTERING_GO_LARGE_SCALE FRENCH_OR(512, 384) |
Enumerations
| Name | Description | |
|---|---|---|
enum | SHAMAN_VILLAGE_TRIAL_ACTOR_ID { ACTOR_FIRST_TORCH, ACTOR_LAST_TORCH, ACTOR_TWISTER_ROCK, ACT … } | The people and things at the foot of Trial Road, numbering the rows of ShamanVillageTrialGroundsPlacements; Moapa, his Knights and Kraden keep the same rows in the village's table (ShamanVillageVillagePlacements). |
enum | SHAMAN_VILLAGE_HOUSES_ACTOR_ID { ACTOR_MOAPA_AT_HOME, ACTOR_INN_COUNTER, ACTOR_INNKEEPER } | Moapa at home, the fourth row of ShamanVillageHousesPlacements (the village's houses and inn), with the inn's counter and its innkeeper after. |
enum | anonymous enum { ACTOR_WOMAN_IN_MOAPAS_HOUSE, ACTOR_MOAPAS_SON, ACTOR_GIRL_IN … } | The rest of the houses: in Moapa's, his son, and the woman and the girl with him, who talk of the party's names; and the two who plan a picnic and the chef who cooks for them, there once Moapa is beaten. |
enum | anonymous enum { ACTOR_CHILD_ON_THE_CHALLENGE, ACTOR_WOMAN_ON_QUIET_VILLAGERS … } | The villagers about the village's square, silent until Moapa is beaten, and after it each with a word on the trial: "So, you rose to the challenge of Trial Road?", "The people of Shaman Village are normally quiet...", "...that is ample proof of your skill as warriors", "...heroes can be foreigners, too", "...you have fulfilled Hoabna's promise." |
enum | anonymous enum { ACTOR_OLD_MAN_ON_THE_ATTEKA_WAR, ACTOR_OLD_WOMAN_ON_THE_CONT … } | The family in the east tent, who tell of the old wars with Atteka and Contigo, and in the west tent the general storekeeper's husband, whose weapons Moapa fought with. |
enum | anonymous enum { ACTOR_VILLAGE_ROPE_POST, ACTOR_CLIFF_ROPE_POST } | The posts of the village's rope across the river by Moapa's house, which Lash ties: one west of the river, at metatile (11, 13), the other east of it, at metatile (17, 13). |
enum | anonymous enum { ACTOR_SANCTUM_SHAMAN_A, ACTOR_SANCTUM_SHAMAN_B } | The sanctum's two villagers after the priest, there once Moapa is beaten. |
enum | SHAMAN_VILLAGE_METATILE { BEFORE_MOAPA_METATILE, LEFT_PATH_METATILE, RIGHT_PATH_METATI … } | The metatiles that run a script; the village's door metatiles hold instead the numbers of the exits they lead by. |
enum | LETTERING_COMMAND { LETTERING_PLACE, LETTERING_ACCELERATE, LETTERING_SCALE, LETT … } | The large lettering of the race's countdown before Trial Road: 3, 2, 1 and GO, from Colosso's pictures (games/tla/src/graphics/lettering), moved by a script of 16-bit words, a command and its values: |
enum | LETTERING_PICTURE { LETTERING_PICTURE_LEND_A_HAND, LETTERING_PICTURE_MATCH_TITLE … } | The lettering pictures, in the sprite sheet's order (scShamanVillageLoadLettering); the village shows only the countdown and GO. |
enum | LETTERING_SHAPE { LETTERING_SHAPE_TITLE, LETTERING_SHAPE_DIGIT, LETTERING_SHAP … } | How scShamanVillageUpdateLettering lays a picture out (ShamanVillageLetteringMode); ShamanVillageLetteringTileOffset picks the second half of a picture. |
enum | anonymous enum { SHOP_SHAMAN_VILLAGE } | The general store, as mnShopRun numbers the shops. |
enum | anonymous enum { INN_ID_SHAMAN_VILLAGE } | The Shaman Village's inn, as mnInnCheckIn numbers the inns. |
Functions
| Name | Description | |
|---|---|---|
BSS_DATA | ALIGNED (16) | The whirlwind's swirl: how far each line of its picture is shifted. |
void | scShamanVillageWaveWhirlwindLines (void) | The whirlwind's swirl: a VBlank event that wavers its lines. |
void | scShamanVillageCastWhirlwindOnSand (void) | Sheba casts Whirlwind on the twister rock and blows the sand away. |
void | scShamanVillageSetUpTrialGrounds (void) | The foot of Trial Road: the sand gone, or Moapa and his Knights waiting by the twister rock. |
void | scShamanVillageSetUpNorthEnd (void) | The north-east of the village and the gate of Trial Road: the torches lit, the pillar in the gap once Move has dropped it, and the fortune-teller and her tent's entrance there only once Moapa is beaten. |
void | scShamanVillageSetUpVillage (void) | The village: Moapa and his Knights at his door once met, until the Shaman's Rod is shown, and the Knights alone there once he is beaten; his door left open; the tents' entrances open once he is beaten; the rope, the vine, and smoke from the two chimneys. |
void | scShamanVillageSetUpHouses (void) | The houses: Moapa and his household as the story leaves them. |
void | scShamanVillageSetUpSanctum (void) | The sanctum: its two villagers there only once Moapa is beaten. |
void | scShamanVillageTalkToEastKnight (void) | Talking to the east Knight at the foot of Trial Road: "Do you need to hear Moapa's explanation again?" Yes, and Felix steps up to Moapa, who gives it again; no, and the Knight tells the party to forget the Hover Jade. |
void | scShamanVillageTellOutsidersToLeave (void) | Talking to Moapa at his door: "What's wrong? |
void | scShamanVillageWarnOfMoapasPower (void) | Talking to the east Knight at Moapa's door before Moapa is beaten: "If you anger Moapa, you'll be in for a little taste of his awesome power", and the menu opens. |
void | scShamanVillageSendToMoapa (void) | Talking to the west Knight at Moapa's door before Moapa is beaten: "If there's something you want to say, say it to Moapa, not to us", and the menu opens. |
void | scShamanVillageTalkToPriest (void) | Felix talks to the priest across the counter of the sanctum in the cave, and the sanctum serves the party, as it does before Moapa is beaten too. |
void | scShamanVillageAskAboutOtherSide (void) | Talking to the villager by the mountain: has the party looked over its other side, for the spring only Hoabna could find? |
void | scShamanVillageTalkToMoapa (void) | Talking to Moapa at home after the battle: he asks the party's names once, "Felix, Jenna, Sheba, and Piers. |
void | scShamanVillageTalkToGeneralStorekeeper (void) | Felix talks to the storekeeper across the counter in the general store's tent, and the shop opens. |
void | scShamanVillageTellFortune (void) | Talking to the fortune-teller at the fire before her tent in the north-east: "So, you'd like to hear your fortune, would you?" Yes, and she chants "Hoolabaloo! |
void | scShamanVillageOfferToGiveUp (void) | Felix walks back to Moapa at the foot of Trial Road with the challenge accepted: "Have you decided to give up this foolishness once and for all?" Yes, and Felix walks away and the challenge is off; no, and he is told to choose a road. |
void | scShamanVillageChallengeMoapa (void) | Felix walks up to Moapa at the foot of Trial Road once the rules are heard: "Do you want to challenge me on Trial Road?" Yes, and Moapa offers his explanation again; declined, he checks the party has the Shaman's Rod and the equipment the trial needs. |
void | scShamanVillageTakeLeftPath (void) | The left path, metatiles (10, 13) to (12, 13). |
void | scShamanVillageTakeRightPath (void) | The right path, metatiles (15, 13) to (17, 13). |
void | scShamanVillageDropPillar (void) | Felix moves the stone pillar on the ledge west of the fortune-teller's tent into the gap beside it (metatile (32, 11)): it drops in with a thump and fills the gap, so the party can walk across. |
void | scShamanVillageMeetMoapa (void) | Felix walks up to (or presses A at) Moapa's door, under the horned skull in the north-west of the village, before meeting him: the door opens, Felix hops back, and Moapa and his two Knights come out. |
void | scShamanVillageTalkToInnkeeper (void) | Felix talks to the innkeeper across the inn's counter. |
void | scShamanVillageBlowAwaySand (void) | Sheba's Whirlwind at the foot of Trial Road: the purple twister rock flickers blue and sheds sparks, a whirlwind swirls up over it in a rush of wind that shakes the ground, sand flies about it, and the sand is gone from the ground. |
void | scShamanVillageHopFortuneTeller (void) | The fortune-teller hops with a splash, and the fire before her flares. |
void | scShamanVillageStartLettering (Sint32 shape, Sint32 secondHalf) | Starts the lettering event on the picture last loaded, laid out in shape (LETTERING_SHAPE) and moved by that shape's script; secondHalf picks the second half of the picture: 2 rather than 3, or LOSE rather than WIN. |
void | scShamanVillageLoadLettering (Sint32 picture) | Loads lettering picture into the lettering's VRAM block (taken once) and its palette into sprite palette LETTERING_PALETTE. |
void | scShamanVillageEnterDoor (Sint32 srcX, Sint32 srcY, Sint32 destX, Sint32 destY, Sint32 width, Sint32 height) | Felix walks into a house's door: it opens (its open picture copied, width by height metatiles from srcX, srcY to destX, destY), with a thump for a door two metatiles wide and SE_DOOR_OPEN for one; through a door one metatile wide Felix first steps to the middle of its metatile and faces north. |
Sint32 | scShamanVillageIsFacingCounter (void) | Whether Felix faces the counter, north: the innkeeper, priest and storekeeper serve only across it. |
void | scShamanVillageExplainTrialRules (void) | Felix first walks up to Moapa at the foot of Trial Road, and Moapa explains it, the camera looking up the road: the legend of Yegelos and Hoabna, who raced to the summit and fought there, and the trial's rules (only the rules when asked again). |
void | scShamanVillageStepBackFromTrial (void) | Felix walks back from Moapa, and the challenge is off. |
void | scShamanVillageCheckTrialEntry (void) | Moapa takes the challenge only from a party with the Shaman's Rod and TRIAL_ROAD_CHEST_ITEMS weapons, armor, shields or helms among them. |
void | scShamanVillageCountDownToStart (void) | The count of 3, 2, 1 and GO before the race up Trial Road, after which the race music starts. |
void | scShamanVillageMeetAroma (void) | Felix talks to Aroma, the Jupiter Djinni on the ledge east of the fortune-teller's tent, and it joins the party: "Felix found the Jupiter Djinni Aroma!" |
const SCENE_ENTRANCE * | scGetEntrances (void) | Where the party can enter: the cave under the spring has its own entrances. |
const SCENE_REGION * | scGetExitRegions (void) | The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room. |
const Uint32 * | scGetExits (void) | The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN. |
const ACTOR_PLACE * | scGetActorPlacements (void) | The scene's actor placements: a room of names for its entrance, else the debug room's. |
void | scShamanVillageDriftSandLayer (void) | Drifts the sand layer, the third, while Whirlwind blows: its offset moves two pixels a tick, back in x and on in z, and starts again once z passes 1040. |
void | scShamanVillageFlickerRock (ACTOR *actor) | The twister rock while Whirlwind blows: it flickers blue. |
void | scShamanVillageSpiralSpark (ACTOR *actor) | A spark of the gathering Whirlwind: it circles the centre it keeps in bounce and sceneWord (x, z), twice as wide as it is deep, its radius growing as it rises by gravity a tick, a lap every 32 ticks counted in speedLimit; it blinks blue every other two ticks. |
void | scShamanVillageSwirlSandGrain (ACTOR *actor) | A grain of the whirlwind's sand, swung about the twister rock: left of it the grain speeds up rightward and grows, right of it leftward and shrinks. |
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 | scShamanVillageStopAtClosedEntrance (void) | Before Moapa is beaten, Felix tries the entrance of one of the village's tents, the general store in the west (metatile (13, 24)), the family's in the east (metatile (17, 28)) or the fortune-teller's in the north-east: "The entrance is closed. |
void | scShamanVillageReadTrialRoadSign (void) | Felix reads the sign at the gate of Trial Road, between its two torches: "Trial Road. |
void | scShamanVillageTalkToWestKnight (void) | Talking to the west Knight at the foot of Trial Road: "Do you need to hear Moapa's explanation again?" Yes, and Felix steps up to Moapa, who gives it again; no, and the Knight says his people are not free while the party stays. |
ACTOR * | scShamanVillageCreateRodIcon (void) | The Shaman's Rod's icon, held up over Felix's head. |
void | scShamanVillageShowShamansRod (void) | Felix shows Moapa the Shaman's Rod at his door, holding it up: Moapa knows it but will not give up the Hover Jade to the party, and at a Knight's word sets them a test at the foot of Trial Road. |
void | scShamanVillageShowItemToMoapa (void) | Felix shows Moapa any other item: "If you're here offering charity, I won't have it... |
void | scShamanVillageShowItemToWestKnight (void) | An item shown to the west Knight: "Did you want to sell it?" |
void | scShamanVillageShowItemToEastKnight (void) | An item shown to the east Knight: "Show it to Moapa if you must" |
void | scShamanVillageFortuneTellerCallsOut (void) | Felix walks up to the fire before the fortune-teller's tent in the north-east (metatile (37, 19)) once Moapa is beaten: she calls out "Hoolabaloo!" and hops, once a visit. |
void | scShamanVillageGrowVine (void) | Felix casts Growth on the sprout north-west of the inn (metatile (2, 18)), and it grows into a vine he can climb, up to the Spirit Gloves' chest. |
void | scShamanVillageUpdateLettering (void) | The lettering's event: run its script, move, scale and fade it, and draw it as double-size affine sprites blended over the screen, in the shape of ShamanVillageLetteringMode. |
void | scShamanVillageShebaClearsSand (void) | Moapa's first test: Sheba steps up and casts Whirlwind on the purple rock, and the sand is gone. |
void | scShamanVillageEnterInn (void) | Felix walks north into the inn's door, beside the INN sign in the south-west of the village (metatile (8, 26)), and goes in to the innkeeper's counter. |
void | scShamanVillageEnterSouthwestHouse (void) | Felix walks north into the door of the house in the far south-west of the village (metatile (4, 28)) and goes in. |
void | scShamanVillageEnterLowerEastHouse (void) | Once Moapa is beaten, Felix walks north into the door of the lower of the two houses on the village's east side (metatile (27, 25)) and goes in to a room with beds. |
void | scShamanVillageEnterUpperEastHouse (void) | Once Moapa is beaten, Felix walks north into the door of the upper of the two houses on the village's east side (metatile (28, 23)) and goes in; its stairs lead up and out to the north-east, on the way to Aroma. |
void | scShamanVillageEnterRiversideHouse (void) | Felix walks north into the door just east of Moapa's, by the river (metatile (10, 12)), and goes in to a room with beds. |
void | scShamanVillageEnterMoapasHouse (void) | Felix walks north into Moapa's door, under the horned skull, once he has met Moapa: left open since the party showed the Shaman's Rod, it is walked through at once; until then it opens as the other doors do. |
void | scShamanVillageRestartTrial (void) | Coming back down to the foot of Trial Road during the trial, Moapa offers it again. |
void | scShamanVillageSuggestQuitting (void) | Coming back down to the foot of Trial Road by one way from the road, Moapa says it would be wise of the party to quit, and Felix steps back. |
Sint32 | scInit (void) | Sets up the place being entered. |
Sint32 | scPrepareMap (void) | Once Briggs is caught the pool has dried up: its colours take the dry ground's. |
void | scShamanVillageSpawnSmoke (Sint32 x, Sint32 y, Sint32 z) | Puffs a see-through white cloud of chimney smoke at x, y, z, half its size, as scSmokeSpawn does but drawn under the actors around it; scSmokeDrift moves it for SMOKE_TICKS. |
void | scShamanVillageBlowChimneySmoke (void) | Every 64th tick, a puff of smoke from each of the village's two chimneys. |
DEFINE_LEADER_PRIORITY_EVENT( | scShamanVillageLayerVillageActors , ACTOR_SPROUT, ACTOR_GIRL_BELOW_THE_CAVE) | An event: the sprout and the girl below the cave take the leader's sprite priority each tick, so they pass behind what he passes behind. |
DEFINE_LEADER_PRIORITY_EVENT( | scShamanVillageLayerSanctumActors , ACTOR_SANCTUM_SHAMAN_A, ACTOR_SANCTUM_SHAMAN_B) | An event: the sanctum's two shamans take the leader's sprite priority each tick. |
Variables
| Name | Description | |
|---|---|---|
Sint16 | ShamanVillageWaveLines [DISPLAY_HEIGHT] | The whirlwind's swirl: how far each line of its picture is shifted. |
Sint16 | ShamanVillageLetteringScaleTicks | |
Sint16 | ShamanVillageLetteringTileOffset | |
Sint16 | ShamanVillageLetteringScaleFrom | |
Sint16 | ShamanVillageLetteringSpeedTicks | |
Sint32 | ShamanVillageLetteringX | |
Sint16 | ShamanVillageLetteringScale | |
Sint16 | ShamanVillageLetteringSpeedTick | |
Sint16 | ShamanVillageLetteringBlendTick | |
Sint16 | ShamanVillageLetteringMode | |
Sint16 | ShamanVillageLetteringBlend | |
Sint16 | ShamanVillageLetteringBlendFrom | |
Sint16 | ShamanVillageLetteringWait | |
Sint16 | ShamanVillageLetteringScaleTick | |
extern Uint32 | ShamanVillageKradenStandsByRodScript [] | |
extern Uint32 | ShamanVillagePiersStandsByRodScript [] | |
extern Uint32 | ShamanVillageShebaStandsByRodScript [] | |
extern Uint32 | ShamanVillageMoapaLeavesHouseScript [] | |
extern Uint32 | ShamanVillageWestKnightLeavesHouseScript [] | |
extern Uint32 | ShamanVillageReturnToLeaderAtHouseScript [] | |
extern Sint16 | ShamanVillageLetteringVramEntry [] | The VRAM cache entry the lettering's picture takes; -1 for none. |
extern Sint16 | ShamanVillageLetteringTitleScript [] | Unused: the match title, placed and faded in, set moving and stopped, then sent on after a second. |
extern Sint16 | ShamanVillageLetteringDigitScript [] | A countdown digit: it shrinks from twice its size as it fades in, holds half a second and fades out. |
extern Sint16 | ShamanVillageLetteringGoScript [] | GO shrinks in as it fades in, then pulses between its two sizes, fading out as it goes on. |
extern Sint16 | ShamanVillageLetteringLoseScript [] | Unused: the scripts of the WIN or LOSE and the match title shapes, which the village never starts. |
extern Sint16 | ShamanVillageLetteringWinScript [] | Unused: WIN grows in as it fades in, holds a second, then bounces between sizes. |
extern Uint8 | ShamanVillageLetteringPaletteOffsets [] | The byte offset of each lettering picture's palette (LETTERING_PICTURE) among the lettering palettes. |
extern Uint32 | ShamanVillageKradenWatchesShebaScript [] | |
extern Uint32 | ShamanVillageLeaderWatchesShebaScript [] | |
extern Uint32 | ShamanVillageJennaWatchesShebaScript [] | |
extern Uint32 | ShamanVillagePiersWatchesShebaScript [] | |
extern Uint32 | ShamanVillageHeadForTrialRoadScript [] | |
extern Uint32 | ShamanVillageReturnToLeaderAtSandScript [] | |
extern const Sint32 * | FieldEffectDurationScripts [] | The field effects' three scripts by how long an effect lasts: short, medium and long. |
extern Sint32 | LeaderWalkThroughDoorScript [] | The leader's actor script as he walks north through a doorway, growing smaller as he goes: in Madra's catacombs, the Lemurian ship's passage, and the doors of the Islets, Kibombo, Prox and the Shaman Village. |
extern Sint32 | ShamanVillageHopFortuneTellerScript [] | |
extern SCENE_ENTRANCE | SceneEntrances [] | Besides the party's return to the pier after the ship is stolen, four unused spots about the mast: below the huge block, on the dock by its crate, on the deck, and at the top of the sail's east pole. |
extern SCENE_ENTRANCE | ShamanVillageTentsEntrances [] | |
extern SCENE_ENTRANCE | ShamanVillageSanctumEntrances [] | |
extern ACTOR_PLACE | ShamanVillagePlacements [] | |
extern ACTOR_PLACE | ShamanVillageTrialGroundsPlacements [] | |
extern ACTOR_PLACE | ShamanVillageNorthEndPlacements [] | |
extern ACTOR_PLACE | ShamanVillageVillagePlacements [] | |
extern ACTOR_PLACE | ShamanVillageHousesPlacements [] | |
extern ACTOR_PLACE | ShamanVillageTentsPlacements [] | |
extern ACTOR_PLACE | ShamanVillageSanctumPlacements [] | |
extern Uint32 | FieldEffectMediumScript [] | The flash about the Tomegathericon: held 45 ticks, then put away and freed. |
extern CUE | ShamanVillageCues [] | |
extern CUE | ShamanVillageTrialGroundsCues [] | |
extern CUE | ShamanVillageNorthEndCues [] | |
extern CUE | ShamanVillageVillageCues [] | |
extern CUE | ShamanVillageHousesCues [] | |
extern CUE | ShamanVillageTentsCues [] | |
extern CUE | ShamanVillageSanctumCues [] | |
extern Uint32 | ShamanVillageWalkToLeftStartScript [] | |
extern Uint32 | ShamanVillageWalkToRightStartScript [] | |
extern Uint32 | ShamanVillageJennaStandsByRodScript [] | |
extern Uint32 | ShamanVillageEastKnightLeavesHouseScript [] |
Description
Shaman Village, in the middle of Hesperia, whose people will not talk to
outsiders by Moapa's order; only the priest in the sanctum, in the cave on
the east side, does. At Moapa's door in the north-west he and his Knights
come out and send the party away, until it shows him the Shaman's Rod; then
he sets it his test at the foot of Trial Road, north of the village. There
Sheba's Whirlwind on the purple twister rock blows the sand away, Moapa tells
the legend of Yegelos and Hoabna and the trial's rules, and after a count of
3, 2, 1 and GO the party and Moapa race up the road by its left and right
paths. Once he is beaten the village's other doors and its tents open: the
general store, a family's tent, and the fortune-teller's in the north-east,
where Move drops a pillar into a gap on the way to Aroma, the Jupiter Djinni,
and the rope Lash ties across the river by Moapa's house leads on. Growth's
vine north-west of the inn climbs to the Spirit Gloves' chest.
Macros in detail
SAND_X
#define SAND_X 38
The sand that fills the way up Trial Road until Sheba's Whirlwind: its picture, 9 by 11 metatiles at (38, 19) on the map, which the blank metatiles beside it at (47, 19) wipe away.
Referenced by scShamanVillageBlowAwaySand() and scShamanVillageSetUpTrialGrounds().
Definition at line 50 of file shaman_village.c.
SAND_Z
#define SAND_Z 19
Referenced by scShamanVillageBlowAwaySand() and scShamanVillageSetUpTrialGrounds().
Definition at line 51 of file shaman_village.c.
SAND_WIDTH
#define SAND_WIDTH 9
Referenced by scShamanVillageBlowAwaySand() and scShamanVillageSetUpTrialGrounds().
Definition at line 52 of file shaman_village.c.
SAND_HEIGHT
#define SAND_HEIGHT 11
Referenced by scShamanVillageBlowAwaySand() and scShamanVillageSetUpTrialGrounds().
Definition at line 53 of file shaman_village.c.
SAND_BLANK_X
#define SAND_BLANK_X 47
Referenced by scShamanVillageBlowAwaySand() and scShamanVillageSetUpTrialGrounds().
Definition at line 54 of file shaman_village.c.
ACTOR_OLD_MAN_ON_THE_LEGENDARY_BATTLE
#define ACTOR_OLD_MAN_ON_THE_LEGENDARY_BATTLE (ACTOR_FIRST_PLACED + 7)
The old man by the fortune-teller's tent: "Your battle with Moapa was just like the legendary battle..."
Definition at line 100 of file shaman_village.c.
ACTOR_MOUNTAIN_SIDE_SHAMAN
#define ACTOR_MOUNTAIN_SIDE_SHAMAN (ACTOR_FIRST_PLACED + 5)
The villager who asks whether the party has looked over the mountain.
Referenced by scShamanVillageAskAboutOtherSide().
Definition at line 115 of file shaman_village.c.
ACTOR_GIRL_BELOW_THE_CAVE
#define ACTOR_GIRL_BELOW_THE_CAVE (ACTOR_FIRST_PLACED + 6)
The girl who wanders below the mouth of the sanctum's cave, and the sprout north-west of the inn that Growth grows into a vine, both drawn at the leader's sprite priority.
Definition at line 119 of file shaman_village.c.
ACTOR_SPROUT
#define ACTOR_SPROUT (ACTOR_FIRST_PLACED + 13)
Referenced by KibomboMountainsNorthCues, SceneCues, scInit() and SettlementsHesperiaSettlementCues.
Definition at line 120 of file shaman_village.c.
ACTOR_GENERAL_STOREKEEPER
#define ACTOR_GENERAL_STOREKEEPER (ACTOR_FIRST_PLACED + 4)
The general store's keeper, in the west tent.
Referenced by ApojiiIslandsShopsCues, MikasallaRoomsHousesCues, SceneCues and scShamanVillageTalkToGeneralStorekeeper().
Definition at line 139 of file shaman_village.c.
ACTOR_PRIEST
#define ACTOR_PRIEST ACTOR_FIRST_PLACED
The sanctum's priest, behind the counter in the cave.
Referenced by AlhafraRoomsCues, AlhafraRoomsCuesOnceBriggsIsCaught, AlhafraRoomsCuesOnceTheMastIsCleared, GarohRoomsSanctumCues, scGarohRoomsTalkToPriest(), scInit(), scIzumoRoomsTalkToPriest() and scShamanVillageTalkToPriest().
Definition at line 141 of file shaman_village.c.
ACTOR_AROMA_ROOM_PILLAR
#define ACTOR_AROMA_ROOM_PILLAR (ACTOR_FIRST_PLACED + 6)
The north-east of the village, around the fortune-teller's tent: the pillar Move drops into the gap, the fortune-teller and her fire, and Aroma, the Jupiter Djinni, on the ledge east of the tent.
Referenced by scShamanVillageDropPillar() and scShamanVillageSetUpNorthEnd().
Definition at line 145 of file shaman_village.c.
ACTOR_FORTUNE_TELLERS_FLAME
#define ACTOR_FORTUNE_TELLERS_FLAME (ACTOR_FIRST_PLACED + 8)
The small fire before the fortune-teller, which flares as she hops.
Referenced by scShamanVillageHopFortuneTeller() and scShamanVillageSetUpNorthEnd().
Definition at line 147 of file shaman_village.c.
ACTOR_FORTUNE_TELLER
#define ACTOR_FORTUNE_TELLER (ACTOR_FIRST_PLACED + 9)
Referenced by NaribweRoomsCues, NaribweRoomsCuesOnReturn, SceneCues, scInit(), scNaribweRoomsMindReadFortuneTeller(), scNaribweRoomsMindReadFortuneTellerOnReturn(), scNaribweRoomsReadArmor(), scNaribweRoomsReadFortune(), scNaribweRoomsReadOtherItem(), scNaribweRoomsReadProng(), scNaribweRoomsReadShiningItem(), scNaribweRoomsReadWeapon(), scNaribweRoomsTalkToFortuneTeller(), scShamanVillageFortuneTellerCallsOut(), scShamanVillageHopFortuneTeller(), scShamanVillageSetUpNorthEnd() and scShamanVillageTellFortune().
Definition at line 148 of file shaman_village.c.
ACTOR_AROMA
#define ACTOR_AROMA (ACTOR_FIRST_PLACED + 10)
Referenced by scShamanVillageMeetAroma().
Definition at line 149 of file shaman_village.c.
FLAG_SHAMAN_VILLAGE_DOORS_OPEN
#define FLAG_SHAMAN_VILLAGE_DOORS_OPEN 0x94d
Set as the party comes back from beating Moapa: the village's locked doors and tents open.
Referenced by scShamanVillageSetUpHouses(), scShamanVillageSetUpNorthEnd() and scShamanVillageSetUpVillage().
Definition at line 153 of file shaman_village.c.
FLAG_SHAMAN_VILLAGE_PILLAR_BRIDGE_DROPPED
#define FLAG_SHAMAN_VILLAGE_PILLAR_BRIDGE_DROPPED 0x94e
Set once Move has dropped the pillar by the fortune-teller's tent into the gap.
Referenced by scShamanVillageDropPillar() and scShamanVillageSetUpNorthEnd().
Definition at line 156 of file shaman_village.c.
FLAG_SHAMAN_VILLAGE_TRIAL_RULES_HEARD
#define FLAG_SHAMAN_VILLAGE_TRIAL_RULES_HEARD 0x9e0
Set once Moapa has told the party the rules of the trial: the Shaman's Rod and eight pieces of equipment.
Referenced by scShamanVillageCheckTrialEntry() and scShamanVillageExplainTrialRules().
Definition at line 159 of file shaman_village.c.
FLAG_SHAMAN_VILLAGE_MOAPA_KNOWS_NAMES
#define FLAG_SHAMAN_VILLAGE_MOAPA_KNOWS_NAMES 0x9ed
Set once Moapa has asked the party's names after the battle; he remembers them from then on.
Referenced by scShamanVillageTalkToMoapa().
Definition at line 162 of file shaman_village.c.
FLAG_SHAMAN_VILLAGE_FORTUNE_TOLD
#define FLAG_SHAMAN_VILLAGE_FORTUNE_TOLD FLAG_AREA_TEMP(0x01)
Set once the fortune-teller has read the party's fortune, for this visit.
Referenced by scShamanVillageTellFortune().
Definition at line 164 of file shaman_village.c.
FLAG_SHAMAN_VILLAGE_ROPE_TIED
#define FLAG_SHAMAN_VILLAGE_ROPE_TIED FLAG_SCENE_TEMP(0x04)
Set once Lash has tied the rope across the river by Moapa's house.
Referenced by scShamanVillageSetUpVillage().
Definition at line 166 of file shaman_village.c.
FLAG_SHAMAN_VILLAGE_VINE_GROWN
#define FLAG_SHAMAN_VILLAGE_VINE_GROWN FLAG_SCENE_TEMP(0x05)
Set once Growth has grown the vine north-west of the inn.
Referenced by scShamanVillageGrowVine() and scShamanVillageSetUpVillage().
Definition at line 168 of file shaman_village.c.
FLAG_SHAMAN_VILLAGE_MOAPAS_DOOR_OPEN
#define FLAG_SHAMAN_VILLAGE_MOAPAS_DOOR_OPEN FLAG_SCENE_TEMP(0x02)
Set once the party has shown the Shaman's Rod
(scShamanVillageShowShamansRod): Moapa's door stays open.
Referenced by scShamanVillageEnterMoapasHouse(), scShamanVillageSetUpVillage() and scShamanVillageShowShamansRod().
Definition at line 171 of file shaman_village.c.
FLAG_SHAMAN_VILLAGE_EXPLANATION_AGAIN
#define FLAG_SHAMAN_VILLAGE_EXPLANATION_AGAIN FLAG_SCENE_TEMP(0x00)
Set once the party has asked to hear Moapa's explanation again: he gives only its rules.
Referenced by scShamanVillageChallengeMoapa(), scShamanVillageExplainTrialRules(), scShamanVillageRestartTrial(), scShamanVillageTalkToEastKnight() and scShamanVillageTalkToWestKnight().
Definition at line 174 of file shaman_village.c.
FLAG_SHAMAN_VILLAGE_CHALLENGE_ACCEPTED
#define FLAG_SHAMAN_VILLAGE_CHALLENGE_ACCEPTED FLAG_SCENE_TEMP(0x01)
Set once Moapa has accepted the party's challenge, until Felix steps back from the trial: walking back to Moapa then has him offer to let the party give up.
Referenced by scShamanVillageCheckTrialEntry(), scShamanVillageOfferToGiveUp() and scShamanVillageStepBackFromTrial().
Definition at line 178 of file shaman_village.c.
FLAG_SHAMAN_VILLAGE_FORTUNE_TELLER_CALLED_OUT
#define FLAG_SHAMAN_VILLAGE_FORTUNE_TELLER_CALLED_OUT FLAG_SCENE_TEMP(0x03)
Set once the fortune-teller has called out to Felix, for this visit.
Referenced by scShamanVillageFortuneTellerCallsOut().
Definition at line 180 of file shaman_village.c.
LETTERING_OBJ_MODE
#define LETTERING_OBJ_MODE
The lettering's sprites: affine, drawn at twice their size so turning never
clips them, and blended; in LETTERING_PALETTE at priority 1, just behind the
windows.
Referenced by scShamanVillageUpdateLettering().
Definition at line 303 of file shaman_village.c.
LETTERING_PALETTE
#define LETTERING_PALETTE 15
Referenced by scShamanVillageLoadLettering().
Definition at line 305 of file shaman_village.c.
LETTERING_ATTRIBUTES
#define LETTERING_ATTRIBUTES (OBJ_PALETTE(LETTERING_PALETTE) | OBJ_PRIORITY(1))
Referenced by scShamanVillageUpdateLettering().
Definition at line 306 of file shaman_village.c.
LETTERING_DEPTH
#define LETTERING_DEPTH (OAM_DEPTH_WINDOW - 4)
Referenced by scShamanVillageUpdateLettering().
Definition at line 307 of file shaman_village.c.
LETTERING_SUBPIXELS
#define LETTERING_SUBPIXELS 256
The lettering's x and speed are kept in 256ths of a pixel.
Referenced by scShamanVillageUpdateLettering().
Definition at line 309 of file shaman_village.c.
LETTERING_PIECE_X
#define LETTERING_PIECE_X(i, n) ((i) * 32 - ((n) - 1) * 16)
The lettering's pieces are 32 pixels wide: piece i of a row of n lies this far from the row's centre.
Referenced by scShamanVillageUpdateLettering().
Definition at line 312 of file shaman_village.c.
LETTERING_TITLE_HOLD
#define LETTERING_TITLE_HOLD 15
The word of ShamanVillageLetteringTitleScript that holds the title still in
the middle: its second LETTERING_WAIT's ticks.
Referenced by scShamanVillageCountDownToStart().
Definition at line 322 of file shaman_village.c.
EFFECT_SET_MODE
#define EFFECT_SET_MODE syImportActorSelectAnimation
Referenced by EFFECT_SPAWN.
Definition at line 355 of file shaman_village.c.
EFFECT_SET_SCRIPT
#define EFFECT_SET_SCRIPT syImportActorStartScript
Referenced by EFFECT_SPAWN.
Definition at line 356 of file shaman_village.c.
WAVE_SCROLL
#define WAVE_SCROLL scShamanVillageWaveWhirlwindLines
The whirlwind's swirl: its lines waver from side to side, as a jittered sine wave.
Definition at line 450 of file shaman_village.c.
WAVE_SCROLL_LINES
#define WAVE_SCROLL_LINES ShamanVillageWaveLines
Referenced by WAVE_SCROLL.
Definition at line 451 of file shaman_village.c.
TWISTER_ROCK_X
#define TWISTER_ROCK_X 168
The twister rock's x, which the whirlwind's sand swirls about.
Referenced by scShamanVillageSwirlSandGrain().
Definition at line 505 of file shaman_village.c.
DEFINE_SHAMAN_VILLAGE_TAKE_PATH
#define DEFINE_SHAMAN_VILLAGE_TAKE_PATH(name,
Felix steps onto one of the two paths up Trial Road: the Knights go to Moapa, the one beside Felix's path first, "If you have chosen, then we shall take the other path.", Moapa takes the other path, "On the count of three, the challenge begins!", the countdown, and the race starts. leftRunner and rightRunner are the actors on the left and right paths; Moapa first faces the first Knight, who faces him.
"If you have chosen, then we shall take the other path."
Definition at line 1449 of file shaman_village.c.
PILLAR_BRIDGE_METATILE_X
#define PILLAR_BRIDGE_METATILE_X 32
The gap west of the pillar by the fortune-teller's tent, metatile (32, 11), which the pillar fills, and the ground beside it whose metatile it then copies.
Referenced by scShamanVillageDropPillar() and scShamanVillageSetUpNorthEnd().
Definition at line 1561 of file shaman_village.c.
PILLAR_BRIDGE_METATILE_Z
#define PILLAR_BRIDGE_METATILE_Z 11
Referenced by scShamanVillageDropPillar() and scShamanVillageSetUpNorthEnd().
Definition at line 1562 of file shaman_village.c.
PILLAR_BRIDGE_ATTRIBUTES_METATILE_X
#define PILLAR_BRIDGE_ATTRIBUTES_METATILE_X 30
Referenced by scShamanVillageDropPillar() and scShamanVillageSetUpNorthEnd().
Definition at line 1563 of file shaman_village.c.
TRIAL_ROAD_CHEST_ITEMS
#define TRIAL_ROAD_CHEST_ITEMS 8
The pieces of equipment the trial's chests take from a party last to every door: "you will lose eight items to the chests!"
Referenced by scShamanVillageCheckTrialEntry().
Definition at line 2024 of file shaman_village.c.
LETTERING_PALETTE_ROWS
#define LETTERING_PALETTE_ROWS 6
#define LETTERING_PALETTE_ROWS 5
Definition at lines 2363 and 2365 of file shaman_village.c.
DEFINE_LEADER_PRIORITY_EVENT
#define DEFINE_LEADER_PRIORITY_EVENT(name, first, second)
Defines an event in which two actors take the leader's sprite priority each tick, so they pass behind what he passes behind.
Definition at line 3193 of file shaman_village.c.
LETTERING_GO_PALETTE_OFFSET
#define LETTERING_GO_PALETTE_OFFSET
GO has a palette row of its own in the European editions' sprite sheet.
Referenced by ShamanVillageLetteringPaletteOffsets.
Definition at line 3400 of file shaman_village.c.
LETTERING_TITLE_SCALE
#define LETTERING_TITLE_SCALE FRENCH_OR(384, 256)
The title's and GO's scales, which fit each language's lettering.
Referenced by ShamanVillageLetteringTitleScript.
Definition at line 3623 of file shaman_village.c.
LETTERING_GO_START_SCALE
#define LETTERING_GO_START_SCALE BY_LANGUAGE(512, 512, 512, 384, 512, 384)
Referenced by ShamanVillageLetteringGoScript.
Definition at line 3624 of file shaman_village.c.
LETTERING_GO_SMALL_SCALE
#define LETTERING_GO_SMALL_SCALE FRENCH_OR(384, 256)
Referenced by ShamanVillageLetteringGoScript.
Definition at line 3625 of file shaman_village.c.
LETTERING_GO_LARGE_SCALE
#define LETTERING_GO_LARGE_SCALE FRENCH_OR(512, 384)
Referenced by ShamanVillageLetteringGoScript.
Definition at line 3626 of file shaman_village.c.
Enumerations in detail
SHAMAN_VILLAGE_TRIAL_ACTOR_ID
enum SHAMAN_VILLAGE_TRIAL_ACTOR_ID
The people and things at the foot of Trial Road, numbering the rows of
ShamanVillageTrialGroundsPlacements; Moapa, his Knights and Kraden keep the
same rows in the village's table (ShamanVillageVillagePlacements).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FIRST_TORCH | ACTOR_FIRST_PLACED | The six torches about the start |
ACTOR_LAST_TORCH | ACTOR_FIRST_TORCH + 5 | of Trial Road (SPRITE_TORCH). |
ACTOR_TWISTER_ROCK | The purple twister rock in the sand, which Whirlwind is cast on. | |
ACTOR_MOAPA | Moapa, head of the Shaman tribe: "I cannot lose. I will not lose." | |
ACTOR_WEST_KNIGHT | The two Knights at Moapa's sides, who fight beside him at Trial Road's summit. | |
ACTOR_EAST_KNIGHT | ||
ACTOR_KRADEN |
Definition at line 31 of file shaman_village.c.
SHAMAN_VILLAGE_HOUSES_ACTOR_ID
enum SHAMAN_VILLAGE_HOUSES_ACTOR_ID
Moapa at home, the fourth row of ShamanVillageHousesPlacements (the village's
houses and inn), with the inn's counter and its innkeeper after.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_MOAPA_AT_HOME | ACTOR_FIRST_PLACED + 3 | |
ACTOR_INN_COUNTER | ||
ACTOR_INNKEEPER |
Definition at line 58 of file shaman_village.c.
anonymous enum
enum { ACTOR_WOMAN_IN_MOAPAS_HOUSE, ACTOR_MOAPAS_SON, ACTOR_GIRL_IN_MOAPAS_HOUSE, ACTOR_INN_WORKER, … }
The rest of the houses: in Moapa's, his son, and the woman and the girl with him, who talk of the party's names; and the two who plan a picnic and the chef who cooks for them, there once Moapa is beaten.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_WOMAN_IN_MOAPAS_HOUSE | ACTOR_FIRST_PLACED | |
ACTOR_MOAPAS_SON | ||
ACTOR_GIRL_IN_MOAPAS_HOUSE | ||
ACTOR_INN_WORKER | ACTOR_FIRST_PLACED + 6 | In the inn, the worker who asks the party to forgive the villagers' unkind words; in another house, the man glad to open his door at last and the woman who missed the trial. |
ACTOR_MAN_AIRING_HIS_HOUSE | ||
ACTOR_WOMAN_WHO_MISSED_THE_TRIAL | ||
ACTOR_PICNIC_SHAMAN_A | ||
ACTOR_PICNIC_SHAMAN_B | ||
ACTOR_CHEF |
Definition at line 68 of file shaman_village.c.
anonymous enum
enum { ACTOR_CHILD_ON_THE_CHALLENGE, ACTOR_WOMAN_ON_QUIET_VILLAGERS, ACTOR_MAN_ON_PROOF_OF_SKILL, ACTOR_WOMAN_ON_FOREIGN_HEROES, … }
The villagers about the village's square, silent until Moapa is beaten, and after it each with a word on the trial: "So, you rose to the challenge of Trial Road?", "The people of Shaman Village are normally quiet...", "...that is ample proof of your skill as warriors", "...heroes can be foreigners, too", "...you have fulfilled Hoabna's promise."
| Enumerator | Value | Description |
|---|---|---|
ACTOR_CHILD_ON_THE_CHALLENGE | ACTOR_FIRST_PLACED | |
ACTOR_WOMAN_ON_QUIET_VILLAGERS | ||
ACTOR_MAN_ON_PROOF_OF_SKILL | ||
ACTOR_WOMAN_ON_FOREIGN_HEROES | ||
ACTOR_OLD_WOMAN_ON_HOABNAS_PROMISE |
Definition at line 89 of file shaman_village.c.
anonymous enum
enum { ACTOR_OLD_MAN_ON_THE_ATTEKA_WAR, ACTOR_OLD_WOMAN_ON_THE_CONTIGO_WARS, ACTOR_BOY_ON_THE_CHAMPIONS, ACTOR_GIRL_ON_THE_FINAL_BATTLE, … }
The family in the east tent, who tell of the old wars with Atteka and Contigo, and in the west tent the general storekeeper's husband, whose weapons Moapa fought with.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_OLD_MAN_ON_THE_ATTEKA_WAR | ACTOR_FIRST_PLACED | |
ACTOR_OLD_WOMAN_ON_THE_CONTIGO_WARS | ||
ACTOR_BOY_ON_THE_CHAMPIONS | ||
ACTOR_GIRL_ON_THE_FINAL_BATTLE | ||
ACTOR_WAREHOUSE_OWNER | ACTOR_FIRST_PLACED + 5 |
Definition at line 105 of file shaman_village.c.
anonymous enum
enum { ACTOR_VILLAGE_ROPE_POST, ACTOR_CLIFF_ROPE_POST }
The posts of the village's rope across the river by Moapa's house, which Lash ties: one west of the river, at metatile (11, 13), the other east of it, at metatile (17, 13).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_VILLAGE_ROPE_POST | ACTOR_FIRST_PLACED + 11 | |
ACTOR_CLIFF_ROPE_POST |
Definition at line 125 of file shaman_village.c.
anonymous enum
enum { ACTOR_SANCTUM_SHAMAN_A, ACTOR_SANCTUM_SHAMAN_B }
The sanctum's two villagers after the priest, there once Moapa is beaten.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_SANCTUM_SHAMAN_A | ACTOR_FIRST_PLACED + 1 | |
ACTOR_SANCTUM_SHAMAN_B |
Definition at line 132 of file shaman_village.c.
SHAMAN_VILLAGE_METATILE
enum SHAMAN_VILLAGE_METATILE
The metatiles that run a script; the village's door metatiles hold instead the numbers of the exits they lead by.
| Enumerator | Value | Description |
|---|---|---|
BEFORE_MOAPA_METATILE | 10 | At the foot of Trial Road, metatiles (9, 21) to (11, 21), on the way up to Moapa. |
LEFT_PATH_METATILE | 11 | At the foot of Trial Road, the left path up, metatiles (10, 13) to (12, 13). |
RIGHT_PATH_METATILE | 12 | The right path up, metatiles (15, 13) to (17, 13). |
TRIAL_ROAD_SIGN_METATILE | 10 | The sign at the gate of Trial Road, metatile (13, 6). |
FORTUNE_TELLERS_FIRE_METATILE | 11 | Before the fire in front of the fortune-teller's tent, metatiles (37, 19) and (37, 20). |
LOCKED_DOOR_METATILE | 20 | Before the door of a house, where pressing A while Moapa is unbeaten says it is locked. |
MOAPAS_DOOR_METATILE | 21 | Before Moapa's door, metatile (7, 11). |
CLOSED_TENT_METATILE | 22 | Before the entrance of a tent, closed while Moapa is unbeaten: metatiles (13, 24) and (17, 28) in the village, (37, 14) in the north-east. |
FISH_OVEN_METATILE | 200 | The ovens of the houses and the tents: roasted river fish, a broth of cow bones, and vegetables no one has seen before. |
BROTH_OVEN_METATILE | ||
VEGETABLE_OVEN_METATILE |
Definition at line 184 of file shaman_village.c.
LETTERING_COMMAND
enum LETTERING_COMMAND
The large lettering of the race's countdown before Trial Road: 3, 2, 1 and
GO, from Colosso's pictures (games/tla/src/graphics/lettering), moved by a
script of 16-bit words, a command and its values:
| Enumerator | Value | Description |
|---|---|---|
LETTERING_PLACE | 16384 | x, speed: put the lettering at x pixels from the centre, moving at speed 256ths of a pixel a tick |
LETTERING_ACCELERATE | 12288 | speed, ticks: change the speed over that many ticks |
LETTERING_SCALE | 4096 | scale, ticks: grow or shrink to scale (256 is its own size) |
LETTERING_FADE | 8192 | weight, ticks: fade to weight sixteenths over the screen |
LETTERING_WAIT | 32767 | ticks: run the moves for that many ticks before the next command |
LETTERING_END | -1 | remove the lettering and free its VRAM block |
Definition at line 255 of file shaman_village.c.
LETTERING_PICTURE
enum LETTERING_PICTURE
The lettering pictures, in the sprite sheet's order
(scShamanVillageLoadLettering); the village shows only the countdown and
GO.
| Enumerator | Value | Description |
|---|---|---|
LETTERING_PICTURE_LEND_A_HAND | 0 | |
LETTERING_PICTURE_MATCH_TITLE_FIRST | 1 | "The 1st Match", then the 2nd |
LETTERING_PICTURE_WIN_LOSE | 4 | and 3rd |
LETTERING_PICTURE_COUNTDOWN_START | 5 | the countdown's 3 and 2 |
LETTERING_PICTURE_COUNTDOWN_END | 6 | the countdown's 1 |
LETTERING_PICTURE_GO | 7 | |
LETTERING_PICTURE_WIN_LOSE_FOR_LOSS | 8 | LETTERING_PICTURE_WIN_LOSE in the blue loss palette |
Definition at line 275 of file shaman_village.c.
LETTERING_SHAPE
enum LETTERING_SHAPE
How scShamanVillageUpdateLettering lays a picture out
(ShamanVillageLetteringMode); ShamanVillageLetteringTileOffset picks the
second half of a picture.
| Enumerator | Value | Description |
|---|---|---|
LETTERING_SHAPE_TITLE | 1 | four 32x16 pieces in a row: The 1st to 3rd Match, Lend a Hand! |
LETTERING_SHAPE_DIGIT | 2 | one 32x32 piece: 3, 2, 1 |
LETTERING_SHAPE_RESULT | 3 | two 32x16 pieces: WIN or LOSE |
LETTERING_SHAPE_GO | 4 | Go!: one 64x32 piece, or two 32x16 in French |
Definition at line 291 of file shaman_village.c.
anonymous enum
enum { SHOP_SHAMAN_VILLAGE }
The general store, as mnShopRun numbers the shops.
| Enumerator | Value | Description |
|---|---|---|
SHOP_SHAMAN_VILLAGE | 29 |
Definition at line 985 of file shaman_village.c.
anonymous enum
enum { INN_ID_SHAMAN_VILLAGE }
The Shaman Village's inn, as mnInnCheckIn numbers the inns.
| Enumerator | Value | Description |
|---|---|---|
INN_ID_SHAMAN_VILLAGE | 11 |
Definition at line 991 of file shaman_village.c.
Functions in detail
scShamanVillageWaveWhirlwindLines
void scShamanVillageWaveWhirlwindLines(void)
The whirlwind's swirl: a VBlank event that wavers its lines.
Referenced by scShamanVillageBlowAwaySand().
Definition at line 241 of file shaman_village.c.
scShamanVillageCastWhirlwindOnSand
void scShamanVillageCastWhirlwindOnSand(void)
Sheba casts Whirlwind on the twister rock and blows the sand away.
References fdActorGet(), fdActorSetSpritePriority(), fdBattleEffectEndArcEffect(), fdBattleEffectSetObjectUpdateMode(), fdBattleEffectStartArcEffect(), fdBattleEffectWaitForArcGroups(), fdScriptPlaySound(), fdScriptWait() and scShamanVillageBlowAwaySand().
Referenced by scShamanVillageShebaClearsSand().
Definition at lines 324 and 2788 of file shaman_village.c.
scShamanVillageSetUpTrialGrounds
void scShamanVillageSetUpTrialGrounds(void)
The foot of Trial Road: the sand gone, or Moapa and his Knights waiting by the twister rock.
References fdActorGetById(), fdActorSetAnimation(), fdActorSetPosAndFacing(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdScriptGetFlag(), MainRoutineStateWork, scFieldActorSetSpriteColor(), scShamanVillageRestartTrial(), scShamanVillageSuggestQuitting(), Sint32 and sySynch().
Referenced by scInit().
Definition at lines 331 and 3054 of file shaman_village.c.
scShamanVillageSetUpNorthEnd
void scShamanVillageSetUpNorthEnd(void)
The north-east of the village and the gate of Trial Road: the torches lit, the pillar in the gap once Move has dropped it, and the fortune-teller and her tent's entrance there only once Moapa is beaten. Until the Shaman's Rod is shown, a wooden gate with a notice on it stands between the torches at the foot of Trial Road; once it is shown the gate is gone and the way north between the torches is open (the three metatiles from (12, 6) take those of the row above them).
References fdActorGetById(), fdActorSetAnimation(), fdActorSetPosAndResetMotion(), fdActorSetSpriteFlags(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdScriptGetFlag() and sySynch().
Referenced by scInit().
Definition at lines 332 and 3108 of file shaman_village.c.
scShamanVillageSetUpVillage
void scShamanVillageSetUpVillage(void)
The village: Moapa and his Knights at his door once met, until the Shaman's Rod is shown, and the Knights alone there once he is beaten; his door left open; the tents' entrances open once he is beaten; the rope, the vine, and smoke from the two chimneys.
References fdMapGridCopyMetatilesTo(), fdRopeInit(), fdRopePlace(), fdScriptGetFlag(), scFieldSetTickEvent(), scShamanVillageBlowChimneySmoke(), scShamanVillageGrowVine(), scShamanVillageLayerVillageActors(), Sint32 and sySynch().
Referenced by scInit().
Definition at lines 333 and 3213 of file shaman_village.c.
scShamanVillageSetUpHouses
void scShamanVillageSetUpHouses(void)
The houses: Moapa and his household as the story leaves them. Brought back from the battle with Moapa, the party wakes in a bed with its HP and PP restored and Felix gets up and walks on; the first time sets Moapa beaten.
References fdActorGetById(), fdActorJump(), fdActorMoveToAndWait(), fdActorSetAnimation(), fdActorSetPosAndFacing(), fdActorSetSpriteFlags(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptSetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmPartyRestoreHpPp(), MainRoutineStateWork, PerWork and sySynch().
Referenced by scInit().
Definition at lines 334 and 3257 of file shaman_village.c.
scShamanVillageSetUpSanctum
void scShamanVillageSetUpSanctum(void)
The sanctum: its two villagers there only once Moapa is beaten.
References fdScriptGetFlag(), scShamanVillageLayerSanctumActors() and sySetEvent().
Referenced by scInit().
Definition at lines 335 and 3336 of file shaman_village.c.
scShamanVillageTalkToEastKnight
void scShamanVillageTalkToEastKnight(void)
Talking to the east Knight at the foot of Trial Road: "Do you need to hear Moapa's explanation again?" Yes, and Felix steps up to Moapa, who gives it again; no, and the Knight tells the party to forget the Hover Jade.
References fdActorFaceDirectionAndWait(), fdActorSetAnimationAndWait(), fdActorWalkToAndWait(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, scShamanVillageExplainTrialRules() and Sint32.
Definition at lines 336 and 847 of file shaman_village.c.
scShamanVillageTellOutsidersToLeave
void scShamanVillageTellOutsidersToLeave(void)
Talking to Moapa at his door: "What's wrong? Nothing to say? Then what are you standing around for? Get out of town!" The menu then opens, as if he were waiting to be shown something.
References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and Sint32.
Definition at lines 337 and 924 of file shaman_village.c.
scShamanVillageWarnOfMoapasPower
void scShamanVillageWarnOfMoapasPower(void)
Talking to the east Knight at Moapa's door before Moapa is beaten: "If you anger Moapa, you'll be in for a little taste of his awesome power", and the menu opens.
References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and Sint32.
Definition at lines 338 and 940 of file shaman_village.c.
scShamanVillageSendToMoapa
void scShamanVillageSendToMoapa(void)
Talking to the west Knight at Moapa's door before Moapa is beaten: "If there's something you want to say, say it to Moapa, not to us", and the menu opens.
References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and Sint32.
Definition at lines 339 and 956 of file shaman_village.c.
scShamanVillageTalkToPriest
void scShamanVillageTalkToPriest(void)
Felix talks to the priest across the counter of the sanctum in the cave, and the sanctum serves the party, as it does before Moapa is beaten too. From beside the counter the priest says that nobody in town will talk to them, by a law of the Shaman tribe, or once Moapa is beaten: "You beat Moapa? Incredible!"
References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), mnSanctumRun(), scShamanVillageIsFacingCounter() and Sint32.
Definition at lines 340 and 1072 of file shaman_village.c.
scShamanVillageAskAboutOtherSide
void scShamanVillageAskAboutOtherSide(void)
Talking to the villager by the mountain: has the party looked over its other side, for the spring only Hoabna could find?
References fdScriptAskYesNo(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptStart() and Sint32.
Definition at lines 341 and 1095 of file shaman_village.c.
scShamanVillageTalkToMoapa
void scShamanVillageTalkToMoapa(void)
Talking to Moapa at home after the battle: he asks the party's names once, "Felix, Jenna, Sheba, and Piers. I shall remember those names", and after that greets Felix as the hero of Contigo.
References fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork and Sint32.
Definition at lines 342 and 1107 of file shaman_village.c.
scShamanVillageTalkToGeneralStorekeeper
void scShamanVillageTalkToGeneralStorekeeper(void)
Felix talks to the storekeeper across the counter in the general store's tent, and the shop opens. From beside the counter: "Everyone is depressed that Moapa lost his big fight. They should be glad the hero came!"
References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), mnShopRun(), scShamanVillageIsFacingCounter() and Sint32.
Definition at lines 343 and 1147 of file shaman_village.c.
scShamanVillageTellFortune
void scShamanVillageTellFortune(void)
Talking to the fortune-teller at the fire before her tent in the north-east: "So, you'd like to hear your fortune, would you?" Yes, and she chants "Hoolabaloo! Ballabahoo! Hoolabaloola!", hopping by the fire, and warns the party not to go south; once Jupiter Lighthouse is lit she chants otherwise and warns against north by northeast. She tells it once a visit; after, she only repeats the warning.
References fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmPlayMusic(), MainRoutineStateWork, scShamanVillageHopFortuneTeller() and Sint32.
Definition at lines 344 and 1183 of file shaman_village.c.
scShamanVillageOfferToGiveUp
void scShamanVillageOfferToGiveUp(void)
Felix walks back to Moapa at the foot of Trial Road with the challenge accepted: "Have you decided to give up this foolishness once and for all?" Yes, and Felix walks away and the challenge is off; no, and he is told to choose a road.
References fdActorFaceDirection(), fdActorSetAnimation(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdScriptAskYesNoWithActorAnimation(), fdScriptClearFlag(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork and Sint32.
Definition at lines 345 and 1347 of file shaman_village.c.
scShamanVillageChallengeMoapa
void scShamanVillageChallengeMoapa(void)
Felix walks up to Moapa at the foot of Trial Road once the rules are heard: "Do you want to challenge me on Trial Road?" Yes, and Moapa offers his explanation again; declined, he checks the party has the Shaman's Rod and the equipment the trial needs. No, and Felix steps back.
References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorWalkToAndWait(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptOpenMessage(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, scShamanVillageCheckTrialEntry(), scShamanVillageExplainTrialRules(), scShamanVillageStepBackFromTrial() and Sint32.
Definition at lines 346 and 1392 of file shaman_village.c.
scShamanVillageTakeLeftPath
void scShamanVillageTakeLeftPath(void)
DEFINE_SHAMAN_VILLAGE_TAKE_PATH( scShamanVillageTakeLeftPath, ACTOR_WEST_KNIGHT, FACING_SOUTHEAST, FACING_NORTHWEST, ACTOR_EAST_KNIGHT, FACING_SOUTHWEST, FACING_NORTHEAST, MainRoutineStateWork.leaderActorId, ACTOR_MOAPA, SHAMAN_VILLAGE_TRIAL_GROUNDS_TRIAL_ROAD_STAGES_E)
The left path, metatiles (10, 13) to (12, 13).
Definition at lines 347 and 1533 of file shaman_village.c.
scShamanVillageTakeRightPath
void scShamanVillageTakeRightPath(void)
DEFINE_SHAMAN_VILLAGE_TAKE_PATH( scShamanVillageTakeRightPath, ACTOR_EAST_KNIGHT, FACING_SOUTHWEST, FACING_NORTHEAST, ACTOR_WEST_KNIGHT, FACING_SOUTHEAST, FACING_NORTHWEST, ACTOR_MOAPA, MainRoutineStateWork.leaderActorId, SHAMAN_VILLAGE_TRIAL_GROUNDS_TO_TRIAL_ROAD_STAGES_F)
The right path, metatiles (15, 13) to (17, 13).
Definition at lines 348 and 1546 of file shaman_village.c.
scShamanVillageDropPillar
void scShamanVillageDropPillar(void)
Felix moves the stone pillar on the ledge west of the fortune-teller's tent into the gap beside it (metatile (32, 11)): it drops in with a thump and fills the gap, so the party can walk across.
References fdActorGetById(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart() and sySynch().
Definition at lines 349 and 1568 of file shaman_village.c.
scShamanVillageMeetMoapa
void scShamanVillageMeetMoapa(void)
Felix walks up to (or presses A at) Moapa's door, under the horned skull in the north-west of the village, before meeting him: the door opens, Felix hops back, and Moapa and his two Knights come out. "This is my house. If you're looking for Moapa, here I am. Back up. Give me some room." Felix backs down the steps; strangers are not welcome, and "If there's something you want to say, hurry up and say it."
References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGetById(), fdActorJump(), fdActorPlaceOnActor(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorStartRepeatedMotion(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraGetActor(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scFieldActorShowEmote(), Sint32 and sySynch().
Definition at lines 350 and 1603 of file shaman_village.c.
scShamanVillageTalkToInnkeeper
void scShamanVillageTalkToInnkeeper(void)
Felix talks to the innkeeper across the inn's counter. Before Moapa is beaten the innkeeper says nothing, and a card on the counter reads "Put ... coins on the counter, and you can stay." Paying, the party sleeps; without the coins, the card says to leave. After, the innkeeper serves as any inn's does. From beside the counter he says only "... ...", or after Moapa is beaten asks whether they have traveled far.
References fdActorSetAnimation(), fdScriptAskYesNo(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, mnInnCheckIn(), mnInnPlaySleep(), mnInnQuoteRoomPrice(), mnMessageArgumentPush(), scShamanVillageIsFacingCounter() and Sint32.
Definition at lines 351 and 1002 of file shaman_village.c.
scShamanVillageBlowAwaySand
void scShamanVillageBlowAwaySand(void)
Sheba's Whirlwind at the foot of Trial Road: the purple twister rock flickers blue and sheds sparks, a whirlwind swirls up over it in a rush of wind that shakes the ground, sand flies about it, and the sand is gone from the ground.
References fdActorGetById(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdCameraWaitForArrival(), fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdMapGridWaitForShakeToSettle(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptWait(), FieldEffectMediumScript, MainRoutineStateWork, scFieldActorSetSpriteColor(), scFieldEffectSpawn(), scFieldWindowColorApply(), scScriptCameraFollowActor(), scShamanVillageDriftSandLayer(), scShamanVillageFlickerRock(), scShamanVillageSpiralSpark(), scShamanVillageSwirlSandGrain(), scShamanVillageWaveWhirlwindLines(), Sint32, syCloseEvent(), syDecompressTaggedLZ(), syDMAXCopy(), syHeapAllocate(), syHeapRelease(), syImportActorCreate(), syImportActorSelectAnimation(), syImportActorStartScript(), syPrintClear(), syRandom(), syResourceGetTableEntry(), sySetEvent(), sySynch(), syWindowLoadGraphics() and TickCount.
Referenced by scShamanVillageCastWhirlwindOnSand().
Definition at lines 362 and 537 of file shaman_village.c.
scShamanVillageHopFortuneTeller
void scShamanVillageHopFortuneTeller(void)
The fortune-teller hops with a splash, and the fire before her flares.
References fdActorJump(), fdActorRunScriptAndWait(), fdActorStop(), fdScriptPlaySound(), ShamanVillageHopFortuneTellerScript and sySynch().
Referenced by scShamanVillageFortuneTellerCallsOut() and scShamanVillageTellFortune().
Definition at lines 363 and 1166 of file shaman_village.c.
scShamanVillageStartLettering
void scShamanVillageStartLettering(Sint32 shape, Sint32 secondHalf)
Starts the lettering event on the picture last loaded, laid out in shape
(LETTERING_SHAPE) and moved by that shape's script; secondHalf picks the
second half of the picture: 2 rather than 3, or LOSE rather than WIN.
References scShamanVillageUpdateLettering(), ShamanVillageLetteringDigitScript, ShamanVillageLetteringGoScript, ShamanVillageLetteringLoseScript, ShamanVillageLetteringMode, ShamanVillageLetteringSpeedTicks, ShamanVillageLetteringTileOffset, ShamanVillageLetteringTitleScript, ShamanVillageLetteringWait, ShamanVillageLetteringWinScript, ShamanVillageLetteringX, Sint32 and sySetEvent().
Referenced by scShamanVillageCountDownToStart().
Definition at lines 364 and 2323 of file shaman_village.c.
scShamanVillageLoadLettering
void scShamanVillageLoadLettering(Sint32 picture)
Loads lettering picture into the lettering's VRAM block (taken once) and its
palette into sprite palette LETTERING_PALETTE.
References mnVRAMLoad(), ShamanVillageLetteringPaletteOffsets, ShamanVillageLetteringVramEntry, Sint32, syDecompressTaggedLZ(), syDMAXCopy(), syHeapAllocateEWRAM(), syHeapRelease(), syResourceGetTableEntry() and syVRAMCacheFindFreeEntry().
Referenced by scShamanVillageCountDownToStart().
Definition at lines 365 and 2378 of file shaman_village.c.
scShamanVillageEnterDoor
void scShamanVillageEnterDoor(Sint32 srcX, Sint32 srcY, Sint32 destX, Sint32 destY, Sint32 width, Sint32 height)
Felix walks into a house's door: it opens (its open picture copied, width by
height metatiles from srcX, srcY to destX, destY), with a thump for a door
two metatiles wide and SE_DOOR_OPEN for one; through a door one metatile wide
Felix first steps to the middle of its metatile and faces north. He walks in,
the screen fades, and the party leaves by the exit whose number the metatile
he stood on holds.
References fdActorGetById(), fdActorSetMoveTarget(), fdActorSetScript(), fdMapGridCopyMetatilesTo(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), LeaderWalkThroughDoorScript, MainRoutineStateWork, scFieldActorWaitForMove(), Sint32, syImportScriptSetExitRequest() and sySynch().
Referenced by scShamanVillageEnterInn(), scShamanVillageEnterLowerEastHouse(), scShamanVillageEnterMoapasHouse(), scShamanVillageEnterRiversideHouse(), scShamanVillageEnterSouthwestHouse() and scShamanVillageEnterUpperEastHouse().
Definition at lines 366 and 2810 of file shaman_village.c.
scShamanVillageIsFacingCounter
Sint32 scShamanVillageIsFacingCounter(void)
Whether Felix faces the counter, north: the innkeeper, priest and storekeeper serve only across it.
References fdActorGetById(), MainRoutineStateWork and Sint32.
Referenced by scShamanVillageTalkToGeneralStorekeeper(), scShamanVillageTalkToInnkeeper() and scShamanVillageTalkToPriest().
Definition at lines 372 and 971 of file shaman_village.c.
scShamanVillageExplainTrialRules
void scShamanVillageExplainTrialRules(void)
Felix first walks up to Moapa at the foot of Trial Road, and Moapa explains it, the camera looking up the road: the legend of Yegelos and Hoabna, who raced to the summit and fought there, and the trial's rules (only the rules when asked again). Then the Knights leave up the road and the screen fades.
References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, Sint32, syImportScriptSetExitRequest() and sySynch().
Referenced by scShamanVillageChallengeMoapa(), scShamanVillageRestartTrial(), scShamanVillageTalkToEastKnight() and scShamanVillageTalkToWestKnight().
Definition at lines 373 and 1257 of file shaman_village.c.
scShamanVillageStepBackFromTrial
void scShamanVillageStepBackFromTrial(void)
Felix walks back from Moapa, and the challenge is off.
References fdActorFaceDirection(), fdActorWalkToAndWait(), fdCameraFollowActor(), fdScriptClearFlag() and MainRoutineStateWork.
Referenced by scShamanVillageChallengeMoapa(), scShamanVillageCheckTrialEntry(), scShamanVillageRestartTrial() and scShamanVillageSuggestQuitting().
Definition at lines 374 and 2010 of file shaman_village.c.
scShamanVillageCheckTrialEntry
void scShamanVillageCheckTrialEntry(void)
Moapa takes the challenge only from a party with the Shaman's Rod and
TRIAL_ROAD_CHEST_ITEMS weapons, armor, shields or helms among them.
References fdActorWatchAndSetScript(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), gmItemGetDefinition(), gmPartyInventoryFindMember(), gmUnitGet(), MainRoutineStateWork, scFieldActorShowEmote(), scFieldPartyListMembers(), scShamanVillageStepBackFromTrial() and Sint32.
Referenced by scShamanVillageChallengeMoapa() and scShamanVillageRestartTrial().
Definition at lines 375 and 2028 of file shaman_village.c.
scShamanVillageCountDownToStart
void scShamanVillageCountDownToStart(void)
The count of 3, 2, 1 and GO before the race up Trial Road, after which the
race music starts.
References fdScriptPlaySound(), fdScriptWait(), scShamanVillageLoadLettering(), scShamanVillageStartLettering() and ShamanVillageLetteringTitleScript.
Definition at lines 376 and 2413 of file shaman_village.c.
scShamanVillageMeetAroma
void scShamanVillageMeetAroma(void)
Felix talks to Aroma, the Jupiter Djinni on the ledge east of the fortune-teller's tent, and it joins the party: "Felix found the Jupiter Djinni Aroma!"
References fdDjinnJoinParty().
Definition at line 387 of file shaman_village.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References MainRoutineStateWork, SceneEntrances, ShamanVillageSanctumEntrances and ShamanVillageTentsEntrances.
Definition at line 394 of file shaman_village.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 405 of file shaman_village.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 410 of file shaman_village.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References fdScriptGetFlag(), MainRoutineStateWork, ShamanVillageHousesPlacements, ShamanVillageNorthEndPlacements, ShamanVillagePlacements, ShamanVillageSanctumPlacements, ShamanVillageTentsPlacements, ShamanVillageTrialGroundsPlacements, ShamanVillageVillagePlacements and Sint32.
Definition at line 424 of file shaman_village.c.
scShamanVillageDriftSandLayer
void scShamanVillageDriftSandLayer(void)
Drifts the sand layer, the third, while Whirlwind blows: its offset moves two pixels a tick, back in x and on in z, and starts again once z passes 1040.
References fdMapGridGetLayer().
Referenced by scShamanVillageBlowAwaySand().
Definition at line 459 of file shaman_village.c.
scShamanVillageFlickerRock
void scShamanVillageFlickerRock(ACTOR *actor)
The twister rock while Whirlwind blows: it flickers blue.
References scFieldActorSetSpriteColor(), Sint32 and TickCount.
Referenced by scShamanVillageBlowAwaySand().
Definition at line 474 of file shaman_village.c.
scShamanVillageSpiralSpark
void scShamanVillageSpiralSpark(ACTOR *actor)
A spark of the gathering Whirlwind: it circles the centre it keeps in bounce and sceneWord (x, z), twice as wide as it is deep, its radius growing as it rises by gravity a tick, a lap every 32 ticks counted in speedLimit; it blinks blue every other two ticks.
References scFieldActorSetSpriteColor(), Sint32, syCos(), sySin() and TickCount.
Referenced by scShamanVillageBlowAwaySand().
Definition at line 485 of file shaman_village.c.
scShamanVillageSwirlSandGrain
void scShamanVillageSwirlSandGrain(ACTOR *actor)
A grain of the whirlwind's sand, swung about the twister rock: left of it the grain speeds up rightward and grows, right of it leftward and shrinks. It takes sprite priority 1 while it moves right, 2 otherwise, and spins.
References scSetActorSpritePriority().
Referenced by scShamanVillageBlowAwaySand().
Definition at line 510 of file shaman_village.c.
scGetCues
const CUE *scGetCues(void)
References MainRoutineStateWork, ShamanVillageCues, ShamanVillageHousesCues, ShamanVillageNorthEndCues, ShamanVillageSanctumCues, ShamanVillageTentsCues, ShamanVillageTrialGroundsCues, ShamanVillageVillageCues and Sint32.
Definition at line 799 of file shaman_village.c.
scShamanVillageStopAtClosedEntrance
void scShamanVillageStopAtClosedEntrance(void)
Before Moapa is beaten, Felix tries the entrance of one of the village's tents, the general store in the west (metatile (13, 24)), the family's in the east (metatile (17, 28)) or the fortune-teller's in the north-east: "The entrance is closed. You probably shouldn't go in."
References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and Sint32.
Definition at line 824 of file shaman_village.c.
scShamanVillageReadTrialRoadSign
void scShamanVillageReadTrialRoadSign(void)
Felix reads the sign at the gate of Trial Road, between its two torches: "Trial Road. None may enter without permission from Moapa."
References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and Sint32.
Definition at line 835 of file shaman_village.c.
scShamanVillageTalkToWestKnight
void scShamanVillageTalkToWestKnight(void)
Talking to the west Knight at the foot of Trial Road: "Do you need to hear
Moapa's explanation again?" Yes, and Felix steps up to Moapa, who gives it
again; no, and the Knight says his people are not free while the party stays.
Kept apart from scShamanVillageTalkToEastKnight: its words are its own, and
from this side Felix walks straight to Moapa.
References fdActorFaceDirectionAndWait(), fdActorSetAnimationAndWait(), fdActorWalkToAndWait(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, scShamanVillageExplainTrialRules() and Sint32.
Definition at line 887 of file shaman_village.c.
scShamanVillageCreateRodIcon
ACTOR *scShamanVillageCreateRodIcon(void)
The Shaman's Rod's icon, held up over Felix's head.
References mnIconDrawItem(), syHeapSlotAllocate(), syHeapSlotRelease(), syImportActorCreate() and syVRAMCacheLoad().
Referenced by scShamanVillageShowShamansRod().
Definition at line 1680 of file shaman_village.c.
scShamanVillageShowShamansRod
void scShamanVillageShowShamansRod(void)
Felix shows Moapa the Shaman's Rod at his door, holding it up: Moapa knows it but will not give up the Hover Jade to the party, and at a Knight's word sets them a test at the foot of Trial Road. He leaves his door open.
References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGetById(), fdActorJump(), fdActorPlaceOnActor(), fdActorRelease(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorStop(), fdActorWalkToAndWait(), fdActorWatchAndSetScript(), fdCameraGetActor(), fdCameraMoveToFX(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmPlayMusic(), MainRoutineStateWork, scEmotePopTilted(), scFieldActorShowEmote(), scShamanVillageCreateRodIcon(), ShamanVillageEastKnightLeavesHouseScript, ShamanVillageJennaStandsByRodScript, ShamanVillageKradenStandsByRodScript, ShamanVillageMoapaLeavesHouseScript, ShamanVillagePiersStandsByRodScript, ShamanVillageReturnToLeaderAtHouseScript, ShamanVillageShebaStandsByRodScript, ShamanVillageWestKnightLeavesHouseScript, Sint32 and sySynch().
Definition at line 1713 of file shaman_village.c.
scShamanVillageShowItemToMoapa
void scShamanVillageShowItemToMoapa(void)
Felix shows Moapa any other item: "If you're here offering charity, I won't have it... Or did you want to show me something?"
References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and Sint32.
Definition at line 1946 of file shaman_village.c.
scShamanVillageShowItemToWestKnight
void scShamanVillageShowItemToWestKnight(void)
An item shown to the west Knight: "Did you want to sell it?"
References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and Sint32.
Definition at line 1957 of file shaman_village.c.
scShamanVillageShowItemToEastKnight
void scShamanVillageShowItemToEastKnight(void)
An item shown to the east Knight: "Show it to Moapa if you must"
References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and Sint32.
Definition at line 1968 of file shaman_village.c.
scShamanVillageFortuneTellerCallsOut
void scShamanVillageFortuneTellerCallsOut(void)
Felix walks up to the fire before the fortune-teller's tent in the north-east (metatile (37, 19)) once Moapa is beaten: she calls out "Hoolabaloo!" and hops, once a visit.
References fdActorFaceDirection(), fdActorSetAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, scShamanVillageHopFortuneTeller() and Sint32.
Definition at line 1981 of file shaman_village.c.
scShamanVillageGrowVine
void scShamanVillageGrowVine(void)
Felix casts Growth on the sprout north-west of the inn (metatile (2, 18)), and it grows into a vine he can climb, up to the Spirit Gloves' chest.
References fdMapGridCopyMetatileAttributes() and fdScriptSetFlag().
Referenced by scShamanVillageSetUpVillage().
Definition at line 2003 of file shaman_village.c.
scShamanVillageUpdateLettering
void scShamanVillageUpdateLettering(void)
The lettering's event: run its script, move, scale and fade it, and draw it
as double-size affine sprites blended over the screen, in the shape of
ShamanVillageLetteringMode.
References ShamanVillageLetteringBlend, ShamanVillageLetteringBlendFrom, ShamanVillageLetteringBlendTick, ShamanVillageLetteringMode, ShamanVillageLetteringScale, ShamanVillageLetteringScaleFrom, ShamanVillageLetteringScaleTick, ShamanVillageLetteringScaleTicks, ShamanVillageLetteringSpeedTick, ShamanVillageLetteringSpeedTicks, ShamanVillageLetteringTileOffset, ShamanVillageLetteringVramEntry, ShamanVillageLetteringWait, ShamanVillageLetteringX, Sint32, syCloseEvent(), syOAMAddSpriteAtDepth(), syOAMMatrixAllocateFromTransform(), syVRAMCacheFreeEntry() and VramCacheEntries.
Referenced by scShamanVillageStartLettering().
Definition at line 2097 of file shaman_village.c.
scShamanVillageShebaClearsSand
void scShamanVillageShebaClearsSand(void)
Moapa's first test: Sheba steps up and casts Whirlwind on the purple rock, and the sand is gone.
References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGetById(), fdActorJump(), fdActorPlaceOnActor(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetDestinationOffset(), fdActorSetPosAndFacing(), fdActorSetScript(), fdActorStartRepeatedMotion(), fdActorStop(), fdActorWaitForAnimationChange(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdActorWatchAndSetScript(), fdCameraWaitForArrival(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptOpenMessage(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmPlayMusic(), MainRoutineStateWork, result, scFieldActorShowEmote(), scFieldScriptShowMessageThenWait(), scShamanVillageCastWhirlwindOnSand(), ShamanVillageHeadForTrialRoadScript, ShamanVillageJennaWatchesShebaScript, ShamanVillageKradenWatchesShebaScript, ShamanVillageLeaderWatchesShebaScript, ShamanVillagePiersWatchesShebaScript, ShamanVillageReturnToLeaderAtSandScript, Sint32 and sySynch().
Definition at line 2440 of file shaman_village.c.
scShamanVillageEnterInn
void scShamanVillageEnterInn(void)
Felix walks north into the inn's door, beside the INN sign in the south-west of the village (metatile (8, 26)), and goes in to the innkeeper's counter.
References scShamanVillageEnterDoor().
Definition at line 2854 of file shaman_village.c.
scShamanVillageEnterSouthwestHouse
void scShamanVillageEnterSouthwestHouse(void)
Felix walks north into the door of the house in the far south-west of the village (metatile (4, 28)) and goes in.
References scShamanVillageEnterDoor().
Definition at line 2861 of file shaman_village.c.
scShamanVillageEnterLowerEastHouse
void scShamanVillageEnterLowerEastHouse(void)
Once Moapa is beaten, Felix walks north into the door of the lower of the two houses on the village's east side (metatile (27, 25)) and goes in to a room with beds. Before, the door is locked.
References scShamanVillageEnterDoor().
Definition at line 2869 of file shaman_village.c.
scShamanVillageEnterUpperEastHouse
void scShamanVillageEnterUpperEastHouse(void)
Once Moapa is beaten, Felix walks north into the door of the upper of the two houses on the village's east side (metatile (28, 23)) and goes in; its stairs lead up and out to the north-east, on the way to Aroma. Before, the door is locked.
References scShamanVillageEnterDoor().
Definition at line 2878 of file shaman_village.c.
scShamanVillageEnterRiversideHouse
void scShamanVillageEnterRiversideHouse(void)
Felix walks north into the door just east of Moapa's, by the river (metatile (10, 12)), and goes in to a room with beds.
References scShamanVillageEnterDoor().
Definition at line 2885 of file shaman_village.c.
scShamanVillageEnterMoapasHouse
void scShamanVillageEnterMoapasHouse(void)
Felix walks north into Moapa's door, under the horned skull, once he has met Moapa: left open since the party showed the Shaman's Rod, it is walked through at once; until then it opens as the other doors do.
References fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptStart(), fdScriptWaitTransitionTicks(), scShamanVillageEnterDoor() and syImportScriptSetExitRequest().
Definition at line 2893 of file shaman_village.c.
scShamanVillageRestartTrial
void scShamanVillageRestartTrial(void)
Coming back down to the foot of Trial Road during the trial, Moapa offers it again.
References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGetById(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetPosAndFacing(), fdActorWalkTo(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdMapGridCenterOnFollowedPoint(), fdScriptAskYesNoWithActorAnimation(), fdScriptClearFlag(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptOpenMessage(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmPlayMusic(), MainRoutineStateWork, scShamanVillageCheckTrialEntry(), scShamanVillageExplainTrialRules(), scShamanVillageStepBackFromTrial(), Sint32 and sySynch().
Referenced by scShamanVillageSetUpTrialGrounds().
Definition at line 2913 of file shaman_village.c.
scShamanVillageSuggestQuitting
void scShamanVillageSuggestQuitting(void)
Coming back down to the foot of Trial Road by one way from the road, Moapa says it would be wise of the party to quit, and Felix steps back.
References fdActorGetById(), fdMapGridCenterOnFollowedPoint(), fdScriptClearFlag(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), scShamanVillageStepBackFromTrial(), Sint32 and sySynch().
Referenced by scShamanVillageSetUpTrialGrounds().
Definition at line 3007 of file shaman_village.c.
scInit
Sint32 scInit(void)
Sets up the place being entered.
References MainRoutineStateWork, scShamanVillageSetUpHouses(), scShamanVillageSetUpNorthEnd(), scShamanVillageSetUpSanctum(), scShamanVillageSetUpTrialGrounds(), scShamanVillageSetUpVillage() and Sint32.
Definition at line 3030 of file shaman_village.c.
scPrepareMap
Sint32 scPrepareMap(void)
References Sint32.
Definition at line 3047 of file shaman_village.c.
scShamanVillageSpawnSmoke
void scShamanVillageSpawnSmoke(Sint32 x, Sint32 y, Sint32 z)
Puffs a see-through white cloud of chimney smoke at x, y, z, half its size,
as scSmokeSpawn does but drawn under the actors around it; scSmokeDrift moves
it for SMOKE_TICKS.
References fdActorSetBlendMode(), fdActorSetSpriteFlags(), scFieldActorSetSpriteColor(), scSmokeDrift(), Sint32, syImportActorCreate() and syImportActorSelectAnimation().
Referenced by scShamanVillageBlowChimneySmoke().
Definition at line 3157 of file shaman_village.c.
scShamanVillageBlowChimneySmoke
void scShamanVillageBlowChimneySmoke(void)
Every 64th tick, a puff of smoke from each of the village's two chimneys.
References scShamanVillageSpawnSmoke() and TickCount.
Referenced by scShamanVillageSetUpVillage().
Definition at line 3182 of file shaman_village.c.
scShamanVillageLayerVillageActors
DEFINE_LEADER_PRIORITY_EVENT(scShamanVillageLayerVillageActors, ACTOR_SPROUT, ACTOR_GIRL_BELOW_THE_CAVE)
An event: the sprout and the girl below the cave take the leader's sprite priority each tick, so they pass behind what he passes behind.
Referenced by scShamanVillageSetUpVillage().
Definition at line 3205 of file shaman_village.c.
scShamanVillageLayerSanctumActors
DEFINE_LEADER_PRIORITY_EVENT(scShamanVillageLayerSanctumActors, ACTOR_SANCTUM_SHAMAN_A, ACTOR_SANCTUM_SHAMAN_B)
An event: the sanctum's two shamans take the leader's sprite priority each tick.
Referenced by scShamanVillageSetUpSanctum().
Definition at line 3331 of file shaman_village.c.
Variables in detail
ShamanVillageWaveLines
Sint16 ShamanVillageWaveLines[DISPLAY_HEIGHT]
The whirlwind's swirl: how far each line of its picture is shifted.
Definition at line 220 of file shaman_village.c.
ShamanVillageLetteringScaleTicks
Sint16 ShamanVillageLetteringScaleTicks
Referenced by scShamanVillageUpdateLettering().
Definition at line 221 of file shaman_village.c.
ShamanVillageLetteringTileOffset
Sint16 ShamanVillageLetteringTileOffset
Referenced by scShamanVillageStartLettering() and scShamanVillageUpdateLettering().
Definition at line 222 of file shaman_village.c.
ShamanVillageLetteringScaleFrom
Sint16 ShamanVillageLetteringScaleFrom
Referenced by scShamanVillageUpdateLettering().
Definition at line 223 of file shaman_village.c.
ShamanVillageLetteringSpeedTicks
Sint16 ShamanVillageLetteringSpeedTicks
Referenced by scShamanVillageStartLettering() and scShamanVillageUpdateLettering().
Definition at line 224 of file shaman_village.c.
ShamanVillageLetteringX
Sint32 ShamanVillageLetteringX
References Sint32.
Referenced by scShamanVillageStartLettering() and scShamanVillageUpdateLettering().
Definition at line 225 of file shaman_village.c.
ShamanVillageLetteringScale
Sint16 ShamanVillageLetteringScale
Referenced by scShamanVillageUpdateLettering().
Definition at line 226 of file shaman_village.c.
ShamanVillageLetteringSpeedTick
Sint16 ShamanVillageLetteringSpeedTick
Referenced by scShamanVillageUpdateLettering().
Definition at line 227 of file shaman_village.c.
ShamanVillageLetteringBlendTick
Sint16 ShamanVillageLetteringBlendTick
Referenced by scShamanVillageUpdateLettering().
Definition at line 228 of file shaman_village.c.
ShamanVillageLetteringMode
Sint16 ShamanVillageLetteringMode
Referenced by scShamanVillageStartLettering() and scShamanVillageUpdateLettering().
Definition at line 229 of file shaman_village.c.
ShamanVillageLetteringBlend
Sint16 ShamanVillageLetteringBlend
Referenced by scShamanVillageUpdateLettering().
Definition at line 230 of file shaman_village.c.
ShamanVillageLetteringBlendFrom
Sint16 ShamanVillageLetteringBlendFrom
Referenced by scShamanVillageUpdateLettering().
Definition at line 231 of file shaman_village.c.
ShamanVillageLetteringWait
Sint16 ShamanVillageLetteringWait
Referenced by scShamanVillageStartLettering() and scShamanVillageUpdateLettering().
Definition at line 232 of file shaman_village.c.
ShamanVillageLetteringScaleTick
Sint16 ShamanVillageLetteringScaleTick
Referenced by scShamanVillageUpdateLettering().
Definition at line 238 of file shaman_village.c.
ShamanVillageKradenStandsByRodScript
extern Uint32 ShamanVillageKradenStandsByRodScript[]
Uint32 ShamanVillageKradenStandsByRodScript[]
Referenced by scShamanVillageShowShamansRod().
Definition at lines 243 and 3443 of file shaman_village.c.
ShamanVillagePiersStandsByRodScript
extern Uint32 ShamanVillagePiersStandsByRodScript[]
Uint32 ShamanVillagePiersStandsByRodScript[]
Referenced by scShamanVillageShowShamansRod().
Definition at lines 244 and 3454 of file shaman_village.c.
ShamanVillageShebaStandsByRodScript
extern Uint32 ShamanVillageShebaStandsByRodScript[]
Uint32 ShamanVillageShebaStandsByRodScript[]
Referenced by scShamanVillageShowShamansRod().
Definition at lines 245 and 3476 of file shaman_village.c.
ShamanVillageMoapaLeavesHouseScript
extern Uint32 ShamanVillageMoapaLeavesHouseScript[]
Uint32 ShamanVillageMoapaLeavesHouseScript[]
Referenced by scShamanVillageShowShamansRod().
Definition at lines 246 and 3487 of file shaman_village.c.
ShamanVillageWestKnightLeavesHouseScript
extern Uint32 ShamanVillageWestKnightLeavesHouseScript[]
Uint32 ShamanVillageWestKnightLeavesHouseScript[]
Referenced by scShamanVillageShowShamansRod().
Definition at lines 247 and 3511 of file shaman_village.c.
ShamanVillageReturnToLeaderAtHouseScript
extern Uint32 ShamanVillageReturnToLeaderAtHouseScript[]
Uint32 ShamanVillageReturnToLeaderAtHouseScript[]
Referenced by scShamanVillageShowShamansRod().
Definition at lines 248 and 3524 of file shaman_village.c.
ShamanVillageLetteringVramEntry
extern Sint16 ShamanVillageLetteringVramEntry[]
Sint16 ShamanVillageLetteringVramEntry[]
The VRAM cache entry the lettering's picture takes; -1 for none.
Referenced by scShamanVillageLoadLettering() and scShamanVillageUpdateLettering().
Definition at lines 250 and 3618 of file shaman_village.c.
ShamanVillageLetteringTitleScript
extern Sint16 ShamanVillageLetteringTitleScript[]
Sint16 ShamanVillageLetteringTitleScript[]
Unused: the match title, placed and faded in, set moving and stopped, then sent on after a second.
Referenced by scShamanVillageCountDownToStart() and scShamanVillageStartLettering().
Definition at lines 314 and 3630 of file shaman_village.c.
ShamanVillageLetteringDigitScript
extern Sint16 ShamanVillageLetteringDigitScript[]
Sint16 ShamanVillageLetteringDigitScript[]
A countdown digit: it shrinks from twice its size as it fades in, holds half a second and fades out.
Referenced by scShamanVillageStartLettering().
Definition at lines 315 and 3358 of file shaman_village.c.
ShamanVillageLetteringGoScript
extern Sint16 ShamanVillageLetteringGoScript[]
Sint16 ShamanVillageLetteringGoScript[]
GO shrinks in as it fades in, then pulses between its two sizes, fading out as it goes on.
Referenced by scShamanVillageStartLettering().
Definition at lines 316 and 3643 of file shaman_village.c.
ShamanVillageLetteringLoseScript
extern Sint16 ShamanVillageLetteringLoseScript[]
Sint16 ShamanVillageLetteringLoseScript[]
Unused: the scripts of the WIN or LOSE and the match title shapes, which the village never starts.
Referenced by scShamanVillageStartLettering().
Definition at lines 317 and 3371 of file shaman_village.c.
ShamanVillageLetteringWinScript
extern Sint16 ShamanVillageLetteringWinScript[]
Sint16 ShamanVillageLetteringWinScript[]
Unused: WIN grows in as it fades in, holds a second, then bounces between sizes.
Referenced by scShamanVillageStartLettering().
Definition at lines 318 and 3674 of file shaman_village.c.
ShamanVillageLetteringPaletteOffsets
extern Uint8 ShamanVillageLetteringPaletteOffsets[]
Uint8 ShamanVillageLetteringPaletteOffsets[]
The byte offset of each lettering picture's palette (LETTERING_PICTURE) among the lettering
palettes.
Referenced by scShamanVillageLoadLettering().
Definition at lines 319 and 3405 of file shaman_village.c.
ShamanVillageKradenWatchesShebaScript
extern Uint32 ShamanVillageKradenWatchesShebaScript[]
Uint32 ShamanVillageKradenWatchesShebaScript[]
Referenced by scShamanVillageShebaClearsSand().
Definition at lines 325 and 3534 of file shaman_village.c.
ShamanVillageLeaderWatchesShebaScript
extern Uint32 ShamanVillageLeaderWatchesShebaScript[]
Uint32 ShamanVillageLeaderWatchesShebaScript[]
Referenced by scShamanVillageShebaClearsSand().
Definition at lines 326 and 3545 of file shaman_village.c.
ShamanVillageJennaWatchesShebaScript
extern Uint32 ShamanVillageJennaWatchesShebaScript[]
Uint32 ShamanVillageJennaWatchesShebaScript[]
Referenced by scShamanVillageShebaClearsSand().
Definition at lines 327 and 3556 of file shaman_village.c.
ShamanVillagePiersWatchesShebaScript
extern Uint32 ShamanVillagePiersWatchesShebaScript[]
Uint32 ShamanVillagePiersWatchesShebaScript[]
Referenced by scShamanVillageShebaClearsSand().
Definition at lines 328 and 3567 of file shaman_village.c.
ShamanVillageHeadForTrialRoadScript
extern Uint32 ShamanVillageHeadForTrialRoadScript[]
Uint32 ShamanVillageHeadForTrialRoadScript[]
Referenced by scShamanVillageShebaClearsSand().
Definition at lines 329 and 3578 of file shaman_village.c.
ShamanVillageReturnToLeaderAtSandScript
extern Uint32 ShamanVillageReturnToLeaderAtSandScript[]
Uint32 ShamanVillageReturnToLeaderAtSandScript[]
Referenced by scShamanVillageShebaClearsSand().
Definition at lines 330 and 3593 of file shaman_village.c.
FieldEffectDurationScripts
extern const Sint32 *FieldEffectDurationScripts[]
const Sint32 *FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().
Definition at lines 353 and 3413 of file shaman_village.c.
ShamanVillageHopFortuneTellerScript
extern Sint32 ShamanVillageHopFortuneTellerScript[]
Sint32 ShamanVillageHopFortuneTellerScript[]
References Sint32.
Referenced by scShamanVillageHopFortuneTeller().
Definition at lines 379 and 3604 of file shaman_village.c.
ShamanVillageTentsEntrances
extern SCENE_ENTRANCE ShamanVillageTentsEntrances[]
Referenced by scGetEntrances().
Definition at line 381 of file shaman_village.c.
ShamanVillageSanctumEntrances
extern SCENE_ENTRANCE ShamanVillageSanctumEntrances[]
Referenced by scGetEntrances().
Definition at line 382 of file shaman_village.c.
ShamanVillagePlacements
extern ACTOR_PLACE ShamanVillagePlacements[]
Referenced by scGetActorPlacements().
Definition at line 415 of file shaman_village.c.
ShamanVillageTrialGroundsPlacements
extern ACTOR_PLACE ShamanVillageTrialGroundsPlacements[]
Referenced by scGetActorPlacements().
Definition at line 416 of file shaman_village.c.
ShamanVillageNorthEndPlacements
extern ACTOR_PLACE ShamanVillageNorthEndPlacements[]
Referenced by scGetActorPlacements().
Definition at line 417 of file shaman_village.c.
ShamanVillageVillagePlacements
extern ACTOR_PLACE ShamanVillageVillagePlacements[]
Referenced by scGetActorPlacements().
Definition at line 419 of file shaman_village.c.
ShamanVillageHousesPlacements
extern ACTOR_PLACE ShamanVillageHousesPlacements[]
Referenced by scGetActorPlacements().
Definition at line 420 of file shaman_village.c.
ShamanVillageTentsPlacements
extern ACTOR_PLACE ShamanVillageTentsPlacements[]
Referenced by scGetActorPlacements().
Definition at line 421 of file shaman_village.c.
ShamanVillageSanctumPlacements
extern ACTOR_PLACE ShamanVillageSanctumPlacements[]
Referenced by scGetActorPlacements().
Definition at line 422 of file shaman_village.c.
ShamanVillageCues
extern CUE ShamanVillageCues[]
Referenced by scGetCues().
Definition at line 791 of file shaman_village.c.
ShamanVillageTrialGroundsCues
extern CUE ShamanVillageTrialGroundsCues[]
Referenced by scGetCues().
Definition at line 792 of file shaman_village.c.
ShamanVillageNorthEndCues
extern CUE ShamanVillageNorthEndCues[]
Referenced by scGetCues().
Definition at line 793 of file shaman_village.c.
ShamanVillageVillageCues
extern CUE ShamanVillageVillageCues[]
Referenced by scGetCues().
Definition at line 794 of file shaman_village.c.
ShamanVillageHousesCues
extern CUE ShamanVillageHousesCues[]
Referenced by scGetCues().
Definition at line 795 of file shaman_village.c.
ShamanVillageTentsCues
extern CUE ShamanVillageTentsCues[]
Referenced by scGetCues().
Definition at line 796 of file shaman_village.c.
ShamanVillageSanctumCues
extern CUE ShamanVillageSanctumCues[]
Referenced by scGetCues().
Definition at line 797 of file shaman_village.c.
ShamanVillageWalkToLeftStartScript
extern Uint32 ShamanVillageWalkToLeftStartScript[]
Uint32 ShamanVillageWalkToLeftStartScript[]
Definition at lines 1440 and 3419 of file shaman_village.c.
ShamanVillageWalkToRightStartScript
extern Uint32 ShamanVillageWalkToRightStartScript[]
Uint32 ShamanVillageWalkToRightStartScript[]
Definition at lines 1441 and 3431 of file shaman_village.c.
ShamanVillageJennaStandsByRodScript
extern Uint32 ShamanVillageJennaStandsByRodScript[]
Uint32 ShamanVillageJennaStandsByRodScript[]
Referenced by scShamanVillageShowShamansRod().
Definition at lines 1707 and 3465 of file shaman_village.c.
ShamanVillageEastKnightLeavesHouseScript
extern Uint32 ShamanVillageEastKnightLeavesHouseScript[]
Uint32 ShamanVillageEastKnightLeavesHouseScript[]
Referenced by scShamanVillageShowShamansRod().