include/field/script.h
The calls scripts are written in: the small inlines a scene's scripts share, over the main-image functions they call by those functions' own names (fdActorFaceDirectionById, fdScriptShowMessageAndWait, fdActorSetSpeedParams and the rest), whose declarations it holds. More…
#include "field/emote.h"#include "field/field_functions.h"#include "field/field_engine_functions.h"#include "field/speaker.h"#include "fixed_math.h"#include "sounds.h"#include "system.h"#include "types.h"#include "sound/sound.h"
Included by field_engine_treasure_spots.c, field_psynergy_internal.h, script_commands_messages.c, ankohl_ruins.c, daila_rooms.c, emote_pop_tilted.c, field_effect_advance_motion_priority.c, field_effect_advance_spin.c, scene_set_arrival_flags.c, window_internal.h, script_inline.h and system_call.h.
Structures
| Name | Description | |
|---|---|---|
struct | MAP_EDIT | A map edit, such as a door opening: its steps and the metatile they are copied to (fdMapGridPlayMapEdit, which blocks until the last). |
Macros
| Name | Description | |
|---|---|---|
#define | MAP_EDIT_STEP_ROW (sourceX, sourceY, width, height, ticks) | One step of a map edit: copy the width by height metatiles at sourceX, sourceY over the destination, then wait ticks. |
#define | fdActorSetPos (actorId, x, z) | Places an actor at a point in whole pixels at once, without walking it there: fdActorSetPos(8, 880, 502). |
#define | fdActorSetSpeed (actorId, speed) | Sets an actor's top speed for the script's next moves, in pixels a tick, and an acceleration of half that: fdActorSetSpeed(8, 0.5). |
#define | fdActorSetSpeedAndAcceleration (actorId, speed, acceleration) | Sets an actor's top speed, in pixels a tick, and its acceleration, in pixels a tick per tick, where the acceleration isn't half the speed. |
#define | fdCameraSetSpeed (speed) | Sets the camera's top panning speed for the script's next camera moves, in pixels a tick, and an acceleration of an eighth of that: fdCameraSetSpeed(0.8). |
#define | fdCameraSetSpeedAndAcceleration (speed, acceleration) | Sets the camera's top panning speed, in pixels a tick, and its acceleration, in pixels a tick per tick, where the acceleration isn't an eighth of the speed. |
#define | CAMERA_KEEP (-1) | Keeps a camera axis where it is (fdCameraMoveTo). |
#define | SCRIPT_CAMERA_FIXED (axis) | A camera axis in whole pixels as 16.16 fixed point, CAMERA_KEEP kept; it reads its argument twice, so the macros below take only constants. |
#define | fdCameraMoveTo (x, y, z, pan) | Pans the camera to a point in whole pixels, or cuts there when pan is 0; CAMERA_KEEP keeps an axis: fdCameraMoveTo(168, CAMERA_KEEP, 158, 1). |
#define | SHAKE_KEEP (-1) | Keeps a shake component as it is (fdMapGridSetShake). |
#define | SCRIPT_SHAKE_FIXED (value) | A shake amplitude in pixels or a decay factor, as a decimal, in 16.16 fixed point, SHAKE_KEEP kept; it reads its argument twice, so the macro below takes only constants. |
#define | fdMapGridSetShake (horizontal, vertical, decay) | Shakes the screen by amplitudes in pixels, shrunk each tick by a decay factor (1 keeps the shake going); SHAKE_KEEP keeps a component: fdMapGridSetShake(2, 2, 1). |
#define | scFieldActorSetMoveTarget (actor, x, y, z) | Sends an actor toward a point in whole pixels, where it coasts to a stop. |
Enumerations
| Name | Description | |
|---|---|---|
enum | TREASURE_SPOT_SPR_MODE { TREASURE_SPOT_PUT_AWAY, TREASURE_SPOT_WIDE } | What the scenes ask of a treasure spot's actor (fdActorSetWideSprite). |
enum | RETURN_HOME_MODE { RETURN_HOME_CLEAR_Z, RETURN_HOME_DUG_UP } | What fdActorReturnHome does with a buried treasure's actor. |
Functions
| Name | Description | |
|---|---|---|
void | syGameFlagSet (Sint32 flag) | Sets a game flag, called for no result: field/flag_call.h says why. |
struct ACTOR * | syImportActorCreate (Sint32 type, Sint32 x, Sint32 y, Sint32 z) | Creates an actor at (x, y, z), 16.16 pixels, or returns 0 when every slot is taken (fdActorCreate, through the overlay's own import row). |
void | fdMapGridCopyMetatileTilesIndicesRect (Sint32 srcX, Sint32 srcY, Uint32 destX, Uint32 destY, Uint32 width, Uint32 height) | Copies the metatile tiles numbers of a rectangle of metatiles from (srcX, srcY) to (destX, destY), width by height metatiles, keeping each destination's attributes, and redraws the copied metatiles that are on screen. |
void | syImportScriptSetExitRequest (Sint32 exit) | Sets the field's exit request (fdScriptSetExitRequest, through the overlay's own import row). |
Sint32 | fdMapGridGetMetatileBehaviorAt (Sint32 layer, FIXED x, FIXED y) | The behavior of the metatile at (x, y) on a layer. |
static inline void | fdScriptShowMessage (Sint32 speaker, Sint32 flags) | Shows the script's next line of dialogue and waits for the player to read it. |
static inline Sint32 | fdScriptOpenMessage (Sint32 speaker, Sint32 flags) | Opens the script's next line and returns its window once the text is typed out, so the script can act while it is still on screen. |
static inline Sint32 | fdScriptAskYesNo (Sint32 speaker, Sint32 flags) | Puts the current line to the player as a question and shows the line that answers it; returns 0 for yes. |
static inline struct ACTOR * | fdActorGet (Sint32 actorId) | Looks up an actor for a script, NULL when it doesn't exist (fdActorGetById). |
static inline void | fdActorSetPosFX (Sint32 actorId, FIXED x, FIXED z) | Places an actor at a point at once, without walking it there; x and z are 16.16 fixed-point pixels, as a stored position holds them. |
static inline void | fdActorSetSpeedFX (Sint32 actorId, FIXED speed, FIXED acceleration) | Sets how fast an actor moves, and how quickly it gets up to speed, for the script's next moves; both are 16.16 fixed point, as stored values hold them. |
static inline void | fdActorSetDestination (Sint32 actorId, Sint32 x, Sint32 z) | Moves an actor to a point in the pose it has, without walking; the script carries on meanwhile. |
static inline void | fdActorSetDestinationOffset (Sint32 actorId, Sint32 dx, Sint32 dz) | Moves an actor some distance from where it stands, without waiting for it. |
static inline void | fdActorWalkTo (Sint32 actorId, Sint32 x, Sint32 z) | Walks an actor to a point; the script goes on while it walks. |
static inline void | fdActorWalkBy (Sint32 actorId, Sint32 dx, Sint32 dz) | Walks an actor some distance from where it stands, without waiting for it to get there. |
static inline void | fdActorFaceDirection (Sint32 actorId, Sint32 facing, Sint32 ticks) | Turns an actor to a direction and holds the script for a few ticks. |
static inline void | fdActorFaceActor (Sint32 actorId, Sint32 target, Sint32 ticks) | Has one actor look at another at once, then pauses the script. |
static inline struct ACTOR * | fdActorShowEmote (Sint32 actorId, Sint32 emote, Sint32 ticks) | Pops an emote bubble up over an actor, then lets ticks pass before the script goes on. |
static inline void | scFieldActorShowEmote (Sint32 actorId, Sint32 emote, Sint32 ticks) | fdActorShowEmote, for a script that leaves its result unread. |
static inline void | fdActorSetAttachedEffect (Sint32 actorId, Sint32 effect) | Attaches a field effect to an actor, takes it off, or plays one over it once. |
static inline void | fdCameraSetSpeedFX (FIXED speed, FIXED acceleration) | Sets how fast the camera pans for the script's next camera moves, and how quickly it gets up to speed, both in 16.16 fixed point. |
static inline void | fdCameraMoveToFX (FIXED x, FIXED y, FIXED z, Sint32 pan) | Pans the camera to a point in the room, or cuts there when pan is 0; the axes are 16.16 fixed-point pixels, or CAMERA_KEEP. |
static inline void | fdMapGridCopyMetatiles (Sint32 srcX, Sint32 srcY, Sint32 width, Sint32 height, Sint32 destX, Sint32 destY) | Changes part of the room in place, copying whole metatiles, metatile tiles and metatile behavior alike, from another part of the map. |
static inline void | fdMapGridCopyMetatileAttributes (Sint32 srcX, Sint32 srcY, Sint32 width, Sint32 height, Sint32 destX, Sint32 destY) | Changes where the party can walk in part of the room, copying only the metatiles' metatile behaviors and flags. |
static inline void | fdMapGridSetShakeFX (FIXED horizontal, FIXED vertical, FIXED decay) | Sets shake amplitudes in 16.16 fixed-point pixels and the per-tick decay factor in 16.16; SHAKE_KEEP keeps that component, toFIXED(1) keeps the shake. |
static inline Sint32 | fdScriptGetFlag (Sint32 flag) | syGameFlagGet, from a script: 1 when the flag is set. |
static inline void | fdScriptSetFlag (Sint32 flag) | syGameFlagSet, from a script. |
static inline void | fdScriptClearFlag (Sint32 flag) | syGameFlagClear, from a script. |
static inline void | fdScriptPlaySound (Sint32 sound) | Plays a sound effect or music from a script: the SE command of actor_script.h. |
static inline Sint32 | syMathDivide (Sint32 dividend, Sint32 divisor) | Divides, rounding toward zero. |
static inline void | scFieldActorSetMoveTargetFX (struct ACTOR *actor, FIXED x, FIXED y, FIXED z) | Sends an actor toward a point in 16.16 fixed-point pixels, where it coasts to a stop. |
static inline struct ACTOR * | scFieldActorCreate (Sint32 type, FIXED x, FIXED y, FIXED z) | Creates an actor in an empty slot of ActorsWork, outside the actor ids, or returns NULL when every slot is taken. |
static inline void | fdMapGridAnimateMetatiles (const Uint16 *steps, Sint32 destX, Sint32 destY) | Plays a map edit, such as a door opening, and holds the script until its last step. |
static inline void | fdTreasureSpotSetPos (Sint32 actorId, FIXED x, FIXED z) | Moves a treasure spot's actor to a point on the ground. |
static inline void | fdActorCenterAndWalk (Sint32 actorId, Sint32 priority, Sint32 dz) | Lines an actor up with the middle of its column, sets its sprite priority, then walks it straight along z. |
static inline void | fdActorWalkByAndWait (Sint32 actorId, Sint32 dx, Sint32 dz) | Walks an actor some distance and waits until it is there. |
static inline void | scFieldScriptShowMessageThenWait (Sint32 speaker, Sint32 flags, Sint32 ticks) | Shows a line of dialogue, then pauses before the script goes on. |
static inline void | fdActorSetSpriteColorById (Sint32 actorId, Sint32 value) | Sets a colour mode (SPR_COL_MODE) on every part of an actor's sprite, or SPRITE_COLOR_BLINK to make it blink. |
static inline void | fdMapGridCopyMetatilesTo (Sint32 srcX, Sint32 srcY, Sint32 destX, Sint32 destY, Sint32 width, Sint32 height) | Changes what part of the room shows, copying the metatiles' tiles but not their metatile behaviors. |
static inline void | fdMapGridCopyMetatilesLayered (Sint32 srcX, Sint32 srcY, Sint32 width, Sint32 height, Sint32 destX, Sint32 destY) | Changes the pictures of part of the room as fdMapGridCopyMetatilesTo does, the rectangle's size before its destination, through fdMapGridCopyDrawnPicturesRect, which keeps each metatile's attribute bits. |
static inline void | fdPaletteFadeApplySource (Sint32 value, Sint32 mode) | Sets the colours the screen shows now, where a script's palette fade starts. |
static inline void | fdPaletteFadeApplyTarget (Sint32 value, Sint32 mode) | Sets the colours a script's palette fade ends on. |
static inline void | fdActorMoveToAndWait (Sint32 actorId, Sint32 x, Sint32 z) | Moves an actor to a point in the pose it has and waits for it. |
static inline void | fdActorWalkToAndWait (Sint32 actorId, Sint32 x, Sint32 z) | Walks an actor to a point and waits for it, then stands it still. |
static inline void | scFieldScriptShowTwoMessagesAndWait (Sint32 first, Sint32 firstX, Sint32 firstY, Sint32 firstPortraitX, Sint32 firstPortraitY, Sint32 second, Sint32 secondX, Sint32 secondY, Sint32 secondPortraitX, Sint32 secondPortraitY, Sint32 delay) | Has two actors speak at once, each window placed by the script (fdScriptShowTwoMessagesAndWait): places in tiles, delay in ticks. |
static inline void | fdActorSetScript (Sint32 actorId, const Sint32 *script) | Gives an actor a movement type (MOVEMENT_TYPE) or an actor script to run; the script goes on meanwhile. |
static inline void | fdActorRunScriptAndWait (Sint32 actorId, const Sint32 *script) | Runs a script, waiting at most 300 ticks for its final command. |
Description
The calls scripts are written in: the small inlines a scene's scripts share,
over the main-image functions they call by those functions' own names
(fdActorFaceDirectionById, fdScriptShowMessageAndWait, fdActorSetSpeedParams
and the rest), whose declarations it holds. An overlay's import stub takes
the name of the function it reaches, except the few the overlays share under
another (syImportActorCreate, syImportScriptSetExitRequest).
script_inline.h's inlines are written over them. A script reads
fdActorFaceDirection(4, FACING_NORTH, 0); scFieldScriptWait(20);.
Macros in detail
MAP_EDIT_STEP_ROW
#define MAP_EDIT_STEP_ROW(sourceX, sourceY, width, height, ticks)
One step of a map edit: copy the width by height metatiles at sourceX, sourceY over the destination, then wait ticks.
Referenced by AlhafraDoorOpening, AlhafraSecondDoorOpening, ChampaSanctumDoorOpening, EasternAlhafraShipDoorOpening, GarohHouseDoorOpening, GarohSanctumDoorOpening, GarohShopDoorOpening, IsletsSnowHutDoorOpening, LemuriaDockCabinDoorOpening, LemuriaDoorOpening, LemurianShipDoorOpening, LemurianShipFirstDoorOpening, LemuriaPalaceDoorOpening, LemuriaWideDoorOpening, LemuriaWindowOpening, LohoDoorOpening, MadraCavernHomeDoorOpening, MadraDoorOpening, MikasallaDoorOpening, MikasallaThirdDoorOpening, MikasallaWideDoorOpening, NaribweDoorOpening, YallamDoorOpening, YallamSanctumDoorOpening, YallamSecondDoorOpening and YallamThirdDoorOpening.
Definition at line 27 of file script.h.
fdActorSetPos
#define fdActorSetPos(actorId, x, z)
Places an actor at a point in whole pixels at once, without walking it there:
fdActorSetPos(8, 880, 502).
Referenced by dbIncreaseItemAndLevelRunMotionTest(), dbPsynergyTest2DouseFire(), dbPsynergyTest2DropActor(), dbPsynergyTest2GrowActor(), dbPsynergyTest2PoundFire(), dbPsynergyTestDropActor(), dbPsynergyTestGrowActor(), dbShopTestDropActor(), dbShopTestGrowActor(), scActorJoinLeader(), scActorRejoinLeader(), scAlhafraMadransArrive(), scAlhafraManorBriggsEscapes(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafranCaveSetUpCave(), scAlhafranCaveSetUpJail(), scAlhafraPirateSeesMadrasMayor(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAncientLemuriaCycloneRevealsRime(), scAncientLemuriaHeadForTheDock(), scAncientLemuriaMeetTheLemurians(), scAncientLemuriaTremorShakesOutRime(), scAnemosInnerSanctumArriveOnElevatorLift(), scAnemosInnerSanctumDropMimicStone(), scAnemosInnerSanctumFinishMovingBlock(), scAnemosInnerSanctumPressSwitch(), scAnkohlRuinsPlaceGreatFaceHalf(), scAnkohlRuinsPushFaceHalfIntoGap(), scAnkohlRuinsPushStoneFaceOffLedge(), scAquaRockDouseSummitWaterStone(), scAquaRockInsideReadParchTablet(), scAquaRockMoaiStepAside(), scAttekaInletAskKradenToSetSail(), scAttekaInletCycloneUncoversGeode(), scAttekaInletHammetsMessengerArrives(), scAttekaInletKradenAsksToSetSail(), scAttekaInletSetUpTheHarbor(), scAttekaInletSetUpTheHeights(), scCavernsWalkIntoPassage(), scChampaCliffCavesAskIfBriggsLearned(), scChampaCliffCavesFightAvimander(), scChampaCliffCavesHandPieceToObaba(), scChampaCliffCavesHidePath(), scChampaCliffCavesObabaAsksForBriggs(), scChampaCliffCavesObabaForgesTrident(), scChampaCliffCavesObabaMournsSalamander(), scChampaCliffCavesObabaStepsForward(), scChampaCliffCavesStartFlash(), scChampaFeizhiArrives(), scChampaMeetAlex() and 279 more.
Definition at line 111 of file script.h.
fdActorSetSpeed
#define fdActorSetSpeed(actorId, speed)
Sets an actor's top speed for the script's next moves, in pixels a tick, and
an acceleration of half that: fdActorSetSpeed(8, 0.5).
Referenced by scActorRejoinLeader(), scAirsRockEnterTheRock(), scAlhafraFatherLetsPartyToCave(), scAlhafraMadransArrive(), scAlhafraManorBriggsEscapes(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafranCaveSetUpJail(), scAlhafraOpenDoorAndEnter(), scAlhafraRoomsGuestsAskForTea(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAncientLemuriaHeadForTheDock(), scAncientLemuriaMeetTheLemurians(), scAncientLemuriaTremorShakesOutRime(), scAnemosInnerSanctumEnterTheRoom(), scAnemosInnerSanctumLightSymbol(), scApojiiIslandsEnterDoor(), scAquaRockArriveFromInside(), scAquaRockArriveFromPassage(), scAquaRockArriveUpStream(), scAquaRockInsideFallThroughWater(), scAquaRockInsideReadParchTablet(), scAttekaInletAskKradenToSetSail(), scAttekaInletHammaShowsTheWings(), scAttekaInletHammetsMessengerArrives(), scAttekaInletKradenAsksToSetSail(), scAttekaInletOpenDoorAndEnter(), scAttekaInletShipwrightsStopTheParty(), scChampaCliffCavesFightAvimander(), scChampaCliffCavesObabaAsksForBriggs(), scChampaCliffCavesObabaForgesTrident(), scChampaCliffCavesObabaMournsSalamander(), scChampaCliffCavesObabaStepsForward(), scChampaCliffCavesOpenDoorAndEnter(), scChampaFeizhiArrives(), scChampaMeetAlex(), scChampaOpenDoorAndEnter(), scChampaSailorsSpotFelix(), scContigoForceFreesDjinni(), scContigoOpenSanctumDoor(), scContigoReturnToNewHome(), scContigoTheReunion(), scDailaEnterDoor(), scDehkanPlateauCannonCracksLastPillar(), scDehkanPlateauCannonCracksPillars(), scDehkanPlateauCannonDropsPoundCube(), scDehkanPlateauCannonFleesEast(), scDehkanPlateauCannonFleesOverCracks(), scDehkanPlateauCannonLeapsAway(), scDehkanPlateauCannonPoundsStake(), scDehkanPlateauStepOnCrack() and 205 more.
Definition at line 124 of file script.h.
fdActorSetSpeedAndAcceleration
#define fdActorSetSpeedAndAcceleration(actorId, speed, acceleration)
Sets an actor's top speed, in pixels a tick, and its acceleration, in pixels a tick per tick, where the acceleration isn't half the speed.
Referenced by scGabombaStatuePinionsThrowLeaderSouth(), scGaiaRockInsidePlaceDollOnCobwebAltar(), scGaiaRockInsidePlaceDollOnEastAltar(), scGaiaRockInsidePlaceDollOnEntranceAltar(), scGaiaRockInsidePlaceDollOnWestAltar(), scMarsLighthouseAerieFaceDoomDragon(), scPushTargetPush(), scShrineOfTheSeaGodBreakFirstBridge(), scShrineOfTheSeaGodBreakSecondBridge(), scTrialRoadPushLog(), scYallamStartRunner() and scYampiDesertCavePushLog().
Definition at line 129 of file script.h.
fdCameraSetSpeed
#define fdCameraSetSpeed(speed)
Sets the camera's top panning speed for the script's next camera moves, in
pixels a tick, and an acceleration of an eighth of that:
fdCameraSetSpeed(0.8).
Referenced by scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAirsRockWhirlwindOpensTheTop(), scAlhafraMadransArrive(), scAnemosInnerSanctumLightSymbol(), scAnemosInnerSanctumPressRoundSwitch(), scApojiiIslandsDouseAquaStone(), scAquaRockDouseSummitWaterStone(), scAquaRockInsidePiersLearnsParch(), scAttekaInletHammaShowsTheWings(), scAttekaInletHammetsMessengerArrives(), scContigoReturnToNewHome(), scContigoTheReunion(), scDehkanPlateauCannonCracksPillars(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraOverhearWorkers(), scEasternAlhafraWorkersTellMayor(), scFireballCarryLeader(), scGabombaStatueChamberWhereIsTheOrb(), scGabombaStatueCogsTurnBack(), scGabombaStatueFocusEnergies(), scGabombaStatueMouseShowsTheWay(), scGabombaStatueSawEnergyFlow(), scGabombaStatueSeeHowItWorks(), scGaiaRockInsideFelixLearnsSand(), scGarohWerewolvesRevealThemselves(), scGondowanCliffsHideoutWarriorsAreFound(), scIdejimaBreakAwayFromGondowan(), scIdejimaCatchUpWithFelix(), scIdejimaFindFelixAndSheba(), scIdejimaRideTheTidalWave(), scIdejimaWonderWhereAlexHasGone(), scInit(), scIsletsTradeWithCow(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseFinishMovingBlock(), scJupiterLighthouseOpenFloor(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthouseWeBeatThem(), scKandoreanTempleFindTheRopeOnTheFloor(), scKandoreanTempleMeetPoi(), scKandoreanTemplePassTheTest(), scKandoreanTempleReceiveLash(), scKandoreanTempleTestTheStudents(), scKibomboAkafubuOffersCrystal(), scKibomboCeremonyStarts(), scKibomboDeadEndByTheStatue(), scKibomboMeetPiers(), scKibomboPiersJoinsParty(), scKibomboPiersThanksParty() and 61 more.
Definition at line 203 of file script.h.
fdCameraSetSpeedAndAcceleration
#define fdCameraSetSpeedAndAcceleration(speed, acceleration)
Sets the camera's top panning speed, in pixels a tick, and its acceleration, in pixels a tick per tick, where the acceleration isn't an eighth of the speed.
Referenced by scAirsRockBlowGust(), scAirsRockInsideBlowGust(), scAquaRockInsideSteamRoomStreamDrains() and scAquaRockInsideUseAquariusStone().
Definition at line 209 of file script.h.
CAMERA_KEEP
#define CAMERA_KEEP (-1)
Keeps a camera axis where it is (fdCameraMoveTo).
Referenced by fdActorDescendInWhirlwind(), fdPsynergyCyclone(), fdPsynergyEndSand(), fdPsynergyRetreat(), fdPsynergySand(), fdWhirlwindCarryLeader(), scAirsRockRideWhirlwind(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAirsRockWhirlwindOpensTheTop(), scAlhafraFindGoldCoins(), scAlhafraMadransArrive(), scAlhafraManorBriggsEscapes(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAncientLemuriaMeetTheLemurians(), scAnemosInnerSanctumLightSymbol(), scAnemosInnerSanctumRideLiftUp(), scAnkohlRuinsCarriedOffLedge(), scAnkohlRuinsLandFromFall(), scAnkohlRuinsPlaceFaceHalves(), scAnkohlRuinsPlaceSecondFloorFaceHalf(), scAnkohlRuinsStartGreatFaceSliding(), scApojiiIslandsDouseAquaStone(), scAquaRockArriveFromPassage(), scAquaRockInsideSteamRoomStreamDrains(), scAquaRockInsideUseAquariusStone(), scAquaRockMoaiStepAside(), scAttekaInletHammaShowsTheWings(), scAttekaInletHammetsMessengerArrives(), scAttekaInletShipwrightsStopTheParty(), scChampaCliffCavesFightAvimander(), scChampaCliffCavesObabaForgesTrident(), scChampaCliffCavesObabaMournsSalamander(), scChampaMeetAlex(), scChampaSailorsSpotFelix(), scContigoReturnToNewHome(), scContigoTheReunion(), scCrackedTileDropIn(), scDehkanPlateauCannonCracksPillars(), scDehkanPlateauCannonDropsPoundCube(), scDehkanPlateauCannonFleesEast(), scDehkanPlateauCannonFleesOverCracks(), scDehkanPlateauCannonLeapsAway(), scDehkanPlateauCannonPoundsStake(), scDehkanPlateauLandFromFall(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraFinishPushingRockUnderLog(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraRollLog() and 163 more.
Definition at line 213 of file script.h.
SCRIPT_CAMERA_FIXED
#define SCRIPT_CAMERA_FIXED(axis)
A camera axis in whole pixels as 16.16 fixed point, CAMERA_KEEP kept; it
reads its argument twice, so the macros below take only constants.
Definition at line 224 of file script.h.
fdCameraMoveTo
#define fdCameraMoveTo(x, y, z, pan)
Pans the camera to a point in whole pixels, or cuts there when pan is 0;
CAMERA_KEEP keeps an axis: fdCameraMoveTo(168, CAMERA_KEEP, 158, 1).
Referenced by fdWhirlwindCarryLeader(), scAirsRockRideWhirlwind(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAirsRockWhirlwindOpensTheTop(), scAlhafraFindGoldCoins(), scAlhafraMadransArrive(), scAlhafraManorBriggsEscapes(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAncientLemuriaMeetTheLemurians(), scAnemosInnerSanctumLightSymbol(), scAnemosInnerSanctumRideLiftUp(), scAnkohlRuinsCarriedOffLedge(), scAnkohlRuinsLandFromFall(), scAnkohlRuinsPlaceFaceHalves(), scAnkohlRuinsPlaceSecondFloorFaceHalf(), scAnkohlRuinsStartGreatFaceSliding(), scApojiiIslandsDouseAquaStone(), scAquaRockArriveFromPassage(), scAquaRockDouseSummitWaterStone(), scAquaRockInsideSteamRoomStreamDrains(), scAquaRockInsideUseAquariusStone(), scAquaRockMoaiStepAside(), scAttekaInletHammaShowsTheWings(), scAttekaInletHammetsMessengerArrives(), scAttekaInletShipwrightsStopTheParty(), scChampaCliffCavesFightAvimander(), scChampaCliffCavesObabaForgesTrident(), scChampaCliffCavesObabaMournsSalamander(), scChampaMeetAlex(), scChampaSailorsSpotFelix(), scContigoReturnToNewHome(), scContigoTheReunion(), scCrackedTileDropIn(), scDehkanPlateauCannonCracksLastPillar(), scDehkanPlateauCannonCracksPillars(), scDehkanPlateauCannonDropsPoundCube(), scDehkanPlateauCannonFleesEast(), scDehkanPlateauCannonFleesOverCracks(), scDehkanPlateauCannonLeapsAway(), scDehkanPlateauCannonPoundsStake(), scDehkanPlateauLandFromFall(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraFinishPushingRockUnderLog(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraOverhearWorkers(), scEasternAlhafraRollLog(), scEasternAlhafraShipBriggsIsCaught(), scEasternAlhafraShipMayorArrives() and 170 more.
Definition at line 229 of file script.h.
SHAKE_KEEP
#define SHAKE_KEEP (-1)
Keeps a shake component as it is (fdMapGridSetShake).
Referenced by scActorRollAndCrumble(), scAirsRockCrumbleRock(), scAirsRockInsideBurstDust(), scAirsRockInsideLandInHall(), scAirsRockInsideReadRevealTablet(), scAirsRockInsideWakeEntranceStatue(), scAirsRockInsideWakeHallStatue(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAnkohlRuinsLandFromFall(), scAnkohlRuinsPlaceFaceHalves(), scAnkohlRuinsPlaceSecondFloorFaceHalf(), scAnkohlRuinsRaiseFirstSand(), scAnkohlRuinsRaiseSecondSand(), scAnkohlRuinsSlideGreatFace(), scAquaRockInsideUseAquariusStone(), scAquaRockInsideWaterSinks(), scChampaCliffCavesObabaForgesTrident(), scCrackedTileDropIn(), scCrumblingPillarCollapse(), scCrumblingPillarStep(), scCrumblingPillarStepWithStandIn(), scDehkanPlateauLandFromFall(), scGabombaStatueLandFromFall(), scGaiaRockInsideRaiseDust(), scGaiaRockInsideRaiseSandTablet(), scGaiaRockInsideReadSandTablet(), scGondowanCliffsLeapStumpIntoWater(), scInit(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseFlashSky(), scJupiterLighthouseOpenFloor(), scKandoreanTempleLandFromAbove(), scLeaderCheckCrumblingStep(), scMagmaRockCrumblePillar(), scMagmaRockDropLeaderFromSummit(), scMagmaRockInsideCrumblePillar(), scMagmaRockInsideDrainLava(), scMagmaRockInsideRaiseLava(), scMagmaRockInsideReadBlazeTablet(), scMagmaRockInsideReleaseRocks(), scMagmaRockInsideStepOnTrap(), scMagmaRockKnockLeaderOffWall(), scMagmaRockStepOnCrumblingPillar(), scMagmaRockStepOnTrap(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseStarRoomUseMarsStar(), scMarsLighthouseStarRoomWakeFlameDragons(), scProxMoldHidesInSnow() and 12 more.
Definition at line 260 of file script.h.
SCRIPT_SHAKE_FIXED
#define SCRIPT_SHAKE_FIXED(value)
A shake amplitude in pixels or a decay factor, as a decimal, in 16.16 fixed
point, SHAKE_KEEP kept; it reads its argument twice, so the macro below takes
only constants.
Definition at line 273 of file script.h.
fdMapGridSetShake
#define fdMapGridSetShake(horizontal, vertical, decay)
Shakes the screen by amplitudes in pixels, shrunk each tick by a decay factor
(1 keeps the shake going); SHAKE_KEEP keeps a component:
fdMapGridSetShake(2, 2, 1).
Referenced by RumbleBeforePillarSinks(), scActorRollAndCrumble(), scAirsRockCrumbleRock(), scAirsRockInsideBurstDust(), scAirsRockInsideLandInHall(), scAirsRockInsideReadRevealTablet(), scAirsRockInsideShebaLearnsReveal(), scAirsRockInsideWakeEntranceStatue(), scAirsRockInsideWakeHallStatue(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAnkohlRuinsLandFromFall(), scAnkohlRuinsPlaceFaceHalves(), scAnkohlRuinsPlaceSecondFloorFaceHalf(), scAnkohlRuinsPressFirstSandSwitch(), scAnkohlRuinsPressSecondSandSwitch(), scAnkohlRuinsRaiseFirstSand(), scAnkohlRuinsRaiseSecondSand(), scAnkohlRuinsSlideGreatFace(), scAnkohlRuinsStartGreatFaceSliding(), scAnkohlRuinsStartGreatFaceSlidingUpClose(), scAquaRockInsidePiersLearnsParch(), scAquaRockInsideUseAquariusStone(), scAquaRockInsideWaterSinks(), scChampaCliffCavesFightAvimander(), scChampaCliffCavesObabaForgesTrident(), scChampaCliffCavesPutOutForgeFire(), scChampaCliffCavesStartForgeFire(), scContigoForceFreesDjinni(), scCrackedTileDropIn(), scCrumblingPillarCollapse(), scCrumblingPillarStep(), scCrumblingPillarStepWithStandIn(), scDehkanPlateauLandFromFall(), scGabombaStatueLandFromFall(), scGaiaRockInsideFelixLearnsSand(), scGaiaRockInsideRaiseDust(), scGaiaRockInsideRaiseSandTablet(), scGaiaRockInsideReadSandTablet(), scGondowanCliffsLeapStumpIntoWater(), scInit(), scJupiterLighthouseActivateTheLighthouse(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseFlashSky(), scJupiterLighthouseOpenFloor(), scJupiterLighthouseRaiseBeaconLight(), scKandoreanTempleLandFromAbove(), scLeaderCheckCrumblingStep(), scLemurianShipStepOnLift() and 39 more.
Definition at line 279 of file script.h.
scFieldActorSetMoveTarget
#define scFieldActorSetMoveTarget(actor, x, y, z)
Sends an actor toward a point in whole pixels, where it coasts to a stop.
Referenced by scDehkanPlateauCannonDropsPoundCube(), scEasternAlhafraPoundStake(), scGabombaStatueChamberDropIntoHole(), scGabombaStatueClimbDownEyesLadder(), scGabombaStatueClimbDownLadder(), scIsletsBirdReturnsToNest(), scIsletsLonesomeGeorgeThanks(), scJupiterLighthouseCastTheJupiterStar(), scKandoreanTempleClimbDownTheLadder(), scKandoreanTempleMeetPoi(), scKandoreanTempleReceiveLash(), scKibomboClimbDownLadder(), scLemurianShipDeckEmitSparkle(), scLemurianShipDrawLightToOrb(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseStarRoomUseMarsStar(), scShrineOfTheSeaGodLashRope(), scVenusLighthouseEntranceBirdsFlyOff(), scVenusLighthouseEntranceBirdsLand(), scWorldMapMeetEcho() and scYallamForceLogDown().
Definition at line 324 of file script.h.
Enumerations in detail
TREASURE_SPOT_SPR_MODE
enum TREASURE_SPOT_SPR_MODE
What the scenes ask of a treasure spot's actor (fdActorSetWideSprite).
| Enumerator | Value | Description |
|---|---|---|
TREASURE_SPOT_PUT_AWAY | 0 | Off the map at x and z 0, marked TREASURE_SPOT_ON_METATILE |
TREASURE_SPOT_WIDE | 1 | (or any other) drawn 16 by 8, 4 pixels lower |
Definition at line 53 of file script.h.
RETURN_HOME_MODE
enum RETURN_HOME_MODE
What fdActorReturnHome does with a buried treasure's actor.
| Enumerator | Value | Description |
|---|---|---|
RETURN_HOME_CLEAR_Z | 1 | its z set to 0 |
RETURN_HOME_DUG_UP | 2 | Scoop has dug it up: its flag set, back at its home, dropped from hand. |
Definition at line 61 of file script.h.
Functions in detail
syImportActorCreate
struct ACTOR *syImportActorCreate(Sint32 type, Sint32 x, Sint32 y, Sint32 z)
Creates an actor at (x, y, z), 16.16 pixels, or returns 0 when every slot is
taken (fdActorCreate, through the overlay's own import row).
Referenced by dbShopTestRaiseStatue(), scActorScatterCrumbs(), scAirsRockInsideBlowGust(), scAirsRockInsidePuffVent(), scAirsRockInsideRiseOnLift(), scAirsRockInsideShebaLearnsReveal(), scAirsRockInsideSpawnMotes(), scAirsRockInsideStatueBreathesWhirlwind(), scAirsRockInsideVanishStone(), scAirsRockInsideWakeEntranceStatue(), scAirsRockInsideWakeHallStatue(), scAquaRockCreateActor(), scAquaRockInsidePiersLearnsParch(), scAquaRockSpawnSparkleAtRandom(), scContigoBabyThinks(), scCreateImportedActor(), scDehkanPlateauCrackPillar(), scDehkanPlateauCreatePoundCube(), scDustBurst(), scDustScatter(), scEmotePopTilted(), scFieldActorCreate(), scFieldEffectSpawn(), scFieldEffectSpawnLocal(), scGabombaCatacombsGabombaBestowsPower(), scGabombaCatacombsWadeStream(), scGaiaRockInsideFelixLearnsSand(), scGeyserAdd(), scInit(), scKibomboAkafubuChants(), scKibomboCreateBlackCrystal(), scKibomboRaiseEmbers(), scKibomboRaiseSmoke(), scKibomboSpawnFlame(), scLemurianShipDeckCreateBlackCrystal(), scLemurianShipDrawLightToOrb(), scMagmaRockBuildFlameColumn(), scMagmaRockInsideCreateActor(), scMagmaRockInsideLearnBlaze(), scMagmaRockInsideSpawnDustRing(), scMarsLighthouseStarRoomCreateActor(), scMercuryLighthouseSpawnGlints(), scPlaceTranslucentBlackActorFX(), scQuestionMarkPop(), scSeaOfTimeFacePoseidon(), scShamanVillageBlowAwaySand(), scShamanVillageCreateRodIcon(), scShamanVillageSpawnSmoke(), scTaopoSwampCreateActor(), scTrialRoadAddFountain() and 4 more.
Definition at line 44 of file script.h.
syImportScriptSetExitRequest
void syImportScriptSetExitRequest(Sint32 exit)
Sets the field's exit request (fdScriptSetExitRequest, through the overlay's
own import row).
Referenced by dbIncreaseItemAndLevelRequestExit(), scAlhafraOpenDoorAndEnter(), scAncientLemuriaHeadForTheDock(), scApojiiIslandsDouseAquaStone(), scAquaRockEnterSparklingPassage(), scAquaRockMoaiStepAside(), scAquaRockRideStreamUp(), scAquaRockSinkInside(), scAttekaInletAskKradenToSetSail(), scAttekaInletKradenAsksToSetSail(), scAttekaInletOpenDoorAndEnter(), scCavernsOpenAngaraDoor(), scCavernsWalkIntoPassage(), scChampaCliffCavesOpenDoorAndEnter(), scContigoEnterSanctumEastDoor(), scContigoEnterSanctumMiddleDoor(), scContigoEnterSanctumWestDoor(), scDailaEnterDoor(), scDehkanPlateauCannonPoundsLeaderThrough(), scDehkanPlateauLeaveRoom(), scDehkanPlateauStepOnCrack(), scFieldScriptSetExitRequest(), scGabombaCatacombsTakeSouthTeleportStone(), scGabombaCatacombsUncoverEastTeleportStone(), scGabombaCatacombsUncoverWestTeleportStone(), scGabombaStatueChamberDropIntoHole(), scGabombaStatueChamberGabombaNamesWitchDoctor(), scGabombaStatueChamberWhereIsTheOrb(), scGaiaRockInsidePlaceDollOnCobwebAltar(), scGaiaRockInsidePlaceDollOnEastAltar(), scGaiaRockInsidePlaceDollOnWestAltar(), scIdejimaEnterDoor(), scInit(), scIsletCaveOpenDoorAndEnter(), scJupiterLighthouseLeaveByBlueDoorCyclone(), scJupiterLighthouseLeaveByCyclone(), scJupiterLighthouseLeaveByRedDoorCyclone(), scJupiterLighthouseTeleportToBasement(), scJupiterLighthouseTeleportToEntrance(), scJupiterLighthouseTeleportToGroundFloor(), scKandoreanTempleClimbDownTheLadder(), scKandoreanTempleClimbDownTheWell(), scKandoreanTempleEnterTheCave(), scKandoreanTempleFindTheRopeOnTheFloor(), scKandoreanTempleLeaveByEastVent(), scKandoreanTempleLeaveByWestVent(), scKandoreanTemplePassTheTest(), scKandoreanTempleRideEastLiftDown(), scKandoreanTempleRideWestLiftDown(), scKandoreanTempleSinkIntoTheSteam() and 57 more.
Definition at line 70 of file script.h.
fdScriptShowMessage
static inline void fdScriptShowMessage(Sint32 speaker, Sint32 flags)
Shows the script's next line of dialogue and waits for the player to read it.
References fdScriptShowMessageAndWait() and Sint32.
Referenced by dbPsynergyTestPracticeShout(), dbPsynergyTestStartleAfterBlaze(), dbPsynergyTestStartleAgain(), scAlhafraFatherLetsPartyToCave(), scAlhafranCaveTalkToBriggs(), scAlhafraRoomsAlexHearsOfBriggs(), scAlhafraRoomsHostTellsOfRepairs(), scAlhafraRoomsReadAlexsMind(), scAlhafraRoomsTalkToDemandingGuest(), scAlhafraRoomsTalkToHostess(), scApojiiIslandsAskAboutWarriors(), scApojiiIslandsFatherSeesTheStone(), scApojiiIslandsMindReadSon(), scApojiiIslandsTalkToGeneralStorekeeper(), scApojiiIslandsTalkToInnkeeper(), scApojiiIslandsTalkToSon(), scAquaRockInsideReadParchTablet(), scAttekaInletHammaShowsTheWings(), scAttekaInletShipwrightsStopTheParty(), scChampaAskAboutAnkohlRuins(), scChampaAskIfSailorsAreWellLiked(), scChampaMeetAlex(), scChampaTalkToPracticingBoy(), scChampaTellOfBriggsTreasure(), scChampaTellOfObaba(), scContigoReturnToNewHome(), scContigoTheReunion(), scGabombaStatueChamberAkafubuOffersToHelp(), scGabombaStatueChamberGabombaNamesWitchDoctor(), scGabombaStatueChamberWhereIsTheOrb(), scGabombaStatueFocusEnergies(), scGabombaStatueHearTheOffering(), scGabombaStatueKradenNoticesTiming(), scGabombaStatueSawEnergyFlow(), scGabombaStatueSeeHowItWorks(), scGaiaRockInsideMeetSusa(), scGaiaRockInsideReadSandTablet(), scGaiaRockInsideReadSusasMind(), scGaiaRockInsideSusaSaysMoveAside(), scGaiaRockInsideTalkToSusa(), scGaiaRockMindReadSusa(), scGaiaRockTalkToSusa(), scGarohAskAboutFullMoon(), scGarohAskAboutSecret(), scGarohAskIfSawWerewolf(), scGondowanCliffsTalkToDog(), scGondowanCliffsTurnBackToHelpPiers(), scIdejimaBreakAwayFromGondowan(), scIdejimaCatchUpWithFelix(), scIdejimaFelixWakes() and 209 more.
Definition at line 77 of file script.h.
fdScriptOpenMessage
static inline Sint32 fdScriptOpenMessage(Sint32 speaker, Sint32 flags)
Opens the script's next line and returns its window once the text is typed out, so the script can act while it is still on screen.
References fdMessageShowAtActor() and Sint32.
Referenced by scAlhafranCaveTalkToBriggs(), scAlhafraPirateSeesMadrasMayor(), scAlhafraRoomsAlexHearsOfBriggs(), scAncientLemuriaMeetTheLemurians(), scApojiiIslandsAskAboutWarriors(), scChampaAskAboutAnkohlRuins(), scChampaAskIfSailorsAreWellLiked(), scChampaCliffCavesFightAvimander(), scChampaFeizhiArrives(), scChampaMeetAlex(), scChampaTellOfBriggsTreasure(), scContigoTheReunion(), scEasternAlhafraAskIfFinished(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraShipBriggsIsCaught(), scEasternAlhafraShipMayorArrives(), scEasternAlhafraTalkToSailor(), scEasternAlhafraWorkersSeeBlockGone(), scEasternAlhafraWorkersTellMayor(), scGabombaStatueSeeHowItWorks(), scGarohAskAboutFullMoon(), scGarohAskAboutSecret(), scGarohAskIfSawWerewolf(), scGarohMahaTellsTheLegend(), scGarohWerewolfRunsPast(), scGarohWerewolvesRevealThemselves(), scIdejimaBreakAwayFromGondowan(), scIdejimaFelixWakes(), scIdejimaWakeJenna(), scIdejimaWonderWhereAlexHasGone(), scInit(), scIzumoRoomsGiveUzumeTheDoll(), scIzumoRoomsRecognizeTheHeroes(), scJupiterLighthouseAlexHealsTheParty(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthouseWeBeatThem(), scKandoreanTempleMeetPoi(), scKibomboAkafubuOffersCrystal(), scKibomboPiersJoinsParty(), scLemuriaDockAskSettingOff(), scLemuriaMarvelAtCity(), scLemurianShipDeckReachPiersShip(), scLemurianShipDeckSightMenardisShip(), scLemurianShipDeckTakeTheTiller(), scLemuriaOfferSpringLuck(), scLemuriaPalaceMeetKingHydros(), scLemuriaRoomsAskAboutDraughts(), scLemuriaRoomsAskFromBeyondSeaOfTime() and 68 more.
Definition at line 84 of file script.h.
fdScriptAskYesNo
static inline Sint32 fdScriptAskYesNo(Sint32 speaker, Sint32 flags)
Puts the current line to the player as a question and shows the line that answers it; returns 0 for yes.
References fdScriptAskYesNoAndShowResponse() and Sint32.
Referenced by scGaiaRockSusaAsksAboutTheSerpent(), scGaiaRockTalkToSusa(), scIdejimaWonderWhereAlexHasGone(), scKibomboPiersJoinsParty(), scProxAskAboutIgloos(), scShamanVillageAskAboutOtherSide(), scShamanVillageTalkToInnkeeper() and scYampiDesertTalkToTraveler().
Definition at line 91 of file script.h.
fdActorGet
static inline struct ACTOR *fdActorGet(Sint32 actorId)
Looks up an actor for a script, NULL when it doesn't exist (fdActorGetById).
References fdActorGetById() and Sint32.
Referenced by dbPsynergyTest2DropActor(), dbPsynergyTest2GrowActor(), dbPsynergyTest2RaiseStatue(), dbPsynergyTest2ScatterRocks(), dbPsynergyTestDropActor(), dbPsynergyTestGrowActor(), dbPsynergyTestPickUpItem(), dbPsynergyTestRaiseStatue(), dbPsynergyTestShowRings(), fdActorLaunchAhead(), fdWhirlwindCarryLeader(), gmPartyTakeFallDamage(), KNOCK_BACK(), scActorAttach(), scActorFreeze(), scActorHeadToward(), scActorPopQuestionMarks(), scActorRaiseFromMetatile(), scActorRollAndCrumble(), scActorsSetMetatilesOpen(), scActorWaitToLand(), scActorWaitToLandWithSound(), scAirsRockDropOffLedge(), scAirsRockMoveFirstPillar(), scAirsRockMoveSecondPillar(), scAirsRockMoveThirdPillar(), scAirsRockSetLedgeMetatilesByLevel(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAirsRockWhirlwindOpensTheTop(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafranCaveCheckUpperLevel(), scAlhafranCaveDrawCrateSprite(), scAlhafranCaveSetUpCave(), scAlhafranCaveSetUpJail(), scAnemosInnerSanctumArriveOnElevatorLift(), scAnemosInnerSanctumArriveOnMimicStonesLift(), scAnemosInnerSanctumDropMimicStone(), scAnemosInnerSanctumEndSand(), scAnemosInnerSanctumEnterTheRoom(), scAnemosInnerSanctumFinishMovingBlock(), scAnemosInnerSanctumMimicLeader(), scAnemosInnerSanctumOpenMimicStoneDoor(), scAnemosInnerSanctumPressRoundSwitch(), scAnemosInnerSanctumRideLiftUp(), scAnemosInnerSanctumSinkIntoSand(), scAnemosInnerSanctumStartMimicStone(), scAnemosInnerSanctumStepOffSwitch(), scAnkohlRuinsCarriedOffLedge(), scAnkohlRuinsFinishMovingPillar() and 536 more.
Definition at line 97 of file script.h.
fdActorSetPosFX
static inline void fdActorSetPosFX(Sint32 actorId, FIXED x, FIXED z)
Places an actor at a point at once, without walking it there; x and z are
16.16 fixed-point pixels, as a stored position holds them.
References fdActorSetHorizontalPosWithTerrain() and Sint32.
Referenced by scAnemosInnerSanctumFinishMovingBlock(), scGaiaRockInsideStartPlatforms(), scInit(), scIsletsInitSeaOfTime(), scJupiterLighthouseThrowOutBlock(), scLeaderRiseFromWater(), scLemurianShipParchHold(), scLemurianShipSetUpHold(), scMarsLighthouseEntranceTeleportFromNorthCircle(), scMarsLighthouseTowersUncoverFlameThrower(), scSeaOfTimePlaceRock(), scShrineOfTheSeaGodLashRope(), scStaffCreditShowBeacon(), scYampiDesertCaveMoveSandRipple() and scYampiDesertCaveScoopDjinni().
Definition at line 104 of file script.h.
fdActorSetSpeedFX
static inline void fdActorSetSpeedFX(Sint32 actorId, FIXED speed, FIXED acceleration)
Sets how fast an actor moves, and how quickly it gets up to speed, for the script's next moves; both are 16.16 fixed point, as stored values hold them.
References fdActorSetSpeedParams() and Sint32.
Referenced by scAirsRockInsideReadRevealTablet(), scGarohWerewolfRunsPast() and scJupiterLighthousePartyArrivesAtTheFight().
Definition at line 116 of file script.h.
fdActorSetDestination
static inline void fdActorSetDestination(Sint32 actorId, Sint32 x, Sint32 z)
Moves an actor to a point in the pose it has, without walking; the script carries on meanwhile.
References fdActorSetDestinationById() and Sint32.
Referenced by scActorHeadToward(), scActorJoinLeader(), scActorRejoinLeader(), scAquaRockInsideReadParchTablet(), scAquaRockMoaiStepAside(), scAttekaInletCycloneUncoversGeode(), scEasternAlhafraGiveUpOnMastBlock(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraShipKnockDownTheBread(), scGaiaRockInsidePlaceDollOnCobwebAltar(), scGaiaRockInsidePlaceDollOnEastAltar(), scGaiaRockInsidePlaceDollOnEntranceAltar(), scGaiaRockInsidePlaceDollOnWestAltar(), scGaiaRockInsideReadSandTablet(), scGondowanCliffsLeapStumpIntoWater(), scIdejimaWakeJenna(), scIdejimaWakeKraden(), scInit(), scIsletsGiveTurtle(), scIsletsLonesomeGeorgeThanks(), scIzumoRoomsGiveUzumeTheDoll(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthouseWeBeatThem(), scKibomboMountainsTremorDropsBone(), scLemuriaAdmirePalace(), scLemuriaDockMoveKraden(), scLemuriaKeepLookingAround(), scLemuriaMarvelAtCity(), scLemurianShipDeckKradenGoesToFindShip(), scLemurianShipDeckReturnToShip(), scLemurianShipDeckRunToFelix(), scLemurianShipDeckSetOutForMadra(), scLemurianShipDeckSightMenardisShip(), scLemurianShipLeapIntoHydra(), scLemuriaPalaceMeetKingHydros(), scLemuriaRoomsMeetLunpa(), scLemuriaRoomsPiersVisitsUncle(), scLohoFireCannon(), scMadraInspectPartyAtGate(), scMadraRoomsShinAngersPiers(), scMadraRoomsWalkIntoLeader(), scMadraStopPartyAfterRaid(), scMagmaRockInsideReadBlazeTablet(), scMagmaRockInsideReleaseRocks(), scProxGiveThanksForBeacon(), scShamanVillageCaveBeatGladiators(), scSuhallaGateAfterPunchAntBattle(), scSuhallaGateFightPunchAnt(), scSuhallaGatePointToMeetingSpot() and 14 more.
Definition at line 134 of file script.h.
fdActorSetDestinationOffset
static inline void fdActorSetDestinationOffset(Sint32 actorId, Sint32 dx, Sint32 dz)
Moves an actor some distance from where it stands, without waiting for it.
References fdActorSetDestinationOffsetById() and Sint32.
Referenced by scAlhafranCaveSetUpJail(), scAnemosInnerSanctumEnterTheRoom(), scAnkohlRuinsCarriedOffLedge(), scChampaCliffCavesOpenDoorAndEnter(), scChampaOpenDoorAndEnter(), scContigoScatterWeedsOverBrambleSeed(), scEasternAlhafraRollLog(), scGaiaRockInsideCycloneClearsTwinAltarsBushes(), scGaiaRockInsidePlaceDollOnCobwebAltar(), scGaiaRockInsidePlaceDollOnEntranceAltar(), scGarohOpenDoorAndEnter(), scIsletCaveOpenDoorAndEnter(), scIsletsPushLogIntoWater(), scIzumoRoomsRecognizeTheHeroes(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseJennaJoinsTheFight(), scJupiterLighthouseOpenFloor(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthouseScatterWeedsOverMint(), scJupiterLighthouseShebaJoinsTheFight(), scJupiterLighthouseThrowOutBlock(), scLeaderSinkAway(), scLemuriaCycloneHardNutWeeds(), scLemuriaDockEnterDoor(), scLemurianShipOpenDoor(), scLemuriaOpenDoorAndEnter(), scLohoClimbDownLadder(), scLohoEnterDoor(), scLohoFireCannon(), scLohoOpenDoorAndEnter(), scMadraClimbDownLadder(), scMadraRoomsShinAngersPiers(), scMarsLighthouseStarRoomWakeFlameDragons(), scMikasallaClimbDownLadder(), scNorthernReachesFireMagmaBall(), scProxComeDownStairs(), scPushTargetPush(), scSettlementsClimbDownLadder(), scSettlementsSlideCrateDownFalls(), scShamanVillageCaveEddyFlees(), scShamanVillageCaveMeetGladiators(), scShamanVillageShebaClearsSand(), scTaopoSwampPushExitRockIn(), scTaopoSwampPushPillarRockIn(), scTaopoSwampUncoverBrambleSeed(), scTrialRoadShowTraps(), scVenusLighthouseEntranceSoldiersAmbushParty(), scYallamEnterDoor(), scYallamUncoverAntidote() and 2 more.
Definition at line 140 of file script.h.
fdActorWalkTo
static inline void fdActorWalkTo(Sint32 actorId, Sint32 x, Sint32 z)
Walks an actor to a point; the script goes on while it walks.
References fdActorWalkToById() and Sint32.
Referenced by scAirsRockEnterTheRock(), scAirsRockInsideReadRevealTablet(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAncientLemuriaTremorShakesOutRime(), scAnemosInnerSanctumLightSymbol(), scAquaRockInsideOpenDoorToTablet(), scAquaRockInsideReadParchTablet(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraShipKnockDownTheBread(), scEasternAlhafraWorkersTellMayor(), scGabombaStatueFocusEnergies(), scGaiaRockInsideMeetSusa(), scGaiaRockInsideReadSandTablet(), scGaiaRockInsideRestoreSusa(), scIdejimaRideTheTidalWave(), scIdejimaWonderWhereAlexHasGone(), scInit(), scIsletsArriveBackAtIsland(), scIsletsGiveTurtle(), scIzumoRoomsRecognizeTheHeroes(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthouseRideTheBeam(), scJupiterLighthouseWeBeatThem(), scKibomboMountainsGuardsReport(), scKibomboMountainsGuardsTurnPartyBack(), scKibomboPiersRefusesToLeave(), scLemurianShipDeckReachPiersShip(), scLemuriaPalaceMeetKingHydros(), scLinkLobbyEnterBattle(), scLohoFireCannon(), scMadraDrawbridgeBlockBridge(), scMadraGrantPassageToOsenia(), scMadraRoomsGiveHealingFungus(), scMagmaRockEnterCave(), scMagmaRockInsideOpenStairs(), scMagmaRockInsideReadBlazeTablet(), scNorthernReachesFireMagmaBall(), scSeaOfTimeFacePoseidon(), scShamanVillageCaveMeetGladiators(), scShamanVillageExplainTrialRules(), scShamanVillageMeetMoapa(), scShamanVillageRestartTrial(), scShamanVillageShebaClearsSand(), scSuhallaGatePunchAntJumpsOutAsLeaderStepsAside(), scSuhallaGateRuffianSpotsParty(), scTrialRoadBeatMoapa(), scTrialRoadGatherAtPeak(), scTrialRoadReachPeakFirst() and 5 more.
Definition at line 147 of file script.h.
fdActorWalkBy
static inline void fdActorWalkBy(Sint32 actorId, Sint32 dx, Sint32 dz)
Walks an actor some distance from where it stands, without waiting for it to get there.
References fdActorWalkByById() and Sint32.
Referenced by scAlhafraMadransArrive(), scAlhafranCaveChauchaAndEoleoVisit(), scAncientLemuriaMeetTheLemurians(), scChampaCliffCavesObabaMournsSalamander(), scChampaFeizhiArrives(), scChampaMeetAlex(), scChampaSailorsSpotFelix(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraShipBriggsIsCaught(), scEasternAlhafraShipMayorArrives(), scEasternAlhafraWorkersSeeBlockGone(), scEasternAlhafraWorkersTellMayor(), scGarohWerewolvesRevealThemselves(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseFlashSky(), scJupiterLighthouseIsaacAndIvanAreHurt(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseJennaJoinsTheFight(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthouseShebaJoinsTheFight(), scLemuriaPalaceMeetKingHydros(), scLohoFireCannon(), scMadraInspectPartyAtGate(), scMadraRoomsWelcomePiersHome(), scMadraStopPartyAfterRaid(), scNorthernReachesFireMagmaBall(), scShamanVillageCaveEddyFlees(), scShamanVillageCaveMeetGladiators(), scVenusLighthouseEntranceRuffianWaitsForBackup(), scVenusLighthouseEntranceWakeUp(), scWorldMapDeliverLohoCannon() and scWorldMapFightBanditAndThieves().
Definition at line 154 of file script.h.
fdActorFaceDirection
static inline void fdActorFaceDirection(Sint32 actorId, Sint32 facing, Sint32 ticks)
Turns an actor to a direction and holds the script for a few ticks.
References fdActorFaceDirectionById() and Sint32.
Referenced by dbPsynergyTestPracticeShout(), scAirsRockDropOffLedge(), scAirsRockInsideReadRevealTablet(), scAlhafraFatherLetsPartyToCave(), scAlhafraFindGoldCoins(), scAlhafraGiveBreadToHungryBoy(), scAlhafraMadransArrive(), scAlhafraManorBriggsEscapes(), scAlhafraManorPointOutAirsRock(), scAlhafraManorTellOfTheEasternSea(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraPirateSeesMadrasMayor(), scAlhafraRoomsGuestsAskForTea(), scAlhafraRoomsMeetAlex(), scAlhafraRoomsReadAlexsMind(), scAlhafraRoomsTalkToDemandingGuest(), scAlhafraSailorToldToWork(), scAncientLemuriaMeetTheLemurians(), scAnemosInnerSanctumRideLiftUp(), scApojiiIslandsFatherSeesTheStone(), scApojiiIslandsTalkToSon(), scAquaRockInsideBlockMoaiWithPillar(), scAquaRockInsideReadParchTablet(), scAquaRockInsideSteamRoomStreamDrains(), scAquaRockInsideUseAquariusStone(), scAquaRockInsideWalkToParchTablet(), scAttekaInletHammaShowsTheWings(), scAttekaInletHammetsMessengerArrives(), scAttekaInletShipwrightsStopTheParty(), scChampaCliffCavesAskIfBriggsLearned(), scChampaCliffCavesObabaForgesTrident(), scChampaCliffCavesObabaMournsSalamander(), scChampaCliffCavesObabaOffersHelp(), scChampaFeizhiArrives(), scChampaMeetAlex(), scChampaSailorsSpotFelix(), scContigoBabyThinks(), scContigoReturnToNewHome(), scContigoTheReunion(), scDailaMeetAlex(), scEasternAlhafraAskIfFinished(), scEasternAlhafraAskToHelpWithMast(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraOverhearWorkers(), scEasternAlhafraShipBriggsIsCaught(), scEasternAlhafraShipEoleoLifts(), scEasternAlhafraShipMayorArrives(), scEasternAlhafraTalkToSailor(), scEasternAlhafraWorkersSeeBlockGone() and 164 more.
Definition at line 160 of file script.h.
fdActorFaceActor
static inline void fdActorFaceActor(Sint32 actorId, Sint32 target, Sint32 ticks)
Has one actor look at another at once, then pauses the script.
References fdActorFaceActorById() and Sint32.
Referenced by dbPsynergyTestStartleAfterBlaze(), dbPsynergyTestStartleAgain(), scApojiiIslandsFatherSeesTheStone(), scApojiiIslandsTalkToSon(), scEasternAlhafraTalkToSailor(), scGabombaStatueMouseShowsTheWay(), scGaiaRockInsideMeetSusa(), scGaiaRockInsidePlaceDollOnEntranceAltar(), scGaiaRockInsideTalkToSusa(), scGarohLittleWerewolfThanks(), scGondowanCliffsTurnBackToHelpPiers(), scIdejimaWakeJenna(), scIdejimaWakeKraden(), scInit(), scIsletsBirdReturnsToNest(), scIsletsGiveTurtle(), scIsletsRideBackToIsland(), scIsletsTalkToPengulina(), scIsletsTalkToPengus(), scIsletsTalkToSailorsSon(), scIsletsTalkToTreasureHunters(), scIsletsTradeWithBird(), scIsletsTradeWithDog(), scIzumoRoomsRecognizeTheHeroes(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthousePartyArrivesAtTheFight(), scKandoreanTempleReceiveLash(), scKibomboMountainsDogSpotsParty(), scKibomboMountainsDropOffLedge(), scKibomboMountainsGuardSpotsParty(), scKibomboMountainsGuardsReport(), scKibomboMountainsGuardsTurnPartyBack(), scLemuriaDockAskSettingOff(), scLemurianShipDeckReturnToShip(), scLemuriaOfferSpringLuck(), scLemuriaPalaceMeetKingHydros(), scLemuriaRoomsNoticeMindRead(), scLinkLobbyChooseBattleMode(), scLinkLobbyChooseDebugParamSet(), scLinkLobbyEnterBattle(), scLinkLobbyExplainPartyOrder(), scLinkLobbyReportMonsterRecord(), scLinkLobbyReportWinTallies(), scLinkLobbyTakeSongRequest(), scLinkLobbyTalkByProgress(), scLinkLobbyTalkToVisitor(), scLohoFireCannon(), scMadraAskAboutBriggs(), scMadraAskAboutJenna(), scMadraAskComingThroughHole() and 26 more.
Definition at line 167 of file script.h.
fdActorShowEmote
static inline struct ACTOR * fdActorShowEmote(Sint32 actorId, Sint32 emote, Sint32 ticks)
Pops an emote bubble up over an actor, then lets ticks pass before the script goes on.
References fdActorShowEmoteById() and Sint32.
Referenced by scAlhafraMadransArrive(), scAlhafraManorBriggsEscapes(), scAlhafraManorComplainAboutTheMayor(), scAlhafraManorDefendTheMayor(), scAlhafraManorTellOfTheEasternSea(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraPirateSeesMadrasMayor(), scAlhafraRoomsGuestsAskForTea(), scAlhafraRoomsHostTellsOfRepairs(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAlhafraRoomsTalkToHostess(), scAncientLemuriaMeetTheLemurians(), scAquaRockInsideReadParchTablet(), scAttekaInletHammaShowsTheWings(), scAttekaInletHammetsMessengerArrives(), scChampaCliffCavesObabaForgesTrident(), scChampaFeizhiArrives(), scChampaMeetAlex(), scChampaSailorsSpotFelix(), scDailaMeetAlex(), scDehkanPlateauCannonCracksLastPillar(), scEasternAlhafraAskIfFinished(), scEasternAlhafraAskToHelpWithMast(), scEasternAlhafraOverhearWorkers(), scEasternAlhafraShipBriggsIsCaught(), scEasternAlhafraShipMayorArrives(), scEasternAlhafraTalkToSailor(), scGabombaCatacombsGabombaBestowsPower(), scGabombaStatueChamberGabombaNamesWitchDoctor(), scGabombaStatueChamberWhereIsTheOrb(), scGabombaStatueMouseShowsTheWay(), scGabombaStatueSawEnergyFlow(), scGabombaStatueWatchTheChargesStick(), scGaiaRockInsideCycloneClearsCobweb(), scGaiaRockInsideMeetSusa(), scGaiaRockInsideReadSandTablet(), scGarohFollowWerewolfIntoCave(), scGarohMahaTellsTheLegend(), scGarohWerewolfRunsPast(), scGarohWerewolvesRevealThemselves(), scIdejimaBreakAwayFromGondowan(), scIdejimaCatchUpWithFelix(), scIdejimaFindFelixAndSheba(), scIdejimaRideTheTidalWave(), scIdejimaWakeJenna(), scIdejimaWakeKraden(), scIdejimaWonderWhereAlexHasGone(), scInit(), scIsletsLonesomeGeorgeThanks(), scIzumoRoomsGiveUzumeTheDoll() and 65 more.
Definition at line 174 of file script.h.
scFieldActorShowEmote
static inline void scFieldActorShowEmote(Sint32 actorId, Sint32 emote, Sint32 ticks)
fdActorShowEmote, for a script that leaves its result unread.
References fdActorShowEmoteById() and Sint32.
Referenced by dbPsynergyTestPracticeShout(), dbPsynergyTestStartleAfterBlaze(), dbPsynergyTestStartleAgain(), scApojiiIslandsFatherSeesTheStone(), scChampaCliffCavesFightAvimander(), scChampaCliffCavesObabaMournsSalamander(), scContigoBabyThinks(), scContigoReturnToNewHome(), scContigoShowWorkerPuzzled(), scContigoTheReunion(), scDailaRoomsPracticeShout(), scDailaRoomsStartleAtTheLeader(), scEasternAlhafraAskIfFinished(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraWorkersSeeBlockGone(), scEasternAlhafraWorkersTellMayor(), scGabombaStatueSeeHowItWorks(), scGabombaStatueWatchTheChargesStick(), scGarohLittleWerewolfThanks(), scGarohWerewolfPeersFromCave(), scGondowanCliffsTurnBackToHelpPiers(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseFinishMovingBlock(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseJennaJoinsTheFight(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthouseShebaJoinsTheFight(), scJupiterLighthouseWeBeatThem(), scKibomboGabombaRespondsToGift(), scKibomboPiersHasForgottenParty(), scKibomboPiersTakesPartyForEnemies(), scLemurianShipJellyFlees(), scLemuriaPalaceMeetKingHydros(), scLemuriaRoomsMeetLunpa(), scLinkLobbyTalkByProgress(), scLohoFireCannon(), scMadraAskComingThroughHole(), scMadraAskComingThroughSealedHole(), scMadraGrantPassageToOsenia(), scMadraInspectPartyAtGate(), scMadraKarstAsksAboutMenardi(), scMadraKarstCallsForMenardi(), scMadraMeetKarst(), scMadraMindReadBriggsFan(), scMadraMindReadKarst(), scMadraRoomsShinAngersPiers(), scMadraRoomsTalkToManFocusingOnIce(), scMadraStopPartyAfterRaid(), scMarsLighthouseAerieFindWhoTheDragonWas() and 32 more.
Definition at line 181 of file script.h.
fdActorSetAttachedEffect
static inline void fdActorSetAttachedEffect(Sint32 actorId, Sint32 effect)
Attaches a field effect to an actor, takes it off, or plays one over it once.
References fdEffectSetAttached() and Sint32.
Referenced by gmPartyTakeFallDamage(), scAlhafraManorBriggsEscapes(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraRoomsGuestsAskForTea(), scAlhafraRoomsMeetAlex(), scAncientLemuriaMeetTheLemurians(), scAnkohlRuinsCarriedOffLedge(), scAnkohlRuinsLandFromFall(), scApojiiIslandsFlowWithStream(), scAquaRockRideStreamUp(), scChampaCliffCavesObabaForgesTrident(), scChampaCliffCavesObabaMournsSalamander(), scChampaMeetAlex(), scChampaSailorsSpotFelix(), scContigoReturnToNewHome(), scContigoTheReunion(), scCrackedTileDropIn(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraOverhearWorkers(), scEasternAlhafraShipBriggsIsCaught(), scEasternAlhafraShipMayorArrives(), scEasternAlhafraWorkersSeeBlockGone(), scEasternAlhafraWorkersTellMayor(), scGabombaStatueChamberAkafubuOffersToHelp(), scGabombaStatueChamberAkafubuReachesChamber(), scGabombaStatueChamberGabombaNamesWitchDoctor(), scGabombaStatueChamberWhereIsTheOrb(), scGabombaStatueEndRide(), scGabombaStatueLandFromFall(), scGabombaStatueSawEnergyFlow(), scGaiaRockInsideCaskEmpties(), scGaiaRockInsideCycloneClearsTwinAltarsBushes(), scGaiaRockInsideRaiseDust(), scGaiaRockInsideSusaPushesCask(), scGaiaRockInsideSusaThrowsCask(), scGarohFollowWerewolfIntoCave(), scGarohMahaTellsTheLegend(), scGarohWerewolfRunsPast(), scGarohWerewolvesRevealThemselves(), scGondowanCliffsHideoutWarriorsAreFound(), scGondowanCliffsTurnBackToHelpPiers(), scIdejimaCatchUpWithFelix(), scIdejimaFindFelixAndSheba(), scIdejimaRideTheTidalWave(), scIdejimaWakeKraden(), scIdejimaWonderWhereAlexHasGone(), scInit(), scIsletsTalkToTreasureHunters(), scIzumoRoomsRecognizeTheHeroes() and 50 more.
Definition at line 188 of file script.h.
fdCameraSetSpeedFX
static inline void fdCameraSetSpeedFX(FIXED speed, FIXED acceleration)
Sets how fast the camera pans for the script's next camera moves, and how quickly it gets up to speed, both in 16.16 fixed point.
References fdCameraSetSpeedParams().
Referenced by scAirsRockInsideWakeEntranceStatue() and scAirsRockInsideWakeHallStatue().
Definition at line 195 of file script.h.
fdCameraMoveToFX
static inline void fdCameraMoveToFX(FIXED x, FIXED y, FIXED z, Sint32 pan)
Pans the camera to a point in the room, or cuts there when pan is 0; the axes
are 16.16 fixed-point pixels, or CAMERA_KEEP.
References fdCameraMoveWithinMapBounds() and Sint32.
Referenced by scAirsRockBlowGust(), scAirsRockInsideBlowGust(), scAirsRockInsideLandInHall(), scAirsRockInsideRideWhirlwind(), scAirsRockInsideWakeEntranceStatue(), scAirsRockInsideWakeHallStatue(), scAnemosInnerSanctumLightSymbol(), scGabombaStatueInitEyes(), scGabombaStatueSawEnergyFlow(), scInit(), scLeaderRiseFromWater(), scMagmaRockFireFromStatue(), scMagmaRockInsideFireFromStatue(), scMagmaRockInsideLearnBlaze(), scMarsLighthouseEntranceWatchFireballCrackIce(), scMarsLighthouseEntranceWatchFireballMeltIce(), scSeaOfTimeRaiseRock(), scShamanVillageShowShamansRod(), scStaffCreditShowBeacon(), scStoneHeadBurstOut(), scTreasureIsleRaiseSpikyRock() and scWorldMapJitterTransitionCamera().
Definition at line 217 of file script.h.
fdMapGridCopyMetatiles
static inline void fdMapGridCopyMetatiles(Sint32 srcX, Sint32 srcY, Sint32 width, Sint32 height, Sint32 destX, Sint32 destY)
Changes part of the room in place, copying whole metatiles, metatile tiles and metatile behavior alike, from another part of the map.
References fdMapCopyMetatilesRect() and Sint32.
Referenced by dbPsynergyTest2DigMetatiles(), dbPsynergyTestDigMetatiles(), dbPsynergyTestLightTorch(), dbPsynergyTestParchMetatiles(), dbPsynergyTestPoundTorch(), scAnkohlRuinsHideGap(), scAnkohlRuinsPlaceFaceHalves(), scAnkohlRuinsPlaceSecondFloorFaceHalf(), scAnkohlRuinsPressFirstSandSwitch(), scAnkohlRuinsPressSecondSandSwitch(), scAnkohlRuinsPushFaceHalfIntoGap(), scAnkohlRuinsRaiseFirstSand(), scAnkohlRuinsRaiseSecondSand(), scAnkohlRuinsRevealGap(), scAnkohlRuinsStartMovingPillar(), scAquaRockDouseWaterStone(), scAquaRockInsideDrainStream(), scAquaRockInsideParchSteamRoomMoai(), scAquaRockSetUpStreams(), scAquaRockUpdateStreams(), scCrackedTileCrack(), scCrackedTileFall(), scCrackedTileFind(), scEasternAlhafraPlaceClearedDebris(), scGabombaStatueLayChannel(), scGabombaStatuePoundBlock(), scGabombaStatueRedrawChannel(), scGabombaStatueSetBlocksRaised(), scGaiaRockInsidePlaceDollOnCobwebAltar(), scGaiaRockInsidePlaceDollOnEastAltar(), scGaiaRockInsidePlaceDollOnEntranceAltar(), scGaiaRockInsidePlaceDollOnWestAltar(), scInit(), scMarsLighthouseEntranceHideTeleportCircle(), scMarsLighthouseEntranceRevealTeleportCircle(), scMarsLighthouseTowersCrackCenterWall(), scMarsLighthouseTowersHideSteppingStones(), scMarsLighthouseTowersRevealSteppingStones(), scMikasallaDryTunnels(), scPrepareMap(), scTaopoSwampFlickerPool(), scTaopoSwampOpenPassage() and scTaopoSwampTremorPillar().
Definition at line 237 of file script.h.
fdMapGridCopyMetatileAttributes
static inline void fdMapGridCopyMetatileAttributes(Sint32 srcX, Sint32 srcY, Sint32 width, Sint32 height, Sint32 destX, Sint32 destY)
Changes where the party can walk in part of the room, copying only the metatiles' metatile behaviors and flags.
References fdMapCopyMetatileAttributeRect() and Sint32.
Referenced by dbPsynergyTest2BurstMetatiles(), scActorRollAndCrumble(), scAirsRockBlowGust(), scAirsRockInsideBlowGust(), scAirsRockMoveSecondPillar(), scAirsRockSetLedgeMetatilesByLevel(), scAirsRockWhirlwindClearsWall(), scAirsRockWhirlwindOpensTheTop(), scAnkohlRuinsFinishMovingPillar(), scAnkohlRuinsRaiseFirstSand(), scAnkohlRuinsRaiseSecondSand(), scAnkohlRuinsSlideGreatFace(), scAnkohlRuinsStartGreatFaceSliding(), scAnkohlRuinsStartGreatFaceSlidingUpClose(), scAnkohlRuinsStartMovingPillar(), scAquaRockDouseDryMoai(), scAquaRockInsideBlockMoaiWithPillar(), scAquaRockInsideDouseFloodedHallEastMoai(), scAquaRockInsideFreeVentPillars(), scAquaRockInsideFreezePuddle(), scAquaRockInsideFreezeRoomPuddle(), scAquaRockInsideMovePuzzlePillar(), scAquaRockInsideParchLastPool(), scAquaRockInsideParchPool(), scAquaRockInsidePushPillarOffLedge(), scAquaRockInsideSetPillarInGap(), scAquaRockInsideSetPillarMetatileJumpable(), scAquaRockInsideSetPillarMetatileJumpableInWater(), scAquaRockInsideSetPillarMetatilePushable(), scAquaRockInsideSettleVentPillars(), scAquaRockInsideSteamRoomStreamDrains(), scAquaRockInsideUseAquariusStone(), scAquaRockInsideWaterSinks(), scCavernsOpenOseniaPassage(), scCavernsParchAttekaWater(), scCavernsPrepareAngara(), scCavernsPrepareAtteka(), scContigoHideMiddleDoor(), scContigoInitGeoglyph(), scContigoRevealMiddleDoor(), scDehkanPlateauCannonDropsPoundCube(), scDehkanPlateauEnterLowerPath(), scDehkanPlateauInitEntrance(), scDehkanPlateauInitPillars(), scDehkanPlateauInitPoundCube(), scDehkanPlateauInitTightropes(), scDehkanPlateauLeaveLowerPath(), scDehkanPlateauPlaceTightropesPillar(), scDehkanPlateauPlaceVinePillar(), scDehkanPlateauSetPillarsStandingPillarMetatiles() and 201 more.
Definition at line 249 of file script.h.
fdMapGridSetShakeFX
static inline void fdMapGridSetShakeFX(FIXED horizontal, FIXED vertical, FIXED decay)
Sets shake amplitudes in 16.16 fixed-point pixels and the per-tick decay
factor in 16.16; SHAKE_KEEP keeps that component, toFIXED(1) keeps the shake.
References fdMapGridSetScreenShake().
Referenced by scInit(), scShrineOfTheSeaGodBreakCrossroadsBridge(), scShrineOfTheSeaGodLowerWater(), scShrineOfTheSeaGodRiseOnWater(), scShrineOfTheSeaGodSinkWithWater() and scShrineOfTheSeaGodUseSeaGodsTear().
Definition at line 264 of file script.h.
fdScriptGetFlag
static inline Sint32 fdScriptGetFlag(Sint32 flag)
syGameFlagGet, from a script: 1 when the flag is set.
References Sint32 and syGameFlagGet().
Referenced by dbPsynergyTest2StepIntoBattle(), dbPsynergyTestPracticeShout(), dbShopTestTalkToSunshine(), dbShopTestTalkToSunshinesWife(), fdActorSteerByPad(), scActorHoldDuringScript(), scActorRollAndCrumble(), scAirsRockInsideMovePooledWhirlwind(), scAirsRockInsideMoveWhirlwind(), scAirsRockInsideReadRevealTablet(), scAirsRockInsideStepOffVanishingStone(), scAirsRockStatueBreathesWhirlwind(), scAlhafraAskWhetherIndraMoved(), scAlhafraFatherLetsPartyToCave(), scAlhafranCaveSetUpCave(), scAlhafranCaveSetUpJail(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAlhafraTalkToHungryBoy(), scAncientLemuriaCycloneRevealsRime(), scAncientLemuriaTremorShakesOutRime(), scAnemosInnerSanctumFinishMovingBlock(), scAnemosInnerSanctumPressRoundSwitch(), scAnkohlRuinsCountSandTime(), scAnkohlRuinsDrawSand(), scAnkohlRuinsFlowWithSand(), scAnkohlRuinsInitSand(), scAnkohlRuinsStartGreatFaceSliding(), scAnkohlRuinsStartGreatFaceSlidingUpClose(), scAquaRockDouseWaterStone(), scAquaRockInsideCheckColumn(), scAquaRockInsideDouseFloodedHallEastMoai(), scAquaRockInsideDouseLowerExitWaterStone(), scAquaRockInsideDouseWaterfallWaterStone(), scAquaRockInsideReadParchTablet(), scAquaRockInsideWalkToParchTablet(), scAttekaInletAskKradenToSetSail(), scAttekaInletKradenAsksToSetSail(), scCavernsPrepareAtteka(), scCavernsPrepareOsenia(), scCavernsShiftAngaraMetatileHeights(), scChampaAskAboutAnkohlRuins(), scChampaCliffCavesFightAvimander(), scChampaCliffCavesObabaOffersHelp(), scChampaFeizhiArrives(), scChampaMeetAlex(), scChampaTellOfObaba(), scClearIsRetreatBlocked(), scContigoInitLuckyDice(), scCrackedTileFind(), scCrackedTileStep() and 358 more.
Definition at line 285 of file script.h.
fdScriptSetFlag
static inline void fdScriptSetFlag(Sint32 flag)
syGameFlagSet, from a script.
References Sint32 and syGameFlagSet().
Referenced by dbPsynergyTest2StepIntoBattle(), dbPsynergyTestDigUpHole(), dbPsynergyTestDigUpPuddle(), dbPsynergyTestDigUpStatue(), dbPsynergyTestDigUpWickedMace(), dbPsynergyTestGiveDjinni(), dbPsynergyTestPracticeShout(), dbShopTestTalkToSunshine(), fdLeaderStopIfPending(), scAirsRockBlowGust(), scAirsRockMoveFirstPillar(), scAirsRockMoveSecondPillar(), scAirsRockMoveThirdPillar(), scAirsRockPlacePillar(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAirsRockWhirlwindOpensTheTop(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafranCaveRaiseBridgeMetatiles(), scAlhafraPirateSeesMadrasMayor(), scAlhafraRoomsGuestsAskForTea(), scAlhafraRoomsHostTellsOfRepairs(), scAlhafraRoomsMeetAlex(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAncientLemuriaCycloneRevealsRime(), scAnemosInnerSanctumApproachCharonSlate(), scAnemosInnerSanctumArriveOnElevatorLift(), scAnemosInnerSanctumArriveOnMimicStonesLift(), scAnemosInnerSanctumLightSymbol(), scAnemosInnerSanctumOpenMimicStoneDoor(), scAnemosInnerSanctumPressRoundSwitch(), scAnemosInnerSanctumPressSwitch(), scAnemosInnerSanctumStartMimicStone(), scAnkohlRuinsFinishMovingPillar(), scAnkohlRuinsJumpDownPit(), scAnkohlRuinsPlaceFaceHalves(), scAnkohlRuinsPlaceGreatFaceHalf(), scAnkohlRuinsPlaceSecondFloorFaceHalf(), scAnkohlRuinsPressFirstSandSwitch(), scAnkohlRuinsPressSecondSandSwitch(), scAnkohlRuinsPushFaceHalfIntoGap(), scAnkohlRuinsPushStoneFaceOffLedge(), scAnkohlRuinsRaiseFirstSand(), scAnkohlRuinsRaiseSecondSand(), scAnkohlRuinsRevealGap(), scAnkohlRuinsScatterWeeds(), scAnkohlRuinsSlideGreatFace(), scAnkohlRuinsStartGreatFaceSliding(), scAnkohlRuinsStartGreatFaceSlidingUpClose(), scAquaRockInsideBlockMoaiWithPillar() and 379 more.
Definition at line 291 of file script.h.
fdScriptClearFlag
static inline void fdScriptClearFlag(Sint32 flag)
syGameFlagClear, from a script.
References Sint32 and syGameFlagClear().
Referenced by dbPsynergyTestPracticeShout(), fdLeaderStopIfPending(), scAirsRockMoveFirstPillar(), scAirsRockMoveSecondPillar(), scAirsRockRideWhirlwind(), scAlhafranCaveLowerBridgeMetatiles(), scAnemosInnerSanctumMimicLeader(), scAnemosInnerSanctumStepOffSwitch(), scAnkohlRuinsHideGap(), scAnkohlRuinsRaiseFirstSand(), scAnkohlRuinsRaiseSecondSand(), scAnkohlRuinsSlideGreatFace(), scApojiiIslandsEnterSeaOfTimeIsletHouse(), scApojiiIslandsFatherSeesTheStone(), scAquaRockInsideCheckPsynergyStone(), scAquaRockInsideParchLastPool(), scAquaRockMovePillar(), scCavernsShiftAngaraMetatileHeights(), scChampaTakeFeizhisGift(), scFireballCarryLeader(), scGabombaStatueHideLadderTopBlocks(), scGabombaStatueInitEntrance(), scGabombaStatueInitEyes(), scGabombaStatueSawEnergyFlow(), scGaiaRockInsideCheckBlocked(), scGaiaRockInsideFindCloudBrand(), scGarohCrossLowerTwilightLine(), scGarohCrossUpperTwilightLine(), scGarohInitVillage(), scIdejimaFelixWakes(), scInit(), scIsletsEndReveal(), scIsletsInitEastTundaria(), scIsletsInitNorthOsenia(), scIsletsInitSeaOfTime(), scIsletsInitSoutheastAngara(), scIsletsInitWestIndra(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseCloseFloor(), scJupiterLighthousePlacePathBlock(), scJupiterLighthouseRaiseBlocksFromGaps(), scJupiterLighthouseRaiseThirdBlockFromGap(), scJupiterLighthouseShebaJoinsTheFight(), scJupiterLighthouseStepOffButton(), scKandoreanTempleWatchVents(), scLemuriaEntranceLandAtHarbor(), scLemurianShipExamineLiftSwitch(), scLemurianShipSetUpHold(), scLemurianShipSetUpPipeRoom(), scLemurianShipSetUpSixJellyRoom() and 64 more.
Definition at line 297 of file script.h.
fdScriptPlaySound
static inline void fdScriptPlaySound(Sint32 sound)
Plays a sound effect or music from a script: the SE command of
actor_script.h.
References Sint32 and sySoundPlay().
Referenced by dbPsynergyTestUpdateRings(), fdActorLaunchAhead(), fdWhirlwindCarryLeader(), GrowFlame(), RumbleBeforePillarSinks(), scActorPopQuestionMarks(), scActorPopUp(), scActorPopUpSlow(), scActorRollAndCrumble(), scActorSetFlightMode(), scActorWaitToLandWithSound(), scAirsRockDropOffLedge(), scAirsRockEnterTheRock(), scAirsRockPlacePillar(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAirsRockWhirlwindOpensTheTop(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAnemosInnerSanctumDropMimicStone(), scAnemosInnerSanctumEnterTheRoom(), scAnemosInnerSanctumFinishMovingBlock(), scAnemosInnerSanctumLightSymbol(), scAnemosInnerSanctumMimicLeader(), scAnemosInnerSanctumOpenMimicStoneDoor(), scAnemosInnerSanctumPressRoundSwitch(), scAnemosInnerSanctumPressSwitch(), scAnemosInnerSanctumRideLiftUp(), scAnemosInnerSanctumStepOffSwitch(), scAnkohlRuinsCarriedOffLedge(), scAnkohlRuinsJumpDownPit(), scAnkohlRuinsLandFromFall(), scAnkohlRuinsPlaceFaceHalves(), scAnkohlRuinsPlaceGreatFaceHalf(), scAnkohlRuinsPlaceSecondFloorFaceHalf(), scAnkohlRuinsPressFirstSandSwitch(), scAnkohlRuinsPressSecondSandSwitch(), scAnkohlRuinsPushFaceHalfIntoGap(), scAnkohlRuinsPushStoneFaceOffLedge(), scAnkohlRuinsRaiseFirstSand(), scAnkohlRuinsRaiseSecondSand(), scAnkohlRuinsSlideGreatFace(), scAnkohlRuinsStartGreatFaceSliding(), scApojiiIslandsEnterDoor(), scAquaRockInsideBlockMoaiWithPillar(), scAquaRockInsideCheckPsynergyStone(), scAquaRockInsideDouseFloodedHallEastMoai(), scAquaRockInsideDouseFloodedHallWestMoai(), scAquaRockInsideDouseLowerExitMoai(), scAquaRockInsideDouseWaterfallMoai() and 283 more.
Definition at line 304 of file script.h.
syMathDivide
static inline Sint32 syMathDivide(Sint32 dividend, Sint32 divisor)
Divides, rounding toward zero.
References Sint32.
Referenced by scGarohMahaTellsTheLegend().
Definition at line 310 of file script.h.
scFieldActorSetMoveTargetFX
static inline void scFieldActorSetMoveTargetFX(struct ACTOR *actor, FIXED x, FIXED y, FIXED z)
Sends an actor toward a point in 16.16 fixed-point pixels, where it coasts to a stop.
References fdActorSetMoveTarget().
Referenced by fdLeaderSlideOnIce(), fdLeaderSlideOnIceAhead(), fdWhirlwindCarryLeader(), scActorRollAndCrumble(), scAirsRockCrumbleRock(), scAirsRockDropOffLedge(), scAirsRockInsideBlowGust(), scAirsRockRideWhirlwind(), scAlhafranCaveChauchaAndEoleoVisit(), scAnemosInnerSanctumArriveOnElevatorLift(), scAnemosInnerSanctumArriveOnMimicStonesLift(), scAnemosInnerSanctumDropMimicStone(), scAnemosInnerSanctumDullahanOpenTheWay(), scAnemosInnerSanctumOpenMimicStoneDoor(), scAnemosInnerSanctumRideLiftUp(), scApojiiIslandsFlowWithStream(), scGabombaStatueHopOffCog(), scGaiaRockInsidePlacePlatform(), scGaiaRockStatueBlowsWind(), scIsletsEnterDoor(), scIsletsMoveIceberg(), scIsletsOpenDoorAndEnter(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseStartBeam(), scKibomboMountainsDropOffLedge(), scLeaderFlowWithStream(), scLemuriaPalaceCastMapSparks(), scMagmaRockFireFromStatue(), scMagmaRockInsideFireFromStatue(), scMagmaRockInsidePushBlockOnto(), scMarsLighthouseEntranceSlideStatueOnIce(), scMarsLighthouseStarRoomTakeMarsStar(), scProxClimbStairs(), scProxEnterDoor(), scPushedActorAdvancePair(), scPushTargetPush(), scTaopoSwampRiseOnBubble(), scTrialRoadReachPeakFirst(), scWhirlwindCarryLeaderLower(), scWorldMapBoardShip(), scWorldMapDriftNorthOfContinent(), scWorldMapLeaveShip(), scWorldMapMeetEcho(), scWorldMapSendWaveIn() and scYallamSingSunSong().
Definition at line 317 of file script.h.
scFieldActorCreate
static inline struct ACTOR * scFieldActorCreate(Sint32 type, FIXED x, FIXED y, FIXED z)
Creates an actor in an empty slot of ActorsWork, outside the actor ids, or
returns NULL when every slot is taken.
References Sint32 and syImportActorCreate().
Referenced by dbPsynergyTest2RaiseStatue(), dbPsynergyTestRaiseStatue(), dbShopTestRaiseStatue(), EFFECT_SPAWN, scActorEmitRipples(), scActorEmitWadingSplashes(), scActorSpawnWadingSplash(), scAirsRockBlowGust(), scAirsRockCrumbleRock(), scAirsRockInsideShebaLearnsReveal(), scAirsRockStatueBreathesWhirlwind(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAirsRockWhirlwindOpensTheTop(), scAnemosInnerSanctumLeaveSpark(), scAnemosInnerSanctumLightSymbol(), scAnemosInnerSanctumLightTorch(), scAnemosInnerSanctumMimicLeader(), scAnemosInnerSanctumPressRoundSwitch(), scAnemosInnerSanctumSendSpark(), scAnemosInnerSanctumSparkRing(), scAquaRockInsidePiersLearnsParch(), scAquaRockInsideSplashBeneath(), scChampaSpawnQuestionMark(), scCreateActor(), scDustBurst(), scDustScatter(), scEasternAlhafraFinishPushing(), scFlameThrowersCreate(), scFlameThrowerSendBackward(), scFlameThrowerSendEast(), scFlameThrowerSendForward(), scFlameThrowerSendSpark(), scFlameThrowerSendWest(), scGabombaStatueSawEnergyFlow(), scGaiaRockInsideCaskBursts(), scGaiaRockInsideCaskPours(), scGaiaRockInsideFelixLearnsSand(), scGarohPopQuestionMark(), scGeyserAdd(), scIceChipsSpawn(), scInit(), scIsletsInitNorthOsenia(), scIsletsInitWestIndra(), scIsletsShowItemAbove(), scIsletsTradeWithBird(), scIsletsTradeWithCow(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseRaiseBeaconLight(), scJupiterLighthouseSendUpBeamLights() and 51 more.
Definition at line 329 of file script.h.
fdMapGridAnimateMetatiles
static inline void fdMapGridAnimateMetatiles(const Uint16 *steps, Sint32 destX, Sint32 destY)
Plays a map edit, such as a door opening, and holds the script until its last step.
References fdMapGridPlayMapEdit() and Sint32.
Referenced by scAnemosInnerSanctumEnterTheRoom(), scGarohOpenDoorAndEnter(), scIsletCaveOpenDoorAndEnter(), scIsletsOpenDoorAndEnter(), scLeaderOpenDoorAndEnter(), scLemuriaDockEnterDoor(), scLemurianShipOpenDoor(), scLemurianShipOpenLowerDoor(), scLemuriaOpenDoorAndEnter(), scLohoAnimateMetatiles(), scMadraEnterDoor(), scMadraMeetKarst(), scMikasallaEnterDoor(), scNaribweEnterDoor() and scYallamEnterDoor().
Definition at line 337 of file script.h.
fdTreasureSpotSetPos
static inline void fdTreasureSpotSetPos(Sint32 actorId, FIXED x, FIXED z)
Moves a treasure spot's actor to a point on the ground.
References fdTreasureSpotSetActorPos() and Sint32.
Referenced by scAlhafraHideTreasureSpot(), scAlhafraRevealTreasureSpot(), scChampaHideTreasureSpot(), scChampaRevealTreasureSpot() and scNaribweRevealChest().
Definition at line 344 of file script.h.
fdActorCenterAndWalk
static inline void fdActorCenterAndWalk(Sint32 actorId, Sint32 priority, Sint32 dz)
Lines an actor up with the middle of its column, sets its sprite priority, then walks it straight along z.
References fdActorCenterOnColumn() and Sint32.
Referenced by scAlhafraOpenDoorAndEnter(), scApojiiIslandsEnterDoor(), scAttekaInletOpenDoorAndEnter(), scChampaCliffCavesOpenDoorAndEnter(), scChampaOpenDoorAndEnter(), scDailaEnterDoor(), scGarohOpenDoorAndEnter(), scLeaderOpenDoorAndEnter(), scLemuriaDockEnterDoor(), scLemurianShipDeckEnterCabin(), scLemurianShipOpenDoor(), scLemuriaOpenDoorAndEnter(), scMadraEnterDoor(), scMikasallaEnterDoor(), scSettlementsEnterHouse(), scShamanVillageCaveEnterPassage(), scSuhallaGateEnterRockDoor() and scYallamEnterDoor().
Definition at line 351 of file script.h.
fdActorWalkByAndWait
static inline void fdActorWalkByAndWait(Sint32 actorId, Sint32 dx, Sint32 dz)
Walks an actor some distance and waits until it is there.
References fdActorWalkByAndWaitById() and Sint32.
Referenced by scAlhafraMadransArrive(), scAlhafraManorBriggsEscapes(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraPirateSeesMadrasMayor(), scAlhafraRoomsGuestsAskForTea(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAncientLemuriaMeetTheLemurians(), scCavernsWalkEastIntoPassage(), scCavernsWalkWestIntoPassage(), scChampaCliffCavesObabaAsksForBriggs(), scChampaCliffCavesObabaForgesTrident(), scChampaCliffCavesObabaMournsSalamander(), scChampaCliffCavesObabaStepsForward(), scChampaMeetAlex(), scChampaSailorsSpotFelix(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraOverhearWorkers(), scEasternAlhafraShipBriggsIsCaught(), scEasternAlhafraWorkersSeeBlockGone(), scEasternAlhafraWorkersTellMayor(), scGarohMahaTellsTheLegend(), scGarohWerewolfPeersFromCave(), scGarohWerewolfRunsPast(), scGarohWerewolvesRevealThemselves(), scJupiterLighthouseAlexHealsTheParty(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthouseWeBeatThem(), scLeaderRiseFromWater(), scLemuriaDockMoveKraden(), scLemuriaKeepLookingAround(), scLemuriaMarvelAtCity(), scLemurianShipDeckReachPiersShip(), scLemurianShipDeckSetOutForMadra(), scLemuriaPalaceMeetKingHydros(), scLemuriaRoomsLeavePiersToMourn(), scLemuriaRoomsMeetLunpa(), scLemuriaRoomsPiersVisitsUncle(), scLemuriaTryStuckDoor(), scLohoFireCannon(), scLohoStepOntoLadderFacingEast(), scLohoStepOntoLadderFacingWest(), scMadraInspectPartyAtGate(), scMadraMeetKarst(), scMadraRoomsShinAngersPiers(), scMadraRoomsTalkToManFocusingOnIce() and 21 more.
Definition at line 358 of file script.h.
scFieldScriptShowMessageThenWait
static inline void scFieldScriptShowMessageThenWait(Sint32 speaker, Sint32 flags, Sint32 ticks)
Shows a line of dialogue, then pauses before the script goes on.
References fdScriptShowMessageThenWait() and Sint32.
Referenced by scAlhafraFindGoldCoins(), scAlhafraMadransArrive(), scAlhafraManorBriggsEscapes(), scAlhafraManorDefendTheMayor(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraPirateSeesMadrasMayor(), scAlhafraRoomsGuestsAskForTea(), scAlhafraRoomsMeetAlex(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAlhafraSailorToldToWork(), scAncientLemuriaMeetTheLemurians(), scChampaCliffCavesFightAvimander(), scChampaCliffCavesObabaForgesTrident(), scChampaCliffCavesObabaMournsSalamander(), scChampaFeizhiArrives(), scChampaSailorsSpotFelix(), scEasternAlhafraAskIfFinished(), scEasternAlhafraAskToHelpWithMast(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraGiveUpOnMastBlock(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraOverhearWorkers(), scEasternAlhafraShipBriggsIsCaught(), scEasternAlhafraShipMayorArrives(), scEasternAlhafraTalkToSailor(), scEasternAlhafraWorkersSeeBlockGone(), scEasternAlhafraWorkersTellMayor(), scGarohFollowWerewolfIntoCave(), scGarohHowlForDog(), scGarohHowlOutLoud(), scGarohLittleWerewolfThanks(), scGarohMahaTellsTheLegend(), scGarohWerewolfPeersFromCave(), scGarohWerewolfRunsPast(), scGarohWerewolvesRevealThemselves(), scIdejimaBreakAwayFromGondowan(), scIdejimaCatchUpWithFelix(), scIdejimaFindFelixAndSheba(), scIdejimaRideTheTidalWave(), scIdejimaWakeJenna(), scIdejimaWakeKraden(), scInit(), scJupiterLighthouseAlexHealsTheParty(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseIsaacAndIvanAreHurt(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseJennaJoinsTheFight(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthouseShebaJoinsTheFight() and 45 more.
Definition at line 364 of file script.h.
fdActorSetSpriteColorById
static inline void fdActorSetSpriteColorById(Sint32 actorId, Sint32 value)
Sets a colour mode (SPR_COL_MODE) on every part of an actor's sprite, or
SPRITE_COLOR_BLINK to make it blink.
References fdActorConfigureSpriteColor() and Sint32.
Referenced by scAirsRockInsideShebaLearnsReveal(), scAirsRockInsideWakeEntranceStatue(), scAirsRockInsideWakeHallStatue(), scAquaRockInsidePiersLearnsParch(), scGaiaRockInsideFelixLearnsSand(), scInit(), scJupiterLighthouseAlexAppears(), scMadraRoomsShinAngersPiers(), scMagmaRockInsideLearnBlaze() and scMarsLighthouseAerieFaceDoomDragon().
Definition at line 372 of file script.h.
fdMapGridCopyMetatilesTo
static inline void fdMapGridCopyMetatilesTo(Sint32 srcX, Sint32 srcY, Sint32 destX, Sint32 destY, Sint32 width, Sint32 height)
Changes what part of the room shows, copying the metatiles' tiles but not their metatile behaviors.
References fdMapGridCopyMetatileTilesIndicesRect() and Sint32.
Referenced by scAirsRockBlowGust(), scAirsRockEnterTheRock(), scAirsRockInsideBlowGust(), scAirsRockInsideVanishStone(), scAirsRockInsideWakeEntranceStatue(), scAirsRockInsideWakeHallStatue(), scAirsRockWhirlwindClearsWall(), scAirsRockWhirlwindOpensTheTop(), scAnemosInnerSanctumFinishMovingBlock(), scAnemosInnerSanctumLightPlate(), scAnemosInnerSanctumLightSymbol(), scAnemosInnerSanctumOpenMimicStoneDoor(), scAnemosInnerSanctumPressRoundSwitch(), scAnemosInnerSanctumPressSwitch(), scAnemosInnerSanctumStepOffSwitch(), scAquaRockInsideOpenDoorToTablet(), scAttekaInletOpenDoorAndEnter(), scCavernsOpenAngaraDoor(), scCavernsParchAttekaWater(), scCavernsPrepareAtteka(), scCavernsWalkIntoPassage(), scContigoHideMiddleDoor(), scContigoLockDoors(), scContigoRevealMiddleDoor(), scDriftScenePrepare(), scGabombaStatueChamberUnrollTongue(), scGarohHideCaveEntrance(), scGarohHideCavePassage(), scGarohHideTunnelPassage(), scGarohInitPath(), scGarohInitVillage(), scGarohRevealCaveEntrance(), scGarohRevealCavePassage(), scGarohRevealTunnelPassage(), scIdejimaLayDownTheOthers(), scInit(), scKibomboSetStatueMouth(), scLemurianShipCheckPillarsOnDropTiles(), scLemurianShipOpenDoor(), scLemurianShipOpenLowerDoor(), scLemurianShipRippleAroundLeader(), scLemurianShipSetUpPillarRoom(), scLemurianShipSetUpStairRoom(), scLemuriaSpringGivePrize(), scLemuriaSpringShowPrizePicture(), scLinkLobbyDrawThreeDigitValue(), scLohoClimbDownLadder(), scMadraCatacombsHearEyesOfTruth(), scMadraCatacombsHideButton(), scMadraCatacombsOpenDoorAndEnter() and 48 more.
Definition at line 379 of file script.h.
fdMapGridCopyMetatilesLayered
static inline void fdMapGridCopyMetatilesLayered(Sint32 srcX, Sint32 srcY, Sint32 width, Sint32 height, Sint32 destX, Sint32 destY)
Changes the pictures of part of the room as fdMapGridCopyMetatilesTo does,
the rectangle's size before its destination, through
fdMapGridCopyDrawnPicturesRect, which keeps each metatile's attribute bits.
References fdMapGridCopyDrawnPicturesRect() and Sint32.
Referenced by dbPsynergyTest2BurstMetatiles(), scActorRollAndCrumble(), scAirsRockInsideRestoreMetatileBehindLeader(), scAirsRockInsideStampMetatileUnderLeader(), scAirsRockInsideStampOtherMetatileUnderLeader(), scAirsRockInsideStampWideMetatileUnderLeader(), scAlhafranCaveSetUpCave(), scAnkohlRuinsPlaceFaceHalves(), scAnkohlRuinsRaiseFirstSand(), scAnkohlRuinsRaiseSecondSand(), scAquaRockInsideBlockMoaiWithPillar(), scAquaRockInsideParchLastPool(), scAquaRockInsideParchPool(), scAquaRockInsideUseAquariusStone(), scAquaRockInsideWaterSinks(), scAquaRockSetUpStreams(), scAquaRockUpdateStreams(), scEasternAlhafraBriggsStealsShip(), scGabombaCatacombsUncoverEastTeleportStone(), scGabombaCatacombsUncoverWestTeleportStone(), scGabombaStatuePressLeftArrowPanel(), scGabombaStatuePressRightArrowPanel(), scGabombaStatueReleaseLeftArrowPanel(), scGabombaStatueReleaseRightArrowPanel(), scGaiaRockInsideCycloneClearsCobweb(), scGaiaRockInsideDrawSunbeams(), scGondowanCliffsScoopUpGeyser(), scInit(), scJupiterLighthouseActivateTheLighthouse(), scJupiterLighthouseCloseDoor(), scJupiterLighthouseCloseFloor(), scJupiterLighthouseCloseGates(), scJupiterLighthouseDrawBlocksInGaps(), scJupiterLighthouseDropEnergyBlock(), scJupiterLighthouseHideThePassage(), scJupiterLighthouseLayBridge(), scJupiterLighthouseLightWestPath(), scJupiterLighthouseOpenBlueDoor(), scJupiterLighthouseOpenDoor(), scJupiterLighthouseOpenFloor(), scJupiterLighthouseOpenGates(), scJupiterLighthouseOpenRedDoor(), scJupiterLighthouseRevealThePassage(), scJupiterLighthouseStandBridgeUp(), scLohoDrawBrokenWall(), scMadraSealHole(), scMagmaRockInsideStampOtherStepMetatile(), scMagmaRockInsideStampStepMetatile(), scMagmaRockInsideTrackStepMetatile(), scMarsLighthouseEntranceBurstIceSheet() and 18 more.
Definition at line 393 of file script.h.
fdPaletteFadeApplySource
static inline void fdPaletteFadeApplySource(Sint32 value, Sint32 mode)
Sets the colours the screen shows now, where a script's palette fade starts.
References fdPaletteFadeSetSource() and Sint32.
Referenced by scAirsRockInsideWakeEntranceStatue(), scAirsRockInsideWakeHallStatue(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindOpensTheTop(), scAnemosInnerSanctumApproachCharonSlate(), scAnemosInnerSanctumLightSymbol(), scGabombaCatacombsGabombaBestowsPower(), scGabombaStatueChamberGabombaNamesWitchDoctor(), scGabombaStatueChamberStatueSpeaks(), scGabombaStatueFocusEnergies(), scGabombaStatueHearTheOffering(), scGabombaStatueSawEnergyFlow(), scGabombaStatueWatchTheChargesStick(), scInit(), scIsletCaveSentinelAwaits(), scJupiterLighthouseActivateTheLighthouse(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseFinishMovingBlock(), scJupiterLighthouseFlashSky(), scJupiterLighthouseHearTheVoice(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieFindWhoTheDragonWas(), scMarsLighthouseAerieWatchGoldenSunRise(), scMarsLighthouseHallHearDragonStatue(), scMarsLighthouseHallReadEarthInscription(), scMarsLighthouseHallReadFireInscription(), scMarsLighthouseHallReadWaterInscription(), scMarsLighthouseHallReadWindInscription(), scMarsLighthouseStarRoomTakeMarsStar(), scMarsLighthouseStarRoomUseMarsStar(), scNaribweRoomsReadFortune(), scTreasureIsleMeetStarMagician(), scWorldMapWatchVenusLighthouseCollapse() and scYampiDesertCaveMeetGuardianOfFire().
Definition at line 404 of file script.h.
fdPaletteFadeApplyTarget
static inline void fdPaletteFadeApplyTarget(Sint32 value, Sint32 mode)
Sets the colours a script's palette fade ends on.
References fdPaletteFadeSetTarget() and Sint32.
Referenced by scAirsRockInsideWakeEntranceStatue(), scAirsRockInsideWakeHallStatue(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindOpensTheTop(), scAlhafraManorBriggsEscapes(), scAnemosInnerSanctumApproachCharonSlate(), scAnemosInnerSanctumLightSymbol(), scAquaRockDouseSummitWaterStone(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraMayorFindsShipGone(), scGabombaCatacombsGabombaBestowsPower(), scGabombaStatueChamberGabombaNamesWitchDoctor(), scGabombaStatueFocusEnergies(), scGabombaStatueHearTheOffering(), scGabombaStatueSawEnergyFlow(), scGabombaStatueWatchTheChargesStick(), scGarohCrossLowerTwilightLine(), scGarohCrossUpperTwilightLine(), scGarohInitEntrance(), scGarohInitPath(), scGarohInitVillage(), scGarohRestoreEntranceLight(), scIdejimaUseDriftPalette(), scInit(), scJupiterLighthouseActivateTheLighthouse(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseFinishMovingBlock(), scJupiterLighthouseFlashSky(), scJupiterLighthouseHearTheVoice(), scJupiterLighthouseRaiseBeaconLight(), scKibomboStatueFlashes(), scLemurianShipDeckReturnToShip(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieFindWhoTheDragonWas(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseAerieRaiseBeaconFire(), scMarsLighthouseAerieWatchGoldenSunRise(), scMarsLighthouseEntranceBurstIceSheet(), scMarsLighthouseHallLightFlame(), scMarsLighthouseStarRoomBurstIce(), scMarsLighthouseStarRoomTakeMarsStar(), scMarsLighthouseStarRoomUseMarsStar(), scNaribweRoomsReadFortune(), scNorthernReachesFireMagmaBall(), scPaletteSetColorsFade(), scProxSayFarewell(), scTeleportArriveWhirling(), scTreasureIsleMeetStarMagician(), scWorldMapLoadTidalWave(), scWorldMapShowIdejimaDrifting() and 1 more.
Definition at line 410 of file script.h.
fdActorMoveToAndWait
static inline void fdActorMoveToAndWait(Sint32 actorId, Sint32 x, Sint32 z)
Moves an actor to a point in the pose it has and waits for it.
References fdActorMoveToAndWaitById() and Sint32.
Referenced by scAquaRockInsideFallThroughWater(), scAttekaInletShipwrightsStopTheParty(), scContigoForceFreesDjinni(), scDailaMeetAlex(), scGabombaStatueChamberAkafubuOffersToHelp(), scGabombaStatueChamberWhereIsTheOrb(), scGabombaStatuePinionsThrowLeaderSouth(), scIsletCaveTremorRevealsSerac(), scIsletsArriveAtSecretSpot(), scIsletsArriveBackAtIsland(), scIsletsBirdReturnsToNest(), scIsletsGiveTurtle(), scIsletsLonesomeGeorgeThanks(), scIsletsRideBackToIsland(), scKandoreanTempleMeetPoi(), scKandoreanTempleReceiveLash(), scKibomboMountainsTremorDropsBone(), scLemurianShipJellyFlees(), scLemurianShipStepOnLift(), scLemurianShipStepOnLiftWestSide(), scLohoFireCannon(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieUrgeOnToBeacon(), scNorthernReachesFireMagmaBall(), scSettlementsCutLadderBush(), scShamanVillageSetUpHouses(), scShrineOfTheSeaGodBreakFirstBridge(), scShrineOfTheSeaGodLashRope(), scSuhallaGatePunchAntJumpsOut(), scSuhallaGatePunchAntJumpsOutAsLeaderStepsAside(), scVenusLighthouseEntranceSoldiersAmbushParty(), scWorldMapCarryPartyToAquaRock(), scWorldMapSailToShipDeck(), scWorldMapTakeOff(), scYallamSingSunSong(), scYampiDesertCornerScorpion() and scYampiDesertStirScorpionAgain().
Definition at line 416 of file script.h.
fdActorWalkToAndWait
static inline void fdActorWalkToAndWait(Sint32 actorId, Sint32 x, Sint32 z)
Walks an actor to a point and waits for it, then stands it still.
References fdActorWalkToAndWaitById() and Sint32.
Referenced by dbPsynergyTestPracticeShout(), scAirsRockInsideReadRevealTablet(), scAlhafraFatherLetsPartyToCave(), scAlhafraMadransArrive(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraPirateSeesMadrasMayor(), scAlhafraRoomsGuestsAskForTea(), scAlhafraRoomsMeetAlex(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAncientLemuriaHeadForTheDock(), scAnemosInnerSanctumPressSwitch(), scAnemosInnerSanctumRideLiftUp(), scAquaRockInsideReadParchTablet(), scAquaRockInsideWalkToParchTablet(), scAttekaInletHammetsMessengerArrives(), scAttekaInletShipwrightsStopTheParty(), scChampaCliffCavesFightAvimander(), scChampaCliffCavesObabaForgesTrident(), scChampaCliffCavesObabaMournsSalamander(), scChampaFeizhiArrives(), scChampaMeetAlex(), scContigoReturnToNewHome(), scContigoTheReunion(), scDailaMeetAlex(), scDailaRoomsPracticeShout(), scDehkanPlateauCannonCracksPillars(), scDehkanPlateauCannonDropsPoundCube(), scDehkanPlateauCannonFleesEast(), scDehkanPlateauCannonFleesOverCracks(), scDehkanPlateauCannonLeapsAway(), scDehkanPlateauCannonPoundsStake(), scEasternAlhafraAskIfFinished(), scEasternAlhafraAskToHelpWithMast(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraGiveUpOnMastBlock(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraOverhearWorkers(), scEasternAlhafraShipBriggsIsCaught(), scEasternAlhafraShipMayorArrives(), scEasternAlhafraWorkersTellMayor(), scGabombaStatueChamberAkafubuOffersToHelp(), scGabombaStatueChamberGabombaNamesWitchDoctor(), scGabombaStatueChamberWhereIsTheOrb(), scGabombaStatueClimbDownEyesLadder(), scGabombaStatueClimbDownLadder(), scGabombaStatueMouseShowsTheWay(), scGabombaStatueSawEnergyFlow(), scGabombaStatueSeeHowItWorks(), scGarohFollowWerewolfIntoCave(), scGarohMahaTellsTheLegend() and 131 more.
Definition at line 422 of file script.h.
scFieldScriptShowTwoMessagesAndWait
static inline void scFieldScriptShowTwoMessagesAndWait(Sint32 first, Sint32 firstX, Sint32 firstY, Sint32 firstPortraitX, Sint32 firstPortraitY, Sint32 second, Sint32 secondX, Sint32 secondY, Sint32 secondPortraitX, Sint32 secondPortraitY, Sint32 delay)
Has two actors speak at once, each window placed by the script
(fdScriptShowTwoMessagesAndWait): places in tiles, delay in ticks.
References fdScriptShowTwoMessagesAndWait() and Sint32.
Referenced by scChampaMeetAlex(), scContigoTheReunion(), scEasternAlhafraShipBriggsIsCaught(), scGarohMahaTellsTheLegend(), scIdejimaFindFelixAndSheba(), scIdejimaRideTheTidalWave() and scJupiterLighthousePartyArrivesAtTheFight().
Definition at line 429 of file script.h.
fdActorSetScript
static inline void fdActorSetScript(Sint32 actorId, const Sint32 *script)
Gives an actor a movement type (MOVEMENT_TYPE) or an actor script to run; the
script goes on meanwhile.
References fdActorSetMovementTypeById() and Sint32.
Referenced by scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraRoomsOverhearCrossboneIsleTale(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraWorkersTellMayor(), scGabombaStatueChamberAkafubuOffersToHelp(), scGabombaStatueFocusEnergies(), scGabombaStatueInitLowerCogs(), scGabombaStatueSawEnergyFlow(), scGabombaStatueSeeHowItWorks(), scGabombaStatueWatchTheChargesStick(), scGaiaRockInsideCycloneClearsCobweb(), scGarohLittleWerewolfThanks(), scGarohWerewolfRunsPast(), scIdejimaBreakAwayFromGondowan(), scIdejimaCatchUpWithFelix(), scIdejimaFindFelixAndSheba(), scIdejimaRideTheTidalWave(), scIdejimaWonderWhereAlexHasGone(), scInit(), scIsletsArriveAtSecretSpot(), scIsletsEnterDoor(), scIsletsInitEastTundaria(), scIsletsOpenDoorAndEnter(), scIsletsRideBackToIsland(), scJupiterLighthouseActivateTheLighthouse(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthousePlaceForTheFight(), scJupiterLighthousePlaceTheHurt(), scJupiterLighthouseRaiseBeaconLight(), scJupiterLighthouseStartTheFight(), scJupiterLighthouseWeBeatThem(), scKibomboMountainsGuardsReport(), scLemuriaEntranceShebaAsksPiersAge(), scLemurianShipDeckReachPiersShip(), scLemurianShipDeckReturnToShip(), scLemurianShipDeckTakeTheTiller(), scLemurianShipMeltJellyIntoPuddle(), scLemurianShipSetBlackCrystal(), scLemurianShipWalkIntoPassage(), scLohoFireCannon(), scLohoShopkeeperComesToEastCounter(), scLohoShopkeeperComesToSouthCounter(), scLohoShopkeeperGoesBack(), scMadraCatacombsEnterDoor(), scMadraCatacombsOpenDoorAndEnter(), scMadraCatacombsUnlockWithRuinKey(), scMadraRoomsGiveHealingFungus() and 22 more.
Definition at line 456 of file script.h.
fdActorRunScriptAndWait
static inline void fdActorRunScriptAndWait(Sint32 actorId, const Sint32 *script)
Runs a script, waiting at most 300 ticks for its final command.
References fdActorSetMovementTypeAndWaitById() and Sint32.
Referenced by scGabombaStatueChamberAkafubuOffersToHelp(), scGabombaStatueFocusEnergies(), scGabombaStatueSawEnergyFlow(), scGabombaStatueSeeHowItWorks(), scIdejimaBreakAwayFromGondowan(), scIdejimaCatchUpWithFelix(), scIdejimaFindFelixAndSheba(), scIdejimaWonderWhereAlexHasGone(), scIsletsLonesomeGeorgeThanks(), scIsletsTradeWithDog(), scLemurianShipDeckReachPiersShip(), scLemurianShipFightAquaHydra(), scLemurianShipMeltJellyIntoPuddle(), scLemurianShipSetBlackCrystal(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieFindWhoTheDragonWas(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseStarRoomWakeAfterBattle(), scProxMeetPuelle(), scProxSayFarewell(), scShamanVillageHopFortuneTeller(), scShamanVillageShebaClearsSand(), scShamanVillageShowShamansRod() and scYallamShowSongGame().
Definition at line 462 of file script.h.