src/field/script_commands_scripts.c
Script commands: waits, received items, questions and destinations. More…
Included by script_commands.c.
Macros
| Name | Description | |
|---|---|---|
#define | GIFT_RECEIVED_MESSAGE GERMAN_OR(MsgGaveItemToMember, (MsgGotItem + 1)) | When a gift goes to another party member, <leader> gave <item> to <member>. follows <leader> got <item>.; it is MsgGaveItemToMember, the next message, in every edition. |
#define | GIFT_RECEIVED_MESSAGE_MODE FIELD_MESSAGE_ZOOM | |
#define | YES_NO_BELOW_LAST_ROW 15 | The last tile row the message windows may reach with a yes-or-no question still asked below them. |
Functions
| Name | Description | |
|---|---|---|
static inline void | fdItemGiftShowGotItem (Sint32 item, Sint32 flags) | Shows the message for an item the party has just received. |
void | fdScriptUpdateDebugSkip (void) | Debug only: while debug mode is on, R makes every script wait (fdScriptWait) end at once and L restores normal waits. |
void | fdScriptWait (Sint32 ticks) | Waits the requested ticks through sySynch(), unless debug fast-forward (fdScriptUpdateDebugSkip) is on: the wait scripts use. |
void | fdLeaderStopMoving (void) | Stops the leader where it stands: no horizontal velocity, the normal walking speed (1.0) and acceleration (0.5), no destination, and the standing pose, or the clinging pose while the leader is on a climbable wall. |
void | fdScriptStart (void) | Begins a script: closes any area name window, stops the leader, resets the message and timing state, and starts the debug fast-forward event with the leader as the message speaker. |
void | fdScriptEnd (void) | Ends a script: stops the debug fast-forward event, gives the camera back to the leader and refreshes FLAG_LURE_CAP (gmFlagRefreshLureCap). |
void | fdScriptNoOperationUpdateA (void) | |
void | fdScriptNoOperationUpdate (void) | An empty hook; it does nothing in the released game. |
void | fdScriptRunActorUpdateAndWait (ACTOR_PLACE *table) | Respawns the scene's actors from an actor placement table and waits one tick for them to appear. |
void | fdScriptAppendActorPlacements (ACTOR_PLACE *table) | Spawns the actors of an actor placement table after the last actor in use. |
void | fdScriptSetCues (const CUE *cues) | Sets the scene's cue table, which the field checks as the leader moves: Altin Peak's script calls it. |
void | fdScriptAddPartyMember (Sint32 unit, Sint32 announce) | Adds unit to the party. |
void | fdScriptAddPartyMemberPair (Sint32 first, Sint32 second) | Adds two units to the party and announces them together. |
Sint32 | fdPartyCheckShortcut (Uint32 shortcut) | Checks an L or R button shortcut, packed as a field Psynergy use is: the party member (ACT_UNIT) and the Psynergy (ABILITY_ID). |
void | fdPartyClearUnusableShortcuts (void) | Clears each button shortcut whose Psynergy can no longer be cast: zeroes MainRoutineStateWork.firstShortcut or secondShortcut. |
void | fdPartyRemoveMemberRestored (Sint32 unit) | Takes unit out of the party, fully restoring its HP and PP and curing its poison. |
Sint32 | fdPartyCheckItemLimit (Sint32 item) | Checks whether the party can carry one more of item: each party member carries at most INVENTORY_STACK_MAX of one item. |
Sint32 | fdPartyInventoryGiveItem (Sint32 item, Sint32 unused) | Gives item to the first party member with room for it and says so; when every bag is full the player picks something to drop. |
Sint32 | fdInventoryTryAddAndReturnMember (Sint32 item, Sint32 unused, Sint32 unit) | Gives item to one party member. |
void | fdInventoryNoOperationCallback (void) | An empty function; nothing in The Broken Seal calls it. |
void | fdInventoryReservedNoOperation (void) | An empty function; nothing in The Broken Seal calls it. |
void | fdActorWaitForAnimationEnd (Sint32 actorId, Sint32 animation) | Waits, at most 90 ticks, for an actor's animation to stop being animation: the actor has finished a one-off animation such as a nod. |
Sint32 | fdScriptAskYesNoWithActorAnimation (Sint32 actorId, Sint32 forceBottom) | Once the message on screen has been read, asks yes or no below it, or above it when the message windows reach past YES_NO_BELOW_LAST_ROW, unless forceBottom is set; the actor then nods for yes or shakes its head for no. |
Sint32 | fdYesNoAsk (Sint32 atBottom) | Asks yes or no at the top of the screen, or at the bottom with atBottom set. |
void | fdPartyLearnAbility (Sint32 unit, Sint32 ability) | Teaches unit the Psynergy ability and says so with its jingle, waiting for the player to read it. |
void | fdScriptStartScreenTransition (void) | Starts the script's screen transition, as FIELD_STATE.transition and transitionFrame give it. |
void | fdScriptFinishScreenTransition (void) | Finishes the script's screen transition. |
void | fdScriptWaitTransitionTicks (void) | Waits as long as the script's screen transition runs. |
void | fdScriptSetDestination (Sint32 sceneId, Sint32 entrance) | Makes the script leave for the given entrance of the given scene: raises the exit request EXIT_KEEP_DESTINATION and writes MainRoutineStateWork.next and entrance. |
void | fdScriptSetRestartPoint (Uint16 sceneId, Uint16 entrance) | Makes the script leave and records scene and entrance as the restart point. |
void | fdScriptSetExitRequest (Uint16 request) | Sets the field's exit request, which ends the scene: an exit kind, or EXIT_KEEP_DESTINATION for MainRoutineStateWork's next and entrance. |
Description
Script commands: waits, received items, questions and destinations. Part of
script_commands.c.
Macros in detail
GIFT_RECEIVED_MESSAGE
#define GIFT_RECEIVED_MESSAGE GERMAN_OR(MsgGaveItemToMember, (MsgGotItem + 1))
When a gift goes to another party member, <leader> gave <item> to <member>.
follows <leader> got <item>.; it is MsgGaveItemToMember, the next message,
in every edition.
Referenced by fdPartyInventoryGiveItem().
Definition at line 9 of file script_commands_scripts.c.
GIFT_RECEIVED_MESSAGE_MODE
#define GIFT_RECEIVED_MESSAGE_MODE FIELD_MESSAGE_ZOOM
#define GIFT_RECEIVED_MESSAGE_MODE
Referenced by fdPartyInventoryGiveItem().
Definition at lines 14 and 16 of file script_commands_scripts.c.
YES_NO_BELOW_LAST_ROW
#define YES_NO_BELOW_LAST_ROW 15
The last tile row the message windows may reach with a yes-or-no question still asked below them.
Referenced by fdScriptAskYesNoWithActorAnimation().
Definition at line 428 of file script_commands_scripts.c.
Functions in detail
fdItemGiftShowGotItem
static inline void fdItemGiftShowGotItem(Sint32 item, Sint32 flags)
Shows the message for an item the party has just received.
References mnFieldMessageShowStub(), mnMessageArgumentPushStub() and Sint32.
Referenced by fdPartyInventoryGiveItem().
Definition at line 21 of file script_commands_scripts.c.
fdScriptUpdateDebugSkip
void fdScriptUpdateDebugSkip(void)
Debug only: while debug mode is on, R makes every script wait (fdScriptWait)
end at once and L restores normal waits.
References DebugMode, PerPush and state.
Referenced by fdScriptEnd() and fdScriptStart().
Definition at line 36 of file script_commands_scripts.c.
fdScriptWait
void fdScriptWait(Sint32 ticks)
Waits the requested ticks through sySynch(), unless debug fast-forward
(fdScriptUpdateDebugSkip) is on: the wait scripts use.
References Sint32 and sySynch().
Referenced by fdActorFaceActorById(), fdActorFaceDirectionById(), fdActorJump(), fdActorShowEmoteById(), fdActorTurnToFaceEachOther(), fdCameraWaitForArrival(), fdClimbDown(), fdClimbUp(), fdEntrancePlayArrival(), fdExamineMetatile(), fdScriptShowMessageThenWait(), scAlpineCrossingFeizhiArrives(), scAlpineCrossingHamaReachesHsu(), scAlpineCrossingHidePath(), scAlpineCrossingLiftBoulder(), scAlpineCrossingRevealPath(), scAlpineCrossingTalkToFeizhi(), scAltinBeastHopAway(), scAltinEnterDoor(), scAltinPeakAwardFrostJewelAndDrain(), scAltinPeakCelebrateHydrosVictory(), scAltinPeakDrainFirstWater(), scAltinPeakDrainSecondWater(), scAltinPeakDrainThirdWater(), scAltinPeakFirstBeastHopsAway(), scAltinPeakFlickerWaterAway(), scAltinPeakForceLogOver(), scAltinPeakPlayLandingShake(), scAltinPeakReadFallingRockSign(), scAltinPeakRideCart(), scAltinPeakRunBoulderChase(), scAltinPeakShowFirstBeastRoute(), scAltinPeakStartHydrosBattle(), scAltinScareOffBeast(), scAltinTalkToThirstyOldWoman(), scAltmillerCaveBabiCallsPartyBack(), scAltmillerCaveMeetInvisibleBabi(), scAltmillerCaveRepeatRockOrder(), scAltmillerCaveRestoreBabiAndInviteParty(), scAltmillerCaveStartRetreat(), scAltmillerCaveTurnRock(), scBabiLighthouseExplainTruthDoor(), scBabiLighthouseFallToExit(), scBabiLighthouseFaranAsksPartyToOpenDoor(), scBabiLighthouseInspectTruthDoorSwitch(), scBabiLighthouseLandWithParticles(), scBabiPalaceAskAboutColosso(), scBabiPalaceHearSoldiersReport(), scBabiPalaceLeaveThroughAnimatedDoor(), scBabiPalaceLeaveThroughDoor() and 578 more.
Definition at line 55 of file script_commands_scripts.c.
fdLeaderStopMoving
void fdLeaderStopMoving(void)
Stops the leader where it stands: no horizontal velocity, the normal walking speed (1.0) and acceleration (0.5), no destination, and the standing pose, or the clinging pose while the leader is on a climbable wall.
References fdActorLookup(), fdActorSelectAnimationStub() and MainRoutineStateWork.
Referenced by fdCheckExitRegions(), fdEngineRun(), fdExamineMetatile(), fdScriptStart(), fdTalkToActor(), fdUsePsynergy(), fdWorldMapZoomOutWhileLHeld() and scLogRoomsAGaretHasNoTimeForMenu().
Definition at line 66 of file script_commands_scripts.c.
fdScriptStart
void fdScriptStart(void)
Begins a script: closes any area name window, stops the leader, resets the message and timing state, and starts the debug fast-forward event with the leader as the message speaker.
References fdEndBusyAndReveal(), fdLeaderStopMoving(), fdScriptUpdateDebugSkip(), gmFlagClearStub(), MainRoutineStateWork, mnAreaNameWindowHideStub(), state and sySetEvent().
Referenced by dbIncreaseItemAndLevelRunMotionTest(), fdClimbDown(), fdClimbUp(), fdDjinnJoinParty(), fdDjinnRunBattleStartHop(), fdExamineMetatile(), fdPsynergyRetreat(), fdRunPsynergyScript(), fdRunRaisedCue(), fdRunStepCueOrExit(), fdTalkToActor(), fdTryJumpForward(), fdUseItem(), scActorFloatLogWithLeader(), scAlpineCrossingFeizhiArrives(), scAlpineCrossingFreezePuddle(), scAlpineCrossingGrowSprout(), scAlpineCrossingHamaReachesHsu(), scAlpineCrossingLiftBoulder(), scAlpineCrossingReadSignpost(), scAlpineCrossingTalkToFeizhi(), scAltinApplyWaterLevel(), scAltinAskAboutFirstVisit(), scAltinAskAboutHydros(), scAltinAskAboutRuins(), scAltinEnterDoor(), scAltinPeakAwardFrostJewelAndDrain(), scAltinPeakCelebrateHydrosVictory(), scAltinPeakDrainAfterSecondBeast(), scAltinPeakDrainAfterThirdBeast(), scAltinPeakFirstBeastHopsAway(), scAltinPeakFlipPoolRoomSwitch(), scAltinPeakFlipSecondWaterBeastRoomSwitch(), scAltinPeakFlipSpritzRoomSwitch(), scAltinPeakFlipThirdWaterBeastRoomSwitch(), scAltinPeakForceLogOver(), scAltinPeakPushSpritzRoomPillar(), scAltinPeakReadFallingRockSign(), scAltinPeakRestoreFallingRocksRoom(), scAltinPeakRestoreHydrosStatueRoom(), scAltinPeakRideCart(), scAltinPeakRollCart(), scAltinPeakShowFirstBeastRoute(), scAltinPeakStartHydrosBattle(), scAltinScareOffBeast(), scAltinTalkToArmorMerchant(), scAltinTalkToItemMerchant(), scAltinTalkToThirstyOldWoman(), scAltinWalkIntoMine(), scAltmillerCaveBabiCallsPartyBack() and 905 more.
Definition at line 88 of file script_commands_scripts.c.
fdScriptEnd
void fdScriptEnd(void)
Ends a script: stops the debug fast-forward event, gives the camera back to
the leader and refreshes FLAG_LURE_CAP (gmFlagRefreshLureCap).
References fdCameraFollowActor(), fdScriptUpdateDebugSkip(), gmFlagRefreshLureCapStub(), MainRoutineStateWork and syCloseEvent().
Referenced by dbIncreaseItemAndLevelRunMotionTest(), fdClimbDown(), fdClimbUp(), fdDjinnJoinParty(), fdDjinnRunBattleStartHop(), fdExamineMetatile(), fdRunPsynergyScript(), fdRunRaisedCue(), fdRunStepCueOrExit(), fdTalkToActor(), fdTryJumpForward(), fdUseItem(), scActorFloatLogWithLeader(), scAlpineCrossingFeizhiArrives(), scAlpineCrossingFreezePuddle(), scAlpineCrossingGrowSprout(), scAlpineCrossingHamaReachesHsu(), scAlpineCrossingLiftBoulder(), scAlpineCrossingReadSignpost(), scAlpineCrossingTalkToFeizhi(), scAltinApplyWaterLevel(), scAltinAskAboutFirstVisit(), scAltinAskAboutHydros(), scAltinAskAboutRuins(), scAltinEnterDoor(), scAltinPeakAwardFrostJewelAndDrain(), scAltinPeakCelebrateHydrosVictory(), scAltinPeakDrainAfterSecondBeast(), scAltinPeakDrainAfterThirdBeast(), scAltinPeakFirstBeastHopsAway(), scAltinPeakFlipPoolRoomSwitch(), scAltinPeakFlipSecondWaterBeastRoomSwitch(), scAltinPeakFlipSpritzRoomSwitch(), scAltinPeakFlipThirdWaterBeastRoomSwitch(), scAltinPeakForceLogOver(), scAltinPeakPushSpritzRoomPillar(), scAltinPeakReadFallingRockSign(), scAltinPeakRestoreFallingRocksRoom(), scAltinPeakRestoreHydrosStatueRoom(), scAltinPeakRideCart(), scAltinPeakRollCart(), scAltinPeakShowFirstBeastRoute(), scAltinScareOffBeast(), scAltinTalkToArmorMerchant(), scAltinTalkToItemMerchant(), scAltinTalkToThirstyOldWoman(), scAltinWalkIntoMine(), scAltmillerCaveBabiCallsPartyBack(), scAltmillerCaveHopOverPuddle(), scAltmillerCaveMeetInvisibleBabi() and 856 more.
Definition at line 119 of file script_commands_scripts.c.
fdScriptNoOperationUpdateA
void fdScriptNoOperationUpdateA(void)
Definition at line 126 of file script_commands_scripts.c.
fdScriptNoOperationUpdate
void fdScriptNoOperationUpdate(void)
An empty hook; it does nothing in the released game. Only
fdScriptRunActorUpdateAndWait calls it.
Referenced by fdScriptRunActorUpdateAndWait().
Definition at line 132 of file script_commands_scripts.c.
fdScriptRunActorUpdateAndWait
void fdScriptRunActorUpdateAndWait(ACTOR_PLACE *table)
Respawns the scene's actors from an actor placement table and waits one tick for them to appear.
References fdActorLookup(), fdActorResetForLeader(), fdScriptNoOperationUpdate(), MainRoutineStateWork and sySynch().
Definition at line 138 of file script_commands_scripts.c.
fdScriptAppendActorPlacements
void fdScriptAppendActorPlacements(ACTOR_PLACE *table)
Spawns the actors of an actor placement table after the last actor in use.
References fdActorFindLastActiveId() and fdScriptSpawnActorPlacements().
Referenced by scInit(), scKalayWatchTourGroupDeparture(), scSanctumAskAboutNewAdepts(), scShipRoomsRunScriptCommand(), scTolbiShipDeckDepartWithParty(), scTolbiShipDeckJumpIntoKrakenBattle(), scTolbiShipDeckMonsterLandsOnDeck(), scTolbiShipDeckMonstersAttackCrew(), scTolbiShipDeckMonstersBoard(), scTolbiShipDeckReturnFromIsland(), scTolbiShipDeckSetUpAfterKraken(), scTolbiShipDeckSetUpAtAnchor(), scTolbiShipDeckSetUpUnderSail(), scTolbiShipDeckSightIsland(), scTolbiShipDeckSightLand(), scTolbiShipDeckSightSeaMonsters(), scTolbiShipDeckThankForKraken(), scTolbiShipMastAnnounceLand(), scTolbiShipMastPlayFirstAttack(), scTolbiShipMastPlaySecondAttack(), scTolbiShipMastPlayThirdAttack() and scValePrologueWatchBoulderFall().
Definition at line 147 of file script_commands_scripts.c.
fdScriptSetCues
void fdScriptSetCues(const CUE *cues)
Sets the scene's cue table, which the field checks as the leader moves: Altin Peak's script calls it.
References state.
Referenced by scAltinPeakAwardFrostJewelAndDrain().
Definition at line 154 of file script_commands_scripts.c.
fdScriptAddPartyMember
void fdScriptAddPartyMember(Sint32 unit, Sint32 announce)
Adds unit to the party. With announce nonzero it also shows <name> joined your party. (mnPartyShowJoinedMessage, which receives announce too).
References gmPartyAddMemberStub(), gmUnitGetStub(), mnPartyShowJoinedMessageStub() and Sint32.
Referenced by scGomaCaveEntranceIvanJoins(), scInit(), scLogRoomsAIvanJoinsRodSearch(), scMercuryLighthouseMiaJoinsAfterRescue(), scValePlazaMeetSurvivingTravelers(), scValePrologueGaretLeavesHisChest() and scValePrologueUnusedGaretJoinsIsaac().
Definition at line 163 of file script_commands_scripts.c.
fdScriptAddPartyMemberPair
void fdScriptAddPartyMemberPair(Sint32 first, Sint32 second)
Adds two units to the party and announces them together. Vale's script calls it twice.
References gmPartyAddMemberStub(), mnPartyShowPairJoinedMessageStub() and Sint32.
Referenced by scValeRoofMended() and scValeUnusedRoofMended().
Definition at line 175 of file script_commands_scripts.c.
fdPartyCheckShortcut
Sint32 fdPartyCheckShortcut(Uint32 shortcut)
Checks an L or R button shortcut, packed as a field Psynergy use is: the
party member (ACT_UNIT) and the Psynergy (ABILITY_ID). Returns 0 when it can
be cast, -1 for no such character, -2 when they are out of the party and -3
when they do not know the Psynergy.
References gmFlagGetStub(), gmUnitKnowsPsynergyStub() and Sint32.
Referenced by fdPartyClearUnusableShortcuts().
Definition at line 186 of file script_commands_scripts.c.
fdPartyClearUnusableShortcuts
void fdPartyClearUnusableShortcuts(void)
Clears each button shortcut whose Psynergy can no longer be cast: zeroes
MainRoutineStateWork.firstShortcut or secondShortcut.
References fdPartyCheckShortcut() and MainRoutineStateWork.
Referenced by fdPartyRemoveMemberRestored(), fdUpdateWalking() and scColossoControlCharacterAlone().
Definition at line 202 of file script_commands_scripts.c.
fdPartyRemoveMemberRestored
void fdPartyRemoveMemberRestored(Sint32 unit)
Takes unit out of the party, fully restoring its HP and PP and curing its poison.
References fdPartyClearUnusableShortcuts(), gmPartyCountMembersStub(), gmPartyRemoveMemberStub(), gmUnitGetStub(), MainRoutineStateWork and Sint32.
Referenced by scLogRoomsAReturnStolenGoods(), scSolSanctumElementalStarRoomEnterStarRoom(), scSolSanctumEruptionPlayHostageScript(), scValePrologueShowBoulderSweepingDownriver() and scVaultIvanStaysBehind().
Definition at line 212 of file script_commands_scripts.c.
fdPartyCheckItemLimit
Sint32 fdPartyCheckItemLimit(Sint32 item)
Checks whether the party can carry one more of item: each party member
carries at most INVENTORY_STACK_MAX of one item.
References gmInventoryCountItemStub(), gmPartyCountMembersStub(), MainRoutineStateWork, mnFieldMessageShowStub(), mnMessageArgumentPushStub() and Sint32.
Referenced by fdEngineRun().
Definition at line 245 of file script_commands_scripts.c.
fdPartyInventoryGiveItem
Sint32 fdPartyInventoryGiveItem(Sint32 item, Sint32 unused)
Gives item to the first party member with room for it and says so; when every bag is full the player picks something to drop. Returns who got it, or -1.
References fdItemGiftShowGotItem(), fdYesNoAsk(), gmInventoryCountItemStub(), gmInventoryDiscardStub(), gmInventoryGetQuantityStub(), gmItemAdjustRareItemStockStub(), gmItemGetDefinitionStub(), gmPartyInventoryAddStub(), gmUnitGetStub(), MainRoutineStateWork, mnFieldMessageShowStub(), mnItemPickerRunStub(), mnMessageArgumentPushStub(), mnMessageCloseFinishedWindowsStub(), Sint32, state and sySoundPlayStub().
Referenced by dbMenuTestGiveItemToParty(), fdEngineRun(), gmPartyGiveItem(), scCatchNut(), scKalayCatchTownNut(), scLogRoomsBOfferBones() and scVaultFindBone().
Definition at line 271 of file script_commands_scripts.c.
fdInventoryTryAddAndReturnMember
Sint32 fdInventoryTryAddAndReturnMember(Sint32 item, Sint32 unused, Sint32 unit)
Gives item to one party member. Returns unit, or -1 if its bag is full.
References gmInventoryAddItemStub() and Sint32.
Definition at line 387 of file script_commands_scripts.c.
fdInventoryNoOperationCallback
void fdInventoryNoOperationCallback(void)
An empty function; nothing in The Broken Seal calls it.
Definition at line 395 of file script_commands_scripts.c.
fdInventoryReservedNoOperation
void fdInventoryReservedNoOperation(void)
An empty function; nothing in The Broken Seal calls it.
Definition at line 400 of file script_commands_scripts.c.
fdActorWaitForAnimationEnd
void fdActorWaitForAnimationEnd(Sint32 actorId, Sint32 animation)
Waits, at most 90 ticks, for an actor's animation to stop being animation: the actor has finished a one-off animation such as a nod.
References fdActorLookup(), Sint32 and sySynch().
Referenced by fdScriptAskYesNoWithActorAnimation().
Definition at line 406 of file script_commands_scripts.c.
fdScriptAskYesNoWithActorAnimation
Sint32 fdScriptAskYesNoWithActorAnimation(Sint32 actorId, Sint32 forceBottom)
Once the message on screen has been read, asks yes or no below it, or above
it when the message windows reach past YES_NO_BELOW_LAST_ROW, unless
forceBottom is set; the actor then nods for yes or shakes its head for no.
Returns 0 for yes.
References fdActorSetAnimationById(), fdActorWaitForAnimationEnd(), fdFindActorPlacement(), mnMessageAllTypedStub(), mnMessageCloseFinishedWindowsStub(), mnPortraitCloseWindowStub(), mnYesNoMenuRunStub(), PerPush, Sint32, state and sySynch().
Referenced by fdScriptAskYesNoAndShowResponse(), scAlpineCrossingTalkToFeizhi(), scAltinAskAboutFirstVisit(), scAltinPeakCelebrateHydrosVictory(), scAltmillerCaveMeetInvisibleBabi(), scAltmillerCaveRepeatRockOrder(), scAltmillerCaveRestoreBabiAndInviteParty(), scBabiLighthouseExplainTruthDoor(), scBabiLighthouseFaranAsksPartyToOpenDoor(), scBabiPalaceAskAboutColosso(), scBabiPalaceAskAboutRemainingWarriors(), scBabiPalaceMeetBabiAfterColosso(), scBabiPalaceOfferCloakBall(), scBabiPalaceOfferRest(), scBabiPalacePassOnBabisWord(), scBabiPalaceRestInPalaceBeds(), scBabiPalaceShowBeds(), scBabiPalaceShowQuestionAnswer(), scBabiPalaceWakeAfterFinals(), scBabiPalaceWakeFromFinalsDream(), scBattleArenaChooseBattleMode(), scColosseumEntranceAskIfReadyForFinals(), scColosseumEntranceCrowdRecognizesIsaac(), scColosseumEntranceExplainPartySupport(), scColosseumEntranceFinalsStart(), scColosseumEntranceOfferLuckyGuess(), scColosseumNavampaMatchUnusedAskToControlCharacter(), scColossoAskDoneCheering(), scColossoGreetAtStage(), scColossoOfferCheeringSpot(), scCottageRoomsAGaretComesHome(), scCottageRoomsBAskIsaacHisBusiness(), scCottageRoomsBAskWhetherMaskedManWasFelix(), scCottageRoomsBDoraWakesIsaac(), scCottageRoomsBScholarAsksAboutKraden(), scCottageRoomsBVisitSickDora(), scCottageRoomsCAskAboutTreeSpirit(), scCottageRoomsCTalkToHungryDiner(), scFuchinTempleBoyMonkSpeaksOfNyunpa(), scFuchinTempleFehAsksToSeeChi(), scFuchinTempleFeizhiLeavesForHsu(), scFuchinTempleNyunpaOffersTest(), scFuchinTempleNyunpaTeachesKi(), scFuchinTempleRunHamasRevealLesson(), scFuchinTempleYoungManFromKolimaAsksAboutBridge(), scGondowanCaveIodemAsksWhyTurningBack(), scGondowanCaveSoldierAsksAboutCrossing(), scHammetPalaceHammetsHomecoming(), scHammetPalaceIvanReportsToLayana(), scInit() and 118 more.
Definition at line 434 of file script_commands_scripts.c.
fdYesNoAsk
Sint32 fdYesNoAsk(Sint32 atBottom)
Asks yes or no at the top of the screen, or at the bottom with atBottom set. Returns 0 for yes, 1 for no.
References mnYesNoMenuRunStub() and Sint32.
Referenced by fdPartyInventoryGiveItem(), fdUseItem(), fdUsePsynergy() and scInit().
Definition at line 491 of file script_commands_scripts.c.
fdPartyLearnAbility
void fdPartyLearnAbility(Sint32 unit, Sint32 ability)
Teaches unit the Psynergy ability and says so with its jingle, waiting for the player to read it.
References gmUnitLearnPsynergyStub(), mnFieldMessageShowStub(), mnMessageArgumentPushStub(), Sint32 and sySoundPlayStub().
Referenced by scFuchinTempleRunHamasRevealLesson().
Definition at line 498 of file script_commands_scripts.c.
fdScriptStartScreenTransition
void fdScriptStartScreenTransition(void)
Starts the script's screen transition, as FIELD_STATE.transition and
transitionFrame give it.
References fdScreenTransitionStart() and state.
Referenced by fdMapScreenShow(), scAlpineCrossingHamaReachesHsu(), scAltinPeakAwardFrostJewelAndDrain(), scAltinPeakCelebrateHydrosVictory(), scAltinPeakDrainAfterSecondBeast(), scAltinPeakDrainAfterThirdBeast(), scBabiLighthouseFallToExit(), scBabiLighthouseLandWithParticles(), scBabiPalaceMeetBabiAfterColosso(), scBabiPalaceWakeAfterFinals(), scBabiPalaceWakeFromFinalsDream(), scColosseumEntranceAnnounceFinals(), scColosseumEntranceEscortToEastExit(), scColosseumEntranceEscortToWestExit(), scColosseumEntranceExplainPartySupport(), scColosseumEntranceExplainTrial(), scColosseumEntrancePraiseBothMatchesWon(), scColosseumEntrancePraiseFirstMatchWon(), scColosseumEntranceShowClearedTrial(), scColosseumEntranceShowFailedTrial(), scColosseumEntranceWalkToEastExit(), scColosseumEntranceWalkToWestExit(), scColosseumNavampaMatchPlayPostBattleReunion(), scColosseumNavampaMatchUnusedAskToControlCharacter(), scColossoAskDoneCheering(), scColossoGatherPartyForTour(), scColossoShowMatchResult(), scColossoShowOpeningLettering(), scColossoTakePlaceForMatch(), scCottageRoomsAGaretComesHome(), scCottageRoomsBDoraWakesIsaac(), scCottageRoomsBHurryToThePlaza(), scCottageRoomsBShowMythrilBag(), scCrossboneIsleOpenEastDoorAfterBattle(), scFuchinTempleNyunpaTeachesKi(), scFuchinTempleRunHamasRevealLesson(), scHammetPalaceHammetsHomecoming(), scHammetPalaceIvanReportsToLayana(), scImilArriveFromFallsCave(), scImilMeetMiaAtOldCouplesHouse(), scImilMiaSaysFarewellToApprentices(), scImilWalkTowardFever(), scInit(), scKalayHammetReturnsToPalace(), scKalayIvanMeetsPalaceGuards(), scKalayTolbiDocksGaretSeesTheKaragol(), scKolimaForestEntranceWitnessForestCurse(), scKolimaWitnessForestCurse(), scLaliveroWatchWoundedSoldiers(), scLamaTempleRunHamasFarewell() and 95 more.
Definition at line 513 of file script_commands_scripts.c.
fdScriptFinishScreenTransition
void fdScriptFinishScreenTransition(void)
Finishes the script's screen transition.
References fdScreenTransitionFinish() and state.
Referenced by fdMapScreenShow(), scAltinEnterDoor(), scAltinWalkIntoMine(), scBabiLighthouseJumpIntoPit(), scColosseumEntranceCrowdRecognizesIsaac(), scColosseumEntranceEscortToEastExit(), scColosseumEntranceEscortToWestExit(), scColosseumEntranceExplainPartySupport(), scColosseumEntrancePraiseBothMatchesWon(), scColosseumEntrancePraiseFirstMatchWon(), scColosseumEntranceShowClearedTrial(), scColosseumEntranceShowFailedTrial(), scColosseumEntranceTalkToTrialAttendant(), scColosseumEntranceWalkToEastExit(), scColosseumEntranceWalkToWestExit(), scColosseumNavampaMatchPlayPostBattleReunion(), scColosseumNavampaMatchUnusedAskToControlCharacter(), scColossoAskDoneCheering(), scColossoAskDoneLookingAround(), scColossoShowMatchResult(), scColossoTakePlaceForMatch(), scCottageRoomsALeaveThroughDoor(), scCottageRoomsBCloseScreenAndExit(), scCottageRoomsBDoraWakesIsaac(), scCottageRoomsBHurryToThePlaza(), scCottageRoomsBShowMythrilBag(), scFuchinTempleEnterWaterfallGrotto(), scGondowanCaveLeaveToWorldMapEast(), scImilLeaveFallsCave(), scImilLeaveNorth(), scInit(), scKalayEnterPalace(), scKalayHammetReturnsToPalace(), scKalayIvanMeetsPalaceGuards(), scKalayOpenDoorAndExit(), scKalayWatchTourGroupDeparture(), scLemurianShipSetSail(), scLogRoomsADefeatThieves(), scLogRoomsAReadCorneredSuspectsMinds(), scLunpaEnterDoor(), scLunpaEnterFortress(), scLunpaFortressDonpaJudgesDodonpa(), scLunpaFortressEntranceGuardThrowsPartyOut(), scLunpaFortressGuardThrowsPartyOut(), scLunpaFortressSentriesThrowPartyOut(), scLunpaFortressUnusedFirstPatrolThrowsPartyOut(), scMcCoyPalaceAudienceWithMcCoy(), scMcCoyPalaceGroundsGuardsArrestParty(), scMcCoyPalaceMcCoyRewardsParty(), scMercuryLighthouseExitWhenChannelsOpen() and 59 more.
Definition at line 522 of file script_commands_scripts.c.
fdScriptWaitTransitionTicks
void fdScriptWaitTransitionTicks(void)
Waits as long as the script's screen transition runs.
References sySynch().
Referenced by fdMapScreenShow(), scAlpineCrossingHamaReachesHsu(), scAltinEnterDoor(), scAltinPeakAwardFrostJewelAndDrain(), scAltinPeakCelebrateHydrosVictory(), scAltinPeakDrainAfterSecondBeast(), scAltinPeakDrainAfterThirdBeast(), scAltinWalkIntoMine(), scBabiLighthouseFallToExit(), scBabiLighthouseJumpIntoPit(), scBabiLighthouseLandWithParticles(), scBabiPalaceMeetBabiAfterColosso(), scBabiPalaceWakeAfterFinals(), scBabiPalaceWakeFromFinalsDream(), scColosseumEntranceAnnounceFinals(), scColosseumEntranceCrowdRecognizesIsaac(), scColosseumEntranceEscortToEastExit(), scColosseumEntranceEscortToWestExit(), scColosseumEntranceExplainPartySupport(), scColosseumEntranceExplainTrial(), scColosseumEntrancePraiseBothMatchesWon(), scColosseumEntrancePraiseFirstMatchWon(), scColosseumEntranceShowClearedTrial(), scColosseumEntranceShowFailedTrial(), scColosseumEntranceTalkToTrialAttendant(), scColosseumEntranceWalkToEastExit(), scColosseumEntranceWalkToWestExit(), scColosseumNavampaMatchPlayPostBattleReunion(), scColosseumNavampaMatchUnusedAskToControlCharacter(), scColossoAskDoneCheering(), scColossoAskDoneLookingAround(), scColossoGatherPartyForTour(), scColossoShowMatchResult(), scColossoShowOpeningLettering(), scColossoTakePlaceForMatch(), scCottageRoomsAGaretComesHome(), scCottageRoomsALeaveThroughDoor(), scCottageRoomsBCloseScreenAndExit(), scCottageRoomsBDoraWakesIsaac(), scCottageRoomsBHurryToThePlaza(), scCottageRoomsBShowMythrilBag(), scCrossboneIsleOpenEastDoorAfterBattle(), scFuchinTempleEnterWaterfallGrotto(), scFuchinTempleNyunpaOffersTest(), scFuchinTempleNyunpaTeachesKi(), scFuchinTempleRunHamasRevealLesson(), scGondowanCaveLeaveToWorldMapEast(), scHammetPalaceIvanReportsToLayana(), scImilLeaveFallsCave(), scImilLeaveNorth() and 119 more.
Definition at line 531 of file script_commands_scripts.c.
fdScriptSetDestination
void fdScriptSetDestination(Sint32 sceneId, Sint32 entrance)
Makes the script leave for the given entrance of the given scene: raises the
exit request EXIT_KEEP_DESTINATION and writes MainRoutineStateWork.next and
entrance.
References MainRoutineStateWork and Sint32.
Referenced by scBattleArenaLeaveArena(), scInit(), scLemurianShipSetSail(), scSuhallaDesertStormCarriesPartyAway(), scTreeRoomsStepOnLeaf(), scVenusLighthouseAerieEruptBeacon(), scWorldMapShowEndingScript() and scWorldMapStormDropsParty().
Definition at line 539 of file script_commands_scripts.c.
fdScriptSetRestartPoint
void fdScriptSetRestartPoint(Uint16 sceneId, Uint16 entrance)
Makes the script leave and records scene and entrance as the restart point.
References MainRoutineStateWork and state.
Definition at line 547 of file script_commands_scripts.c.
fdScriptSetExitRequest
void fdScriptSetExitRequest(Uint16 request)
Sets the field's exit request, which ends the scene: an exit kind, or
EXIT_KEEP_DESTINATION for MainRoutineStateWork's next and entrance.
References state.
Definition at line 557 of file script_commands_scripts.c.