pokeemerald/data/maps/BattleFrontier_BattlePalaceBattleRoom/scripts.inc

651 lines
23 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePalaceBattleRoom_MapScripts:: @ 824F815
2019-02-22 08:28:32 +01:00
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattlePalaceBattleRoom_MapScript1_24F825
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePalaceBattleRoom_MapScript2_24F861
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePalaceBattleRoom_MapScript2_24FE34
2017-11-10 02:21:31 +01:00
.byte 0
BattleFrontier_BattlePalaceBattleRoom_MapScript1_24F825: @ 824F825
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_SET_FRONTIER_TRAINERS
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
call BattleFrontier_BattlePalaceBattleRoom_EventScript_24F833
end
BattleFrontier_BattlePalaceBattleRoom_EventScript_24F833:: @ 824F833
checkplayergender
compare VAR_RESULT, MALE
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24F84B
compare VAR_RESULT, FEMALE
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24F856
2017-11-10 02:21:31 +01:00
return
BattleFrontier_BattlePalaceBattleRoom_EventScript_24F84B:: @ 824F84B
2018-12-25 02:12:51 +01:00
setvar VAR_OBJ_GFX_ID_1, EVENT_OBJ_GFX_RIVAL_BRENDAN_NORMAL
setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_RIVAL_BRENDAN_NORMAL
2017-11-10 02:21:31 +01:00
return
BattleFrontier_BattlePalaceBattleRoom_EventScript_24F856:: @ 824F856
2018-12-25 02:12:51 +01:00
setvar VAR_OBJ_GFX_ID_1, EVENT_OBJ_GFX_RIVAL_MAY_NORMAL
setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_RIVAL_MAY_NORMAL
2017-11-10 02:21:31 +01:00
return
BattleFrontier_BattlePalaceBattleRoom_MapScript2_24F861: @ 824F861
2018-05-19 18:02:43 +02:00
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePalaceBattleRoom_EventScript_24F86B
2017-11-10 02:21:31 +01:00
.2byte 0
BattleFrontier_BattlePalaceBattleRoom_EventScript_24F86B:: @ 824F86B
showobjectat 1, MAP_BATTLE_FRONTIER_BATTLE_PALACE_BATTLE_ROOM
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_1
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 2
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24F8B5
2017-11-10 02:21:31 +01:00
applymovement 1, BattleFrontier_BattlePalaceBattleRoom_Movement_24FE9B
waitmovement 0
applymovement 3, BattleFrontier_BattlePalaceBattleRoom_Movement_24FEAC
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_2, 1
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_2
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 6
setvar VAR_0x8006, 1
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePalaceBattleRoom_EventScript_24F98A
BattleFrontier_BattlePalaceBattleRoom_EventScript_24F8B5:: @ 824F8B5
applymovement 1, BattleFrontier_BattlePalaceBattleRoom_Movement_24FE92
waitmovement 0
BattleFrontier_BattlePalaceBattleRoom_EventScript_24F8BF:: @ 824F8BF
setvar VAR_0x8004, BATTLE_TOWER_FUNC_CHOOSE_TRAINER
special CallBattleTowerFunc
2017-11-10 02:21:31 +01:00
addobject 2
applymovement 2, BattleFrontier_BattlePalaceBattleRoom_Movement_24FEA1
waitmovement 0
setvar VAR_0x8004, 5
2018-11-12 15:41:19 +01:00
special CallBattlePalaceFunction
msgbox gStringVar4, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
waitmessage
call BattleFrontier_BattlePalaceBattleRoom_EventScript_24FDF7
switch VAR_RESULT
case 1, BattleFrontier_BattlePalaceBattleRoom_EventScript_24F911
BattleFrontier_BattlePalaceBattleRoom_EventScript_24F8FA:: @ 824F8FA
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_2
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 0
setvar VAR_0x8006, 4
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePalaceBattleRoom_EventScript_24FEBB
BattleFrontier_BattlePalaceBattleRoom_EventScript_24F911:: @ 824F911
call BattleFrontier_BattlePalaceBattleRoom_EventScript_241EBA
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_1
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 2
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
addvar VAR_RESULT, 1
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_2
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 2
copyvar VAR_0x8006, VAR_RESULT
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 7, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB28
applymovement 2, BattleFrontier_BattlePalaceBattleRoom_Movement_24FEA7
waitmovement 0
removeobject 2
applymovement 1, BattleFrontier_BattlePalaceBattleRoom_Movement_24FE99
applymovement 3, BattleFrontier_BattlePalaceBattleRoom_Movement_24FEAC
waitmovement 0
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_24FF00, MSGBOX_DEFAULT
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
special SavePlayerParty
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_LOAD_SELECTED_PARTY
setvar VAR_0x8005, FRONTIER_PARTY_SIZE
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-12-22 08:46:19 +01:00
playfanfare MUS_ME_ASA
2017-11-10 02:21:31 +01:00
waitfanfare
2017-12-16 00:08:23 +01:00
special HealPlayerParty
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePalaceBattleRoom_EventScript_24F98A:: @ 824F98A
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_9
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2018-05-19 18:02:43 +02:00
copyvar VAR_TEMP_F, VAR_RESULT
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_ne BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB61
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_1
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 2
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
compare VAR_RESULT, 1
2018-12-22 03:32:45 +01:00
call_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24FE66
compare VAR_RESULT, 2
2018-12-22 03:32:45 +01:00
call_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24FE6D
compare VAR_RESULT, 3
2018-12-22 03:32:45 +01:00
call_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24FE74
compare VAR_RESULT, 4
2018-12-22 03:32:45 +01:00
call_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24FE7B
compare VAR_RESULT, 5
2018-12-22 03:32:45 +01:00
call_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24FE82
compare VAR_RESULT, 6
2018-12-22 03:32:45 +01:00
call_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24FE89
2017-11-10 02:21:31 +01:00
call BattleFrontier_BattlePalaceBattleRoom_EventScript_23E8E0
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24FA42
2019-09-19 06:56:51 +02:00
multichoice 19, 4, MULTI_GO_ON_RECORD_REST_RETIRE, 1
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 0, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB14
case 1, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FA78
case 2, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FAB4
case 3, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FAE2
2019-09-19 06:56:51 +02:00
case MULTI_B_PRESSED, BattleFrontier_BattlePalaceBattleRoom_EventScript_24F98A
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FA42:: @ 824FA42
2019-09-19 06:56:51 +02:00
multichoice 20, 6, MULTI_GO_ON_REST_RETIRE, 1
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 0, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB14
case 1, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FAB4
case 2, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FAE2
2019-09-19 06:56:51 +02:00
case MULTI_B_PRESSED, BattleFrontier_BattlePalaceBattleRoom_EventScript_24F98A
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FA78:: @ 824FA78
message BattleFrontier_BattlePalaceBattleRoom_Text_25009E
waitmessage
2019-09-19 06:56:51 +02:00
multichoicedefault 20, 8, MULTI_YESNO, 1, 0
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 1, BattleFrontier_BattlePalaceBattleRoom_EventScript_24F98A
case 0, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FAAA
2019-09-19 06:56:51 +02:00
case MULTI_B_PRESSED, BattleFrontier_BattlePalaceBattleRoom_EventScript_24F98A
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FAAA:: @ 824FAAA
call BattleFrontier_BattlePalaceBattleRoom_EventScript_23E8B4
goto BattleFrontier_BattlePalaceBattleRoom_EventScript_24F98A
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FAB4:: @ 824FAB4
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_250030, MSGBOX_YESNO
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-11-02 17:34:53 +01:00
case NO, BattleFrontier_BattlePalaceBattleRoom_EventScript_24F98A
case YES, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB3F
case MULTI_B_PRESSED, BattleFrontier_BattlePalaceBattleRoom_EventScript_24F98A
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FAE2:: @ 824FAE2
message BattleFrontier_BattlePalaceBattleRoom_Text_25005A
waitmessage
2019-09-19 06:56:51 +02:00
multichoicedefault 20, 8, MULTI_YESNO, 1, 0
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 1, BattleFrontier_BattlePalaceBattleRoom_EventScript_24F98A
case 0, BattleFrontier_BattlePalaceBattleRoom_EventScript_24F8FA
2019-09-19 06:56:51 +02:00
case MULTI_B_PRESSED, BattleFrontier_BattlePalaceBattleRoom_EventScript_24F98A
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB14:: @ 824FB14
applymovement 1, BattleFrontier_BattlePalaceBattleRoom_Movement_24FE97
applymovement 3, BattleFrontier_BattlePalaceBattleRoom_Movement_24FE97
closemessage
goto BattleFrontier_BattlePalaceBattleRoom_EventScript_24F8BF
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB28:: @ 824FB28
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_2
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 0
setvar VAR_0x8006, 3
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePalaceBattleRoom_EventScript_24FEBB
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB3F:: @ 824FB3F
message BattleFrontier_BattlePalaceBattleRoom_Text_25007E
waitmessage
setvar VAR_0x8004, 7
setvar VAR_0x8005, 2
2018-11-12 15:41:19 +01:00
special CallBattlePalaceFunction
2017-11-10 02:21:31 +01:00
playse SE_SAVE
waitse
fadescreen 1
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_SOFT_RESET
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
end
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB61:: @ 824FB61
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_2, 1
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB79
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_2500DD, MSGBOX_DEFAULT
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_2, 1
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB79:: @ 824FB79
message BattleFrontier_BattlePalaceBattleRoom_Text_25014A
waitmessage
call BattleFrontier_BattlePalaceBattleRoom_EventScript_23E8E0
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24FBD0
2019-09-19 06:56:51 +02:00
multichoice 19, 4, MULTI_GO_ON_RECORD_REST_RETIRE, 1
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 0, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FC06
case 1, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FA78
case 2, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FAB4
case 3, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FAE2
2019-09-19 06:56:51 +02:00
case MULTI_B_PRESSED, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB79
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FBD0:: @ 824FBD0
2019-09-19 06:56:51 +02:00
multichoice 20, 6, MULTI_GO_ON_REST_RETIRE, 1
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case 0, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FC06
case 1, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FAB4
case 2, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FAE2
2019-09-19 06:56:51 +02:00
case MULTI_B_PRESSED, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB79
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FC06:: @ 824FC06
call BattleFrontier_BattlePalaceBattleRoom_EventScript_242170
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_25017C, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement 1, BattleFrontier_BattlePalaceBattleRoom_Movement_24FE97
applymovement 3, BattleFrontier_BattlePalaceBattleRoom_Movement_24FE97
setobjectxyperm 2, 15, 1
addobject 2
hideobjectat 2, MAP_BATTLE_FRONTIER_BATTLE_PALACE_BATTLE_ROOM
2017-11-10 02:21:31 +01:00
setobjectxy 2, 13, 1
setobjectxyperm 2, 13, 1
applymovement 4, BattleFrontier_BattlePalaceBattleRoom_Movement_24FEDF
applymovement 5, BattleFrontier_BattlePalaceBattleRoom_Movement_24FEE7
applymovement 2, BattleFrontier_BattlePalaceBattleRoom_Movement_24FEF2
waitmovement 0
2018-05-19 18:02:43 +02:00
switch VAR_TEMP_F
2017-11-10 02:21:31 +01:00
case 2, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FD3A
case 3, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FCAA
case 4, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FD67
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_1
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 7
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_ne BattleFrontier_BattlePalaceBattleRoom_EventScript_24FCAA
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_2501C1, MSGBOX_DEFAULT
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_2
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 7
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FCAA:: @ 824FCAA
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_2502C4, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
call BattleFrontier_BattlePalaceBattleRoom_EventScript_24FDF7
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24FCC7
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePalaceBattleRoom_EventScript_24F8FA
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FCC7:: @ 824FCC7
setvar VAR_0x8004, 6
2018-11-12 15:41:19 +01:00
special CallBattlePalaceFunction
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_GET_FACILITY_SYMBOLS
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_ne BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB28
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_2502FF, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
applymovement 1, BattleFrontier_BattlePalaceBattleRoom_Movement_24FE99
applymovement 3, BattleFrontier_BattlePalaceBattleRoom_Movement_24FEAC
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_25036D, MSGBOX_DEFAULT
2017-12-22 08:46:19 +01:00
playfanfare MUS_ME_SYMBOLGET
2017-11-10 02:21:31 +01:00
message BattleFrontier_BattlePalaceBattleRoom_Text_2503DC
waitmessage
waitfanfare
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_GIVE_FACILITY_SYMBOL
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2019-10-06 19:55:30 +02:00
applymovement 2, Common_Movement_WalkInPlaceLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-10-06 19:55:30 +02:00
applymovement 1, Common_Movement_WalkInPlaceFastestRight
applymovement 3, Common_Movement_WalkInPlaceFastestRight
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_250412, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB28
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FD3A:: @ 824FD3A
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_1
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 7
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_ne BattleFrontier_BattlePalaceBattleRoom_EventScript_24FD67
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_250485, MSGBOX_DEFAULT
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_2
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 7
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FD67:: @ 824FD67
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_250572, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
call BattleFrontier_BattlePalaceBattleRoom_EventScript_24FDF7
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24FD84
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePalaceBattleRoom_EventScript_24F8FA
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FD84:: @ 824FD84
setvar VAR_0x8004, 6
2018-11-12 15:41:19 +01:00
special CallBattlePalaceFunction
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_GET_FACILITY_SYMBOLS
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
compare VAR_RESULT, 2
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB28
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_25057E, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
applymovement 1, BattleFrontier_BattlePalaceBattleRoom_Movement_24FE99
applymovement 3, BattleFrontier_BattlePalaceBattleRoom_Movement_24FEAC
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_250629, MSGBOX_DEFAULT
2017-12-22 08:46:19 +01:00
playfanfare MUS_ME_SYMBOLGET
2017-11-10 02:21:31 +01:00
message BattleFrontier_BattlePalaceBattleRoom_Text_250699
waitmessage
waitfanfare
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_GIVE_FACILITY_SYMBOL
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2019-10-06 19:55:30 +02:00
applymovement 2, Common_Movement_WalkInPlaceLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-10-06 19:55:30 +02:00
applymovement 1, Common_Movement_WalkInPlaceFastestRight
applymovement 3, Common_Movement_WalkInPlaceFastestRight
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox BattleFrontier_BattlePalaceBattleRoom_Text_2506C4, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePalaceBattleRoom_EventScript_24FB28
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FDF7:: @ 824FDF7
VerdanturfTown_BattleTentBattleRoom_EventScript_24FDF7:: @ 824FDF7
closemessage
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_2, 0
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_2
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 6
setvar VAR_0x8006, 0
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-12-16 00:08:23 +01:00
special HealPlayerParty
2018-10-21 20:13:12 +02:00
setvar VAR_0x8004, SPECIAL_BATTLE_PALACE
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 0
2018-10-21 20:13:12 +02:00
special DoSpecialTrainerBattle
2017-11-10 02:21:31 +01:00
waitstate
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_18
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-12-16 00:08:23 +01:00
special HealPlayerParty
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_21
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
return
BattleFrontier_BattlePalaceBattleRoom_MapScript2_24FE34: @ 824FE34
2018-05-19 18:02:43 +02:00
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattlePalaceBattleRoom_EventScript_24FE3E
2017-11-10 02:21:31 +01:00
.2byte 0
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FE3E:: @ 824FE3E
hideobjectat 1, MAP_BATTLE_FRONTIER_BATTLE_PALACE_BATTLE_ROOM
2017-11-10 02:21:31 +01:00
call BattleFrontier_BattlePalaceBattleRoom_EventScript_24F833
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_BattlePalaceBattleRoom_Movement_24FE90
2017-11-10 02:21:31 +01:00
removeobject 2
applymovement 4, BattleFrontier_BattlePalaceBattleRoom_Movement_24FE90
applymovement 5, BattleFrontier_BattlePalaceBattleRoom_Movement_24FE90
end
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FE66:: @ 824FE66
message BattleFrontier_BattlePalaceBattleRoom_Text_24FF28
waitmessage
return
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FE6D:: @ 824FE6D
message BattleFrontier_BattlePalaceBattleRoom_Text_24FF54
waitmessage
return
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FE74:: @ 824FE74
message BattleFrontier_BattlePalaceBattleRoom_Text_24FF80
waitmessage
return
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FE7B:: @ 824FE7B
message BattleFrontier_BattlePalaceBattleRoom_Text_24FFAC
waitmessage
return
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FE82:: @ 824FE82
message BattleFrontier_BattlePalaceBattleRoom_Text_24FFD8
waitmessage
return
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FE89:: @ 824FE89
message BattleFrontier_BattlePalaceBattleRoom_Text_250004
waitmessage
return
BattleFrontier_BattlePalaceBattleRoom_Movement_24FE90: @ 824FE90
set_invisible
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattlePalaceBattleRoom_Movement_24FE92: @ 824FE92
set_visible
walk_up
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePalaceBattleRoom_Movement_24FE97: @ 824FE97
face_right
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattlePalaceBattleRoom_Movement_24FE99: @ 824FE99
face_up
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattlePalaceBattleRoom_Movement_24FE9B: @ 824FE9B
set_visible
walk_up
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattlePalaceBattleRoom_Movement_24FEA1: @ 824FEA1
walk_down
walk_down
walk_down
walk_down
face_left
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattlePalaceBattleRoom_Movement_24FEA7: @ 824FEA7
walk_up
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattlePalaceBattleRoom_Movement_24FEAC: @ 824FEAC
face_down
2017-11-10 02:21:31 +01:00
step_end
2017-11-10 00:40:08 +01:00
BattleFrontier_BattlePalaceBattleRoom_Movement_24FEAE: @ 824FEAE
set_visible
walk_slow_down
walk_slow_down
face_left
2017-11-10 00:40:08 +01:00
step_end
BattleFrontier_BattlePalaceBattleRoom_Movement_24FEB3: @ 824FEB3
set_visible
walk_slow_down
2017-11-10 00:40:08 +01:00
step_end
BattleFrontier_BattlePalaceBattleRoom_Movement_24FEB6: @ 824FEB6
walk_slow_down
walk_slow_down
walk_slow_down
face_left
2017-11-10 00:40:08 +01:00
step_end
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FEBB:: @ 824FEBB
2018-08-25 19:59:47 +02:00
copyvar VAR_RESULT, VAR_FRONTIER_BATTLE_MODE
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattlePalaceBattleRoom_EventScript_24FED5
warp MAP_BATTLE_FRONTIER_BATTLE_PALACE_LOBBY, 255, 5, 7
2017-11-10 02:21:31 +01:00
waitstate
end
BattleFrontier_BattlePalaceBattleRoom_EventScript_24FED5:: @ 824FED5
warp MAP_BATTLE_FRONTIER_BATTLE_PALACE_LOBBY, 255, 19, 7
2017-11-10 02:21:31 +01:00
waitstate
end
BattleFrontier_BattlePalaceBattleRoom_Movement_24FEDF: @ 824FEDF
delay_16
delay_16
set_visible
walk_down
walk_right
walk_down
walk_in_place_fastest_left
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattlePalaceBattleRoom_Movement_24FEE7: @ 824FEE7
set_visible
walk_fast_down
walk_fast_right
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_fast_down
walk_in_place_fastest_left
delay_16
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattlePalaceBattleRoom_Movement_24FEF2: @ 824FEF2
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
set_visible
walk_slow_down
walk_slow_down
walk_slow_down
walk_slow_down
face_left
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattlePalaceBattleRoom_Text_24FF00: @ 824FF00
VerdanturfTown_BattleTentBattleRoom_Text_24FF00: @ 824FF00
.string "Excellent…\n"
.string "Let me restore your POKéMON.$"
BattleFrontier_BattlePalaceBattleRoom_Text_24FF28: @ 824FF28
VerdanturfTown_BattleTentBattleRoom_Text_24FF28: @ 824FF28
.string "The 2nd opponent is next.\n"
.string "Are you prepared?$"
BattleFrontier_BattlePalaceBattleRoom_Text_24FF54: @ 824FF54
VerdanturfTown_BattleTentBattleRoom_Text_24FF54: @ 824FF54
.string "The 3rd opponent is next.\n"
.string "Are you prepared?$"
BattleFrontier_BattlePalaceBattleRoom_Text_24FF80: @ 824FF80
.string "The 4th opponent is next.\n"
.string "Are you prepared?$"
BattleFrontier_BattlePalaceBattleRoom_Text_24FFAC: @ 824FFAC
.string "The 5th opponent is next.\n"
.string "Are you prepared?$"
BattleFrontier_BattlePalaceBattleRoom_Text_24FFD8: @ 824FFD8
.string "The 6th opponent is next.\n"
.string "Are you prepared?$"
BattleFrontier_BattlePalaceBattleRoom_Text_250004: @ 8250004
.string "The 7th opponent is next.\n"
.string "Are you prepared?$"
BattleFrontier_BattlePalaceBattleRoom_Text_250030: @ 8250030
VerdanturfTown_BattleTentBattleRoom_Text_250030: @ 8250030
.string "Would you like to save and quit\n"
.string "the game?$"
BattleFrontier_BattlePalaceBattleRoom_Text_25005A: @ 825005A
VerdanturfTown_BattleTentBattleRoom_Text_25005A: @ 825005A
.string "Do you wish to quit your challenge?$"
BattleFrontier_BattlePalaceBattleRoom_Text_25007E: @ 825007E
VerdanturfTown_BattleTentBattleRoom_Text_25007E: @ 825007E
.string "Saving the data.\n"
.string "Have patience…$"
BattleFrontier_BattlePalaceBattleRoom_Text_25009E: @ 825009E
.string "Do you wish to record your latest\n"
.string "match on your FRONTIER PASS?$"
BattleFrontier_BattlePalaceBattleRoom_Text_2500DD: @ 82500DD
.string "And now…\p"
.string "By winning consistently, you have\n"
.string "earned the privilege of challenging\l"
.string "our master, the PALACE MAVEN…$"
BattleFrontier_BattlePalaceBattleRoom_Text_25014A: @ 825014A
.string "I shall send for the PALACE MAVEN.\n"
.string "Are you ready?$"
BattleFrontier_BattlePalaceBattleRoom_Text_25017C: @ 825017C
.string "Let great fanfare announce the arrival\n"
.string "of the PALACE MAVEN, SPENSER!$"
BattleFrontier_BattlePalaceBattleRoom_Text_2501C1: @ 82501C1
.string "SPENSER: My physical being is with\n"
.string "POKéMON always!\p"
.string "My heart beats as one with\n"
.string "POKéMON always!\p"
.string "Young one of a TRAINER!\n"
.string "Do you believe in your POKéMON?\p"
.string "Can you believe them through\n"
.string "and through?\p"
.string "If your bonds of trust are frail,\n"
.string "you will never beat my brethren!$"
BattleFrontier_BattlePalaceBattleRoom_Text_2502C4: @ 82502C4
.string "The bond you share with your POKéMON!\n"
.string "Prove it to me here!$"
BattleFrontier_BattlePalaceBattleRoom_Text_2502FF: @ 82502FF
.string "SPENSER: Gwahahah!\p"
.string "Hah, you never fell for my bluster!\n"
.string "Sorry for trying that stunt!\p"
.string "Here!\n"
.string "Bring me the thing!$"
BattleFrontier_BattlePalaceBattleRoom_Text_25036D: @ 825036D
.string "My, my, if only you could maintain that\n"
.string "facade of distinguished authority…\p"
.string "Here!\n"
2018-12-07 16:41:08 +01:00
.string "Let's see your FRONTIER PASS!$"
BattleFrontier_BattlePalaceBattleRoom_Text_2503DC: @ 82503DC
.string "The Spirits Symbol was embossed on\n"
.string "the FRONTIER PASS!$"
BattleFrontier_BattlePalaceBattleRoom_Text_250412: @ 8250412
2018-12-07 16:41:08 +01:00
.string "SPENSER: Your POKéMON's eyes are \n"
.string "truly clear and unclouded.\p"
.string "I will eagerly await the next\n"
.string "opportunity to see you.$"
BattleFrontier_BattlePalaceBattleRoom_Text_250485: @ 8250485
.string "SPENSER: Gwahahah!\n"
2018-12-07 16:41:08 +01:00
.string "You've battled your way up again?\p"
.string "You must have developed a truly\n"
.string "formidable bond with your POKéMON.\p"
.string "So be it!\p"
2018-12-07 16:41:08 +01:00
.string "This time, I won't bluster or hold back.\n"
.string "This time, there's no fooling around.\p"
.string "Ready now?\n"
.string "Prepare to lose!$"
BattleFrontier_BattlePalaceBattleRoom_Text_250572: @ 8250572
.string "… … …Kaaah!$"
BattleFrontier_BattlePalaceBattleRoom_Text_25057E: @ 825057E
.string "SPENSER: Well, that was some display!\n"
.string "Even fully unleashed, my brethren\l"
.string "could not overpower you.\p"
.string "Your team spirit is truly admirable!\p"
.string "Here!\n"
.string "Bring me that thing, will you?$"
BattleFrontier_BattlePalaceBattleRoom_Text_250629: @ 8250629
.string "My, my, if only you could maintain\n"
.string "a certain level of decorum…\p"
.string "Gaaah, here!\n"
.string "Hurry with that FRONTIER PASS, you!$"
BattleFrontier_BattlePalaceBattleRoom_Text_250699: @ 8250699
.string "The Spirits Symbol took on\n"
.string "a golden shine!$"
BattleFrontier_BattlePalaceBattleRoom_Text_2506C4: @ 82506C4
.string "SPENSER: Gwahahah!\p"
.string "Come see me time and again!\n"
.string "My brethren and I will be waiting!$"