1002 lines
39 KiB
PHP
Raw Normal View History

.set LOCALID_AIDE, 1
.set LOCALID_BIRCH, 2
.set LOCALID_RIVAL, 3
.set LOCALID_BALL_CYNDAQUIL, 4
.set LOCALID_BALL_TOTODILE, 5
.set LOCALID_BALL_CHIKORITA, 6
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_MapScripts::
2019-11-08 02:03:45 -05:00
map_script MAP_SCRIPT_ON_TRANSITION, LittlerootTown_ProfessorBirchsLab_OnTransition
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, LittlerootTown_ProfessorBirchsLab_OnWarp
map_script MAP_SCRIPT_ON_FRAME_TABLE, LittlerootTown_ProfessorBirchsLab_OnFrame
2017-11-09 19:21:31 -06:00
.byte 0
2019-11-08 02:03:45 -05:00
@ State descriptions for VAR_DEX_UPGRADE_JOHTO_STARTER_STATE
@ 1: Beat Elite Four, Dex upgrade ready
@ 2: Received National Dex
@ 3: Left lab after receiving National Dex
@ 4: Entered lab after catching all Hoenn mons
@ 5: Birch told player to choose Johto starter
@ 6: Chose Johto starter
@ State descriptions for VAR_BIRCH_LAB_STATE
@ 1: Never occurs
@ 2: Chose starter
@ 3: Received starter in lab
@ 4: Defeated rival on Route 103
@ 5: Received pokedex
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_OnTransition:
call Common_EventScript_SetupRivalGfxId
2019-10-07 01:13:34 -04:00
call ProfBirch_EventScript_UpdateLocation
goto_if_ge VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6, LittlerootTown_ProfessorBirchsLab_EventScript_SetAfterJohtoStarterLayout
goto_if_ge VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 4, LittlerootTown_ProfessorBirchsLab_EventScript_SetJohtoStarterLayout
goto_if_eq VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 3, LittlerootTown_ProfessorBirchsLab_EventScript_CheckReadyForJohtoStarter
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_CheckReadyForJohtoStarter::
2019-01-19 23:04:33 +01:00
specialvar VAR_RESULT, HasAllHoennMons
goto_if_eq VAR_RESULT, TRUE, LittlerootTown_ProfessorBirchsLab_EventScript_SetReadyForJohtoStarter
setobjectmovementtype LOCALID_RIVAL, MOVEMENT_TYPE_WANDER_UP_AND_DOWN
setobjectxyperm LOCALID_RIVAL, 5, 10
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_SetReadyForJohtoStarter::
2019-08-03 14:12:48 -04:00
setvar VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 4
2019-11-08 02:03:45 -05:00
goto LittlerootTown_ProfessorBirchsLab_EventScript_SetJohtoStarterLayout
2017-11-09 19:21:31 -06:00
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_SetJohtoStarterLayout::
setmaplayoutindex LAYOUT_LITTLEROOT_TOWN_PROFESSOR_BIRCHS_LAB_WITH_TABLE
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_SetAfterJohtoStarterLayout::
setmaplayoutindex LAYOUT_LITTLEROOT_TOWN_PROFESSOR_BIRCHS_LAB_WITH_TABLE
setobjectmovementtype LOCALID_RIVAL, MOVEMENT_TYPE_WANDER_UP_AND_DOWN
setobjectxyperm LOCALID_RIVAL, 5, 10
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_OnWarp:
2019-11-08 02:03:45 -05:00
map_script_2 VAR_BIRCH_LAB_STATE, 2, LittlerootTown_ProfessorBirchsLab_EventScript_SetPlayerPosForReceiveStarter
map_script_2 VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 1, LittlerootTown_ProfessorBirchsLab_EventScript_SetObjectPosForDexUpgrade
map_script_2 VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 2, LittlerootTown_ProfessorBirchsLab_EventScript_SetObjectPosForDexUpgrade
map_script_2 VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 3, LittlerootTown_ProfessorBirchsLab_EventScript_AddRivalObject
map_script_2 VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6, LittlerootTown_ProfessorBirchsLab_EventScript_AddRivalObject
map_script_2 VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 4, LittlerootTown_ProfessorBirchsLab_EventScript_SetObjectPosForJohtoStarters
map_script_2 VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 5, LittlerootTown_ProfessorBirchsLab_EventScript_SetObjectPosForJohtoStarters
2017-11-09 19:21:31 -06:00
.2byte 0
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_SetPlayerPosForReceiveStarter::
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_SetObjectPosForDexUpgrade::
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
addobject LOCALID_BIRCH
addobject LOCALID_RIVAL
turnobject LOCALID_RIVAL, DIR_NORTH
setobjectxy LOCALID_RIVAL, 5, 5
turnobject LOCALID_BIRCH, DIR_SOUTH
setobjectxy LOCALID_BIRCH, 6, 4
turnobject LOCALID_AIDE, DIR_EAST
setobjectxy LOCALID_AIDE, 10, 10
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_AddRivalObject::
addobject LOCALID_RIVAL
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_SetObjectPosForJohtoStarters::
addobject LOCALID_BALL_CYNDAQUIL
addobject LOCALID_BALL_TOTODILE
addobject LOCALID_BALL_CHIKORITA
addobject LOCALID_RIVAL
turnobject LOCALID_BALL_CYNDAQUIL, DIR_SOUTH
setobjectxy LOCALID_BALL_CYNDAQUIL, 8, 4
turnobject LOCALID_BALL_TOTODILE, DIR_SOUTH
setobjectxy LOCALID_BALL_TOTODILE, 9, 4
turnobject LOCALID_BALL_CHIKORITA, DIR_SOUTH
setobjectxy LOCALID_BALL_CHIKORITA, 10, 4
turnobject LOCALID_BIRCH, DIR_SOUTH
setobjectxy LOCALID_BIRCH, 6, 4
turnobject LOCALID_RIVAL, DIR_EAST
setobjectxy LOCALID_RIVAL, 5, 5
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_OnFrame:
2019-11-08 02:03:45 -05:00
map_script_2 VAR_BIRCH_LAB_STATE, 2, LittlerootTown_ProfessorBirchsLab_EventScript_GiveStarterEvent
map_script_2 VAR_BIRCH_LAB_STATE, 4, LittlerootTown_ProfessorBirchsLab_EventScript_GivePokedexEvent
map_script_2 VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 1, LittlerootTown_ProfessorBirchsLab_EventScript_UpgradeToNationalDex
map_script_2 VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 4, LittlerootTown_ProfessorBirchsLab_EventScript_ChooseJohtoStarter
2017-11-09 19:21:31 -06:00
.2byte 0
2019-11-08 02:03:45 -05:00
@ The starter is technically given prior to this on Route 101 by special ChooseStarter
@ This is just where the game tells you its yours and lets you nickname it
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_GiveStarterEvent::
2017-11-09 19:21:31 -06:00
lockall
bufferleadmonspeciesname STR_VAR_1
2019-11-08 02:03:45 -05:00
message LittlerootTown_ProfessorBirchsLab_Text_LikeYouToHavePokemon
2017-11-09 19:21:31 -06:00
waitmessage
2020-08-20 18:02:00 -04:00
playfanfare MUS_OBTAIN_ITEM
2017-11-09 19:21:31 -06:00
waitfanfare
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_WhyNotGiveNicknameToMon, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, LittlerootTown_ProfessorBirchsLab_EventScript_NicknameStarter
goto_if_eq VAR_RESULT, NO, LittlerootTown_ProfessorBirchsLab_EventScript_GoSeeRival
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_NicknameStarter::
2017-11-09 19:21:31 -06:00
setvar VAR_0x8004, 0
2019-08-14 23:38:42 -04:00
call Common_EventScript_NameReceivedPartyMon
2019-11-08 02:03:45 -05:00
goto LittlerootTown_ProfessorBirchsLab_EventScript_GoSeeRival
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_GoSeeRival::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_MightBeGoodIdeaToGoSeeRival, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, LittlerootTown_ProfessorBirchsLab_EventScript_AgreeToSeeRival
goto_if_eq VAR_RESULT, NO, LittlerootTown_ProfessorBirchsLab_EventScript_DeclineSeeingRival
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_AgreeToSeeRival::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_GetRivalToTeachYou, MSGBOX_DEFAULT
2018-10-19 13:04:47 -04:00
clearflag FLAG_HIDE_ROUTE_101_BOY
setvar VAR_BIRCH_LAB_STATE, 3
2017-11-09 19:21:31 -06:00
releaseall
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_DeclineSeeingRival::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_DontBeThatWay, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, LittlerootTown_ProfessorBirchsLab_EventScript_AgreeToSeeRival
goto_if_eq VAR_RESULT, NO, LittlerootTown_ProfessorBirchsLab_EventScript_DeclineSeeingRival
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_GivePokedexEvent::
2017-11-09 19:21:31 -06:00
lockall
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_ProfessorBirchsLab_Movement_PlayerEnterLabForPokedex
2017-11-09 19:21:31 -06:00
waitmovement 0
2019-11-08 02:03:45 -05:00
goto LittlerootTown_ProfessorBirchsLab_EventScript_GivePokedex
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Movement_PlayerEnterLabForPokedex:
walk_up
walk_up
walk_up
walk_up
walk_up
walk_up
walk_up
2017-11-09 19:21:31 -06:00
step_end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_UpgradeToNationalDex::
2017-11-09 19:21:31 -06:00
lockall
delay 30
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_OtherRegionsUpgradeToNational, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
closemessage
applymovement LOCALID_BIRCH, LittlerootTown_ProfessorBirchsLab_Movement_BirchRetrievePokedexes
2017-11-09 19:21:31 -06:00
waitmovement 0
delay 20
2020-08-20 18:02:00 -04:00
playse SE_CLICK
2017-11-09 19:21:31 -06:00
delay 10
2020-08-20 18:02:00 -04:00
playse SE_CLICK
2017-11-09 19:21:31 -06:00
delay 10
2020-08-20 18:02:00 -04:00
playse SE_CLICK
2017-11-09 19:21:31 -06:00
delay 10
2020-08-20 18:02:00 -04:00
playse SE_CLICK
2017-11-09 19:21:31 -06:00
delay 20
applymovement LOCALID_RIVAL, Common_Movement_WalkInPlaceFasterRight
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterLeft
2017-11-09 19:21:31 -06:00
waitmovement 0
checkplayergender
call_if_eq VAR_RESULT, MALE, LittlerootTown_ProfessorBirchsLab_EventScript_MayUpgradeComment
call_if_eq VAR_RESULT, FEMALE, LittlerootTown_ProfessorBirchsLab_EventScript_BrendanUpgradeComment
2017-11-09 19:21:31 -06:00
playse SE_PC_ON
waitse
delay 20
applymovement LOCALID_BIRCH, LittlerootTown_ProfessorBirchsLab_Movement_BirchReturnPokedex
2017-11-09 19:21:31 -06:00
waitmovement 0
applymovement LOCALID_RIVAL, Common_Movement_WalkInPlaceFasterUp
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterUp
2017-11-09 19:21:31 -06:00
waitmovement 0
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_OkayAllDone, MSGBOX_DEFAULT
2020-08-20 18:02:00 -04:00
playfanfare MUS_OBTAIN_ITEM
2019-11-08 02:03:45 -05:00
message LittlerootTown_ProfessorBirchsLab_Text_PokedexUpgradedToNational
2017-11-09 19:21:31 -06:00
waitmessage
waitfanfare
setflag FLAG_SYS_NATIONAL_DEX
special EnableNationalPokedex
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_GrassyPatchWaiting2, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
closemessage
2018-10-18 15:28:59 -04:00
setflag FLAG_HIDE_LITTLEROOT_TOWN_BIRCH
setflag FLAG_HIDE_LITTLEROOT_TOWN_RIVAL
2019-08-03 14:12:48 -04:00
setvar VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 2
setvar VAR_SCOTT_BF_CALL_STEP_COUNTER, 0
setflag FLAG_SCOTT_CALL_BATTLE_FRONTIER
2017-11-09 19:21:31 -06:00
releaseall
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_MayUpgradeComment::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_MayUpgradeSoCool, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
closemessage
return
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_BrendanUpgradeComment::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_BrendanYouCanThankMe, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
closemessage
return
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Movement_BirchRetrievePokedexes:
walk_left
walk_in_place_faster_down
delay_16
delay_16
walk_right
walk_in_place_faster_down
delay_16
delay_16
walk_right
walk_down
walk_down
walk_down
walk_down
walk_right
walk_right
walk_right
walk_in_place_faster_up
2017-11-09 19:21:31 -06:00
step_end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Movement_BirchReturnPokedex:
walk_left
walk_left
walk_left
walk_up
walk_up
walk_up
walk_up
walk_left
walk_in_place_faster_down
2017-11-09 19:21:31 -06:00
step_end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_ChooseJohtoStarter::
2017-11-09 19:21:31 -06:00
lockall
applymovement OBJ_EVENT_ID_PLAYER, LittlerootTown_ProfessorBirchsLab_Movement_PlayerEnterLabForJohtoStarter
2017-11-09 19:21:31 -06:00
waitmovement 0
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_CompletedDexChoosePokemon, MSGBOX_DEFAULT
2019-08-03 14:12:48 -04:00
setvar VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 5
2017-11-09 19:21:31 -06:00
releaseall
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Movement_PlayerEnterLabForJohtoStarter:
walk_up
walk_up
walk_up
walk_up
walk_up
walk_up
walk_up
2017-11-09 19:21:31 -06:00
step_end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_Aide::
2017-11-09 19:21:31 -06:00
lock
faceplayer
goto_if_ge VAR_BIRCH_LAB_STATE, 3, LittlerootTown_ProfessorBirchsLab_EventScript_AideReceivedStarter
2019-11-08 02:03:45 -05:00
goto_if_set FLAG_BIRCH_AIDE_MET, LittlerootTown_ProfessorBirchsLab_EventScript_AideAlreadyMet
msgbox LittlerootTown_ProfessorBirchsLab_Text_BirchAwayOnFieldwork, MSGBOX_DEFAULT
2019-01-02 21:12:43 +00:00
setflag FLAG_BIRCH_AIDE_MET
2017-11-09 19:21:31 -06:00
release
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_AideAlreadyMet::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_BirchIsntOneForDeskWork, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
release
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_AideReceivedStarter::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_BirchEnjoysRivalsHelpToo, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
release
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_Cyndaquil::
2017-11-09 19:21:31 -06:00
release
goto_if_ge VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6, LittlerootTown_ProfessorBirchsLab_EventScript_AlreadyChoseJohtoStarter
applymovement LOCALID_BIRCH, Common_Movement_WalkInPlaceFasterRight
2017-11-09 19:21:31 -06:00
waitmovement 0
showmonpic SPECIES_CYNDAQUIL, 10, 3
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_YoullTakeCyndaquil, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, LittlerootTown_ProfessorBirchsLab_EventScript_TakeYourTime
2019-11-08 02:03:45 -05:00
goto LittlerootTown_ProfessorBirchsLab_EventScript_GiveCyndaquil
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_Totodile::
2017-11-09 19:21:31 -06:00
release
goto_if_ge VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6, LittlerootTown_ProfessorBirchsLab_EventScript_AlreadyChoseJohtoStarter
applymovement LOCALID_BIRCH, Common_Movement_WalkInPlaceFasterRight
2017-11-09 19:21:31 -06:00
waitmovement 0
showmonpic SPECIES_TOTODILE, 10, 3
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_YoullTakeTotodile, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, LittlerootTown_ProfessorBirchsLab_EventScript_TakeYourTime
2019-11-08 02:03:45 -05:00
goto LittlerootTown_ProfessorBirchsLab_EventScript_GiveTotodile
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_Chikorita::
2017-11-09 19:21:31 -06:00
release
goto_if_ge VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6, LittlerootTown_ProfessorBirchsLab_EventScript_AlreadyChoseJohtoStarter
applymovement LOCALID_BIRCH, Common_Movement_WalkInPlaceFasterRight
2017-11-09 19:21:31 -06:00
waitmovement 0
showmonpic SPECIES_CHIKORITA, 10, 3
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_YoullTakeChikorita, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, LittlerootTown_ProfessorBirchsLab_EventScript_TakeYourTime
2019-11-08 02:03:45 -05:00
goto LittlerootTown_ProfessorBirchsLab_EventScript_GiveChikorita
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_AlreadyChoseJohtoStarter::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_BetterLeaveOthersAlone, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
releaseall
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_TakeYourTime::
hidemonpic
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_TakeYourTimeAllInvaluable, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
releaseall
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_GiveCyndaquil::
bufferspeciesname STR_VAR_1, SPECIES_CYNDAQUIL
setvar VAR_TEMP_1, SPECIES_CYNDAQUIL
givemon SPECIES_CYNDAQUIL, 5
goto_if_eq VAR_RESULT, MON_GIVEN_TO_PARTY, LittlerootTown_ProfessorBirchsLab_EventScript_SendCyndaquilToParty
goto_if_eq VAR_RESULT, MON_GIVEN_TO_PC, LittlerootTown_ProfessorBirchsLab_EventScript_SendCyndaquilToPC
hidemonpic
2019-08-14 23:38:42 -04:00
goto Common_EventScript_NoMoreRoomForPokemon
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_SendCyndaquilToParty::
2019-11-08 02:03:45 -05:00
call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter
removeobject LOCALID_BALL_CYNDAQUIL
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedCyndaquil
2019-08-14 23:38:42 -04:00
call Common_EventScript_GetGiftMonPartySlot
call Common_EventScript_NameReceivedPartyMon
2019-11-08 02:03:45 -05:00
goto LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedCyndaquil
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_SendCyndaquilToPC::
2019-11-08 02:03:45 -05:00
call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter
removeobject LOCALID_BALL_CYNDAQUIL
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, LittlerootTown_ProfessorBirchsLab_EventScript_CyndaquilTransferredToPC
2019-08-14 23:38:42 -04:00
call Common_EventScript_NameReceivedBoxMon
2019-11-08 02:03:45 -05:00
goto LittlerootTown_ProfessorBirchsLab_EventScript_CyndaquilTransferredToPC
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_CyndaquilTransferredToPC::
2019-10-22 18:07:08 -04:00
call Common_EventScript_TransferredToPC
2019-11-08 02:03:45 -05:00
goto LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedCyndaquil
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedCyndaquil::
hidemonpic
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_GrassyPatchWaiting, MSGBOX_DEFAULT
2019-08-03 14:12:48 -04:00
setvar VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6
2017-11-09 19:21:31 -06:00
releaseall
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_GiveTotodile::
bufferspeciesname STR_VAR_1, SPECIES_TOTODILE
setvar VAR_TEMP_1, SPECIES_TOTODILE
givemon SPECIES_TOTODILE, 5
goto_if_eq VAR_RESULT, MON_GIVEN_TO_PARTY, LittlerootTown_ProfessorBirchsLab_EventScript_SendTotodileToParty
goto_if_eq VAR_RESULT, MON_GIVEN_TO_PC, LittlerootTown_ProfessorBirchsLab_EventScript_SendTotodileToPC
hidemonpic
2019-08-14 23:38:42 -04:00
goto Common_EventScript_NoMoreRoomForPokemon
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_SendTotodileToParty::
2019-11-08 02:03:45 -05:00
call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter
removeobject LOCALID_BALL_TOTODILE
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedTotodile
2019-08-14 23:38:42 -04:00
call Common_EventScript_GetGiftMonPartySlot
call Common_EventScript_NameReceivedPartyMon
2019-11-08 02:03:45 -05:00
goto LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedTotodile
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_SendTotodileToPC::
2019-11-08 02:03:45 -05:00
call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter
removeobject LOCALID_BALL_TOTODILE
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, LittlerootTown_ProfessorBirchsLab_EventScript_TotodileTransferredToPC
2019-08-14 23:38:42 -04:00
call Common_EventScript_NameReceivedBoxMon
2019-11-08 02:03:45 -05:00
goto LittlerootTown_ProfessorBirchsLab_EventScript_TotodileTransferredToPC
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_TotodileTransferredToPC::
2019-10-22 18:07:08 -04:00
call Common_EventScript_TransferredToPC
2019-11-08 02:03:45 -05:00
goto LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedTotodile
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedTotodile::
hidemonpic
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_GrassyPatchWaiting, MSGBOX_DEFAULT
2019-08-03 14:12:48 -04:00
setvar VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6
2017-11-09 19:21:31 -06:00
releaseall
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_GiveChikorita::
bufferspeciesname STR_VAR_1, SPECIES_CHIKORITA
setvar VAR_TEMP_1, SPECIES_CHIKORITA
givemon SPECIES_CHIKORITA, 5
goto_if_eq VAR_RESULT, MON_GIVEN_TO_PARTY, LittlerootTown_ProfessorBirchsLab_EventScript_SendChikoritaToParty
goto_if_eq VAR_RESULT, MON_GIVEN_TO_PC, LittlerootTown_ProfessorBirchsLab_EventScript_SendChikoritaToPC
hidemonpic
2019-08-14 23:38:42 -04:00
goto Common_EventScript_NoMoreRoomForPokemon
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_SendChikoritaToParty::
2019-11-08 02:03:45 -05:00
call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter
removeobject LOCALID_BALL_CHIKORITA
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedChikorita
2019-08-14 23:38:42 -04:00
call Common_EventScript_GetGiftMonPartySlot
call Common_EventScript_NameReceivedPartyMon
2019-11-08 02:03:45 -05:00
goto LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedChikorita
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_SendChikoritaToPC::
2019-11-08 02:03:45 -05:00
call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter
removeobject LOCALID_BALL_CHIKORITA
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, LittlerootTown_ProfessorBirchsLab_EventScript_ChikoritaTransferredToPC
2019-08-14 23:38:42 -04:00
call Common_EventScript_NameReceivedBoxMon
2019-11-08 02:03:45 -05:00
goto LittlerootTown_ProfessorBirchsLab_EventScript_ChikoritaTransferredToPC
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_ChikoritaTransferredToPC::
2019-10-22 18:07:08 -04:00
call Common_EventScript_TransferredToPC
2019-11-08 02:03:45 -05:00
goto LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedChikorita
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedChikorita::
hidemonpic
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_GrassyPatchWaiting, MSGBOX_DEFAULT
2019-08-03 14:12:48 -04:00
setvar VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6
2017-11-09 19:21:31 -06:00
releaseall
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_ReceivedJohtoStarter::
2020-08-20 18:02:00 -04:00
playfanfare MUS_OBTAIN_ITEM
2019-11-08 02:03:45 -05:00
message LittlerootTown_ProfessorBirchsLab_Text_ReceivedJohtoStarter
2017-11-09 19:21:31 -06:00
waitmessage
waitfanfare
return
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_Birch::
2017-11-09 19:21:31 -06:00
lock
faceplayer
goto_if_eq VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 5, LittlerootTown_ProfessorBirchsLab_EventScript_CanHaveAnyOneOfRarePokemon
goto_if_eq VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 2, LittlerootTown_ProfessorBirchsLab_EventScript_GrassyPatchWaiting
2019-11-08 02:03:45 -05:00
goto_if_unset FLAG_HAS_MATCH_CALL, LittlerootTown_ProfessorBirchsLab_EventScript_TryRatePokedexOrRegister
2019-10-07 01:13:34 -04:00
goto_if_unset FLAG_ENABLE_PROF_BIRCH_MATCH_CALL, EventScript_RegisterProfBirch
2019-11-08 02:03:45 -05:00
goto LittlerootTown_ProfessorBirchsLab_EventScript_TryRatePokedexOrRegister
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_CanHaveAnyOneOfRarePokemon::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_CanHaveAnyOneOfRarePokemon, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
release
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_GrassyPatchWaiting::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_GrassyPatchWaiting2, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
release
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_TryRatePokedexOrRegister::
2019-10-07 01:13:34 -04:00
goto_if_unset FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_UNKNOWN_0x380, ProfBirch_EventScript_RatePokedexOrRegister
goto_if_eq VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 3, ProfBirch_EventScript_RatePokedexOrRegister
goto_if_ge VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6, ProfBirch_EventScript_RatePokedexOrRegister
goto_if_eq VAR_BIRCH_LAB_STATE, 5, LittlerootTown_ProfessorBirchsLab_EventScript_PokemonAwait
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_BirchRivalGoneHome, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
release
end
2021-07-20 15:18:31 -04:00
EventScript_RegisterProfBirch::
2019-11-08 02:03:45 -05:00
msgbox MatchCall_Text_BirchRegisterCall, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
closemessage
delay 30
2020-08-20 18:02:00 -04:00
playfanfare MUS_REGISTER_MATCH_CALL
2019-11-08 02:03:45 -05:00
msgbox MatchCall_Text_RegisteredBirch, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
waitfanfare
closemessage
delay 30
2019-01-02 21:12:43 +00:00
setflag FLAG_ENABLE_PROF_BIRCH_MATCH_CALL
2019-08-03 14:12:48 -04:00
setvar VAR_REGISTER_BIRCH_STATE, 2
2017-11-09 19:21:31 -06:00
release
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_GivePokedex::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_HeardYouBeatRivalTakePokedex, MSGBOX_DEFAULT
call LittlerootTown_ProfessorBirchsLab_EventScript_ReceivePokedex
msgbox LittlerootTown_ProfessorBirchsLab_Text_ExplainPokedex, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
closemessage
applymovement LOCALID_RIVAL, LittlerootTown_ProfessorBirchsLab_Movement_RivalApproachPlayer
2017-11-09 19:21:31 -06:00
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterRight
2017-11-09 19:21:31 -06:00
waitmovement 0
checkplayergender
call_if_eq VAR_RESULT, MALE, LittlerootTown_ProfessorBirchsLab_EventScript_MayGivePokeBalls
call_if_eq VAR_RESULT, FEMALE, LittlerootTown_ProfessorBirchsLab_EventScript_BrendanGivePokeBalls
setvar VAR_BIRCH_LAB_STATE, 5
2019-01-02 21:12:43 +00:00
setflag FLAG_ADVENTURE_STARTED
2019-08-05 11:23:45 -04:00
setvar VAR_OLDALE_TOWN_STATE, 1
setvar VAR_LITTLEROOT_RIVAL_STATE, 4
2019-08-05 11:23:45 -04:00
setvar VAR_LITTLEROOT_TOWN_STATE, 3
2017-11-09 19:21:31 -06:00
releaseall
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_MayGivePokeBalls::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_MayGotPokedexTooTakeThese, MSGBOX_DEFAULT
giveitem ITEM_POKE_BALL, 5
call_if_eq VAR_RESULT, FALSE, LittlerootTown_ProfessorBirchsLab_EventScript_MayNoRoomForPokeBalls
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_CatchCutePokemonWithPokeBalls, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
setvar VAR_RESULT, 0
return
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_BrendanGivePokeBalls::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_BrendanGotPokedexTooTakeThese, MSGBOX_DEFAULT
giveitem ITEM_POKE_BALL, 5
call_if_eq VAR_RESULT, FALSE, LittlerootTown_ProfessorBirchsLab_EventScript_BrendanNoRoomForPokeBalls
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_CatchCoolPokemonWithPokeBalls, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
setvar VAR_RESULT, 1
return
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_ReceivePokedex::
2020-08-20 18:02:00 -04:00
playfanfare MUS_OBTAIN_ITEM
2019-11-08 02:03:45 -05:00
message LittlerootTown_ProfessorBirchsLab_Text_ReceivedPokedex
2017-11-09 19:21:31 -06:00
waitfanfare
setflag FLAG_SYS_POKEDEX_GET
2020-04-13 08:42:31 -04:00
special SetUnlockedPokedexFlags
2019-01-03 01:54:55 +00:00
setflag FLAG_RECEIVED_POKEDEX_FROM_BIRCH
setvar VAR_CABLE_CLUB_TUTORIAL_STATE, 1
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_PokemonAwait::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_CountlessPokemonAwait, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
release
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_MayNoRoomForPokeBalls::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_OhYourBagsFull, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_BrendanNoRoomForPokeBalls::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_HeyYourBagsFull, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Movement_RivalApproachPlayer:
walk_down
walk_in_place_faster_left
2017-11-09 19:21:31 -06:00
step_end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_Machine::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_SeriousLookingMachine, MSGBOX_SIGN
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_Rival::
2017-11-09 19:21:31 -06:00
lock
faceplayer
goto_if_eq VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 5, LittlerootTown_ProfessorBirchsLab_EventScript_RivalFuturePlans
goto_if_ge VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 6, LittlerootTown_ProfessorBirchsLab_EventScript_RivalHaveYouGoneToBattleFrontier
goto_if_ge VAR_DEX_UPGRADE_JOHTO_STARTER_STATE, 2, LittlerootTown_ProfessorBirchsLab_EventScript_RivalTakeBreakFromFieldwork
2017-11-09 19:21:31 -06:00
checkplayergender
call_if_eq VAR_RESULT, MALE, LittlerootTown_ProfessorBirchsLab_EventScript_MayWhereShouldIGoNext
call_if_eq VAR_RESULT, FEMALE, LittlerootTown_ProfessorBirchsLab_EventScript_BrendanWhereShouldIGoNext
2017-11-09 19:21:31 -06:00
release
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_MayWhereShouldIGoNext::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_MayWhereShouldIGoNext, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_BrendanWhereShouldIGoNext::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_BrendanWhereShouldIGoNext, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_RivalFuturePlans::
2017-11-09 19:21:31 -06:00
checkplayergender
call_if_eq VAR_RESULT, MALE, LittlerootTown_ProfessorBirchsLab_EventScript_MayWhatNextImStayingHere
call_if_eq VAR_RESULT, FEMALE, LittlerootTown_ProfessorBirchsLab_EventScript_BrendanPreferCollectingSlowly
2017-11-09 19:21:31 -06:00
release
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_MayWhatNextImStayingHere::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_MayWhatNextImStayingHere, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_BrendanPreferCollectingSlowly:
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_BrendanPreferCollectingSlowly, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_RivalHaveYouGoneToBattleFrontier::
2017-11-09 19:21:31 -06:00
checkplayergender
call_if_eq VAR_RESULT, MALE, LittlerootTown_ProfessorBirchsLab_EventScript_MayHaveYouGoneToBattleFrontier
call_if_eq VAR_RESULT, FEMALE, LittlerootTown_ProfessorBirchsLab_EventScript_BrendanHaveYouGoneToBattleFrontier
2017-11-09 19:21:31 -06:00
release
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_MayHaveYouGoneToBattleFrontier::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_MayHaveYouGoneToBattleFrontier, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_BrendanHaveYouGoneToBattleFrontier::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_BrendanHaveYouGoneToBattleFrontier, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_RivalTakeBreakFromFieldwork::
2017-11-09 19:21:31 -06:00
checkplayergender
call_if_eq VAR_RESULT, MALE, LittlerootTown_ProfessorBirchsLab_EventScript_MayTakeBreakFromFieldwork
call_if_eq VAR_RESULT, FEMALE, LittlerootTown_ProfessorBirchsLab_EventScript_BrendanTakeBreakFromFieldwork
2017-11-09 19:21:31 -06:00
release
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_MayTakeBreakFromFieldwork::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_MayTakeBreakFromFieldwork, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_BrendanTakeBreakFromFieldwork::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_BrendanTakeBreakFromFieldwork, MSGBOX_DEFAULT
2017-11-09 19:21:31 -06:00
return
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_PC::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_PCUsedForResearch, MSGBOX_SIGN
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_Bookshelf::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_CrammedWithBooksOnPokemon, MSGBOX_SIGN
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_Book::
2019-11-08 02:03:45 -05:00
msgbox LittlerootTown_ProfessorBirchsLab_Text_BookTooHardToRead, MSGBOX_SIGN
2017-11-09 19:21:31 -06:00
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_EventScript_ScottAboardSSTidalCall::
2017-11-10 02:24:21 -06:00
lockall
2019-11-08 02:03:45 -05:00
pokenavcall LittlerootTown_ProfessorBirchsLab_Text_ScottAboardSSTidalCall
2017-11-10 02:24:21 -06:00
waitmessage
clearflag FLAG_SCOTT_CALL_BATTLE_FRONTIER
2017-11-10 02:24:21 -06:00
releaseall
end
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_BirchAwayOnFieldwork:
.string "Hunh? PROF. BIRCH?\p"
2018-12-07 10:41:08 -05:00
.string "The PROF's away on fieldwork.\n"
.string "Ergo, he isn't here.\p"
.string "Oh, let me explain what fieldwork is.\p"
.string "It is to study things in the natural\n"
.string "environment, like fields and mountains,\l"
.string "instead of a laboratory.\p"
2018-12-07 10:41:08 -05:00
.string "The PROF isn't one for doing desk work.\n"
.string "He's the type of person who would\l"
.string "rather go outside and experience\l"
.string "things than read about them here.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_BirchIsntOneForDeskWork:
2018-12-07 10:41:08 -05:00
.string "The PROF isn't one for doing desk work.\n"
.string "He's the type of person who would\l"
.string "rather go outside and experience\l"
.string "things than read about them here.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_BirchEnjoysRivalsHelpToo:
.string "PROF. BIRCH is studying the habitats\n"
.string "and distribution of POKéMON.\p"
2018-12-07 10:41:08 -05:00
.string "The PROF enjoys {RIVAL}'s help, too.\n"
.string "There's a lot of love there.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_LikeYouToHavePokemon:
.string "PROF. BIRCH: So, {PLAYER}{KUN}.\p"
2018-12-07 10:41:08 -05:00
.string "I've heard so much about you from\n"
.string "your father.\p"
2018-12-07 10:41:08 -05:00
.string "I've heard that you don't have your\n"
.string "own POKéMON yet.\p"
.string "But the way you battled earlier,\n"
.string "you pulled it off with aplomb!\p"
2018-12-07 10:41:08 -05:00
.string "I guess you have your father's blood\n"
.string "in your veins after all!\p"
.string "Oh, yes. As thanks for rescuing me,\n"
2018-12-07 10:41:08 -05:00
.string "I'd like you to have the POKéMON you\l"
.string "used earlier.\p"
.string "{PLAYER} received the {STR_VAR_1}!$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_WhyNotGiveNicknameToMon:
2018-12-07 10:41:08 -05:00
.string "PROF. BIRCH: While you're at it, why not\n"
.string "give a nickname to that {STR_VAR_1}?$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_MightBeGoodIdeaToGoSeeRival:
.string "PROF. BIRCH: If you work at POKéMON\n"
2018-12-07 10:41:08 -05:00
.string "and gain experience, I think you'll make\l"
.string "an extremely good TRAINER.\p"
.string "My kid, {RIVAL}, is also studying\n"
.string "POKéMON while helping me out.\p"
2018-12-07 10:41:08 -05:00
.string "{PLAYER}{KUN}, don't you think it might be\n"
.string "a good idea to go see {RIVAL}?$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_GetRivalToTeachYou:
.string "PROF. BIRCH: Great!\n"
.string "{RIVAL} should be happy, too.\p"
.string "Get {RIVAL} to teach you what it\n"
.string "means to be a TRAINER.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_DontBeThatWay:
2018-12-07 10:41:08 -05:00
.string "PROF. BIRCH: Oh, don't be that way.\n"
.string "You should go meet my kid.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_BirchRivalGoneHome:
.string "PROF. BIRCH: {RIVAL}?\n"
.string "Gone home, I think.\p"
2018-12-07 10:41:08 -05:00
.string "Or maybe that kid's scrabbling around\n"
.string "in tall grass again somewhere…\p"
.string "If you or your POKéMON get tired,\n"
.string "you should get some rest at home.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_HeardYouBeatRivalTakePokedex:
.string "PROF. BIRCH: Oh, hi, {PLAYER}{KUN}!\p"
.string "I heard you beat {RIVAL} on\n"
2018-12-07 10:41:08 -05:00
.string "your first try. That's excellent!\p"
.string "{RIVAL}'s been helping with my research\n"
.string "for a long time.\p"
.string "{RIVAL} has an extensive history as\n"
.string "a TRAINER already.\p"
.string "Here, {PLAYER}{KUN}, I ordered this for my\n"
.string "research, but I think you should have\l"
.string "this POKéDEX.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_ReceivedPokedex:
.string "{PLAYER} received the POKéDEX!$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_ExplainPokedex:
.string "PROF. BIRCH: The POKéDEX is a high-tech\n"
.string "tool that automatically makes a record\l"
.string "of any POKéMON you meet or catch.\p"
.string "My kid, {RIVAL}, goes everywhere\n"
.string "with it.\p"
.string "Whenever my kid catches a rare POKéMON\n"
.string "and records its data in the POKéDEX,\l"
2018-12-07 10:41:08 -05:00
.string "why, {RIVAL} looks for me while I'm out\l"
.string "doing fieldwork, and shows me.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_CountlessPokemonAwait:
.string "PROF. BIRCH: Countless POKéMON\n"
.string "await you!\p"
2018-12-07 10:41:08 -05:00
.string "Argh, I'm getting the itch to get out\n"
.string "and do fieldwork again!$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_MayGotPokedexTooTakeThese:
.string "MAY: Oh, wow, {PLAYER}{KUN}!\n"
.string "You got a POKéDEX, too!\p"
2018-12-07 10:41:08 -05:00
.string "That's great! Just like me!\n"
.string "I've got something for you, too!$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_CatchCutePokemonWithPokeBalls:
2018-12-07 10:41:08 -05:00
.string "MAY: It's fun if you can get a lot of\n"
.string "POKéMON!\p"
2018-12-07 10:41:08 -05:00
.string "I'm going to look all over the place\n"
.string "because I want different POKéMON.\p"
2018-12-07 10:41:08 -05:00
.string "If I find any cute POKéMON, I'll catch\n"
.string "them with POKé BALLS!$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_OhYourBagsFull:
2018-12-07 10:41:08 -05:00
.string "Oh? Your BAG's full.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_MayWhereShouldIGoNext:
.string "MAY: I wonder where I should go look\n"
.string "for POKéMON next?$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_BrendanGotPokedexTooTakeThese:
.string "BRENDAN: Huh…\n"
.string "So you got a POKéDEX, too.\p"
.string "Well then, here.\n"
2018-12-07 10:41:08 -05:00
.string "I'll give you these.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_CatchCoolPokemonWithPokeBalls:
2018-12-07 10:41:08 -05:00
.string "BRENDAN: You know it's more fun to\n"
.string "have a whole bunch of POKéMON.\p"
2018-12-07 10:41:08 -05:00
.string "I'm going to explore all over the place\n"
.string "to find different POKéMON.\p"
.string "If I find any cool POKéMON, you bet\n"
2018-12-07 10:41:08 -05:00
.string "I'll try to get them with POKé BALLS.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_HeyYourBagsFull:
2018-12-07 10:41:08 -05:00
.string "Hey, your BAG's full.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_BrendanWhereShouldIGoNext:
.string "BRENDAN: Where should I look for\n"
.string "POKéMON next…$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_SeriousLookingMachine:
2018-12-07 10:41:08 -05:00
.string "It's a serious-looking machine.\n"
.string "The PROF must use this for research.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_PCUsedForResearch:
2018-12-07 10:41:08 -05:00
.string "It's a PC used for research.\n"
.string "Better not mess around with it.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_CrammedWithBooksOnPokemon:
2018-12-07 10:41:08 -05:00
.string "It's crammed with books on POKéMON.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_BookTooHardToRead:
2018-12-07 10:41:08 -05:00
.string "It's a book that's too hard to read.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_OtherRegionsUpgradeToNational:
.string "PROF. BIRCH: Now…\p"
2018-12-07 10:41:08 -05:00
.string "{PLAYER}{KUN} and {RIVAL}, I've had the two\n"
.string "of you help me study POKéMON.\p"
.string "Thanks to your help, new facts\n"
.string "are coming to light.\p"
.string "It appears that in the HOENN region,\n"
.string "there are also POKéMON from other\l"
.string "regions.\p"
.string "It goes to show how rich and varied\n"
.string "the natural environments of HOENN\l"
.string "happen to be.\p"
2018-12-07 10:41:08 -05:00
.string "That's why I think it's necessary for\n"
.string "me to upgrade your POKéDEX to\l"
.string "the NATIONAL Mode.\p"
.string "Here, let me see your POKéDEX units.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_MayUpgradeSoCool:
.string "MAY: Eheheh!\p"
2018-12-07 10:41:08 -05:00
.string "It's so cool that even my POKéDEX\n"
.string "is getting updated!\p"
2018-12-07 10:41:08 -05:00
.string "It's because you went out and caught\n"
.string "so many POKéMON, {PLAYER}{KUN}!$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_BrendanYouCanThankMe:
.string "BRENDAN: I went out all over HOENN\n"
.string "and checked out POKéMON.\p"
.string "You can thank me for getting\n"
.string "the NATIONAL Mode POKéDEX.\p"
2018-12-07 10:41:08 -05:00
.string "Yep, you're lucky, {PLAYER}!$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_OkayAllDone:
.string "PROF. BIRCH: Okay, all done!$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_PokedexUpgradedToNational:
2018-12-07 10:41:08 -05:00
.string "{PLAYER}'s POKéDEX was upgraded\n"
.string "to the NATIONAL Mode!$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_GrassyPatchWaiting2:
.string "PROF. BIRCH: But listen.\n"
2018-12-07 10:41:08 -05:00
.string "You've become the CHAMPION,\l"
.string "but your POKéMON journey isn't over.\p"
.string "There is no end to the road\n"
.string "that is POKéMON.\p"
.string "Somewhere, there is a grassy patch\n"
2018-12-07 10:41:08 -05:00
.string "that's waiting for you!$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_MayTakeBreakFromFieldwork:
2018-12-07 10:41:08 -05:00
.string "MAY: I think I'll take a short break\n"
.string "from fieldwork.\p"
2018-12-07 10:41:08 -05:00
.string "I think I'll help the PROF here for\n"
.string "a while.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_BrendanTakeBreakFromFieldwork:
.string "BRENDAN: For the time being,\n"
2018-12-07 10:41:08 -05:00
.string "I'm taking a break from fieldwork.\p"
.string "I'll be helping out the PROF here\n"
.string "for a while.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_CompletedDexChoosePokemon:
.string "PROF. BIRCH: Oh, {PLAYER}{KUN}!\n"
2018-12-07 10:41:08 -05:00
.string "Let's have a look at your POKéDEX.\p"
.string "… … … … … …\n"
.string "… … … … … …\p"
2018-12-07 10:41:08 -05:00
.string "Yes, there's no doubt about it.\p"
.string "You really have completed the HOENN\n"
2018-12-07 10:41:08 -05:00
.string "region's POKéDEX.\p"
.string "That's more than just impressive.\p"
.string "I have a gift for you.\p"
.string "Consider it my show of appreciation\n"
2018-12-07 10:41:08 -05:00
.string "for the fantastic work you've done.\p"
.string "My gift is a rare POKéMON only found\n"
.string "in another region!\p"
.string "You can have any one of these\n"
.string "three POKéMON!$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_CanHaveAnyOneOfRarePokemon:
.string "PROF. BIRCH: These are rare POKéMON\n"
.string "only found in another region!\p"
.string "You can have any one of these\n"
.string "three POKéMON!$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_YoullTakeCyndaquil:
.string "PROF. BIRCH: The FIRE POKéMON\n"
.string "CYNDAQUIL caught your eye!\p"
2018-12-07 10:41:08 -05:00
.string "You're as sharp as ever!\p"
.string "So the CYNDAQUIL is your choice?$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_YoullTakeTotodile:
.string "PROF. BIRCH: The WATER POKéMON\n"
.string "TOTODILE is your choice!\p"
.string "You know how to pick a good one.\p"
2018-12-07 10:41:08 -05:00
.string "So, you'll take the TOTODILE?$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_YoullTakeChikorita:
.string "PROF. BIRCH: The GRASS POKéMON\n"
.string "CHIKORITA is your choice!\p"
2018-12-07 10:41:08 -05:00
.string "You sure know what you're doing.\p"
.string "So, you'll take the CHIKORITA?$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_TakeYourTimeAllInvaluable:
.string "PROF. BIRCH: Take your time before\n"
.string "you decide.\p"
2018-12-07 10:41:08 -05:00
.string "They're all invaluable POKéMON.$"
2019-11-08 02:03:45 -05:00
@ Unused
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_PickedFinePokemon:
2017-11-10 02:24:21 -06:00
.string "PROF. BIRCH: I see!\n"
.string "You picked a fine POKéMON!$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_ReceivedJohtoStarter:
.string "{PLAYER} received the {STR_VAR_1}\n"
.string "from PROF. BIRCH!$"
2019-11-08 02:03:45 -05:00
@ Unused
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_NicknameJohtoStarter:
2017-11-10 02:24:21 -06:00
.string "Want to give a nickname to\n"
.string "the {STR_VAR_1} you received?$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_GrassyPatchWaiting:
.string "PROF. BIRCH: Listen, {PLAYER}{KUN}.\n"
2018-12-07 10:41:08 -05:00
.string "You've completed the HOENN POKéDEX,\l"
.string "but your POKéMON journey isn't over.\p"
.string "There is no end to the road\n"
.string "that is POKéMON.\p"
.string "Somewhere, there is a grassy patch\n"
2018-12-07 10:41:08 -05:00
.string "that's waiting for you!$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_BetterLeaveOthersAlone:
.string "You received the promised POKéMON.\n"
.string "Better leave the others alone.$"
2019-11-08 02:03:45 -05:00
@ Unused
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_DontHaveAnyRoomForPokemon:
2018-12-07 10:41:08 -05:00
.string "Oh, you don't have any room for\n"
2017-11-10 02:24:21 -06:00
.string "this POKéMON.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_MayWhatNextImStayingHere:
.string "MAY: {PLAYER}{KUN}, after this…\n"
.string "What are you going to do?\p"
.string "Are you going to keep battling\n"
.string "and sharpening your skills?\p"
.string "Or are you going to try filling\n"
.string "the NATIONAL POKéDEX?\p"
2018-12-07 10:41:08 -05:00
.string "I'm staying here to help the PROF.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_BrendanPreferCollectingSlowly:
.string "BRENDAN: Rather than collecting\n"
.string "POKéMON, I prefer slowly and \l"
.string "steadily raising the one I chose.$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_MayHaveYouGoneToBattleFrontier:
.string "MAY: Oh, hi, {PLAYER}{KUN}!\n"
.string "Have you gone to that place,\l"
.string "the BATTLE FRONTIER?$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_BrendanHaveYouGoneToBattleFrontier:
.string "BRENDAN: Hey, {PLAYER}!\n"
.string "Have you gone out to that place,\l"
.string "the BATTLE FRONTIER?$"
2021-07-20 15:18:31 -04:00
LittlerootTown_ProfessorBirchsLab_Text_ScottAboardSSTidalCall:
2017-11-10 02:24:21 -06:00
.string "… … … … … …\n"
.string "… … … … … Beep!\p"
.string "SCOTT: Hi, hi, {PLAYER}!\n"
2018-12-07 10:41:08 -05:00
.string "It's me, SCOTT.\p"
.string "I'm aboard the S.S. TIDAL now.\n"
2017-11-10 02:24:21 -06:00
.string "It feels great to be on the sea!\p"
.string "By the way…\p"
2018-12-07 10:41:08 -05:00
.string "There's this place that I'd like to\n"
2017-11-10 02:24:21 -06:00
.string "invite you to for a visit.\p"
2018-12-07 10:41:08 -05:00
.string "If you're interested, board a ferry\n"
2017-11-10 02:24:21 -06:00
.string "at either SLATEPORT or LILYCOVE.\p"
2018-12-07 10:41:08 -05:00
.string "I'll fill you in on the details when\n"
.string "we meet. I'll be waiting!\p"
2017-11-10 02:24:21 -06:00
.string "… … … … … …\n"
.string "… … … … … Click!$"