pokeemerald/data/maps/Route101/scripts.inc

302 lines
6.9 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
Route101_MapScripts:: @ 81EBCBA
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
Route101_OnTransition: @ 81EBCC5
2019-10-07 07:13:34 +02:00
call ProfBirch_EventScript_UpdateLocation
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route101_OnFrame: @ 81EBCCB
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
2019-10-22 22:53:49 +02:00
Route101_EventScript_HideMapNamePopup:: @ 81EBCD5
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
2019-10-22 22:53:49 +02:00
Route101_EventScript_StartBirchRescue:: @ 81EBCDE
2017-11-10 02:21:31 +01:00
lockall
2017-12-22 08:46:19 +01:00
playbgm MUS_EVENT0, 1
2019-10-22 22:53:49 +02:00
msgbox Route101_Text_HelpMe, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
setobjectxy 2, 0, 15
setobjectxy 4, 0, 16
applymovement OBJ_EVENT_ID_PLAYER, Route101_Movement_EnterScene
2019-10-22 22:53:49 +02:00
applymovement 2, Route101_Movement_BirchRunAway1
applymovement 4, Route101_Movement_PoochyenaChase1
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-10-22 22:53:49 +02:00
applymovement 4, Route101_Movement_PoochyenaChaseInCircles
applymovement 2, Route101_Movement_BirchRunInCircles
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-10-06 19:55:30 +02:00
applymovement 2, Common_Movement_WalkInPlaceFastestRight
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-10-22 22:53:49 +02:00
applymovement 4, Route101_Movement_PoochyenaFaceBirch
applymovement 2, Route101_Movement_BirchFacePoochyena
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
2019-10-22 22:53:49 +02:00
Route101_EventScript_PreventExitSouth:: @ 81EBD4E
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
2019-10-22 22:53:49 +02:00
Route101_EventScript_PreventExitWest:: @ 81EBD64
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
2019-10-22 22:53:49 +02:00
Route101_EventScript_PreventExitNorth:: @ 81EBD7A
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
2019-10-22 22:53:49 +02:00
Route101_Movement_PreventExitSouth: @ 81EBD90
walk_up
2017-11-10 02:21:31 +01:00
step_end
2019-10-22 22:53:49 +02:00
Route101_Movement_PreventExitWest: @ 81EBD92
walk_right
2017-11-10 02:21:31 +01:00
step_end
2019-10-22 22:53:49 +02:00
Route101_Movement_PreventExitNorth: @ 81EBD94
walk_down
2017-11-10 02:21:31 +01:00
step_end
2019-10-22 22:53:49 +02:00
Route101_Movement_PoochyenaChaseInCircles: @ 81EBD96
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
2019-10-22 22:53:49 +02:00
Route101_Movement_PoochyenaChase1: @ 81EBDB5
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
2019-10-22 22:53:49 +02:00
Route101_Movement_PoochyenaFaceBirch: @ 81EBDBD
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
2019-10-22 22:53:49 +02:00
Route101_Movement_EnterScene: @ 81EBDC2
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_in_place_fastest_left
2017-11-10 02:21:31 +01:00
step_end
2019-10-22 22:53:49 +02:00
Route101_Movement_BirchRunInCircles: @ 81EBDC8
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
2019-10-22 22:53:49 +02:00
Route101_Movement_BirchRunAway1: @ 81EBDE7
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
2019-10-22 22:53:49 +02:00
Route101_Movement_BirchFacePoochyena: @ 81EBDEF
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
2019-10-22 22:53:49 +02:00
Route101_Movement_Unused1: @ 81EBDF4
walk_up
walk_up
step_end
2019-10-22 22:53:49 +02:00
Route101_Movement_Unused2: @ 81EBDF7
walk_up
walk_left
walk_up
step_end
2017-11-10 02:21:31 +01:00
2019-10-22 22:53:49 +02:00
Route101_EventScript_Youngster:: @ 81EBDFB
msgbox Route101_Text_TakeTiredPokemonToPokeCenter, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-10-22 22:53:49 +02:00
Route101_EventScript_Boy:: @ 81EBE04
msgbox Route101_Text_WildPokemonInTallGrass, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2019-10-22 22:53:49 +02:00
Route101_EventScript_RouteSign:: @ 81EBE0D
msgbox Route101_Text_RouteSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2019-10-22 22:53:49 +02:00
Route101_EventScript_BirchsBag:: @ 81EBE16
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
2017-11-10 02:21:31 +01:00
removeobject 4
setobjectxy OBJ_EVENT_ID_PLAYER, 6, 13
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
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
2019-10-22 22:53:49 +02:00
applymovement 2, 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, 255, 6, 5
2017-11-10 02:21:31 +01:00
waitstate
release
end
2019-10-22 22:53:49 +02:00
Route101_EventScript_HideMayInBedroom:: @ 81EBE85
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
2019-10-22 22:53:49 +02:00
Route101_EventScript_HideBrendanInBedroom:: @ 81EBE89
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
2019-10-22 22:53:49 +02:00
Route101_Movement_BirchApproachPlayer: @ 81EBE8D
walk_right
2017-11-10 02:21:31 +01:00
step_end
2019-10-22 22:53:49 +02:00
Route101_Text_HelpMe: @ 81EBE8F
2017-11-10 02:21:31 +01:00
.string "H-help me!$"
2019-10-22 22:53:49 +02:00
Route101_Text_PleaseHelp: @ 81EBE9A
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
2019-10-22 22:53:49 +02:00
Route101_Text_DontLeaveMe: @ 81EBEDF
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
2019-10-22 22:53:49 +02:00
Route101_Text_YouSavedMe: @ 81EBF12
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?$"
2019-10-22 22:53:49 +02:00
Route101_Text_TakeTiredPokemonToPokeCenter: @ 81EBFDD
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.$"
2019-10-22 22:53:49 +02:00
Route101_Text_WildPokemonInTallGrass: @ 81EC04A
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.$"
2019-10-22 22:53:49 +02:00
Route101_Text_RouteSign: @ 81EC0C8
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