Skip to Content
The Alchemy Project

include/field/script.h

The calls scripts are written in: the constants and small inlines a scene's scripts share, over the main-image functions they call by those functions' own names (fdScriptStart, fdActorJump, fdScriptSetMessageId and the rest), whose declarations it includes. More…

Included by battle_internal.h, battle_effect_internal.h, test.c, test_scenes.c, field_engine_internal.h, field_internal.h, script_commands_internal.h, game_internal.h, main_routine.c, bilibin_cave.c, cottage_rooms_a.c, cottage_rooms_c.c, file_screen.c, fuchin_temple.c, goma_cave_entrance.c, goma_cave_pond.c, goma_cave_stream.c, hammet_palace.c, kalay.c, kolima_forest_cliff.c, kolima_forest_entrance.c, kolima_forest_floodgate.c, kolima_forest_glade.c, log_rooms_b.c, log_rooms_c.c, mercury_lighthouse_aerie.c, rock_rooms.c, sol_sanctum_corridor.c, sol_sanctum_maze.c, sol_sanctum_psynergy_stone.c, stone_rooms.c, stucco_rooms_a.c, stucco_rooms_b.c, suhalla.c, tret_tree_branch.c, vale_eruption.c, vault_cave.c, vault_revisit.c, screens_internal.h, window_internal.h, field_effect.h, script_inline.h, mercury_lighthouse.h, party_nod.h and walk_into_leader.h.

Structures

NameDescription
structMAP_EDITA map edit, such as a door opening: its steps and the metatile they are copied to (fdMapGridPlayMapEdit, which blocks until the last).

Macros

NameDescription
#defineSTORE_CONST (place) (*(__typeof__(((void)0, (place))) *)&(place))The comma expression removes qualifiers without promoting narrow integers.
#defineColossoState (*(Uint8 **)&HeapSlots[HEAP_SLOT_COLOSSO_RACE])The Colosso race state, heap slot HEAP_SLOT_COLOSSO_RACE under its own name.
#defineSPEAKER_PORTRAIT_LEFT 0x1000Speaker bits, above the actor id in the low 12 bits of a message command's speaker, as fdMessageShowAtActor reads them.
#defineSPEAKER_PORTRAIT_RIGHT 0x2000
#defineSPEAKER_WINDOW_ABOVE 0x4000the message window above the speaker
#defineSPEAKER_WINDOW_BELOW 0x8000the message window never above it
#defineSPEAKER_FLAGS 0xf000the four bits above
#defineSPEAKER_ACTOR_MASK 0xfffthe actor id below them
#defineMAP_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.
#defineMAP_EDIT_STEPS_END 65535A source column that ends the steps.
#definefdActorSetPos (actorId, x, z)Places an actor at a point in whole pixels at once, without walking it there: fdActorSetPos(ACTOR_MIA, 880, 502).
#definefdActorSetSpeed (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(ACTOR_GARET, 0.8).
#definefdActorSetSpeedAndAcceleration (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.
#definefdCameraSetSpeed (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).
#definefdCameraSetSpeedAndAcceleration (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.
#defineSCRIPT_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.
#definefdCameraMoveTo (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(357, CAMERA_KEEP, 738, 1).
#defineSCRIPT_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.
#definefdMapGridSetShake (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), fdMapGridSetShake(SHAKE_KEEP, SHAKE_KEEP, 0.9).
#definesyRandomBelow (n) ((Uint32)syRandomNext() * (n) >> 16)A random whole number from 0 to n - 1, as a script rolls one.
#definescFieldActorSetMoveTarget (actor, x, y, z)Sends an actor toward a point in whole pixels: scFieldActorSetMoveTarget(star, 308, 32, 164).

Enumerations

NameDescription
enumACTOR_BLEND_MODE { ACTOR_BLEND_NORMAL, ACTOR_BLEND_TRANSLUCENT }OAM blend modes for fdActorSetBlendMode: ACTOR_BLEND_TRANSLUCENT alpha-blends the sprite with what lies behind it.

Functions

