2015-07-10 08:45:35 +00:00
|
|
|
BattleTowerBattleRoom_MapScriptHeader:
|
2015-07-21 04:02:21 +00:00
|
|
|
.MapTriggers:
|
2013-02-17 06:54:07 +00:00
|
|
|
db 2
|
|
|
|
|
|
|
|
; triggers
|
2015-11-02 19:37:02 +00:00
|
|
|
dw Script_EnterBattleRoom, 0
|
|
|
|
dw UnknownScript_0x9f420, 0
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-21 04:02:21 +00:00
|
|
|
.MapCallbacks:
|
2013-02-17 06:54:07 +00:00
|
|
|
db 0
|
|
|
|
|
2015-08-24 23:56:30 +00:00
|
|
|
Script_EnterBattleRoom: ; 0x9f419
|
2013-02-17 06:54:07 +00:00
|
|
|
disappear $2
|
2015-08-24 23:56:30 +00:00
|
|
|
priorityjump Script_BattleRoom
|
2013-02-17 06:54:07 +00:00
|
|
|
dotrigger $1
|
2015-07-10 08:45:35 +00:00
|
|
|
UnknownScript_0x9f420:
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-08-24 23:56:30 +00:00
|
|
|
Script_BattleRoom: ; 0x9f421
|
2015-07-22 06:49:18 +00:00
|
|
|
applymovement PLAYER, MovementData_0x9e58c
|
2015-08-24 23:56:30 +00:00
|
|
|
; beat all 7 opponents in a row
|
|
|
|
Script_BattleRoomLoop: ; 0x9f425
|
2013-02-17 06:54:07 +00:00
|
|
|
writebyte $2
|
2015-08-31 12:31:13 +00:00
|
|
|
special Function_LoadOpponentTrainerAndPokemonsWithOTSprite
|
2013-02-17 06:54:07 +00:00
|
|
|
appear $2
|
|
|
|
warpsound
|
|
|
|
waitbutton
|
|
|
|
applymovement $2, MovementData_0x9e592
|
|
|
|
loadfont
|
2013-12-02 19:18:03 +00:00
|
|
|
storetext 1
|
|
|
|
keeptextopen
|
|
|
|
loadmovesprites
|
2015-08-24 23:56:30 +00:00
|
|
|
special Function170215 ; calls predef startbattle
|
2015-07-20 07:51:52 +00:00
|
|
|
special FadeBlackBGMap
|
2013-12-02 19:18:03 +00:00
|
|
|
reloadmap
|
2013-02-17 06:54:07 +00:00
|
|
|
if_not_equal $0, UnknownScript_0x9f4c2
|
2015-09-01 04:26:31 +00:00
|
|
|
copybytetovar wNrOfBeatenBattleTowerTrainers ; wcf64
|
|
|
|
if_equal BATTLETOWER_NROFTRAINERS, Script_BeatenAllTrainers
|
2013-02-17 06:54:07 +00:00
|
|
|
applymovement $2, MovementData_0x9e597
|
|
|
|
warpsound
|
|
|
|
disappear $2
|
|
|
|
applymovement $3, MovementData_0x9e59c
|
2015-07-22 06:49:18 +00:00
|
|
|
applymovement PLAYER, MovementData_0x9e5a7
|
2013-02-17 06:54:07 +00:00
|
|
|
loadfont
|
2015-08-24 17:35:05 +00:00
|
|
|
writetext Text_YourPkmnWillBeHealedToFullHealth
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
loadmovesprites
|
2014-04-30 10:04:35 +00:00
|
|
|
playmusic MUSIC_HEAL
|
2015-07-20 07:51:52 +00:00
|
|
|
special FadeBlackBGMap
|
|
|
|
special LoadMapPalettes
|
2013-02-17 06:54:07 +00:00
|
|
|
pause 60
|
2015-07-20 07:51:52 +00:00
|
|
|
special FadeInBGMap
|
2015-02-11 23:03:42 +00:00
|
|
|
special RestartMapMusic
|
2013-02-17 06:54:07 +00:00
|
|
|
loadfont
|
2015-08-24 17:35:05 +00:00
|
|
|
writetext Text_NextUpOpponentNo
|
2013-02-17 06:54:07 +00:00
|
|
|
yesorno
|
2015-08-24 23:56:30 +00:00
|
|
|
iffalse Script_DontBattleNextOpponent
|
|
|
|
Script_ContinueAndBattleNextOpponent: ; 0x9f477
|
2013-02-17 06:54:07 +00:00
|
|
|
loadmovesprites
|
2015-07-22 06:49:18 +00:00
|
|
|
applymovement PLAYER, MovementData_0x9e5a9
|
2013-02-17 06:54:07 +00:00
|
|
|
applymovement $3, MovementData_0x9e5a1
|
2015-08-24 23:56:30 +00:00
|
|
|
jump Script_BattleRoomLoop
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-08-24 23:56:30 +00:00
|
|
|
Script_DontBattleNextOpponent: ; 0x9f483
|
2015-08-24 17:35:05 +00:00
|
|
|
writetext Text_SaveAndEndTheSession
|
2013-02-17 06:54:07 +00:00
|
|
|
yesorno
|
2015-08-24 23:56:30 +00:00
|
|
|
iffalse Script_DontSaveAndEndTheSession
|
2013-02-17 06:54:07 +00:00
|
|
|
writebyte $7
|
2015-02-11 23:03:42 +00:00
|
|
|
special Function170687
|
2013-02-17 06:54:07 +00:00
|
|
|
writebyte $1f
|
2015-02-11 23:03:42 +00:00
|
|
|
special Function170687
|
2013-02-17 06:54:07 +00:00
|
|
|
writebyte $3
|
2015-02-11 23:03:42 +00:00
|
|
|
special Function170687
|
2014-04-30 10:04:35 +00:00
|
|
|
playsound SFX_SAVE
|
2013-02-17 06:54:07 +00:00
|
|
|
waitbutton
|
2015-07-20 07:51:52 +00:00
|
|
|
special FadeBlackBGMap
|
2015-02-11 23:03:42 +00:00
|
|
|
special Reset
|
2015-08-24 23:56:30 +00:00
|
|
|
Script_DontSaveAndEndTheSession: ; 0x9f4a3
|
2015-08-24 17:35:05 +00:00
|
|
|
writetext Text_CancelYourBattleRoomChallenge
|
2013-02-17 06:54:07 +00:00
|
|
|
yesorno
|
2015-08-24 23:56:30 +00:00
|
|
|
iffalse Script_ContinueAndBattleNextOpponent
|
2013-02-17 06:54:07 +00:00
|
|
|
writebyte $4
|
2015-02-11 23:03:42 +00:00
|
|
|
special Function170687
|
2013-02-17 06:54:07 +00:00
|
|
|
writebyte $6
|
2015-02-11 23:03:42 +00:00
|
|
|
special Function170687
|
2013-02-17 06:54:07 +00:00
|
|
|
loadmovesprites
|
2015-07-20 07:51:52 +00:00
|
|
|
special FadeBlackBGMap
|
2015-07-23 16:59:19 +00:00
|
|
|
warpfacing $1, BATTLE_TOWER_1F, $7, $7
|
2013-02-17 06:54:07 +00:00
|
|
|
loadfont
|
2015-01-20 08:01:23 +00:00
|
|
|
jump UnknownScript_0x9e4b0
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:45:35 +00:00
|
|
|
UnknownScript_0x9f4c2:
|
2013-02-17 06:54:07 +00:00
|
|
|
pause 60
|
2015-07-20 22:59:26 +00:00
|
|
|
special Special_BattleTowerFade
|
2015-07-23 16:59:19 +00:00
|
|
|
warpfacing $1, BATTLE_TOWER_1F, $7, $7
|
2013-02-17 06:54:07 +00:00
|
|
|
writebyte $4
|
2015-02-11 23:03:42 +00:00
|
|
|
special Function170687
|
2013-02-17 06:54:07 +00:00
|
|
|
loadfont
|
2015-08-24 23:56:30 +00:00
|
|
|
writetext Text_ThanksForVisiting
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
loadmovesprites
|
|
|
|
end
|
|
|
|
|
2015-08-24 23:56:30 +00:00
|
|
|
Script_BeatenAllTrainers: ; 0x9f4d9
|
2013-02-17 06:54:07 +00:00
|
|
|
pause 60
|
2015-07-20 22:59:26 +00:00
|
|
|
special Special_BattleTowerFade
|
2015-07-23 16:59:19 +00:00
|
|
|
warpfacing $1, BATTLE_TOWER_1F, $7, $7
|
2015-07-10 08:45:35 +00:00
|
|
|
BattleTowerBattleRoomScript_0x9f4e4:
|
2013-02-17 06:54:07 +00:00
|
|
|
loadfont
|
2015-08-24 23:56:30 +00:00
|
|
|
writetext Text_CongratulationsYouveBeatenAllTheTrainers
|
|
|
|
jump Script_GivePlayerHisPrize
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:45:35 +00:00
|
|
|
UnknownScript_0x9f4eb:
|
2013-02-17 06:54:07 +00:00
|
|
|
writebyte $4
|
2015-02-11 23:03:42 +00:00
|
|
|
special Function170687
|
2013-02-17 06:54:07 +00:00
|
|
|
loadfont
|
2015-08-24 23:56:30 +00:00
|
|
|
writetext Text_TooMuchTimeElapsedNoRegister
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
loadmovesprites
|
|
|
|
end
|
|
|
|
|
2015-07-10 08:45:35 +00:00
|
|
|
UnknownScript_0x9f4f7:
|
2013-02-17 06:54:07 +00:00
|
|
|
writebyte $4
|
2015-02-11 23:03:42 +00:00
|
|
|
special Function170687
|
2013-02-17 06:54:07 +00:00
|
|
|
writebyte $6
|
2015-02-11 23:03:42 +00:00
|
|
|
special Function170687
|
2013-02-17 06:54:07 +00:00
|
|
|
loadfont
|
2015-08-24 23:56:30 +00:00
|
|
|
writetext Text_ThanksForVisiting
|
2015-08-24 17:35:05 +00:00
|
|
|
writetext Text_WeHopeToServeYouAgain
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
loadmovesprites
|
|
|
|
end
|
|
|
|
|
2013-05-01 17:29:45 +00:00
|
|
|
|
2015-07-10 08:45:35 +00:00
|
|
|
UnknownText_0x9f50b:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "You'll be returned"
|
|
|
|
line "after you SAVE."
|
|
|
|
done
|
2013-05-01 17:29:45 +00:00
|
|
|
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:45:35 +00:00
|
|
|
BattleTowerBattleRoom_MapEventHeader:
|
2013-02-17 06:54:07 +00:00
|
|
|
; filler
|
|
|
|
db 0, 0
|
|
|
|
|
2015-07-21 04:02:21 +00:00
|
|
|
.Warps:
|
2013-02-17 06:54:07 +00:00
|
|
|
db 2
|
2015-07-23 16:59:19 +00:00
|
|
|
warp_def $7, $3, 4, BATTLE_TOWER_HALLWAY
|
|
|
|
warp_def $7, $4, 4, BATTLE_TOWER_HALLWAY
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-21 04:02:21 +00:00
|
|
|
.XYTriggers:
|
2013-02-17 06:54:07 +00:00
|
|
|
db 0
|
|
|
|
|
2015-07-21 04:02:21 +00:00
|
|
|
.Signposts:
|
2013-02-17 06:54:07 +00:00
|
|
|
db 0
|
|
|
|
|
2015-07-21 04:02:21 +00:00
|
|
|
.PersonEvents:
|
2013-02-17 06:54:07 +00:00
|
|
|
db 2
|
2015-11-01 01:05:02 +00:00
|
|
|
person_event SPRITE_YOUNGSTER, 0, 4, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, 0, 0, ObjectEvent, EVENT_BATTLE_TOWER_BATTLE_ROOM_YOUNGSTER
|
|
|
|
person_event SPRITE_RECEPTIONIST, 6, 1, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, 0, 0, ObjectEvent, -1
|