src/scene/izumo.c
Izumo, the village of houses on stilts on the far eastern island of the Eastern Sea. More…
#include "field/field_engine.h"#include "field/script_inline.h"#include "field/emote.h"#include "sounds.h"#include "field/field_script.h"#include "field/call.h"#include "field/flag_call.h"#include "field/field.h"#include "game/game.h"#include "edition.h"#include "field/actor_script.h"#include "text/msg_ids.h"#include "shared/scene_entrances_default.c"
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_GUARD_SAW_STONE_MOVED 0x924 | Set once the stone circle's guard has seen the stone back in its place. |
#define | FLAG_STONE_IN_PLACE FLAG_SCENE_TEMP(0x50) | Set while the out-of-line stone stands back in the ring, for this visit. |
#define | FLAG_REVEALING FLAG_AREA_TEMP(0x01) | Set while Reveal is showing. |
#define | STEERING_KEEP_FACING 2 | Steering with ACTOR_FACES_MOTION clear, so that the dancers keep the facings their scripts set; nothing in the field engine's C tests its 0x02 bit. |
#define | FLAG_SUSA_WAITS FLAG_AREA_TEMP(0x02) | Set while Susa, his thanks refused, waits in the doorway of his house. |
#define | FLAG_STOPPED_TO_THANK_THE_PARTY 0x929 | Set as Susa stops the party outside his house to thank it. |
#define | FLAG_TOKEN_OFFERED 0x92a | Set once Susa has told the party the legend of the Cloud Brand. |
#define | STONE_MISALIGNED_METATILE_X 19 | The out-of-line stone's metatile, and the metatile east of it where it belongs in the ring. |
#define | STONE_IN_PLACE_METATILE_X 20 | |
#define | STONE_METATILE_Z 9 | |
#define | CIRCLE_CENTER_METATILE_X 23 | The ring's centre, where Reveal shows the way down: a leader standing there as it opens is set on the metatile north of it. |
#define | CIRCLE_CENTER_METATILE_Z 9 | |
#define | FIRST_ANTIDOTE_SPOT_X 456 | Where the two Antidotes and the Lucky Medal lie under the weeds, in pixels: metatiles (28, 36), (29, 34) and (10, 20). |
#define | FIRST_ANTIDOTE_SPOT_Z 584 | |
#define | SECOND_ANTIDOTE_SPOT_X 472 | |
#define | SECOND_ANTIDOTE_SPOT_Z 552 | |
#define | LUCKY_MEDAL_SPOT_X 168 | |
#define | LUCKY_MEDAL_SPOT_Z 328 | |
#define | FIRST_WATER_PALETTE 3 | The river's three palettes, from the first, and the colours of each that shift to make it shimmer. |
#define | WATER_FIRST_COLOR 1 | |
#define | WATER_LAST_COLOR 14 | |
#define | scIzumoDrawCircleCenter (srcX, srcY) | The ring's centre, the 3 by 3 metatiles from (22, 8) round the centre metatile, redrawn from one of the map's spare copies: as Reveal shows it with the stone in place, the way down open; as Reveal shows it with the stone out of line, the way closed; and as it lies once Reveal fades. |
#define | scIzumoOpenTheWayDown () scIzumoDrawCircleCenter(36, 12) | |
#define | scIzumoCloseTheWayDown () scIzumoDrawCircleCenter(36, 8) | |
#define | scIzumoHideTheWayDown () scIzumoDrawCircleCenter(40, 8) |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { METATILE_SOUTHEAST_WEEDS, METATILE_WEEDS_OVER_FIRST_ANTIDOTE … } | The village's map metatiles that answer Cyclone: the weeds over the two Antidotes and the Lucky Medal, and the rest of each patch. |
enum | anonymous enum { ACTOR_MISALIGNED_STONE, ACTOR_WOMAN_WITH_PONYTAIL, ACTOR_OKU … } | The village's actors: the six stones of the ring, the one out of line among them; the villagers, named by how they look or what they do (the woman with a ponytail who warns the party off, Okuni the dancer, the woman who guards the ring, the woman Susa knocked flat, the woman on the porch west of Kushinada's door); and, once the Serpent is slain, the six who dance and the old man who drums for them, and Susa. |
enum | anonymous enum { ANIM_DANCE, ANIM_OLD_MAN_DRUM, ANIM_OLD_MAN_DANCE } | The dancers' and the drummer's animations: the women sway their arms to one side and the other; the old men dance the same on their own sheet, where animation 5 sits beating a drum. |
Functions
| Name | Description | |
|---|---|---|
void | scIzumoRevealTheStoneCircle (void) | Reveal shows a way down in the centre of the ring of giant stones, metatile (23, 9). |
void | scIzumoSetExitRequest (Sint32 value) | Leaves Izumo by one of its exits, as fdScriptSetExitRequest does. |
void | scIzumoRotateWaterColors (void) | The river shimmers: every fourth tick the shifting colours of each of its palettes move along by one. |
void | scIzumoStopThePartyToThankThem (void) | As the party comes down from Susa's house after the heroes' welcome, Susa comes out of the door after it ("Felix, wait!"): he could not let it leave without thanks, and asks whether warriors need weapons. |
void | scIzumoTellTheCloudBrandLegend (void) | Susa tells the legend of the Cloud Brand, hidden where the Serpent's tail fell, says he left something for the party at the dragon, and goes back into his house to Kushinada. |
void | scIzumoStartMovingStone (void) | Move (or a push) takes hold of the stone out of line in the ring of giant stones, on the west side of the ring at metatile (19, 9). |
void | scIzumoFinishMovingStone (void) | Move sets the out-of-line stone down. |
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 | scIzumoScatterSoutheastWeeds (void) | Cyclone cast in the weeds of the village's south-east corner, between the river and the trees along the east edge (metatiles (23, 30) to (30, 38)), scatters those within two metatiles of Felix. |
void | scIzumoScatterWeedsOverFirstAntidote (void) | Cyclone cast standing on metatile (28, 36) in the south-east weeds scatters them and, until it is found, uncovers an Antidote under Felix's feet: he jumps a metatile west off it, and it lies in the cleared grass. |
void | scIzumoScatterWeedsOverSecondAntidote (void) | Cyclone cast standing on metatile (29, 34) in the south-east weeds scatters them and, until it is found, uncovers the second Antidote under Felix's feet: he jumps a metatile north off it, and it lies in the cleared grass. |
void | scIzumoScatterWeedsByTheShop (void) | Cyclone cast in the weeds around the shop south of the inn (on the riverbank west of it at metatiles (7, 32) and (7, 33), and south and east of its ladder) scatters those within two metatiles of Felix. |
void | scIzumoScatterRiverbankWeeds (void) | Cyclone cast in the weeds on the bank where the river turns west, north-east of the inn (metatiles (16, 24), (17, 24) and (19, 23)), scatters those within two metatiles of Felix. |
void | scIzumoScatterLedgeWeeds (void) | Cyclone cast in the weeds along the edge of the raised ground north of the inn scatters those within two metatiles of Felix. |
void | scIzumoScatterWeedsOverLuckyMedal (void) | Cyclone cast standing on metatile (10, 20), in the weeds on the raised ground north of the inn, scatters them and, until it is found, uncovers the Lucky Medal under Felix's feet: he jumps a metatile east off it, and it lies in the cleared grass. |
void | scIzumoScatterWeedsByTheSanctum (void) | Cyclone cast in the weeds by the ladder of the Sanctum, on the raised ground in the east (metatiles (24, 18) to (28, 21)), scatters those within two metatiles of Felix. |
void | scIzumoScatterStoneCircleWeeds (void) | Cyclone cast in the weeds just west of the ring of giant stones (metatiles (16, 11) and (20, 11)) scatters those within two metatiles of Felix. |
void | scIzumoEnterDoor (void) | Felix climbs the ladder of one of the village's houses on stilts to its door and goes in: the inn, the shop, the Sanctum, Kushinada's house, Susa's house or one of the two houses in the east. |
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 | scIzumoTalkToStoneCircleGuard (Sint32 actor) | The woman guarding the ring of giant stones, at the east end of its bridge, asks whether the party sees that one stone is out of line: yes brings "Susa moved it... |
void | scIzumoTalkToFestivalStoneCircleGuard (Sint32 actor) | The ring's guard during the festival asks the same question about the out-of-line stone, or once it is back complains "But it's a festival! |
void | scIzumoTellOfUzumesFamily (Sint32 actor) | An old woman dancing in the square at the festival asks whether it surprises the party that Lady Uzume and the others aren't blood relatives: yes brings that their power may make them siblings after all, no that she is glad Lady Uzume used her powers for the good of all. |
void | scIzumoOfferATokenOfGratitude (void) | Talking to Susa in his doorway, or reading his mind: he offers his token of gratitude again ("Would you be willing to accept a token of my gratitude?"), and yes brings the legend of the Cloud Brand. |
Sint32 | scInit (void) | Sets up Izumo as the party enters: the fade in, the river's shimmer, the ring's stones, and once the Serpent is slain the dancers, Susa's thanks the first time the party leaves his house as heroes, and Susa waiting in his doorway while his thanks are refused. |
Sint32 | scPrepareMap (void) | Nothing to prepare before the map is built. |
void | scIzumoHideTheStoneCircle (void) | As Reveal fades the way down in the ring's centre is hidden again. |
void | scIzumoDescendIntoTheRuins (void) | Felix, facing north, backs into the opening in the ring's centre and climbs down it as down a ladder, and the scene leaves for the Izumo Ruins. |
void | scIzumoEnterTheRuinsFromTheLeft (void) | Felix walks into the opening in the ring from its west side, metatile (22, 9): he steps round to its north side and climbs down into the ruins. |
void | scIzumoEnterTheRuinsFromTheRight (void) | Felix walks into the opening in the ring from its east side, metatile (24, 9): he steps round to its north side and climbs down into the ruins. |
void | scIzumoEnterTheRuins (void) | Felix walks south into the opening in the ring from its north side, metatile (23, 8), turns round and climbs down into the ruins. |
Variables
| Name | Description | |
|---|---|---|
extern Uint32 | IzumoFirstDanceScript [] | The festival dancers' scripts: each turns once round on the spot, a quarter turn every 5 ticks, then stands a second and a half facing as it began, over and over. |
extern Uint32 | IzumoSecondDanceScript [] | |
extern Uint32 | IzumoThirdDanceScript [] | |
extern Uint32 | IzumoFourthDanceScript [] | The same script as IzumoFirstDanceScript, under another name. |
extern Uint32 | IzumoFifthDanceScript [] | The same script as IzumoSecondDanceScript, under another name. |
extern Uint32 | IzumoSixthDanceScript [] | |
extern Sint16 | IzumoStonesToMove [] | The stones Move can push, ended by -1: the one out of line in the ring. |
extern ACTOR_PLACE | IzumoActorPlacementsOnceTheSerpentIsSlain [] | |
extern ACTOR_PLACE | IzumoActorPlacements [] | |
extern CUE | IzumoCuesOnceTheSerpentIsSlain [] | |
extern CUE | IzumoCues [] | |
extern Uint8 | MsgCanYouImagine [] | |
extern Uint8 | MsgSeeThisRing [] | |
extern Uint8 | MsgButItS [] | |
extern Uint8 | MsgSeeThisRingOf [] | |
extern Uint8 | MsgLadyUzumeAnd [] | |
extern Uint8 | MsgWouldYouBe [] | |
extern Uint8 | MsgTheLegendSays [] | |
extern Uint8 | MsgFelixWait [] | |
extern Uint8 | MsgThisTokenIsn [] | |
extern Uint8 | MsgTheMisalignedStone [] | |
Uint32 | SceneExits [] | The room has no exits of its own. |
Uint16 | IzumoUnused [] | Unused: a halfword nothing reads. |
Description
Izumo, the village of houses on stilts on the far eastern island of the Eastern Sea. Kushinada is to be offered there to the Serpent of Mt. Mikage (Gaia Rock). A river winds through it. Susa and Lady Uzume's house stands in the north, Kushinada's in the north-west, the inn and the shop in the west and the Sanctum on the raised ground in the east.
North of the houses a ring of giant stones stands on an island in the river,
guarded by a woman at its bridge, and one stone of the ring is out of line.
Move pushes it east back into place (scIzumoFinishMovingStone), and with it
there Reveal shows the way down into the Izumo Ruins in the ring's centre
(scIzumoRevealTheStoneCircle, scIzumoDescendIntoTheRuins). Cyclone scatters
the village's weeds: under them lie two Antidotes in the south-east corner
and a Lucky Medal on the raised ground north of the inn.
Once the Serpent is slain the village holds a festival, its dancers turning
on the spot in the square (IzumoFirstDanceScript). The first time the party
leaves Susa's house after being hailed there as heroes, Susa runs out after
it to thank it and tells it the legend of the Cloud Brand
(scIzumoStopThePartyToThankThem).
Macros in detail
FLAG_GUARD_SAW_STONE_MOVED
#define FLAG_GUARD_SAW_STONE_MOVED 0x924
Set once the stone circle's guard has seen the stone back in its place.
Referenced by scIzumoFinishMovingStone(), scIzumoTalkToFestivalStoneCircleGuard() and scIzumoTalkToStoneCircleGuard().
Definition at line 34 of file izumo.c.
FLAG_STONE_IN_PLACE
#define FLAG_STONE_IN_PLACE FLAG_SCENE_TEMP(0x50)
Set while the out-of-line stone stands back in the ring, for this visit.
Referenced by scIzumoFinishMovingStone() and scIzumoRevealTheStoneCircle().
Definition at line 36 of file izumo.c.
FLAG_REVEALING
#define FLAG_REVEALING FLAG_AREA_TEMP(0x01)
Set while Reveal is showing.
Referenced by scIzumoFinishMovingStone(), scIzumoHideTheStoneCircle() and scIzumoRevealTheStoneCircle().
Definition at line 38 of file izumo.c.
STEERING_KEEP_FACING
#define STEERING_KEEP_FACING 2
Steering with ACTOR_FACES_MOTION clear, so that the dancers keep the facings
their scripts set; nothing in the field engine's C tests its 0x02 bit.
Referenced by IzumoFifthDanceScript, IzumoFirstDanceScript, IzumoFourthDanceScript, IzumoSecondDanceScript, IzumoSixthDanceScript, IzumoThirdDanceScript and scInit().
Definition at line 97 of file izumo.c.
FLAG_SUSA_WAITS
#define FLAG_SUSA_WAITS FLAG_AREA_TEMP(0x02)
Set while Susa, his thanks refused, waits in the doorway of his house.
Referenced by IzumoCuesOnceTheSerpentIsSlain, scInit(), scIzumoStopThePartyToThankThem() and scIzumoTellTheCloudBrandLegend().
Definition at line 99 of file izumo.c.
FLAG_STOPPED_TO_THANK_THE_PARTY
#define FLAG_STOPPED_TO_THANK_THE_PARTY 0x929
Set as Susa stops the party outside his house to thank it.
Referenced by scInit() and scIzumoStopThePartyToThankThem().
Definition at line 101 of file izumo.c.
FLAG_TOKEN_OFFERED
#define FLAG_TOKEN_OFFERED 0x92a
Set once Susa has told the party the legend of the Cloud Brand.
Referenced by scInit(), scIzumoOfferATokenOfGratitude() and scIzumoTellTheCloudBrandLegend().
Definition at line 103 of file izumo.c.
STONE_MISALIGNED_METATILE_X
#define STONE_MISALIGNED_METATILE_X 19
The out-of-line stone's metatile, and the metatile east of it where it belongs in the ring.
Referenced by scIzumoFinishMovingStone().
Definition at line 107 of file izumo.c.
STONE_IN_PLACE_METATILE_X
#define STONE_IN_PLACE_METATILE_X 20
Referenced by scIzumoFinishMovingStone().
Definition at line 108 of file izumo.c.
STONE_METATILE_Z
#define STONE_METATILE_Z 9
Referenced by scIzumoFinishMovingStone().
Definition at line 109 of file izumo.c.
CIRCLE_CENTER_METATILE_X
#define CIRCLE_CENTER_METATILE_X 23
The ring's centre, where Reveal shows the way down: a leader standing there as it opens is set on the metatile north of it.
Referenced by scIzumoRevealTheStoneCircle().
Definition at line 112 of file izumo.c.
CIRCLE_CENTER_METATILE_Z
#define CIRCLE_CENTER_METATILE_Z 9
Referenced by scIzumoRevealTheStoneCircle().
Definition at line 113 of file izumo.c.
FIRST_ANTIDOTE_SPOT_X
#define FIRST_ANTIDOTE_SPOT_X 456
Where the two Antidotes and the Lucky Medal lie under the weeds, in pixels: metatiles (28, 36), (29, 34) and (10, 20).
Referenced by scIzumoScatterWeedsOverFirstAntidote().
Definition at line 117 of file izumo.c.
FIRST_ANTIDOTE_SPOT_Z
#define FIRST_ANTIDOTE_SPOT_Z 584
Referenced by scIzumoScatterWeedsOverFirstAntidote().
Definition at line 118 of file izumo.c.
SECOND_ANTIDOTE_SPOT_X
#define SECOND_ANTIDOTE_SPOT_X 472
Referenced by scIzumoScatterWeedsOverSecondAntidote().
Definition at line 119 of file izumo.c.
SECOND_ANTIDOTE_SPOT_Z
#define SECOND_ANTIDOTE_SPOT_Z 552
Referenced by scIzumoScatterWeedsOverSecondAntidote().
Definition at line 120 of file izumo.c.
LUCKY_MEDAL_SPOT_X
#define LUCKY_MEDAL_SPOT_X 168
Referenced by scIzumoScatterWeedsOverLuckyMedal().
Definition at line 121 of file izumo.c.
LUCKY_MEDAL_SPOT_Z
#define LUCKY_MEDAL_SPOT_Z 328
Referenced by scIzumoScatterWeedsOverLuckyMedal().
Definition at line 122 of file izumo.c.
FIRST_WATER_PALETTE
#define FIRST_WATER_PALETTE 3
The river's three palettes, from the first, and the colours of each that shift to make it shimmer.
Referenced by scIzumoRotateWaterColors().
Definition at line 126 of file izumo.c.
WATER_FIRST_COLOR
#define WATER_FIRST_COLOR 1
Referenced by scIzumoRotateWaterColors().
Definition at line 127 of file izumo.c.
WATER_LAST_COLOR
#define WATER_LAST_COLOR 14
Referenced by scIzumoRotateWaterColors().
Definition at line 128 of file izumo.c.
scIzumoDrawCircleCenter
#define scIzumoDrawCircleCenter(srcX, srcY)
The ring's centre, the 3 by 3 metatiles from (22, 8) round the centre metatile, redrawn from one of the map's spare copies: as Reveal shows it with the stone in place, the way down open; as Reveal shows it with the stone out of line, the way closed; and as it lies once Reveal fades.
Definition at line 164 of file izumo.c.
scIzumoOpenTheWayDown
#define scIzumoOpenTheWayDown() scIzumoDrawCircleCenter(36, 12)
Referenced by scIzumoFinishMovingStone() and scIzumoRevealTheStoneCircle().
Definition at line 168 of file izumo.c.
scIzumoCloseTheWayDown
#define scIzumoCloseTheWayDown() scIzumoDrawCircleCenter(36, 8)
Referenced by scIzumoFinishMovingStone() and scIzumoRevealTheStoneCircle().
Definition at line 169 of file izumo.c.
scIzumoHideTheWayDown
#define scIzumoHideTheWayDown() scIzumoDrawCircleCenter(40, 8)
Referenced by scIzumoHideTheStoneCircle().
Definition at line 170 of file izumo.c.
Enumerations in detail
anonymous enum
enum { METATILE_SOUTHEAST_WEEDS, METATILE_WEEDS_OVER_FIRST_ANTIDOTE, METATILE_WEEDS_OVER_SECOND_ANTIDOTE, METATILE_WEEDS_BY_THE_SHOP, … }
The village's map metatiles that answer Cyclone: the weeds over the two Antidotes and the Lucky Medal, and the rest of each patch.
| Enumerator | Value | Description |
|---|---|---|
METATILE_SOUTHEAST_WEEDS | 21 | |
METATILE_WEEDS_OVER_FIRST_ANTIDOTE | ||
METATILE_WEEDS_OVER_SECOND_ANTIDOTE | ||
METATILE_WEEDS_BY_THE_SHOP | ||
METATILE_RIVERBANK_WEEDS | ||
METATILE_LEDGE_WEEDS | ||
METATILE_WEEDS_OVER_LUCKY_MEDAL | ||
METATILE_WEEDS_BY_THE_SANCTUM | ||
METATILE_STONE_CIRCLE_WEEDS |
Definition at line 42 of file izumo.c.
anonymous enum
enum { ACTOR_MISALIGNED_STONE, ACTOR_WOMAN_WITH_PONYTAIL, ACTOR_OKUNI, ACTOR_MAN_WITH_TOPKNOT, … }
The village's actors: the six stones of the ring, the one out of line among them; the villagers, named by how they look or what they do (the woman with a ponytail who warns the party off, Okuni the dancer, the woman who guards the ring, the woman Susa knocked flat, the woman on the porch west of Kushinada's door); and, once the Serpent is slain, the six who dance and the old man who drums for them, and Susa.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_MISALIGNED_STONE | ACTOR_FIRST_PLACED + 4 | |
ACTOR_WOMAN_WITH_PONYTAIL | ACTOR_FIRST_PLACED + 6 | |
ACTOR_OKUNI | ||
ACTOR_MAN_WITH_TOPKNOT | ||
ACTOR_WOMAN_IN_GREEN | ||
ACTOR_OLD_MAN | ||
ACTOR_OLD_WOMAN | ||
ACTOR_BOY | ||
ACTOR_GIRL | ||
ACTOR_STONE_CIRCLE_GUARD | ||
ACTOR_KNOCKED_DOWN_WOMAN | ||
ACTOR_PORCH_WOMAN | ||
ACTOR_DANCER_A | ||
ACTOR_DANCER_B | ||
ACTOR_DANCER_C | ||
ACTOR_DRUMMER | ||
ACTOR_DANCER_D | ||
ACTOR_DANCER_E | ||
ACTOR_DANCER_F | ||
ACTOR_SUSA |
Definition at line 61 of file izumo.c.
anonymous enum
enum { ANIM_DANCE, ANIM_OLD_MAN_DRUM, ANIM_OLD_MAN_DANCE }
The dancers' and the drummer's animations: the women sway their arms to one side and the other; the old men dance the same on their own sheet, where animation 5 sits beating a drum.
| Enumerator | Value | Description |
|---|---|---|
ANIM_DANCE | 5 | |
ANIM_OLD_MAN_DRUM | 5 | |
ANIM_OLD_MAN_DANCE | 6 |
Definition at line 88 of file izumo.c.
Functions in detail
scIzumoRevealTheStoneCircle
void scIzumoRevealTheStoneCircle(void)
Reveal shows a way down in the centre of the ring of giant stones, metatile (23, 9). It can be climbed down only while the out-of-line stone is back in place; a leader standing on the centre then is set on the metatile north of it.
References fdActorGetById(), fdActorSetHorizontalPosWithTerrain(), MainRoutineStateWork, Sint32, syGameFlagGet() and syGameFlagSet().
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at lines 136 and 790 of file izumo.c.
scIzumoSetExitRequest
void scIzumoSetExitRequest(Sint32 value)
Leaves Izumo by one of its exits, as fdScriptSetExitRequest does.
Referenced by scIzumoDescendIntoTheRuins() and scIzumoEnterDoor().
Definition at line 155 of file izumo.c.
scIzumoRotateWaterColors
void scIzumoRotateWaterColors(void)
The river shimmers: every fourth tick the shifting colours of each of its palettes move along by one.
References Sint32 and TickCount.
Referenced by scInit().
Definition at lines 156 and 543 of file izumo.c.
scIzumoStopThePartyToThankThem
void scIzumoStopThePartyToThankThem(void)
As the party comes down from Susa's house after the heroes' welcome, Susa comes out of the door after it ("Felix, wait!"): he could not let it leave without thanks, and asks whether warriors need weapons. Yes, and he tells the legend of the Cloud Brand. No, and he goes back up to his doorway and waits there, blocking it.
References Call3(), fdActorFaceActorById(), fdActorFaceDirectionById(), fdActorGetById(), fdActorSetAnimationById(), fdActorSetHorizontalPosWithTerrain(), fdActorSetSpeedParams(), fdActorSetSpritePriority(), fdActorShowEmoteById(), fdActorWaitForMoveById(), fdActorWalkToById(), fdCameraMoveToActorById(), fdMessageShowAtActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, MsgFelixWait, scFieldScriptWait(), scIzumoTellTheCloudBrandLegend() and syGameFlagSet().
Referenced by scInit().
Definition at lines 157 and 575 of file izumo.c.
scIzumoTellTheCloudBrandLegend
void scIzumoTellTheCloudBrandLegend(void)
Susa tells the legend of the Cloud Brand, hidden where the Serpent's tail fell, says he left something for the party at the dragon, and goes back into his house to Kushinada.
References fdActorFaceActorById(), fdActorFaceDirectionById(), fdActorGetById(), fdActorSetAnimationById(), fdActorSetHorizontalPosWithTerrain(), fdActorSetSpeedParams(), fdActorSetSpritePriority(), fdActorShowEmoteById(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWalkToById(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), MainRoutineStateWork, MsgThisTokenIsn, scFieldScriptWait(), syGameFlagClear() and syGameFlagSet().
Referenced by scIzumoOfferATokenOfGratitude() and scIzumoStopThePartyToThankThem().
Definition at lines 158 and 647 of file izumo.c.
scIzumoStartMovingStone
void scIzumoStartMovingStone(void)
Move (or a push) takes hold of the stone out of line in the ring of giant stones, on the west side of the ring at metatile (19, 9).
References fdActorLiftTargetBlock() and IzumoStonesToMove.
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at line 174 of file izumo.c.
scIzumoFinishMovingStone
void scIzumoFinishMovingStone(void)
Move sets the out-of-line stone down. Pushed east into the gap in the ring, metatile (20, 9), it is back in place: the first time, the woman guarding the ring turns to look, cries "The misaligned stone! It's back in its original position!" and decides Susa or Kushinada must have moved it. Pushed back west to metatile (19, 9), it is out of line again.
While Reveal is showing, the way down in the ring's centre opens or closes with the stone.
References fdActorFaceDirectionById(), fdActorGetById(), fdActorPlaceMovedBlock(), fdActorShowEmoteById(), fdCameraFollowActor(), fdCameraWaitForArrival(), fdFlagClear(), fdFlagIsSet(), fdFlagSet(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MsgTheMisalignedStone, scFieldScriptWait(), Sint32 and sySoundPlay().
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at line 187 of file izumo.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 243 of file izumo.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 248 of file izumo.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 253 of file izumo.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References IzumoActorPlacements, IzumoActorPlacementsOnceTheSerpentIsSlain and syGameFlagGet().
Definition at line 258 of file izumo.c.
scIzumoScatterSoutheastWeeds
void scIzumoScatterSoutheastWeeds(void)
Cyclone cast in the weeds of the village's south-east corner, between the river and the trees along the east edge (metatiles (23, 30) to (30, 38)), scatters those within two metatiles of Felix.
References scFieldTileCopiesCopyTouchedMetatiles().
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at line 268 of file izumo.c.
scIzumoScatterWeedsOverFirstAntidote
void scIzumoScatterWeedsOverFirstAntidote(void)
Cyclone cast standing on metatile (28, 36) in the south-east weeds scatters them and, until it is found, uncovers an Antidote under Felix's feet: he jumps a metatile west off it, and it lies in the cleared grass.
References Call3(), fdActorGetById(), fdActorSetDestinationOffsetById(), fdActorSetHorizontalPosWithTerrain(), fdActorWaitForMoveById(), fdEffectSetAttached(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scFieldTileCopiesCopyTouchedMetatiles() and syGameFlagGet().
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at line 276 of file izumo.c.
scIzumoScatterWeedsOverSecondAntidote
void scIzumoScatterWeedsOverSecondAntidote(void)
Cyclone cast standing on metatile (29, 34) in the south-east weeds scatters them and, until it is found, uncovers the second Antidote under Felix's feet: he jumps a metatile north off it, and it lies in the cleared grass.
References Call3(), fdActorGetById(), fdActorSetDestinationOffsetById(), fdActorSetHorizontalPosWithTerrain(), fdActorWaitForMoveById(), fdEffectSetAttached(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scFieldTileCopiesCopyTouchedMetatiles() and syGameFlagGet().
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at line 309 of file izumo.c.
scIzumoScatterWeedsByTheShop
void scIzumoScatterWeedsByTheShop(void)
Cyclone cast in the weeds around the shop south of the inn (on the riverbank west of it at metatiles (7, 32) and (7, 33), and south and east of its ladder) scatters those within two metatiles of Felix.
References scFieldTileCopiesCopyTouchedMetatiles().
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at line 344 of file izumo.c.
scIzumoScatterRiverbankWeeds
void scIzumoScatterRiverbankWeeds(void)
Cyclone cast in the weeds on the bank where the river turns west, north-east of the inn (metatiles (16, 24), (17, 24) and (19, 23)), scatters those within two metatiles of Felix.
References scFieldTileCopiesCopyTouchedMetatiles().
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at line 352 of file izumo.c.
scIzumoScatterLedgeWeeds
void scIzumoScatterLedgeWeeds(void)
Cyclone cast in the weeds along the edge of the raised ground north of the inn scatters those within two metatiles of Felix. The ground stands 32 pixels high, so the metatiles Felix casts from, (9, 20) to (14, 21), lie two rows south of where the weeds show on screen.
References scFieldTileCopiesCopyTouchedMetatiles().
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at line 361 of file izumo.c.
scIzumoScatterWeedsOverLuckyMedal
void scIzumoScatterWeedsOverLuckyMedal(void)
Cyclone cast standing on metatile (10, 20), in the weeds on the raised ground north of the inn, scatters them and, until it is found, uncovers the Lucky Medal under Felix's feet: he jumps a metatile east off it, and it lies in the cleared grass.
References Call3(), fdActorGetById(), fdActorSetDestinationOffsetById(), fdActorSetHorizontalPosWithTerrain(), fdActorWaitForMoveById(), fdEffectSetAttached(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scFieldTileCopiesCopyTouchedMetatiles() and syGameFlagGet().
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at line 370 of file izumo.c.
scIzumoScatterWeedsByTheSanctum
void scIzumoScatterWeedsByTheSanctum(void)
Cyclone cast in the weeds by the ladder of the Sanctum, on the raised ground in the east (metatiles (24, 18) to (28, 21)), scatters those within two metatiles of Felix.
References scFieldTileCopiesCopyTouchedMetatiles().
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at line 403 of file izumo.c.
scIzumoScatterStoneCircleWeeds
void scIzumoScatterStoneCircleWeeds(void)
Cyclone cast in the weeds just west of the ring of giant stones (metatiles (16, 11) and (20, 11)) scatters those within two metatiles of Felix.
References scFieldTileCopiesCopyTouchedMetatiles().
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at line 410 of file izumo.c.
scIzumoEnterDoor
void scIzumoEnterDoor(void)
Felix climbs the ladder of one of the village's houses on stilts to its door and goes in: the inn, the shop, the Sanctum, Kushinada's house, Susa's house or one of the two houses in the east. The door's metatile names the exit, and so the room.
References fdActorGetById(), fdActorSetSpeedParams(), fdActorSetSpritePriority(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scIzumoSetExitRequest() and sySoundPlay().
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at line 419 of file izumo.c.
scGetCues
const CUE *scGetCues(void)
References IzumoCues, IzumoCuesOnceTheSerpentIsSlain and syGameFlagGet().
Definition at line 436 of file izumo.c.
scIzumoTalkToStoneCircleGuard
void scIzumoTalkToStoneCircleGuard(Sint32 actor)
The woman guarding the ring of giant stones, at the east end of its bridge, asks whether the party sees that one stone is out of line: yes brings "Susa moved it... He didn't even use his hands.", no "You're...not terribly observant, are you?". Once the stone is back she only marvels at a power that moves stones without touching them.
References fdFlagIsSet(), fdMessageShowAtActor(), fdPartyGetLeaderActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MsgCanYouImagine, MsgSeeThisRing, scFieldScriptWait() and Sint32.
Referenced by IzumoCues.
Definition at line 448 of file izumo.c.
scIzumoTalkToFestivalStoneCircleGuard
void scIzumoTalkToFestivalStoneCircleGuard(Sint32 actor)
The ring's guard during the festival asks the same question about the out-of-line stone, or once it is back complains "But it's a festival! Why do I have to keep guarding the stone circle?"
References fdFlagIsSet(), fdMessageShowAtActor(), fdPartyGetLeaderActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MsgButItS, MsgSeeThisRingOf, scFieldScriptWait() and Sint32.
Referenced by IzumoCuesOnceTheSerpentIsSlain.
Definition at line 482 of file izumo.c.
scIzumoTellOfUzumesFamily
void scIzumoTellOfUzumesFamily(Sint32 actor)
An old woman dancing in the square at the festival asks whether it surprises the party that Lady Uzume and the others aren't blood relatives: yes brings that their power may make them siblings after all, no that she is glad Lady Uzume used her powers for the good of all.
References fdMessageShowAtActor(), fdPartyGetLeaderActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MsgLadyUzumeAnd, scFieldScriptWait() and Sint32.
Referenced by IzumoCuesOnceTheSerpentIsSlain.
Definition at line 518 of file izumo.c.
scIzumoOfferATokenOfGratitude
void scIzumoOfferATokenOfGratitude(void)
Talking to Susa in his doorway, or reading his mind: he offers his token of gratitude again ("Would you be willing to accept a token of my gratitude?"), and yes brings the legend of the Cloud Brand. Once it is told he is out of reach, so his line that the legend calls it a powerful weapon for fighting dragons is never shown.
References fdActorShowEmoteById(), fdMessageShowAtActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, MsgTheLegendSays, MsgWouldYouBe, scIzumoTellTheCloudBrandLegend(), Sint32 and syGameFlagGet().
Referenced by IzumoCuesOnceTheSerpentIsSlain.
Definition at line 698 of file izumo.c.
scInit
Sint32 scInit(void)
Sets up Izumo as the party enters: the fade in, the river's shimmer, the ring's stones, and once the Serpent is slain the dancers, Susa's thanks the first time the party leaves his house as heroes, and Susa waiting in his doorway while his thanks are refused.
References Call3(), fdActorGetById(), fdActorPlaceBlocks(), fdActorSetAnimationById(), fdActorSetHorizontalPosWithTerrain(), fdActorSetSpritePriority(), fdScriptStartScreenTransition(), IzumoStonesToMove, MainRoutineStateWork, scIzumoRotateWaterColors(), scIzumoStopThePartyToThankThem(), Sint32, syGameFlagClear(), syGameFlagGet(), syGameFlagSet() and sySetEvent().
Definition at line 739 of file izumo.c.
scPrepareMap
Sint32 scPrepareMap(void)
Nothing to prepare before the map is built. Returns 0.
References Sint32.
Definition at line 781 of file izumo.c.
scIzumoHideTheStoneCircle
void scIzumoHideTheStoneCircle(void)
As Reveal fades the way down in the ring's centre is hidden again.
References syGameFlagClear().
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at line 811 of file izumo.c.
scIzumoDescendIntoTheRuins
void scIzumoDescendIntoTheRuins(void)
Felix, facing north, backs into the opening in the ring's centre and climbs down it as down a ladder, and the scene leaves for the Izumo Ruins.
References fdActorFaceDirectionById(), fdActorGetById(), fdActorSetAnimationById(), fdActorSetDestinationOffsetById(), fdActorSetSpriteFlags(), fdActorWaitForMoveById(), scFieldScriptWait(), scIzumoSetExitRequest(), Sint32 and sySoundPlay().
Referenced by scIzumoEnterTheRuins(), scIzumoEnterTheRuinsFromTheLeft() and scIzumoEnterTheRuinsFromTheRight().
Definition at line 819 of file izumo.c.
scIzumoEnterTheRuinsFromTheLeft
void scIzumoEnterTheRuinsFromTheLeft(void)
Felix walks into the opening in the ring from its west side, metatile (22, 9): he steps round to its north side and climbs down into the ruins.
References Call3(), fdActorWalkByAndWaitById(), scFieldScriptWait() and scIzumoDescendIntoTheRuins().
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at line 841 of file izumo.c.
scIzumoEnterTheRuinsFromTheRight
void scIzumoEnterTheRuinsFromTheRight(void)
Felix walks into the opening in the ring from its east side, metatile (24, 9): he steps round to its north side and climbs down into the ruins.
References Call3(), fdActorWalkByAndWaitById(), scFieldScriptWait() and scIzumoDescendIntoTheRuins().
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at line 851 of file izumo.c.
scIzumoEnterTheRuins
void scIzumoEnterTheRuins(void)
Felix walks south into the opening in the ring from its north side, metatile (23, 8), turns round and climbs down into the ruins.
References fdActorFaceDirectionById(), scFieldScriptWait() and scIzumoDescendIntoTheRuins().
Referenced by IzumoCues and IzumoCuesOnceTheSerpentIsSlain.
Definition at line 861 of file izumo.c.
Variables in detail
IzumoFirstDanceScript
extern Uint32 IzumoFirstDanceScript[]
Uint32 IzumoFirstDanceScript[]
The festival dancers' scripts: each turns once round on the spot, a quarter turn every 5 ticks, then stands a second and a half facing as it began, over and over. They differ only in the way each starts out facing.
Referenced by IzumoActorPlacementsOnceTheSerpentIsSlain.
Definition at lines 130 and 880 of file izumo.c.
IzumoSecondDanceScript
extern Uint32 IzumoSecondDanceScript[]
Uint32 IzumoSecondDanceScript[]
Referenced by IzumoActorPlacementsOnceTheSerpentIsSlain.
Definition at lines 131 and 909 of file izumo.c.
IzumoThirdDanceScript
extern Uint32 IzumoThirdDanceScript[]
Uint32 IzumoThirdDanceScript[]
Referenced by IzumoActorPlacementsOnceTheSerpentIsSlain.
Definition at lines 132 and 938 of file izumo.c.
IzumoFourthDanceScript
extern Uint32 IzumoFourthDanceScript[]
Uint32 IzumoFourthDanceScript[]
The same script as IzumoFirstDanceScript, under another name.
Referenced by IzumoActorPlacementsOnceTheSerpentIsSlain.
Definition at lines 133 and 968 of file izumo.c.
IzumoFifthDanceScript
extern Uint32 IzumoFifthDanceScript[]
Uint32 IzumoFifthDanceScript[]
The same script as IzumoSecondDanceScript, under another name.
Referenced by IzumoActorPlacementsOnceTheSerpentIsSlain.
Definition at lines 134 and 998 of file izumo.c.
IzumoSixthDanceScript
extern Uint32 IzumoSixthDanceScript[]
Uint32 IzumoSixthDanceScript[]
Referenced by IzumoActorPlacementsOnceTheSerpentIsSlain.
Definition at lines 135 and 1027 of file izumo.c.
IzumoStonesToMove
extern Sint16 IzumoStonesToMove[]
Sint16 IzumoStonesToMove[]
The stones Move can push, ended by -1: the one out of line in the ring.
Referenced by scInit() and scIzumoStartMovingStone().
Definition at lines 138 and 871 of file izumo.c.
IzumoActorPlacementsOnceTheSerpentIsSlain
extern ACTOR_PLACE IzumoActorPlacementsOnceTheSerpentIsSlain[]
ACTOR_PLACE IzumoActorPlacementsOnceTheSerpentIsSlain[]
References IzumoFifthDanceScript, IzumoFirstDanceScript, IzumoFourthDanceScript, IzumoSecondDanceScript, IzumoSixthDanceScript, IzumoThirdDanceScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 139 and 1121 of file izumo.c.
IzumoActorPlacements
extern ACTOR_PLACE IzumoActorPlacements[]
ACTOR_PLACE IzumoActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 140 and 1081 of file izumo.c.
IzumoCuesOnceTheSerpentIsSlain
extern CUE IzumoCuesOnceTheSerpentIsSlain[]
CUE IzumoCuesOnceTheSerpentIsSlain[]
References scIzumoEnterDoor(), scIzumoEnterTheRuins(), scIzumoEnterTheRuinsFromTheLeft(), scIzumoEnterTheRuinsFromTheRight(), scIzumoFinishMovingStone(), scIzumoHideTheStoneCircle(), scIzumoOfferATokenOfGratitude(), scIzumoRevealTheStoneCircle(), scIzumoScatterLedgeWeeds(), scIzumoScatterRiverbankWeeds(), scIzumoScatterSoutheastWeeds(), scIzumoScatterStoneCircleWeeds(), scIzumoScatterWeedsByTheSanctum(), scIzumoScatterWeedsByTheShop(), scIzumoScatterWeedsOverFirstAntidote(), scIzumoScatterWeedsOverLuckyMedal(), scIzumoScatterWeedsOverSecondAntidote(), scIzumoStartMovingStone(), scIzumoTalkToFestivalStoneCircleGuard() and scIzumoTellOfUzumesFamily().
Referenced by scGetCues().
Definition at lines 141 and 1302 of file izumo.c.
IzumoCues
extern CUE IzumoCues[]
CUE IzumoCues[]
References scIzumoEnterDoor(), scIzumoEnterTheRuins(), scIzumoEnterTheRuinsFromTheLeft(), scIzumoEnterTheRuinsFromTheRight(), scIzumoFinishMovingStone(), scIzumoHideTheStoneCircle(), scIzumoRevealTheStoneCircle(), scIzumoScatterLedgeWeeds(), scIzumoScatterRiverbankWeeds(), scIzumoScatterSoutheastWeeds(), scIzumoScatterStoneCircleWeeds(), scIzumoScatterWeedsByTheSanctum(), scIzumoScatterWeedsByTheShop(), scIzumoScatterWeedsOverFirstAntidote(), scIzumoScatterWeedsOverLuckyMedal(), scIzumoScatterWeedsOverSecondAntidote(), scIzumoStartMovingStone() and scIzumoTalkToStoneCircleGuard().
Referenced by scGetCues().
Definition at lines 142 and 1176 of file izumo.c.
MsgCanYouImagine
extern Uint8 MsgCanYouImagine[]
Referenced by scIzumoTalkToStoneCircleGuard().
Definition at line 143 of file izumo.c.
MsgSeeThisRing
extern Uint8 MsgSeeThisRing[]
Referenced by scIzumoTalkToStoneCircleGuard().
Definition at line 144 of file izumo.c.
MsgButItS
extern Uint8 MsgButItS[]
Referenced by scIzumoTalkToFestivalStoneCircleGuard().
Definition at line 145 of file izumo.c.
MsgSeeThisRingOf
extern Uint8 MsgSeeThisRingOf[]
Referenced by scIzumoTalkToFestivalStoneCircleGuard().
Definition at line 146 of file izumo.c.
MsgLadyUzumeAnd
extern Uint8 MsgLadyUzumeAnd[]
Referenced by scIzumoTellOfUzumesFamily().
Definition at line 147 of file izumo.c.
MsgWouldYouBe
extern Uint8 MsgWouldYouBe[]
Referenced by scIzumoOfferATokenOfGratitude().
Definition at line 148 of file izumo.c.
MsgTheLegendSays
extern Uint8 MsgTheLegendSays[]
Referenced by scIzumoOfferATokenOfGratitude().
Definition at line 149 of file izumo.c.
MsgFelixWait
extern Uint8 MsgFelixWait[]
Referenced by scIzumoStopThePartyToThankThem().
Definition at line 150 of file izumo.c.
MsgThisTokenIsn
extern Uint8 MsgThisTokenIsn[]
Referenced by scIzumoTellTheCloudBrandLegend().
Definition at line 151 of file izumo.c.
MsgTheMisalignedStone
extern Uint8 MsgTheMisalignedStone[]
Referenced by scIzumoFinishMovingStone().
Definition at line 152 of file izumo.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 1058 of file izumo.c.
IzumoUnused
Uint16 IzumoUnused[]
Unused: a halfword nothing reads.
Definition at line 1471 of file izumo.c.