src/scene/xian.c
SceneIdXian, the village of Xian. More…
#include "ability_ids.h"#include "flags.h"#include "item_ids.h"#include "macros.h"#include "battle/battle.h"#include "debug/debug.h"#include "field/script_inline.h"#include "graphics/graphics.h"#include "text/msg_ids.h"#include "shared/field_effect_create.c"#include "shared/field_effect_spawn.c"#include "shared/position_distance.c"#include "shared/field_effect_duration_scripts.c"
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_XIAN_WATER_SPILLED FLAG_SCENE_TEMP(0x00) | The water carrier has spilled her water. |
#define | FLAG_XIAN_SPILLED_WATER_FROZEN FLAG_SCENE_TEMP(0x01) | Frost has frozen the spilled water into ice that can be stood on. |
#define | FLAG_XIAN_STRIKE_SHOWN FLAG_SCENE_TEMP(0x02) | The kung fu student has shown her strike on the tree. |
#define | FLAG_XIAN_TREE_JUMPED FLAG_SCENE_TEMP(0x03) | Force has made the kung fu student's tree jump once, which picks her second line. |
#define | XIAN_WATER_CARRIER_UPDATE | scXianWatchWaterCarrierPath, as an actor's update takes it. |
Enumerations
| Name | Description | |
|---|---|---|
enum | XIAN_ACTOR_ID { ACTOR_YOUNG_MAN_WELCOMING_TRAVELERS, ACTOR_WOMAN_ON_YOUNG_WA … } | The actors, numbering the rows of XianActorPlacements. |
enum | XIAN_RAISED_CUE { RAISED_CARRIER_BLOCKED } | The script the water carrier raises when the leader has stood in her way for XIAN_CARRIER_BLOCKED_TICKS. |
enum | XIAN_METATILE_BEHAVIOR { METATILE_BEHAVIOR_XIAN_WATER_STREET, METATILE_BEHAVIOR_XIAN_ … } | Xian's own metatile behaviors. |
enum | anonymous enum { XIAN_CARRIER_BLOCKED_TICKS } | The ticks the leader must stand in the water carrier's way before she raises RAISED_CARRIER_BLOCKED. |
enum | anonymous enum { CARRIER_ROUTE_ROW, CARRIER_ROUTE_WEST_COLUMN, CARRIER_ROUTE_ … } | The water carrier's round (XianWaterCarrierRoute) runs along map row 14 between columns 17 and 26, where she turns north and back. |
Functions
| Name | Description | |
|---|---|---|
Sint32 | scInit (void) | Plays the village's wind and sets up the village as the story and this visit left it. |
static void | scXianMistJoins (void) | Talking to Mist in Xian: Mist, a Mercury Djinni, joins the party. |
static void | scXianUpdateFrozenWaterLayer (void) | Keeps the ice pillar drawn under Isaac while he stands on top of it, 32 pixels up or higher. |
static void | scXianRotateTrainingTree (void) | Spins the training tree as it jumps, under the student's strike or Force. |
static void | scXianSpawnTrainingParticles (void) | Leaves a trail of blue after-images behind the student as she leaps. |
static Sint32 | scXianStopCarrierBeforeLeader (ACTOR *actor, ACTOR *target, Sint32 distanceLimit, Sint32 alwaysStop) | Stops the water carrier where she stands while target is within distanceLimit pixels of her and no more than a sixteenth of a turn off her heading, or whenever alwaysStop is set, and sets her walking on otherwise. |
static UNREAD_RESULT | scXianWatchWaterCarrierPath (ACTOR *carrier) | The water carrier's update: she stops and looks at Isaac when he stands in front of her, and when he has stood in her way at the west end of her round, metatiles (17, 14) and (18, 14), for two seconds on her way back, she raises RAISED_CARRIER_BLOCKED. |
const SCENE_ENTRANCE * | scGetEntrances (void) | The six rooms share one entrance table. |
const SCENE_EXIT_REGION * | scGetExitRegions (void) | The scene has no exit regions: its regions entry returns none. |
const Uint32 * | scGetExits (void) | Both scenes share one exit table. |
const ACTOR_PLACE * | scGetActorPlacements (void) | Once Xian has heard Hsu is trapped, the muscular man turns to face the party when spoken to. |
static void | scXianAskAboutYoungWarriors (void) | A villager in Xian asks whether the young warriors came through Mogall Forest. |
static void | scXianTalkToWaterCarrier (void) | Talking to the water carrier on the eastern part of her round makes her spill her water: a puddle spreads at her feet, she cries "What are you doing! |
static void | scXianUpdatePuddlePriority (void) | When Isaac casts Frost on the spilled water from north of the street, at the foot of the cliff, the puddle is brought to the front drawing layer before it freezes. |
static void | scXianFreezeSpilledWater (void) | Frost on the spilled water in Xian freezes the puddle into an ice pillar. |
static void | scXianTalkToKungFuStudent (void) | Talking to the kung fu student by the bridge the first time, she cries "Hoo-whaaa... |
static void | scXianTalkToFeizhi (void) | Feizhi asks, in Xian, whether the party are strong warriors. |
static void | scXianJumpOverSpilledWater (void) | Walking into the spilled water in Xian before it is frozen, along the street or south from the doorsteps above it, makes Isaac hop over it, landing two metatiles on if nothing stands there. |
static void | scXianWalkThroughExit (Sint32 exitNumber) | Walks the leader through a doorway and leaves by its exit. |
static void | scXianOpenDoorAndLeave (void) | Walking north into one of Xian's doors opens it with a creak, or the Sanctum's sliding door with a thump, and the party goes in. |
static void | scXianStrikeTrainingTreeWithForce (void) | Force on the tree the kung fu student strikes makes it jump into the air spinning and drop back, and she cries "Wha-Wha-What happened? |
static void | scXianWaterCarrierStartsRoundAgain (void) | Standing in the water carrier's way at the west end of her round for two seconds makes her angry: she marches back to the pool with Isaac before her, he winces, and she starts her round again. |
const CUE * | scGetCues (void) | The first water beast's cave changes its cues once the first drain has lowered its water: the beast is gone and its two puddles can be frozen. |
Variables
| Name | Description | |
|---|---|---|
extern Sint32 | XianWaterCarrierRoute [] | The water carrier's round: from the pool at the street's west end, metatile (17, 14), east to metatile (26, 14), up to the east house's door and back, pausing at each end. |
extern Sint32 | XianTrainingTreeJump [] | The struck tree jumps 32 pixels into the air and drops back. |
extern Sint32 | XianTreeImpactScript [] | The effect at the tree's foot when the student strikes it: 18 ticks. |
extern Sint32 | XianTrainingParticleScript [] | Each particle beside the leaping student, facing west: 16 ticks. |
extern Uint16 | XianHouseDoorOpens [] | Each door opening: two steps, each a rectangle of the map's stored metatiles copied over the door and held for 4 ticks (fdMapGridPlayMapEdit). |
extern Uint16 | XianNorthHouseDoorOpens [] | |
extern Uint16 | XianInnDoorOpens [] | |
extern Uint16 | XianSanctumDoorOpens [] | |
extern Uint16 | XianSchoolDoorOpens [] | |
extern SCENE_ENTRANCE | XianEntrances [] | |
extern Uint32 | XianExits [] | |
extern ACTOR_PLACE | XianActorPlacements [] | |
extern CUE | XianCues [] | |
const Sint32 * | FieldEffectDurationScripts [] | The resident copy of the scripts EFFECT_SCRIPT_MASK picks, by enum EFFECT_DURATION. |
Description
SceneIdXian, the village of Xian.
Its houses, shops and inn are the rooms of lacquer_rooms_b.c. Master Feh's
school is a room of the Fuchin Temple overlay (fuchin_temple.c), the scene
LacquerRoomsA, which XIAN_TO_LACQUER_ROOMS_A_FEHS_SCHOOL leads into.
Xian is the village of silk and kung fu beyond Mogall Forest. The party comes in from the World Map at the south end and may pass straight through to Altin, but there is a Djinni to win here first.
What the villagers say turns on the news that Hsu is trapped
(FLAG_XIAN_HEARD_HSU_TRAPPED), which Master Hama's Reveal lesson at Lama
Temple brings. Every villager's talk and Mind Read has a row for each side of
it. After the news the small boy looks west, the kung fu student stands where
her strike leaves her, and the muscular man turns to face the party.
Once Feizhi has left Master Feh's school to look for Hsu
(FLAG_FEIZHI_WENT_TO_HSU, fuchin_temple.c) she waits by the village's south
way out, looking for someone to take her west. She is gone once she has found
the road blocked at Alpine Crossing (FLAG_FEIZHI_SAW_ROCKSLIDE) or Xian has
heard the news.
A woman carries water along the street below the waterfall, from the pool at its west end, metatile (17, 14), to the door of the east house at its east end, metatile (26, 13), and back. Spoken to on the eastern part of her round she spills her water, and a puddle spreads at her feet that Isaac must hop over. Spilled at the east end, by the wall, Frost freezes it into an ice pillar that Isaac climbs onto the ledge where Mist, a Mercury Djinni, waits at metatile (28, 20); Mist joins when spoken to. Standing in her way at the west end for two seconds makes her march Isaac back to the pool.
The kung fu student, a little girl by the bridge north of the mulberry
orchard, shows her strike on the training tree before her once, and Force on
the tree makes it jump on its own, to her surprise. The tree is drawn with
the log sprite (SPRITE_LOG_NORTH_SOUTH), shrunk and turned half a turn
(scInit); Mind Read on her reads "Breaking trees with my hand hurts me very
much."
The spilled water and the student's strike last until the party next enters a scene other than by returning from a battle.
A jar by the mulberry orchard, at metatile (10, 22), holds a Lucky Medal.
The village's doors and where they lead:
- Five doors lead into the houses, shops and inn (
SceneIdLacquerRoomsB): the house at metatile (21, 20), the north and east houses on the water carrier's street at metatiles (23, 13) and (26, 13), the inn at (25, 26) and the weapon and armor shop at (13, 11). - The Sanctum's sliding door at metatiles (10, 13) and (11, 13) leads into Xian Sanctum.
- The door at metatile (24, 11) leads into Master Feh's school.
- The road south at metatiles (23, 32) and (24, 32) leads out to the World Map.
Coming back from the school (XIAN_FROM_LACQUER_ROOMS_A_FEHS_SCHOOL) or the
Sanctum (XIAN_FROM_SANCTUM_WEST) clears FLAG_SHOW_AREA_NAME, so the name is
not shown again.
Macros in detail
FLAG_XIAN_WATER_SPILLED
#define FLAG_XIAN_WATER_SPILLED FLAG_SCENE_TEMP(0x00)
The water carrier has spilled her water.
Referenced by scXianJumpOverSpilledWater() and scXianTalkToWaterCarrier().
Definition at line 70 of file xian.c.
FLAG_XIAN_SPILLED_WATER_FROZEN
#define FLAG_XIAN_SPILLED_WATER_FROZEN FLAG_SCENE_TEMP(0x01)
Frost has frozen the spilled water into ice that can be stood on.
Referenced by scInit(), scXianFreezeSpilledWater() and XianCues.
Definition at line 72 of file xian.c.
FLAG_XIAN_STRIKE_SHOWN
#define FLAG_XIAN_STRIKE_SHOWN FLAG_SCENE_TEMP(0x02)
The kung fu student has shown her strike on the tree.
Referenced by scInit() and scXianTalkToKungFuStudent().
Definition at line 74 of file xian.c.
FLAG_XIAN_TREE_JUMPED
#define FLAG_XIAN_TREE_JUMPED FLAG_SCENE_TEMP(0x03)
Force has made the kung fu student's tree jump once, which picks her second line.
Referenced by scXianStrikeTrainingTreeWithForce().
Definition at line 77 of file xian.c.
XIAN_WATER_CARRIER_UPDATE
#define XIAN_WATER_CARRIER_UPDATE
scXianWatchWaterCarrierPath, as an actor's update takes it.
Referenced by scInit(), scXianTalkToWaterCarrier() and scXianWaterCarrierStartsRoundAgain().
Definition at line 326 of file xian.c.
Enumerations in detail
XIAN_ACTOR_ID
enum XIAN_ACTOR_ID
The actors, numbering the rows of XianActorPlacements. Each person is named
by what their sprite shows and what they talk of before Xian hears of Hsu.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_YOUNG_MAN_WELCOMING_TRAVELERS | ACTOR_FIRST_PLACED | A young man in a blue jacket. |
ACTOR_WOMAN_ON_YOUNG_WARRIORS | A young woman | |
ACTOR_MAN_ON_KINU | (scXianAskAboutYoungWarriors). A man with a topknot. | |
ACTOR_OLD_MAN_ON_MARTIAL_ARTS | An old man. | |
ACTOR_OLD_WOMAN_ON_FEHS_SCHOOL | An old woman with a cane. | |
ACTOR_BOY_ON_SILK_CLOTHES | A small boy. | |
ACTOR_KUNG_FU_STUDENT | A little girl who strikes the tree before her with a shout. | |
ACTOR_MUSCULAR_MAN_ON_DISASTERS | A bare-chested, muscular man. | |
ACTOR_WOMAN_IN_THE_MULBERRY_ORCHARD | A young woman. | |
ACTOR_FEIZHI | Feizhi, as at Alpine Crossing: looking for someone to take her west. | |
ACTOR_WOMAN_CARRYING_WATER | A young woman who carries water along the street. "You made me spill my water!" | |
ACTOR_TRAINING_TREE | The tree the student strikes; it jumps when hit. | |
ACTOR_SPILLED_WATER | The spilled water, which Frost freezes. | |
ACTOR_FORCE_TARGET | Force's mark on the training tree. | |
ACTOR_MIST | Mist, a Mercury Djinni. | |
ACTOR_FIRST_CRATE | The first of three crates placed with SPRITE_CRATE, which scInit hides (SPRITE_COLOR_HIDDEN): the player never sees them. |
Definition at line 99 of file xian.c.
XIAN_RAISED_CUE
enum XIAN_RAISED_CUE
The script the water carrier raises when the leader has stood in her way for
XIAN_CARRIER_BLOCKED_TICKS.
| Enumerator | Value | Description |
|---|---|---|
RAISED_CARRIER_BLOCKED | 200 |
Definition at line 133 of file xian.c.
XIAN_METATILE_BEHAVIOR
enum XIAN_METATILE_BEHAVIOR
Xian's own metatile behaviors. The doors' metatiles carry the numbers of
their exits, so their rows of XianCues name them by the exit.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_XIAN_WATER_STREET | 20 | The water carrier's street, metatiles (19, 14) to (27, 14), and the metatiles beside it, where Isaac hops over the spilled water. |
METATILE_BEHAVIOR_XIAN_WATER_STREET_NORTH | 21 | The metatile north of the street between the north and east houses' doors, metatile (25, 13), from which Isaac hops south over the spilled water. |
METATILE_BEHAVIOR_XIAN_JAR | 101 | The jar by the mulberry orchard, metatile (10, 22), with the Lucky Medal. |
Definition at line 140 of file xian.c.
anonymous enum
enum { XIAN_CARRIER_BLOCKED_TICKS }
The ticks the leader must stand in the water carrier's way before she raises
RAISED_CARRIER_BLOCKED.
| Enumerator | Value | Description |
|---|---|---|
XIAN_CARRIER_BLOCKED_TICKS | 120 |
Definition at line 160 of file xian.c.
anonymous enum
enum { CARRIER_ROUTE_ROW, CARRIER_ROUTE_WEST_COLUMN, CARRIER_ROUTE_EAST_COLUMN }
The water carrier's round (XianWaterCarrierRoute) runs along map row 14
between columns 17 and 26, where she turns north and back.
| Enumerator | Value | Description |
|---|---|---|
CARRIER_ROUTE_ROW | 14 | |
CARRIER_ROUTE_WEST_COLUMN | 17 | |
CARRIER_ROUTE_EAST_COLUMN | 26 |
Definition at line 167 of file xian.c.
Functions in detail
scInit
Sint32 scInit(void)
Plays the village's wind and sets up the village as the story and this visit left it.
References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteColor(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdMapGridCopyMetatileAttributeRect(), fdQueueMusic(), gmFlagClear(), gmFlagGet(), MainRoutineStateWork, scXianUpdateFrozenWaterLayer(), Sint32 and sySetTickEvent().
Definition at lines 79 and 941 of file xian.c.
scXianMistJoins
static void scXianMistJoins(void)
Talking to Mist in Xian: Mist, a Mercury Djinni, joins the party.
References fdDjinnJoinParty().
Referenced by XianCues.
Definition at line 175 of file xian.c.
scXianUpdateFrozenWaterLayer
static void scXianUpdateFrozenWaterLayer(void)
Keeps the ice pillar drawn under Isaac while he stands on top of it, 32 pixels up or higher.
References fdActorGet().
Referenced by scInit() and scXianFreezeSpilledWater().
Definition at line 182 of file xian.c.
scXianRotateTrainingTree
static void scXianRotateTrainingTree(void)
Spins the training tree as it jumps, under the student's strike or Force.
References fdActorGet().
Referenced by scXianStrikeTrainingTreeWithForce() and scXianTalkToKungFuStudent().
Definition at line 198 of file xian.c.
scXianSpawnTrainingParticles
static void scXianSpawnTrainingParticles(void)
Leaves a trail of blue after-images behind the student as she leaps.
References fdActorGet(), TickCount and XianTrainingParticleScript.
Referenced by scXianTalkToKungFuStudent().
Definition at line 206 of file xian.c.
scXianStopCarrierBeforeLeader
static Sint32 scXianStopCarrierBeforeLeader(ACTOR *actor, ACTOR *target, Sint32 distanceLimit, Sint32 alwaysStop)
Stops the water carrier where she stands while target is within
distanceLimit pixels of her and no more than a sixteenth of a turn off her
heading, or whenever alwaysStop is set, and sets her walking on otherwise.
Returns whether she is stopped.
paused holds her still, and timer is 1 while this function holds her;
paused with timer 0, she stays put whatever the leader does.
References fdActorSelectAnimation(), Sint32 and syAtan().
Referenced by scXianWatchWaterCarrierPath().
Definition at line 239 of file xian.c.
scXianWatchWaterCarrierPath
static UNREAD_RESULT scXianWatchWaterCarrierPath(ACTOR *carrier)
The water carrier's update: she stops and looks at Isaac when he stands in
front of her, and when he has stood in her way at the west end of her round,
metatiles (17, 14) and (18, 14), for two seconds on her way back, she raises
RAISED_CARRIER_BLOCKED.
References fdActorGet(), scXianStopCarrierBeforeLeader() and Sint32.
Definition at line 290 of file xian.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References XianEntrances.
Definition at line 331 of file xian.c.
scGetExitRegions
const SCENE_EXIT_REGION *scGetExitRegions(void)
Definition at line 336 of file xian.c.
scGetExits
const Uint32 *scGetExits(void)
References XianExits.
Definition at line 341 of file xian.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
Once Xian has heard Hsu is trapped, the muscular man turns to face the party when spoken to.
References gmFlagGet() and XianActorPlacements.
Definition at line 348 of file xian.c.
scXianAskAboutYoungWarriors
static void scXianAskAboutYoungWarriors(void)
A villager in Xian asks whether the young warriors came through Mogall Forest.
References fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId() and fdScriptStart().
Referenced by XianCues.
Definition at line 359 of file xian.c.
scXianTalkToWaterCarrier
static void scXianTalkToWaterCarrier(void)
Talking to the water carrier on the eastern part of her round makes her spill her water: a puddle spreads at her feet, she cries "What are you doing! You made me spill my water!" and walks back to the pool for more.
Near the pool, or once her water is spilled, she only says "Do not speak to me. I might spill my water." or "Now I must get water again." If Isaac is on the street with her, he first steps up beside her, and he steps back out of her way before she leaves. The puddle's metatile takes a blocking metatile behavior copied from the map's store at metatile (16, 16).
References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdActorSetMovementTypeById(), fdActorSetPosFX(), fdActorSetSpritePriority(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdMapGridCopyMetatileAttributes(), fdPlayQueuedMusic(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), Sint32, sySoundPlay() and sySynch().
Referenced by XianCues.
Definition at line 379 of file xian.c.
scXianUpdatePuddlePriority
static void scXianUpdatePuddlePriority(void)
When Isaac casts Frost on the spilled water from north of the street, at the foot of the cliff, the puddle is brought to the front drawing layer before it freezes. All this changes on screen is brief: as the ice rises it is drawn over the left of the Psynergy ring around Isaac rather than behind it, and a moment later the ice stands as it would without this.
References fdActorGet() and fdActorSetSpritePriority().
Referenced by XianCues.
Definition at line 546 of file xian.c.
scXianFreezeSpilledWater
static void scXianFreezeSpilledWater(void)
Frost on the spilled water in Xian freezes the puddle into an ice pillar. Isaac can climb onto it, and from the one at the street's east end onto the ledge where Mist waits; there is nothing left to hop over.
The pillar's metatile takes the raised metatile stored at metatile (3, 17).
References fdActorGet(), fdActorSetSpritePriority(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart(), gmFlagSet(), scXianUpdateFrozenWaterLayer() and sySetTickEvent().
Referenced by XianCues.
Definition at line 558 of file xian.c.
scXianTalkToKungFuStudent
static void scXianTalkToKungFuStudent(void)
Talking to the kung fu student by the bridge the first time, she cries "Hoo-whaaa... Hachaaa!", Isaac steps back, and she leaps west in a blur of after-images and strikes the tree, which jumps spinning into the air and drops back. "Heh heh heh..." After that she only boasts of her kung fu.
References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetDestination(), fdActorSetDestinationOffset(), fdActorSetScript(), fdActorWaitForMoveById(), fdActorWaitForScriptEndById(), fdPlayQueuedMusic(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scXianRotateTrainingTree(), scXianSpawnTrainingParticles(), Sint32, syCloseEvent(), sySetTickEvent(), sySoundPlay(), XianTrainingTreeJump and XianTreeImpactScript.
Referenced by XianCues.
Definition at line 584 of file xian.c.
scXianTalkToFeizhi
static void scXianTalkToFeizhi(void)
Feizhi asks, in Xian, whether the party are strong warriors.
References fdScriptAskYesNo(), fdScriptEnd(), fdScriptSetMessageId() and fdScriptStart().
Referenced by XianCues.
Definition at line 733 of file xian.c.
scXianJumpOverSpilledWater
static void scXianJumpOverSpilledWater(void)
Walking into the spilled water in Xian before it is frozen, along the street or south from the doorsteps above it, makes Isaac hop over it, landing two metatiles on if nothing stands there.
References fdActorGet(), fdActorMoveToAndWait(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdScriptEnd(), fdScriptStart(), gmFlagGet(), scFieldActorCheckMovementCollision(), Sint32, sySoundPlay() and sySynch().
Referenced by XianCues.
Definition at line 747 of file xian.c.
scXianWalkThroughExit
static void scXianWalkThroughExit(Sint32 exitNumber)
Walks the leader through a doorway and leaves by its exit. Through the Sanctum's door the leader walks straight in, without centering on it.
References fdActorCenterAndWalk(), fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffset(), Sint32 and syImportScriptSetExitRequest().
Referenced by scXianOpenDoorAndLeave().
Definition at line 787 of file xian.c.
scXianOpenDoorAndLeave
static void scXianOpenDoorAndLeave(void)
Walking north into one of Xian's doors opens it with a creak, or the Sanctum's sliding door with a thump, and the party goes in.
References fdMapGridPlayMapEdit(), fdScriptEnd(), fdScriptStart(), scXianWalkThroughExit(), state, sySoundPlay(), XianHouseDoorOpens, XianInnDoorOpens, XianNorthHouseDoorOpens, XianSanctumDoorOpens and XianSchoolDoorOpens.
Referenced by XianCues.
Definition at line 806 of file xian.c.
scXianStrikeTrainingTreeWithForce
static void scXianStrikeTrainingTreeWithForce(void)
Force on the tree the kung fu student strikes makes it jump into the air spinning and drop back, and she cries "Wha-Wha-What happened? The tree jumped on its own!" Each time after that: "...It jumped again... I am too tired..."
References fdActorFaceActor(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetScript(), fdActorWaitForScriptEndById(), fdPlayQueuedMusic(), fdScriptEnd(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), gmFlagSet(), scXianRotateTrainingTree(), syCloseEvent(), sySetTickEvent(), sySoundPlay() and XianTrainingTreeJump.
Referenced by XianCues.
Definition at line 852 of file xian.c.
scXianWaterCarrierStartsRoundAgain
static void scXianWaterCarrierStartsRoundAgain(void)
Standing in the water carrier's way at the west end of her round for two seconds makes her angry: she marches back to the pool with Isaac before her, he winces, and she starts her round again.
References fdActorFaceDirection(), fdActorGet(), fdActorSetMovementTypeById(), fdActorSetScript(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptStart(), fdScriptWait() and XianWaterCarrierRoute.
Referenced by XianCues.
Definition at line 907 of file xian.c.
scGetCues
const CUE *scGetCues(void)
References XianCues.
Definition at line 934 of file xian.c.
Variables in detail
XianWaterCarrierRoute
extern Sint32 XianWaterCarrierRoute[]
Sint32 XianWaterCarrierRoute[]
The water carrier's round: from the pool at the street's west end, metatile (17, 14), east to metatile (26, 14), up to the east house's door and back, pausing at each end.
References Sint32.
Referenced by scXianWaterCarrierStartsRoundAgain() and XianActorPlacements.
Definition at lines 80 and 1035 of file xian.c.
XianTrainingTreeJump
extern Sint32 XianTrainingTreeJump[]
Sint32 XianTrainingTreeJump[]
The struck tree jumps 32 pixels into the air and drops back.
References Sint32.
Referenced by scXianStrikeTrainingTreeWithForce() and scXianTalkToKungFuStudent().
Definition at lines 81 and 1066 of file xian.c.
XianTreeImpactScript
extern Sint32 XianTreeImpactScript[]
Sint32 XianTreeImpactScript[]
The effect at the tree's foot when the student strikes it: 18 ticks.
References Sint32.
Referenced by scXianTalkToKungFuStudent().
Definition at lines 82 and 1081 of file xian.c.
XianTrainingParticleScript
extern Sint32 XianTrainingParticleScript[]
Sint32 XianTrainingParticleScript[]
Each particle beside the leaping student, facing west: 16 ticks.
References Sint32.
Referenced by scXianSpawnTrainingParticles().
Definition at lines 83 and 1090 of file xian.c.
XianHouseDoorOpens
extern Uint16 XianHouseDoorOpens[]
Uint16 XianHouseDoorOpens[]
Each door opening: two steps, each a rectangle of the map's stored metatiles
copied over the door and held for 4 ticks (fdMapGridPlayMapEdit).
Referenced by scXianOpenDoorAndLeave().
Definition at lines 84 and 1101 of file xian.c.
XianNorthHouseDoorOpens
extern Uint16 XianNorthHouseDoorOpens[]
Uint16 XianNorthHouseDoorOpens[]
Referenced by scXianOpenDoorAndLeave().
Definition at lines 85 and 1106 of file xian.c.
XianInnDoorOpens
extern Uint16 XianInnDoorOpens[]
Uint16 XianInnDoorOpens[]
Referenced by scXianOpenDoorAndLeave().
Definition at lines 86 and 1111 of file xian.c.
XianSanctumDoorOpens
extern Uint16 XianSanctumDoorOpens[]
Uint16 XianSanctumDoorOpens[]
Referenced by scXianOpenDoorAndLeave().
Definition at lines 87 and 1116 of file xian.c.
XianSchoolDoorOpens
extern Uint16 XianSchoolDoorOpens[]
Uint16 XianSchoolDoorOpens[]
Referenced by scXianOpenDoorAndLeave().
Definition at lines 88 and 1121 of file xian.c.
XianEntrances
extern SCENE_ENTRANCE XianEntrances[]
SCENE_ENTRANCE XianEntrances[]
Referenced by scGetEntrances().
Definition at lines 89 and 1127 of file xian.c.
XianExits
extern Uint32 XianExits[]
Uint32 XianExits[]
Referenced by scGetExits().
Definition at lines 90 and 1204 of file xian.c.
XianActorPlacements
extern ACTOR_PLACE XianActorPlacements[]
ACTOR_PLACE XianActorPlacements[]
References Sint32 and XianWaterCarrierRoute.
Referenced by scGetActorPlacements().
Definition at lines 91 and 1223 of file xian.c.
XianCues
extern CUE XianCues[]
CUE XianCues[]
References scXianAskAboutYoungWarriors(), scXianFreezeSpilledWater(), scXianJumpOverSpilledWater(), scXianMistJoins(), scXianOpenDoorAndLeave(), scXianStrikeTrainingTreeWithForce(), scXianTalkToFeizhi(), scXianTalkToKungFuStudent(), scXianTalkToWaterCarrier(), scXianUpdatePuddlePriority() and scXianWaterCarrierStartsRoundAgain().
Referenced by scGetCues().
Definition at lines 92 and 1263 of file xian.c.
FieldEffectDurationScripts
const Sint32 *FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Definition at line 1026 of file xian.c.