NameDescription
voidsyImportScriptSetExitRequest ()syImportScriptSetExitRequest, syImportActorSetPos, syImportActorSetAnimation and syImportRandomNext are called with differing argument counts, so they keep old-style declarations; fdScriptSetExitRequest also takes a Uint16 and syRandom returns a Uint32, where the scenes pass and read an int.
voidsyImportActorSetPos ()Puts an actor at rest at (x, z), in 16.16 pixels; one that follows the ground keeps its height above the terrain (fdActorSetHorizontalPosWithTerrain).
voidsyImportActorSetAnimation ()Switches an actor's sprite to an ACTOR_ANIMATION (fdActorSetAnimationById).
static inline voidfdActorSetAnimation (Sint32 actorId, Sint32 animation)Switches an actor to an ACTOR_ANIMATION, such as ANIM_NOD.
voidsyImportGameFlagSet (Sint32 flag)Sets a game flag (gmFlagSet), for the two scenes whose calls compile only as calls of a void function.
Sint32syImportRandomNext ()Advances the game's random number generator and returns 0 to 65535 (syRandom).
Sint32syMathDivideUnsigned (Sint32 value, Sint32 divisor)An unsigned division, from the ARM function in IWRAM that also serves as __udivsi3 (syIWRAMUnsignedDivide).
Uint32syMathRemainderUnsigned (Uint32 dividend, Uint32 divisor)The remainder of an unsigned division, from the ARM function in IWRAM that also serves as __umodsi3 (syIWRAMUnsignedRemainder).
static inline voidfdActorSetScript (Sint32 actorId, const Sint32 *script)The field encodes either a movement type or an actor-script address.
static inline voidfdActorRunScriptAndWait (Sint32 actorId, const Sint32 *script)Runs a script, waiting at most 300 ticks for its final command.
voidsyImportScriptShowTwoMessagesAndWait (Sint32 speaker, Sint32 x, Sint32 y, Sint32 portraitX, Sint32 portraitY, Sint32 otherSpeaker, Sint32 otherX, Sint32 otherY, Sint32 otherPortraitX, Sint32 otherPortraitY, Sint32 unused)Two actors speak at once, each message and portrait at its own tile position, until A, B, L or R closes both (fdScriptShowTwoMessagesAndWait, which takes no unused).
voidsySoundPlayStub (Sint32 id)
static inline voidfdScriptSkipMessages (Sint32 count)Moves the script's message number count messages on, past lines the script doesn't show.
static inline voidfdScriptShowMessage (Sint32 speaker, Sint32 flags)Shows the script's next line of dialogue and waits for the player to read it.
static inline Sint32fdScriptOpenMessage (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 Sint32fdScriptAskYesNo (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 ACTOR *fdActorGet (Sint32 actorId)Looks up an actor for a script, NULL when it doesn't exist (fdActorGetById).
static inline voidfdActorSetPosFX (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 voidfdActorSetSpeedFX (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 voidfdActorSetDestination (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 voidfdActorSetDestinationOffset (Sint32 actorId, Sint32 dx, Sint32 dz)Moves an actor some distance from where it stands, without waiting for it.
static inline voidfdActorWalkTo (Sint32 actorId, Sint32 x, Sint32 z)Walks an actor to a point; the script goes on while it walks.
static inline voidfdActorWalkBy (Sint32 actorId, Sint32 dx, Sint32 dz)Walks an actor some distance from where it stands, without waiting for it to get there.
static inline voidfdActorFaceDirection (Sint32 actorId, Sint32 facing, Sint32 ticks)Turns an actor to a direction and holds the script for a few ticks.
static inline voidfdActorFaceActor (Sint32 actorId, Sint32 target, Sint32 ticks)Has one actor look at another at once, then pauses the script.
static inline voidfdActorShowEmote (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 voidfdActorSetAttachedEffect (Sint32 actorId, Sint32 effect)Attaches a field effect to an actor, takes it off, or plays one over it once.
static inline voidfdCameraSetSpeedFX (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 voidfdCameraMoveToFX (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 voidfdMapGridCopyMetatiles (Sint32 srcX, Sint32 srcY, Sint32 width, Sint32 height, Sint32 destX, Sint32 destY)Changes part of the room in place, copying whole metatiles, picture and metatile behavior alike, from another part of the map.
static inline voidfdMapGridCopyMetatileAttributes (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 voidfdMapGridSetShakeFX (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 Sint32fdScriptGetFlag (Sint32 flag)gmFlagGet, from a script: 1 when the FLAG_ is set.
static inline voidfdScriptSetFlag (Sint32 flag)gmFlagSet, from a script.
static inline voidfdScriptClearFlag (Sint32 flag)gmFlagClear, from a script.
static inline voidfdScriptPlaySound (Sint32 sound)Plays a sound effect or music from a script, as an actor script's SC_SE does.
static inline Sint32syRandomNext (void)A random number from 0 to 65535 for a script.
static inline Sint32syMathDivide (Sint32 dividend, Sint32 divisor)A signed division, as a script writes it.
static inline voidscFieldActorSetMoveTargetFX (ACTOR *actor, FIXED x, FIXED y, FIXED z)Sends an actor toward a point in 16.16 fixed point, where it coasts to a stop.
static inline voidfdActorSetColorMode (ACTOR *actor, Sint32 mode)Sets the colour mode (SPR_COL_MODE) of a one-sprite actor's layers, except those drawn hidden.
static inline 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 voidfdMapGridAnimateMetatiles (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 voidfdTreasureSpotSetPos (Sint32 object, FIXED x, FIXED z)Moves a treasure spot's actor to a point on the ground.
static inline voidfdActorCenterAndWalk (Sint32 actorId, Sint32 priority, Sint32 dz)Lines an actor up with the middle of its column, then walks it straight along z.
static inline voidfdActorWalkByAndWait (Sint32 actorId, Sint32 dx, Sint32 dz)Walks an actor some distance and waits until it is there.
static inline voidscFieldScriptShowMessageThenWait (Sint32 speaker, Sint32 flags, Sint32 ticks)Shows a line of dialogue, then pauses before the script goes on.
static inline voidfdActorSetSpriteColorById (Sint32 actorId, Sint32 value)Sets a colour mode on every part of an actor's sprite, or with SPRITE_COLOR_BLINK makes it blink.
static inline voidfdMapGridCopyMetatilesTo (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 voidfdMapGridCopyMetatilesLayered (Sint32 srcX, Sint32 srcY, Sint32 destX, Sint32 destY, Sint32 width, Sint32 height)Changes the pictures of part of the room as fdMapGridCopyMetatilesTo does, through fdMapGridCopyMetatileIndexRect, which takes the size first.
static inline voidfdPaletteFadeApplySource (Sint32 value, Sint32 mode)Sets the colours the screen shows now, where a script's palette fade starts.
static inline voidfdPaletteFadeApplyTarget (Sint32 value, Sint32 mode)Sets the colours a script's palette fade ends on.
static inline voidfdActorMoveToAndWait (Sint32 actorId, Sint32 x, Sint32 z)Moves an actor to a point in the pose it has and waits for it.
static inline voidfdActorWalkToAndWait (Sint32 actorId, Sint32 x, Sint32 z)Walks an actor to a point and waits for it, then stands it still.
static inline voidscFieldScriptShowTwoMessagesAndWait (Sint32 speaker, Sint32 x, Sint32 y, Sint32 portraitX, Sint32 portraitY, Sint32 otherSpeaker, Sint32 otherX, Sint32 otherY, Sint32 otherPortraitX, Sint32 otherPortraitY, Sint32 unused)Has two actors speak at once, each message and its portrait placed by the script, in tiles.

Variables

NameDescription
extern Uint8SceneLocalState []120 bytes of EWRAM where scene overlays keep state of their own, such as Altmiller Cave's rock puzzle.

Description

The calls scripts are written in: the constants and small inlines a scene's scripts share, over the main-image functions they call by those functions' own names (fdScriptStart, fdActorJump, fdScriptSetMessageId and the rest), whose declarations it includes.

A script reads fdScriptStart(); fdActorStop(ACTOR_GARET); fdActorFaceActor(ACTOR_GARET, ACTOR_PARTY_LEADER, 0); fdScriptEnd();.

Macros in detail

STORE_CONST

#define STORE_CONST(place) (*(__typeof__(((void)0, (place))) *)&(place))

#define STORE_CONST(place) (place)

The comma expression removes qualifiers without promoting narrow integers.

Referenced by scColossoShowMatchResult().

Definition at lines 30 and 32 of file script.h.

ColossoState

#define ColossoState (*(Uint8 **)&HeapSlots[HEAP_SLOT_COLOSSO_RACE])

The Colosso race state, heap slot HEAP_SLOT_COLOSSO_RACE under its own name.

Referenced by scColossoDrawGauge(), scColossoStartOpponent(), scColossoTakePrize() and scColossoUpdatePathOpponent().

Definition at line 40 of file script.h.

SPEAKER_PORTRAIT_LEFT

#define SPEAKER_PORTRAIT_LEFT 0x1000

Speaker bits, above the actor id in the low 12 bits of a message command's speaker, as fdMessageShowAtActor reads them.

Referenced by fdMessageShowAtActor(), scCottageRoomsAGaretComesHome(), scCottageRoomsBDoraWakesIsaac(), scShipRoomsDiscussLaunchingWithoutAnchor(), scShipRoomsReturnLuckyAnchor(), scSolSanctumElementalStarRoomDemandElementalStars(), scSolSanctumElementalStarRoomEnterStarRoom(), scSolSanctumEruptionPlayHostageScript(), scSolSanctumLunaSolRoomsIntroduceSolAndLunaRooms(), scTolbiShipDeckSightIsland(), scValeGaretMeetsHisSister(), scValeKradensCottageMeetSaturosAndMenardi(), scValeMendingTheRoof(), scValePlazaFightTravelers(), scValePrologueBoulderSweepsThemAway(), scValePrologueGaretFollowsIsaac(), scVaultIvanStaysBehind(), scVenusLighthouseAerieCombineSaturosAndMenardi(), scVenusLighthouseAerieConfrontSaturosAndMenardi(), scVenusLighthouseAerieDiscussSaturosAndMenardiDefeat(), scVenusLighthouseAerieOverhearSaturosAndMenardi(), scWorldMapRunBlackOrbScript(), scWorldMapShowEndingScript() and scWorldMapUseBlackOrb().

Definition at line 46 of file script.h.

SPEAKER_PORTRAIT_RIGHT

#define SPEAKER_PORTRAIT_RIGHT 0x2000

Referenced by fdMessageShowAtActor(), scCottageRoomsAGaretComesHome(), scHammetPalaceHammetsHomecoming(), scHammetPalaceIvanReportsToLayana(), scImilMiaSaysFarewellToApprentices(), scKalayHammetReturnsToPalace(), scKolimaForestTreeRejectHermesWater(), scKolimaForestTreeTalkToTret(), scMcCoyPalaceAudienceWithMcCoy(), scMcCoyPalaceMcCoyRewardsParty(), scShipRoomsIntroduceReplacementOarsman(), scShipRoomsWatchWarriorsStormOff(), scSolSanctumElementalStarRoomAlexTakesStars(), scSolSanctumElementalStarRoomEnterStarRoom(), scSolSanctumEruptionPlayHostageScript(), scSolSanctumLunaSolRoomsKradenFindsHeartOfSanctum(), scTimberRoomsBCReportToFaran(), scTimberRoomsBCTellFaranAboutJenna(), scTolbiShipDeckMonstersBoard(), scTolbiShipDeckReturnFromIsland(), scTolbiShipDeckSightIsland(), scTolbiShipDeckSightSeaMonsters(), scValeJennaSaysKradenIsWaiting(), scValeMendingTheRoof(), scValePlazaFightTravelers(), scValePlazaMeetSurvivingTravelers(), scValePrologueDoraGoesForHelp(), scValePrologueWatchAttemptToSaveFelix(), scVenusLighthouseAerieCombineSaturosAndMenardi(), scVenusLighthouseAerieConfrontSaturosAndMenardi(), scVenusLighthouseAerieDiscussSaturosAndMenardiDefeat(), scVenusLighthouseAerieOverhearSaturosAndMenardi(), scVenusLighthouseAeriePlayShebasFall(), scVenusLighthouseAerieTryToPreventFall(), scWorldMapRunBlackOrbScript(), scWorldMapShowEndingScript() and scWorldMapShowHammetsCaravan().

Definition at line 47 of file script.h.

SPEAKER_WINDOW_ABOVE

#define SPEAKER_WINDOW_ABOVE 0x4000

the message window above the speaker

Referenced by fdMessageShowAtActor(), scColosseumEntranceFinalsStart(), scCottageRoomsAGaretComesHome(), scHammetPalaceHammetsHomecoming(), scHammetPalaceIvanReportsToLayana(), scImilMiaSaysFarewellToApprentices(), scKalayIvanMeetsPalaceGuards(), scKolimaForestTreeRestoreTret(), scMcCoyPalaceAudienceWithMcCoy(), scMcCoyPalaceMcCoyRewardsParty(), scShipRoomsDiscussLaunchingWithoutAnchor(), scShipRoomsReturnLuckyAnchor(), scSolSanctumElementalStarRoomDemandElementalStars(), scSolSanctumElementalStarRoomEnterStarRoom(), scSolSanctumEntranceIntroduceSanctum(), scSolSanctumEntranceKradenSeesStatuesOutOfReach(), scSolSanctumEruptionPlayHostageScript(), scSolSanctumLunaSolRoomsIntroduceSolAndLunaRooms(), scSolSanctumLunaSolRoomsKradenSeesLunaPictureChange(), scTolbiShipDeckReturnFromIsland(), scTolbiShipDeckSightIsland(), scTolbiShipDeckSightSeaMonsters(), scTolbiShipDeckWatchCrewDecideToSail(), scValeGaretMeetsHisSister(), scValeMendingTheRoof(), scValePlazaSentToAidElders(), scValePrologueBoulderSweepsThemAway(), scVenusLighthouseAerieOverhearSaturosAndMenardi(), scWestLunpaCaveHoldReunion() and scWorldMapShowEndingScript().

Definition at line 48 of file script.h.

SPEAKER_WINDOW_BELOW

#define SPEAKER_WINDOW_BELOW 0x8000

the message window never above it

Referenced by fdMessageShowAtActor(), scColosseumEntranceFinalsStart(), scCottageRoomsAGaretComesHome(), scCottageRoomsAWorryAboutTravelersHealth(), scCottageRoomsBDoraWakesIsaac(), scCottageRoomsBHurryToThePlaza(), scKolimaForestTreeRestoreTret(), scLunpaFortressTalkToJailedDodonpa(), scShipRoomsDiscussLaunchingWithoutAnchor(), scShipRoomsReturnLuckyAnchor(), scShipRoomsWatchWarriorsStormOff(), scSolSanctumElementalStarRoomEnterStarRoom(), scSolSanctumLunaSolRoomsFlashLightsWithTrapDisarmed(), scSolSanctumLunaSolRoomsRiseToElementalStarRoom(), scSolSanctumLunaSolRoomsSpringTrap(), scSolSanctumLunaSolRoomsUnusedAnimateSavedStatueLights(), scTolbiShipDeckMonstersBoard(), scTolbiShipDeckReturnFromIsland(), scTolbiShipDeckSightIsland(), scValeJennaSaysKradenIsWaiting(), scValePlazaMeetSurvivingTravelers(), scValePrologueDoraGoesForHelp(), scValePrologueWatchAttemptToSaveFelix(), scVaultIvanStaysBehind(), scVenusLighthouseAerieCombineSaturosAndMenardi(), scVenusLighthouseAerieConfrontSaturosAndMenardi(), scVenusLighthouseAerieDiscussSaturosAndMenardiDefeat(), scVenusLighthouseAerieOverhearSaturosAndMenardi() and scWorldMapUseBlackOrb().

Definition at line 49 of file script.h.

SPEAKER_FLAGS

#define SPEAKER_FLAGS 0xf000

the four bits above

Referenced by fdMessageShowAtActor().

Definition at line 50 of file script.h.

SPEAKER_ACTOR_MASK

#define SPEAKER_ACTOR_MASK 0xfff

the actor id below them

Referenced by fdActorGetSpriteById(), fdMessageShowAtActor(), fdScriptShowMessageAndWait() and fdScriptShowSpeakerMessage().

Definition at line 51 of file script.h.

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 AltinArmorShopDoorMetatiles, AltinCliffHouseAndWeaponShopDoorMetatiles, AltinEastHouseDoorMetatiles, AltinInnDoorMetatiles, AltinItemShopDoorMetatiles, AltinSanctumDoorMetatiles, AltinSouthHouseDoorMetatiles, BabiPalaceDoorMetatiles, BilibinHouseEastDoorSteps, BilibinHouseNorthDoorSteps, BilibinHouseWestDoorSteps, BilibinInnDoorSteps, BilibinItemShopDoorSteps, BilibinSanctumDoorSteps, BilibinWeaponAndArmorShopDoorSteps, CrossboneIsleDoorOpens, CrossboneIsleSteppingStonesFloodgateCloseSteps, CrossboneIsleSteppingStonesFloodgateFootSteps, CrossboneIsleSteppingStonesFloodgateOpenSteps, CrossboneIsleSteppingStonesSwitchCloseSteps, CrossboneIsleSteppingStonesSwitchOpenSteps, FuchinTempleFehsDoorCloses, FuchinTempleFehsDoorOpens, FuchinTempleTempleDoorOpens, ImilHouseNortheastDoorSteps, ImilHouseSouthwestDoorSteps, ImilHouseWestDoorSteps, ImilInnDoorSteps, ImilOldManLieBackSteps, ImilOldManSitUpSteps, ImilRoomsEastDoorSteps, ImilSanctumDoorSteps, KalayDoorMetatileSteps, KalayTolbiDocksKalayDoorMetatiles, KalayTolbiDocksTolbiDoorMetatiles, KolimaDoorMetatiles, LaliveroDoorOpenSteps, LaliveroGateOpenSteps, LamaTempleDoorCloseMetatiles, LamaTempleDoorOpenMetatiles, LunpaDoorSteps, McCoyPalaceGroundsDoorOpenSteps, MercuryLighthouseDoorOpenMetatiles, MercuryLighthouseGateCloseMetatiles, MercuryLighthouseGateMetatiles, MercuryLighthouseUpperGateCloseMetatiles, MercuryLighthouseUpperGateMetatiles, SolSanctumStarMetatiles, StuccoRoomsADoorMetatileSteps, StuccoRoomsBDoorOpening and 34 more.

Definition at line 55 of file script.h.

MAP_EDIT_STEPS_END

#define MAP_EDIT_STEPS_END 65535

A source column that ends the steps.

Referenced by AltinArmorShopDoorMetatiles, AltinCliffHouseAndWeaponShopDoorMetatiles, AltinEastHouseDoorMetatiles, AltinInnDoorMetatiles, AltinItemShopDoorMetatiles, AltinSanctumDoorMetatiles, AltinSouthHouseDoorMetatiles, BabiPalaceDoorMetatiles, BilibinHouseEastDoorSteps, BilibinHouseNorthDoorSteps, BilibinHouseWestDoorSteps, BilibinInnDoorSteps, BilibinItemShopDoorSteps, BilibinSanctumDoorSteps, BilibinWeaponAndArmorShopDoorSteps, CrossboneIsleDoorOpens, CrossboneIsleSteppingStonesFloodgateCloseSteps, CrossboneIsleSteppingStonesFloodgateFootSteps, CrossboneIsleSteppingStonesFloodgateOpenSteps, CrossboneIsleSteppingStonesSwitchCloseSteps, CrossboneIsleSteppingStonesSwitchOpenSteps, fdMapGridPlayMapEdit(), FuchinTempleFehsDoorCloses, FuchinTempleFehsDoorOpens, FuchinTempleTempleDoorOpens, ImilHouseNortheastDoorSteps, ImilHouseSouthwestDoorSteps, ImilHouseWestDoorSteps, ImilInnDoorSteps, ImilOldManLieBackSteps, ImilOldManSitUpSteps, ImilRoomsEastDoorSteps, ImilSanctumDoorSteps, KalayDoorMetatileSteps, KalayTolbiDocksKalayDoorMetatiles, KalayTolbiDocksTolbiDoorMetatiles, KolimaDoorMetatiles, LaliveroDoorOpenSteps, LaliveroGateOpenSteps, LamaTempleDoorCloseMetatiles, LamaTempleDoorOpenMetatiles, LunpaDoorSteps, McCoyPalaceGroundsDoorOpenSteps, MercuryLighthouseDoorOpenMetatiles, MercuryLighthouseGateCloseMetatiles, MercuryLighthouseGateMetatiles, MercuryLighthouseUpperGateCloseMetatiles, MercuryLighthouseUpperGateMetatiles, SolSanctumStarMetatiles, StuccoRoomsADoorMetatileSteps and 35 more.

Definition at line 58 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(ACTOR_MIA, 880, 502).

Referenced by dbIncreaseItemAndLevelRunMotionTest(), scAlpineCrossingFeizhiArrives(), scAltinApplyWaterLevel(), scAltinPeakAwardFrostJewelAndDrain(), scAltinPeakCelebrateHydrosVictory(), scAltinPeakDrainAfterSecondBeast(), scAltinPeakDrainAfterThirdBeast(), scAltinPeakDrainFirstWater(), scAltinPeakReadFallingRockSign(), scAltinPeakRestoreFallingRocksRoom(), scAltinPeakRestoreFirstWaterBeastRoom(), scAltinPeakRestoreHydrosStatueRoom(), scAltinPeakRestorePoolRoom(), scAltinPeakRestoreSecondWaterBeastRoom(), scAltinPeakRestoreThirdWaterBeastRoom(), scAltinPeakRestoreWestExitRoom(), scAltinPeakRunBoulderChase(), scAltmillerCaveMeetInvisibleBabi(), scAltmillerCaveRestoreBabiAndInviteParty(), scAltmillerCaveTurnRock(), scBabiPalaceHearSoldiersReport(), scBabiPalaceMeetBabiAfterColosso(), scBabiPalaceOfferCloakBall(), scBabiPalaceShowBeds(), scBabiPalaceWakeAfterFinals(), scBabiPalaceWakeFromFinalsDream(), scBilibinCaveDouseIceRoomFire(), scBilibinCaveDouseRapierRoomFire(), scBilibinCaveRestoreIceRoom(), scBilibinCaveRestoreRapierRoom(), scBilibinSetUpBarricade(), scBilibinSetUpVillage(), scCatchNut(), scColosseumAzartMatchTalkToLumberAttendant(), scColosseumAzartMatchTalkToRockAttendant(), scColosseumEntranceEscortToEastExit(), scColosseumEntranceEscortToWestExit(), scColosseumEntrancePlaceCompanionsBehindIsaac(), scColosseumEntranceShowClearedTrial(), scColosseumEntranceShowFailedTrial(), scColosseumNavampaMatchPlayPostBattleReunion(), scColosseumSatrageMatchResetLifts(), scColosseumSatrageMatchTalkToBoardWalkAttendant(), scColosseumSatrageMatchTalkToLogRollingAttendant(), scColossoEndTour(), scColossoRestoreMatchResult(), scCottageRoomsBDoraWakesIsaac(), scCottageRoomsBHurryToThePlaza(), scCottageRoomsBShowMythrilBag(), scCottageRoomsDPlaceSheltering() and 255 more.

Definition at line 177 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(ACTOR_GARET, 0.8).

Referenced by scAlpineCrossingFeizhiArrives(), scAlpineCrossingLiftBoulder(), scAltinBeastHopAway(), scAltinEnterDoor(), scAltinPeakCelebrateHydrosVictory(), scAltinPeakFirstBeastHopsAway(), scAltinPeakPushSpritzRoomPillar(), scAltinPeakReadFallingRockSign(), scAltinPeakRideCart(), scAltinPeakRunBoulderChase(), scAltinPeakShowFirstBeastRoute(), scAltinPeakStartHydrosBattle(), scAltmillerCaveMeetInvisibleBabi(), scAltmillerCaveRestoreBabiAndInviteParty(), scBabiLighthouseExplainTruthDoor(), scBabiLighthouseFaranAsksPartyToOpenDoor(), scBabiLighthouseHopClearOfPillar(), scBabiPalaceHearSoldiersReport(), scBabiPalaceLeaveThroughAnimatedDoor(), scBabiPalaceLeaveThroughDoor(), scBabiPalaceMeetBabiAfterColosso(), scBabiPalaceOfferRest(), scBabiPalaceRestInPalaceBeds(), scBabiPalaceShowBeds(), scBabiPalaceWakeAfterFinals(), scBabiPalaceWakeFromFinalsDream(), scBattleArenaEnterBattle(), scBilibinJillGivesHardNut(), scBilibinOpenDoorAndLeave(), scBilibinPullJillFromRiver(), scBilibinUpdateVillageStatueMetatiles(), scColosseumAzartMatchTalkToBridgeAttendant(), scColosseumAzartMatchTalkToLumberAttendant(), scColosseumAzartMatchTalkToRockAttendant(), scColosseumEntranceCrowdRecognizesIsaac(), scColosseumEntranceEscortToEastExit(), scColosseumEntranceEscortToWestExit(), scColosseumEntranceExplainPartySupport(), scColosseumEntranceFinalsStart(), scColosseumEntranceFollowEscortOut(), scColosseumEntrancePraiseBothMatchesWon(), scColosseumEntrancePraiseFirstMatchWon(), scColosseumEntranceShowClearedTrial(), scColosseumEntranceShowFailedTrial(), scColosseumEntranceWalkToEastExit(), scColosseumEntranceWalkToWestExit(), scColosseumNavampaMatchPlayPostBattleReunion(), scColosseumNavampaMatchTalkToFreeClimbAttendant(), scColosseumNavampaMatchTalkToMovingSidewalkAttendant(), scColosseumNavampaMatchTalkToSteppingStoneAttendant() and 281 more.

Definition at line 190 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 scColosseumAzartMatchPushPipeworksPipe(), scColosseumSatrageMatchDemonstrateLogPush(), scColosseumSatrageMatchRollLogToMetatile(), scCrossboneIsleKeysBaneSecondEscape(), scGomaCavePillarPushStumpOver(), scImilArriveFromFallsCave(), scImilWalkTowardFever(), scKolimaForestEntranceWitnessForestCurse(), scKolimaForestFloodgatePushBankLogEast(), scKolimaForestFloodgatePushBankLogWest(), scKolimaForestFloodgateRollLog(), scKolimaForestTreeRejectHermesWater(), scLogRoomsASpreadOutToCornerSuspects(), scMercuryLighthouseAerieConfrontSaturos(), scMogallForestFirstAreaPushLog(), scPushedActorRoll(), scSolSanctumStatueCenterStatueMoved(), scSolSanctumStatueExplainStatuePuzzle(), scSolSanctumStatueExplainTrapDisarmed(), scSolSanctumStatueOpenSeal(), scValeCavePushLogNorth(), scValeCavePushLogOffLedge(), scValeMendingTheRoof(), scValeWarnAgainstSneakingUpMtAleph(), scWorldMapShowHammetsCaravan() and scWorldMapStepDownFromBunzasWagon().

Definition at line 195 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 scAltinPeakAwardFrostJewelAndDrain(), scAltinPeakFirstBeastHopsAway(), scAltinPeakRollCart(), scAltinPeakRunBoulderChase(), scAltinPeakShowFirstBeastRoute(), scAltinPeakStartHydrosBattle(), scAltinScareOffBeast(), scAltinTalkToThirstyOldWoman(), scBabiLighthouseExplainTruthDoor(), scBabiLighthouseFaranAsksPartyToOpenDoor(), scBilibinJillGivesHardNut(), scColosseumAzartMatchDousePipe(), scColosseumAzartMatchExplainFinalsRules(), scColosseumAzartMatchPushPipeworksPipe(), scColosseumAzartMatchTalkToBridgeAttendant(), scColosseumAzartMatchTalkToLumberAttendant(), scColosseumAzartMatchTalkToPipeworksAttendant(), scColosseumAzartMatchTalkToRockAttendant(), scColosseumEntranceCrowdRecognizesIsaac(), scColosseumEntranceFinalsStart(), scColosseumEntranceFollowEscortOut(), scColosseumEntranceTalkToTrialAttendant(), scColosseumNavampaMatchTalkToFreeClimbAttendant(), scColosseumNavampaMatchTalkToLogRollingAttendant(), scColosseumNavampaMatchTalkToMovingSidewalkAttendant(), scColosseumNavampaMatchTalkToScalesAttendant(), scColosseumNavampaMatchTalkToSteppingStoneAttendant(), scColosseumNavampaMatchTalkToWallWedgeAttendant(), scColosseumSatrageMatchTalkToBoardWalkAttendant(), scColosseumSatrageMatchTalkToLogRollingAttendant(), scColosseumSatrageMatchTalkToMiniMazeAttendant(), scColosseumSatrageMatchTalkToShiftingFloorAttendant(), scColosseumSatrageMatchTalkToWallAttendant(), scCottageRoomsAGaretComesHome(), scCottageRoomsBHurryToThePlaza(), scCrossboneIsleKeysBaneFirstEscape(), scCrossboneIsleKeysBaneSecondEscape(), scCrossboneIsleSteppingStonesFlipWaterSwitch(), scCrossboneIsleSteppingStonesFreezeThirdPuddle(), scFuchinTempleFehSeesChi(), scFuchinTempleForceTree(), scFuchinTempleNyunpaOffersTest(), scHammetPalaceHammetsHomecoming(), scImilMeetMiaAtOldCouplesHouse(), scImilMiaSaysFarewellToApprentices(), scImilTalkToArmorMerchant(), scImilTalkToWeaponMerchant(), scInit(), scKalayHammetReturnsToPalace(), scKalayIvanMeetsPalaceGuards() and 92 more.

Definition at line 263 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 scLemurianShipSetSail(), scValePrologueShowBoulderSweepingDownriver() and scWorldMapShowHammetsCaravan().

Definition at line 269 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 281 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(357, CAMERA_KEEP, 738, 1).

Referenced by scAlpineCrossingFeizhiArrives(), scAltinPeakAwardFrostJewelAndDrain(), scAltinPeakFirstBeastHopsAway(), scAltinPeakRestoreFallingRocksRoom(), scAltinPeakRunBoulderChase(), scAltinPeakShowFirstBeastRoute(), scAltinPeakStartHydrosBattle(), scAltinScareOffBeast(), scAltmillerCaveMeetInvisibleBabi(), scAltmillerCaveRestoreBabiAndInviteParty(), scBabiLighthouseExplainTruthDoor(), scBabiLighthouseFallToExit(), scBabiLighthouseFaranAsksPartyToOpenDoor(), scBabiLighthouseJumpIntoPit(), scBabiLighthouseLandWithParticles(), scBabiPalaceHearSoldiersReport(), scBabiPalaceMeetBabiAfterColosso(), scBabiPalaceRestInPalaceBeds(), scBilibinJillGivesHardNut(), scColosseumAzartMatchDousePipe(), scColosseumAzartMatchExplainFinalsRules(), scColosseumAzartMatchPushPipeworksPipe(), scColosseumAzartMatchTalkToBridgeAttendant(), scColosseumAzartMatchTalkToLumberAttendant(), scColosseumAzartMatchTalkToPipeworksAttendant(), scColosseumAzartMatchTalkToRockAttendant(), scColosseumEntranceCrowdRecognizesIsaac(), scColosseumEntranceExplainPartySupport(), scColosseumEntranceFinalsStart(), scColosseumEntranceFollowEscortOut(), scColosseumEntranceShowClearedTrial(), scColosseumEntranceShowFailedTrial(), scColosseumEntranceTalkToTrialAttendant(), scColosseumNavampaMatchTalkToFreeClimbAttendant(), scColosseumNavampaMatchTalkToLogRollingAttendant(), scColosseumNavampaMatchTalkToMovingSidewalkAttendant(), scColosseumNavampaMatchTalkToScalesAttendant(), scColosseumNavampaMatchTalkToSteppingStoneAttendant(), scColosseumNavampaMatchTalkToWallWedgeAttendant(), scColosseumSatrageMatchTalkToBoardWalkAttendant(), scColosseumSatrageMatchTalkToLogRollingAttendant(), scColosseumSatrageMatchTalkToMiniMazeAttendant(), scColosseumSatrageMatchTalkToShiftingFloorAttendant(), scColosseumSatrageMatchTalkToWallAttendant(), scColossoRestoreMatchResult(), scCottageRoomsAGaretComesHome(), scCottageRoomsBHurryToThePlaza(), scCottageRoomsBShowMythrilBag(), scCrossboneIsleSteppingStonesFlipWaterSwitch(), scCrossboneIsleSteppingStonesFreezeThirdPuddle() and 148 more.

Definition at line 286 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 327 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), fdMapGridSetShake(SHAKE_KEEP, SHAKE_KEEP, 0.9).

Referenced by scAltinBeastHop(), scAltinBeastHopAway(), scAltinPeakDrainFirstWater(), scAltinPeakDrainSecondWater(), scAltinPeakDrainThirdWater(), scAltinPeakFlickerWaterAway(), scAltinPeakForceLogOver(), scAltinPeakPlayLandingShake(), scAltinPeakReadFallingRockSign(), scAltinPeakRunBoulderChase(), scAltinPeakStartHydrosBattle(), scAltinPeakUpdateBeastHops(), scAltmillerCaveReleaseWallBurst(), scAltmillerCaveTurnRock(), scBabiLighthouseLandWithParticles(), scColosseumEntranceShowClearedTrial(), scCottageRoomsBDoraWakesIsaac(), scCrossboneIsleKeysBaneSecondEscape(), scCrossboneIsleKeysOpenBlueDoor(), scCrossboneIsleKeysOpenRedDoor(), scGomaCavePillarPushStumpOver(), scGondowanCaveLeapStump(), scInit(), scKolimaLowerBridge(), scLeapStump(), scLemurianShipRaiseTheShip(), scLunpaFortressActivateLeverTrap(), scLunpaFortressMoveCrates(), scLunpaFortressUnlockCaveDoor(), scLunpaFortressUnlockGroundFloorDoor(), scLunpaFortressUnlockToadonpaDoor(), scLunpaFortressUnlockUpperFloorDoor(), scMercuryLighthouseAeriePartyArrives(), scMercuryLighthouseDrawNorthJetTiles(), scMercuryLighthouseExitWhenChannelsOpen(), scMercuryLighthousePlyOpensWaterfallPassage(), scMercuryLighthouseRestoreNorthJetTiles(), scMogallForestKillerApeAttacks(), scShipRoomsNoticeShipRocking(), scShipRoomsShakeWhileKrakenOnDeck(), scSolSanctumElementalStarRoomBagJupiterStar(), scSolSanctumElementalStarRoomBagMercuryStar(), scSolSanctumElementalStarRoomBagVenusStar(), scSolSanctumElementalStarRoomTakeMarsStar(), scSolSanctumEntranceReactToOpeningPassage(), scSolSanctumEntranceRestoreInteriorState(), scSolSanctumEntranceUpdateEruptionRumbles(), scSolSanctumEruptionPlayHostageScript(), scSolSanctumEruptionPlayWiseOneRescue(), scSolSanctumEruptionStepShards() and 31 more.

Definition at line 334 of file script.h.

syRandomBelow

#define syRandomBelow(n) ((Uint32)syRandomNext() * (n) >> 16)

A random whole number from 0 to n - 1, as a script rolls one.

Referenced by scAltinDriftSpew(), scAltinPeakDriftSpit(), scAltinPeakFlickerWaterOut(), scAltinPeakSpawnDebris(), scAltmillerCaveReleaseWallBurst(), scAltmillerCaveTurnRock(), scColossoSparkleAroundPrize(), scCrossboneIsleSteppingStonesJitterBackgroundScroll(), scCrossboneIsleSteppingStonesSpawnDragonFire(), scCrossboneIsleSteppingStonesSpawnMeltParticle(), scCrossboneIsleSteppingStonesSpawnUnusedLeaderParticle(), scFuchinFallsCaveBreatheDragonFire(), scFuchinTempleAnimateRevealLesson(), scFuchinTempleSpawnGrottoEntryParticle(), scGomaCavePillarDropStumpFragment(), scGomaCavePillarPushStumpOver(), scHeatGaugeCountStep(), scInit(), scKalayHammetReturnsToPalace(), scKalaySpawnTunnelParticle(), scKalayUpdateNutOrbit(), scKalayUpdateWaitingTourist(), scKolimaForestEntranceTwinkleGroundSparkle(), scKolimaForestFloodgateChangeRiverLines(), scKolimaLowerBridge(), scKolimaUpdateCurseDust(), scLamakanDesertComplainAboutHeat(), scLamakanDesertSlipDownSand(), scLogRoomsAUpdateCorneringChase(), scLookAboutRandomly(), scLunpaKickUpLeaderDust(), scMercuryLighthouseAerieFlickerBeacon(), scMercuryLighthouseAerieSaturosAndAlexWarpIn(), scMercuryLighthouseAerieSaturosAndAlexWarpOut(), scMercuryLighthouseEntranceActivateWithPly(), scMercuryLighthousePlyOpensWaterfallPassage(), scMercuryLighthouseRaiseActorWithSparks(), scMercuryLighthouseRandomSpraySpeed(), scMercuryLighthouseRippleAroundLeader(), scMercuryLighthouseSparkleAboveStatue(), scMercuryLighthouseSparkleAroundLeader(), scMercuryLighthouseSparkleAt(), scMercuryLighthouseSparkleBurst(), scMercuryLighthouseSparkleNear(), scMercuryLighthouseStartNorthJet(), scMercuryLighthouseStartSpoutsWithSparkles(), scMercuryLighthouseStopJet(), scMercuryLighthouseStopNorthJet(), scMercuryLighthouseStopSpoutsWithSparkles(), scMercuryLighthouseTrailSparks() and 47 more.

Definition at line 376 of file script.h.

scFieldActorSetMoveTarget

#define scFieldActorSetMoveTarget(actor, x, y, z)

Sends an actor toward a point in whole pixels: scFieldActorSetMoveTarget(star, 308, 32, 164).

Referenced by scColosseumSatrageMatchKnockDownLog(), scColosseumSatrageMatchUpdateLifts(), scShipRoomsPaceCaptainsQuarters(), scSolSanctumElementalStarRoomAlexTakesStars(), scTolbiShipMastPlaySecondAttack(), scValeMendingTheRoof(), scVenusLighthouseAerieCombineSaturosAndMenardi(), scWorldMapMeetFlint() and scWorldMapUseBlackOrb().

Definition at line 394 of file script.h.

Enumerations in detail

ACTOR_BLEND_MODE

enum ACTOR_BLEND_MODE

OAM blend modes for fdActorSetBlendMode: ACTOR_BLEND_TRANSLUCENT alpha-blends the sprite with what lies behind it.

EnumeratorValueDescription
ACTOR_BLEND_NORMAL0
ACTOR_BLEND_TRANSLUCENT1

Definition at line 413 of file script.h.

Functions in detail

syImportScriptSetExitRequest

void syImportScriptSetExitRequest()

syImportScriptSetExitRequest, syImportActorSetPos, syImportActorSetAnimation and syImportRandomNext are called with differing argument counts, so they keep old-style declarations; fdScriptSetExitRequest also takes a Uint16 and syRandom returns a Uint32, where the scenes pass and read an int. Sets the field's exit request (fdScriptSetExitRequest); 999 leaves for MainRoutineStateWork's scene and entrance.

Referenced by dbIncreaseItemAndLevelRequestExit(), scAlpineCrossingLiftBoulder(), scAltinEnterDoor(), scAltinWalkIntoMine(), scBabiLighthouseDropFromEastRoomPit(), scBabiLighthouseDropFromWestRoomEastPit(), scBabiLighthouseDropFromWestRoomNorthwestPit(), scBabiLighthouseDropFromWestRoomSouthwestPit(), scBabiLighthouseFallToExit(), scBabiPalaceLeaveThroughAnimatedDoor(), scBabiPalaceLeaveThroughDoor(), scBilibinOpenDoorAndLeave(), scColosseumEntranceCrowdRecognizesIsaac(), scColosseumEntranceEscortToEastExit(), scColosseumEntranceEscortToWestExit(), scColosseumEntranceExplainPartySupport(), scColosseumEntranceFinalsStart(), scColosseumEntrancePraiseBothMatchesWon(), scColosseumEntrancePraiseFirstMatchWon(), scColosseumEntranceShowClearedTrial(), scColosseumEntranceShowFailedTrial(), scColosseumEntranceTalkToTrialAttendant(), scColosseumEntranceWalkToEastExit(), scColosseumEntranceWalkToWestExit(), scColossoAskDoneCheering(), scColossoAskDoneLookingAround(), scColossoTakePlaceForMatch(), scCottageRoomsALeaveThroughDoor(), scCottageRoomsBCloseScreenAndExit(), scCottageRoomsBDoraWakesIsaac(), scCottageRoomsBHurryToThePlaza(), scCottageRoomsBShowMythrilBag(), scCrossboneIsleOpenEastDoor(), scCrossboneIsleOpenEastDoorAfterBattle(), scCrossboneIsleOpenWestDoor(), scFuchinTempleEnterTemple(), scFuchinTempleEnterWaterfallGrotto(), scFuchinTempleLeaveTemple(), scFuchinTempleOpenLockedDoor(), scGondowanCaveLeaveToWorldMapEast(), scHammetPalaceLeaveThroughDoor(), scImilLeaveFallsCave(), scImilLeaveNorth(), scImilOpenDoorAndExit(), scInit(), scKalayEnterPalace(), scKalayHammetReturnsToPalace(), scKalayIvanMeetsPalaceGuards(), scKalayOpenDoorAndExit(), scKalayTolbiDocksOpenDoorAndLeave() and 124 more.

Definition at line 76 of file script.h.

syImportActorSetPos

void syImportActorSetPos()

Puts an actor at rest at (x, z), in 16.16 pixels; one that follows the ground keeps its height above the terrain (fdActorSetHorizontalPosWithTerrain).

Referenced by fdActorSetPosFX(), scMercuryLighthouseAerieFlickerBeacon() and scShipRoomsPlaceActor().

Definition at line 79 of file script.h.

syImportActorSetAnimation

void syImportActorSetAnimation()

Switches an actor's sprite to an ACTOR_ANIMATION (fdActorSetAnimationById).

Referenced by dbIncreaseItemAndLevelRunMotionTest(), fdActorSetAnimation(), scInit() and scLogRoomsAPlayAnimationAndWait().

Definition at line 81 of file script.h.

fdActorSetAnimation

static inline void fdActorSetAnimation(Sint32 actorId, Sint32 animation)

Switches an actor to an ACTOR_ANIMATION, such as ANIM_NOD.

References Sint32 and syImportActorSetAnimation().

Referenced by scAlpineCrossingHamaReachesHsu(), scAlpineCrossingLiftBoulder(), scAlpineCrossingReadSignpost(), scAltinApplyWaterLevel(), scAltinBeastHopAway(), scAltinEnterDoor(), scAltinPeakCelebrateHydrosVictory(), scAltinPeakFirstBeastHopsAway(), scAltinPeakPushSpritzRoomPillar(), scAltinPeakReadFallingRockSign(), scAltinPeakRestoreFirstWaterBeastRoom(), scAltinPeakRestorePoolRoom(), scAltinPeakRestoreSecondWaterBeastRoom(), scAltinPeakRestoreSpritzRoom(), scAltinPeakRestoreThirdWaterBeastRoom(), scAltinPeakRideCart(), scAltinPeakRunBoulderChase(), scAltinPeakShowFirstBeastRoute(), scAltinPeakStartHydrosBattle(), scAltinScareOffBeast(), scAltinTalkToThirstyOldWoman(), scAltmillerCaveMeetInvisibleBabi(), scAltmillerCaveRestoreBabiAndInviteParty(), scBabiLighthouseExplainTruthDoor(), scBabiLighthouseFaranAsksPartyToOpenDoor(), scBabiLighthouseInspectLockedDoor(), scBabiLighthouseLandWithParticles(), scBabiPalaceHearSoldiersReport(), scBabiPalaceLeaveThroughDoor(), scBabiPalaceMeetBabiAfterColosso(), scBabiPalaceOfferCloakBall(), scBabiPalaceWakeAfterFinals(), scBabiPalaceWakeFromFinalsDream(), scBilibinCaveRestoreEntrance(), scBilibinCaveRestoreIceRoom(), scBilibinCaveRestoreRapierRoom(), scBilibinJillGivesHardNut(), scBilibinOpenDoorAndLeave(), scBilibinPullJillFromRiver(), scColosseumAzartMatchExplainFinalsRules(), scColosseumAzartMatchPushPipeworksPipe(), scColosseumAzartMatchTalkToLumberAttendant(), scColosseumAzartMatchTalkToRockAttendant(), scColosseumAzartMatchUpdateBrokenBridge(), scColosseumEntranceAnnounceFinals(), scColosseumEntranceApplyArrivalState(), scColosseumEntranceCrowdRecognizesIsaac(), scColosseumEntranceEscortToEastExit(), scColosseumEntranceEscortToWestExit(), scColosseumEntranceExplainPartySupport() and 355 more.

Definition at line 84 of file script.h.

syImportGameFlagSet

void syImportGameFlagSet(Sint32 flag)

Sets a game flag (gmFlagSet), for the two scenes whose calls compile only as calls of a void function.

Referenced by scImilMeetMiaAtOldCouplesHouse(), scImilMiaSaysFarewellToApprentices(), scImilPlaceMovedSnowman(), scImilTalkToJustin(), scImilTalkToMegan(), scImilTalkToOldMan(), scImilUpdateFootprints() and scInit().

Definition at line 91 of file script.h.

syImportRandomNext

Sint32 syImportRandomNext()

Advances the game's random number generator and returns 0 to 65535 (syRandom).

Referenced by syRandomNext().

Definition at line 94 of file script.h.

syMathDivideUnsigned

Sint32 syMathDivideUnsigned(Sint32 value, Sint32 divisor)

An unsigned division, from the ARM function in IWRAM that also serves as __udivsi3 (syIWRAMUnsignedDivide).

Referenced by scAltmillerCaveReleaseWallBurst() and scLemurianShipCycleGlow().

Definition at line 97 of file script.h.

syMathRemainderUnsigned

Uint32 syMathRemainderUnsigned(Uint32 dividend, Uint32 divisor)

The remainder of an unsigned division, from the ARM function in IWRAM that also serves as __umodsi3 (syIWRAMUnsignedRemainder).

Referenced by scSanctumSpawnActorSpark(), scSolSanctumEruptionCycleActorPalette(), scSolSanctumEruptionFlickerFirstCollapseTiles(), scSolSanctumEruptionFlickerSecondCollapseTiles(), scSolSanctumEruptionStepShards(), scValePlazaCyclePsynergyPalette(), scValePlazaCyclePsynergyPaletteAndSpawnEffects(), scValePlazaDemonstratePsynergy(), scValePrologueCycleActorPalettes(), scValePrologueCyclePaletteAndSpawnEffects(), scValePrologueFlashPaletteAndSpawnEffects(), scVaultCaveUpdateRandomDrops(), scVenusLighthouseAerieCycleActorPalette(), scVenusLighthouseAerieFlashActorPalette(), scVenusLighthouseAeriePulseActorScale() and scVenusLighthouseAerieSpawnUpperOrbitParticles().

Definition at line 100 of file script.h.

fdActorSetScript

static inline void fdActorSetScript(Sint32 actorId, const Sint32 *script)

The field encodes either a movement type or an actor-script address.

References fdActorSetMovementTypeById() and Sint32.

Referenced by scAlpineCrossingFeizhiArrives(), scAltinPeakCelebrateHydrosVictory(), scAltinPeakDrainFirstWater(), scAltinPeakRunBoulderChase(), scAltmillerCaveRestoreBabiAndInviteParty(), scBabiPalaceTalkToWarriorWithIndigestion(), scColosseumEntranceCrowdRecognizesIsaac(), scColosseumEntranceExplainPartySupport(), scColosseumEntranceFinalsStart(), scColosseumEntrancePraiseBothMatchesWon(), scColosseumEntrancePraiseFirstMatchWon(), scColosseumEntranceShowClearedTrial(), scColosseumEntranceShowFailedTrial(), scColosseumNavampaMatchPlayPostBattleReunion(), scColosseumNavampaMatchSpawnSleepZ(), scCottageRoomsAGaretComesHome(), scCottageRoomsASpawnSleepZ(), scCottageRoomsBDoraWakesIsaac(), scCottageRoomsBHurryToThePlaza(), scCrossboneIsleSteppingStonesFreezePuddle(), scCrossboneIsleSteppingStonesRestoreFrozenPuddle(), scFuchinTempleFehSeesChi(), scFuchinTempleFeizhiLeavesForHsu(), scFuchinTempleTalkToJumpingStudent(), scHammetPalaceHammetsHomecoming(), scHammetPalaceIvanReportsToLayana(), scImilMeetMiaAtOldCouplesHouse(), scImilOldManBobsAndSpeaks(), scImilTalkToOldMan(), scInit(), scKalayHammetReturnsToPalace(), scKalayTolbiDocksPassengersBlameTourGuide(), scKalayUpdatePacingGuides(), scKalayUpdateTunnelPassages(), scKalayWatchTourGroupDeparture(), scKolimaForestEntranceWitnessForestCurse(), scKolimaForestTreeRestoreTret(), scKolimaWitnessForestCurse(), scLaliveroTalkToVillagerTheyTookSheba(), scLemurianShipSetSail(), scLogRoomsAAdvanceSuspectRoute(), scLogRoomsAApproachSuspects(), scLogRoomsADefeatThieves(), scLogRoomsADiscussSuspiciousGuests(), scLogRoomsAFreeVillagerAndFightThieves(), scLogRoomsAResetSuspectRoutes(), scLogRoomsAReturnStolenGoods(), scLogRoomsAStartThiefRun(), scLogRoomsASuspectedLeaderDodges(), scLogRoomsASuspectedThiefDodges() and 77 more.

Definition at line 103 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 scAltinPeakCelebrateHydrosVictory(), scColosseumEntranceCrowdRecognizesIsaac(), scColosseumEntranceExplainPartySupport(), scColosseumEntranceFinalsStart(), scColosseumEntrancePraiseBothMatchesWon(), scColosseumEntrancePraiseFirstMatchWon(), scCottageRoomsAGaretComesHome(), scCottageRoomsBHurryToThePlaza(), scHammetPalaceHammetsHomecoming(), scHammetPalaceIvanReportsToLayana(), scImilMeetMiaAtOldCouplesHouse(), scImilTalkToArmorMerchant(), scImilTalkToOldMan(), scImilTalkToWeaponMerchant(), scKalayHammetReturnsToPalace(), scKalayWatchTourGroupDeparture(), scKolimaForestEntranceWitnessForestCurse(), scKolimaForestTreeRestoreTret(), scKolimaWitnessForestCurse(), scShipRoomsFindOarsmanMissing(), scShipRoomsNoticeShipRocking(), scShipRoomsReachIsland(), scShipRoomsReportMonstersBelowdecks(), scTolbiShipDeckMonsterLandsOnDeck(), scTolbiShipDeckMonstersAttackCrew(), scTreeRoomsFightTret(), scTreeRoomsPlayPostBattleConversation(), scValeAskAboutSneakingToAleph(), scValeKradensCottageTalkToRockslideSurvivor(), scValePlazaDepartForQuest(), scValePlazaFightTravelers(), scValePlazaSentToAidElders(), scValePlazaTravelersLeaveAfterBattle(), scValePrologueBumpIntoShovingMan(), scValePrologueDoraGoesForHelp(), scValePrologueShowBoulderSweepingDownriver(), scValePrologueUnusedGaretJoinsIsaac(), scValePrologueWatchBoulderFall(), scValeUnusedWaterBurstsByTheRiver(), scVenusLighthouseAerieConfrontSaturosAndMenardi(), scVenusLighthouseAerieEruptBeacon(), scVenusLighthouseAerieOverhearSaturosAndMenardi(), scVenusLighthouseAeriePlayShebasFall() and scWorldMapShowHammetsCaravan().

Definition at line 109 of file script.h.

syImportScriptShowTwoMessagesAndWait

void syImportScriptShowTwoMessagesAndWait(Sint32 speaker, Sint32 x, Sint32 y, Sint32 portraitX, Sint32 portraitY, Sint32 otherSpeaker, Sint32 otherX, Sint32 otherY, Sint32 otherPortraitX, Sint32 otherPortraitY, Sint32 unused)

Two actors speak at once, each message and portrait at its own tile position, until A, B, L or R closes both (fdScriptShowTwoMessagesAndWait, which takes no unused).

Referenced by scFieldScriptShowTwoMessagesAndWait().

Definition at line 117 of file script.h.

sySoundPlayStub

void sySoundPlayStub(Sint32 id)

Referenced by btActionRunBuild(), btAwardSpoils(), btDebugBattleViewMessages(), btEffectEndCanvasLayer(), btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunBind(), btEffectRunBladeRain(), btEffectRunBolt(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunCriticalHit(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDeathPlunge(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDjinniEntrance(), btEffectRunDouse(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunDrain(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFire(), btEffectRunFlare(), btEffectRunFlashingStrike(), btEffectRunFlurry(), btEffectRunFrost(), btEffectRunFroth(), btEffectRunGaia(), btEffectRunGatheringLights(), btEffectRunGround(), btEffectRunGrowingColumns(), btEffectRunHaunt(), btEffectRunHealingMotes(), btEffectRunIce(), btEffectRunImpactBurst(), btEffectRunJudgment(), btEffectRunJupiter(), btEffectRunKirin(), btEffectRunLobbedShells(), btEffectRunMars(), btEffectRunMercury(), btEffectRunMirroredWall() and 174 more.

Definition at line 130 of file script.h.

fdScriptSkipMessages

static inline void fdScriptSkipMessages(Sint32 count)

Moves the script's message number count messages on, past lines the script doesn't show.

References Sint32.

Referenced by scAlpineCrossingTalkToFeizhi(), scAltinAskAboutFirstVisit(), scAltinPeakCelebrateHydrosVictory(), scColosseumEntranceCrowdRecognizesIsaac(), scFuchinTempleFeizhiLeavesForHsu(), scLamaTempleRunHamasFarewell(), scLamaTempleTalkToMonkAskingAboutTheEast() and scValeEruptionReturnFromMtAleph().

Definition at line 135 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 dbMenuTestRunMessageTest(), scAltinAskAboutFirstVisit(), scAltinPeakCelebrateHydrosVictory(), scAltinTalkToArmorMerchant(), scAltinTalkToItemMerchant(), scAltmillerCaveBabiCallsPartyBack(), scAltmillerCaveMeetInvisibleBabi(), scAltmillerCaveRepeatRockOrder(), scAltmillerCaveRestoreBabiAndInviteParty(), scAltmillerCaveTurnRock(), scBabiLighthouseExplainTruthDoor(), scBabiLighthouseFaranAsksPartyToOpenDoor(), scBabiLighthouseInspectTruthDoorSwitch(), scBabiPalaceAskAboutColosso(), scBabiPalaceAskAboutRemainingWarriors(), scBabiPalaceHearSoldiersReport(), scBabiPalaceMeetBabiAfterColosso(), scBabiPalaceOfferCloakBall(), scBabiPalaceOfferRest(), scBabiPalacePassOnBabisWord(), scBabiPalaceReadShebasMind(), scBabiPalaceRestInPalaceBeds(), scBabiPalaceShowBeds(), scBabiPalaceShowQuestionAnswer(), scBabiPalaceTalkToWarriorWithIndigestion(), scBabiPalaceThankForSavingBabi(), scBabiPalaceWakeAfterFinals(), scBabiPalaceWakeFromFinalsDream(), scBattleArenaChooseDebugParamSet(), scBattleArenaTalkByProgress(), scBattleArenaTellLinkedWins(), scBilibinExamineTreeMan(), scBilibinJillGivesHardNut(), scBilibinPullJillFromRiver(), scColosseumAzartMatchExplainFinalsRules(), scColosseumAzartMatchTalkToBridgeAttendant(), scColosseumAzartMatchTalkToLumberAttendant(), scColosseumAzartMatchTalkToPipeworksAttendant(), scColosseumAzartMatchTalkToRockAttendant(), scColosseumEntranceAskIfReadyForFinals(), scColosseumEntranceDiscussLuckyGuessSeats(), scColosseumEntranceDiscussLuckyGuessWinnings(), scColosseumEntranceDiscussSeating(), scColosseumEntranceFinalsStart(), scColosseumEntranceOfferLuckyGuess(), scColosseumEntranceShowMessageAndPause(), scColosseumEntranceTalkToAzart(), scColosseumEntranceTalkToGalahad(), scColosseumEntranceTalkToTrialAttendant(), scColosseumNavampaMatchIntroduceThirdFinals() and 371 more.

Definition at line 143 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 scAlpineCrossingTalkToFeizhi(), scAltinAskAboutFirstVisit(), scAltinPeakCelebrateHydrosVictory(), scAltmillerCaveMeetInvisibleBabi(), scAltmillerCaveRepeatRockOrder(), scAltmillerCaveRestoreBabiAndInviteParty(), scBabiLighthouseExplainTruthDoor(), scBabiLighthouseFaranAsksPartyToOpenDoor(), scBabiPalaceAskAboutColosso(), scBabiPalaceAskAboutRemainingWarriors(), scBabiPalaceMeetBabiAfterColosso(), scBabiPalaceOfferCloakBall(), scBabiPalaceOfferRest(), scBabiPalacePassOnBabisWord(), scBabiPalaceRestInPalaceBeds(), scBabiPalaceShowBeds(), scBabiPalaceShowQuestionAnswer(), scBabiPalaceWakeAfterFinals(), scBabiPalaceWakeFromFinalsDream(), scBattleArenaAskToParticipate(), scBattleArenaChooseBattleMode(), scBattleArenaEnterBattle(), scBattleArenaExplainPartyOrder(), scBattleArenaReportLinkDisconnected(), scBattleArenaReportMonsterRecord(), scBattleArenaTalkToVisitor(), scColosseumEntranceAskIfReadyForFinals(), scColosseumEntranceCrowdRecognizesIsaac(), scColosseumEntranceExplainPartySupport(), scColosseumEntranceFinalsStart(), scColosseumEntranceOfferLuckyGuess(), scColosseumNavampaMatchUnusedAskToControlCharacter(), scColossoOfferCheeringSpot(), scCottageRoomsAGaretComesHome(), scCottageRoomsBAskIsaacHisBusiness(), scCottageRoomsBAskWhetherMaskedManWasFelix(), scCottageRoomsBDoraWakesIsaac(), scCottageRoomsBScholarAsksAboutKraden(), scCottageRoomsBVisitSickDora(), scCottageRoomsCAskAboutTreeSpirit(), scCottageRoomsCTalkToHungryDiner(), scFuchinTempleBoyMonkSpeaksOfNyunpa(), scFuchinTempleFehAsksToSeeChi(), scFuchinTempleFeizhiLeavesForHsu(), scFuchinTempleNyunpaOffersTest(), scFuchinTempleNyunpaTeachesKi(), scFuchinTempleRunHamasRevealLesson(), scFuchinTempleYoungManFromKolimaAsksAboutBridge(), scGondowanCaveIodemAsksWhyTurningBack(), scGondowanCaveSoldierAsksAboutCrossing() and 127 more.

Definition at line 150 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 scAlpineCrossingLiftBoulder(), scAltinAskAboutFirstVisit(), scAltinAskAboutHydros(), scAltinAskAboutRuins(), scAltinTalkToThirstyOldWoman(), scBilibinAskAboutBeingATree(), scBilibinAskAboutCurseBreakers(), scBilibinAskAboutEntranceTree(), scBilibinAskAboutImil(), scBilibinAskAboutSoutheastRoute(), scColosseumAzartMatchExplainFinalsRules(), scColosseumEntranceDiscussLuckyGuessWinnings(), scColosseumEntranceDiscussSeating(), scColosseumEntranceOfferLuckyGuess(), scCottageRoomsAAskAboutDora(), scCottageRoomsAAskAboutKradensStudies(), scCottageRoomsAAskAboutStrangePowers(), scCottageRoomsAAskToScareVisitors(), scCottageRoomsATalkToWeaponMerchant(), scCottageRoomsBAskWhetherMaskedManWasFelix(), scCottageRoomsBTalkToInnkeeper(), scCottageRoomsCAskAboutHolyTree(), scCottageRoomsCAskAboutSilk(), scCottageRoomsCTalkAboutMeal(), scCottageRoomsCTalkToArmorMerchant(), scCottageRoomsCTalkToInnkeeper(), scCottageRoomsDAskAboutMineBeasts(), scCottageRoomsDAskAboutMonsters(), scCottageRoomsDAskAboutWayWest(), scCottageRoomsDAskAboutXianGirl(), scCottageRoomsDTalkToInnkeeper(), scCottageRoomsDTalkToWeaponMerchant(), scFuchinTempleBoyMonkSpeaksOfNyunpa(), scFuchinTempleFehSeesChi(), scFuchinTempleFeizhiLeavesForHsu(), scFuchinTempleMonkAsksWhetherTestIsDone(), scFuchinTempleNyunpaFeelsMindRead(), scFuchinTempleRunHamasRevealLesson(), scFuchinTempleStudentAsksAboutAltin(), scFuchinTempleStudentAsksAboutFeh(), scFuchinTempleStudentWelcomesToSchool(), scHammetPalaceAskWhetherHammetWillBeReleased(), scHammetPalaceAskWhetherSilkTradeHasEnded(), scHammetPalaceIvanReportsToLayana(), scImilAskAboutRestaurantMenu(), scImilAskAboutWeapons(), scImilGreetVisitor(), scImilTalkToInnkeeper(), scImilTalkToJustin(), scImilTalkToMegan() and 60 more.

Definition at line 157 of file script.h.

fdActorGet

static inline ACTOR *fdActorGet(Sint32 actorId)

Looks up an actor for a script, NULL when it doesn't exist (fdActorGetById).

References fdActorGetById() and Sint32.

Referenced by scAlpineCrossingFeizhiArrives(), scAlpineCrossingFreezePuddle(), scAlpineCrossingGrowSprout(), scAlpineCrossingLeaderFaceFeizhi(), scAlpineCrossingLiftBoulder(), scAlpineCrossingPrepareFrost(), scAlpineCrossingSortPillarAgainstLeader(), scAltinApplyWaterLevel(), scAltinBeastHopAway(), scAltinCheckStatueMoved(), scAltinEnterDoor(), scAltinLeaderFacesCounter(), scAltinPeakAwardFrostJewelAndDrain(), scAltinPeakCelebrateHydrosVictory(), scAltinPeakDrainFirstWater(), scAltinPeakDrawUnderParty(), scAltinPeakFirstBeastHopsAway(), scAltinPeakForceLogOver(), scAltinPeakFreezeFirstWaterBeastRoomPuddle(), scAltinPeakFreezeFirstWaterBeastRoomSecondPuddle(), scAltinPeakFreezePoolRoomPuddle(), scAltinPeakFreezeSpritzRoomPuddle(), scAltinPeakFreezeSpritzRoomSecondPuddle(), scAltinPeakFreezeSpritzRoomThirdPuddle(), scAltinPeakFreezeThirdWaterBeastRoomPuddle(), scAltinPeakPlacePillarUnderLeader(), scAltinPeakPushSpritzRoomPillar(), scAltinPeakReadFallingRockSign(), scAltinPeakRestoreFallingRocksRoom(), scAltinPeakRestoreFirstWaterBeastRoom(), scAltinPeakRestoreHydrosStatueRoom(), scAltinPeakRestorePillarAutomaticPriority(), scAltinPeakRestorePoolRoom(), scAltinPeakRestoreSpritzRoom(), scAltinPeakRestoreWestExitRoom(), scAltinPeakRideCart(), scAltinPeakRollCart(), scAltinPeakRunBoulderChase(), scAltinPeakSettleSpritzRoomPillar(), scAltinPeakShadowFollowBoulder(), scAltinPeakShowFirstBeastRoute(), scAltinPeakUpdateFrostPillarPriority(), scAltinPeakWallOffPuddle(), scAltinTalkToThirstyOldWoman(), scAltinWalkIntoMine(), scAltmillerCaveCheckPuddleCovered(), scAltmillerCaveDropPillarIntoPit(), scAltmillerCaveFreezePuddle(), scAltmillerCaveHopOverPuddle(), scAltmillerCaveMatchLeaderPriority() and 873 more.

Definition at line 163 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 Sint32 and syImportActorSetPos().

Referenced by scAltinPeakCelebrateHydrosVictory(), scAltinPeakReadFallingRockSign(), scColosseumNavampaMatchSpawnSleepZ(), scColossoFadeInWarrior(), scColossoGatherPartyForTour(), scColossoOfferCheeringSpot(), scColossoPlaceFriendsAtCheeringSpots(), scCottageRoomsAGaretComesHome(), scCottageRoomsASpawnSleepZ(), scFuchinTempleRunHamasRevealLesson(), scGomaCaveEntranceIvanJoins(), scGondowanCaveIodemAsksWhyTurningBack(), scHammetPalaceHammetsHomecoming(), scInit(), scKalayHammetReturnsToPalace(), scKalayIvanMeetsPalaceGuards(), scKolimaForestEntranceWitnessForestCurse(), scKolimaForestTreeRestoreTret(), scKolimaWitnessForestCurse(), scMcCoyPalaceAudienceWithMcCoy(), scMcCoyPalaceMcCoyRewardsParty(), scMercuryLighthouseAerieConfrontSaturos(), scMercuryLighthouseArriveWithSparks(), scMercuryLighthouseDropLeaderToColumn(), scPlaceAtLeader(), scSanctumShowHealerAfterimage(), scShipRoomsAskForReplacementOarsmen(), scShipRoomsIntroduceReplacementOarsman(), scShipRoomsReportMonstersBelowdecks(), scShipRoomsReturnLuckyAnchor(), scShipRoomsStepBesideLeader(), scSolSanctumElementalStarRoomFelixRemovesMask(), scSolSanctumElementalStarRoomRevealSaturosAndMenardi(), scSolSanctumEntranceKradenSuspectsHiddenPassage(), scSolSanctumLunaSolRoomsIntroduceSolAndLunaRooms(), scSolSanctumLunaSolRoomsKradenFindsHeartOfSanctum(), scSolSanctumLunaSolRoomsKradenStopsPartyLeaving(), scSuhallaDesertIodemAsksWhetherToPressOn(), scSuhallaDesertRaiseStorm(), scSuhallaGateIodemQuestionsGuards(), scTolbiShipDeckJumpIntoKrakenBattle(), scTolbiShipDeckOfferToScoutIsland(), scTolbiShipDeckRestOars(), scTolbiShipDeckRowersDisembark(), scTolbiShipMastPlayFirstAttack(), scValeGaretAsksToProtectFamily(), scValeGaretMeetsHisSister(), scValeKradensCottageTalkToRockslideSurvivor(), scValePlazaDepartForQuest(), scValePrologueBoulderSweepsThemAway() and 12 more.

Definition at line 170 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 scColosseumNavampaMatchRollLongLog(), scKolimaWitnessForestCurse(), scShipRoomsIntroduceReplacementOarsman(), scValePrologueGaretTalksAboutBlockedPath(), scValeRoofMended() and scVenusLighthouseMovePillarTowardWall().

Definition at line 182 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 scAltinPeakPushSpritzRoomPillar(), scAltinPeakRunBoulderChase(), scAltinPeakStartHydrosBattle(), scAltmillerCaveMeetInvisibleBabi(), scBabiLighthouseCloseTruthDoor(), scBabiLighthouseOpenTruthDoor(), scColosseumEntranceEscortToEastExit(), scColosseumEntranceEscortToWestExit(), scColosseumEntranceFollowEscortOut(), scColosseumEntranceWalkToEastExit(), scColosseumEntranceWalkToWestExit(), scColosseumNavampaMatchStepOnScales(), scColossoEndTour(), scCottageRoomsBVisitSickDora(), scCrossboneIsleKeysFifthStatuePushesLeaderBack(), scCrossboneIsleKeysFirstStatuePushesLeaderBack(), scCrossboneIsleKeysFourthStatuePushesLeaderBack(), scCrossboneIsleKeysSecondStatuePushesLeaderBack(), scCrossboneIsleKeysThirdStatuePushesLeaderBack(), scCrossboneIsleKeysTrackStatueColumn(), scFuchinTempleMonkLetsPartyIntoGrotto(), scGomaCaveEntranceIvanJoins(), scGomaCavePillarPushStumpOver(), scGondowanCaveIodemAsksWhyTurningBack(), scGondowanCaveIodemComesAlong(), scGondowanCaveLeapStump(), scImilMeetMiaAtOldCouplesHouse(), scKalayTolbiDocksGaretSeesTheKaragol(), scKolimaForestEntranceWitnessForestCurse(), scKolimaForestFloodgatePushBankLogEast(), scKolimaForestFloodgatePushBankLogWest(), scKolimaWitnessForestCurse(), scLaliveroIodemGivesBlackOrb(), scLaliveroWatchWoundedSoldiers(), scLamakanDesertFallIntoPit(), scLeapStump(), scLogRoomsAMeetIvan(), scLogRoomsAReturnStolenGoods(), scLunpaFortressCratesSink(), scLunpaFortressDonpaJudgesDodonpa(), scLunpaGuardsThrowIsaacOut(), scMcCoyPalaceAudienceWithMcCoy(), scMcCoyPalaceMcCoyRewardsParty(), scMercuryLighthouseAeriePartyArrives(), scMercuryLighthouseMiaOpensEntranceWithPly(), scMercuryLighthousePushJetRoomPipes(), scMercuryLighthousePushLeaderOutOfSpout(), scMercuryLighthouseRideLift(), scShipRoomsReturnLuckyAnchor(), scSolSanctumElementalStarRoomEnterStarRoom() and 30 more.

Definition at line 200 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 scAlpineCrossingLiftBoulder(), scAltinEnterDoor(), scBabiPalaceLeaveThroughDoor(), scBilibinOpenDoorAndLeave(), scColosseumNavampaMatchRollLongLog(), scCrossboneIsleKeysFifthStatuePushesLeaderBack(), scCrossboneIsleKeysFirstStatuePushesLeaderBack(), scCrossboneIsleKeysFourthStatuePushesLeaderBack(), scCrossboneIsleKeysSecondStatuePushesLeaderBack(), scCrossboneIsleKeysThirdStatuePushesLeaderBack(), scCrossboneIsleKeysTrackStatueColumn(), scFuchinTempleEnterTemple(), scFuchinTempleEnterWaterfallGrotto(), scGomaCaveEntrancePushWestPillar(), scGomaCavePillarPushStumpOver(), scGondowanCaveIodemAsksWhyTurningBack(), scHammetPalaceLeaveThroughDoor(), scHopLeaderBy(), scImilOpenDoorAndExit(), scKalayEnterPalace(), scKolimaEnterDoor(), scKolimaForestCliffPushLog(), scKolimaForestEntrancePushLog(), scKolimaForestEntranceWitnessForestCurse(), scKolimaForestFloodgatePushBankLogEast(), scKolimaForestFloodgatePushBankLogWest(), scKolimaForestFloodgateRollLog(), scKolimaWalkThroughExit(), scKolimaWitnessForestCurse(), scLaliveroIodemGivesBlackOrb(), scLamakanDesertMeetManticore(), scLamaTempleEnterHamasRoom(), scLogRoomsAReturnStolenGoods(), scLunpaFortressDonpaJudgesDodonpa(), scLunpaFortressEntranceGuardThrowsPartyOut(), scLunpaFortressFindHammet(), scLunpaFortressGuardThrowsPartyOut(), scLunpaFortressPatrolPairThrowsPartyOut(), scLunpaFortressSentriesThrowPartyOut(), scLunpaFortressTalkToDonpa(), scLunpaFortressUnusedFirstPatrolThrowsPartyOut(), scLunpaGaretTurnsIsaacBack(), scMcCoyPalaceAudienceWithMcCoy(), scMcCoyPalaceMcCoyRewardsParty(), scMcCoyPalaceWalkThroughDoor(), scShipRoomsStepBesideLeader(), scSolSanctumEntranceIntroduceSanctum(), scSolSanctumEntranceKradenSeesStatuesOutOfReach(), scSolSanctumEntranceKradenSuspectsHiddenPassage(), scSolSanctumEntranceOpenDoorAndEnter() and 10 more.

Definition at line 207 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 scAlpineCrossingLiftBoulder(), scAltinPeakRunBoulderChase(), scBabiLighthouseFaranAsksPartyToOpenDoor(), scBabiPalaceHearSoldiersReport(), scBattleArenaEnterBattle(), scColosseumEntranceCrowdRecognizesIsaac(), scColosseumEntranceFollowEscortOut(), scColosseumNavampaMatchPlayPostBattleReunion(), scColossoReachArena(), scCottageRoomsAGaretComesHome(), scCottageRoomsBHurryToThePlaza(), scCrossboneIsleKeysBaneKeepsAway(), scFuchinTempleFehSeesChi(), scFuchinTempleFeizhiLeavesForHsu(), scFuchinTempleNyunpaTeachesKi(), scFuchinTempleOpenLockedDoor(), scFuchinTempleRunHamasRevealLesson(), scGomaCaveEntranceIvanJoins(), scGondowanCaveIodemAsksWhyTurningBack(), scHammetPalaceHammetsHomecoming(), scHammetPalaceIvanReportsToLayana(), scImilMeetMiaAtOldCouplesHouse(), scImilMiaSaysFarewellToApprentices(), scInit(), scKalayHammetReturnsToPalace(), scKalayIvanMeetsPalaceGuards(), scKalayTolbiDocksOpenDoorAndLeave(), scLamaTempleRunHamasFarewell(), scLogRoomsADefeatThieves(), scLogRoomsADiscussMindReading(), scLogRoomsADiscussSuspiciousGuests(), scLogRoomsAEnterLoft(), scLogRoomsAFreeVillagerAndFightThieves(), scLogRoomsAIvanJoinsRodSearch(), scLogRoomsALoseToThieves(), scLogRoomsAReturnStolenGoods(), scLogRoomsASpreadOutToCornerSuspects(), scLunpaFortressDonpaJudgesDodonpa(), scLunpaFortressFightThreeGuards(), scLunpaFortressFindHammet(), scLunpaFortressGatherPartyAroundHammet(), scLunpaFortressPartyFacesMonster(), scLunpaFortressRevealMonster(), scLunpaFortressTakeCellKey(), scLunpaFortressTalkToDonpa(), scLunpaGuardsBlockGate(), scLunpaGuardsCatchParty(), scLunpaGuardsThrowIsaacOut(), scLunpaLeaderSneaksOut(), scMcCoyPalaceAudienceWithMcCoy() and 76 more.

Definition at line 215 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 scAltmillerCaveRestoreBabiAndInviteParty(), scBabiLighthouseFaranAsksPartyToOpenDoor(), scBabiPalaceHearSoldiersReport(), scBabiPalaceMeetBabiAfterColosso(), scBabiPalaceRestInPalaceBeds(), scKalayTolbiDocksPassengersBlameTourGuide(), scLaliveroEnterDoor(), scLaliveroIodemGivesBlackOrb(), scLunpaEnterFortress(), scSuhallaEnterDoor(), scSuhallaEnterSanctumDoor() and scWestLunpaCaveHammetFindsBunza().

Definition at line 222 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 scAlpineCrossingFeizhiArrives(), scAlpineCrossingHamaReachesHsu(), scAlpineCrossingLiftBoulder(), scAltinPeakCelebrateHydrosVictory(), scAltinPeakFirstBeastHopsAway(), scAltinPeakReadFallingRockSign(), scAltinPeakRunBoulderChase(), scAltinPeakShowFirstBeastRoute(), scAltinScareOffBeast(), scAltinTalkToThirstyOldWoman(), scAltmillerCaveFacePartyNorth(), scAltmillerCaveMeetInvisibleBabi(), scAltmillerCaveRestoreBabiAndInviteParty(), scAltmillerCaveStartRetreat(), scBabiLighthouseExplainTruthDoor(), scBabiLighthouseFaranAsksPartyToOpenDoor(), scBabiLighthouseHopClearOfPillar(), scBabiPalaceHearSoldiersReport(), scBabiPalaceMeetBabiAfterColosso(), scBabiPalaceOfferCloakBall(), scBabiPalaceOfferRest(), scBabiPalacePassOnBabisWord(), scBabiPalaceReadShebasMind(), scBabiPalaceRestInPalaceBeds(), scBabiPalaceShowBeds(), scBabiPalaceTalkToWarriorWithIndigestion(), scBabiPalaceWakeAfterFinals(), scBabiPalaceWakeFromFinalsDream(), scBilibinJillGivesHardNut(), scBilibinPullJillFromRiver(), scBilibinSetUpBarricade(), scBilibinSetUpVillage(), scBilibinUpdateVillageStatueMetatiles(), scColosseumAzartMatchExplainFinalsRules(), scColosseumAzartMatchTalkToLumberAttendant(), scColosseumAzartMatchTalkToRockAttendant(), scColosseumEntranceAnnounceFinals(), scColosseumEntranceCrowdRecognizesIsaac(), scColosseumEntranceExplainPartySupport(), scColosseumEntranceFaceDirection(), scColosseumEntranceFinalsStart(), scColosseumEntrancePraiseBothMatchesWon(), scColosseumEntrancePraiseFirstMatchWon(), scColosseumEntranceShowClearedTrial(), scColosseumEntranceShowFailedTrial(), scColosseumEntranceTalkToBuford(), scColosseumEntranceTalkToTrialAttendant(), scColosseumNavampaMatchPlayPostBattleReunion(), scColosseumNavampaMatchTalkToFreeClimbAttendant(), scColosseumNavampaMatchTalkToSteppingStoneAttendant() and 292 more.

Definition at line 228 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 scAltinScareOffBeast(), scAltmillerCaveBabiCallsPartyBack(), scAltmillerCaveMeetInvisibleBabi(), scAltmillerCaveRestoreBabiAndInviteParty(), scBabiPalaceHearSoldiersReport(), scBabiPalaceMeetBabiAfterColosso(), scBabiPalaceOfferCloakBall(), scBabiPalaceReadShebasMind(), scBabiPalaceWakeAfterFinals(), scBattleArenaChooseBattleMode(), scBattleArenaChooseDebugParamSet(), scBattleArenaEnterBattle(), scBattleArenaExplainPartyOrder(), scBattleArenaReportMonsterRecord(), scBattleArenaTalkByProgress(), scBattleArenaTalkToVisitor(), scBattleArenaTellLinkedWins(), scColosseumAzartMatchExplainFinalsRules(), scCottageRoomsBAskWhetherMaskedManWasFelix(), scCottageRoomsBRemarkIsaacHasGrown(), scCottageRoomsBTalkToInnkeeper(), scCottageRoomsCAskAboutTreeSpirit(), scCottageRoomsCTalkToArmorMerchant(), scCottageRoomsCTalkToBusyChef(), scCottageRoomsCTalkToHungryDiner(), scCottageRoomsCTalkToKitchenWorker(), scCottageRoomsCTalkToWaitress(), scCottageRoomsCTalkToWorriedChef(), scFuchinTempleFehSeesChi(), scFuchinTempleFeizhiLeavesForHsu(), scFuchinTempleMonkAsksWhetherTestIsDone(), scFuchinTempleRunHamasRevealLesson(), scFuchinTempleStudentsSeeTreeFall(), scFuchinTempleTalkToJumpingStudent(), scGomaCaveEntranceIvanJoins(), scGondowanCaveIodemAsksWhyTurningBack(), scGondowanCaveIodemComesAlong(), scImilGreetVisitor(), scImilTalkToArmorMerchant(), scImilTalkToInnkeeper(), scImilTalkToItemMerchant(), scImilTalkToOldMan(), scImilTalkToStrongmanKeepingInShape(), scImilTalkToWeaponMerchant(), scInit(), scKalayTolbiDocksTalkToWaitingDaughter(), scKolimaWitnessForestCurse(), scLacquerRoomsBFeizhiThanksParty(), scLaliveroIodemGivesBlackOrb(), scLaliveroWatchWoundedSoldiers() and 92 more.

Definition at line 235 of file script.h.

fdActorShowEmote

static inline void 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 dbIncreaseItemAndLevelEllipsisAndSpeak(), dbIncreaseItemAndLevelWinceAndSpeak(), scAlpineCrossingFeizhiArrives(), scAlpineCrossingHamaReachesHsu(), scAlpineCrossingTalkToFeizhi(), scAltinPeakCelebrateHydrosVictory(), scAltinPeakReadFallingRockSign(), scAltinPeakRunBoulderChase(), scAltinPeakStartHydrosBattle(), scAltmillerCaveMeetInvisibleBabi(), scAltmillerCaveRestoreBabiAndInviteParty(), scBabiLighthouseExplainTruthDoor(), scBabiLighthouseFaranAsksPartyToOpenDoor(), scBabiLighthouseHopClearOfPillar(), scBabiPalaceAskAboutColosso(), scBabiPalaceHearSoldiersReport(), scBabiPalaceMeetBabiAfterColosso(), scBabiPalacePassOnBabisWord(), scBabiPalaceReadShebasMind(), scBabiPalaceTalkToWarriorWithIndigestion(), scBabiPalaceWakeAfterFinals(), scBabiPalaceWakeFromFinalsDream(), scBilibinJillGivesHardNut(), scBilibinUpdateVillageStatueMetatiles(), scColosseumAzartMatchExplainFinalsRules(), scColosseumAzartMatchTalkToBridgeAttendant(), scColosseumAzartMatchTalkToLumberAttendant(), scColosseumAzartMatchTalkToRockAttendant(), scColosseumEntranceCrowdRecognizesIsaac(), scColosseumEntranceDiscussLuckyGuessSeats(), scColosseumEntranceExplainPartySupport(), scColosseumEntranceOfferLuckyGuess(), scColosseumEntranceTalkToDekka(), scColosseumEntranceTalkToGalahad(), scColosseumNavampaMatchPlayPostBattleReunion(), scColosseumNavampaMatchTalkToMovingSidewalkAttendant(), scColosseumNavampaMatchTalkToWallWedgeAttendant(), scColosseumSatrageMatchTalkToBoardWalkAttendant(), scColossoShowMatchResult(), scCottageRoomsAGaretComesHome(), scCottageRoomsBAskIsaacHisBusiness(), scCottageRoomsBHurryToThePlaza(), scCottageRoomsBVisitSickDora(), scFuchinTempleFehSeesChi(), scFuchinTempleFeizhiLeavesForHsu(), scFuchinTempleMonkAsksWhetherTestIsDone(), scFuchinTempleNyunpaOffersTest(), scFuchinTempleNyunpaTeachesKi(), scFuchinTempleRunHamasRevealLesson(), scFuchinTempleStudentExplainsChiRules() and 183 more.

Definition at line 242 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 scAlpineCrossingFeizhiArrives(), scAlpineCrossingHamaReachesHsu(), scAlpineCrossingLiftBoulder(), scAltinPeakRunBoulderChase(), scAltmillerCaveMeetInvisibleBabi(), scBabiLighthouseLandWithParticles(), scBabiPalaceHearSoldiersReport(), scBabiPalaceMeetBabiAfterColosso(), scBilibinJillGivesHardNut(), scBilibinPullJillFromRiver(), scColosseumEntranceCrowdRecognizesIsaac(), scColosseumEntranceFinalsStart(), scColosseumEntranceShowClearedTrial(), scColosseumEntranceShowFailedTrial(), scColosseumEntranceTalkToGalahad(), scColosseumNavampaMatchShovedByPiston(), scColosseumNavampaMatchShovedOffWalkway(), scColosseumNavampaMatchTalkToMovingSidewalkAttendant(), scColosseumSatrageMatchTalkToMiniMazeAttendant(), scCottageRoomsBHurryToThePlaza(), scCottageRoomsCTalkToBusyChef(), scCrossboneIsleKeysBaneFirstEscape(), scCrossboneIsleKeysBaneLastEscape(), scCrossboneIsleKeysBaneSecondEscape(), scFuchinTempleNyunpaOffersTest(), scFuchinTempleNyunpaTeachesKi(), scFuchinTempleRunHamasRevealLesson(), scGomaCaveEntranceIvanJoins(), scHammetPalaceHammetsHomecoming(), scHammetPalaceIvanReportsToLayana(), scImilMeetMiaAtOldCouplesHouse(), scImilMiaSaysFarewellToApprentices(), scImilTalkToOldMan(), scImilTalkToStrongmanKeepingInShape(), scInit(), scKalayHammetReturnsToPalace(), scKalayIvanMeetsPalaceGuards(), scKalayTolbiDocksPassengersBlameTourGuide(), scKalayWatchTourGroupDeparture(), scKolimaForestEntranceWitnessForestCurse(), scKolimaWitnessForestCurse(), scLamakanDesertFallIntoPit(), scLamakanDesertMeetManticore(), scLamakanDesertSlipDownSand(), scLamaTempleRunHamasFarewell(), scLogRoomsAApproachSuspects(), scLogRoomsADefeatThieves(), scLogRoomsAIvanJoinsRodSearch(), scLogRoomsAReadCorneredSuspectsMinds(), scLogRoomsAResetSuspectRoutes() and 70 more.

Definition at line 248 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().

Definition at line 255 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 scAltinApplyWaterLevel(), scAltinPeakAwardFrostJewelAndDrain(), scAltinTalkToThirstyOldWoman(), scSolSanctumElementalStarRoomShowElementalStar(), scSolSanctumEruptionPlayHostageScript(), scWorldMapJitterTransitionCamera() and scWorldMapMoveShakeCamera().

Definition at line 274 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, picture and metatile behavior alike, from another part of the map.

References fdMapGridCopyMetatileRect(), Sint32 and width.

Referenced by scAltinPeakDrainSecondWater(), scColosseumAzartMatchAnimatePipeworksWater(), scCrossboneIsleKeysHideRedKey(), scCrossboneIsleKeysOpenBlueDoor(), scCrossboneIsleKeysOpenRedDoor(), scCrossboneIsleKeysShowRedKey(), scInit(), scKolimaForestFloodgateDrawWaterLevel(), scKolimaForestFloodgateFlipFloodgateSwitch(), scLunpaDrawHiddenPassagePicture(), scLunpaEnterFortress(), scLunpaFortressActivateLeverTrap(), scLunpaFortressDonpaJudgesDodonpa(), scLunpaFortressFlipHiddenSwitch(), scLunpaFortressHideSwitches(), scLunpaFortressInitGroundFloor(), scLunpaFortressOpenCaveDoor(), scLunpaFortressOpenFirstSwitchPassage(), scLunpaFortressOpenGroundFloorDoor(), scLunpaFortressOpenIvyPassage(), scLunpaFortressOpenSecondSwitchPassage(), scLunpaFortressOpenToadonpaDoor(), scLunpaFortressOpenUpperFloorDoor(), scLunpaFortressRevealSwitches(), scLunpaHideSecrets(), scLunpaRevealSecrets(), scRevealHideSecrets(), scRevealShowSecrets(), scTreeRoomsApplyPostBattleState(), scTreeRoomsPlayPostBattleConversation(), scTreeRoomsStepOnLeaf(), scValeCaveHideRevealedTile(), scValeCaveRevealHiddenTile(), scVaultCaveApplyNorthernSwitchMetatiles(), scVaultCaveApplySouthernSwitchMetatiles(), scVaultCaveFlipSwitch(), scVaultCaveRunRumble(), scWestLunpaCaveGateDrawPropped(), scWestLunpaCaveGateLower() and scWestLunpaCaveGateRaise().

Definition at line 294 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 fdMapGridCopyMetatileAttributeRect(), Sint32 and width.

Referenced by scAlpineCrossingFreezePuddle(), scAlpineCrossingGrowSprout(), scAlpineCrossingHidePath(), scAlpineCrossingRevealPath(), scAltinApplyWaterLevel(), scAltinPeakDrainFirstWater(), scAltinPeakFlipPoolRoomSwitch(), scAltinPeakFlipSpritzRoomSwitch(), scAltinPeakFreezeFirstWaterBeastRoomPuddle(), scAltinPeakFreezeFirstWaterBeastRoomSecondPuddle(), scAltinPeakFreezePoolRoomPuddle(), scAltinPeakFreezeSpritzRoomPuddle(), scAltinPeakFreezeSpritzRoomSecondPuddle(), scAltinPeakFreezeSpritzRoomThirdPuddle(), scAltinPeakFreezeThirdWaterBeastRoomPuddle(), scAltinPeakPushSpritzRoomPillar(), scAltinPeakRestoreFallingRocksRoom(), scAltinPeakRestoreFirstWaterBeastRoom(), scAltinPeakRestorePoolRoom(), scAltinPeakRestoreSecondWaterBeastRoom(), scAltinPeakRestoreSouthEntranceRoom(), scAltinPeakRestoreSpritzRoom(), scAltinPeakRestoreThirdWaterBeastRoom(), scAltinPeakRunBoulderChase(), scAltinPeakSettleSpritzRoomPillar(), scAltinPeakShowFirstBeastRoute(), scAltinPeakToggleSecondWaterBeastRoomSwitchMetatiles(), scAltinPeakToggleThirdWaterBeastRoomSwitchMetatiles(), scAltmillerCaveDropPillarIntoPit(), scAltmillerCaveFreezePuddle(), scAltmillerCaveReleaseWallBurst(), scBabiLighthouseCloseTruthDoor(), scBabiLighthouseOpenGrowthPassage(), scBabiLighthouseOpenTruthDoor(), scBabiLighthouseRedrawPillarMetatiles(), scBabiLighthouseUpdateMovedPillar(), scBilibinCaveCloseLowerCaveMouth(), scBilibinCaveDouseIceRoomFire(), scBilibinCaveGrowPlant(), scBilibinCaveHideRevealedPath(), scBilibinCaveOpenLowerCaveMouth(), scBilibinCaveRestoreEntrance(), scBilibinCaveRestoreIceRoom(), scBilibinCaveRevealHiddenPath(), scBilibinCaveUpdateThirdPuddleFromTorches(), scBilibinSetUpBarricade(), scBilibinUpdateCratesMetatiles(), scBilibinUpdateTreasuryStatueMetatiles(), scBilibinUpdateVillageStatueMetatiles(), scColosseumAzartMatchDousePipe() and 243 more.

Definition at line 306 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 scAltinPeakPlayLandingShake(), scSolSanctumEruptionStepShards() and scValeProloguePlayImpactBeat().

Definition at line 318 of file script.h.

fdScriptGetFlag

static inline Sint32 fdScriptGetFlag(Sint32 flag)

gmFlagGet, from a script: 1 when the FLAG_ is set.

References gmFlagGet() and Sint32.

Referenced by scAltinPeakFlipPoolRoomSwitch(), scAltinPeakFlipSpritzRoomSwitch(), scAltinPeakRestoreFallingRocksRoom(), scAltinPeakRunBoulderChase(), scAltinPeakToggleSecondWaterBeastRoomSwitchMetatiles(), scAltinPeakToggleThirdWaterBeastRoomSwitchMetatiles(), scBabiLighthouseCloseTruthDoor(), scBabiLighthouseOpenTruthDoor(), scBabiPalaceOfferRest(), scBabiPalaceReadShebasMind(), scBabiPalaceRestInPalaceBeds(), scBabiPalaceShowBeds(), scBabiPalaceThankForSavingBabi(), scBattleArenaAskToParticipate(), scBattleArenaChooseBattleMode(), scBattleArenaExplainPartyOrder(), scBattleArenaTalkByProgress(), scBattleArenaWatchOpponent(), scBilibinCaveUpdateThirdPuddleFromTorches(), scBilibinExamineTreeMan(), scColosseumAzartMatchPushPipeworksPipe(), scColosseumEntranceOfferLuckyGuess(), scColosseumEntranceTalkToDekka(), scCottageRoomsAGiveFarewellHerb(), scCottageRoomsBTalkToInnkeeper(), scCottageRoomsBVisitSickDora(), scCottageRoomsCTalkToBusyChef(), scCrossboneIsleKeysBaneFirstEscape(), scCrossboneIsleKeysBaneLastEscape(), scCrossboneIsleKeysBaneSecondEscape(), scCrossboneIsleKeysCheckFifthStatueCue(), scCrossboneIsleKeysCheckFirstStatueCue(), scCrossboneIsleKeysCheckSecondStatueCue(), scCrossboneIsleKeysMoveThirdPillar(), scCrossboneIsleKeysUseRedKey(), scCrossboneIsleSteppingStonesFlipWaterSwitch(), scCrossboneIsleSteppingStonesFreezeThirdPuddle(), scCrossboneIsleSteppingStonesMoveSinkingBoulder(), scFuchinTempleYoungManFromKolimaAsksAboutBridge(), scGetActorPlacements(), scGondowanCaveIodemAsksWhyTurningBack(), scHeatGaugeRaiseQuarterCues(), scImilTalkToJustin(), scInit(), scKalayGroundMaskFollowsLeader(), scKalayGroundMaskLetsGoOfLeader(), scKalayTolbiDocksPrepareKalayDocks(), scKalayTolbiDocksPrepareTolbiDocks(), scKalayTolbiDocksTalkToManCheckingTickets(), scKalayTolbiDocksTalkToWaitingDaughter() and 101 more.

Definition at line 344 of file script.h.

fdScriptSetFlag

static inline void fdScriptSetFlag(Sint32 flag)

gmFlagSet, from a script.

References gmFlagSet() and Sint32.

Referenced by scColosseumSatrageMatchKnockDownLog(), scCrossboneIsleKeysCheckFifthStatueCue(), scCrossboneIsleKeysCheckSecondStatueCue(), scFuchinTempleFeizhiLeavesForHsu(), scInit(), scKalayPrepareTunnelTreasureRoom(), scKalayTolbiDocksTalkToWomanSellingTickets(), scLunpaFortressInitCave(), scMercuryLighthousePushChannelPipes(), scValePrologueFlashLightning(), scValePrologueShowBoulderSweepingDownriver(), scVenusLighthouseAerieUpdateBeaconRise() and scWorldMapMeetFlint().

Definition at line 350 of file script.h.

fdScriptClearFlag

static inline void fdScriptClearFlag(Sint32 flag)

gmFlagClear, from a script.

References gmFlagClear() and Sint32.

Referenced by scGomaCaveEntranceMoveWestPillar(), scGondowanCaveIodemAsksWhyTurningBack(), scGondowanCaveLeaveToWorldMapEast(), scInit(), scLogRoomsASpreadOutToCornerSuspects(), scMercuryLighthousePushChannelPipes(), scSolSanctumEntranceEastStatueMoved(), scSolSanctumStatueExplainTrapDisarmed(), scValeMovePillarBelowCliff() and scWorldMapExplainSettingDjinn().

Definition at line 356 of file script.h.

fdScriptPlaySound

static inline void fdScriptPlaySound(Sint32 sound)

Plays a sound effect or music from a script, as an actor script's SC_SE does.

References Sint32 and sySoundPlay().

Referenced by scSanctumReceiveWiseOnesMission(), scValeCavePushLogOffLedge(), scVenusLighthouseAerieCombineSaturosAndMenardi(), scWorldMapShowHammetsCaravan() and scWorldMapStepDownFromBunzasWagon().

Definition at line 363 of file script.h.

syRandomNext

static inline Sint32 syRandomNext(void)

A random number from 0 to 65535 for a script.

References Sint32 and syImportRandomNext().

Referenced by scAltmillerCaveReleaseWallBurst(), scAltmillerCaveUpdateWallFragment(), scColossoSparkleAroundPrize(), scCrossboneIsleSteppingStonesSpawnDragonFire(), scGomaCavePillarDropStumpFragment(), scImilSwayAndSpark(), scImilUpdateTremble(), scInit(), scKalayStartTouristWaiting(), scKolimaTwinkleGroundSparkle(), scKolimaUpdateCurseDust(), scLemurianShipSprayUpdate(), scLemurianShipUpdateGlowSwellAndSpray(), scMercuryLighthouseAerieFlickerBeacon(), scSanctumSpawnActorSpark(), scSolSanctumEruptionFlickerFirstCollapseTiles(), scSolSanctumEruptionFlickerSecondCollapseTiles(), scSolSanctumEruptionStepShards(), scTretPaletteUpdateMapTint(), scTunnelRuinsHopDownStep(), scValePrologueLookAround(), scValeTrailSparkles(), scValeVanishMoveHand(), scVaultCaveSpawnSplash(), scVaultCaveUpdateRandomDrops(), scVaultSpawnDriftingEffect(), scVenusLighthouseAeriePulseActorScale(), scVenusLighthouseAerieSpawnSideOrbitParticles(), scVenusLighthouseAerieSpawnUpperOrbitParticles(), scVenusLighthouseAerieUpdateBeaconRise() and scWorldMapMeetVine().

Definition at line 370 of file script.h.

syMathDivide

static inline Sint32 syMathDivide(Sint32 dividend, Sint32 divisor)

A signed division, as a script writes it.

References Sint32.

Referenced by scAltmillerCaveSpinLights(), scCrossboneIsleSpawnPillarMovedBurst(), scCrossboneIsleSteppingStonesSpawnMeltParticle(), scCrossboneIsleSteppingStonesSpawnUnusedLeaderParticle(), scCrossboneIsleSteppingStonesUpdateDampedParticle(), scFieldEffectSpawnNineRadialEffects(), scKolimaPaletteCurseColor(), scMercuryLighthouseEntranceActivateWithPly(), scVaultUpdateDriftingEffect(), scVenusLighthouseEmitRisingParticles() and scVenusLighthouseTrailLight().

Definition at line 379 of file script.h.

scFieldActorSetMoveTargetFX

static inline void scFieldActorSetMoveTargetFX(ACTOR *actor, FIXED x, FIXED y, FIXED z)

Sends an actor toward a point in 16.16 fixed point, where it coasts to a stop.

References fdActorSetMoveTarget().

Referenced by scActorFloatLogWithLeader(), scAltinPeakRideCart(), scAltinPeakRollCart(), scAltinPeakStopCartAndJumpOff(), scBilibinCavePushTorch(), scBilibinPushStatueOrCrates(), scColosseumAzartMatchDousePipe(), scColosseumAzartMatchMoveRidingLog(), scColosseumAzartMatchPushPipeworksPipe(), scColosseumAzartMatchSetPipeHeight(), scColosseumNavampaMatchMoveOnScales(), scColosseumNavampaMatchRollLongLog(), scColosseumNavampaMatchShovedByPiston(), scColosseumNavampaMatchShovedOffWalkway(), scColosseumNavampaMatchTalkToFreeClimbAttendant(), scColosseumSatrageMatchDemonstrateLogPush(), scColosseumSatrageMatchMoveRidingLog(), scColosseumSatrageMatchRollLogToMetatile(), scColosseumSatrageMatchTalkToWallAttendant(), scColossoPushActorAhead(), scColossoRaisePrize(), scColossoTakePrize(), scColossoUpdatePathOpponent(), scCrossboneIsleRideLog(), scCrossboneIsleSteppingStonesFrostRaisesPillar(), scKalayPushTunnelStatue(), scKolimaForestEntranceSpawnCurseSparkle(), scKolimaForestFloodgateRollLog(), scKolimaForestTreeSpawnRepelSpark(), scKolimaSpawnCurseSparkle(), scLamakanDesertBatheInOasis(), scLamakanDesertSlipDownSand(), scLeaderSlideOnIce(), scLogRoomsAMoveActorToStop(), scMercuryLighthouseHopAcrossPool(), scPushedActorAdvancePair(), scPushedActorRoll(), scSolSanctumEntrancePushStatue(), scSolSanctumEruptionStepShards(), scSolSanctumEruptionThrowEruptionRing(), scSuhallaDesertCatchInStorm(), scTunnelRuinsDropStoneOnStack(), scTunnelRuinsHopDownStep(), scTunnelRuinsSettleBalance(), scVaultCaveOffsetActorRadially(), scVaultCavePushPillarAhead(), scVenusLighthouseDriftLeader(), scVenusLighthouseMoveBalancePlatforms(), scVenusLighthousePushPillarAhead(), scVenusLighthouseStackFloatingPillar() and 3 more.

Definition at line 386 of file script.h.

fdActorSetColorMode

static inline void fdActorSetColorMode(ACTOR *actor, Sint32 mode)

Sets the colour mode (SPR_COL_MODE) of a one-sprite actor's layers, except those drawn hidden.

References fdActorSetSpriteColorMode() and Sint32.

Referenced by scCottageRoomsBCycleColorsAndSpawnRings(), scCottageRoomsBFlashWhiteAndSpawnRings(), scCycleColorModesOnOddTicks(), scLunpaHideSecrets(), scSolSanctumEruptionCycleActorPalette(), scSolSanctumEruptionFlashWiseOne(), scValeCycleActorPalette(), scValeCycleActorPaletteAndSpawnEffects(), scValeFlashActorAndSpawnEffects(), scValePlazaCyclePsynergyPalette(), scValePlazaCyclePsynergyPaletteAndSpawnEffects(), scValePlazaFlashPsynergyPalette(), scValePrologueCycleActorPalettes(), scValePrologueCyclePaletteAndSpawnEffects(), scValePrologueFlashPaletteAndSpawnEffects(), scVenusLighthouseAerieCycleActorPalette(), scVenusLighthouseAerieFlashActorPalette(), scWorldMapCircleFlint(), scWorldMapCycleColorsWithGoldenRings(), scWorldMapFlashWhiteWithGoldenRings(), scWorldMapMeetFlint() and scWorldMapSetUpStorm().

Definition at line 399 of file script.h.

scFieldActorCreate

static inline 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 fdActorCreate() and Sint32.

Referenced by scAltinBeastSpewWater(), scAltinPeakSpawnDebris(), scAltmillerCaveStartRetreat(), scBilibinSpawnRipple(), scColossoSparkleAroundPrize(), scCottageRoomsBShowMythrilBag(), scCottageRoomsBSpawnRingPair(), scFuchinFallsCaveCreateHiddenActor(), scGomaCavePillarSpawnFragment(), scImilFuchinFallsPlaceDragonsEye(), scImilSpawnChimneySmoke(), scImilSwayAndSpark(), scKalaySpawnTunnelParticle(), scKolimaForestEntranceSpawnCurseSparkle(), scKolimaForestFloodgateCreateLogs(), scKolimaForestTreeSpawnOrbitSparks(), scKolimaForestTreeSpawnRepelSpark(), scKolimaLowerBridge(), scKolimaSpawnCurseSparkle(), scKolimaUpdateCurseDust(), scLemurianShipUpdateGlowSwellAndSpray(), scMercuryLighthouseAerieFlickerBeacon(), scMercuryLighthouseChargeLights(), scMercuryLighthouseHopAcrossPool(), scMercuryLighthouseRestoreLights(), scMercuryLighthouseSpawnRipple(), scMercuryLighthouseSpawnSparkPair(), scPlaceHiddenActorFX(), scPlaceTranslucentBlackActorFX(), scSanctumRaiseItemIcon(), scSanctumSpawnActorSpark(), scSanctumSpawnOrbitingEffect(), scShipRoomsPlaceAnchorCharm(), scSolSanctumElementalStarRoomPresentStarFX(), scSolSanctumEruptionPlayWiseOneRescue(), scSolSanctumEruptionRaiseElementalLights(), scSolSanctumEruptionRaiseGoldenRings(), scSpawnGoldenRing(), scSpawnPsynergyRings(), scStuccoRoomsBWatchWomanHideMedal(), scTreeRoomsSpawnSwirlSparks(), scValePlazaSpawnEffectPair(), scValeTrailSparkles(), scValeVanishMoveHand(), scVaultCaveSpawnSplash(), scVenusLighthouseAerieCombineSaturosAndMenardi(), scVenusLighthouseAerieSpawnSideOrbitParticles(), scVenusLighthouseAerieSpawnUpperOrbitParticles(), scVenusLighthouseAerieUpdateBeaconRise(), scVenusLighthouseCreateBlendedPassageEffect() and 6 more.

Definition at line 406 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 scAltinEnterDoor(), scBabiPalaceLeaveThroughAnimatedDoor(), scCrossboneIsleOpenEastDoorAfterBattle(), scCrossboneIsleSteppingStonesFlipWaterSwitch(), scFuchinTempleEnterTemple(), scFuchinTempleFeizhiLeavesForHsu(), scFuchinTempleOpenLockedDoor(), scImilMeetMiaAtOldCouplesHouse(), scImilTalkToOldMan(), scKalayOpenDoorAndExit(), scKalayTolbiDocksOpenDoorAndLeave(), scLaliveroEnterDoor(), scLamaTempleEnterHamasRoom(), scLamaTempleRunHamasFarewell(), scLunpaEnterDoor(), scMercuryLighthouseReleaseGateFloorSwitch(), scMercuryLighthouseReleaseUpperGateFloorSwitch(), scStuccoRoomsAOpenDoorAndExit(), scStuccoRoomsBEnterDoor(), scSuhallaEnterDoor(), scSuhallaEnterSanctumDoor(), scTolbiEnterDoor(), scTunnelRuinsMoveLadyStatue(), scValeEnterCottageRoomsA(), scValeEnterCottageRoomsAWest(), scValeEnterGaretsHouse(), scValeEnterJennasGrandparentsHouse(), scValeEnterSanctum(), scValeEruptionReturnFromMtAleph(), scValeKradensCottageKradenPlansSanctumVisit(), scValeKradensCottageKradenSetsOff(), scValePlazaOpenDoorAndWalkThrough(), scValePrologueDoraGoesForHelp(), scValePrologueDoraSendsIsaacToThePlaza(), scValePrologueEnterNorthwestHouse(), scValePrologueEnterRiversideHouseByEastDoor(), scValePrologueEnterRiversideHouseByWestDoor(), scValePrologueUnusedEnterSouthHouseByWreckedHouseDoor(), scValeUnusedEnterJennasGrandparentsHouseByWestBankDoor() and scVenusLighthouseMoveSocketPillar().

Definition at line 421 of file script.h.

fdTreasureSpotSetPos

static inline void fdTreasureSpotSetPos(Sint32 object, FIXED x, FIXED z)

Moves a treasure spot's actor to a point on the ground.

References fdTreasureSpotSetActorPos() and Sint32.

Referenced by scCrossboneIsleKeysInitBane(), scInit(), scLamaTempleRevealChest(), scLunpaHideSecrets(), scLunpaRevealSecrets(), scRevealShowSecrets(), scSuhallaDesertRevealEnds(), scSuhallaDesertRevealStarts(), scTolbiHideRevealedChest(), scTolbiRevealHiddenChest(), scTunnelRuinsHideVanishingStatues() and scTunnelRuinsShowVanishingStatues().

Definition at line 428 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, then walks it straight along z.

References fdActorCenterOnColumn() and Sint32.

Referenced by scAltinEnterDoor(), scAltinWalkIntoMine(), scBabiPalaceLeaveThroughAnimatedDoor(), scBabiPalaceLeaveThroughDoor(), scBilibinOpenDoorAndLeave(), scCrossboneIsleOpenEastDoorAfterBattle(), scHammetPalaceLeaveThroughDoor(), scImilOpenDoorAndExit(), scKalayOpenDoorAndExit(), scLaliveroEnterDoor(), scLunpaEnterDoor(), scLunpaEnterHiddenPassage(), scMcCoyPalaceGroundsEnterPalace(), scMcCoyPalaceWalkThroughDoor(), scStuccoRoomsAOpenDoorAndExit(), scSuhallaGateEnterHouse(), scTolbiEnterDoor(), scTolbiShipDeckGoBelow() and scXianWalkThroughExit().

Definition at line 435 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 scAltmillerCaveMeetInvisibleBabi(), scAltmillerCaveRestoreBabiAndInviteParty(), scBabiLighthouseExplainTruthDoor(), scBabiLighthouseFaranAsksPartyToOpenDoor(), scBabiPalaceHearSoldiersReport(), scBabiPalaceMeetBabiAfterColosso(), scBabiPalaceOfferRest(), scBabiPalaceRestInPalaceBeds(), scBabiPalaceShowBeds(), scBabiPalaceWakeAfterFinals(), scBabiPalaceWakeFromFinalsDream(), scKalayTolbiDocksPassengersBlameTourGuide(), scKolimaForestTreeExitTouchedRegion(), scLaliveroIodemGivesBlackOrb(), scLaliveroTurnBackToTheShip(), scLaliveroWatchWoundedSoldiers(), scLaliveroWharfGuardLetsPartyThrough(), scLemurianShipSetSail(), scLunpaRevealSecrets(), scMercuryLighthouseArriveWithSparks(), scStuccoRoomsBWatchWomanHideMedal(), scTimberRoomsAIodemQuestionsWoundedSoldiers(), scTimberRoomsBCReportToFaran(), scTimberRoomsBCTalkToInnWorker() and scVenusLighthouseArriveThroughSparkPassage().

Definition at line 442 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 scCottageRoomsAGaretComesHome(), scCottageRoomsBDoraWakesIsaac(), scHammetPalaceHammetsHomecoming(), scHammetPalaceIvanReportsToLayana(), scImilMiaSaysFarewellToApprentices(), scKalayHammetReturnsToPalace(), scKalayIvanMeetsPalaceGuards(), scKolimaForestTreeRejectHermesWater(), scKolimaForestTreeRestoreTret(), scKolimaForestTreeTalkToTret(), scMcCoyPalaceAudienceWithMcCoy(), scMcCoyPalaceMcCoyRewardsParty(), scShipRoomsDiscussLaunchingWithoutAnchor(), scShipRoomsIntroduceReplacementOarsman(), scShipRoomsReturnLuckyAnchor(), scShipRoomsWatchWarriorsStormOff(), scSolSanctumEntranceKradenSeesStatuesOutOfReach(), scSolSanctumEruptionPlayHostageScript(), scTreeRoomsFightTret(), scTreeRoomsPlayPostBattleConversation(), scValeGaretMeetsHisSister(), scValeKradensCottageMeetSaturosAndMenardi(), scValeMendingTheRoof(), scValePlazaSentToAidElders(), scValePrologueGaretFollowsIsaac(), scValePrologueWatchAttemptToSaveFelix(), scVenusLighthouseAerieConfrontSaturosAndMenardi(), scVenusLighthouseAerieOverhearSaturosAndMenardi(), scVenusLighthouseAeriePlayShebasFall(), scVenusLighthouseAerieTryToPreventFall(), scWorldMapShowEndingScript() and scWorldMapShowHammetsCaravan().

Definition at line 448 of file script.h.

fdActorSetSpriteColorById

static inline void fdActorSetSpriteColorById(Sint32 actorId, Sint32 value)

Sets a colour mode on every part of an actor's sprite, or with SPRITE_COLOR_BLINK makes it blink.

References fdActorConfigureSpriteColor() and Sint32.

Referenced by scAltinApplyWaterLevel(), scAltinPeakBeastFreezesSecondPuddle(), scAltinPeakCelebrateHydrosVictory(), scAltinPeakFlickerStatue(), scAltinPeakRestoreFirstWaterBeastRoom(), scAltinPeakRestoreSecondWaterBeastRoom(), scAltinPeakRestoreThirdWaterBeastRoom(), scAltmillerCaveEndReveal(), scAltmillerCaveStartReveal(), scBabiLighthouseFallToExit(), scBilibinCaveMeltFrostBack(), scColosseumEntranceInitContestants(), scColosseumEntranceUpdateEntranceMetatiles(), scCottageRoomsBDoraWakesIsaac(), scCrossboneIsleSteppingStonesFreezeThirdPuddle(), scFuchinTempleAnimateRevealLesson(), scFuchinTempleEnterWaterfallGrotto(), scFuchinTempleSpawnGrottoEntryParticle(), scGomaCavePillarPushStumpOver(), scImilFuchinFallsPrepareRoom(), scInit(), scKalayPrepareTown(), scKalayTolbiDocksPrepareTolbiDocks(), scLunpaFortressInitGroundFloor(), scLunpaFortressInitUpperFloor(), scMercuryLighthouseAerieAlexAppears(), scMercuryLighthouseAerieSaturosAndAlexWarpIn(), scMercuryLighthouseAerieSaturosAndAlexWarpOut(), scMercuryLighthouseArriveWithSparks(), scMercuryLighthouseRaiseActorWithSparks(), scMogallForestApeComesOut(), scMogallForestKillerApeAttacks(), scMogallForestSecondAreaSouthApeHidesAgain(), scMogallForestThirdAreaEastApeHidesAgain(), scSanctumAskToAcceptQuest(), scSanctumReceiveWiseOnesMission(), scShipRoomsNoticeShipRocking(), scShipRoomsReachIsland(), scShipRoomsStartFirstAttack(), scShipRoomsStartThirdAttack(), scSolSanctumElementalStarRoomAlexTakesStars(), scSolSanctumElementalStarRoomAlexWarpsIn(), scSolSanctumElementalStarRoomDemandElementalStars(), scSolSanctumElementalStarRoomEnterStarRoom(), scSolSanctumEruptionPlayWiseOneRescue(), scSolSanctumEruptionRaiseAndShrinkActor(), scSolSanctumEruptionStopWiseOnePalette(), scSolSanctumLunaSolRoomsRiseToElementalStarRoom(), scStuccoRoomsAApplyRoomState(), scSuhallaGateSoldierVanishes() and 46 more.

Definition at line 456 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 fdMapGridCopyMetatileTilesRect(), Sint32 and width.

Referenced by scAlpineCrossingHidePath(), scAlpineCrossingRevealPath(), scAltinApplyWaterLevel(), scAltinEnterDoor(), scAltinPeakDrainThirdWater(), scAltinPeakFlipPoolRoomSwitch(), scAltinPeakFlipSpritzRoomSwitch(), scAltinPeakRestoreFallingRocksRoom(), scAltinPeakRestorePoolRoom(), scAltinPeakRestoreSecondWaterBeastRoom(), scAltinPeakRestoreSpritzRoom(), scAltinPeakRestoreThirdWaterBeastRoom(), scAltinPeakRunBoulderChase(), scAltinPeakToggleSecondWaterBeastRoomSwitchMetatiles(), scAltinPeakToggleThirdWaterBeastRoomSwitchMetatiles(), scBattleArenaDrawThreeDigitValue(), scBilibinCaveHideRevealedPath(), scBilibinCaveRevealHiddenPath(), scBilibinSetUpBarricade(), scColosseumEntranceUpdateEntranceMetatiles(), scCottageRoomsBClearStoolAndJars(), scCottageRoomsBHurryToThePlaza(), scCrossboneIsleSteppingStonesAnimateWaterLevel(), scCrossboneIsleSteppingStonesFlipWaterSwitch(), scCrossboneIsleSteppingStonesFloatLog(), scCrossboneIsleSteppingStonesFreezeThirdPuddle(), scFuchinFallsCaveLightDragonWithEye(), scHammetPalaceSetUpEntrance(), scImilFuchinFallsPrepareRoom(), scInit(), scKalayAnimatePalaceDoor(), scKalayHammetReturnsToPalace(), scKalayPrepareTunnelPassage(), scKalayPrepareTunnelTreasureRoom(), scKalayUpdateTunnelPassages(), scKolimaLowerBridge(), scKolimaRestoreBridgeState(), scMercuryLighthouseAerieAlexAppears(), scMercuryLighthouseAerieCallLift(), scMercuryLighthouseDrawNorthJetTiles(), scMercuryLighthouseEntranceActivateWithPly(), scMercuryLighthouseJumpDownPastCrystal(), scMercuryLighthouseMiaOpensEntranceWithPly(), scMercuryLighthouseOpenGateWithMovedStatue(), scMercuryLighthouseOpenUpperGateWithMovedStatue(), scMercuryLighthousePlyOpensWaterfallPassage(), scMercuryLighthousePressGateFloorSwitch(), scMercuryLighthousePressUpperGateFloorSwitch(), scMercuryLighthousePushChannelPipes(), scMercuryLighthousePushSpoutAndNorthJetPipes() and 59 more.

Definition at line 463 of file script.h.

fdMapGridCopyMetatilesLayered

static inline void fdMapGridCopyMetatilesLayered(Sint32 srcX, Sint32 srcY, Sint32 destX, Sint32 destY, Sint32 width, Sint32 height)

Changes the pictures of part of the room as fdMapGridCopyMetatilesTo does, through fdMapGridCopyMetatileIndexRect, which takes the size first.

References fdMapGridCopyMetatileIndexRect(), Sint32 and width.

Referenced by scAltmillerCaveReleaseWallBurst(), scBabiLighthouseHideTruthDoorSwitch(), scBabiLighthouseInspectTruthDoorSwitch(), scBabiLighthouseShowTruthDoorSwitch(), scColosseumAzartMatchUpdateBrokenBridge(), scInit(), scLaliveroIodemGivesBlackOrb() and scRevealHideSecrets().

Definition at line 475 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 scColosseumEntranceExplainPartySupport(), scFuchinFallsCaveEndRevealLighting(), scFuchinTempleAnimateRevealLesson(), scFuchinTempleNyunpaOffersTest(), scHammetPalaceIvanReportsToLayana(), scImilFuchinFallsPrepareRoom(), scImilMeetMiaAtOldCouplesHouse(), scInit(), scMercuryLighthouseAeriePartyArrives(), scMercuryLighthouseMiaOpensEntranceWithPly(), scMercuryLighthousePlyOpensWaterfallPassage(), scMercuryLighthousePushJetRoomPipes(), scSolSanctumLunaSolRoomsArriveAfterWiseOnesRescue(), scTreeRoomsPlayPostBattleConversation(), scValeKradensCottageKradenSetsOff(), scVenusLighthouseAerieRestorePartyOnBrokenAerie(), scVenusLighthouseSearchStatue() and scWorldMapShakeVenusLighthouse().

Definition at line 486 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 scColosseumEntranceExplainPartySupport(), scColosseumNavampaMatchPlayPostBattleReunion(), scFuchinFallsCaveEndRevealLighting(), scFuchinFallsCaveLightDragonWithEye(), scFuchinTempleAnimateRevealLesson(), scFuchinTempleNyunpaOffersTest(), scHammetPalaceIvanReportsToLayana(), scImilFuchinFallsPrepareRoom(), scImilMeetMiaAtOldCouplesHouse(), scInit(), scKolimaForestEntranceWitnessForestCurse(), scKolimaForestTreeRejectHermesWater(), scKolimaForestTreeRestoreTret(), scKolimaForestTreeTalkToTret(), scKolimaWitnessForestCurse(), scMercuryLighthouseAeriePartyArrives(), scMercuryLighthouseEntranceActivateWithPly(), scMercuryLighthouseMiaOpensEntranceWithPly(), scMercuryLighthousePlyOpensWaterfallPassage(), scSanctumAskQuestAgain(), scSanctumAskToAcceptQuest(), scSanctumChooseRestartOption(), scSanctumLeaveAfterRefusing(), scSanctumReceiveWiseOnesMission(), scSolSanctumElementalStarRoomBagJupiterStar(), scSolSanctumElementalStarRoomBagMercuryStar(), scSolSanctumElementalStarRoomBagVenusStar(), scSolSanctumElementalStarRoomTakeMarsStar(), scSolSanctumEruptionFadeCameraTo(), scSolSanctumEruptionPlayHostageScript(), scSolSanctumEruptionPlayWiseOneRescue(), scSolSanctumEruptionRaiseElementalLights(), scSolSanctumEruptionSetPaleTint(), scSolSanctumLunaSolRoomsArriveAfterWiseOnesRescue(), scSolSanctumLunaSolRoomsOpenOnKradenInLunaRoom(), scSolSanctumLunaSolRoomsRestorePlainTint(), scSolSanctumLunaSolRoomsRiseToElementalStarRoom(), scSolSanctumLunaSolRoomsTintLunaRoom(), scSolSanctumLunaSolRoomsTintPassageBetweenRooms(), scSolSanctumLunaSolRoomsTintSolRoom(), scTreeRoomsPlayPostBattleConversation(), scValePrologueFlashLightning(), scValePrologueShowBoulderSweepingDownriver(), scVenusLighthouseAerieCombineSaturosAndMenardi(), scVenusLighthouseAerieEruptBeacon(), scVenusLighthouseAerieFlashScreen(), scVenusLighthouseAerieRestorePartyOnBrokenAerie(), scVenusLighthouseAerieUpdateBeaconRise(), scVenusLighthouseSearchStatue(), scWorldMapShakeVenusLighthouse() and 2 more.

Definition at line 492 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 scAltinBeastHopAway(), scAltinPeakFirstBeastHopsAway(), scAltinPeakReadFallingRockSign(), scAltinPeakRunBoulderChase(), scAltinPeakShowFirstBeastRoute(), scAltmillerCaveHopOverPuddle(), scBilibinPullJillFromRiver(), scBilibinUpdateVillageStatueMetatiles(), scColosseumEntranceEscortToEastExit(), scColosseumEntranceEscortToWestExit(), scColosseumEntranceFollowEscortOut(), scColosseumEntranceWalkToEastExit(), scColosseumEntranceWalkToWestExit(), scCottageRoomsBDoraWakesIsaac(), scCottageRoomsBVisitSickDora(), scCrossboneIsleSteppingStonesTryJumpAcrossPillar(), scCrossboneIsleTryHop(), scImilArriveFromFallsCave(), scImilWalkTowardFever(), scInit(), scKolimaForestTreeRejectHermesWater(), scKolimaLowerBridge(), scLogRoomsAReturnStolenGoods(), scLogRoomsATryJumpTo(), scMcCoyPalaceAudienceWithMcCoy(), scMercuryLighthouseAerieConfrontSaturos(), scMercuryLighthouseAerieJumpToNextPlatform(), scMogallForestHopActorToWithSpeedFX(), scMogallForestTryJumpLeaderTo(), scSanctumReceiveWiseOnesMission(), scShipRoomsFindOarsmanMissing(), scShipRoomsReportMonstersBelowdecks(), scSolSanctumElementalStarRoomAlexTakesStars(), scSolSanctumElementalStarRoomEnterStarRoom(), scSolSanctumElementalStarRoomFelixRemovesMask(), scSolSanctumEruptionPlayWiseOneRescue(), scSolSanctumStatueOpenSeal(), scTolbiShipDeckJumpIntoKrakenBattle(), scTolbiShipDeckMonsterLandsOnDeck(), scTolbiShipDeckMonstersAttackCrew(), scTunnelRuinsHopLeaderTo(), scValeCaveLeapOffRidingLog(), scValeCaveMoveWestCratesIntoWater(), scValeClimbDownRoofLadder(), scValeClimbUpRoofLadder(), scValeEruptionReturnFromMtAleph(), scValeMendingTheRoof(), scValePrologueWatchAttemptToSaveFelix(), scValePrologueWatchBoulderFall(), scValeRoofMended() and 12 more.

Definition at line 498 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 scAlpineCrossingFeizhiArrives(), scAlpineCrossingLiftBoulder(), scAltinPeakReadFallingRockSign(), scAltinPeakRunBoulderChase(), scAltinPeakStartHydrosBattle(), scAltmillerCaveMeetInvisibleBabi(), scAltmillerCaveRestoreBabiAndInviteParty(), scBabiLighthouseExplainTruthDoor(), scBabiLighthouseFaranAsksPartyToOpenDoor(), scBabiPalaceHearSoldiersReport(), scBabiPalaceMeetBabiAfterColosso(), scBabiPalaceOfferRest(), scBabiPalacePassOnBabisWord(), scBabiPalaceRestInPalaceBeds(), scBabiPalaceShowBeds(), scBilibinJillGivesHardNut(), scBilibinPullJillFromRiver(), scColosseumAzartMatchTalkToBridgeAttendant(), scColosseumAzartMatchTalkToLumberAttendant(), scColosseumAzartMatchTalkToRockAttendant(), scColosseumEntranceCrowdRecognizesIsaac(), scColosseumEntranceFinalsStart(), scColosseumEntranceFollowEscortOut(), scColosseumEntranceShowClearedTrial(), scColosseumEntranceShowFailedTrial(), scColosseumNavampaMatchPlayPostBattleReunion(), scColosseumNavampaMatchTalkToFreeClimbAttendant(), scColosseumSatrageMatchTalkToLogRollingAttendant(), scColosseumSatrageMatchTalkToWallAttendant(), scColossoEndTour(), scColossoOfferCheeringSpot(), scColossoReachArena(), scCottageRoomsAGaretComesHome(), scCottageRoomsBDoraWakesIsaac(), scCottageRoomsBHurryToThePlaza(), scCottageRoomsBShowMythrilBag(), scCottageRoomsBVisitSickDora(), scCrossboneIsleKeysBaneFirstEscape(), scCrossboneIsleKeysBaneLastEscape(), scCrossboneIsleKeysBaneSecondEscape(), scFuchinTempleFehSeesChi(), scFuchinTempleFeizhiLeavesForHsu(), scFuchinTempleMonkLetsPartyIntoGrotto(), scFuchinTempleNyunpaOffersTest(), scFuchinTempleOpenLockedDoor(), scFuchinTempleRunHamasRevealLesson(), scFuchinTempleStudentExplainsChiRules(), scFuchinTempleStudentsSeeTreeFall(), scFuchinTempleStudentWalksAroundTree(), scGomaCaveEntranceIvanJoins() and 185 more.

Definition at line 504 of file script.h.

scFieldScriptShowTwoMessagesAndWait

static inline void scFieldScriptShowTwoMessagesAndWait(Sint32 speaker, Sint32 x, Sint32 y, Sint32 portraitX, Sint32 portraitY, Sint32 otherSpeaker, Sint32 otherX, Sint32 otherY, Sint32 otherPortraitX, Sint32 otherPortraitY, Sint32 unused)

Has two actors speak at once, each message and its portrait placed by the script, in tiles.

References Sint32 and syImportScriptShowTwoMessagesAndWait().

Referenced by scCottageRoomsAGaretComesHome(), scSanctumAskAboutNewAdepts(), scValeMendingTheRoof(), scValeRoofMended(), scValeUnusedRoofMended() and scWorldMapShowEndingScript().

Definition at line 511 of file script.h.

Variables in detail

SceneLocalState

extern Uint8 SceneLocalState[]

120 bytes of EWRAM where scene overlays keep state of their own, such as Altmiller Cave's rock puzzle.

Referenced by gmMainRoutineStateInitDefaults(), scColosseumSatrageMatchStartOpponentPath(), scColossoMarkOpponentFinished(), scColossoStartOpponent(), scColossoUpdatePathOpponent(), scColossoWaitForOpponentToFinish() and scInit().

Definition at line 37 of file script.h.

On this page

StructuresMacrosEnumerationsFunctionsVariablesDescriptionMacros in detailSTORE_CONSTColossoStateSPEAKER_PORTRAIT_LEFTSPEAKER_PORTRAIT_RIGHTSPEAKER_WINDOW_ABOVESPEAKER_WINDOW_BELOWSPEAKER_FLAGSSPEAKER_ACTOR_MASKMAP_EDIT_STEP_ROWMAP_EDIT_STEPS_ENDfdActorSetPosfdActorSetSpeedfdActorSetSpeedAndAccelerationfdCameraSetSpeedfdCameraSetSpeedAndAccelerationSCRIPT_CAMERA_FIXEDfdCameraMoveToSCRIPT_SHAKE_FIXEDfdMapGridSetShakesyRandomBelowscFieldActorSetMoveTargetEnumerations in detailACTOR_BLEND_MODEFunctions in detailsyImportScriptSetExitRequestsyImportActorSetPossyImportActorSetAnimationfdActorSetAnimationsyImportGameFlagSetsyImportRandomNextsyMathDivideUnsignedsyMathRemainderUnsignedfdActorSetScriptfdActorRunScriptAndWaitsyImportScriptShowTwoMessagesAndWaitsySoundPlayStubfdScriptSkipMessagesfdScriptShowMessagefdScriptOpenMessagefdScriptAskYesNofdActorGetfdActorSetPosFXfdActorSetSpeedFXfdActorSetDestinationfdActorSetDestinationOffsetfdActorWalkTofdActorWalkByfdActorFaceDirectionfdActorFaceActorfdActorShowEmotefdActorSetAttachedEffectfdCameraSetSpeedFXfdCameraMoveToFXfdMapGridCopyMetatilesfdMapGridCopyMetatileAttributesfdMapGridSetShakeFXfdScriptGetFlagfdScriptSetFlagfdScriptClearFlagfdScriptPlaySoundsyRandomNextsyMathDividescFieldActorSetMoveTargetFXfdActorSetColorModescFieldActorCreatefdMapGridAnimateMetatilesfdTreasureSpotSetPosfdActorCenterAndWalkfdActorWalkByAndWaitscFieldScriptShowMessageThenWaitfdActorSetSpriteColorByIdfdMapGridCopyMetatilesTofdMapGridCopyMetatilesLayeredfdPaletteFadeApplySourcefdPaletteFadeApplyTargetfdActorMoveToAndWaitfdActorWalkToAndWaitscFieldScriptShowTwoMessagesAndWaitVariables in detailSceneLocalState