pokeemerald/data/maps/BattleFrontier_BattlePikeThreePathRoom/scripts.inc

387 lines
14 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePikeThreePathRoom_MapScripts:: @ 825C843
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattlePikeRoom_OnResume
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeThreePathRoom_OnFrame
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeThreePathRoom_OnWarp
2017-11-10 02:21:31 +01:00
.byte 0
BattleFrontier_BattlePikeThreePathRoom_OnFrame: @ 825C853
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePikeThreePathRoom_EventScript_CheckChallengeOutcome
map_script_2 VAR_TEMP_0, 1, BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpToLobby
2018-05-19 18:02:43 +02:00
map_script_2 VAR_TEMP_0, 2, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C8A4
map_script_2 VAR_TEMP_5, 0, BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA78
map_script_2 VAR_TEMP_5, 1, BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA97
2017-11-10 02:21:31 +01:00
.2byte 0
BattleFrontier_BattlePikeThreePathRoom_OnWarp: @ 825C87D
2018-05-19 18:02:43 +02:00
map_script_2 VAR_TEMP_4, 0, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C887
2017-11-10 02:21:31 +01:00
.2byte 0
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C887:: @ 825C887
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_4, 1
2019-09-16 05:47:07 +02:00
turnobject EVENT_OBJ_ID_PLAYER, DIR_NORTH
2017-11-10 02:21:31 +01:00
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_CheckChallengeOutcome:: @ 825C891
frontier_checkoutcome
2017-11-10 02:21:31 +01:00
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_WarpToLobby:: @ 825C89A
warp MAP_BATTLE_FRONTIER_BATTLE_PIKE_LOBBY, 255, 5, 6
2017-11-10 02:21:31 +01:00
waitstate
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C8A4:: @ 825C8A4
lockall
message BattleFrontier_BattlePikeThreePathRoom_Text_AwaitingReturnSaveBeforeResume
2017-11-10 02:21:31 +01:00
waitmessage
2019-10-07 02:04:30 +02:00
setvar VAR_0x8004, BATTLE_PIKE_FUNC_8
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 1
2018-11-12 14:35:56 +01:00
special CallBattlePikeFunction
2017-11-10 02:21:31 +01:00
playse SE_SAVE
waitse
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_SET_DATA
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 3
setvar VAR_0x8006, 0
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_0, 255
2018-04-29 14:21:59 +02:00
special SavePlayerParty
frontier_loadselectedmons
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_PleaseEnjoyChallenge, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
releaseall
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
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_SET_DATA
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 0
setvar VAR_0x8006, 99
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
2017-11-10 02:21:31 +01:00
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C908:: @ 825C908
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_GET_DATA
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
switch VAR_RESULT
case 1, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C968
case 3, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C978
case 5, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C988
case 7, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C998
case 9, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9A8
case 11, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9B8
case 13, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9C8
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C968:: @ 825C968
lock
faceplayer
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom1, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9D8
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C978:: @ 825C978
lock
faceplayer
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom3, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9D8
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C988:: @ 825C988
lock
faceplayer
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom5, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9D8
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C998:: @ 825C998
lock
faceplayer
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom7, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9D8
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9A8:: @ 825C9A8
lock
faceplayer
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom9, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9D8
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9B8:: @ 825C9B8
lock
faceplayer
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom11, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9D8
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9C8:: @ 825C9C8
lock
faceplayer
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom13, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9D8
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9D8:: @ 825C9D8
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_ContinueWithChallenge, MSGBOX_YESNO
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-11-02 17:34:53 +01:00
case NO, BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA2A
case MULTI_B_PRESSED, BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA2A
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9FD:: @ 825C9FD
2019-11-10 02:40:25 +01:00
setvar VAR_0x8004, FRONTIER_UTIL_FUNC_6
2018-11-01 21:31:10 +01:00
special CallFrontierUtilFunc
message BattleFrontier_BattlePikeThreePathRoom_Text_SavingYourData
2017-11-10 02:21:31 +01:00
waitmessage
2018-04-29 14:21:59 +02:00
special LoadPlayerParty
2019-10-07 02:04:30 +02:00
setvar VAR_0x8004, BATTLE_PIKE_FUNC_8
2017-11-10 02:21:31 +01:00
setvar VAR_0x8005, 2
2018-11-12 14:35:56 +01:00
special CallBattlePikeFunction
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_BattlePikeThreePathRoom_EventScript_25CA2A:: @ 825CA2A
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_SaveChallengeAndQuit, MSGBOX_YESNO
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-11-02 17:34:53 +01:00
case YES, BattleFrontier_BattlePikeThreePathRoom_EventScript_25C9FD
case NO, BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA5A
case MULTI_B_PRESSED, BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA5A
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA5A:: @ 825CA5A
message BattleFrontier_BattlePikeThreePathRoom_Text_RetireFromChallenge
2017-11-10 02:21:31 +01:00
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
2019-10-07 02:04:30 +02:00
case 0, BattleFrontier_BattlePike_EventScript_Retire
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA78:: @ 825CA78
2019-10-07 02:04:30 +02:00
setvar VAR_0x8004, BATTLE_PIKE_FUNC_SET_HINT_ROOM
2018-11-12 14:35:56 +01:00
special CallBattlePikeFunction
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA91
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_5, 255
2017-11-10 02:21:31 +01:00
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA91:: @ 825CA91
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_5, 1
2017-11-10 02:21:31 +01:00
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_25CA97:: @ 825CA97
applymovement 2, BattleFrontier_BattlePikeThreePathRoom_Movement_25CBCE
waitmovement 0
lockall
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_TerrifyingEvent, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
applymovement 2, BattleFrontier_BattlePikeThreePathRoom_Movement_25CBD5
waitmovement 0
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_5, 255
2017-11-10 02:21:31 +01:00
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_HintGiver:: @ 825CABB
battlepike_gethint
compare VAR_RESULT, PIKE_HINT_BRAIN
goto_if_eq BattleFrontier_BattlePikeThreePathRoom_EventScript_GiveBrainHint
2017-11-10 02:21:31 +01:00
lock
faceplayer
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_FindingItDifficultToChoose, MSGBOX_YESNO
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case YES, BattleFrontier_BattlePikeThreePathRoom_EventScript_AcceptHint
case NO, BattleFrontier_BattlePikeThreePathRoom_EventScript_DeclineHint
case MULTI_B_PRESSED, BattleFrontier_BattlePikeThreePathRoom_EventScript_DeclineHint
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_DeclineHint:: @ 825CB00
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_ApologizeForImpertinence, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_AcceptHint:: @ 825CB0A
setvar VAR_0x8004, BATTLE_PIKE_FUNC_GET_HINT_ROOM_ID
2018-11-12 14:35:56 +01:00
special CallBattlePikeFunction
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case PIKE_ROOM_LEFT, BattleFrontier_BattlePikeThreePathRoom_EventScript_GiveLeftRoomHint
case PIKE_ROOM_CENTER, BattleFrontier_BattlePikeThreePathRoom_EventScript_GiveCenterRoomHint
case PIKE_ROOM_RIGHT, BattleFrontier_BattlePikeThreePathRoom_EventScript_GiveRightRoomHint
2017-11-10 02:21:31 +01:00
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_GiveLeftRoomHint:: @ 825CB39
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_SomethingAboutLeftPath, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_GiveHint
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePikeThreePathRoom_EventScript_GiveCenterRoomHint:: @ 825CB46
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_SomethingAboutCenterPath, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_GiveHint
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePikeThreePathRoom_EventScript_GiveRightRoomHint:: @ 825CB53
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_SomethingAboutRightPath, MSGBOX_DEFAULT
goto BattleFrontier_BattlePikeThreePathRoom_EventScript_GiveHint
2017-11-10 02:21:31 +01:00
BattleFrontier_BattlePikeThreePathRoom_EventScript_GiveHint:: @ 825CB60
battlepike_gethint
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
case PIKE_HINT_NOSTALGIA, BattleFrontier_BattlePikeThreePathRoom_EventScript_HintNostalgia
case PIKE_HINT_WHISPERING, BattleFrontier_BattlePikeThreePathRoom_EventScript_HintWhispering
case PIKE_HINT_POKEMON, BattleFrontier_BattlePikeThreePathRoom_EventScript_HintPokemon
case PIKE_HINT_PEOPLE, BattleFrontier_BattlePikeThreePathRoom_EventScript_HintPeople
2017-11-10 02:21:31 +01:00
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_HintNostalgia:: @ 825CB9A
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_WaveOfNostaliga, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_HintWhispering:: @ 825CBA4
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_HeardWhispering, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_HintPokemon:: @ 825CBAE
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_AromaOfPokemon, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_HintPeople:: @ 825CBB8
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_PresenceOfPeople, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_BattlePikeThreePathRoom_EventScript_GiveBrainHint:: @ 825CBC2
2017-11-10 02:21:31 +01:00
lock
faceplayer
msgbox BattleFrontier_BattlePikeThreePathRoom_Text_DreadfulPresence, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
BattleFrontier_BattlePikeThreePathRoom_Movement_25CBCE: @ 825CBCE
walk_left
walk_left
walk_down
walk_down
walk_down
walk_down
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattlePikeThreePathRoom_Movement_25CBD5: @ 825CBD5
walk_up
walk_up
walk_up
walk_up
walk_right
walk_right
face_down
2017-11-10 02:21:31 +01:00
step_end
BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom1: @ 825CBDD
2017-11-10 02:21:31 +01:00
.string "You are currently in\n"
.string "the 1st room…$"
BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom3: @ 825CC00
2017-11-10 02:21:31 +01:00
.string "You are currently in\n"
.string "the 3rd room…$"
BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom5: @ 825CC23
2017-11-10 02:21:31 +01:00
.string "You are currently in\n"
.string "the 5th room…$"
BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom7: @ 825CC46
2017-11-10 02:21:31 +01:00
.string "You are currently in\n"
.string "the 7th room…$"
BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom9: @ 825CC69
2017-11-10 02:21:31 +01:00
.string "You are currently in\n"
.string "the 9th room…$"
BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom11: @ 825CC8C
2017-11-10 02:21:31 +01:00
.string "You are currently in\n"
.string "the 11th room…$"
BattleFrontier_BattlePikeThreePathRoom_Text_CurrentlyInRoom13: @ 825CCB0
2017-11-10 02:21:31 +01:00
.string "You are currently in\n"
.string "the 13th room…$"
BattleFrontier_BattlePikeThreePathRoom_Text_ContinueWithChallenge: @ 825CCD4
2017-11-10 02:21:31 +01:00
.string "Will you continue with\n"
.string "your challenge?$"
BattleFrontier_BattlePikeThreePathRoom_Text_SaveChallengeAndQuit: @ 825CCFB
2017-11-10 02:21:31 +01:00
.string "Would you like to save your challenge\n"
.string "and quit the game for now?$"
BattleFrontier_BattlePikeThreePathRoom_Text_RetireFromChallenge: @ 825CD3C
2017-11-10 02:21:31 +01:00
.string "Do you wish to retire from your\n"
.string "Battle Choice challenge?$"
BattleFrontier_BattlePikeThreePathRoom_Text_AwaitingReturnSaveBeforeResume: @ 825CD75
2018-12-07 16:41:08 +01:00
.string "We've been awaiting your return…\p"
2017-11-10 02:21:31 +01:00
.string "Before resuming your Battle Choice\n"
.string "challenge, let me save the game…$"
BattleFrontier_BattlePikeThreePathRoom_Text_PleaseEnjoyChallenge: @ 825CDDA
2017-11-10 02:21:31 +01:00
.string "Please do enjoy your Battle Choice\n"
.string "challenge…$"
BattleFrontier_BattlePikeThreePathRoom_Text_SavingYourData: @ 825CE08
2017-11-10 02:21:31 +01:00
.string "I am saving your data…\n"
.string "A little time, please…$"
BattleFrontier_BattlePike_Text_PathBlockedNoTurningBack: @ 825CE36
2017-11-10 00:40:08 +01:00
.string "The path is blocked!\n"
.string "And there is no turning back…$"
BattleFrontier_BattlePikeThreePathRoom_Text_FindingItDifficultToChoose: @ 825CE69
2017-11-10 00:40:08 +01:00
.string "I beg your pardon, but…\p"
.string "Are you perhaps finding it difficult\n"
.string "to choose your path?$"
BattleFrontier_BattlePikeThreePathRoom_Text_ApologizeForImpertinence: @ 825CEBB
2017-11-10 00:40:08 +01:00
.string "I see…\n"
.string "I apologize for my impertinence…$"
BattleFrontier_BattlePikeThreePathRoom_Text_SomethingAboutRightPath: @ 825CEE3
2017-11-10 00:40:08 +01:00
.string "Ah, let me see… There is something\n"
.string "about the path on the right…$"
BattleFrontier_BattlePikeThreePathRoom_Text_SomethingAboutCenterPath: @ 825CF23
2017-11-10 00:40:08 +01:00
.string "Ah, let me see… There is something\n"
.string "about the path in the center…$"
BattleFrontier_BattlePikeThreePathRoom_Text_SomethingAboutLeftPath: @ 825CF64
2017-11-10 00:40:08 +01:00
.string "Ah, let me see… There is something\n"
.string "about the path on the left…$"
BattleFrontier_BattlePikeThreePathRoom_Text_AromaOfPokemon: @ 825CFA3
2017-11-10 00:40:08 +01:00
.string "It seems to have the distinct aroma\n"
.string "of POKéMON wafting around it…$"
BattleFrontier_BattlePikeThreePathRoom_Text_PresenceOfPeople: @ 825CFE5
2017-11-10 00:40:08 +01:00
.string "Is it… A TRAINER?\n"
.string "I sense the presence of people…$"
BattleFrontier_BattlePikeThreePathRoom_Text_HeardWhispering: @ 825D017
2017-11-10 00:40:08 +01:00
.string "I seem to have heard something…\n"
.string "It may have been whispering…$"
BattleFrontier_BattlePikeThreePathRoom_Text_WaveOfNostaliga: @ 825D054
2017-11-10 00:40:08 +01:00
.string "For some odd reason, I felt a wave\n"
.string "of nostalgia coming from it…$"
BattleFrontier_BattlePikeThreePathRoom_Text_TerrifyingEvent: @ 825D094
2017-11-10 00:40:08 +01:00
.string "I am sorry to say…\p"
.string "A terrifying event, yes, a horrible one,\n"
.string "is about to befall you…\p"
.string "I urge you to pay the utmost care\n"
.string "and prepare for the worst…$"
BattleFrontier_BattlePikeThreePathRoom_Text_DreadfulPresence: @ 825D125
2017-11-10 00:40:08 +01:00
.string "From every path I sense a dreadful\n"
.string "presence…$"