2020-06-21 07:56:57 +02:00
|
|
|
.set LOCALID_BIRCH, 2
|
|
|
|
.set LOCALID_ZIGZAGOON, 4
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_MapScripts::
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, Route101_OnTransition
|
2019-11-12 07:57:39 +01:00
|
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route101_OnFrame
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_OnTransition:
|
2019-10-07 07:13:34 +02:00
|
|
|
call ProfBirch_EventScript_UpdateLocation
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_OnFrame:
|
2019-10-22 22:53:49 +02:00
|
|
|
map_script_2 VAR_ROUTE101_STATE, 0, Route101_EventScript_HideMapNamePopup
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_EventScript_HideMapNamePopup::
|
2019-03-10 13:10:59 +01:00
|
|
|
setflag FLAG_HIDE_MAP_NAME_POPUP
|
2019-02-22 10:01:38 +01:00
|
|
|
setvar VAR_ROUTE101_STATE, 1
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_EventScript_StartBirchRescue::
|
2017-11-10 02:21:31 +01:00
|
|
|
lockall
|
2021-05-21 22:08:00 +02:00
|
|
|
playbgm MUS_HELP, TRUE
|
2019-10-22 22:53:49 +02:00
|
|
|
msgbox Route101_Text_HelpMe, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
2020-06-21 07:56:57 +02:00
|
|
|
setobjectxy LOCALID_BIRCH, 0, 15
|
|
|
|
setobjectxy LOCALID_ZIGZAGOON, 0, 16
|
2019-11-21 05:12:51 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, Route101_Movement_EnterScene
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_BIRCH, Route101_Movement_BirchRunAway1
|
|
|
|
applymovement LOCALID_ZIGZAGOON, Route101_Movement_ZigzagoonChase1
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_ZIGZAGOON, Route101_Movement_ZigzagoonChaseInCircles
|
|
|
|
applymovement LOCALID_BIRCH, Route101_Movement_BirchRunInCircles
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2021-11-04 19:22:28 +01:00
|
|
|
applymovement LOCALID_BIRCH, Common_Movement_WalkInPlaceFasterRight
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_ZIGZAGOON, Route101_Movement_ZigzagoonFaceBirch
|
|
|
|
applymovement LOCALID_BIRCH, Route101_Movement_BirchFaceZigzagoon
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2019-10-22 22:53:49 +02:00
|
|
|
msgbox Route101_Text_PleaseHelp, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
2019-02-22 10:01:38 +01:00
|
|
|
setvar VAR_ROUTE101_STATE, 2
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_EventScript_PreventExitSouth::
|
2017-11-10 02:21:31 +01:00
|
|
|
lockall
|
2019-10-22 22:53:49 +02:00
|
|
|
msgbox Route101_Text_DontLeaveMe, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
2019-11-21 05:12:51 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, Route101_Movement_PreventExitSouth
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_EventScript_PreventExitWest::
|
2017-11-10 02:21:31 +01:00
|
|
|
lockall
|
2019-10-22 22:53:49 +02:00
|
|
|
msgbox Route101_Text_DontLeaveMe, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
2019-11-21 05:12:51 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, Route101_Movement_PreventExitWest
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_EventScript_PreventExitNorth::
|
2017-11-10 02:21:31 +01:00
|
|
|
lockall
|
2019-10-22 22:53:49 +02:00
|
|
|
msgbox Route101_Text_DontLeaveMe, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
closemessage
|
2019-11-21 05:12:51 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, Route101_Movement_PreventExitNorth
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Movement_PreventExitSouth:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Movement_PreventExitWest:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_right
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Movement_PreventExitNorth:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Movement_ZigzagoonChaseInCircles:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_fast_up
|
|
|
|
walk_fast_up
|
|
|
|
walk_fast_up
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_down
|
|
|
|
walk_fast_down
|
|
|
|
walk_fast_left
|
|
|
|
walk_fast_left
|
|
|
|
walk_fast_left
|
|
|
|
walk_fast_up
|
|
|
|
walk_fast_up
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_down
|
|
|
|
walk_fast_down
|
|
|
|
walk_fast_left
|
|
|
|
walk_fast_left
|
|
|
|
walk_fast_left
|
|
|
|
walk_fast_up
|
|
|
|
walk_fast_up
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_down
|
|
|
|
walk_fast_down
|
|
|
|
walk_fast_left
|
|
|
|
walk_fast_left
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Movement_ZigzagoonChase1:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_fast_up
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_up
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-10-22 22:53:49 +02:00
|
|
|
@ Leftover data? This command is unused.
|
2017-11-10 08:36:41 +01:00
|
|
|
step_end
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Movement_ZigzagoonFaceBirch:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_in_place_fast_left
|
|
|
|
walk_in_place_fast_left
|
|
|
|
walk_in_place_fast_left
|
|
|
|
walk_in_place_fast_left
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Movement_EnterScene:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_fast_up
|
|
|
|
walk_fast_up
|
|
|
|
walk_fast_up
|
|
|
|
walk_fast_up
|
2021-11-04 19:22:28 +01:00
|
|
|
walk_in_place_faster_left
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Movement_BirchRunInCircles:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_fast_up
|
|
|
|
walk_fast_up
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_down
|
|
|
|
walk_fast_down
|
|
|
|
walk_fast_left
|
|
|
|
walk_fast_left
|
|
|
|
walk_fast_left
|
|
|
|
walk_fast_up
|
|
|
|
walk_fast_up
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_down
|
|
|
|
walk_fast_down
|
|
|
|
walk_fast_left
|
|
|
|
walk_fast_left
|
|
|
|
walk_fast_left
|
|
|
|
walk_fast_up
|
|
|
|
walk_fast_up
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_down
|
|
|
|
walk_fast_down
|
|
|
|
walk_fast_left
|
|
|
|
walk_fast_left
|
|
|
|
walk_fast_left
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Movement_BirchRunAway1:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_right
|
|
|
|
walk_fast_up
|
|
|
|
walk_fast_up
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-10-22 22:53:49 +02:00
|
|
|
@ Leftover data? This command is unused.
|
2017-11-10 08:36:41 +01:00
|
|
|
step_end
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Movement_BirchFaceZigzagoon:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_in_place_fast_right
|
|
|
|
walk_in_place_fast_right
|
|
|
|
walk_in_place_fast_right
|
|
|
|
walk_in_place_fast_right
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Movement_Unused1:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_up
|
2017-11-10 08:36:41 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Movement_Unused2:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_left
|
|
|
|
walk_up
|
2017-11-10 08:36:41 +01:00
|
|
|
step_end
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_EventScript_Youngster::
|
2019-10-22 22:53:49 +02:00
|
|
|
msgbox Route101_Text_TakeTiredPokemonToPokeCenter, MSGBOX_NPC
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_EventScript_Boy::
|
2019-10-22 22:53:49 +02:00
|
|
|
msgbox Route101_Text_WildPokemonInTallGrass, MSGBOX_NPC
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_EventScript_RouteSign::
|
2019-10-22 22:53:49 +02:00
|
|
|
msgbox Route101_Text_RouteSign, MSGBOX_SIGN
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_EventScript_BirchsBag::
|
2017-11-10 02:21:31 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
setflag FLAG_SYS_POKEMON_GET
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_RESCUED_BIRCH
|
2019-12-15 17:42:50 +01:00
|
|
|
fadescreen FADE_TO_BLACK
|
2020-06-21 07:56:57 +02:00
|
|
|
removeobject LOCALID_ZIGZAGOON
|
2019-11-21 05:12:51 +01:00
|
|
|
setobjectxy OBJ_EVENT_ID_PLAYER, 6, 13
|
2021-11-04 19:22:28 +01:00
|
|
|
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterLeft
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2017-11-29 19:54:15 +01:00
|
|
|
special ChooseStarter
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
2020-06-21 07:56:57 +02:00
|
|
|
applymovement LOCALID_BIRCH, Route101_Movement_BirchApproachPlayer
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2019-10-22 22:53:49 +02:00
|
|
|
msgbox Route101_Text_YouSavedMe, MSGBOX_DEFAULT
|
2017-12-16 00:08:23 +01:00
|
|
|
special HealPlayerParty
|
2018-10-19 19:04:47 +02:00
|
|
|
setflag FLAG_HIDE_ROUTE_101_BIRCH_ZIGZAGOON_BATTLE
|
2018-10-18 21:28:59 +02:00
|
|
|
clearflag FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_BIRCH
|
2023-11-10 10:15:00 +01:00
|
|
|
//setflag FLAG_HIDE_ROUTE_101_BIRCH_STARTERS_BAG
|
2019-02-22 10:01:38 +01:00
|
|
|
setvar VAR_BIRCH_LAB_STATE, 2
|
|
|
|
setvar VAR_ROUTE101_STATE, 3
|
2019-03-10 13:10:59 +01:00
|
|
|
clearflag FLAG_HIDE_MAP_NAME_POPUP
|
2017-11-10 02:21:31 +01:00
|
|
|
checkplayergender
|
2021-11-19 05:06:30 +01:00
|
|
|
call_if_eq VAR_RESULT, MALE, Route101_EventScript_HideMayInBedroom
|
|
|
|
call_if_eq VAR_RESULT, FEMALE, Route101_EventScript_HideBrendanInBedroom
|
2021-11-15 18:04:54 +01:00
|
|
|
warp MAP_LITTLEROOT_TOWN_PROFESSOR_BIRCHS_LAB, 6, 5
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_EventScript_HideMayInBedroom::
|
2018-10-18 21:28:59 +02:00
|
|
|
setflag FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_RIVAL_BEDROOM
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_EventScript_HideBrendanInBedroom::
|
2018-10-18 21:28:59 +02:00
|
|
|
setflag FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_RIVAL_BEDROOM
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Movement_BirchApproachPlayer:
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_right
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Text_HelpMe:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "H-help me!$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Text_PleaseHelp:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Hello! You over there!\n"
|
|
|
|
.string "Please! Help!\p"
|
|
|
|
.string "In my BAG!\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "There's a POKé BALL!$"
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Text_DontLeaveMe:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Wh-Where are you going?!\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "Don't leave me like this!$"
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Text_YouSavedMe:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "PROF. BIRCH: Whew…\p"
|
|
|
|
.string "I was in the tall grass studying wild\n"
|
|
|
|
.string "POKéMON when I was jumped.\p"
|
|
|
|
.string "You saved me.\n"
|
|
|
|
.string "Thanks a lot!\p"
|
|
|
|
.string "Oh?\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "Hi, you're {PLAYER}{KUN}!\p"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "This is not the place to chat, so come\n"
|
|
|
|
.string "by my POKéMON LAB later, okay?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Text_TakeTiredPokemonToPokeCenter:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "If POKéMON get tired, take them to\n"
|
|
|
|
.string "a POKéMON CENTER.\p"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "There's a POKéMON CENTER in OLDALE\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "TOWN right close by.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Text_WildPokemonInTallGrass:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Wild POKéMON will jump out at you in\n"
|
|
|
|
.string "tall grass.\p"
|
|
|
|
.string "If you want to catch POKéMON, you have\n"
|
|
|
|
.string "to go into the tall grass and search.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route101_Text_RouteSign:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "ROUTE 101\n"
|
2018-07-25 06:18:23 +02:00
|
|
|
.string "{UP_ARROW} OLDALE TOWN$"
|