Skip to Content
The Alchemy Project

include/field/script_inline.h

The script inlines: one typed inline for each script command a script calls by its own name, passing it on to the main image's import (fdActorFaceEachOther calls fdActorTurnToFaceEachOther). More…

Included by level.c, psynergy_test.c, psynergy_test_2.c, shop_test.c, test_scenes.c, airs_rock.c, airs_rock_inside.c, alhafra.c, alhafra_manor.c, alhafra_rooms.c, alhafran_cave.c, ancient_lemuria.c, anemos_inner_sanctum.c, anemos_inner_sanctum_dullahan.c, ankohl_ruins.c, apojii_islands.c, apojii_islands_cave.c, aqua_rock.c, aqua_rock_inside.c, atteka_inlet.c, caverns.c, champa.c, champa_cliff_caves.c, champa_rooms.c, champa_sanctum.c, clear.c, contigo.c, daila.c, dehkan_plateau.c, eastern_alhafra.c, eastern_alhafra_ship.c, epilogue.c, gabomba_catacombs.c, gabomba_statue.c, gabomba_statue_chamber.c, gaia_rock.c, gaia_rock_inside.c, garoh.c, garoh_rooms.c, gondowan_cliffs.c, gondowan_cliffs_hideout.c, idejima.c, islet_cave.c, islets.c, izumo.c, izumo_rooms.c, izumo_ruins.c, jupiter_lighthouse_aerie.c, jupiter_lighthouse_aerie_beacon.c, jupiter_lighthouse_basement.c and 64 more.

Macros

NameDescription
#definescFieldVectorAddPolarOffset (radius, heading, probe)Moves a point a radius in whole pixels along a heading: scFieldVectorAddPolarOffset(16, heading, &probe).

Functions

NameDescription
static inline voidfdActorFaceEachOther (Sint32 actorId, Sint32 other, Sint32 ticks)Turns two actors toward each other, as a conversation between them begins.
static inline voidfdActorSetAnimation (Sint32 actorId, Sint32 animation)Switches an actor to an animation of its sprite.
static inline voidscFieldActorSetAnimation (Sint32 actorId, Sint32 animation)fdActorSetAnimation as the scripts that take fdActorSetAnimationById for a function returning int make the call.
static inline voidfdPaletteFadeInterpolate (Sint32 ticks)Runs a script's palette fade, from the source colours to the target ones, over ticks.
static inline voidgmItemLoadIcon (Sint32 item)Draws an item's icon, ready for a script to show it.
static inline voidmnMessageShowCentered (Sint32 msg, Sint32 flags)Shows a message in the middle of the screen rather than in a speech window.
static inline Sint32gmPartyGiveItem (Sint32 item, Sint32 flags)Gives the party an item from a script and says who got it; -1 when it was left behind.
static inline Sint32mnVRAMLoad (Sint32 block, Sint32 size, const void *data)Loads a scene's sprite picture into VRAM; returns its first tile number, 0 when there's no room.
static inline voidscFieldActorLaunchFromLeader (Sint32 actorId, Sint32 dx, Sint32 dz, Sint32 facing)Puts an actor on the leader and sends it walking off by (dx, dz), then starts the movement type facing names (fdActorLaunchFromLeader).
static inline voidscFieldVectorAddPolarOffsetFX (FIXED radius, Sint32 heading, FIXED *probe)Moves a point radius, in 16.16 fixed point, along a heading on the ground plane (syVectorAddPolarOffset).
static inline voidfdSetMetatileBehaviorAt (Sint32 layer, FIXED x, FIXED y, Sint32 behavior)Changes the metatile behavior of the metatile at (x, y), in 16.16 pixels, opening or closing the way (fdMapGridSetMetatileBehaviorAt).
static inline voidfdSetWorldMapWindowMetatileTile (Sint32 x, Sint32 y, Sint32 metatileX, Sint32 metatileY)Changes one 512-pixel tile of the World Map, drawn at once when it's next to the view (fdWorldMapSetWindowMetatileTile).
static inline voidscFieldScriptWait (Sint32 ticks)Holds the script for ticks while the field goes on (fdScriptWait).
static inline voidfdActorFaceDirectionAndWait (Sint32 actorId, Sint32 facing)Turns an actor to a direction and holds the script until it has turned.
static inline voidfdActorSetPosAndFacing (Sint32 actorId, FIXED x, FIXED z, Uint16 facing)Places an actor at a point at once, as fdActorSetPos does, facing a direction.
static inline voidscFieldActorSetAnimationAndWait (Sint32 actorId, Sint32 animation)fdActorSetAnimationAndWait as the scripts that take fdActorSetAnimationAndWait for a function returning int make the call.
static inline voidscFieldActorJump (Sint32 actorId, Sint32 speed, Sint32 ticks)Throws an actor upward at speed pixels a tick, then holds the script for ticks.
static inline voidscFieldActorSetSpritePriority (Sint32 actorId, Sint32 priority)Fixes the priority of an actor's sprite, which then no longer follows its depth.
static inline voidscFieldActorStartRepeatedMotion (Sint32 actorId, Sint32 count)Squashes an actor and springs it back count times.
static inline voidscFieldActorWatchAndSetScript (Sint32 actorId, Sint32 watchedActorId)Makes an actor follow another.
static inline voidscFieldActorWaitForMoveById (Sint32 actorId)Holds the script until an actor arrives, 600 ticks at most.
static inline voidscFieldScriptEndLastingPsynergy (Sint32 skip)Ends Reveal, the ring of light and Sand, each unless skip holds its bit.
static inline voidscFieldScriptSetMessageId (Sint32 msg)Makes message the script's next line.
static inline voidscScriptCameraFollowActor (Sint32 actorId, Sint32 keepPos)Makes the camera follow an actor (fdCameraFollowActor).
static inline voidscFieldActorSetPosAndResetMotion (struct ACTOR *actor, FIXED x, FIXED y, FIXED z)Places an actor at (x, y, z), 16.16 pixels, and stops it.
static inline voidscFieldActorWaitForScriptEndById (Sint32 actorId)Holds the script until an actor's script ends, 300 ticks at most.
static inline voidscFieldActorSetSpriteColor (struct ACTOR *actor, Sint32 colorMode)Sets the colour mode of an actor's sprite (fdActorSetSpriteColor).
static inline voidscFieldActorStop (Sint32 actorId)Stops an actor's movement type and stands it on the idle script.
static inline voidscFieldScriptSetExitRequest (Sint32 exit)Requests the exit the field leaves the scene by.
static inline voidscFieldActorWaitForMove (void *actor)Holds the script until an actor has reached its destination (fdActorWaitForMove).
static inline Sint32scFieldPartyInventoryFindMember (Sint32 item)Who carries an item, asking the leader first, or -1.
static inline voidscScriptMessageShowCentered (Sint32 msg, Sint32 mode, Sint32 yOffset)Shows a message in a window in the middle of the screen (mnFieldMessageShowCentered).
static inline Sint32scFieldPartyGetLeaderActor (void)The leader's actor id.
static inline Sint32scFieldScriptAskYesNoWithActorAnimation (Sint32 actorId, Sint32 flags)Asks yes or no as the speaker nods or shakes its head; returns 0 for yes.
static inline voidscFieldScriptSetAfterBattleDestination (Sint32 sceneId, Sint32 entrance)Sets where the party goes after the script's battle (fdScriptSetAfterBattleDestination).
static inline voidscFieldDjinnJoinParty (Sint32 slot, Sint32 element, Sint32 djinn)Adds a Djinni to the party (fdDjinnJoinParty).
static inline struct ACTOR *scScriptCameraGetActor (void)The actor the camera follows (fdCameraGetActor).
static inline Sint32scScriptYesNoAsk (Sint32 atBottom)Asks the player yes or no (fdYesNoAsk).
static inline voidscFieldWorldMapStartZoom (FIXED zoom, Sint32 ticks)Zooms the World Map's view to zoom, 16.16, over ticks.
static inline voidscFieldWindowColorApply (Sint32 color, Sint32 brightness)Applies a window colour (mnWindowColorApply).
static inline voidfdScriptRequestDjinnBattle (Sint32 actorId, Sint32 djinni)Requests a battle with a Djinni (fdRequestDjinnBattle).
static inline voidscFieldScriptAddPartyMember (Sint32 unit, Sint32 announce)Adds unit to the party, announcing it when announce is nonzero.
static inline voidscFieldMapGridWaitForShakeToSettle (void)Holds the script until the screen shake dies down (fdMapGridWaitForShakeToSettle).
static inline Sint32scFieldMapGridGetMetatileBehaviorAt (Sint32 layer, FIXED x, FIXED y)The metatile behavior of the metatile at (x, y) (fdMapGridGetMetatileBehaviorAt).
static inline voidscFieldActorShowItemIconById (Sint32 actorId, Sint32 item)Draws an item's icon into an actor's sprite, or blanks it (fdActorShowItemIconById).
static inline voidscFieldActorSetItemIcon (struct ACTOR *actor, Sint32 item)Draws an item's icon into an actor's sprite (fdActorSetItemIcon).
static inline voidscFieldWorldMapSetWindowMetatileTileAndDraw (Sint32 x, Sint32 y, Sint32 metatileX, Sint32 metatileY)Changes one tile of the World Map and draws it (fdWorldMapSetWindowMetatileTileAndDraw).
static inline voidscScriptCameraMoveToActor (Sint32 actorId, Sint32 pan)Moves the camera onto an actor, to its height too (fdCameraMoveToActor).
static inline voidscFieldActorSetSpriteRotationById (Sint32 actorId, Sint32 angle)Rotates an actor's sprite (fdActorSetSpriteRotationById).
static inline Sint32scFieldMapGridSetMetatileBehavior (Sint32 x, Sint32 z, Sint32 layer, Sint32 behavior)Sets the metatile behavior of a metatile (fdMapGridSetMetatileBehavior).
static inline voidfdScriptDigUpTreasure (Sint32 mode, Sint32 actorId, Sint32 flag)Scoop digs up a buried treasure: with mode RETURN_HOME_DUG_UP, the treasure actor comes up at its home and its flag is set (fdActorReturnHome).
static inline voidscFieldMapGridSetMetatileHeight (Sint32 x, Sint32 z, Sint32 layer, Sint32 height)Gives the metatile at (x, z) of a layer the ground height height, in 8-pixel steps (fdMapGridSetMetatileHeight).
Sint32scMapMetatileSetAttributes (Uint32 layer, Sint32 x, Sint32 z, Sint32 value)Replaces a metatile's collision code and attributes on a layer, or in the metatile buffer for a layer past the overhead one, and returns the old value.
static inline voidscFieldMapMetatileSetAttributes (Sint32 layer, Sint32 x, Sint32 z, Sint32 value)Replaces a metatile's collision code and attributes on a layer (scMapMetatileSetAttributes).
static inline voidfdScriptStartColorTransition (Sint32 ticks, Sint32 color)Fades the palettes to color over ticks ticks, keeping the field engine's colours to fade back to (fdStartColorTransition).
static inline voidscFieldCycloneCopyTouchedMetatiles (Sint32 x, Sint32 z, Sint32 layerIndex, Sint32 width, Sint32 height, Sint32 toX, Sint32 toZ)Cyclone scatters the bushes or weeds it touches: the metatiles of the width by height rectangle at (x, z) of the layer take those of the scattered plants, kept at (toX, toZ) in the map (fdCycloneCopyTouchedMetatiles).
static inline voidscFieldTileCopiesCopyTouchedMetatiles (Sint32 srcX, Sint32 srcZ, Sint32 width, Sint32 height, Sint32 windowX, Sint32 windowZ, Sint32 layer)Opens the metatiles of a window that the leader can reach, taking their pictures from the same place of another window, as Cyclone clears a bush (fdTileCopiesCopyTouchedMetatiles).
static inline voidscFieldMadPlantLeapAtLeader (Sint32 sprite, Sint32 x, Sint32 z)A Mad Plant leaps out of a cleared bush at the leader (fdMadPlantLeapAtLeader).
static inline voidscFieldEffectSpriteInit (EFFECT_SPR *sprite, Sint32 pivotX, Sint32 pivotY, Uint32 attributes, Sint32 tile)Sets up an effect sprite: its pivot, its OAM attributes and its first tile (fdEffectSpriteInit).

