Battles and destinations an event requests, and the queued sound. More...
Go to the source code of this file.
Macros | |
| #define | AERIE 98 |
| encounter table fought before the Aerie's storm | |
Functions | |
| void | Field_RequestBattleFromEncounterTable (s32 zoneNo, s32 slotNo) |
| Sets up a battle with enemy group slot of encounter table zone. | |
| void | Field_RequestDjinnBattle (s32 flag, s32 no) |
| Sets up the battle with Djinni number no. | |
| void | Event_SetNextDestination (s32 scene, s32 entrance) |
| Sets the scene and entrance that the field goes to next (gGameState.nextScene and nextEntrance). | |
| void | Event_SetDefeatDestination (s32 scene, s32 entrance) |
| Sets where the party wakes up after losing a battle (gGameState.defeatScene and defeatEntrance). | |
| void | Event_RequestDestination (u16 scene, u16 entrance) |
| Makes the event leave for entrance entrance of scene scene: sets gGameState.scene and entrance and raises the exit request EXIT_NONE (999), so the scene loop leaves on its next pass. | |
| void | BattleFx_SetQueuedSoundAndPlay (s32 soundId) |
| Plays SE_298, then soundId (SE_289 for -1), and remembers soundId for BattleFx_PlayQueuedSound in the field work's queuedSound. | |
| void | BattleFx_PlayQueuedSound (void) |
| Plays the sound BattleFx_SetQueuedSoundAndPlay remembered, if any. | |
Battles and destinations an event requests, and the queued sound.
Part of psynergy_effects.c, compiled only through it.
Definition in file requests.c.
| #define AERIE 98 |
encounter table fought before the Aerie's storm
Definition at line 7 of file requests.c.
Referenced by Field_RequestBattleFromEncounterTable().
Sets up a battle with enemy group slot of encounter table zone.
On the world map (mode 3) the terrain under the leader picks the battle backdrop. Sets the field work's battle request, which the scene loop then handles, and the battle cue; zone 98's first slot also sets gGameState.special to the Aerie's storm backdrop. About 35 scenes reach it through Field_RequestBattleFromEncounterTableFar, and the lobby calls it directly.
Definition at line 14 of file requests.c.
Referenced by AltinPeak_FightRoom1Beast(), AltinPeak_FightRoom3Beast(), AltinPeak_FightRoom5Beast(), AltinPeak_StartHydrosBattle(), Event_ConfrontSaturosAndMenardi(), Event_DouseStorm(), Event_DouseTravelMarker(), Event_EnterGuardedRoom(), Event_FightFinalGuards(), Event_FightFirstMonster(), Event_FightFourthMonster(), Event_FightSecondMonster(), Event_FightThirdMonster(), Event_FightTret(), Event_FreeRooferAndConfrontThieves(), Event_ReachArena(), Event_ReachArena(), Event_ReachArena(), FallIntoPit(), Field_RequestBattleFromEncounterTable(), FightSandMonster(), LinkLobby_EnterBattle(), MercuryLighthouseAerie_ConfrontSaturos(), MercuryLighthouseEntrance_FightLizardMan(), MogallForest_FirstArea_ApeAttacks(), MogallForest_KillerApeAttacks(), MogallForest_ThirdArea_ApeAttacks(), TolbiShipDeck_JumpIntoKrakenBattle(), TolbiShipInteriors_FightMonstersInHold(), ValeHome_FightTravelers(), VaultInteriors_ConfrontThievesAgain(), VenusLighthouseAerie_CombineSaturosAndMenardi(), and WorldMap_ShowDjinnTutorial().
Sets up the battle with Djinni number no.
The low 8 bits of flag are the Djinni's actor, which hops first unless DJINN_NO_HOP is set. Djinn are numbered 20 to an element (Djinn_ResolvePendingEvent). Sets gGameState.pendingDjinnEvent and the field work's battle request. About 20 scenes reach it through Field_RequestDjinnBattleFar.
Definition at line 35 of file requests.c.
Referenced by AltinPeak_TalkToDjinni(), AltmillerCave_StartDjinnBattle(), BabiLighthouse_StartDjinnBattle(), Event_FightDjinni(), Event_FightDjinni(), Event_FightForge(), Event_MeetCorona(), Event_MeetHail(), Event_MeetVine(), Event_TalkToBreeze(), Field_RequestDjinnBattle(), Fuchin_StartDjinnBattle(), MercuryLighthouse_StartDjinnBattle(), and MogallForest_StartDjinnBattle().
Sets the scene and entrance that the field goes to next (gGameState.nextScene and nextEntrance).
About 30 scenes and the lobby reach it through Event_SetNextDestinationFar.
Definition at line 61 of file requests.c.
Referenced by AltinPeak_FightRoom1Beast(), AltinPeak_FightRoom3Beast(), AltinPeak_FightRoom5Beast(), AltinPeak_StartHydrosBattle(), Event_ConfrontSaturosAndMenardi(), Event_EnterGuardedRoom(), Event_FightFinalGuards(), Event_FightTret(), Event_FreeRooferAndConfrontThieves(), Event_ReachArena(), Event_ReachArena(), Event_ReachArena(), Event_SetNextDestination(), FightSandMonster(), LinkLobby_EnterBattle(), MercuryLighthouseAerie_ConfrontSaturos(), MercuryLighthouseEntrance_FightLizardMan(), MogallForest_KillerApeAttacks(), TolbiShipDeck_JumpIntoKrakenBattle(), TolbiShipInteriors_FightMonstersInHold(), TolbiSpring_OfferLuckyDice(), TolbiSpring_OfferLuckyWheels(), ValeHome_FightTravelers(), VaultInteriors_ConfrontThievesAgain(), and VenusLighthouseAerie_CombineSaturosAndMenardi().
Sets where the party wakes up after losing a battle (gGameState.defeatScene and defeatEntrance).
The scenes before scripted battles (Colosso, the Vault, Vale, the Aerie) and the lobby reach it through Event_SetDefeatDestinationFar.
Definition at line 70 of file requests.c.
Referenced by Event_ConfrontSaturosAndMenardi(), Event_FreeRooferAndConfrontThieves(), Event_ReachArena(), Event_ReachArena(), Event_ReachArena(), Event_SetDefeatDestination(), LinkLobby_EnterBattle(), ValeHome_FightTravelers(), VaultInteriors_ConfrontThievesAgain(), and VenusLighthouseAerie_CombineSaturosAndMenardi().
Makes the event leave for entrance entrance of scene scene: sets gGameState.scene and entrance and raises the exit request EXIT_NONE (999), so the scene loop leaves on its next pass.
Only Tolbi's spring reaches it, through Event_RequestDestinationFar.
Definition at line 79 of file requests.c.
Referenced by Event_RequestDestination(), TolbiSpring_OfferLuckyDice(), and TolbiSpring_OfferLuckyWheels().
| void BattleFx_SetQueuedSoundAndPlay | ( | s32 | soundId | ) |
Plays SE_298, then soundId (SE_289 for -1), and remembers soundId for BattleFx_PlayQueuedSound in the field work's queuedSound.
About 30 scenes reach it through the far alias, and the ground particles (weather.c) queue SE_170 with it.
Definition at line 90 of file requests.c.
Referenced by AltinPeak_StartSpitting(), BattleFx_SetQueuedSoundAndPlay(), FieldFx_StartGroundParticles(), Kalay_PrepareTunnel(), Kalay_StartWindowTransition(), Kalay_UpdateTunnelEmitters(), LamakanDesert_Initialize(), MercuryLighthouse_Initialize(), MercuryLighthouseEntrance_Initialize(), Scene_Initialize(), Scene_RunEntrySetup(), SolSanctumEntrance_RestoreInteriorState(), SolSanctumLunaSolRooms_Initialize(), SolSanctumLunaSolRooms_ShowFloatingEye(), SolSanctumStatue_Initialize(), Vale_Initialize(), ValeStorm_Initialize(), VenusLighthouse_AnimateEastTileWave(), VenusLighthouse_AnimatePairedTileWaves(), VenusLighthouse_AnimateWestTileWave(), Village_ApplyWaterLevel(), Village_ScareOffBeast(), and Xian_Initialize().
| void BattleFx_PlayQueuedSound | ( | void | ) |
Plays the sound BattleFx_SetQueuedSoundAndPlay remembered, if any.
Called by scenes, by the event runner (object/events.c), by setup.c and by an actor's landing (actor_commands.c).
Definition at line 102 of file requests.c.
Referenced by Actor_JumpDownLedge(), AltinPeak_FlipRoom3Switch(), AltinPeak_FlipRoom5Switch(), AltinPeak_FlipRoom6Switch(), AltinPeak_FlipRoom7Switch(), AltinPeak_RideLog(), BattleEffect_CleanupSceneObjects(), BattleFx_PlayQueuedSound(), Event_DoraSendsIsaacToThePlaza(), Event_IvanRejoins(), Event_MonkLetsPartyIntoGrotto(), Event_PushWestPillar(), Event_Rock11Falls(), Event_Rock12Falls(), Event_Rock13Falls(), Event_Rock14Falls(), Event_WatchBoulderFall(), Event_WitnessRiverRescue(), Field_SearchTile(), Kalay_PushTunnelBlock(), LamaTemple_RunHamasFarewell(), MercuryLighthouse_ArriveWithSparks(), MercuryLighthouse_PlyOpensWaterfallPassage(), SceneActor_MoveAndRedraw(), StagedActor_AdvancePair(), ValeStorm_MeetVillagerAtExit6(), ValeStorm_RunRiverSearch(), ValeStorm_ShowBoulderSweepingDownriver(), VenusLighthouse_ArriveThroughSparkPassage(), VenusLighthouse_LandWithRadialDust(), VenusLighthouse_PushAdjacentBlock(), Xian_StrikeTrainingTreeWithForce(), Xian_TalkToKungFuStudent(), and Xian_TalkToWaterCarrier().