pokeemerald/data/maps/Route101/scripts.inc

305 lines
6.8 KiB
PHP
Raw Normal View History

.set LOCALID_BIRCH, 2
.set LOCALID_ZIGZAGOON, 4
2021-07-20 21:18:31 +02:00
Route101_MapScripts::
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
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
setobjectxy LOCALID_BIRCH, 0, 15
setobjectxy LOCALID_ZIGZAGOON, 0, 16
applymovement OBJ_EVENT_ID_PLAYER, Route101_Movement_EnterScene
applymovement LOCALID_BIRCH, Route101_Movement_BirchRunAway1
applymovement LOCALID_ZIGZAGOON, Route101_Movement_ZigzagoonChase1
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_ZIGZAGOON, Route101_Movement_ZigzagoonChaseInCircles
applymovement LOCALID_BIRCH, Route101_Movement_BirchRunInCircles
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_BIRCH, Common_Movement_WalkInPlaceFasterRight
2017-11-10 02:21:31 +01:00
waitmovement 0
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
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
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
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
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:
walk_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route101_Movement_PreventExitWest:
walk_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route101_Movement_PreventExitNorth:
walk_down
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route101_Movement_ZigzagoonChaseInCircles:
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:
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.
step_end
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route101_Movement_ZigzagoonFaceBirch:
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:
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
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:
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:
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.
step_end
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route101_Movement_BirchFaceZigzagoon:
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:
walk_up
walk_up
step_end
2021-07-20 21:18:31 +02:00
Route101_Movement_Unused2:
walk_up
walk_left
walk_up
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
removeobject LOCALID_ZIGZAGOON
setobjectxy OBJ_EVENT_ID_PLAYER, 6, 13
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
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
2018-10-19 19:04:47 +02:00
setflag FLAG_HIDE_ROUTE_101_BIRCH_STARTERS_BAG
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
compare VAR_RESULT, MALE
2019-10-22 22:53:49 +02:00
call_if_eq Route101_EventScript_HideMayInBedroom
compare VAR_RESULT, FEMALE
2019-10-22 22:53:49 +02:00
call_if_eq Route101_EventScript_HideBrendanInBedroom
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:
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"
.string "{UP_ARROW} OLDALE TOWN$"
2017-11-10 02:21:31 +01:00