pokeemerald/data/maps/BattleFrontier_BattlePyramidTop/scripts.inc

380 lines
12 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePyramidTop_MapScripts:: @ 82550A1
map_script 5, BattleFrontier_BattlePyramidTop_MapScript1_2550F4
map_script 2, BattleFrontier_BattlePyramidTop_MapScript2_25516E
map_script 3, BattleFrontier_BattlePyramidTop_MapScript1_2550B6
map_script 4, BattleFrontier_BattlePyramidTop_MapScript2_2550CE
.byte 0
BattleFrontier_BattlePyramidTop_MapScript1_2550B6: @ 82550B6
setvar VAR_0x8004, 13
setvar VAR_0x8005, 200
setvar VAR_0x8006, 0
2018-11-18 17:52:22 +01:00
special CallBattlePyramidFunction
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_F, 1
2017-11-10 02:21:31 +01:00
end
BattleFrontier_BattlePyramidTop_MapScript2_2550CE: @ 82550CE
2018-05-19 18:02:43 +02:00
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattlePyramidTop_EventScript_2550D8
2017-11-10 02:21:31 +01:00
.2byte 0
BattleFrontier_BattlePyramidTop_EventScript_2550D8:: @ 82550D8
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
turnobject EVENT_OBJ_ID_PLAYER, 2
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_C, 0
2018-12-22 02:28:24 +01:00
goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_2550F3
2017-11-10 02:21:31 +01:00
setobjectxyperm 2, 0, 0
BattleFrontier_BattlePyramidTop_EventScript_2550F3:: @ 82550F3
end
BattleFrontier_BattlePyramidTop_MapScript1_2550F4: @ 82550F4
setvar VAR_0x8004, 9
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_BattlePyramidTop_EventScript_25510C
2017-11-10 02:21:31 +01:00
call BattleFrontier_BattlePyramidTop_EventScript_242170
BattleFrontier_BattlePyramidTop_EventScript_25510C:: @ 825510C
2018-05-19 18:02:43 +02:00
copyvar VAR_TEMP_C, VAR_RESULT
2017-11-10 02:21:31 +01:00
setvar VAR_0x8004, 0
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2018-05-19 18:02:43 +02:00
switch VAR_TEMP_0
2017-11-10 02:21:31 +01:00
case 0, BattleFrontier_BattlePyramidTop_EventScript_255193
case 1, BattleFrontier_BattlePyramidTop_EventScript_252B66
case 2, BattleFrontier_BattlePyramidTop_EventScript_255193
setvar VAR_0x8004, 1
setvar VAR_0x8005, 5
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_BattlePyramidTop_EventScript_252B42
compare VAR_RESULT, 3
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_252B42
compare VAR_RESULT, 9
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_252B42
2017-11-10 02:21:31 +01:00
end
BattleFrontier_BattlePyramidTop_MapScript2_25516E: @ 825516E
2018-05-19 18:02:43 +02:00
map_script_2 VAR_TEMP_E, 0, BattleFrontier_BattlePyramidTop_EventScript_255180
map_script_2 VAR_TEMP_F, 1, BattleFrontier_BattlePyramidTop_EventScript_25518A
2017-11-10 02:21:31 +01:00
.2byte 0
BattleFrontier_BattlePyramidTop_EventScript_255180:: @ 8255180
2017-12-22 08:46:19 +01:00
playbgm MUS_PYRAMID_TOP, 0
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_E, 1
2017-11-10 02:21:31 +01:00
end
BattleFrontier_BattlePyramidTop_EventScript_25518A:: @ 825518A
2018-02-12 18:26:26 +01:00
special ShowMapNamePopup
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_F, 0
2017-11-10 02:21:31 +01:00
end
BattleFrontier_BattlePyramidTop_EventScript_255193:: @ 8255193
setvar VAR_0x8004, 3
setvar VAR_0x8005, 1
2018-11-18 17:52:22 +01:00
special CallBattlePyramidFunction
2018-04-29 14:21:59 +02:00
special SavePlayerParty
2017-11-10 02:21:31 +01:00
setvar VAR_0x8004, 2
setvar VAR_0x8005, 0
setvar VAR_0x8006, 0
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
setvar VAR_0x8004, 9
2018-11-18 17:52:22 +01:00
special CallBattlePyramidFunction
2017-11-10 02:21:31 +01:00
setvar VAR_0x8004, 3
setvar VAR_0x8005, 3
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_F, 1
2017-11-10 02:21:31 +01:00
end
BattleFrontier_BattlePyramidTop_EventScript_2551D0:: @ 82551D0
lock
faceplayer
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_D, 0
2018-12-22 02:28:24 +01:00
goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_255236
2018-05-19 18:02:43 +02:00
compare VAR_TEMP_C, 0
2018-12-22 02:28:24 +01:00
goto_if_ne BattleFrontier_BattlePyramidTop_EventScript_255240
msgbox BattleFrontier_BattlePyramidTop_Text_255410, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement 1, BattleFrontier_BattlePyramidTop_Movement_2553FD
waitmovement 0
applymovement EVENT_OBJ_ID_PLAYER, BattleFrontier_BattlePyramidTop_Movement_255403
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement 1, BattleFrontier_BattlePyramidTop_Movement_255400
waitmovement 0
message BattleFrontier_BattlePyramidTop_Text_2554E8
waitmessage
2017-12-22 08:46:19 +01:00
playfanfare MUS_ME_POINTGET
2017-11-10 02:21:31 +01:00
waitfanfare
closemessage
BattleFrontier_BattlePyramidTop_EventScript_25521A:: @ 825521A
setvar VAR_0x8004, 2
setvar VAR_0x8005, 0
setvar VAR_0x8006, 3
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
warp MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_LOBBY, 255, 7, 13
2017-11-10 02:21:31 +01:00
waitstate
end
BattleFrontier_BattlePyramidTop_EventScript_255236:: @ 8255236
msgbox BattleFrontier_BattlePyramidTop_Text_255BFE, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
end
BattleFrontier_BattlePyramidTop_EventScript_255240:: @ 8255240
msgbox BattleFrontier_BattlePyramidTop_Text_25551F, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
applymovement 1, BattleFrontier_BattlePyramidTop_Movement_2553FD
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_D, 1
2017-11-10 02:21:31 +01:00
closemessage
end
BattleFrontier_BattlePyramidTop_EventScript_255256:: @ 8255256
lockall
2018-05-19 18:02:43 +02:00
switch VAR_TEMP_C
2017-11-10 02:21:31 +01:00
case 2, BattleFrontier_BattlePyramidTop_EventScript_255335
case 3, BattleFrontier_BattlePyramidTop_EventScript_2552D0
case 4, BattleFrontier_BattlePyramidTop_EventScript_255388
setvar VAR_0x8004, 1
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_BattlePyramidTop_EventScript_2552D0
special SpawnCameraObject
applymovement EVENT_OBJ_ID_CAMERA, BattleFrontier_BattlePyramidTop_Movement_25540C
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox BattleFrontier_BattlePyramidTop_Text_255669, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
setvar VAR_0x8004, 2
setvar VAR_0x8005, 7
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
applymovement 2, BattleFrontier_BattlePyramidTop_Movement_25540A
waitmovement 0
msgbox BattleFrontier_BattlePyramidTop_Text_25573E, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePyramidTop_EventScript_2552DA
end
BattleFrontier_BattlePyramidTop_EventScript_2552D0:: @ 82552D0
applymovement 2, BattleFrontier_BattlePyramidTop_Movement_25540A
waitmovement 0
BattleFrontier_BattlePyramidTop_EventScript_2552DA:: @ 82552DA
msgbox BattleFrontier_BattlePyramidTop_Text_255846, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
call BattleFrontier_BattlePyramidTop_EventScript_2553ED
2017-12-22 08:46:19 +01:00
playbgm MUS_PYRAMID_TOP, 0
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_2552FB
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePyramidTop_EventScript_252B42
BattleFrontier_BattlePyramidTop_EventScript_2552FB:: @ 82552FB
setvar VAR_0x8004, 12
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_BattlePyramidTop_EventScript_25521A
msgbox BattleFrontier_BattlePyramidTop_Text_255873, MSGBOX_DEFAULT
2017-12-22 08:46:19 +01:00
playfanfare MUS_ME_SYMBOLGET
2017-11-10 02:21:31 +01:00
message BattleFrontier_BattlePyramidTop_Text_2558E9
waitmessage
waitfanfare
setvar VAR_0x8004, 13
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
msgbox BattleFrontier_BattlePyramidTop_Text_25591D, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePyramidTop_EventScript_25521A
BattleFrontier_BattlePyramidTop_EventScript_255335:: @ 8255335
setvar VAR_0x8004, 1
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_BattlePyramidTop_EventScript_255388
special SpawnCameraObject
applymovement EVENT_OBJ_ID_CAMERA, BattleFrontier_BattlePyramidTop_Movement_25540C
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox BattleFrontier_BattlePyramidTop_Text_255951, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
setvar VAR_0x8004, 2
setvar VAR_0x8005, 7
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
applymovement 2, BattleFrontier_BattlePyramidTop_Movement_25540A
waitmovement 0
msgbox BattleFrontier_BattlePyramidTop_Text_255A6D, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePyramidTop_EventScript_255392
end
BattleFrontier_BattlePyramidTop_EventScript_255388:: @ 8255388
applymovement 2, BattleFrontier_BattlePyramidTop_Movement_25540A
waitmovement 0
BattleFrontier_BattlePyramidTop_EventScript_255392:: @ 8255392
msgbox BattleFrontier_BattlePyramidTop_Text_255AA1, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
call BattleFrontier_BattlePyramidTop_EventScript_2553ED
2017-12-22 08:46:19 +01:00
playbgm MUS_PYRAMID_TOP, 0
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_2553B3
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePyramidTop_EventScript_252B42
BattleFrontier_BattlePyramidTop_EventScript_2553B3:: @ 82553B3
setvar VAR_0x8004, 12
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_BattlePyramidTop_EventScript_25521A
msgbox BattleFrontier_BattlePyramidTop_Text_255ACD, MSGBOX_DEFAULT
2017-12-22 08:46:19 +01:00
playfanfare MUS_ME_SYMBOLGET
2017-11-10 02:21:31 +01:00
message BattleFrontier_BattlePyramidTop_Text_255B59
waitmessage
waitfanfare
setvar VAR_0x8004, 13
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
msgbox BattleFrontier_BattlePyramidTop_Text_255B82, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePyramidTop_EventScript_25521A
BattleFrontier_BattlePyramidTop_EventScript_2553ED:: @ 82553ED
closemessage
2018-10-21 20:13:12 +02:00
setvar VAR_0x8004, SPECIAL_BATTLE_PYRAMID
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
return
BattleFrontier_BattlePyramidTop_Movement_2553FD: @ 82553FD
walk_right
walk_in_place_fastest_left
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattlePyramidTop_Movement_255400: @ 8255400
walk_left
walk_in_place_fastest_up
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattlePyramidTop_Movement_255403: @ 8255403
walk_up
walk_up
walk_up
walk_up
walk_up
walk_in_place_fastest_down
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattlePyramidTop_Movement_25540A: @ 825540A
walk_fast_down
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattlePyramidTop_Movement_25540C: @ 825540C
walk_slow_up
walk_slow_up
delay_16
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattlePyramidTop_Text_255410: @ 8255410
.string "It is a delight to see you here!\n"
.string "You have reached the summit of\l"
.string "the BATTLE PYRAMID!\p"
2018-12-07 16:41:08 +01:00
.string "Above here is the PYRAMID's\n"
2017-11-10 02:21:31 +01:00
.string "lookout point.\p"
.string "It is a place open only to those\n"
.string "who have conquered the PYRAMID.\p"
.string "Now, please!\n"
.string "Up you go!$"
BattleFrontier_BattlePyramidTop_Text_2554E8: @ 82554E8
2018-12-07 16:41:08 +01:00
.string "The PYRAMID's new conqueror!\n"
2017-11-10 02:21:31 +01:00
.string "Let the name {PLAYER} be known!$"
BattleFrontier_BattlePyramidTop_Text_25551F: @ 825551F
.string "It is a delight to see you here!\p"
.string "Unfortunately, you were second by\n"
.string "a mere fraction of time!\p"
.string "Our chief has already conquered\n"
.string "the PYRAMID ahead of you.\p"
.string "However, my young explorer…\n"
.string "You are a TRAINER!\p"
.string "Assert your power and take the glory\n"
.string "of the pinnacle from our chief!\p"
.string "Now, please! When you are ready,\n"
.string "take one more step of courage!$"
BattleFrontier_BattlePyramidTop_Text_255669: @ 8255669
.string "Young adventurer…\p"
2018-12-07 16:41:08 +01:00
.string "Wouldn't you agree that explorations\n"
2017-11-10 02:21:31 +01:00
.string "are the grandest of adventures?\p"
.string "Your own wits!\p"
.string "Your own strength!\p"
.string "Your own POKéMON!\p"
.string "And, above all, only your own courage\n"
.string "to lead you through unknown worlds…$"
BattleFrontier_BattlePyramidTop_Text_25573E: @ 825573E
.string "Aah, yes, indeed this life is grand!\n"
.string "Grand, it is! Eh?\p"
2018-12-07 16:41:08 +01:00
.string "I'm BRANDON!\p"
.string "I'm the PYRAMID KING, which means\n"
.string "I'm in charge here.\p"
2017-11-10 02:21:31 +01:00
.string "Most people call me the chief!\p"
.string "You coming here means you have\n"
.string "that much confidence in yourself,\l"
.string "am I right?\p"
.string "Hahahah!\n"
.string "This should be exciting!$"
BattleFrontier_BattlePyramidTop_Text_255846: @ 8255846
.string "Now, then!\n"
.string "Bring your courage to our battle!$"
BattleFrontier_BattlePyramidTop_Text_255873: @ 8255873
.string "BRANDON: Hahahah! Grand it was!\n"
.string "Grand, yes, indeed!\p"
2018-12-07 16:41:08 +01:00
.string "Well done! You've earned recognition!\n"
2017-11-10 02:21:31 +01:00
.string "Your FRONTIER PASS, please!$"
BattleFrontier_BattlePyramidTop_Text_2558E9: @ 82558E9
.string "The Brave Symbol was embossed on\n"
.string "the FRONTIER PASS!$"
BattleFrontier_BattlePyramidTop_Text_25591D: @ 825591D
.string "Young explorer!\n"
.string "I look forward to our next meeting!$"
BattleFrontier_BattlePyramidTop_Text_255951: @ 8255951
2018-12-07 16:41:08 +01:00
.string "BRANDON: …You've finally returned,\n"
2017-11-10 02:21:31 +01:00
.string "young explorer…\p"
.string "Your love of adventure seems to come\n"
.string "deep from within your heart…\p"
.string "Yes… You are exactly as I was in\n"
.string "my own youth…\p"
.string "… … …Ah…\p"
.string "The passionate!\p"
.string "The dangerous!\p"
.string "The desperate!\p"
.string "Those days of death-defying,\n"
.string "life-affirming adventures are back…$"
BattleFrontier_BattlePyramidTop_Text_255A6D: @ 8255A6D
.string "Now, then!\p"
.string "I sense my own courage is off\n"
.string "the meter!$"
BattleFrontier_BattlePyramidTop_Text_255AA1: @ 8255AA1
.string "Everything you have!\n"
2018-12-07 16:41:08 +01:00
.string "I'm braced for it all!$"
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePyramidTop_Text_255ACD: @ 8255ACD
.string "BRANDON: Hahahah!\n"
.string "Remarkable!\l"
2018-12-07 16:41:08 +01:00
.string "Yes, it's grand, indeed!\p"
2017-11-10 02:21:31 +01:00
.string "Young explorer!\p"
2018-12-07 16:41:08 +01:00
.string "You've bested me through and through!\n"
2017-11-10 02:21:31 +01:00
.string "Here! I want you to have this!$"
BattleFrontier_BattlePyramidTop_Text_255B59: @ 8255B59
.string "The Brave Symbol took on\n"
.string "a golden shine!$"
BattleFrontier_BattlePyramidTop_Text_255B82: @ 8255B82
.string "Ah, yes! It just goes to show that\n"
.string "I have much to learn still!\p"
.string "May our paths cross again!\n"
.string "Farewell for now, young explorer!$"
BattleFrontier_BattlePyramidTop_Text_255BFE: @ 8255BFE
.string "Now, when you are ready, take courage\n"
.string "and step forward.$"