Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- === Leave Hooks near bottom, otherwise it can't detect the functions that will be declared afterwards
- -- always on
- local PersistentSceneHooks = {
- { 0xC5050A, switchingBGMTrack },
- { 0x43050A, switchingJingleTrack },
- { 0xC20EE4, lockeAlwaysDualWield }, -- needed in combat, menu, field (cutscene auto-optimize)
- }
- local SceneHooks = {
- [GameScenes.Cinematic] = {
- },
- [GameScenes.Field] = {
- { 0xC081BE, readText }, -- overrides printing character
- { 0xC031BE, function() setFieldBank(nil) end }, -- closing dialog box
- { 0xC07FC7, function() setFieldBank(1) end }, -- reading from Field.bank 1
- { 0xC0EE3B, function() setFieldBank(2) end }, -- reading from Field.bank 2
- { 0xC0A3B1, updateDialogIndexAcc }, -- some more bank 1 stuff i dunno
- { 0xC0A3F8, updateDialogIndexAcc }, -- bank 1
- { 0xC0FF27, updateDialogIndexAcc }, -- bank 2
- { 0xC08014, updateDialogIndexMapHeader }, -- reading map name for header
- { 0xC08034, centerMapName },
- { 0xC08453, fixEndOfLineChoppedOff },
- { 0xC04E24, checkPermaSprint, allowToggleSprint },
- { 0xC04E31, adjustPermaSprint, allowToggleSprint },
- },
- [GameScenes.Battle] = {
- { 0xC16698, fixBattleEidolonName }, -- overrides the eidolon text string as its being read
- { 0xC196F9, handleEnemySpecialName },
- { 0xC19674, configBattleText }, -- (event) display text at bottom
- { 0xC196BF, configBattleText }, -- (event) display text at top as part of bottom event (e.g. "Blizzard Fist!")
- { 0xC197F2, function() startingToLoadTopBattleDialog(1) end }, -- enemy dialog
- { 0xC198B8, function() startingToLoadTopBattleDialog(2) end }, -- system message
- { 0x4E0B3A, battleFixTopItemName }, -- Used if you don't have an item (Quantity -> 1)
- { 0x4E0BBB, battleFixTopItemName }, -- Used if you already have an item (Quantity -> 2+)
- -- memory.registerexec(0x4E0ACE,battleFixTopItemName) -- ? unknown
- { 0xC1982B, concludeTopBattleDialog }, -- enemy dialog
- { 0xC1981E, concludeTopBattleDialog }, -- system message
- { 0xC219BF, handleSpell }, -- mmmmmmagic
- { 0xC21DD1, handleSpell }, -- sketch and other stuff
- { 0xC23691, handleSpell }, -- gp rain
- { 0x476789, function() Combat.isBless = true end }, -- bless (it is read as Magic:Psychic Waves by game, so we'll do a little tweak here..)
- -- memory.registerexec(0xc23300,function() handleEnemySpecial() end) -- enemy-unique custom moves --
- { 0xC196AD, function() Combat.line = nil end }, -- (event) close text at bottom? (called a LOT on close. could be closing box anim)
- { 0xc15DCA, overrideBattleText }, -- immediately checks for 0 and bails if it is x_x
- { 0xC15FFC, overrideBattleText }, -- processing for item multibyte / compare func, can be a'd?
- { 0xC15E90, overrideBattleText }, -- processing for character multibyte / may be a'd at /5E95?
- { 0xC15F9A, overrideBattleText }, -- processing for spell multibyte / compare func, can be a'd?
- { 0xC15EBC, updateBattleChar }, -- character
- { 0xC15F16, updateBattleChar }, -- attack [special attacks skean and up]
- { 0xC15FC1, updateBattleChar }, -- esper
- { 0xC15FEB, updateBattleChar }, -- spell
- { 0xC16023, updateBattleChar }, -- item
- { 0xC16221, combatVWFHandler },
- { 0x4E01BD, fix256left },
- { 0x4E01C2, fix256right },
- { 0xC184D3, displayBattleRageEffect, displayBattleRage },
- { 0xC18599, displayBattleDanceEffect, displayBattleDance },
- { 0xC2BD5D, overrideDefaultBattleMusic, allowSpecifyBattleBGM or fixColiseumMusic },
- { 0xC20CE1, lockePartialDefensePiercing },
- { 0xC16D54, cheatStealPreview, allowCheats and cheatEnableStealPreview }, -- idk somewhere in the 'hover over a monster' code. i wasn't super picky
- },
- [GameScenes.Menu] = {
- { 0xC301CA, doItemDesc },
- { 0xC3909A, fixItemElementText },
- { 0xC3B0C6, incIaidoCounter },
- { 0xC3B0CC, fixMenuIaidoNames },
- { 0xC35D9D, storeItemID },
- { 0xC35DA2, handleGuiItemDescription },
- { 0xC38A84, doColiseumBetUI }, -- part of the 'display number' code, technically shouldn't display number in this situation but whatever.
- { 0xC366E9, writeAchievementStatus },
- { 0xC3BE42, displayRandomSongHint, allowRandomBGMPlayer or allowSpecifyBattleBGM },
- { 0xC3BE4A, randomSong, allowRandomBGMPlayer },
- { 0xC0DE7D, fix256Sort },
- { 0xC32366, drawToggleSprintOption },
- { 0xC3968E, putEidolonInReviewMenu, displayEidolonOnAllEquipmentMenu }, -- 0xC3968B wipes BG3 so we have to do it afterwards
- { 0xC3A828, sortRelicsToEquipByName, sortRelicsByName },
- { 0xC3A090, sortGearToEquipWeaponsFirst, sortGearByWeaponsFirst },
- { 0xC35BB0, displayEidolonProgress, showEidolonProgress }, -- when about to end esper name string
- { 0xC35BC7, displayEidolonProgress, showEidolonProgress }, -- when about to end no-esper name string
- { 0xC30CEF, mainMenuEidolonProgress, showEidolonProgressOnMainMenu }, -- immediately after lv draw function
- { 0xC326F8, itemSortFavoritesFirst, allowItemFavorites },
- { 0xC322A4, statusMenuSustain }, -- sustain for status window ("B" check) - balance tweaks
- },
- [GameScenes.WorldFlight] = {
- { 0xEE6EEB, cheatDeathgazeFinder, allowCheats and cheatEnableShowDeathgaze } -- called during the 'pressing A?' check of the dg check airship flight code
- },
- [GameScenes.World] = {
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement