diff options
Diffstat (limited to 'maps/BattleTowerBattleRoom.asm')
-rw-r--r-- | maps/BattleTowerBattleRoom.asm | 98 |
1 files changed, 51 insertions, 47 deletions
diff --git a/maps/BattleTowerBattleRoom.asm b/maps/BattleTowerBattleRoom.asm index 858b51fb0..8626a0021 100644 --- a/maps/BattleTowerBattleRoom.asm +++ b/maps/BattleTowerBattleRoom.asm @@ -1,138 +1,142 @@ +const_value set 2 + const BATTLETOWERBATTLEROOM_YOUNGSTER + const BATTLETOWERBATTLEROOM_RECEPTIONIST + BattleTowerBattleRoom_MapScriptHeader: .MapTriggers: db 2 ; triggers - dw Script_EnterBattleRoom, 0 - dw UnknownScript_0x9f420, 0 + dw .EnterBattleRoom, 0 + dw .DummyTrigger, 0 .MapCallbacks: db 0 -Script_EnterBattleRoom: ; 0x9f419 - disappear $2 +.EnterBattleRoom: ; 0x9f419 + disappear BATTLETOWERBATTLEROOM_YOUNGSTER priorityjump Script_BattleRoom dotrigger $1 -UnknownScript_0x9f420: +.DummyTrigger: end Script_BattleRoom: ; 0x9f421 - applymovement PLAYER, MovementData_0x9e58c + applymovement PLAYER, MovementData_BattleTowerBattleRoomPlayerWalksIn ; beat all 7 opponents in a row Script_BattleRoomLoop: ; 0x9f425 - writebyte $2 + writebyte BATTLETOWERBATTLEROOM_YOUNGSTER special Function_LoadOpponentTrainerAndPokemonsWithOTSprite - appear $2 + appear BATTLETOWERBATTLEROOM_YOUNGSTER warpsound - waitbutton - applymovement $2, MovementData_0x9e592 - loadfont + waitsfx + applymovement BATTLETOWERBATTLEROOM_YOUNGSTER, MovementData_BattleTowerBattleRoomOpponentWalksIn + opentext battletowertext 1 - keeptextopen - loadmovesprites + buttonsound + closetext special BattleTowerBattle ; calls predef startbattle special FadeOutPalettes reloadmap if_not_equal $0, Script_FailedBattleTowerChallenge copybytetovar wNrOfBeatenBattleTowerTrainers ; wcf64 if_equal BATTLETOWER_NROFTRAINERS, Script_BeatenAllTrainers - applymovement $2, MovementData_0x9e597 + applymovement BATTLETOWERBATTLEROOM_YOUNGSTER, MovementData_BattleTowerBattleRoomOpponentWalksOut warpsound - disappear $2 - applymovement $3, MovementData_0x9e59c - applymovement PLAYER, MovementData_0x9e5a7 - loadfont + disappear BATTLETOWERBATTLEROOM_YOUNGSTER + applymovement BATTLETOWERBATTLEROOM_RECEPTIONIST, MovementData_BattleTowerBattleRoomReceptionistWalksToPlayer + applymovement PLAYER, MovementData_BattleTowerBattleRoomPlayerTurnsToFaceReceptionist + opentext writetext Text_YourPkmnWillBeHealedToFullHealth + waitbutton closetext - loadmovesprites playmusic MUSIC_HEAL special FadeOutPalettes special LoadMapPalettes pause 60 special FadeInPalettes special RestartMapMusic - loadfont + opentext writetext Text_NextUpOpponentNo yesorno iffalse Script_DontBattleNextOpponent Script_ContinueAndBattleNextOpponent: ; 0x9f477 - loadmovesprites - applymovement PLAYER, MovementData_0x9e5a9 - applymovement $3, MovementData_0x9e5a1 + closetext + applymovement PLAYER, MovementData_BattleTowerBattleRoomPlayerTurnsToFaceNextOpponent + applymovement BATTLETOWERBATTLEROOM_RECEPTIONIST, MovementData_BattleTowerBattleRoomReceptionistWalksAway jump Script_BattleRoomLoop Script_DontBattleNextOpponent: ; 0x9f483 writetext Text_SaveAndEndTheSession yesorno iffalse Script_DontSaveAndEndTheSession - writebyte BATTLE_TOWER_ACTION_07 + writebyte BATTLETOWERACTION_SAVELEVELGROUP ; save level group special BattleTowerAction - writebyte BATTLE_TOWER_ACTION_1F + writebyte BATTLETOWERACTION_SAVEOPTIONS ; choose reward special BattleTowerAction - writebyte BATTLE_TOWER_ACTION_03 + writebyte BATTLETOWERACTION_SAVE_AND_QUIT ; quicksave special BattleTowerAction playsound SFX_SAVE - waitbutton + waitsfx special FadeOutPalettes special Reset Script_DontSaveAndEndTheSession: ; 0x9f4a3 writetext Text_CancelYourBattleRoomChallenge yesorno iffalse Script_ContinueAndBattleNextOpponent - writebyte BATTLE_TOWER_ACTION_04 + writebyte BATTLETOWERACTION_CHALLENGECANCELED special BattleTowerAction - writebyte BATTLE_TOWER_ACTION_06 + writebyte BATTLETOWERACTION_06 special BattleTowerAction - loadmovesprites + closetext special FadeOutPalettes warpfacing UP, BATTLE_TOWER_1F, $7, $7 - loadfont - jump UnknownScript_0x9e4b0 + opentext + jump Script_BattleTowerHopeToServeYouAgain Script_FailedBattleTowerChallenge: pause 60 special Special_BattleTowerFade warpfacing UP, BATTLE_TOWER_1F, $7, $7 - writebyte BATTLE_TOWER_ACTION_04 + writebyte BATTLETOWERACTION_CHALLENGECANCELED special BattleTowerAction - loadfont + opentext writetext Text_ThanksForVisiting + waitbutton closetext - loadmovesprites end Script_BeatenAllTrainers: ; 0x9f4d9 pause 60 special Special_BattleTowerFade warpfacing UP, BATTLE_TOWER_1F, $7, $7 -BattleTowerBattleRoomScript_0x9f4e4: - loadfont +Script_BeatenAllTrainers2: + opentext writetext Text_CongratulationsYouveBeatenAllTheTrainers jump Script_GivePlayerHisPrize -UnknownScript_0x9f4eb: - writebyte BATTLE_TOWER_ACTION_04 +UnreferencedScript_0x9f4eb: + writebyte BATTLETOWERACTION_CHALLENGECANCELED special BattleTowerAction - loadfont + opentext writetext Text_TooMuchTimeElapsedNoRegister + waitbutton closetext - loadmovesprites end -UnknownScript_0x9f4f7: - writebyte BATTLE_TOWER_ACTION_04 +UnreferencedScript_0x9f4f7: + writebyte BATTLETOWERACTION_CHALLENGECANCELED special BattleTowerAction - writebyte BATTLE_TOWER_ACTION_06 + writebyte BATTLETOWERACTION_06 special BattleTowerAction - loadfont + opentext writetext Text_ThanksForVisiting writetext Text_WeHopeToServeYouAgain + waitbutton closetext - loadmovesprites end -UnknownText_0x9f50b: +Text_ReturnedAfterSave_Mobile: text "You'll be returned" line "after you SAVE." done |