mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Battle Tower scripts and text labels
This commit is contained in:
parent
01792e00d2
commit
c7985e1f3c
@ -1,33 +1,39 @@
|
|||||||
const_def
|
const_def
|
||||||
const BATTLE_TOWER_ACTION_00
|
const BATTLETOWERACTION_00
|
||||||
const BATTLE_TOWER_ACTION_01
|
const BATTLETOWERACTION_01
|
||||||
const BATTLE_TOWER_ACTION_02
|
const BATTLETOWERACTION_02
|
||||||
const BATTLE_TOWER_ACTION_03
|
const BATTLETOWERACTION_03
|
||||||
const BATTLE_TOWER_ACTION_04
|
const BATTLETOWERACTION_CHALLENGECANCELED
|
||||||
const BATTLE_TOWER_ACTION_05
|
const BATTLETOWERACTION_05
|
||||||
const BATTLE_TOWER_ACTION_06
|
const BATTLETOWERACTION_06 ; reset stuff in SRAM bank 5
|
||||||
const BATTLE_TOWER_ACTION_07
|
const BATTLETOWERACTION_SAVELEVELGROUP
|
||||||
const BATTLE_TOWER_ACTION_08
|
const BATTLETOWERACTION_LOADLEVELGROUP
|
||||||
const BATTLE_TOWER_ACTION_09
|
const BATTLETOWERACTION_CHECKSAVEFILEISYOURS
|
||||||
const BATTLE_TOWER_ACTION_0A
|
const BATTLETOWERACTION_0A
|
||||||
const BATTLE_TOWER_ACTION_0B
|
const BATTLETOWERACTION_CHECKMOBILEEVENT
|
||||||
const BATTLE_TOWER_ACTION_0C
|
const BATTLETOWERACTION_0C ; more time stuff in SRAM bank 5
|
||||||
const BATTLE_TOWER_ACTION_0D
|
const BATTLETOWERACTION_0D ; more time stuff in SRAM bank 5
|
||||||
const BATTLE_TOWER_ACTION_0E
|
const BATTLETOWERACTION_0E ; egg ticket
|
||||||
const BATTLE_TOWER_ACTION_0F
|
const BATTLETOWERACTION_0F ; check w3_d090
|
||||||
const BATTLE_TOWER_ACTION_10
|
const BATTLETOWERACTION_10 ; jumptable based on 5:a800
|
||||||
const BATTLE_TOWER_ACTION_11
|
const BATTLETOWERACTION_11 ; store 0 in 5:aa8d
|
||||||
const BATTLE_TOWER_ACTION_12
|
const BATTLETOWERACTION_12 ; store 1 in 5:aa8d
|
||||||
const BATTLE_TOWER_ACTION_13
|
const BATTLETOWERACTION_13 ; check 5:aa8d
|
||||||
const BATTLE_TOWER_ACTION_14
|
const BATTLETOWERACTION_14 ; if save file is yours: bit 0, [sbe4f]
|
||||||
const BATTLE_TOWER_ACTION_15
|
const BATTLETOWERACTION_15 ; set 0, [sbe4f]
|
||||||
const BATTLE_TOWER_ACTION_16
|
const BATTLETOWERACTION_16 ; update time in SRAM bank 5
|
||||||
const BATTLE_TOWER_ACTION_17
|
const BATTLETOWERACTION_17 ; check time in SRAM bank 5
|
||||||
const BATTLE_TOWER_ACTION_18
|
const BATTLETOWERACTION_18 ; level check
|
||||||
const BATTLE_TOWER_ACTION_19
|
const BATTLETOWERACTION_19 ; ubers check
|
||||||
const BATTLE_TOWER_ACTION_1A
|
const BATTLETOWERACTION_RESETDATA ; clear data
|
||||||
const BATTLE_TOWER_ACTION_1B
|
const BATTLETOWERACTION_1B ; give reward
|
||||||
const BATTLE_TOWER_ACTION_1C
|
const BATTLETOWERACTION_1C ; set won challenge
|
||||||
const BATTLE_TOWER_ACTION_1D
|
const BATTLETOWERACTION_1D ; set received reward
|
||||||
const BATTLE_TOWER_ACTION_1E
|
const BATTLETOWERACTION_1E ; save options
|
||||||
const BATTLE_TOWER_ACTION_1F
|
const BATTLETOWERACTION_CHOOSEREWARD
|
||||||
|
|
||||||
|
BATTLETOWER_NO_CHALLENGE EQU 0
|
||||||
|
BATTLETOWER_SAVED_AND_LEFT EQU 1
|
||||||
|
BATTLETOWER_CHALLENGE_IN_PROGESS EQU 2
|
||||||
|
BATTLETOWER_WON_CHALLENGE EQU 3
|
||||||
|
BATTLETOWER_RECEIVED_REWARD EQU 4
|
||||||
|
@ -118,7 +118,7 @@ const_value SET -7
|
|||||||
const CREDITS_END
|
const CREDITS_END
|
||||||
|
|
||||||
|
|
||||||
Function109847:: ; 109847
|
Credits:: ; 109847
|
||||||
bit 6, b
|
bit 6, b
|
||||||
ld a, $0
|
ld a, $0
|
||||||
jr z, .asm_10984f
|
jr z, .asm_10984f
|
||||||
|
@ -389,14 +389,14 @@ Function4e881: ; 4e881
|
|||||||
ld [hSCY], a
|
ld [hSCY], a
|
||||||
ld [hSCX], a
|
ld [hSCX], a
|
||||||
call EnableLCD
|
call EnableLCD
|
||||||
ld hl, UnknownText_0x4e8bd
|
ld hl, .SavingRecordDontTurnOff
|
||||||
call PrintText
|
call PrintText
|
||||||
call Function3200
|
call Function3200
|
||||||
call SetPalettes
|
call SetPalettes
|
||||||
ret
|
ret
|
||||||
; 4e8bd
|
; 4e8bd
|
||||||
|
|
||||||
UnknownText_0x4e8bd: ; 0x4e8bd
|
.SavingRecordDontTurnOff: ; 0x4e8bd
|
||||||
; SAVING RECORD… DON'T TURN OFF!
|
; SAVING RECORD… DON'T TURN OFF!
|
||||||
text_jump UnknownText_0x1bd39e
|
text_jump UnknownText_0x1bd39e
|
||||||
db "@"
|
db "@"
|
||||||
@ -418,15 +418,15 @@ Function4e8c2: ; 4e8c2
|
|||||||
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ld hl, wd000
|
ld hl, wd000 ; UnknBGPals
|
||||||
ld c, $40
|
ld c, 4 * $10
|
||||||
.asm_4e8ee
|
.load_white_palettes
|
||||||
ld a, -1
|
ld a, (palred 31 + palgreen 31 + palblue 31) % $100
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
ld a, " "
|
ld a, (palred 31 + palgreen 31 + palblue 31) / $100
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
dec c
|
dec c
|
||||||
jr nz, .asm_4e8ee
|
jr nz, .load_white_palettes
|
||||||
xor a
|
xor a
|
||||||
ld [hSCY], a
|
ld [hSCY], a
|
||||||
ld [hSCX], a
|
ld [hSCX], a
|
||||||
|
@ -272,8 +272,8 @@ MapSetupCommands: ; 15440
|
|||||||
dba LoadMapAttributes ; 1a
|
dba LoadMapAttributes ; 1a
|
||||||
dba LoadMapAttributes_SkipPeople ; 1b
|
dba LoadMapAttributes_SkipPeople ; 1b
|
||||||
dba ClearBGPalettes ; 1c
|
dba ClearBGPalettes ; 1c
|
||||||
dba RotatePalettesRightPalettes ; 1d
|
dba FadeOutPalettes ; 1d
|
||||||
dba RotatePalettesLeftPalettes ; 1e
|
dba FadeInPalettes ; 1e
|
||||||
dba GetCoordOfUpperLeftCorner ; 1f
|
dba GetCoordOfUpperLeftCorner ; 1f
|
||||||
dba RestoreFacingAfterWarp ; 20
|
dba RestoreFacingAfterWarp ; 20
|
||||||
dba SpawnInFacingDown ; 21
|
dba SpawnInFacingDown ; 21
|
||||||
|
@ -182,7 +182,7 @@ AskOverwriteSaveFile: ; 14b89
|
|||||||
ld a, [wSaveFileExists]
|
ld a, [wSaveFileExists]
|
||||||
and a
|
and a
|
||||||
jr z, .erase
|
jr z, .erase
|
||||||
call Function14bcb
|
call CompareLoadedAndSavedPlayerID
|
||||||
jr z, .yoursavefile
|
jr z, .yoursavefile
|
||||||
ld hl, UnknownText_0x15297
|
ld hl, UnknownText_0x15297
|
||||||
call SaveTheGame_yesorno
|
call SaveTheGame_yesorno
|
||||||
@ -223,7 +223,7 @@ SaveTheGame_yesorno: ; 14baf
|
|||||||
ret
|
ret
|
||||||
; 14bcb
|
; 14bcb
|
||||||
|
|
||||||
Function14bcb: ; 14bcb
|
CompareLoadedAndSavedPlayerID: ; 14bcb
|
||||||
ld a, BANK(sPlayerData)
|
ld a, BANK(sPlayerData)
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
ld hl, sPlayerData + (PlayerID - wPlayerData)
|
ld hl, sPlayerData + (PlayerID - wPlayerData)
|
||||||
@ -291,7 +291,7 @@ SaveGameData_: ; 14c10
|
|||||||
ld a, BANK(sBattleTowerChallengeState)
|
ld a, BANK(sBattleTowerChallengeState)
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
ld a, [sBattleTowerChallengeState]
|
ld a, [sBattleTowerChallengeState]
|
||||||
cp $4
|
cp BATTLETOWER_RECEIVED_REWARD
|
||||||
jr nz, .ok
|
jr nz, .ok
|
||||||
xor a
|
xor a
|
||||||
ld [sBattleTowerChallengeState], a
|
ld [sBattleTowerChallengeState], a
|
||||||
@ -373,7 +373,7 @@ ErasePreviousSave: ; 14cbb
|
|||||||
call EraseLinkBattleStats
|
call EraseLinkBattleStats
|
||||||
call EraseMysteryGift
|
call EraseMysteryGift
|
||||||
call SaveData
|
call SaveData
|
||||||
call Function14d5c
|
call EraseBattleTowerStatus
|
||||||
ld a, BANK(sStackTop)
|
ld a, BANK(sStackTop)
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
xor a
|
xor a
|
||||||
@ -437,7 +437,7 @@ Unknown_14d2c: ; 14d2c
|
|||||||
db $11, $0c, $0c, $06, $06, $04
|
db $11, $0c, $0c, $06, $06, $04
|
||||||
; 14d5c
|
; 14d5c
|
||||||
|
|
||||||
Function14d5c: ; 14d5c
|
EraseBattleTowerStatus: ; 14d5c
|
||||||
ld a, BANK(sBattleTowerChallengeState)
|
ld a, BANK(sBattleTowerChallengeState)
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
xor a
|
xor a
|
||||||
@ -486,7 +486,7 @@ Function14d93: ; 14d93
|
|||||||
; 14da0
|
; 14da0
|
||||||
|
|
||||||
|
|
||||||
Function14da0: ; 14da0
|
HallOfFame_InitSaveIfNeeded: ; 14da0
|
||||||
ld a, [wSavedAtLeastOnce]
|
ld a, [wSavedAtLeastOnce]
|
||||||
and a
|
and a
|
||||||
ret nz
|
ret nz
|
||||||
@ -512,7 +512,7 @@ SaveOptions: ; 14dbb
|
|||||||
ld bc, OptionsEnd - Options
|
ld bc, OptionsEnd - Options
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld a, [Options]
|
ld a, [Options]
|
||||||
and $ef
|
and $ff ^ (1 << NO_TEXT_SCROLL)
|
||||||
ld [sOptions], a
|
ld [sOptions], a
|
||||||
jp CloseSRAM
|
jp CloseSRAM
|
||||||
; 14dd7
|
; 14dd7
|
||||||
@ -791,9 +791,9 @@ LoadPlayerData: ; 14fd7 (5:4fd7)
|
|||||||
ld a, BANK(sBattleTowerChallengeState)
|
ld a, BANK(sBattleTowerChallengeState)
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
ld a, [sBattleTowerChallengeState]
|
ld a, [sBattleTowerChallengeState]
|
||||||
cp $4
|
cp BATTLETOWER_RECEIVED_REWARD
|
||||||
jr nz, .not_4
|
jr nz, .not_4
|
||||||
ld a, $3
|
ld a, BATTLETOWER_WON_CHALLENGE
|
||||||
ld [sBattleTowerChallengeState], a
|
ld [sBattleTowerChallengeState], a
|
||||||
.not_4
|
.not_4
|
||||||
call CloseSRAM
|
call CloseSRAM
|
||||||
|
@ -66,11 +66,11 @@ SpecialsPointers:: ; c029
|
|||||||
add_special Special_CardFlip
|
add_special Special_CardFlip
|
||||||
add_special Special_DummyNonfunctionalGameCornerGame
|
add_special Special_DummyNonfunctionalGameCornerGame
|
||||||
add_special Special_ClearBGPalettesBufferScreen
|
add_special Special_ClearBGPalettesBufferScreen
|
||||||
add_special RotatePalettesRightPalettes
|
add_special FadeOutPalettes
|
||||||
add_special Special_BattleTowerFade
|
add_special Special_BattleTowerFade
|
||||||
add_special Special_FadeBlackQuickly
|
add_special Special_FadeBlackQuickly
|
||||||
add_special RotatePalettesLeftPalettes
|
add_special FadeInPalettes
|
||||||
add_special Special_RotatePalettesLeftQuickly
|
add_special Special_FadeInQuickly
|
||||||
add_special Special_ReloadSpritesNoPalettes
|
add_special Special_ReloadSpritesNoPalettes
|
||||||
add_special ClearBGPalettes
|
add_special ClearBGPalettes
|
||||||
add_special UpdateTimePals
|
add_special UpdateTimePals
|
||||||
|
@ -116,7 +116,7 @@ _UpdateTimePals:: ; 8c070
|
|||||||
ret
|
ret
|
||||||
; 8c079
|
; 8c079
|
||||||
|
|
||||||
RotatePalettesLeftPalettes:: ; 8c079
|
FadeInPalettes:: ; 8c079
|
||||||
ld c, $12
|
ld c, $12
|
||||||
call GetTimePalFade
|
call GetTimePalFade
|
||||||
ld b, $4
|
ld b, $4
|
||||||
@ -124,7 +124,7 @@ RotatePalettesLeftPalettes:: ; 8c079
|
|||||||
ret
|
ret
|
||||||
; 8c084
|
; 8c084
|
||||||
|
|
||||||
RotatePalettesRightPalettes:: ; 8c084
|
FadeOutPalettes:: ; 8c084
|
||||||
call Function8c0c1
|
call Function8c0c1
|
||||||
ld c, $9
|
ld c, $9
|
||||||
call GetTimePalFade
|
call GetTimePalFade
|
||||||
@ -150,7 +150,7 @@ endr
|
|||||||
ret
|
ret
|
||||||
; 8c0ab
|
; 8c0ab
|
||||||
|
|
||||||
Special_RotatePalettesLeftQuickly: ; 8c0ab
|
Special_FadeInQuickly: ; 8c0ab
|
||||||
ld c, $0
|
ld c, $0
|
||||||
call GetTimePalFade
|
call GetTimePalFade
|
||||||
ld b, $4
|
ld b, $4
|
||||||
|
@ -7,7 +7,7 @@ PlayWhirlpoolSound: ; 8c7d4
|
|||||||
; 8c7e1
|
; 8c7e1
|
||||||
|
|
||||||
BlindingFlash: ; 8c7e1
|
BlindingFlash: ; 8c7e1
|
||||||
callba RotatePalettesRightPalettes
|
callba FadeOutPalettes
|
||||||
ld hl, StatusFlags
|
ld hl, StatusFlags
|
||||||
set 2, [hl]
|
set 2, [hl]
|
||||||
callba Function8c0e5
|
callba Function8c0e5
|
||||||
@ -15,7 +15,7 @@ BlindingFlash: ; 8c7e1
|
|||||||
ld b, SCGB_09
|
ld b, SCGB_09
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
callba Function49409
|
callba Function49409
|
||||||
callba RotatePalettesLeftPalettes
|
callba FadeInPalettes
|
||||||
ret
|
ret
|
||||||
; 8c80a
|
; 8c80a
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
HallOfFame:: ; 0x8640e
|
HallOfFame:: ; 0x8640e
|
||||||
call Function8648e
|
call HallOfFame_FadeOutMusic
|
||||||
ld a, [StatusFlags]
|
ld a, [StatusFlags]
|
||||||
push af
|
push af
|
||||||
ld a, 1
|
ld a, 1
|
||||||
@ -12,7 +12,7 @@ HallOfFame:: ; 0x8640e
|
|||||||
ld hl, StatusFlags
|
ld hl, StatusFlags
|
||||||
set 6, [hl] ; hall of fame
|
set 6, [hl] ; hall of fame
|
||||||
|
|
||||||
callba Function14da0
|
callba HallOfFame_InitSaveIfNeeded
|
||||||
|
|
||||||
ld hl, wHallOfFameCount
|
ld hl, wHallOfFameCount
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
@ -26,10 +26,10 @@ HallOfFame:: ; 0x8640e
|
|||||||
|
|
||||||
xor a
|
xor a
|
||||||
ld [wc2cd], a
|
ld [wc2cd], a
|
||||||
call Function864c3
|
call AnimateHallOfFame
|
||||||
pop af
|
pop af
|
||||||
ld b, a
|
ld b, a
|
||||||
callba Function109847
|
callba Credits
|
||||||
ret
|
ret
|
||||||
; 0x86455
|
; 0x86455
|
||||||
|
|
||||||
@ -38,9 +38,9 @@ RedCredits:: ; 86455
|
|||||||
ld [MusicFadeIDLo], a
|
ld [MusicFadeIDLo], a
|
||||||
ld a, MUSIC_NONE / $100
|
ld a, MUSIC_NONE / $100
|
||||||
ld [MusicFadeIDHi], a
|
ld [MusicFadeIDHi], a
|
||||||
ld a, $a
|
ld a, 10
|
||||||
ld [MusicFade], a
|
ld [MusicFade], a
|
||||||
callba RotatePalettesRightPalettes
|
callba FadeOutPalettes
|
||||||
xor a
|
xor a
|
||||||
ld [VramState], a
|
ld [VramState], a
|
||||||
ld [hMapAnims], a
|
ld [hMapAnims], a
|
||||||
@ -52,18 +52,18 @@ RedCredits:: ; 86455
|
|||||||
ld [wSpawnAfterChampion], a
|
ld [wSpawnAfterChampion], a
|
||||||
ld a, [StatusFlags]
|
ld a, [StatusFlags]
|
||||||
ld b, a
|
ld b, a
|
||||||
callba Function109847
|
callba Credits
|
||||||
ret
|
ret
|
||||||
; 8648e
|
; 8648e
|
||||||
|
|
||||||
Function8648e: ; 8648e
|
HallOfFame_FadeOutMusic: ; 8648e
|
||||||
ld a, MUSIC_NONE % $100
|
ld a, MUSIC_NONE % $100
|
||||||
ld [MusicFadeIDLo], a
|
ld [MusicFadeIDLo], a
|
||||||
ld a, MUSIC_NONE / $100
|
ld a, MUSIC_NONE / $100
|
||||||
ld [MusicFadeIDHi], a
|
ld [MusicFadeIDHi], a
|
||||||
ld a, 10
|
ld a, 10
|
||||||
ld [MusicFade], a
|
ld [MusicFade], a
|
||||||
callba RotatePalettesRightPalettes
|
callba FadeOutPalettes
|
||||||
xor a
|
xor a
|
||||||
ld [VramState], a
|
ld [VramState], a
|
||||||
ld [hMapAnims], a
|
ld [hMapAnims], a
|
||||||
@ -72,7 +72,7 @@ Function8648e: ; 8648e
|
|||||||
jp DelayFrames
|
jp DelayFrames
|
||||||
; 864b4
|
; 864b4
|
||||||
|
|
||||||
Function864b4: ; 864b4
|
HallOfFame_PlayMusicDE: ; 864b4
|
||||||
push de
|
push de
|
||||||
ld de, MUSIC_NONE
|
ld de, MUSIC_NONE
|
||||||
call PlayMusic
|
call PlayMusic
|
||||||
@ -82,29 +82,29 @@ Function864b4: ; 864b4
|
|||||||
ret
|
ret
|
||||||
; 864c3
|
; 864c3
|
||||||
|
|
||||||
Function864c3: ; 864c3
|
AnimateHallOfFame: ; 864c3
|
||||||
xor a
|
xor a
|
||||||
ld [wJumptableIndex], a
|
ld [wJumptableIndex], a
|
||||||
call Function8671c
|
call LoadHOFTeam
|
||||||
jr c, .done
|
jr c, .done
|
||||||
ld de, SCREEN_WIDTH
|
ld de, MUSIC_HALL_OF_FAME
|
||||||
call Function864b4
|
call HallOfFame_PlayMusicDE
|
||||||
xor a
|
xor a
|
||||||
ld [wcf64], a
|
ld [wcf64], a
|
||||||
.loop
|
.loop
|
||||||
ld a, [wcf64]
|
ld a, [wcf64]
|
||||||
cp 6
|
cp PARTY_LENGTH
|
||||||
jr nc, .done
|
jr nc, .done
|
||||||
ld hl, wc608 + 1
|
ld hl, wHallOfFameTempMon1
|
||||||
ld bc, $10
|
ld bc, wHallOfFameTempMon1End - wHallOfFameTempMon1
|
||||||
call AddNTimes
|
call AddNTimes
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
cp -1
|
cp -1
|
||||||
jr z, .done
|
jr z, .done
|
||||||
push hl
|
push hl
|
||||||
call Function865b5
|
call AnimateHOFMonEntrance
|
||||||
pop hl
|
pop hl
|
||||||
call Function8650c
|
call .DisplayNewHallOfFamer
|
||||||
jr c, .done
|
jr c, .done
|
||||||
ld hl, wcf64
|
ld hl, wcf64
|
||||||
inc [hl]
|
inc [hl]
|
||||||
@ -120,9 +120,9 @@ Function864c3: ; 864c3
|
|||||||
ret
|
ret
|
||||||
; 8650c
|
; 8650c
|
||||||
|
|
||||||
Function8650c: ; 8650c
|
.DisplayNewHallOfFamer: ; 8650c
|
||||||
call Function86748
|
call DisplayHOFMon
|
||||||
ld de, String_8652c
|
ld de, .String_NewHallOfFamer
|
||||||
hlcoord 1, 2
|
hlcoord 1, 2
|
||||||
call PlaceString
|
call PlaceString
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
@ -135,7 +135,7 @@ Function8650c: ; 8650c
|
|||||||
ret
|
ret
|
||||||
; 8652c
|
; 8652c
|
||||||
|
|
||||||
String_8652c:
|
.String_NewHallOfFamer:
|
||||||
db "New Hall of Famer!@"
|
db "New Hall of Famer!@"
|
||||||
; 8653f
|
; 8653f
|
||||||
|
|
||||||
@ -227,7 +227,7 @@ GetHallOfFameParty: ; 8653f
|
|||||||
ret
|
ret
|
||||||
; 865b5
|
; 865b5
|
||||||
|
|
||||||
Function865b5: ; 865b5
|
AnimateHOFMonEntrance: ; 865b5
|
||||||
push hl
|
push hl
|
||||||
call ClearBGPalettes
|
call ClearBGPalettes
|
||||||
callba Function4e906
|
callba Function4e906
|
||||||
@ -265,7 +265,7 @@ endr
|
|||||||
ld b, SCGB_1A
|
ld b, SCGB_1A
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call SetPalettes
|
call SetPalettes
|
||||||
call Function86635
|
call HOF_SlideBackpic
|
||||||
xor a
|
xor a
|
||||||
ld [wc2c6], a
|
ld [wc2c6], a
|
||||||
hlcoord 0, 0
|
hlcoord 0, 0
|
||||||
@ -278,23 +278,23 @@ endr
|
|||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
ld [hSCY], a
|
ld [hSCY], a
|
||||||
call Function86643
|
call HOF_SlideFrontpic
|
||||||
ret
|
ret
|
||||||
; 86635
|
; 86635
|
||||||
|
|
||||||
Function86635: ; 86635
|
HOF_SlideBackpic:
|
||||||
.loop
|
.backpicloop
|
||||||
ld a, [hSCX]
|
ld a, [hSCX]
|
||||||
cp $70
|
cp $70
|
||||||
ret z
|
ret z
|
||||||
add $4
|
add $4
|
||||||
ld [hSCX], a
|
ld [hSCX], a
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
jr .loop
|
jr .backpicloop
|
||||||
; 86643
|
; 86643
|
||||||
|
|
||||||
Function86643: ; 86643
|
HOF_SlideFrontpic:
|
||||||
.loop
|
.frontpicloop
|
||||||
ld a, [hSCX]
|
ld a, [hSCX]
|
||||||
and a
|
and a
|
||||||
ret z
|
ret z
|
||||||
@ -303,7 +303,7 @@ rept 2
|
|||||||
endr
|
endr
|
||||||
ld [hSCX], a
|
ld [hSCX], a
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
jr .loop
|
jr .frontpicloop
|
||||||
; 86650
|
; 86650
|
||||||
|
|
||||||
_HallOfFamePC: ; 86650
|
_HallOfFamePC: ; 86650
|
||||||
@ -311,7 +311,7 @@ _HallOfFamePC: ; 86650
|
|||||||
xor a
|
xor a
|
||||||
ld [wJumptableIndex], a
|
ld [wJumptableIndex], a
|
||||||
.loop
|
.loop
|
||||||
call Function8671c
|
call LoadHOFTeam
|
||||||
ret c
|
ret c
|
||||||
call Function86665
|
call Function86665
|
||||||
ret c
|
ret c
|
||||||
@ -361,8 +361,8 @@ Function86692: ; 86692
|
|||||||
ld a, [wcf64]
|
ld a, [wcf64]
|
||||||
cp $6
|
cp $6
|
||||||
jr nc, .fail
|
jr nc, .fail
|
||||||
ld hl, wc608 + 1
|
ld hl, wHallOfFameTempMon1
|
||||||
ld bc, $10
|
ld bc, wHallOfFameTempMon1End - wHallOfFameTempMon1
|
||||||
call AddNTimes
|
call AddNTimes
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
cp $ff
|
cp $ff
|
||||||
@ -376,8 +376,8 @@ Function86692: ; 86692
|
|||||||
push hl
|
push hl
|
||||||
call ClearBGPalettes
|
call ClearBGPalettes
|
||||||
pop hl
|
pop hl
|
||||||
call Function86748
|
call DisplayHOFMon
|
||||||
ld a, [wc608]
|
ld a, [wHallOfFameTempWinCount]
|
||||||
cp 200 + 1
|
cp 200 + 1
|
||||||
jr c, .print_num_hof
|
jr c, .print_num_hof
|
||||||
ld de, String_866fc
|
ld de, String_866fc
|
||||||
@ -391,7 +391,7 @@ Function86692: ; 86692
|
|||||||
hlcoord 1, 2
|
hlcoord 1, 2
|
||||||
call PlaceString
|
call PlaceString
|
||||||
hlcoord 2, 2
|
hlcoord 2, 2
|
||||||
ld de, wc608
|
ld de, wHallOfFameTempWinCount
|
||||||
lb bc, 1, 3
|
lb bc, 1, 3
|
||||||
call PrintNum
|
call PrintNum
|
||||||
hlcoord 11, 2
|
hlcoord 11, 2
|
||||||
@ -423,10 +423,10 @@ String_8670c:
|
|||||||
; 8671c
|
; 8671c
|
||||||
|
|
||||||
|
|
||||||
Function8671c: ; 8671c
|
LoadHOFTeam: ; 8671c
|
||||||
ld a, [wJumptableIndex]
|
ld a, [wJumptableIndex]
|
||||||
cp NUM_HOF_TEAMS
|
cp NUM_HOF_TEAMS
|
||||||
jr nc, .full
|
jr nc, .invalid
|
||||||
ld hl, sHallOfFame
|
ld hl, sHallOfFame
|
||||||
ld bc, HOF_LENGTH
|
ld bc, HOF_LENGTH
|
||||||
call AddNTimes
|
call AddNTimes
|
||||||
@ -434,23 +434,23 @@ Function8671c: ; 8671c
|
|||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
and a
|
and a
|
||||||
jr z, .fail
|
jr z, .absent
|
||||||
ld de, wc608
|
ld de, wHallOfFameTemp
|
||||||
ld bc, HOF_LENGTH
|
ld bc, HOF_LENGTH
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
call CloseSRAM
|
call CloseSRAM
|
||||||
and a
|
and a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.fail
|
.absent
|
||||||
call CloseSRAM
|
call CloseSRAM
|
||||||
|
|
||||||
.full
|
.invalid
|
||||||
scf
|
scf
|
||||||
ret
|
ret
|
||||||
; 86748
|
; 86748
|
||||||
|
|
||||||
Function86748: ; 86748
|
DisplayHOFMon: ; 86748
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
@ -466,7 +466,7 @@ Function86748: ; 86748
|
|||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld [TempMonLevel], a
|
ld [TempMonLevel], a
|
||||||
ld de, StringBuffer2
|
ld de, StringBuffer2
|
||||||
ld bc, 10
|
ld bc, PKMN_NAME_LENGTH - 1
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld a, "@"
|
ld a, "@"
|
||||||
ld [StringBuffer2 + 10], a
|
ld [StringBuffer2 + 10], a
|
||||||
@ -564,7 +564,7 @@ Function86810: ; 86810
|
|||||||
ld b, SCGB_1A
|
ld b, SCGB_1A
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call SetPalettes
|
call SetPalettes
|
||||||
call Function86635
|
call HOF_SlideBackpic
|
||||||
xor a
|
xor a
|
||||||
ld [wc2c6], a
|
ld [wc2c6], a
|
||||||
hlcoord 0, 0
|
hlcoord 0, 0
|
||||||
@ -583,7 +583,7 @@ Function86810: ; 86810
|
|||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
ld [hSCY], a
|
ld [hSCY], a
|
||||||
call Function86643
|
call HOF_SlideFrontpic
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
hlcoord 0, 2
|
hlcoord 0, 2
|
||||||
|
@ -52,12 +52,12 @@ SacredAshScript: ; 0x50821
|
|||||||
special HealParty
|
special HealParty
|
||||||
reloadmappart
|
reloadmappart
|
||||||
playsound SFX_WARP_TO
|
playsound SFX_WARP_TO
|
||||||
special RotatePalettesRightPalettes
|
special FadeOutPalettes
|
||||||
special RotatePalettesLeftPalettes
|
special FadeInPalettes
|
||||||
special RotatePalettesRightPalettes
|
special FadeOutPalettes
|
||||||
special RotatePalettesLeftPalettes
|
special FadeInPalettes
|
||||||
special RotatePalettesRightPalettes
|
special FadeOutPalettes
|
||||||
special RotatePalettesLeftPalettes
|
special FadeInPalettes
|
||||||
waitsfx
|
waitsfx
|
||||||
writetext UnknownText_0x50845
|
writetext UnknownText_0x50845
|
||||||
playsound SFX_CAUGHT_MON
|
playsound SFX_CAUGHT_MON
|
||||||
|
@ -10,7 +10,7 @@ Script_OverworldWhiteout:: ; 0x124c8
|
|||||||
Script_Whiteout: ; 0x124ce
|
Script_Whiteout: ; 0x124ce
|
||||||
writetext .WhitedOutText
|
writetext .WhitedOutText
|
||||||
waitbutton
|
waitbutton
|
||||||
special RotatePalettesRightPalettes
|
special FadeOutPalettes
|
||||||
pause 40
|
pause 40
|
||||||
special HealParty
|
special HealParty
|
||||||
checkflag ENGINE_BUG_CONTEST_TIMER
|
checkflag ENGINE_BUG_CONTEST_TIMER
|
||||||
|
@ -2007,7 +2007,7 @@ FadeToMenu:: ; 2b29
|
|||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuDataHeader
|
||||||
callba RotatePalettesRightPalettes
|
callba FadeOutPalettes
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
call DisableSpriteUpdates
|
call DisableSpriteUpdates
|
||||||
ret
|
ret
|
||||||
@ -2034,7 +2034,7 @@ Function2b5c:: ; 2b5c
|
|||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
callba Function49409
|
callba Function49409
|
||||||
call Function3200
|
call Function3200
|
||||||
callba RotatePalettesLeftPalettes
|
callba FadeInPalettes
|
||||||
call EnableSpriteUpdates
|
call EnableSpriteUpdates
|
||||||
ret
|
ret
|
||||||
; 2b74
|
; 2b74
|
||||||
|
@ -234,3 +234,7 @@ hlbgcoord EQUS "bgcoord hl,"
|
|||||||
debgcoord EQUS "bgcoord de,"
|
debgcoord EQUS "bgcoord de,"
|
||||||
bcbgcoord EQUS "bgcoord bc,"
|
bcbgcoord EQUS "bgcoord bc,"
|
||||||
bgrows EQUS "* $20"
|
bgrows EQUS "* $20"
|
||||||
|
|
||||||
|
palred EQUS "$0400 *"
|
||||||
|
palgreen EQUS "$0020 *"
|
||||||
|
palblue EQUS "$0001 *"
|
||||||
|
@ -10,27 +10,27 @@ BattleTower1F_MapScriptHeader:
|
|||||||
db 0
|
db 0
|
||||||
|
|
||||||
.Trigger0:
|
.Trigger0:
|
||||||
writebyte BATTLE_TOWER_ACTION_09
|
writebyte BATTLETOWERACTION_CHECKSAVEFILEISYOURS
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
iffalse .SkipEverything
|
iffalse .SkipEverything
|
||||||
writebyte BATTLE_TOWER_ACTION_02
|
writebyte BATTLETOWERACTION_02 ; copybytetovar sBattleTowerChallengeState
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
if_equal $0, .SkipEverything
|
if_equal $0, .SkipEverything
|
||||||
if_equal $2, .priorityjump1
|
if_equal $2, .priorityjump1
|
||||||
if_equal $3, .SkipEverything
|
if_equal $3, .SkipEverything
|
||||||
if_equal $4, .SkipEverything
|
if_equal $4, .SkipEverything
|
||||||
loadfont
|
loadfont
|
||||||
writetext UnknownText_0x9f037
|
writetext Text_WeveBeenWaitingForYou
|
||||||
waitbutton
|
waitbutton
|
||||||
closetext
|
closetext
|
||||||
priorityjump UnknownScript_0x9e44e
|
priorityjump Script_ResumeBattleTowerChallenge
|
||||||
end
|
end
|
||||||
|
|
||||||
.priorityjump1:
|
.priorityjump1:
|
||||||
priorityjump BattleTower_LeftWithoutSaving
|
priorityjump BattleTower_LeftWithoutSaving
|
||||||
writebyte BATTLE_TOWER_ACTION_04
|
writebyte BATTLETOWERACTION_CHALLENGECANCELED
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
writebyte BATTLE_TOWER_ACTION_06
|
writebyte BATTLETOWERACTION_06
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
.SkipEverything:
|
.SkipEverything:
|
||||||
dotrigger $1
|
dotrigger $1
|
||||||
@ -49,13 +49,13 @@ UnknownScript_0x9e3e0:
|
|||||||
end
|
end
|
||||||
|
|
||||||
ReceptionistScript_0x9e3e2:
|
ReceptionistScript_0x9e3e2:
|
||||||
writebyte BATTLE_TOWER_ACTION_02
|
writebyte BATTLETOWERACTION_02 ; copybytetovar sBattleTowerChallengeState
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
if_equal $3, BattleTowerBattleRoomScript_0x9f4e4 ; maps/BattleTowerBattleRoom.asm
|
if_equal $3, Script_BeatenAllTrainers2 ; maps/BattleTowerBattleRoom.asm
|
||||||
loadfont
|
loadfont
|
||||||
writetext Text_BattleTowerWelcomesYou
|
writetext Text_BattleTowerWelcomesYou
|
||||||
keeptextopen
|
keeptextopen
|
||||||
writebyte BATTLE_TOWER_ACTION_00
|
writebyte BATTLETOWERACTION_00 ; if new save file: bit 1, [sbe4f]
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
if_not_equal $0, Script_Menu_ChallengeExplanationCancel
|
if_not_equal $0, Script_Menu_ChallengeExplanationCancel
|
||||||
jump Script_BattleTowerIntroductionYesNo
|
jump Script_BattleTowerIntroductionYesNo
|
||||||
@ -66,10 +66,10 @@ Script_Menu_ChallengeExplanationCancel: ; 0x9e3fc
|
|||||||
special Special_Menu_ChallengeExplanationCancel
|
special Special_Menu_ChallengeExplanationCancel
|
||||||
if_equal $1, Script_ChoseChallenge
|
if_equal $1, Script_ChoseChallenge
|
||||||
if_equal $2, Script_BattleTowerExplanation
|
if_equal $2, Script_BattleTowerExplanation
|
||||||
jump UnknownScript_0x9e4b0
|
jump Script_BattleTowerHopeToServeYouAgain
|
||||||
|
|
||||||
Script_ChoseChallenge: ; 0x9e40f
|
Script_ChoseChallenge: ; 0x9e40f
|
||||||
writebyte BATTLE_TOWER_ACTION_1A ; ResetBattleTowerTrainerSRAM
|
writebyte BATTLETOWERACTION_RESETDATA ; ResetBattleTowerTrainerSRAM
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
special SpecialCheckForBattleTowerRules
|
special SpecialCheckForBattleTowerRules
|
||||||
if_not_equal $0, Script_WaitButton
|
if_not_equal $0, Script_WaitButton
|
||||||
@ -80,50 +80,50 @@ Script_ChoseChallenge: ; 0x9e40f
|
|||||||
special Special_TryQuickSave
|
special Special_TryQuickSave
|
||||||
iffalse Script_Menu_ChallengeExplanationCancel
|
iffalse Script_Menu_ChallengeExplanationCancel
|
||||||
dotrigger $1
|
dotrigger $1
|
||||||
writebyte BATTLE_TOWER_ACTION_01
|
writebyte BATTLETOWERACTION_01 ; set 1, [sbe4f]
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
special Function1700b0
|
special Function1700b0
|
||||||
if_equal $a, Script_Menu_ChallengeExplanationCancel
|
if_equal $a, Script_Menu_ChallengeExplanationCancel
|
||||||
if_not_equal $0, UnknownScript_0x9e550
|
if_not_equal $0, UnknownScript_0x9e550
|
||||||
writebyte BATTLE_TOWER_ACTION_11
|
writebyte BATTLETOWERACTION_11
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
writetext Text_RightThisWayToYourBattleRoom
|
writetext Text_RightThisWayToYourBattleRoom
|
||||||
waitbutton
|
waitbutton
|
||||||
closetext
|
closetext
|
||||||
writebyte BATTLE_TOWER_ACTION_1E
|
writebyte BATTLETOWERACTION_1E
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
jump UnknownScript_0x9e454
|
jump Script_WalkToBattleTowerElevator
|
||||||
|
|
||||||
UnknownScript_0x9e44e:
|
Script_ResumeBattleTowerChallenge:
|
||||||
closetext
|
closetext
|
||||||
writebyte BATTLE_TOWER_ACTION_08
|
writebyte BATTLETOWERACTION_LOADLEVELGROUP ; load choice of level group
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
UnknownScript_0x9e454:
|
Script_WalkToBattleTowerElevator:
|
||||||
musicfadeout MUSIC_NONE, $8
|
musicfadeout MUSIC_NONE, 8
|
||||||
domaptrigger BATTLE_TOWER_BATTLE_ROOM, $0
|
domaptrigger BATTLE_TOWER_BATTLE_ROOM, $0
|
||||||
domaptrigger BATTLE_TOWER_ELEVATOR, $0
|
domaptrigger BATTLE_TOWER_ELEVATOR, $0
|
||||||
domaptrigger BATTLE_TOWER_HALLWAY, $0
|
domaptrigger BATTLE_TOWER_HALLWAY, $0
|
||||||
follow $2, PLAYER
|
follow $2, PLAYER
|
||||||
applymovement $2, MovementData_0x9e571
|
applymovement $2, MovementData_BattleTower1FWalkToElevator
|
||||||
writebyte BATTLE_TOWER_ACTION_0A
|
writebyte BATTLETOWERACTION_0A
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
warpsound
|
warpsound
|
||||||
disappear $2
|
disappear $2
|
||||||
stopfollow
|
stopfollow
|
||||||
applymovement PLAYER, MovementData_0x9e576
|
applymovement PLAYER, MovementData_BattleTowerHallwayPlayerEntersBattleRoom
|
||||||
warpcheck
|
warpcheck
|
||||||
end
|
end
|
||||||
|
|
||||||
Script_GivePlayerHisPrize: ; 0x9e47a
|
Script_GivePlayerHisPrize: ; 0x9e47a
|
||||||
writebyte BATTLE_TOWER_ACTION_1C
|
writebyte BATTLETOWERACTION_1C
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
writebyte BATTLE_TOWER_ACTION_1B
|
writebyte BATTLETOWERACTION_1B
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
if_equal POTION, Script_YourPackIsStuffedFull
|
if_equal POTION, Script_YourPackIsStuffedFull
|
||||||
itemtotext $0, $1
|
itemtotext $0, $1
|
||||||
giveitem ITEM_FROM_MEM, 5
|
giveitem ITEM_FROM_MEM, 5
|
||||||
writetext Text_PlayerGotFive
|
writetext Text_PlayerGotFive
|
||||||
writebyte BATTLE_TOWER_ACTION_1D
|
writebyte BATTLETOWERACTION_1D
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
closetext
|
closetext
|
||||||
end
|
end
|
||||||
@ -137,21 +137,21 @@ Script_YourPackIsStuffedFull: ; 0x9e498
|
|||||||
Script_BattleTowerIntroductionYesNo: ; 0x9e49e
|
Script_BattleTowerIntroductionYesNo: ; 0x9e49e
|
||||||
writetext Text_WouldYouLikeToHearAboutTheBattleTower
|
writetext Text_WouldYouLikeToHearAboutTheBattleTower
|
||||||
yesorno
|
yesorno
|
||||||
iffalse UnknownScript_0x9e4a8
|
iffalse Script_BattleTowerSkipExplanation
|
||||||
Script_BattleTowerExplanation: ; 0x9e4a5
|
Script_BattleTowerExplanation: ; 0x9e4a5
|
||||||
writetext Text_BattleTowerIntroduction_2
|
writetext Text_BattleTowerIntroduction_2
|
||||||
UnknownScript_0x9e4a8:
|
Script_BattleTowerSkipExplanation:
|
||||||
writebyte BATTLE_TOWER_ACTION_01
|
writebyte BATTLETOWERACTION_01
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
jump Script_Menu_ChallengeExplanationCancel
|
jump Script_Menu_ChallengeExplanationCancel
|
||||||
|
|
||||||
UnknownScript_0x9e4b0:
|
Script_BattleTowerHopeToServeYouAgain:
|
||||||
writetext Text_WeHopeToServeYouAgain
|
writetext Text_WeHopeToServeYouAgain
|
||||||
waitbutton
|
waitbutton
|
||||||
closetext
|
closetext
|
||||||
end
|
end
|
||||||
|
|
||||||
UnknownScript_0x9e4b6:
|
UnreferencedScript_0x9e4b6:
|
||||||
special Function17f53d
|
special Function17f53d
|
||||||
closetext
|
closetext
|
||||||
end
|
end
|
||||||
@ -162,13 +162,13 @@ Script_WaitButton: ; 0x9e4bb
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
UnknownScript_0x9e4be:
|
UnreferencedScript_0x9e4be:
|
||||||
writetext Text_SaveBeforeEnteringBattleRoom
|
writetext Text_SaveBeforeEnteringBattleRoom
|
||||||
yesorno
|
yesorno
|
||||||
iffalse Script_Menu_ChallengeExplanationCancel
|
iffalse Script_Menu_ChallengeExplanationCancel
|
||||||
special Special_TryQuickSave
|
special Special_TryQuickSave
|
||||||
iffalse Script_Menu_ChallengeExplanationCancel
|
iffalse Script_Menu_ChallengeExplanationCancel
|
||||||
writebyte BATTLE_TOWER_ACTION_01
|
writebyte BATTLETOWERACTION_01
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
special Function1700ba
|
special Function1700ba
|
||||||
if_equal $a, Script_Menu_ChallengeExplanationCancel
|
if_equal $a, Script_Menu_ChallengeExplanationCancel
|
||||||
@ -181,45 +181,45 @@ UnknownScript_0x9e4be:
|
|||||||
closetext
|
closetext
|
||||||
end
|
end
|
||||||
|
|
||||||
UnknownScript_0x9e4ea:
|
UnreferencedScript_0x9e4ea:
|
||||||
writebyte BATTLE_TOWER_ACTION_18
|
writebyte BATTLETOWERACTION_18
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
if_not_equal $0, Script_APkmnLevelExceeds
|
if_not_equal $0, Script_APkmnLevelExceeds
|
||||||
writebyte BATTLE_TOWER_ACTION_19
|
writebyte BATTLETOWERACTION_19
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
if_not_equal $0, Script_MayNotEnterABattleRoomUnderL70
|
if_not_equal $0, Script_MayNotEnterABattleRoomUnderL70
|
||||||
special SpecialCheckForBattleTowerRules
|
special SpecialCheckForBattleTowerRules
|
||||||
if_not_equal $0, Script_WaitButton
|
if_not_equal $0, Script_WaitButton
|
||||||
writebyte BATTLE_TOWER_ACTION_05
|
writebyte BATTLETOWERACTION_05
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
if_equal $0, UnknownScript_0x9e512
|
if_equal $0, .zero
|
||||||
writetext UnknownText_0x9ecb0
|
writetext Text_CantBeRegistered_PreviousRecordDeleted
|
||||||
jump UnknownScript_0x9e515
|
jump continue
|
||||||
|
|
||||||
UnknownScript_0x9e512:
|
.zero:
|
||||||
writetext UnknownText_0x9ec6d
|
writetext Text_CantBeRegistered
|
||||||
UnknownScript_0x9e515:
|
continue:
|
||||||
yesorno
|
yesorno
|
||||||
iffalse Script_Menu_ChallengeExplanationCancel
|
iffalse Script_Menu_ChallengeExplanationCancel
|
||||||
writetext UnknownText_0x9ef79
|
writetext Text_SaveBeforeReentry
|
||||||
yesorno
|
yesorno
|
||||||
iffalse Script_Menu_ChallengeExplanationCancel
|
iffalse Script_Menu_ChallengeExplanationCancel
|
||||||
dotrigger $0
|
dotrigger $0
|
||||||
special Special_TryQuickSave
|
special Special_TryQuickSave
|
||||||
iffalse Script_Menu_ChallengeExplanationCancel
|
iffalse Script_Menu_ChallengeExplanationCancel
|
||||||
dotrigger $1
|
dotrigger $1
|
||||||
writebyte BATTLE_TOWER_ACTION_06
|
writebyte BATTLETOWERACTION_06
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
writebyte BATTLE_TOWER_ACTION_12
|
writebyte BATTLETOWERACTION_12
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
writetext Text_RightThisWayToYourBattleRoom
|
writetext Text_RightThisWayToYourBattleRoom
|
||||||
waitbutton
|
waitbutton
|
||||||
jump UnknownScript_0x9e44e
|
jump Script_ResumeBattleTowerChallenge
|
||||||
|
|
||||||
UnknownScript_0x9e53b:
|
UnreferencedScript_0x9e53b:
|
||||||
writetext UnknownText_0x9f076
|
writetext Text_FiveDayBattleLimit_Mobile
|
||||||
waitbutton
|
waitbutton
|
||||||
jump UnknownScript_0x9e4b0
|
jump Script_BattleTowerHopeToServeYouAgain
|
||||||
|
|
||||||
Script_APkmnLevelExceeds: ; 0x9e542
|
Script_APkmnLevelExceeds: ; 0x9e542
|
||||||
writetext Text_APkmnLevelExceeds
|
writetext Text_APkmnLevelExceeds
|
||||||
@ -240,7 +240,7 @@ BattleTower_LeftWithoutSaving:
|
|||||||
loadfont
|
loadfont
|
||||||
writetext Text_BattleTower_LeftWithoutSaving
|
writetext Text_BattleTower_LeftWithoutSaving
|
||||||
waitbutton
|
waitbutton
|
||||||
jump UnknownScript_0x9e4b0
|
jump Script_BattleTowerHopeToServeYouAgain
|
||||||
|
|
||||||
YoungsterScript_0x9e55d:
|
YoungsterScript_0x9e55d:
|
||||||
faceplayer
|
faceplayer
|
||||||
@ -260,24 +260,24 @@ BugCatcherScript_0x9e56b:
|
|||||||
GrannyScript_0x9e56e:
|
GrannyScript_0x9e56e:
|
||||||
jumptextfaceplayer Text_BattleTowerGranny
|
jumptextfaceplayer Text_BattleTowerGranny
|
||||||
|
|
||||||
MovementData_0x9e571:
|
MovementData_BattleTower1FWalkToElevator:
|
||||||
step_up
|
step_up
|
||||||
step_up
|
step_up
|
||||||
step_up
|
step_up
|
||||||
step_up
|
step_up
|
||||||
step_up
|
step_up
|
||||||
MovementData_0x9e576:
|
MovementData_BattleTowerHallwayPlayerEntersBattleRoom:
|
||||||
step_up
|
step_up
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
MovementData_0x9e578:
|
MovementData_BattleTowerElevatorExitElevator:
|
||||||
step_down
|
step_down
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
MovementData_0x9e57a:
|
MovementData_BattleTowerHallwayWalkTo1020Room:
|
||||||
step_right
|
step_right
|
||||||
step_right
|
step_right
|
||||||
MovementData_0x9e57c:
|
MovementData_BattleTowerHallwayWalkTo3040Room:
|
||||||
step_right
|
step_right
|
||||||
step_right
|
step_right
|
||||||
step_up
|
step_up
|
||||||
@ -285,13 +285,13 @@ MovementData_0x9e57c:
|
|||||||
turn_head_left
|
turn_head_left
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
MovementData_0x9e582:
|
MovementData_BattleTowerHallwayWalkTo90100Room:
|
||||||
step_left
|
step_left
|
||||||
step_left
|
step_left
|
||||||
MovementData_0x9e584:
|
MovementData_BattleTowerHallwayWalkTo7080Room:
|
||||||
step_left
|
step_left
|
||||||
step_left
|
step_left
|
||||||
MovementData_0x9e586:
|
MovementData_BattleTowerHallwayWalkTo5060Room:
|
||||||
step_left
|
step_left
|
||||||
step_left
|
step_left
|
||||||
step_up
|
step_up
|
||||||
@ -299,7 +299,7 @@ MovementData_0x9e586:
|
|||||||
turn_head_right
|
turn_head_right
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
MovementData_0x9e58c:
|
MovementData_BattleTowerBattleRoomPlayerWalksIn:
|
||||||
step_up
|
step_up
|
||||||
step_up
|
step_up
|
||||||
step_up
|
step_up
|
||||||
@ -307,28 +307,28 @@ MovementData_0x9e58c:
|
|||||||
turn_head_right
|
turn_head_right
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
MovementData_0x9e592:
|
MovementData_BattleTowerBattleRoomOpponentWalksIn:
|
||||||
slow_step_down
|
slow_step_down
|
||||||
slow_step_down
|
slow_step_down
|
||||||
slow_step_down
|
slow_step_down
|
||||||
turn_head_left
|
turn_head_left
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
MovementData_0x9e597:
|
MovementData_BattleTowerBattleRoomOpponentWalksOut:
|
||||||
turn_head_up
|
turn_head_up
|
||||||
slow_step_up
|
slow_step_up
|
||||||
slow_step_up
|
slow_step_up
|
||||||
slow_step_up
|
slow_step_up
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
MovementData_0x9e59c:
|
MovementData_BattleTowerBattleRoomReceptionistWalksToPlayer:
|
||||||
slow_step_right
|
slow_step_right
|
||||||
slow_step_right
|
slow_step_right
|
||||||
slow_step_up
|
slow_step_up
|
||||||
slow_step_up
|
slow_step_up
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
MovementData_0x9e5a1:
|
MovementData_BattleTowerBattleRoomReceptionistWalksAway:
|
||||||
slow_step_down
|
slow_step_down
|
||||||
slow_step_down
|
slow_step_down
|
||||||
slow_step_left
|
slow_step_left
|
||||||
@ -336,11 +336,11 @@ MovementData_0x9e5a1:
|
|||||||
turn_head_right
|
turn_head_right
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
MovementData_0x9e5a7:
|
MovementData_BattleTowerBattleRoomPlayerTurnsToFaceReceptionist:
|
||||||
turn_head_down
|
turn_head_down
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
MovementData_0x9e5a9:
|
MovementData_BattleTowerBattleRoomPlayerTurnsToFaceNextOpponent:
|
||||||
turn_head_right
|
turn_head_right
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
@ -482,7 +482,7 @@ Text_ThanksForVisiting: ; 0x9ea49
|
|||||||
line "visiting!"
|
line "visiting!"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x9ea5f:
|
Text_BeatenAllTheTrainers_Mobile:
|
||||||
text "Congratulations!"
|
text "Congratulations!"
|
||||||
|
|
||||||
para "You've beaten all"
|
para "You've beaten all"
|
||||||
@ -512,7 +512,7 @@ Text_CongratulationsYouveBeatenAllTheTrainers: ; 0x9eaef
|
|||||||
para ""
|
para ""
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x9eb45:
|
Text_AskRegisterRecord_Mobile:
|
||||||
text "Would you like to"
|
text "Would you like to"
|
||||||
line "register your"
|
line "register your"
|
||||||
|
|
||||||
@ -560,7 +560,7 @@ Text_WouldYouLikeToHearAboutTheBattleTower: ; 0x9ec3d
|
|||||||
cont "BATTLE TOWER?"
|
cont "BATTLE TOWER?"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x9ec6d:
|
Text_CantBeRegistered:
|
||||||
text "Your record from"
|
text "Your record from"
|
||||||
line "the previous"
|
line "the previous"
|
||||||
|
|
||||||
@ -568,7 +568,7 @@ UnknownText_0x9ec6d:
|
|||||||
line "be registered. OK?"
|
line "be registered. OK?"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x9ecb0:
|
Text_CantBeRegistered_PreviousRecordDeleted:
|
||||||
text "Your record from"
|
text "Your record from"
|
||||||
line "the previous"
|
line "the previous"
|
||||||
|
|
||||||
@ -637,7 +637,7 @@ Text_NextUpOpponentNo: ; 0x9eebc
|
|||||||
text ". Ready?"
|
text ". Ready?"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x9eee0:
|
Text_SaveBeforeConnecting_Mobile:
|
||||||
text "Your session will"
|
text "Your session will"
|
||||||
line "be SAVED before"
|
line "be SAVED before"
|
||||||
|
|
||||||
@ -658,7 +658,7 @@ Text_SaveAndEndTheSession: ; 0x9ef5e
|
|||||||
line "session?"
|
line "session?"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x9ef79:
|
Text_SaveBeforeReentry:
|
||||||
text "Your record will"
|
text "Your record will"
|
||||||
line "be SAVED before"
|
line "be SAVED before"
|
||||||
|
|
||||||
@ -671,7 +671,7 @@ Text_CancelYourBattleRoomChallenge: ; 0x9efbf
|
|||||||
line "ROOM challenge?"
|
line "ROOM challenge?"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x9efe3:
|
Text_RegisterRecordOnFile_Mobile:
|
||||||
text "We have your"
|
text "We have your"
|
||||||
line "previous record on"
|
line "previous record on"
|
||||||
|
|
||||||
@ -680,7 +680,7 @@ UnknownText_0x9efe3:
|
|||||||
cont "it at the CENTER?"
|
cont "it at the CENTER?"
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x9f037:
|
Text_WeveBeenWaitingForYou:
|
||||||
text "We've been waiting"
|
text "We've been waiting"
|
||||||
line "for you. This way"
|
line "for you. This way"
|
||||||
|
|
||||||
@ -688,7 +688,7 @@ UnknownText_0x9f037:
|
|||||||
line "please."
|
line "please."
|
||||||
done
|
done
|
||||||
|
|
||||||
UnknownText_0x9f076:
|
Text_FiveDayBattleLimit_Mobile:
|
||||||
text "You may enter only"
|
text "You may enter only"
|
||||||
line "five BATTLE ROOMS"
|
line "five BATTLE ROOMS"
|
||||||
cont "each day."
|
cont "each day."
|
||||||
@ -713,7 +713,7 @@ Text_TooMuchTimeElapsedNoRegister: ; 0x9f0c1
|
|||||||
done
|
done
|
||||||
|
|
||||||
; a dupe?
|
; a dupe?
|
||||||
UnknownText_0x9f151:
|
Text_RegisterRecordTimedOut_Mobile:
|
||||||
text "Sorry, but it's"
|
text "Sorry, but it's"
|
||||||
line "not possible to"
|
line "not possible to"
|
||||||
|
|
||||||
|
@ -3,21 +3,21 @@ BattleTowerBattleRoom_MapScriptHeader:
|
|||||||
db 2
|
db 2
|
||||||
|
|
||||||
; triggers
|
; triggers
|
||||||
dw Script_EnterBattleRoom, 0
|
dw .EnterBattleRoom, 0
|
||||||
dw UnknownScript_0x9f420, 0
|
dw .DummyTrigger, 0
|
||||||
|
|
||||||
.MapCallbacks:
|
.MapCallbacks:
|
||||||
db 0
|
db 0
|
||||||
|
|
||||||
Script_EnterBattleRoom: ; 0x9f419
|
.EnterBattleRoom: ; 0x9f419
|
||||||
disappear $2
|
disappear $2
|
||||||
priorityjump Script_BattleRoom
|
priorityjump Script_BattleRoom
|
||||||
dotrigger $1
|
dotrigger $1
|
||||||
UnknownScript_0x9f420:
|
.DummyTrigger:
|
||||||
end
|
end
|
||||||
|
|
||||||
Script_BattleRoom: ; 0x9f421
|
Script_BattleRoom: ; 0x9f421
|
||||||
applymovement PLAYER, MovementData_0x9e58c
|
applymovement PLAYER, MovementData_BattleTowerBattleRoomPlayerWalksIn
|
||||||
; beat all 7 opponents in a row
|
; beat all 7 opponents in a row
|
||||||
Script_BattleRoomLoop: ; 0x9f425
|
Script_BattleRoomLoop: ; 0x9f425
|
||||||
writebyte $2
|
writebyte $2
|
||||||
@ -25,31 +25,31 @@ Script_BattleRoomLoop: ; 0x9f425
|
|||||||
appear $2
|
appear $2
|
||||||
warpsound
|
warpsound
|
||||||
waitsfx
|
waitsfx
|
||||||
applymovement $2, MovementData_0x9e592
|
applymovement $2, MovementData_BattleTowerBattleRoomOpponentWalksIn
|
||||||
loadfont
|
loadfont
|
||||||
battletowertext 1
|
battletowertext 1
|
||||||
keeptextopen
|
keeptextopen
|
||||||
closetext
|
closetext
|
||||||
special BattleTowerBattle ; calls predef startbattle
|
special BattleTowerBattle ; calls predef startbattle
|
||||||
special RotatePalettesRightPalettes
|
special FadeOutPalettes
|
||||||
reloadmap
|
reloadmap
|
||||||
if_not_equal $0, Script_FailedBattleTowerChallenge
|
if_not_equal $0, Script_FailedBattleTowerChallenge
|
||||||
copybytetovar wNrOfBeatenBattleTowerTrainers ; wcf64
|
copybytetovar wNrOfBeatenBattleTowerTrainers ; wcf64
|
||||||
if_equal BATTLETOWER_NROFTRAINERS, Script_BeatenAllTrainers
|
if_equal BATTLETOWER_NROFTRAINERS, Script_BeatenAllTrainers
|
||||||
applymovement $2, MovementData_0x9e597
|
applymovement $2, MovementData_BattleTowerBattleRoomOpponentWalksOut
|
||||||
warpsound
|
warpsound
|
||||||
disappear $2
|
disappear $2
|
||||||
applymovement $3, MovementData_0x9e59c
|
applymovement $3, MovementData_BattleTowerBattleRoomReceptionistWalksToPlayer
|
||||||
applymovement PLAYER, MovementData_0x9e5a7
|
applymovement PLAYER, MovementData_BattleTowerBattleRoomPlayerTurnsToFaceReceptionist
|
||||||
loadfont
|
loadfont
|
||||||
writetext Text_YourPkmnWillBeHealedToFullHealth
|
writetext Text_YourPkmnWillBeHealedToFullHealth
|
||||||
waitbutton
|
waitbutton
|
||||||
closetext
|
closetext
|
||||||
playmusic MUSIC_HEAL
|
playmusic MUSIC_HEAL
|
||||||
special RotatePalettesRightPalettes
|
special FadeOutPalettes
|
||||||
special LoadMapPalettes
|
special LoadMapPalettes
|
||||||
pause 60
|
pause 60
|
||||||
special RotatePalettesLeftPalettes
|
special FadeInPalettes
|
||||||
special RestartMapMusic
|
special RestartMapMusic
|
||||||
loadfont
|
loadfont
|
||||||
writetext Text_NextUpOpponentNo
|
writetext Text_NextUpOpponentNo
|
||||||
@ -57,43 +57,43 @@ Script_BattleRoomLoop: ; 0x9f425
|
|||||||
iffalse Script_DontBattleNextOpponent
|
iffalse Script_DontBattleNextOpponent
|
||||||
Script_ContinueAndBattleNextOpponent: ; 0x9f477
|
Script_ContinueAndBattleNextOpponent: ; 0x9f477
|
||||||
closetext
|
closetext
|
||||||
applymovement PLAYER, MovementData_0x9e5a9
|
applymovement PLAYER, MovementData_BattleTowerBattleRoomPlayerTurnsToFaceNextOpponent
|
||||||
applymovement $3, MovementData_0x9e5a1
|
applymovement $3, MovementData_BattleTowerBattleRoomReceptionistWalksAway
|
||||||
jump Script_BattleRoomLoop
|
jump Script_BattleRoomLoop
|
||||||
|
|
||||||
Script_DontBattleNextOpponent: ; 0x9f483
|
Script_DontBattleNextOpponent: ; 0x9f483
|
||||||
writetext Text_SaveAndEndTheSession
|
writetext Text_SaveAndEndTheSession
|
||||||
yesorno
|
yesorno
|
||||||
iffalse Script_DontSaveAndEndTheSession
|
iffalse Script_DontSaveAndEndTheSession
|
||||||
writebyte BATTLE_TOWER_ACTION_07
|
writebyte BATTLETOWERACTION_SAVELEVELGROUP ; save level group
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
writebyte BATTLE_TOWER_ACTION_1F
|
writebyte BATTLETOWERACTION_CHOOSEREWARD ; choose reward
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
writebyte BATTLE_TOWER_ACTION_03
|
writebyte BATTLETOWERACTION_03 ; quicksave
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
playsound SFX_SAVE
|
playsound SFX_SAVE
|
||||||
waitsfx
|
waitsfx
|
||||||
special RotatePalettesRightPalettes
|
special FadeOutPalettes
|
||||||
special Reset
|
special Reset
|
||||||
Script_DontSaveAndEndTheSession: ; 0x9f4a3
|
Script_DontSaveAndEndTheSession: ; 0x9f4a3
|
||||||
writetext Text_CancelYourBattleRoomChallenge
|
writetext Text_CancelYourBattleRoomChallenge
|
||||||
yesorno
|
yesorno
|
||||||
iffalse Script_ContinueAndBattleNextOpponent
|
iffalse Script_ContinueAndBattleNextOpponent
|
||||||
writebyte BATTLE_TOWER_ACTION_04
|
writebyte BATTLETOWERACTION_CHALLENGECANCELED
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
writebyte BATTLE_TOWER_ACTION_06
|
writebyte BATTLETOWERACTION_06
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
closetext
|
closetext
|
||||||
special RotatePalettesRightPalettes
|
special FadeOutPalettes
|
||||||
warpfacing UP, BATTLE_TOWER_1F, $7, $7
|
warpfacing UP, BATTLE_TOWER_1F, $7, $7
|
||||||
loadfont
|
loadfont
|
||||||
jump UnknownScript_0x9e4b0
|
jump Script_BattleTowerHopeToServeYouAgain
|
||||||
|
|
||||||
Script_FailedBattleTowerChallenge:
|
Script_FailedBattleTowerChallenge:
|
||||||
pause 60
|
pause 60
|
||||||
special Special_BattleTowerFade
|
special Special_BattleTowerFade
|
||||||
warpfacing UP, BATTLE_TOWER_1F, $7, $7
|
warpfacing UP, BATTLE_TOWER_1F, $7, $7
|
||||||
writebyte BATTLE_TOWER_ACTION_04
|
writebyte BATTLETOWERACTION_CHALLENGECANCELED
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
loadfont
|
loadfont
|
||||||
writetext Text_ThanksForVisiting
|
writetext Text_ThanksForVisiting
|
||||||
@ -105,13 +105,13 @@ Script_BeatenAllTrainers: ; 0x9f4d9
|
|||||||
pause 60
|
pause 60
|
||||||
special Special_BattleTowerFade
|
special Special_BattleTowerFade
|
||||||
warpfacing UP, BATTLE_TOWER_1F, $7, $7
|
warpfacing UP, BATTLE_TOWER_1F, $7, $7
|
||||||
BattleTowerBattleRoomScript_0x9f4e4:
|
Script_BeatenAllTrainers2:
|
||||||
loadfont
|
loadfont
|
||||||
writetext Text_CongratulationsYouveBeatenAllTheTrainers
|
writetext Text_CongratulationsYouveBeatenAllTheTrainers
|
||||||
jump Script_GivePlayerHisPrize
|
jump Script_GivePlayerHisPrize
|
||||||
|
|
||||||
UnknownScript_0x9f4eb:
|
UnreferencedScript_0x9f4eb:
|
||||||
writebyte BATTLE_TOWER_ACTION_04
|
writebyte BATTLETOWERACTION_CHALLENGECANCELED
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
loadfont
|
loadfont
|
||||||
writetext Text_TooMuchTimeElapsedNoRegister
|
writetext Text_TooMuchTimeElapsedNoRegister
|
||||||
@ -119,10 +119,10 @@ UnknownScript_0x9f4eb:
|
|||||||
closetext
|
closetext
|
||||||
end
|
end
|
||||||
|
|
||||||
UnknownScript_0x9f4f7:
|
UnreferencedScript_0x9f4f7:
|
||||||
writebyte BATTLE_TOWER_ACTION_04
|
writebyte BATTLETOWERACTION_CHALLENGECANCELED
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
writebyte BATTLE_TOWER_ACTION_06
|
writebyte BATTLETOWERACTION_06
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
loadfont
|
loadfont
|
||||||
writetext Text_ThanksForVisiting
|
writetext Text_ThanksForVisiting
|
||||||
@ -132,7 +132,7 @@ UnknownScript_0x9f4f7:
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
UnknownText_0x9f50b:
|
Text_ReturnedAfterSave_Mobile:
|
||||||
text "You'll be returned"
|
text "You'll be returned"
|
||||||
line "after you SAVE."
|
line "after you SAVE."
|
||||||
done
|
done
|
||||||
|
@ -3,43 +3,43 @@ BattleTowerElevator_MapScriptHeader:
|
|||||||
db 2
|
db 2
|
||||||
|
|
||||||
; triggers
|
; triggers
|
||||||
dw UnknownScript_0x9f562, 0
|
dw .Trigger0, 0
|
||||||
dw UnknownScript_0x9f567, 0
|
dw .Trigger1, 0
|
||||||
|
|
||||||
.MapCallbacks:
|
.MapCallbacks:
|
||||||
db 0
|
db 0
|
||||||
|
|
||||||
UnknownScript_0x9f562:
|
.Trigger0:
|
||||||
priorityjump UnknownScript_0x9f568
|
priorityjump .RideElevator
|
||||||
dotrigger $1
|
dotrigger $1
|
||||||
|
|
||||||
UnknownScript_0x9f567:
|
.Trigger1:
|
||||||
end
|
end
|
||||||
|
|
||||||
UnknownScript_0x9f568:
|
.RideElevator:
|
||||||
follow $2, PLAYER
|
follow $2, PLAYER
|
||||||
applymovement $2, MovementData_0x9f58f
|
applymovement $2, MovementData_BattleTowerElevatorReceptionistWalksIn
|
||||||
applymovement PLAYER, MovementData_0x9f592
|
applymovement PLAYER, MovementData_BattleTowerElevatorPlayerWalksIn
|
||||||
writebyte BATTLE_TOWER_ACTION_0A
|
writebyte BATTLETOWERACTION_0A
|
||||||
special BattleTowerAction
|
special BattleTowerAction
|
||||||
playsound SFX_ELEVATOR
|
playsound SFX_ELEVATOR
|
||||||
earthquake 60
|
earthquake 60
|
||||||
waitsfx
|
waitsfx
|
||||||
follow $2, PLAYER
|
follow $2, PLAYER
|
||||||
applymovement $2, MovementData_0x9e578
|
applymovement $2, MovementData_BattleTowerElevatorExitElevator
|
||||||
stopfollow
|
stopfollow
|
||||||
warpsound
|
warpsound
|
||||||
disappear $2
|
disappear $2
|
||||||
applymovement PLAYER, MovementData_0x9e578
|
applymovement PLAYER, MovementData_BattleTowerElevatorExitElevator
|
||||||
warpcheck
|
warpcheck
|
||||||
end
|
end
|
||||||
|
|
||||||
MovementData_0x9f58f:
|
MovementData_BattleTowerElevatorReceptionistWalksIn:
|
||||||
step_right
|
step_right
|
||||||
turn_head_down
|
turn_head_down
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
MovementData_0x9f592:
|
MovementData_BattleTowerElevatorPlayerWalksIn:
|
||||||
turn_head_down
|
turn_head_down
|
||||||
step_end
|
step_end
|
||||||
|
|
||||||
@ -60,4 +60,4 @@ BattleTowerElevator_MapEventHeader:
|
|||||||
|
|
||||||
.PersonEvents:
|
.PersonEvents:
|
||||||
db 1
|
db 1
|
||||||
person_event SPRITE_RECEPTIONIST, 2, 1, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, MovementData_0x9f58f, -1
|
person_event SPRITE_RECEPTIONIST, 2, 1, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, MovementData_BattleTowerElevatorReceptionistWalksIn, -1
|
||||||
|
@ -47,23 +47,23 @@ BattleTowerHallway_MapScriptHeader:
|
|||||||
if_equal 8, .L70L80
|
if_equal 8, .L70L80
|
||||||
if_equal 9, .L90L100
|
if_equal 9, .L90L100
|
||||||
if_equal 10, .L90L100
|
if_equal 10, .L90L100
|
||||||
applymovement $2, MovementData_0x9e57a
|
applymovement $2, MovementData_BattleTowerHallwayWalkTo1020Room
|
||||||
jump .EnterBattleRoom
|
jump .EnterBattleRoom
|
||||||
|
|
||||||
.L30L40: ; 0x9f603
|
.L30L40: ; 0x9f603
|
||||||
applymovement $2, MovementData_0x9e57c
|
applymovement $2, MovementData_BattleTowerHallwayWalkTo3040Room
|
||||||
jump .EnterBattleRoom
|
jump .EnterBattleRoom
|
||||||
|
|
||||||
.L50L60: ; 0x9f60a
|
.L50L60: ; 0x9f60a
|
||||||
applymovement $2, MovementData_0x9e586
|
applymovement $2, MovementData_BattleTowerHallwayWalkTo5060Room
|
||||||
jump .EnterBattleRoom
|
jump .EnterBattleRoom
|
||||||
|
|
||||||
.L70L80: ; 0x9f611
|
.L70L80: ; 0x9f611
|
||||||
applymovement $2, MovementData_0x9e584
|
applymovement $2, MovementData_BattleTowerHallwayWalkTo7080Room
|
||||||
jump .EnterBattleRoom
|
jump .EnterBattleRoom
|
||||||
|
|
||||||
.L90L100: ; 0x9f618
|
.L90L100: ; 0x9f618
|
||||||
applymovement $2, MovementData_0x9e582
|
applymovement $2, MovementData_BattleTowerHallwayWalkTo90100Room
|
||||||
jump .EnterBattleRoom
|
jump .EnterBattleRoom
|
||||||
|
|
||||||
.EnterBattleRoom: ; 0x9f61f
|
.EnterBattleRoom: ; 0x9f61f
|
||||||
@ -73,7 +73,7 @@ BattleTowerHallway_MapScriptHeader:
|
|||||||
waitbutton
|
waitbutton
|
||||||
closetext
|
closetext
|
||||||
stopfollow
|
stopfollow
|
||||||
applymovement PLAYER, MovementData_0x9e576
|
applymovement PLAYER, MovementData_BattleTowerHallwayPlayerEntersBattleRoom
|
||||||
warpcheck
|
warpcheck
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -30,10 +30,10 @@ UnknownScript_0x19b0de:
|
|||||||
writetext UnknownText_0x19b266
|
writetext UnknownText_0x19b266
|
||||||
waitbutton
|
waitbutton
|
||||||
closetext
|
closetext
|
||||||
special RotatePalettesRightPalettes
|
special FadeOutPalettes
|
||||||
playmusic MUSIC_HEAL
|
playmusic MUSIC_HEAL
|
||||||
pause 60
|
pause 60
|
||||||
special RotatePalettesLeftPalettes
|
special FadeInPalettes
|
||||||
special RestartMapMusic
|
special RestartMapMusic
|
||||||
loadfont
|
loadfont
|
||||||
writetext UnknownText_0x19b296
|
writetext UnknownText_0x19b296
|
||||||
|
@ -84,7 +84,7 @@ UnknownScript_0x99dc6:
|
|||||||
follow PLAYER, $8
|
follow PLAYER, $8
|
||||||
applymovement PLAYER, MovementData_0x99e5f
|
applymovement PLAYER, MovementData_0x99e5f
|
||||||
stopfollow
|
stopfollow
|
||||||
special RotatePalettesRightPalettes
|
special FadeOutPalettes
|
||||||
playsound SFX_ENTER_DOOR
|
playsound SFX_ENTER_DOOR
|
||||||
waitsfx
|
waitsfx
|
||||||
warp ECRUTEAK_CITY, $6, $1b
|
warp ECRUTEAK_CITY, $6, $1b
|
||||||
|
@ -64,7 +64,7 @@ SailorScript_0x75160:
|
|||||||
closetext
|
closetext
|
||||||
scall .LetThePlayerOut
|
scall .LetThePlayerOut
|
||||||
playsound SFX_EXIT_BUILDING
|
playsound SFX_EXIT_BUILDING
|
||||||
special RotatePalettesRightPalettes
|
special FadeOutPalettes
|
||||||
waitsfx
|
waitsfx
|
||||||
setevent EVENT_VERMILION_PORT_SAILOR_AT_GANGWAY
|
setevent EVENT_VERMILION_PORT_SAILOR_AT_GANGWAY
|
||||||
domaptrigger VERMILION_PORT, $1
|
domaptrigger VERMILION_PORT, $1
|
||||||
@ -77,7 +77,7 @@ SailorScript_0x75160:
|
|||||||
closetext
|
closetext
|
||||||
scall .LetThePlayerOut
|
scall .LetThePlayerOut
|
||||||
playsound SFX_EXIT_BUILDING
|
playsound SFX_EXIT_BUILDING
|
||||||
special RotatePalettesRightPalettes
|
special FadeOutPalettes
|
||||||
waitsfx
|
waitsfx
|
||||||
setevent EVENT_OLIVINE_PORT_SAILOR_AT_GANGWAY
|
setevent EVENT_OLIVINE_PORT_SAILOR_AT_GANGWAY
|
||||||
domaptrigger OLIVINE_PORT, $1
|
domaptrigger OLIVINE_PORT, $1
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user