Description

The script inlines: one typed inline for each script command a script calls by its own name, passing it on to the main image's import (fdActorFaceEachOther calls fdActorTurnToFaceEachOther).

A script writes fdActorFaceEachOther(4, 8, 30); and the inline makes the call. Where an inline would have its function's name, the function keeps it and the inline takes the Field prefix, as scFieldActorJump does, or Script in place of a Field the function's name already has (scScriptCameraGetActor).

Macros in detail

scFieldVectorAddPolarOffset

#define scFieldVectorAddPolarOffset(radius, heading, probe)

Moves a point a radius in whole pixels along a heading: scFieldVectorAddPolarOffset(16, heading, &probe).

Referenced by fdActorLaunchAhead(), fdLeaderSlideOnIce(), fdLeaderSlideOnIceAhead(), scActorRollAndCrumble(), scActorStopAtPushTarget(), scAlhafranCaveChauchaAndEoleoVisit(), scAnemosInnerSanctumMimicLeader(), scAnemosInnerSanctumSparkRing(), scAquaRockInsideAdvanceStreams(), scGabombaStatueCircleOwner(), scGabombaStatueFindCogAhead(), scGabombaStatueGetToothPos(), scGabombaStatueTurnTooth(), scGondowanCliffsTalkToDog(), scJupiterLighthouseJumpOrPushBlock(), scLeaderSlideOnIceFromEdge(), scLemurianShipDeckEmitSparkle(), scMagmaRockInsideDrainLava(), scMagmaRockInsideLeapOverLava(), scMarsLighthouseTowersPushPipeOrJump(), scMarsLighthouseTowersPushStoneAlongLedge() and scWorldMapGazeIntoPond().

Definition at line 98 of file script_inline.h.

Functions in detail

fdActorFaceEachOther

static inline void fdActorFaceEachOther(Sint32 actorId, Sint32 other, Sint32 ticks)

Turns two actors toward each other, as a conversation between them begins.

References fdActorTurnToFaceEachOther() and Sint32.

Referenced by scAlhafraRoomsReadAlexsMind(), scAlhafraRoomsTalkToDemandingGuest(), scAquaRockInsideReadParchTablet(), scChampaFeizhiArrives(), scGondowanCliffsTalkToDog(), scIdejimaCatchUpWithFelix(), scIzumoRoomsRecognizeTheHeroes(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthousePartyArrivesAtTheFight(), scLemurianShipDeckHoldOnToTiller(), scLemuriaTalkToLonelyChild(), scLemuriaTalkToSpoiledChild(), scLohoFireCannon(), scMadraInspectPartyAtGate(), scMadraRoomsGiveHealingFungus(), scMadraRoomsGiveLaughingFungus(), scMadraRoomsSayFarewellAgain(), scMadraRoomsShinAngersPiers(), scMadraRoomsWelcomePiersHome(), scMagmaRockInsideReadBlazeTablet(), scShamanVillageCaveBeatGladiators(), scShamanVillageCaveMeetGladiators(), scTrialRoadBeatMoapa() and scVenusLighthouseDoubtLeaving().

Definition at line 20 of file script_inline.h.

fdActorSetAnimation

static inline void fdActorSetAnimation(Sint32 actorId, Sint32 animation)

Switches an actor to an animation of its sprite.

References fdActorSetAnimationById() and Sint32.

Referenced by dbPsynergyTestLightTorch(), dbPsynergyTestPoundTorch(), scActorJoinLeader(), scActorRejoinLeader(), scAlhafraFindGoldCoins(), scAlhafraMadransArrive(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafranCaveSetUpCave(), scAlhafranCaveSetUpJail(), scAlhafraRoomsGuestsAskForTea(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAnemosInnerSanctumArriveOnElevatorLift(), scAnemosInnerSanctumEnterTheRoom(), scAnemosInnerSanctumLightSymbol(), scAnemosInnerSanctumPressRoundSwitch(), scAnkohlRuinsCarriedOffLedge(), scAnkohlRuinsLandFromFall(), scAnkohlRuinsPlaceGreatFaceHalf(), scAnkohlRuinsRaiseFirstSand(), scAnkohlRuinsRaiseSecondSand(), scApojiiIslandsEnterDoor(), scAquaRockInsideBlockMoaiWithPillar(), scAquaRockInsideDouseFloodedHallEastMoai(), scAquaRockInsideDouseFloodedHallWestMoai(), scAquaRockInsideDouseLowerExitMoai(), scAquaRockInsideDouseWaterfallMoai(), scAquaRockInsideParchSteamRoomMoai(), scAquaRockInsideReadParchTablet(), scChampaFeizhiArrives(), scChampaMeetAlex(), scChampaOpenDoorAndEnter(), scCrackedTileDropIn(), scCrackedTileFall(), scCrumblingPillarPlaceWithStandIn(), scDriftScenePrepare(), scEasternAlhafraAskIfFinished(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraGiveUpOnMastBlock(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraOverhearWorkers(), scEasternAlhafraPlaceClearedDebris(), scEasternAlhafraRollLog(), scEasternAlhafraWorkersTellMayor(), scGabombaStatueChamberAkafubuOffersToHelp(), scGabombaStatueClimbDownEyesLadder(), scGabombaStatueClimbDownLadder(), scGabombaStatueEndRide(), scGabombaStatueInitEyes(), scGabombaStatueLandFromFall(), scGabombaStatueMouseShowsTheWay() and 224 more.

Definition at line 27 of file script_inline.h.

scFieldActorSetAnimation

static inline void scFieldActorSetAnimation(Sint32 actorId, Sint32 animation)

fdActorSetAnimation as the scripts that take fdActorSetAnimationById for a function returning int make the call.

References fdActorSetAnimationById() and Sint32.

Referenced by scGarohWerewolvesRevealThemselves(), scInit(), scLemuriaSpringGivePrize(), scMarsLighthouseAerieFaceDoomDragon(), scVenusLighthouseEntranceBirdsFlyOff() and scVenusLighthouseEntranceRuffianWaitsForBackup().

Definition at line 34 of file script_inline.h.

fdPaletteFadeInterpolate

static inline void fdPaletteFadeInterpolate(Sint32 ticks)

Runs a script's palette fade, from the source colours to the target ones, over ticks.

References fdPaletteFadeStartInterpolation() and Sint32.

Referenced by scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindOpensTheTop(), scAnemosInnerSanctumApproachCharonSlate(), scAnemosInnerSanctumLightSymbol(), scEasternAlhafraBriggsStealsShip(), scGabombaStatueFocusEnergies(), scGabombaStatueHearTheOffering(), scGabombaStatueSawEnergyFlow(), scGabombaStatueWatchTheChargesStick(), scGarohCrossLowerTwilightLine(), scGarohCrossUpperTwilightLine(), scGarohInitEntrance(), scGarohInitPath(), scGarohInitVillage(), scGarohRestoreEntranceLight(), scInit(), scJupiterLighthouseActivateTheLighthouse(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseFinishMovingBlock(), scJupiterLighthouseFlashSky(), scJupiterLighthouseHearTheVoice(), scJupiterLighthouseRaiseBeaconLight(), scLemurianShipDeckReturnToShip(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieFindWhoTheDragonWas(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseAerieRaiseBeaconFire(), scMarsLighthouseAerieWatchGoldenSunRise(), scMarsLighthouseEntranceBurstIceSheet(), scMarsLighthouseHallLightFlame(), scMarsLighthouseStarRoomBurstIce(), scMarsLighthouseStarRoomTakeMarsStar(), scMarsLighthouseStarRoomUseMarsStar(), scNaribweRoomsReadFortune(), scProxSayFarewell(), scTeleportArriveWhirling(), scTreasureIsleMeetStarMagician(), scWorldMapLoadTidalWave() and scWorldMapWatchVenusLighthouseCollapse().

Definition at line 47 of file script_inline.h.

gmItemLoadIcon

static inline void gmItemLoadIcon(Sint32 item)

Draws an item's icon, ready for a script to show it.

References mnIconDrawItem() and Sint32.

Referenced by scJupiterLighthouseCastTheJupiterStar(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseStarRoomCreateMarsStar(), scMarsLighthouseStarRoomLoadMarsStarIcon() and scSettlementsSetUpKaltIsland().

Definition at line 53 of file script_inline.h.

mnMessageShowCentered

static inline void mnMessageShowCentered(Sint32 msg, Sint32 flags)

Shows a message in the middle of the screen rather than in a speech window.

References mnFieldMessageShow() and Sint32.

Referenced by dbPsynergyTestDamageAndAfflictParty(), dbPsynergyTestGivePartyDjinn(), dbPsynergyTestGiveTreasureTestStock(), dbPsynergyTestRaisePartyLevels(), scAirsRockExamineWindStone(), scAquaRockInsideCheckColumn(), scAquaRockInsideCheckPsynergyStone(), scAquaRockInsideReadParchTablet(), scAquaRockInsideWalkToParchTablet(), scGaiaRockCheckAltar(), scGaiaRockInsideChallengeSerpent(), scGaiaRockInsideCheckAltar(), scGaiaRockInsidePlaceDollOnEntranceAltar(), scGaiaRockInsideReadSandTablet(), scIdejimaCatchUpWithFelix(), scIdejimaWakeKraden(), scIsletsTradeWithBird(), scIsletsTradeWithDog(), scJupiterLighthouseAlexHealsTheParty(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseTryLockedDoor(), scLemuriaDrinkFromSpring(), scLemurianShipDeckTryHeldDoor(), scLemuriaSpringDrinkFromSpring(), scMagmaRockInsideExamineEmberStone(), scMagmaRockInsideReadBlazeTablet(), scMagmaRockInsideReadBlazeTabletFromNorth(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseStarRoomExamineStatue(), scMarsLighthouseStarRoomTakeMarsStar(), scMarsLighthouseStarRoomUseMarsStar(), scNaribweRoomsReadFortune(), scVenusLighthouseReadRelief(), scVenusLighthouseReadTrueHeart(), scWorldMapGazeIntoPond() and scWorldMapSetUpFlyingShip().

Definition at line 59 of file script_inline.h.

gmPartyGiveItem

static inline Sint32 gmPartyGiveItem(Sint32 item, Sint32 flags)

Gives the party an item from a script and says who got it; -1 when it was left behind.

References fdPartyInventoryGiveItem() and Sint32.

Referenced by scIsletsPengusGivesPrettyStone(), scIsletsTradeWithBird(), scIsletsTradeWithDog(), scKandoreanTempleReceiveLash(), scLemuriaSpringGivePrize(), scMagmaRockInsideExamineEmberStone(), scSettlementsCatchApple(), scTrialRoadBeatMoapa() and scYallamRoomsTalkToSunshinesWife().

Definition at line 66 of file script_inline.h.

mnVRAMLoad

static inline Sint32 mnVRAMLoad(Sint32 block, Sint32 size, const void *data)

Loads a scene's sprite picture into VRAM; returns its first tile number, 0 when there's no room.

References Sint32 and syVRAMCacheLoad().

Referenced by dbPsynergyTest2StartRocks(), dbPsynergyTestStartRings(), fdGroundParticlesStart(), scAnkohlRuinsInitSand(), scApojiiIslandsStartMetatileMarkers(), scAquaRockInsideStartPillars(), scAquaRockInsideStartSplashes(), scChampaCliffCavesStartFlash(), scCrackedTileFind(), scEasternAlhafraStartFallingRocks(), scEpilogueLoadPortraitFrame(), scGabombaStatueDrawClock(), scGabombaStatueStartClock(), scGaugeDraw(), scGaugeInit(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseStartBeam(), scJupiterLighthouseStartSparkRing(), scLemuriaPalaceLoadMaps(), scLightSpritesInitEnergyBlockGlow(), scLightSpritesInitPathGlows(), scMagmaRockInsideStartFallingRocks(), scMagmaRockStartFallingRocks(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseAerieStartRisingRings(), scMarsLighthouseEntranceStartHoleMask(), scMarsLighthouseStarRoomCreateMarsStar(), scMarsLighthouseStarRoomLoadMarsStarIcon(), scProxStartFallingRocks(), scSettlementsSetUpKaltIsland(), scShamanVillageLoadLettering(), scTundariaTowerStartFallingRocks(), scVenusLighthouseEntranceBlastActorSkyward() and scVenusLighthouseEntranceStartDust().

Definition at line 73 of file script_inline.h.

scFieldActorLaunchFromLeader

static inline void scFieldActorLaunchFromLeader(Sint32 actorId, Sint32 dx, Sint32 dz, Sint32 facing)

Puts an actor on the leader and sends it walking off by (dx, dz), then starts the movement type facing names (fdActorLaunchFromLeader).

References fdActorLaunchFromLeader() and Sint32.

Referenced by scAncientLemuriaHeadForTheDock(), scAncientLemuriaMeetTheLemurians(), scChampaCliffCavesObabaMournsSalamander(), scChampaFeizhiArrives(), scChampaMeetAlex(), scDailaMeetAlex(), scEasternAlhafraAskIfFinished(), scEasternAlhafraAskToHelpWithMast(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraGiveUpOnMastBlock(), scEasternAlhafraOverhearWorkers(), scEasternAlhafraShipMayorArrives(), scEasternAlhafraWorkersTellMayor(), scGarohFollowWerewolfIntoCave(), scGarohMahaTellsTheLegend(), scGarohWerewolfRunsPast(), scGarohWerewolvesRevealThemselves(), scIzumoRoomsRecognizeTheHeroes(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthousePartyArrivesAtTheFight(), scKandoreanTempleKradenSuspectsTheWall(), scLemuriaAdmirePalace(), scLemuriaDockMoveKraden(), scLemuriaKeepLookingAround(), scLemuriaMarvelAtCity(), scLemurianShipDeckHoldOnToTiller(), scLemurianShipDeckReachPiersShip(), scLemurianShipDeckSetOutForMadra(), scLemurianShipDeckSightMenardisShip(), scLemuriaPalaceMeetKingHydros(), scLemuriaRoomsMeetLunpa(), scLemuriaRoomsPiersVisitsUncle(), scMadraInspectPartyAtGate(), scMadraMeetKarst(), scMadraRoomsShinAngersPiers(), scMadraRoomsWelcomePiersHome(), scShamanVillageCaveMeetGladiators(), scVenusLighthouseEntrancePointToMeetingSpot() and scVenusLighthouseEntranceSoldiersAmbushParty().

Definition at line 80 of file script_inline.h.

scFieldVectorAddPolarOffsetFX

static inline void scFieldVectorAddPolarOffsetFX(FIXED radius, Sint32 heading, FIXED *probe)

Moves a point radius, in 16.16 fixed point, along a heading on the ground plane (syVectorAddPolarOffset).

References Sint32 and syVectorAddPolarOffset().

Referenced by dbPsynergyTest2SpawnRocks(), scAirsRockInsideOrbitAnchor(), scAirsRockInsideShebaLearnsReveal(), scAnemosInnerSanctumCircleOrb(), scAnemosInnerSanctumSendSpark(), scAnemosInnerSanctumSpiralIn(), scAquaRockInsidePiersLearnsParch(), scGaiaRockInsideFelixLearnsSand(), scGaiaRockSpawnCirclingLeaves(), scJupiterLighthouseRestartSpark(), scMagmaRockDropRocks(), scMagmaRockInsideDropRocks(), scMagmaRockInsideLearnBlaze(), scMagmaRockInsideOrbitParent(), scOrbiterStep(), scRockSpawn(), scVenusLighthouseEntranceEmitDust(), scWorldMapCircleEcho() and scWorldMapSpawnParticle().

Definition at line 90 of file script_inline.h.

fdSetMetatileBehaviorAt

static inline void fdSetMetatileBehaviorAt(Sint32 layer, FIXED x, FIXED y, Sint32 behavior)

Changes the metatile behavior of the metatile at (x, y), in 16.16 pixels, opening or closing the way (fdMapGridSetMetatileBehaviorAt).

References fdMapGridSetMetatileBehaviorAt() and Sint32.

Referenced by scAnemosInnerSanctumFinishMovingBlock(), scAnemosInnerSanctumStartMovingBlock(), scMagmaRockReadyHighWestStatue() and scMagmaRockResetHighWestStatue().

Definition at line 103 of file script_inline.h.

fdSetWorldMapWindowMetatileTile

static inline void fdSetWorldMapWindowMetatileTile(Sint32 x, Sint32 y, Sint32 metatileX, Sint32 metatileY)

Changes one 512-pixel tile of the World Map, drawn at once when it's next to the view (fdWorldMapSetWindowMetatileTile).

References fdWorldMapSetWindowMetatileTile() and Sint32.

Referenced by scInit().

Definition at line 111 of file script_inline.h.

scFieldScriptWait

static inline void scFieldScriptWait(Sint32 ticks)

Holds the script for ticks while the field goes on (fdScriptWait).

References fdScriptWait() and Sint32.

Referenced by dbPsynergyTestLightTorch(), dbPsynergyTestPracticeShout(), dbPsynergyTestStartleAfterBlaze(), dbPsynergyTestStartleAgain(), RumbleBeforePillarSinks(), scActorPopQuestionMarks(), scAirsRockEnterTheRock(), scAirsRockInsideBlowGust(), scAirsRockInsideCheckPsynergyStone(), scAirsRockInsideLandInHall(), scAirsRockInsideOpenTabletRoomDoor(), scAirsRockInsideReadRevealTablet(), scAirsRockInsideRiseOnLift(), scAirsRockInsideScatterSparks(), scAirsRockInsideShebaLearnsReveal(), scAirsRockInsideStepOntoStake(), scAirsRockInsideWakeEntranceStatue(), scAirsRockInsideWakeHallStatue(), scAirsRockInsideWalkToRevealTablet(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAirsRockWhirlwindOpensTheTop(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafranCaveTalkToBriggs(), scAlhafraPirateSeesMadrasMayor(), scAlhafraRoomsAlexHearsOfBriggs(), scAlhafraRoomsGuestsAskForTea(), scAlhafraRoomsHostTellsOfRepairs(), scAlhafraRoomsMeetAlex(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAnemosInnerSanctumApproachCharonSlate(), scAnemosInnerSanctumEnterTheRoom(), scAnemosInnerSanctumFinishMovingBlock(), scAnemosInnerSanctumLightSymbol(), scAnemosInnerSanctumPressRoundSwitch(), scAnemosInnerSanctumPressSwitch(), scAnemosInnerSanctumRideLiftUp(), scAnemosInnerSanctumStepOffSwitch(), scAnemosInnerSanctumTeleportOut(), scAnkohlRuinsCarriedOffLedge(), scAnkohlRuinsLandFromFall(), scAnkohlRuinsPlaceFaceHalves(), scAnkohlRuinsPlaceGreatFaceHalf(), scAnkohlRuinsPlaceSecondFloorFaceHalf(), scAnkohlRuinsPourSand(), scAnkohlRuinsPressFirstSandSwitch(), scAnkohlRuinsPressSecondSandSwitch(), scAnkohlRuinsRaiseFirstSand(), scAnkohlRuinsRaiseSecondSand(), scAnkohlRuinsStartGreatFaceSliding() and 266 more.

Definition at line 120 of file script_inline.h.

fdActorFaceDirectionAndWait

static inline void fdActorFaceDirectionAndWait(Sint32 actorId, Sint32 facing)

Turns an actor to a direction and holds the script until it has turned.

References fdActorFaceDirectionAndRefreshById() and Sint32.

Referenced by scAlhafraRoomsOverhearCrossboneIsleTale(), scAnemosInnerSanctumLightSymbol(), scAttekaInletHammaShowsTheWings(), scAttekaInletShipwrightsStopTheParty(), scChampaCliffCavesFightAvimander(), scChampaCliffCavesObabaAsksForSecondPiece(), scChampaCliffCavesObabaForgesTrident(), scChampaCliffCavesObabaMournsSalamander(), scChampaCliffCavesObabaSeesAWeapon(), scChampaCliffCavesSailorTurnsAway(), scChampaFeizhiArrives(), scChampaMeetAlex(), scChampaSailorsSpotFelix(), scChampaTalkToPracticingBoy(), scContigoBabyThinks(), scContigoInitLuckyDice(), scContigoReturnToNewHome(), scContigoTheReunion(), scDehkanPlateauCannonCornered(), scEasternAlhafraAskIfFinished(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraGiveUpOnMastBlock(), scGabombaStatueChamberAkafubuOffersToHelp(), scGabombaStatueChamberAkafubuReachesChamber(), scGabombaStatueChamberGabombaNamesWitchDoctor(), scGabombaStatueChamberWhereIsTheOrb(), scGabombaStatueFocusEnergies(), scGabombaStatueSawEnergyFlow(), scGabombaStatueSeeHowItWorks(), scGarohWerewolfPeersFromCave(), scGarohWerewolfRunsPast(), scIsletsArriveAtSecretSpot(), scIsletsArriveBackAtIsland(), scIsletsBirdReturnsToNest(), scIsletsGiveTurtle(), scIsletsLonesomeGeorgeThanks(), scIsletsPengusGivesPrettyStone(), scIsletsRideBackToIsland(), scIsletsTalkToSailorsSon(), scIsletsTalkToTreasureHunters(), scIsletsTradeWithBird(), scIsletsTradeWithCow(), scIsletsTradeWithDog(), scJupiterLighthouseActivateTheLighthouse(), scJupiterLighthouseAlexHealsTheParty(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseFinishMovingBlock(), scJupiterLighthouseIsaacAndIvanAreHurt(), scJupiterLighthouseIsaacAndIvanFall() and 80 more.

Definition at line 126 of file script_inline.h.

fdActorSetPosAndFacing

static inline void fdActorSetPosAndFacing(Sint32 actorId, FIXED x, FIXED z, Uint16 facing)

Places an actor at a point at once, as fdActorSetPos does, facing a direction.

References fdActorSetHorizontalPosAndAngleWithTerrain() and Sint32.

Referenced by scAttekaInletSetUpTheHarbor(), scAttekaInletSetUpTheHeights(), scAttekaInletShipwrightsStopTheParty(), scChampaFeizhiArrives(), scChampaFeizhiHoldsHerGift(), scDehkanPlateauInitTightropes(), scGabombaStatueChamberAkafubuOffersToHelp(), scGabombaStatueChamberWhereIsTheOrb(), scGabombaStatueSawEnergyFlow(), scGabombaStatueSeeHowItWorks(), scGabombaStatueWatchTheChargesStick(), scGarohWerewolfPeersFromCave(), scIdejimaBreakAwayFromGondowan(), scIdejimaRideTheTidalWave(), scInit(), scIsletsInitEastTundaria(), scIsletsInitSeaOfTime(), scJupiterLighthouseAlexHealsTheParty(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseJennaJoinsTheFight(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthouseShebaJoinsTheFight(), scJupiterLighthouseWeBeatThem(), scKandoreanTempleMeetPoi(), scKandoreanTemplePassTheTest(), scKandoreanTemplePoiWaitsByTheNorthRope(), scKandoreanTempleStartGate(), scKandoreanTempleStartPoisRoom(), scKibomboInitHouses(), scKibomboInitStatueGroundsCeremony(), scLemurianShipDeckHoldOnToTiller(), scLemurianShipDeckPlaceFacing(), scLohoFireCannon(), scLohoPlaceFacing(), scMadraPlaceFacing(), scMadraRoomsPlaceFacing(), scMarsLighthouseAerieFindWhoTheDragonWas(), scMarsLighthouseAerieLightBeacon(), scPrepareMap(), scProxGiveThanksForBeacon(), scProxScoopUpMold(), scProxSearchForParents(), scShamanVillageCaveBeatGladiators(), scShamanVillageCaveLoseToGladiators(), scShamanVillageCaveMeetGladiators(), scShamanVillageCavePlaceGladiators(), scShamanVillageCavePlaceGoldenShirt(), scShamanVillageRestartTrial() and 12 more.

Definition at line 133 of file script_inline.h.

scFieldActorSetAnimationAndWait

static inline void scFieldActorSetAnimationAndWait(Sint32 actorId, Sint32 animation)

fdActorSetAnimationAndWait as the scripts that take fdActorSetAnimationAndWait for a function returning int make the call.

References fdActorSetAnimationAndWait() and Sint32.

Referenced by scIsletsGiveTurtle(), scMarsLighthouseAerieFaceDoomDragon() and scVenusLighthouseEntranceRuffianWaitsForBackup().

Definition at line 141 of file script_inline.h.

scFieldActorJump

static inline void scFieldActorJump(Sint32 actorId, Sint32 speed, Sint32 ticks)

Throws an actor upward at speed pixels a tick, then holds the script for ticks.

References fdActorJump() and Sint32.

Referenced by dbPsynergyTestPracticeShout(), dbPsynergyTestStartleAfterBlaze(), dbPsynergyTestStartleAgain(), scAlhafraFindGoldCoins(), scAlhafraMadransArrive(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraRoomsOverhearCrossboneIsleTale(), scApojiiIslandsFatherSeesTheStone(), scChampaFeizhiArrives(), scChampaMeetAlex(), scChampaSailorsSpotFelix(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraOverhearWorkers(), scEasternAlhafraWorkersSeeBlockGone(), scEasternAlhafraWorkersTellMayor(), scGabombaStatueSawEnergyFlow(), scGarohFollowWerewolfIntoCave(), scGarohMahaTellsTheLegend(), scGarohWerewolfRunsPast(), scGarohWerewolvesRevealThemselves(), scGondowanCliffsTurnBackToHelpPiers(), scIdejimaBreakAwayFromGondowan(), scIdejimaCatchUpWithFelix(), scIdejimaFelixWakes(), scIdejimaFindFelixAndSheba(), scIdejimaRideTheTidalWave(), scIdejimaWakeJenna(), scIdejimaWonderWhereAlexHasGone(), scIsletsArriveAtSecretSpot(), scIsletsArriveBackAtIsland(), scIsletsBirdReturnsToNest(), scIsletsGiveTurtle(), scIsletsLonesomeGeorgeThanks(), scIsletsPengusGivesPrettyStone(), scIsletsRideBackToIsland(), scIsletsTalkToTreasureHunters(), scIsletsTradeWithBird(), scIsletsTradeWithDog(), scIzumoRoomsRecognizeTheHeroes(), scJupiterLighthouseFlashSky(), scKibomboMountainsDropOffLedge(), scLemuriaAdmirePalace(), scLemuriaMarvelAtCity(), scLemurianShipDeckReachPiersShip(), scLemurianShipDeckReturnToShip(), scLemurianShipDeckTakeTheTiller(), scLemuriaTryStuckDoor(), scMadraRoomsGuardElderGem(), scMadraRoomsShinAngersPiers() and 21 more.

Definition at line 156 of file script_inline.h.

scFieldActorSetSpritePriority

static inline void scFieldActorSetSpritePriority(Sint32 actorId, Sint32 priority)

Fixes the priority of an actor's sprite, which then no longer follows its depth.

References fdActorSetSpritePriority() and Sint32.

Referenced by scAirsRockWhirlwindClearsWall(), scAlhafraDrawPirateBehind(), scAlhafraDrawPirateInFront(), scAlhafraMadransArrive(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafranCaveSetUpCave(), scAlhafranCaveSetUpJail(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAnkohlRuinsJumpDownPit(), scApojiiIslandsEnterDoor(), scAquaRockInsideBlockMoaiWithPillar(), scAquaRockInsideRideFalls(), scEasternAlhafraBriggsStealsShip(), scGabombaStatueHideActor(), scGaiaRockInsideJumpDownCobwebPit(), scGarohMahaTellsTheLegend(), scInit(), scIsletsBirdReturnsToNest(), scIsletsInitNorthOsenia(), scIsletsInitSoutheastAngara(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseDropEnergyBlock(), scJupiterLighthouseLowerElevator(), scJupiterLighthouseOpenFloor(), scJupiterLighthousePushColumnOffTheLedge(), scJupiterLighthousePushEnergyBlock(), scJupiterLighthouseRideTheBeam(), scJupiterLighthouseStepOnUpperCrackedTile(), scKibomboMountainsStartPushingGuardCrate(), scLeaderSpinAway(), scLemuriaAdmirePalace(), scLemuriaKeepLookingAround(), scLemuriaMarvelAtCity(), scLemuriaRoomsLeavePiersToMourn(), scMagmaRockInsideDrainLava(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieFindWhoTheDragonWas(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseAerieSetUpBeacon(), scMarsLighthouseAerieStandAside(), scMarsLighthouseAerieStepBackLeft(), scMarsLighthouseAerieStepBackRight(), scMarsLighthouseAerieUrgeOnToBeacon(), scMarsLighthouseAerieWatchGoldenSunRise(), scMarsLighthouseStarRoomLayDownAdept(), scPrepareMap(), scProxInitNorth(), scProxInitTown(), scProxMatchCaveHomesPriority(), scProxMatchHousesPriority() and 9 more.

Definition at line 163 of file script_inline.h.

scFieldActorStartRepeatedMotion

static inline void scFieldActorStartRepeatedMotion(Sint32 actorId, Sint32 count)

Squashes an actor and springs it back count times.

References fdActorStartRepeatedMotion() and Sint32.

Referenced by scAlhafraMadransArrive(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraRoomsGuestsAskForTea(), scAlhafraRoomsMeetAlex(), scAlhafraSailorToldToWork(), scChampaMeetAlex(), scChampaSailorsSpotFelix(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraOverhearWorkers(), scEasternAlhafraWorkersSeeBlockGone(), scEasternAlhafraWorkersTellMayor(), scGaiaRockSusaAsksAboutTheSerpent(), scGarohFollowWerewolfIntoCave(), scGarohMahaTellsTheLegend(), scGarohWerewolfRunsPast(), scGarohWerewolvesRevealThemselves(), scIdejimaRideTheTidalWave(), scInit(), scIzumoRoomsRecognizeTheHeroes(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseFinishMovingBlock(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthouseWeBeatThem(), scLemuriaMarvelAtCity(), scLemurianShipDeckReachPiersShip(), scLemuriaRoomsLeavePiersToMourn(), scLohoFireCannon(), scMadraRoomsWelcomePiersHome(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieFindWhoTheDragonWas(), scMarsLighthouseAerieWatchGoldenSunRise(), scMarsLighthouseStarRoomWakeAfterBattle(), scShamanVillageCaveEddyFlees(), scTreasureIsleMeetStarMagician(), scVenusLighthouseDoubtLeaving() and scVenusLighthouseEntranceSoldiersAmbushParty().

Definition at line 170 of file script_inline.h.

scFieldActorWatchAndSetScript

static inline void scFieldActorWatchAndSetScript(Sint32 actorId, Sint32 watchedActorId)

Makes an actor follow another.

References fdActorWatchAndSetScript() and Sint32.

Referenced by scAlhafraMadransArrive(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraRoomsOverhearCrossboneIsleTale(), scChampaMeetAlex(), scChampaSailorsSpotFelix(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraWorkersSeeBlockGone(), scGabombaStatueMouseShowsTheWay(), scGarohWerewolvesRevealThemselves(), scGondowanCliffsTurnBackToHelpPiers(), scIdejimaRideTheTidalWave(), scIdejimaWonderWhereAlexHasGone(), scIsletsInitEastTundaria(), scIsletsTalkToBird(), scIsletsTalkToPengus(), scIsletsTradeWithBird(), scIsletsTradeWithDog(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthouseWeBeatThem(), scKibomboMountainsGuardsReport(), scKibomboMountainsGuardsTurnPartyBack(), scLemuriaAdmirePalace(), scLemuriaMarvelAtCity(), scLohoFireCannon(), scMadraRoomsGiveHealingFungus(), scMadraRoomsShinAngersPiers(), scProxGiveThanksForBeacon(), scVenusLighthouseDoubtLeaving(), scVenusLighthouseEntranceWakeUp(), scVenusLighthouseFelixLeaves() and scWorldMapDeliverLohoCannon().

Definition at line 176 of file script_inline.h.

scFieldActorWaitForMoveById

static inline void scFieldActorWaitForMoveById(Sint32 actorId)

Holds the script until an actor arrives, 600 ticks at most.

References fdActorWaitForMoveById() and Sint32.

Referenced by scActorRejoinLeader(), scAirsRockEnterTheRock(), scAlhafranCaveSetUpJail(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAnemosInnerSanctumLightSymbol(), scAnkohlRuinsCarriedOffLedge(), scAquaRockInsideReadParchTablet(), scChampaFeizhiArrives(), scChampaMeetAlex(), scEasternAlhafraAskIfFinished(), scEasternAlhafraAskToHelpWithMast(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraGiveUpOnMastBlock(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraWorkersTellMayor(), scGaiaRockInsideCycloneClearsTwinAltarsBushes(), scGaiaRockInsideMeetSusa(), scGaiaRockInsidePlaceDollOnEntranceAltar(), scGaiaRockInsideReadSandTablet(), scGaiaRockInsideRestoreSusa(), scGarohFollowWerewolfIntoCave(), scGarohMahaTellsTheLegend(), scGarohWerewolfRunsPast(), scGarohWerewolvesRevealThemselves(), scGondowanCliffsLeapStumpIntoWater(), scIdejimaCatchUpWithFelix(), scIdejimaWakeJenna(), scIdejimaWakeKraden(), scIdejimaWonderWhereAlexHasGone(), scIzumoRoomsRecognizeTheHeroes(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseJennaJoinsTheFight(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthouseScatterWeedsOverMint(), scJupiterLighthouseShebaJoinsTheFight(), scKibomboMountainsTremorDropsBone(), scLeaderSinkAway(), scLemuriaAdmirePalace(), scLemuriaCycloneHardNutWeeds(), scLemuriaKeepLookingAround(), scLemuriaMarvelAtCity(), scLemurianShipDeckKradenGoesToFindShip(), scLemurianShipDeckReachPiersShip(), scLemurianShipDeckReturnToShip(), scLemurianShipDeckSetOutForMadra(), scLemurianShipDeckSightMenardisShip(), scMadraRoomsGiveHealingFungus() and 30 more.

Definition at line 183 of file script_inline.h.

scFieldScriptEndLastingPsynergy

static inline void scFieldScriptEndLastingPsynergy(Sint32 skip)

Ends Reveal, the ring of light and Sand, each unless skip holds its bit.

References fdScriptEndLastingPsynergy() and Sint32.

Referenced by fdWhirlwindCarryLeader(), KNOCK_BACK(), RumbleBeforePillarSinks(), scAirsRockEnterTheRock(), scAirsRockExamineWindStone(), scAirsRockFreezePuddle(), scAirsRockMoveFirstPillar(), scAirsRockMoveSecondPillar(), scAirsRockMoveThirdPillar(), scAirsRockPlacePillar(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAirsRockWhirlwindOpensTheTop(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraPirateSeesMadrasMayor(), scAlhafraRoomsGuestsAskForTea(), scAlhafraRoomsMeetAlex(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAnemosInnerSanctumApproachCharonSlate(), scAnemosInnerSanctumArriveOnElevatorLift(), scAnemosInnerSanctumArriveOnMimicStonesLift(), scAnemosInnerSanctumDropMimicStone(), scAnemosInnerSanctumEnterTheRoom(), scAnemosInnerSanctumLightSymbol(), scAnemosInnerSanctumOpenMimicStoneDoor(), scAnemosInnerSanctumPressRoundSwitch(), scAnemosInnerSanctumPressSwitch(), scAnemosInnerSanctumRideLiftUp(), scAnemosInnerSanctumStepOffSwitch(), scAnkohlRuinsCarriedOffLedge(), scAnkohlRuinsLandFromFall(), scAnkohlRuinsPlaceFaceHalves(), scAnkohlRuinsPlaceSecondFloorFaceHalf(), scAnkohlRuinsPressFirstSandSwitch(), scAnkohlRuinsPressSecondSandSwitch(), scAnkohlRuinsStartGreatFaceSliding(), scApojiiIslandsAskAboutWarriors(), scApojiiIslandsEnterDoor(), scApojiiIslandsFatherSeesTheStone(), scApojiiIslandsMindReadSon(), scApojiiIslandsTalkToGeneralStorekeeper(), scApojiiIslandsTalkToInnkeeper(), scApojiiIslandsTalkToSon(), scAquaRockInsideBlockMoaiWithPillar(), scAquaRockInsideCheckColumn(), scAquaRockInsideCheckPsynergyStone(), scAquaRockInsideDouseFloodedHallEastMoai(), scAquaRockInsideDouseFloodedHallWestMoai(), scAquaRockInsideDouseLowerExitMoai(), scAquaRockInsideDouseWaterfallMoai() and 298 more.

Definition at line 189 of file script_inline.h.

scFieldScriptSetMessageId

static inline void scFieldScriptSetMessageId(Sint32 msg)

Makes message the script's next line.

References fdScriptSetMessageId() and Sint32.

Referenced by dbPsynergyTestPracticeShout(), dbPsynergyTestStartleAfterBlaze(), dbPsynergyTestStartleAgain(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafranCaveTalkToBriggs(), scAlhafraPirateSeesMadrasMayor(), scAlhafraRoomsAlexHearsOfBriggs(), scAlhafraRoomsGuestsAskForTea(), scAlhafraRoomsHostTellsOfRepairs(), scAlhafraRoomsMeetAlex(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAlhafraRoomsReadAlexsMind(), scAlhafraRoomsTalkToDemandingGuest(), scAlhafraRoomsTalkToHostess(), scApojiiIslandsAskAboutWarriors(), scApojiiIslandsFatherSeesTheStone(), scApojiiIslandsMindReadSon(), scApojiiIslandsTalkToGeneralStorekeeper(), scApojiiIslandsTalkToInnkeeper(), scApojiiIslandsTalkToSon(), scAquaRockInsideReadParchTablet(), scChampaAskAboutAnkohlRuins(), scChampaAskIfSailorsAreWellLiked(), scChampaFeizhiArrives(), scChampaMeetAlex(), scChampaSailorsSpotFelix(), scChampaTalkToPracticingBoy(), scChampaTellOfBriggsTreasure(), scChampaTellOfObaba(), scEasternAlhafraAskIfFinished(), scEasternAlhafraAskToHelpWithMast(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraGiveUpOnMastBlock(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraOverhearWorkers(), scEasternAlhafraTalkToSailor(), scEasternAlhafraWorkersSeeBlockGone(), scEasternAlhafraWorkersTellMayor(), scGabombaStatueChamberAkafubuOffersToHelp(), scGabombaStatueFocusEnergies(), scGabombaStatueHearTheOffering(), scGabombaStatueKradenNoticesTiming(), scGabombaStatueSawEnergyFlow(), scGabombaStatueSeeHowItWorks(), scGaiaRockInsideMeetSusa(), scGaiaRockInsideReadSandTablet(), scGaiaRockInsideReadSusasMind(), scGaiaRockInsideSusaSaysMoveAside(), scGaiaRockInsideTalkToSusa(), scGaiaRockMindReadSusa() and 169 more.

Definition at line 195 of file script_inline.h.

scScriptCameraFollowActor

static inline void scScriptCameraFollowActor(Sint32 actorId, Sint32 keepPos)

Makes the camera follow an actor (fdCameraFollowActor).

References fdCameraFollowActor() and Sint32.

Referenced by fdWhirlwindCarryLeader(), scAirsRockRideWhirlwind(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAirsRockWhirlwindOpensTheTop(), scAlhafraFindGoldCoins(), scAlhafraMadransArrive(), scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraRoomsMeetAlex(), scAlhafraRoomsOverhearCrossboneIsleTale(), scAnemosInnerSanctumLightSymbol(), scAnkohlRuinsStartGreatFaceSliding(), scChampaFeizhiArrives(), scChampaMeetAlex(), scEasternAlhafraFinishPushingRockUnderLog(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraOverhearWorkers(), scEasternAlhafraRollLog(), scEasternAlhafraWorkersSeeBlockGone(), scEasternAlhafraWorkersTellMayor(), scGabombaStatueMouseShowsTheWay(), scGaiaRockInsideMeetSusa(), scGarohFollowWerewolfIntoCave(), scGarohMahaTellsTheLegend(), scGarohWerewolfRunsPast(), scGarohWerewolvesRevealThemselves(), scInit(), scIzumoRoomsRecognizeTheHeroes(), scJupiterLighthouseCloseFloor(), scJupiterLighthouseCycloneDropsLeader(), scJupiterLighthouseCycloneLiftsLeader(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseJennaJoinsTheFight(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthouseLowerElevator(), scJupiterLighthouseOpenFloor(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthousePlacePathBlock(), scJupiterLighthouseRaiseBlocksFromGaps(), scJupiterLighthouseShebaJoinsTheFight(), scJupiterLighthouseShootAtLeftAngel(), scJupiterLighthouseShootAtRightAngel(), scJupiterLighthouseWeBeatThem(), scLeaderLift(), scLemuriaAdmirePalace(), scLemuriaMarvelAtCity(), scLemuriaTryStuckDoor(), scMadraRoomsShinAngersPiers(), scMagmaRockFireFromStatue(), scMagmaRockInsideFireFromStatue() and 11 more.

Definition at line 201 of file script_inline.h.

scFieldActorSetPosAndResetMotion

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

Places an actor at (x, y, z), 16.16 pixels, and stops it.

References fdActorSetPosAndResetMotion().

Referenced by fdActorLaunchAhead(), scActorAttach(), scActorStopAtPushTarget(), scActorTakePlaceOf(), scCrumblingPillarCollapse(), scDehkanPlateauCannonDropsPoundCube(), scDehkanPlateauInitPillars(), scDehkanPlateauInitPoundCube(), scEasternAlhafraBriggsStealsShip(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraPoundStake(), scGabombaStatueChamberWhereIsTheOrb(), scIsletsBirdReturnsToNest(), scIsletsPengusGivesPrettyStone(), scIsletsRideOnLonesomeGeorge(), scIsletsTradeWithBird(), scIsletsTradeWithCow(), scIsletsTradeWithDog(), scJupiterLighthouseRaiseAngels(), scKandoreanTempleLowerEastColumn(), scKandoreanTempleLowerWestColumn(), scKandoreanTempleStartChestbeaterRoom(), scKandoreanTempleStartVentRoom(), scKibomboInitStatueGrounds(), scKibomboPlaceDoorBlockByHeight(), scKibomboSetStatueMouth(), scLeaderCenterInMetatile(), scLemurianShipExamineLiftSwitch(), scLemurianShipSetUpPillarRoom(), scLemurianShipSetUpSixJellyRoom(), scLemurianShipSetUpTwoJellyRoom(), scMadraCatacombsSetUpVillage(), scMagmaRockCrumblePillar(), scMagmaRockInsideCrumblePillar(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseAerieStepBackLeft(), scMarsLighthouseAerieStepBackRight(), scMarsLighthouseAerieUrgeOnToBeacon(), scMarsLighthouseAerieWatchGoldenSunRise(), scMarsLighthouseStarRoomTakeMarsStar(), scMarsLighthouseStarRoomUpdateRisingSpark(), scMarsLighthouseStarRoomWakeAfterBattle(), scProxComeDownStairs(), scPushTargetPush(), scShrineOfTheSeaGodInitCrossroads() and scVenusLighthouseEntranceBirdsLand().

Definition at line 207 of file script_inline.h.

scFieldActorWaitForScriptEndById

static inline void scFieldActorWaitForScriptEndById(Sint32 actorId)

Holds the script until an actor's script ends, 300 ticks at most.

References fdActorWaitForScriptEndById() and Sint32.

Referenced by scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraRoomsOverhearCrossboneIsleTale(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraWorkersTellMayor(), scGabombaStatueClimbDownEyesLadder(), scGabombaStatueClimbDownLadder(), scGabombaStatueFocusEnergies(), scGaiaRockInsideMeetSusa(), scGaiaRockInsideReadSusasMind(), scGaiaRockInsideTalkToSusa(), scIdejimaCatchUpWithFelix(), scIdejimaRideTheTidalWave(), scIdejimaWonderWhereAlexHasGone(), scJupiterLighthouseActivateTheLighthouse(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthouseWeBeatThem(), scLemuriaEntranceShebaAsksPiersAge(), scLemuriaOfferSpringLuck(), scMadraRoomsGiveHealingFungus(), scMadraRoomsShinAngersPiers(), scProxSayFarewell() and scWorldMapDeliverLohoCannon().

Definition at line 214 of file script_inline.h.

scFieldActorSetSpriteColor

static inline void scFieldActorSetSpriteColor(struct ACTOR *actor, Sint32 colorMode)

Sets the colour mode of an actor's sprite (fdActorSetSpriteColor).

References fdActorSetSpriteColor() and Sint32.

Referenced by GrowFlame(), scActorSetupScripted(), scActorSetupScriptedFor(), scActorStartScripted(), scAirsRockFlickerTarget(), scAirsRockSpiralSpark(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAirsRockWhirlwindOpensTheTop(), scAnemosInnerSanctumLeaveSpark(), scAnemosInnerSanctumLightTorch(), scAnemosInnerSanctumMimicLeader(), scAnemosInnerSanctumPressRoundSwitch(), scAnemosInnerSanctumSendSpark(), scAnemosInnerSanctumSparkRing(), scAquaRockInsideDouseFloodedHallEastMoai(), scAquaRockInsideDouseFloodedHallWestMoai(), scAquaRockInsideDouseLowerExitMoai(), scAquaRockInsideDouseWaterfallMoai(), scAquaRockInsideParchSteamRoomMoai(), scCreateActor(), scFieldEffectSpawn(), scFieldEffectSpawnLocal(), scGabombaStatueHearTheOffering(), scGabombaStatueHideActor(), scGabombaStatueInitEyes(), scGabombaStatueKradenNoticesTiming(), scGabombaStatueWatchTheChargesStick(), scIdejimaBreakAwayFromGondowan(), scInit(), scIsletsArriveAtSecretSpot(), scIsletsArriveBackAtIsland(), scIsletsGiveTurtle(), scIsletsInitNorthOsenia(), scIsletsLonesomeGeorgeThanks(), scIsletsRideBackToIsland(), scJupiterLighthouseAlexHealsTheParty(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseHealTarget(), scJupiterLighthouseRaiseBeaconLight(), scJupiterLighthouseSendUpBeamLights(), scJupiterLighthouseSpawnBeaconParticle(), scJupiterLighthouseSpawnBeamParticles(), scJupiterLighthouseSpawnSparks(), scLeaderRiseFromWater(), scLeaderSinkAway(), scLemurianShipParchHold(), scLemurianShipSetUpHold(), scLemurianShipSetUpPillarRoom(), scLemurianShipShowLeftPillarPuddle() and 51 more.

Definition at line 220 of file script_inline.h.

scFieldActorStop

static inline void scFieldActorStop(Sint32 actorId)

Stops an actor's movement type and stands it on the idle script.

References fdActorStop() and Sint32.

Referenced by scAlhafranCaveChauchaAndEoleoVisit(), scAlhafraRoomsOverhearCrossboneIsleTale(), scEasternAlhafraFinishPushing(), scEasternAlhafraWorkersSeeBlockGone(), scGabombaStatueResetCharge(), scGarohLittleWerewolfThanks(), scGarohWerewolfRunsPast(), scGarohWerewolvesRevealThemselves(), scGondowanCliffsTurnBackToHelpPiers(), scIdejimaRideTheTidalWave(), scIdejimaWonderWhereAlexHasGone(), scIsletsBirdReturnsToNest(), scIsletsTalkToPengus(), scIsletsTradeWithDog(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseLightWestPath(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthousePlacePathBlock(), scJupiterLighthouseRaiseBeaconLight(), scKibomboMountainsDogSpotsParty(), scKibomboMountainsTremorDropsBone(), scLemurianShipDeckTakeTheTiller(), scMadraRoomsGiveHealingFungus(), scMadraRoomsShinAngersPiers(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieStartLookingAround(), scProxGiveThanksForBeacon() and scYallamShowSongGame().

Definition at line 227 of file script_inline.h.

scFieldScriptSetExitRequest

static inline void scFieldScriptSetExitRequest(Sint32 exit)

Requests the exit the field leaves the scene by.

References Sint32 and syImportScriptSetExitRequest().

Referenced by scAirsRockEnterTheRock(), scAnemosInnerSanctumEnterTheRoom(), scAnemosInnerSanctumRideLiftUp(), scAnkohlRuinsJumpDownPit(), scAnkohlRuinsPushFaceHalfIntoGap(), scApojiiIslandsEnterDoor(), scAquaRockInsideOpenDoorToTablet(), scAquaRockInsideRideFalls(), scChampaOpenDoorAndEnter(), scGabombaStatueClimbDownEyesLadder(), scGabombaStatueClimbDownLadder(), scGabombaStatueFocusEnergies(), scGabombaStatueHearTheOffering(), scGabombaStatueRideRoller(), scGabombaStatueSawEnergyFlow(), scGabombaStatueSeeHowItWorks(), scGabombaStatueWatchTheChargesStick(), scGaiaRockInsideCycloneClearsCobweb(), scGaiaRockInsideCycloneClearsTwinAltarsBushes(), scGaiaRockInsideJumpDownCobwebPit(), scGaiaRockInsideTakeMazeExit(), scGarohEnterOpening(), scGarohOpenDoorAndEnter(), scGarohWerewolvesRevealThemselves(), scGondowanCliffsTurnBackToHelpPiers(), scIdejimaBreakAwayFromGondowan(), scIdejimaFindFelixAndSheba(), scIdejimaRideTheTidalWave(), scInit(), scIsletsEnterDoor(), scIsletsGiveTurtle(), scIsletsLeaveByStep(), scIsletsLonesomeGeorgeThanks(), scIsletsOpenDoorAndEnter(), scIsletsRideBackToIsland(), scIsletsSinkInSea(), scJupiterLighthouseCastTheJupiterStar(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthouseLeaveByCyclone(), scJupiterLighthouseRideTheBeam(), scJupiterLighthouseStepOnCrackedTile(), scJupiterLighthouseStepOnLowerCrackedTile(), scJupiterLighthouseStepOnSingleCrackedTile(), scJupiterLighthouseStepOnUpperCrackedTile(), scJupiterLighthouseWeBeatThem(), scLeaderOpenDoorAndEnter(), scLeaderSinkAway(), scLeaderSpinAway(), scLeaveByExit(), scLemuriaEntranceLandAtHarbor() and 45 more.

Definition at line 233 of file script_inline.h.

scFieldActorWaitForMove

static inline void scFieldActorWaitForMove(void *actor)

Holds the script until an actor has reached its destination (fdActorWaitForMove).

References fdActorWaitForMove().

Referenced by fdLeaderSlideOnIce(), fdLeaderSlideOnIceAhead(), fdWhirlwindCarryLeader(), scAirsRockDropOffLedge(), scAirsRockRideWhirlwind(), scAnemosInnerSanctumArriveOnElevatorLift(), scAnemosInnerSanctumArriveOnMimicStonesLift(), scAnemosInnerSanctumOpenMimicStoneDoor(), scAnemosInnerSanctumRideLiftUp(), scApojiiIslandsFlowWithStream(), scGabombaStatueClimbDownEyesLadder(), scGabombaStatueClimbDownLadder(), scGabombaStatueHopOffCog(), scIsletsBirdReturnsToNest(), scIsletsEnterDoor(), scIsletsLonesomeGeorgeThanks(), scIsletsOpenDoorAndEnter(), scJupiterLighthouseCastTheJupiterStar(), scKibomboMountainsDropOffLedge(), scLeaderFlowWithStream(), scLeaderSlideOnIceFromEdge(), scLemurianShipWalkIntoPassage(), scLemuriaPalaceCastMapSparks(), scMadraCatacombsEnterDoor(), scMadraCatacombsOpenDoorAndEnter(), scMagmaRockFireFromStatue(), scMagmaRockInsideFireFromStatue(), scMagmaRockInsidePushBlockOnto(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseStarRoomTakeMarsStar(), scMarsLighthouseStarRoomUseMarsStar(), scNorthernReachesDiscussIceWall(), scNorthernReachesFireMagmaBall(), scNorthernReachesSightIceWall(), scProxClimbStairs(), scProxEnterDoor(), scPushedActorAdvancePair(), scPushTargetPush(), scShamanVillageEnterDoor(), scTaopoSwampRiseOnBubble(), scTrialRoadReachPeakFirst(), scWhirlwindCarryLeaderLower(), scWorldMapBoardShip(), scWorldMapLeaveShip(), scYallamForceLogDown() and scYampiDesertCavePushLog().

Definition at line 240 of file script_inline.h.

scFieldPartyInventoryFindMember

static inline Sint32 scFieldPartyInventoryFindMember(Sint32 item)

Who carries an item, asking the leader first, or -1.

References gmPartyInventoryFindMember() and Sint32.

Referenced by scAquaRockInsideCheckColumn(), scGaiaRockInsideChallengeSerpent(), scGaiaRockInsideCheckAltar(), scGaiaRockInsideReadSusasMind(), scInit(), scIsletsTradeWithBird(), scIsletsTradeWithCow(), scIsletsTradeWithDog(), scMagmaRockInsideExamineEmberStone(), scNaribweRoomsNextPath(), scNaribweRoomsNextPowerToGain() and scNaribweRoomsProngToSeek().

Definition at line 246 of file script_inline.h.

scScriptMessageShowCentered

static inline void scScriptMessageShowCentered(Sint32 msg, Sint32 mode, Sint32 yOffset)

Shows a message in a window in the middle of the screen (mnFieldMessageShowCentered).

References mnFieldMessageShowCentered() and Sint32.

Referenced by scInit(), scIsletCaveSentinelAwaits(), scMarsLighthouseHallHearDragonStatue(), scMarsLighthouseHallReadEarthInscription(), scMarsLighthouseHallReadFireInscription(), scMarsLighthouseHallReadWaterInscription(), scMarsLighthouseHallReadWindInscription() and scYampiDesertCaveMeetGuardianOfFire().

Definition at line 253 of file script_inline.h.

scFieldPartyGetLeaderActor

static inline Sint32 scFieldPartyGetLeaderActor(void)

The leader's actor id.

References fdPartyGetLeaderActor() and Sint32.

Referenced by gmPartyTakeFallDamage(), scAirsRockSetLedgeMetatilesByLevel(), scAlhafranCaveTalkToBriggs(), scAlhafraRoomsAlexHearsOfBriggs(), scApojiiIslandsAskAboutWarriors(), scChampaAskAboutAnkohlRuins(), scChampaAskIfSailorsAreWellLiked(), scChampaTellOfBriggsTreasure(), scGabombaStatueHopAcrossEastOrWest(), scGabombaStatueHopAcrossNorthOrSouth(), scGabombaStatueRideRoller(), scGabombaStatueRideSlidingCog(), scGabombaStatueTurnWithCog(), scGaiaRockInsideStartPlatforms(), scGarohAskAboutFullMoon(), scGarohAskAboutSecret(), scGarohAskIfSawWerewolf(), scGaugeUpdate(), scInit(), scLemuriaRoomsAskAboutDraughts(), scLemuriaRoomsAskFromBeyondSeaOfTime(), scLemuriaRoomsNoticeMindRead(), scLemuriaRoomsTalkToPiersUncle(), scMadraRoomsAskWillWeBeSafe(), scMagmaRockInsideStampOtherStepMetatile(), scMagmaRockInsideStampStepMetatile(), scMagmaRockInsideTrackStepMetatile(), scMikasallaRoomsAskAreYouExplorer(), scMikasallaRoomsTalkToHealer(), scNaribweRoomsReadFortune(), scNaribweRoomsTalkToFortuneTeller(), scSettlementsWarnOfRiddleOfRock(), scShipTakeFlight(), scStaffCreditEndFlight(), scTaopoSwampRiseOnBubble(), scTaopoSwampSaveFirmGround(), scTaopoSwampSinkInMud(), scTaopoSwampStepOnFirmGround(), scVenusLighthouseReadRelief(), scVenusLighthouseReadTrueHeart(), scWorldMapGazeIntoPond() and scWorldMapSetUpFlyingShip().

Definition at line 260 of file script_inline.h.

scFieldScriptAskYesNoWithActorAnimation

static inline Sint32 scFieldScriptAskYesNoWithActorAnimation(Sint32 actorId, Sint32 flags)

Asks yes or no as the speaker nods or shakes its head; returns 0 for yes.

References fdScriptAskYesNoWithActorAnimation() and Sint32.

Referenced by scAlhafranCaveTalkToBriggs(), scAlhafraRoomsAlexHearsOfBriggs(), scAncientLemuriaMeetTheLemurians(), scApojiiIslandsAskAboutWarriors(), scChampaAskAboutAnkohlRuins(), scChampaAskIfSailorsAreWellLiked(), scChampaFeizhiArrives(), scChampaMeetAlex(), scChampaTellOfBriggsTreasure(), scEasternAlhafraAskIfFinished(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraShipBriggsIsCaught(), scEasternAlhafraShipMayorArrives(), scEasternAlhafraTalkToSailor(), scEasternAlhafraWorkersSeeBlockGone(), scEasternAlhafraWorkersTellMayor(), scGabombaStatueSeeHowItWorks(), scGarohAskAboutFullMoon(), scGarohAskAboutSecret(), scGarohAskIfSawWerewolf(), scGarohMahaTellsTheLegend(), scGarohWerewolfRunsPast(), scGarohWerewolvesRevealThemselves(), scIdejimaBreakAwayFromGondowan(), scIdejimaFelixWakes(), scIdejimaWakeJenna(), scIdejimaWonderWhereAlexHasGone(), scIsletsRideBackToIsland(), scIsletsTradeWithCow(), scJupiterLighthouseAlexHealsTheParty(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseIsaacAndIvanFall(), scJupiterLighthouseKarstAndAgatioRetreat(), scJupiterLighthousePartyArrivesAtTheFight(), scJupiterLighthouseWeBeatThem(), scLemuriaMarvelAtCity(), scLemurianShipDeckReachPiersShip(), scLemurianShipDeckSightMenardisShip(), scLemurianShipDeckTakeTheTiller(), scLemuriaOfferSpringLuck(), scLemuriaRoomsAskAboutDraughts(), scLemuriaRoomsAskFromBeyondSeaOfTime(), scLemuriaRoomsMeetLunpa(), scLemuriaRoomsNoticeMindRead(), scLemuriaRoomsPiersVisitsUncle(), scLemuriaRoomsTalkToPiersUncle(), scMadraRoomsAskWillWeBeSafe(), scMadraRoomsShinAngersPiers(), scMadraRoomsWelcomePiersHome(), scMagmaRockInsideExamineEmberStone() and 22 more.

Definition at line 266 of file script_inline.h.

scFieldScriptSetAfterBattleDestination

static inline void scFieldScriptSetAfterBattleDestination(Sint32 sceneId, Sint32 entrance)

Sets where the party goes after the script's battle (fdScriptSetAfterBattleDestination).

References fdScriptSetAfterBattleDestination() and Sint32.

Referenced by scGaiaRockInsideChallengeSerpent(), scIsletCaveSentinelAwaits(), scJupiterLighthouseBeaconIsLit(), scJupiterLighthouseIsaacAndIvanAreHurt(), scJupiterLighthouseJennaJoinsTheFight(), scJupiterLighthouseShebaJoinsTheFight(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseStarRoomWakeFlameDragons(), scShamanVillageCaveFightGladiators(), scShamanVillageCaveMeetGladiators(), scSuhallaGateRuffiansAmbushParty(), scVenusLighthouseEntranceRuffianWaitsForBackup() and scWorldMapFightBanditAndThieves().

Definition at line 274 of file script_inline.h.

scFieldDjinnJoinParty

static inline void scFieldDjinnJoinParty(Sint32 slot, Sint32 element, Sint32 djinn)

Adds a Djinni to the party (fdDjinnJoinParty).

References fdDjinnJoinParty() and Sint32.

Referenced by scWorldMapMeetEcho().

Definition at line 281 of file script_inline.h.

scScriptCameraGetActor

static inline struct ACTOR *scScriptCameraGetActor(void)

The actor the camera follows (fdCameraGetActor).

References fdCameraGetActor().

Referenced by fdWhirlwindCarryLeader(), scGabombaStatueCogsTurnBack(), scGabombaStatueFocusEnergies(), scGabombaStatueSeeHowItWorks(), scInit(), scJupiterLighthouseIsaacAndIvanFall(), scLeaderCenterInMetatile(), scLemurianShipDeckBobDeck(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieFindWhoTheDragonWas(), scMarsLighthouseAerieUrgeOnToBeacon() and scWhirlwindCarryLeaderLower().

Definition at line 288 of file script_inline.h.

scScriptYesNoAsk

static inline Sint32 scScriptYesNoAsk(Sint32 atBottom)

Asks the player yes or no (fdYesNoAsk).

References fdYesNoAsk() and Sint32.

Referenced by scShamanVillageCaveLoseToGladiators().

Definition at line 294 of file script_inline.h.

scFieldWorldMapStartZoom

static inline void scFieldWorldMapStartZoom(FIXED zoom, Sint32 ticks)

Zooms the World Map's view to zoom, 16.16, over ticks.

References fdWorldMapStartZoom() and Sint32.

Referenced by scInit(), scStaffCreditShowBeacon(), scWorldMapBoardShip(), scWorldMapCarryPartyToAquaRock(), scWorldMapDeliverLohoCannon(), scWorldMapDriftNorthOfContinent(), scWorldMapExplainGivingDjinn(), scWorldMapFightBanditAndThieves(), scWorldMapLeaveShip(), scWorldMapMeetEcho(), scWorldMapRefuseToRunAway(), scWorldMapShowIdejimaDrifting() and scWorldMapWatchVenusLighthouseCollapse().

Definition at line 300 of file script_inline.h.

scFieldWindowColorApply

static inline void scFieldWindowColorApply(Sint32 color, Sint32 brightness)

Applies a window colour (mnWindowColorApply).

References mnWindowColorApply() and Sint32.

Referenced by scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindOpensTheTop(), scClearReceiveByLink(), scInit(), scJupiterLighthouseFlashSky(), scShamanVillageBlowAwaySand() and scWorldMapLoadTidalWave().

Definition at line 306 of file script_inline.h.

fdScriptRequestDjinnBattle

static inline void fdScriptRequestDjinnBattle(Sint32 actorId, Sint32 djinni)

Requests a battle with a Djinni (fdRequestDjinnBattle).

References fdRequestDjinnBattle() and Sint32.

Referenced by scShamanVillageCaveFightEddy(), scTundariaTowerFightReflux() and scYampiDesertCaveFightCrystal().

Definition at line 312 of file script_inline.h.

scFieldScriptAddPartyMember

static inline void scFieldScriptAddPartyMember(Sint32 unit, Sint32 announce)

Adds unit to the party, announcing it when announce is nonzero.

References fdScriptAddPartyMember() and Sint32.

Referenced by scIdejimaCatchUpWithFelix(), scIdejimaWakeJenna() and scMarsLighthouseAerieLightBeacon().

Definition at line 318 of file script_inline.h.

scFieldMapGridWaitForShakeToSettle

static inline void scFieldMapGridWaitForShakeToSettle(void)

Holds the script until the screen shake dies down (fdMapGridWaitForShakeToSettle).

References fdMapGridWaitForShakeToSettle().

Referenced by scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAnkohlRuinsLandFromFall(), scCrackedTileDropIn(), scGabombaStatueLandFromFall(), scGaiaRockInsideRaiseDust(), scGaiaRockInsideReadSandTablet(), scGondowanCliffsLeapStumpIntoWater(), scJupiterLighthouseBeaconIsLit(), scMagmaRockDropLeaderFromSummit(), scMagmaRockInsideDrainLava(), scMagmaRockInsideRaiseLava(), scMagmaRockInsideReadBlazeTablet(), scMagmaRockInsideReleaseRocks(), scMarsLighthouseAerieFaceDoomDragon(), scMarsLighthouseAerieLightBeacon() and scTaopoSwampTremorPillar().

Definition at line 325 of file script_inline.h.

scFieldMapGridGetMetatileBehaviorAt

static inline Sint32 scFieldMapGridGetMetatileBehaviorAt(Sint32 layer, FIXED x, FIXED y)

The metatile behavior of the metatile at (x, y) (fdMapGridGetMetatileBehaviorAt).

References fdMapGridGetMetatileBehaviorAt() and Sint32.

Referenced by fdLeaderSlideOnIce(), fdLeaderSlideOnIceAhead(), scAnemosInnerSanctumMimicLeader(), scAnemosInnerSanctumSinkIntoSand() and scGaiaRockInsideCycloneClearsTwinAltarsBushes().

Definition at line 332 of file script_inline.h.

scFieldActorShowItemIconById

static inline void scFieldActorShowItemIconById(Sint32 actorId, Sint32 item)

Draws an item's icon into an actor's sprite, or blanks it (fdActorShowItemIconById).

References fdActorShowItemIconById() and Sint32.

Referenced by scAquaRockInsideShowAquariusStone(), scChampaCliffCavesObabaForgesTrident(), scChampaFeizhiHoldsHerGift(), scInit(), scLohoFireCannon(), scShamanVillageCavePlaceGoldenShirt(), scWorldMapGazeIntoPond() and scWorldMapShowGoldenBoots().

Definition at line 340 of file script_inline.h.

scFieldActorSetItemIcon

static inline void scFieldActorSetItemIcon(struct ACTOR *actor, Sint32 item)

Draws an item's icon into an actor's sprite (fdActorSetItemIcon).

References fdActorSetItemIcon() and Sint32.

Referenced by scIsletsInitNorthOsenia(), scIsletsInitWestIndra(), scIsletsPengusGivesPrettyStone(), scIsletsShowItemAbove() and scIsletsTradeWithBird().

Definition at line 346 of file script_inline.h.

scFieldWorldMapSetWindowMetatileTileAndDraw

static inline void scFieldWorldMapSetWindowMetatileTileAndDraw(Sint32 x, Sint32 y, Sint32 metatileX, Sint32 metatileY)

Changes one tile of the World Map and draws it (fdWorldMapSetWindowMetatileTileAndDraw).

References fdWorldMapSetWindowMetatileTileAndDraw() and Sint32.

Referenced by scWorldMapDriftNorthOfContinent() and scWorldMapSplitIdejima().

Definition at line 353 of file script_inline.h.

scScriptCameraMoveToActor

static inline void scScriptCameraMoveToActor(Sint32 actorId, Sint32 pan)

Moves the camera onto an actor, to its height too (fdCameraMoveToActor).

References fdCameraMoveToActor() and Sint32.

Referenced by scEasternAlhafraOverhearWorkers().

Definition at line 362 of file script_inline.h.

scFieldActorSetSpriteRotationById

static inline void scFieldActorSetSpriteRotationById(Sint32 actorId, Sint32 angle)

Rotates an actor's sprite (fdActorSetSpriteRotationById).

References fdActorSetSpriteRotationById() and Sint32.

Referenced by scAlhafranCaveSetUpCave(), scAlhafranCaveSetUpJail(), scEasternAlhafraMayorFindsShipGone(), scEasternAlhafraShipBriggsIsCaught(), scInit() and scTrialRoadLoseToMoapa().

Definition at line 368 of file script_inline.h.

scFieldMapGridSetMetatileBehavior

static inline Sint32 scFieldMapGridSetMetatileBehavior(Sint32 x, Sint32 z, Sint32 layer, Sint32 behavior)

Sets the metatile behavior of a metatile (fdMapGridSetMetatileBehavior).

References fdMapGridSetMetatileBehavior() and Sint32.

Referenced by scAlhafranCaveLowerBridgeMetatiles(), scAlhafranCaveRaiseBridgeMetatiles(), scEasternAlhafraFinishPushing(), scEasternAlhafraFinishPushingRockUnderLog(), scEasternAlhafraPlaceClearedDebris(), scEasternAlhafraStartPushing(), scEasternAlhafraStartPushingRockUnderLog(), scInit(), scJupiterLighthouseDrawBlocksInGaps(), scJupiterLighthouseDropEnergyBlock(), scJupiterLighthousePlacePathBlock(), scJupiterLighthouseRevealThePassage(), scJupiterLighthouseSetCyclonePadsForLeader(), scJupiterLighthouseStartHover() and scJupiterLighthouseStartHovering().

Definition at line 375 of file script_inline.h.

fdScriptDigUpTreasure

static inline void fdScriptDigUpTreasure(Sint32 mode, Sint32 actorId, Sint32 flag)

Scoop digs up a buried treasure: with mode RETURN_HOME_DUG_UP, the treasure actor comes up at its home and its flag is set (fdActorReturnHome).

References fdActorReturnHome() and Sint32.

Referenced by scDailaDigUpPsyCrystal(), scLemuriaScoopBone(), scLemuriaScoopBrambleSeed(), scLemuriaScoopLuckyMedal(), scLemuriaScoopNut(), scLemuriaScoopRustySword(), scLemuriaScoopStarDust(), scLemuriaScoopVial(), scLemuriaScoopWaterOfLife(), scLohoScoopBoulderGolemCore(), scLohoScoopMythrilSilver(), scLohoScoopWallGolemCore(), scProxScoopUpDarkMatter(), scTaopoSwampScoopFirstTearStone(), scTaopoSwampScoopSecondTearStone(), scTaopoSwampScoopStarDust() and scYampiDesertCaveDigUpMythrilSilver().

Definition at line 385 of file script_inline.h.

scFieldMapGridSetMetatileHeight

static inline void scFieldMapGridSetMetatileHeight(Sint32 x, Sint32 z, Sint32 layer, Sint32 height)

Gives the metatile at (x, z) of a layer the ground height height, in 8-pixel steps (fdMapGridSetMetatileHeight).

References fdMapGridSetMetatileHeight() and Sint32.

Referenced by scAirsRockInsideFinishPushingPillar(), scAirsRockInsideStartPushingPillar(), scAlhafranCaveLowerBridgeMetatiles(), scAlhafranCaveRaiseBridgeMetatiles(), scChampaCliffCavesFightAvimander(), scChampaCliffCavesObabaOffersHelp(), scJupiterLighthousePushColumnOffTheLedge() and scPrepareMap().

Definition at line 393 of file script_inline.h.

scFieldMapMetatileSetAttributes

static inline void scFieldMapMetatileSetAttributes(Sint32 layer, Sint32 x, Sint32 z, Sint32 value)

Replaces a metatile's collision code and attributes on a layer (scMapMetatileSetAttributes).

References scMapMetatileSetAttributes() and Sint32.

Referenced by scInit().

Definition at line 404 of file script_inline.h.

fdScriptStartColorTransition

static inline void fdScriptStartColorTransition(Sint32 ticks, Sint32 color)

Fades the palettes to color over ticks ticks, keeping the field engine's colours to fade back to (fdStartColorTransition).

References fdStartColorTransition() and Sint32.

Referenced by scAlhafranCaveChauchaAndEoleoVisit(), scInit() and scLemuriaPalaceMeetKingHydros().

Definition at line 412 of file script_inline.h.

scFieldCycloneCopyTouchedMetatiles

static inline void scFieldCycloneCopyTouchedMetatiles(Sint32 x, Sint32 z, Sint32 layerIndex, Sint32 width, Sint32 height, Sint32 toX, Sint32 toZ)

Cyclone scatters the bushes or weeds it touches: the metatiles of the width by height rectangle at (x, z) of the layer take those of the scattered plants, kept at (toX, toZ) in the map (fdCycloneCopyTouchedMetatiles).

References fdCycloneCopyTouchedMetatiles() and Sint32.

Referenced by scGabombaCatacombsScatterHiddenWallSmallWeeds(), scGabombaCatacombsScatterHiddenWallWeeds(), scGabombaCatacombsScatterStreamSmallWeeds(), scGabombaCatacombsScatterStreamWeeds(), scGabombaCatacombsScatterStreamWideWeeds(), scGabombaCatacombsScatterTeleportersWeeds(), scGabombaCatacombsScatterTomegathericonWeeds(), scGabombaCatacombsUncoverFifthPuddle(), scGabombaCatacombsUncoverFirstPuddle(), scGabombaCatacombsUncoverFourthPuddle(), scGabombaCatacombsUncoverMadPlant(), scGabombaCatacombsUncoverMint(), scGabombaCatacombsUncoverSecondPuddle(), scGabombaCatacombsUncoverSeventhPuddle(), scGabombaCatacombsUncoverSixthPuddle(), scGabombaCatacombsUncoverStreamPuddle(), scGabombaCatacombsUncoverThirdPuddle(), scGaiaRockInsideCycloneClearsAltarBushes(), scGaiaRockInsideCycloneClearsCobweb(), scGaiaRockInsideCycloneClearsMadPlantBushes(), scGaiaRockInsideCycloneClearsTwinAltarsBushes(), scGaiaRockInsideCycloneMadPlant() and scGaiaRockInsideCycloneStartsPlatforms().

Definition at line 420 of file script_inline.h.

scFieldTileCopiesCopyTouchedMetatiles

static inline void scFieldTileCopiesCopyTouchedMetatiles(Sint32 srcX, Sint32 srcZ, Sint32 width, Sint32 height, Sint32 windowX, Sint32 windowZ, Sint32 layer)

Opens the metatiles of a window that the leader can reach, taking their pictures from the same place of another window, as Cyclone clears a bush (fdTileCopiesCopyTouchedMetatiles).

References fdTileCopiesCopyTouchedMetatiles() and Sint32.

Referenced by dbPsynergyTestBlowAwayLeaves(), dbPsynergyTestDepartInRing(), scAncientLemuriaCycloneFifthWeeds(), scAncientLemuriaCycloneFourthWeeds(), scAncientLemuriaCycloneRevealsRime(), scAncientLemuriaCycloneSecondWeeds(), scAncientLemuriaCycloneSixthWeeds(), scAncientLemuriaCycloneThirdWeeds(), scAttekaInletCycloneEighthWeeds(), scAttekaInletCycloneFifthWeeds(), scAttekaInletCycloneFirstWeeds(), scAttekaInletCycloneFourthWeeds(), scAttekaInletCycloneNinthWeeds(), scAttekaInletCycloneSecondWeeds(), scAttekaInletCycloneSeventhWeeds(), scAttekaInletCycloneSixthWeeds(), scAttekaInletCycloneThirdWeeds(), scAttekaInletCycloneUncoversGeode(), scContigoScatterWeedPatchBottomRow(), scContigoScatterWeedPatchFourthRow(), scContigoScatterWeedPatchMiddleRow(), scContigoScatterWeedPatchSecondRow(), scContigoScatterWeedPatchTopRow(), scContigoScatterWeedsBehindInn(), scContigoScatterWeedsBelowLuckyWheels(), scContigoScatterWeedsByGate(), scContigoScatterWeedsOnCliffEast(), scContigoScatterWeedsOnCliffWest(), scContigoScatterWeedsWestOfItemShop(), scContigoScatterWeedsWestOfWeaponShop(), scGaiaRockCycloneBlowsAwayWeeds(), scIsletsClearFifthPatch(), scIsletsClearFirstPatch(), scIsletsClearFourthPatch(), scIsletsClearSecondPatch(), scIsletsClearSixthPatch(), scIsletsClearThirdPatch(), scIzumoScatterLedgeWeeds(), scIzumoScatterRiverbankWeeds(), scIzumoScatterSoutheastWeeds(), scIzumoScatterStoneCircleWeeds(), scIzumoScatterWeedsByTheSanctum(), scIzumoScatterWeedsByTheShop(), scIzumoScatterWeedsOverFirstAntidote(), scIzumoScatterWeedsOverLuckyMedal(), scIzumoScatterWeedsOverSecondAntidote(), scJupiterLighthouseScatterEastWeeds(), scJupiterLighthouseScatterFarWeeds(), scJupiterLighthouseScatterMadPlantWeeds(), scJupiterLighthouseScatterNearWeeds() and 22 more.

Definition at line 442 of file script_inline.h.

scFieldMadPlantLeapAtLeader

static inline void scFieldMadPlantLeapAtLeader(Sint32 sprite, Sint32 x, Sint32 z)

A Mad Plant leaps out of a cleared bush at the leader (fdMadPlantLeapAtLeader).

References fdMadPlantLeapAtLeader() and Sint32.

Referenced by scJupiterLighthouseUncoverMadPlant().

Definition at line 464 of file script_inline.h.

scFieldEffectSpriteInit

static inline void scFieldEffectSpriteInit(EFFECT_SPR *sprite, Sint32 pivotX, Sint32 pivotY, Uint32 attributes, Sint32 tile)

Sets up an effect sprite: its pivot, its OAM attributes and its first tile (fdEffectSpriteInit).

References fdEffectSpriteInit() and Sint32.

Referenced by scChampaCliffCavesLoadColumn(), scChampaCliffCavesLoadGlow(), scChampaCliffCavesStartFlash(), scEpilogueLoadPortraitFrame() and scJupiterLighthouseStartBeam().

Definition at line 472 of file script_inline.h.

On this page

MacrosFunctionsDescriptionMacros in detailscFieldVectorAddPolarOffsetFunctions in detailfdActorFaceEachOtherfdActorSetAnimationscFieldActorSetAnimationfdPaletteFadeInterpolategmItemLoadIconmnMessageShowCenteredgmPartyGiveItemmnVRAMLoadscFieldActorLaunchFromLeaderscFieldVectorAddPolarOffsetFXfdSetMetatileBehaviorAtfdSetWorldMapWindowMetatileTilescFieldScriptWaitfdActorFaceDirectionAndWaitfdActorSetPosAndFacingscFieldActorSetAnimationAndWaitscFieldActorJumpscFieldActorSetSpritePriorityscFieldActorStartRepeatedMotionscFieldActorWatchAndSetScriptscFieldActorWaitForMoveByIdscFieldScriptEndLastingPsynergyscFieldScriptSetMessageIdscScriptCameraFollowActorscFieldActorSetPosAndResetMotionscFieldActorWaitForScriptEndByIdscFieldActorSetSpriteColorscFieldActorStopscFieldScriptSetExitRequestscFieldActorWaitForMovescFieldPartyInventoryFindMemberscScriptMessageShowCenteredscFieldPartyGetLeaderActorscFieldScriptAskYesNoWithActorAnimationscFieldScriptSetAfterBattleDestinationscFieldDjinnJoinPartyscScriptCameraGetActorscScriptYesNoAskscFieldWorldMapStartZoomscFieldWindowColorApplyfdScriptRequestDjinnBattlescFieldScriptAddPartyMemberscFieldMapGridWaitForShakeToSettlescFieldMapGridGetMetatileBehaviorAtscFieldActorShowItemIconByIdscFieldActorSetItemIconscFieldWorldMapSetWindowMetatileTileAndDrawscScriptCameraMoveToActorscFieldActorSetSpriteRotationByIdscFieldMapGridSetMetatileBehaviorfdScriptDigUpTreasurescFieldMapGridSetMetatileHeightscFieldMapMetatileSetAttributesfdScriptStartColorTransitionscFieldCycloneCopyTouchedMetatilesscFieldTileCopiesCopyTouchedMetatilesscFieldMadPlantLeapAtLeaderscFieldEffectSpriteInit