pokeemerald/data/maps/BattleFrontier_BattlePalaceCorridor/scripts.inc

152 lines
5.3 KiB
PHP
Raw Normal View History

.set LOCALID_ATTENDANT, 1
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_MapScripts::
2019-12-07 03:25:46 +01:00
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePalaceCorridor_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_OnFrame:
2019-12-07 03:25:46 +01:00
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePalaceCorridor_EventScript_WalkThroughCorridor
2017-11-10 02:21:31 +01:00
.2byte 0
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_EventScript_WalkThroughCorridor::
2017-11-10 02:21:31 +01:00
delay 16
applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePalaceCorridor_Movement_EnterCorridor
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceCorridor_Movement_EnterCorridor
2017-11-10 02:21:31 +01:00
waitmovement 0
lockall
palace_getcomment
call_if_eq VAR_RESULT, 0, BattleFrontier_BattlePalaceCorridor_EventScript_RandomComment1
call_if_eq VAR_RESULT, 1, BattleFrontier_BattlePalaceCorridor_EventScript_RandomComment2
call_if_eq VAR_RESULT, 2, BattleFrontier_BattlePalaceCorridor_EventScript_RandomComment3
call_if_eq VAR_RESULT, 3, BattleFrontier_BattlePalaceCorridor_EventScript_StreakComment
call_if_eq VAR_RESULT, 4, BattleFrontier_BattlePalaceCorridor_EventScript_LongStreakComment
2017-11-10 02:21:31 +01:00
closemessage
2019-11-24 22:58:40 +01:00
frontier_get FRONTIER_DATA_LVL_MODE
goto_if_eq VAR_RESULT, FRONTIER_LVL_OPEN, BattleFrontier_BattlePalaceCorridor_EventScript_WalkToOpenBattleRoom
applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePalaceCorridor_Movement_AttendantWalkTo50BattleRoom
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceCorridor_Movement_PlayerWalkTo50BattleRoom
2017-11-10 02:21:31 +01:00
waitmovement 0
opendoor 6, 3
waitdooranim
applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePalaceCorridor_Movement_AttendantEnterBattleRoom
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceCorridor_Movement_PlayerEnterBattleRoom
2017-11-10 02:21:31 +01:00
waitmovement 0
closedoor 6, 3
waitdooranim
2019-12-07 03:25:46 +01:00
goto BattleFrontier_BattlePalaceCorridor_EventScript_WarpToBattleRoom
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_EventScript_WalkToOpenBattleRoom::
applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePalaceCorridor_Movement_AttendantWalkToOpenBattleRoom
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceCorridor_Movement_PlayerWalkToOpenBattleRoom
2017-11-10 02:21:31 +01:00
waitmovement 0
opendoor 10, 3
waitdooranim
applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePalaceCorridor_Movement_AttendantEnterBattleRoom
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePalaceCorridor_Movement_PlayerEnterBattleRoom
2017-11-10 02:21:31 +01:00
waitmovement 0
closedoor 10, 3
waitdooranim
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_EventScript_WarpToBattleRoom::
warp MAP_BATTLE_FRONTIER_BATTLE_PALACE_BATTLE_ROOM, 7, 4
2017-11-10 02:21:31 +01:00
waitstate
end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_EventScript_RandomComment1::
2019-12-07 03:25:46 +01:00
msgbox BattleFrontier_BattlePalaceCorridor_Text_PeopleAndMonAreSame, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_EventScript_RandomComment2::
2019-12-07 03:25:46 +01:00
msgbox BattleFrontier_BattlePalaceCorridor_Text_LetMonDoWhatItLikes, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_EventScript_RandomComment3::
2019-12-07 03:25:46 +01:00
msgbox BattleFrontier_BattlePalaceCorridor_Text_MonDifferentWhenCornered, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_EventScript_StreakComment::
2019-12-07 03:25:46 +01:00
msgbox BattleFrontier_BattlePalaceCorridor_Text_BeginningToUnderstandNature, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_EventScript_LongStreakComment::
2019-12-07 03:25:46 +01:00
msgbox BattleFrontier_BattlePalaceCorridor_Text_HeartfeltBondBetweenYouAndMons, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_Movement_EnterCorridor:
walk_up
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_Movement_AttendantWalkTo50BattleRoom:
walk_up
walk_up
walk_left
walk_left
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_Movement_PlayerWalkTo50BattleRoom:
walk_up
walk_up
walk_up
walk_left
walk_left
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_Movement_AttendantWalkToOpenBattleRoom:
walk_up
walk_right
walk_right
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_Movement_PlayerWalkToOpenBattleRoom:
walk_up
walk_up
walk_right
walk_right
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_Movement_PlayerEnterBattleRoom:
walk_up
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_Movement_AttendantEnterBattleRoom:
walk_up
set_invisible
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_Text_PeopleAndMonAreSame:
2017-11-10 02:21:31 +01:00
.string "People and POKéMON, they are but\n"
.string "the same…\p"
.string "Their individual nature makes them\n"
.string "good at certain things, and not good\l"
.string "at others.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_Text_LetMonDoWhatItLikes:
2017-11-10 02:21:31 +01:00
.string "Rather than trying to make a POKéMON\n"
.string "do what it dislikes, try to let it do\l"
.string "what it likes and is good at doing.\p"
2018-12-07 16:41:08 +01:00
.string "Put yourself in the POKéMON's position\n"
2017-11-10 02:21:31 +01:00
.string "and consider what moves it would like.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_Text_MonDifferentWhenCornered:
2018-12-07 16:41:08 +01:00
.string "A POKéMON's nature is a remarkable\n"
2017-11-10 02:21:31 +01:00
.string "thing…\p"
.string "Some POKéMON behave in a completely\n"
.string "different way when they are cornered.$"
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_Text_BeginningToUnderstandNature:
2017-11-10 02:21:31 +01:00
.string "Are you beginning to understand how\n"
2018-12-07 16:41:08 +01:00
.string "a POKéMON's nature makes it behave?$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
BattleFrontier_BattlePalaceCorridor_Text_HeartfeltBondBetweenYouAndMons:
2017-11-10 02:21:31 +01:00
.string "Ah… I see a strong, heartfelt bond\n"
.string "between you and your POKéMON…$"