pokeemerald/data/maps/Route119_WeatherInstitute_2F/scripts.inc

334 lines
12 KiB
PHP
Raw Normal View History

.set LOCALID_GRUNT_1, 1
.set LOCALID_GRUNT_2, 2
.set LOCALID_SHELLY, 3
.set LOCALID_SCIENTIST, 5
.set LOCALID_GRUNT_3, 7
.set LOCALID_GRUNT_4, 8
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, Route119_WeatherInstitute_2F_OnTransition
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_OnTransition:
call_if_eq VAR_WEATHER_INSTITUTE_STATE, 0, Route119_WeatherInstitute_2F_EventScript_SetScientistPosAquaHere
call_if_eq VAR_WEATHER_INSTITUTE_STATE, 1, Route119_WeatherInstitute_2F_EventScript_SetScientistPosAquaGone
2019-11-01 22:50:54 +01:00
call_if_set FLAG_SYS_GAME_CLEAR, Route119_WeatherInstitute_2F_EventScript_SetScientistPosGameClear
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_SetScientistPosAquaHere::
setobjectxyperm LOCALID_SCIENTIST, 1, 6
setobjectmovementtype LOCALID_SCIENTIST, MOVEMENT_TYPE_FACE_RIGHT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_SetScientistPosAquaGone::
setobjectxyperm LOCALID_SCIENTIST, 4, 6
setobjectmovementtype LOCALID_SCIENTIST, MOVEMENT_TYPE_FACE_RIGHT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_SetScientistPosGameClear::
setobjectxyperm LOCALID_SCIENTIST, 2, 2
setobjectmovementtype LOCALID_SCIENTIST, MOVEMENT_TYPE_FACE_UP
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_Grunt5::
trainerbattle_single TRAINER_GRUNT_WEATHER_INST_5, Route119_WeatherInstitute_2F_Text_Grunt5Intro, Route119_WeatherInstitute_2F_Text_Grunt5Defeat
msgbox Route119_WeatherInstitute_2F_Text_Grunt5PostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_Grunt2::
trainerbattle_single TRAINER_GRUNT_WEATHER_INST_2, Route119_WeatherInstitute_2F_Text_Grunt2Intro, Route119_WeatherInstitute_2F_Text_Grunt2Defeat
msgbox Route119_WeatherInstitute_2F_Text_Grunt2PostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_Grunt3::
trainerbattle_single TRAINER_GRUNT_WEATHER_INST_3, Route119_WeatherInstitute_2F_Text_Grunt3Intro, Route119_WeatherInstitute_2F_Text_Grunt3Defeat
msgbox Route119_WeatherInstitute_2F_Text_Grunt3PostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_Shelly::
2019-12-26 04:39:06 +01:00
trainerbattle_single TRAINER_SHELLY_WEATHER_INSTITUTE, Route119_WeatherInstitute_2F_Text_ShellyIntro, Route119_WeatherInstitute_2F_Text_ShellyDefeat, Route119_WeatherInstitute_2F_EventScript_ShellyDefeated
2019-11-01 22:50:54 +01:00
msgbox Route119_WeatherInstitute_2F_Text_ShellyPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_ShellyDefeated::
2019-11-01 22:50:54 +01:00
msgbox Route119_WeatherInstitute_2F_Text_ShellyPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
addobject LOCALID_GRUNT_3
applymovement LOCALID_GRUNT_3, Route119_WeatherInstitute_2F_Movement_GruntApproachShelly
applymovement OBJ_EVENT_ID_PLAYER, Route119_WeatherInstitute_2F_Movement_ShovePlayerOutOfWay
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-01 22:50:54 +01:00
msgbox Route119_WeatherInstitute_2F_Text_TeamMagmaJustPassedBy, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
playse SE_PIN
applymovement LOCALID_SHELLY, Common_Movement_ExclamationMark
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_SHELLY, Common_Movement_Delay48
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-01 22:50:54 +01:00
msgbox Route119_WeatherInstitute_2F_Text_WeHaveToHurryToMtPyre, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2018-02-14 00:58:22 +01:00
setvar VAR_WEATHER_INSTITUTE_STATE, 1
2018-10-19 19:04:47 +02:00
clearflag FLAG_HIDE_WEATHER_INSTITUTE_2F_WORKERS
2017-11-10 02:21:31 +01:00
fadedefaultbgm
2019-12-15 17:42:50 +01:00
fadescreen FADE_TO_BLACK
2018-10-19 19:04:47 +02:00
setflag FLAG_HIDE_ROUTE_119_TEAM_AQUA
setflag FLAG_HIDE_WEATHER_INSTITUTE_2F_AQUA_GRUNT_M
removeobject LOCALID_GRUNT_1
removeobject LOCALID_GRUNT_2
removeobject LOCALID_SHELLY
removeobject LOCALID_GRUNT_4
removeobject LOCALID_GRUNT_3
applymovement OBJ_EVENT_ID_PLAYER, Route119_WeatherInstitute_2F_Movement_PlayerReturnToPosition
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-12-15 17:42:50 +01:00
fadescreen FADE_FROM_BLACK
applymovement LOCALID_SCIENTIST, Route119_WeatherInstitute_2F_Movement_ScientistApproachPlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
copyobjectxytoperm LOCALID_SCIENTIST
2019-11-01 22:50:54 +01:00
goto Route119_WeatherInstitute_2F_EventScript_ReceiveCastform
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_ReceiveCastform::
2019-11-01 22:50:54 +01:00
msgbox Route119_WeatherInstitute_2F_Text_ThanksPleaseTakePokemon, MSGBOX_DEFAULT
2023-08-04 20:17:28 +02:00
setvar VAR_TEMP_TRANSFERRED_SPECIES, SPECIES_CASTFORM
2019-09-16 05:47:07 +02:00
givemon SPECIES_CASTFORM, 25, ITEM_MYSTIC_WATER
goto_if_eq VAR_RESULT, MON_GIVEN_TO_PARTY, Route119_WeatherInstitute_2F_EventScript_ReceiveCastformParty
goto_if_eq VAR_RESULT, MON_GIVEN_TO_PC, Route119_WeatherInstitute_2F_EventScript_ReceiveCastformPC
2019-08-15 05:38:42 +02:00
goto Common_EventScript_NoMoreRoomForPokemon
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_ReceiveCastformParty::
2019-11-01 22:50:54 +01:00
call Route119_WeatherInstitute_2F_EventScript_ReceivedCastformFanfare
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, Route119_WeatherInstitute_2F_EventScript_ExplainCastform
2019-08-15 05:38:42 +02:00
call Common_EventScript_GetGiftMonPartySlot
call Common_EventScript_NameReceivedPartyMon
2019-11-01 22:50:54 +01:00
goto Route119_WeatherInstitute_2F_EventScript_ExplainCastform
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_ReceiveCastformPC::
2019-11-01 22:50:54 +01:00
call Route119_WeatherInstitute_2F_EventScript_ReceivedCastformFanfare
msgbox gText_NicknameThisPokemon, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, Route119_WeatherInstitute_2F_EventScript_SendCastformToPC
2019-08-15 05:38:42 +02:00
call Common_EventScript_NameReceivedBoxMon
2019-11-01 22:50:54 +01:00
goto Route119_WeatherInstitute_2F_EventScript_SendCastformToPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_SendCastformToPC::
2019-10-23 00:07:08 +02:00
call Common_EventScript_TransferredToPC
2019-11-01 22:50:54 +01:00
goto Route119_WeatherInstitute_2F_EventScript_ExplainCastform
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_ReceivedCastformFanfare::
2020-08-21 00:02:00 +02:00
playfanfare MUS_OBTAIN_ITEM
2019-11-01 22:50:54 +01:00
message Route119_WeatherInstitute_2F_Text_PlayerReceivedCastform
2017-11-10 02:21:31 +01:00
waitmessage
waitfanfare
bufferspeciesname STR_VAR_1, SPECIES_CASTFORM
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_ExplainCastform::
2019-11-01 22:50:54 +01:00
msgbox Route119_WeatherInstitute_2F_Text_PokemonChangesWithWeather, MSGBOX_DEFAULT
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_CASTFORM
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_ScientistMentionWeather::
2019-12-02 01:19:47 +01:00
goto_if_set FLAG_SYS_GAME_CLEAR, Route119_WeatherInstitute_2F_EventScript_TryStartAbnormalWeather
2019-11-01 22:50:54 +01:00
msgbox Route119_WeatherInstitute_2F_Text_ChangingWeatherRidiculous, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_TryStartAbnormalWeather::
2017-11-10 02:21:31 +01:00
setvar VAR_0x8004, 0
2019-11-01 22:50:54 +01:00
call_if_set FLAG_DEFEATED_KYOGRE, Route119_WeatherInstitute_2F_EventScript_LegendaryDefeated
call_if_set FLAG_DEFEATED_GROUDON, Route119_WeatherInstitute_2F_EventScript_LegendaryDefeated
goto_if_eq VAR_0x8004, 2, Route119_WeatherInstitute_2F_EventScript_NoAbnormalWeather @ Both defeated
2019-12-02 01:19:47 +01:00
call_if_unset FLAG_TEMP_2, Route119_WeatherInstitute_2F_EventScript_CreateAbnormalWeather
specialvar VAR_RESULT, GetAbnormalWeatherMapNameAndType
goto_if_eq VAR_RESULT, 1, Route119_WeatherInstitute_2F_EventScript_KyogreWeather
2019-11-01 22:50:54 +01:00
msgbox Route119_WeatherInstitute_2F_Text_GroudonWeather, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_KyogreWeather::
2019-11-01 22:50:54 +01:00
msgbox Route119_WeatherInstitute_2F_Text_KyogreWeather, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_CreateAbnormalWeather::
2019-12-02 01:19:47 +01:00
special CreateAbnormalWeatherEvent
2018-10-17 18:25:12 +02:00
setflag FLAG_TEMP_2
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_LegendaryDefeated::
2017-11-10 02:21:31 +01:00
addvar VAR_0x8004, 1
return
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_NoAbnormalWeather::
2019-11-01 22:50:54 +01:00
msgbox Route119_WeatherInstitute_2F_Text_NoAbnormalWeather, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Movement_GruntApproachShelly:
walk_fast_left
walk_fast_left
walk_fast_left
walk_fast_left
walk_fast_left
walk_fast_left
walk_fast_left
walk_fast_left
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
Route119_WeatherInstitute_2F_Movement_ShovePlayerOutOfWay:
delay_16
delay_16
delay_16
delay_16
delay_16
ride_water_current_up
walk_in_place_faster_down
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Movement_PlayerReturnToPosition:
slide_down
walk_in_place_faster_left
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Movement_ScientistApproachPlayer:
walk_right
walk_right
walk_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_EventScript_WeatherScientist::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-01 22:50:54 +01:00
goto_if_set FLAG_RECEIVED_CASTFORM, Route119_WeatherInstitute_2F_EventScript_ScientistMentionWeather
goto Route119_WeatherInstitute_2F_EventScript_ReceiveCastform
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_Grunt2Intro:
2017-11-10 02:21:31 +01:00
.string "The INSTITUTE created a type of\n"
.string "POKéMON that has something to do with\l"
2018-12-07 16:41:08 +01:00
.string "the weather. We're here to take them!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_Grunt2Defeat:
2018-12-07 16:41:08 +01:00
.string "Our plan's being spoiled by a kid?$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_Grunt2PostBattle:
2017-11-10 02:21:31 +01:00
.string "If the POKéMON they made here can\n"
.string "control the weather freely, then we of\l"
.string "TEAM AQUA definitely need it!$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_Grunt3Intro:
2018-12-07 16:41:08 +01:00
.string "We're TEAM AQUA!\n"
2017-11-10 02:21:31 +01:00
.string "We appear wherever anything rare is\l"
.string "found!$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_Grunt3Defeat:
2017-11-10 02:21:31 +01:00
.string "You got me!$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_Grunt3PostBattle:
2018-12-07 16:41:08 +01:00
.string "You don't have any idea what we of\n"
2017-11-10 02:21:31 +01:00
.string "TEAM AQUA are working towards!\l"
.string "You stay out of our way!$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_Grunt5Intro:
2018-12-07 16:41:08 +01:00
.string "Don't tell me you're looking for that\n"
2017-11-10 02:21:31 +01:00
.string "weather POKéMON, too?\p"
2018-12-07 16:41:08 +01:00
.string "That's a no-no!\n"
2017-11-10 02:21:31 +01:00
.string "We were here to get it first!$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_Grunt5Defeat:
2017-11-10 02:21:31 +01:00
.string "Oh, will you look at my POKéMON?$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_Grunt5PostBattle:
2017-11-10 02:21:31 +01:00
.string "Humph, so what?\n"
.string "What we want…\p"
2018-12-07 16:41:08 +01:00
.string "What we really want isn't here…\n"
2017-11-10 02:21:31 +01:00
.string "Ihihihihi…$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_ShellyIntro:
2017-11-10 02:21:31 +01:00
.string "Ahahahaha!\p"
2018-12-07 16:41:08 +01:00
.string "You're going to meddle in TEAM AQUA's\n"
2017-11-10 02:21:31 +01:00
.string "affairs?\p"
2018-12-07 16:41:08 +01:00
.string "You're either absolutely fearless,\n"
2017-11-10 02:21:31 +01:00
.string "simply ignorant, or both!\p"
2018-12-07 16:41:08 +01:00
.string "You're so cute, you're disgusting!\n"
.string "I'll put you down, kiddy!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_ShellyDefeat:
2017-11-10 02:21:31 +01:00
.string "Ahahahaha!\n"
2018-12-07 16:41:08 +01:00
.string "You're disgustingly strong!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_ShellyPostBattle:
2018-12-07 16:41:08 +01:00
.string "It's bad enough to have TEAM MAGMA\n"
.string "blunder about, but now there's you!\p"
2017-11-10 02:21:31 +01:00
.string "What makes you want to sniff around\n"
.string "in our business, anyway?$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_TeamMagmaJustPassedBy:
2017-11-10 02:21:31 +01:00
.string "We have a situation here!\p"
.string "A TEAM MAGMA mob just passed\n"
.string "the WEATHER INSTITUTE.\p"
.string "They appear to be headed for\n"
.string "MT. PYRE!$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_WeHaveToHurryToMtPyre:
2017-11-10 02:21:31 +01:00
.string "What?!\p"
2018-12-07 16:41:08 +01:00
.string "We can't waste any more time here!\n"
2017-11-10 02:21:31 +01:00
.string "We have to hurry to MT. PYRE, too!\p"
.string "Ahahahaha!\n"
.string "TEAM MAGMA, just you wait!$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_ThanksPleaseTakePokemon:
2017-11-10 02:21:31 +01:00
.string "Thanks!\n"
2018-12-07 16:41:08 +01:00
.string "Thanks to you, we're safe!\p"
2017-11-10 02:21:31 +01:00
.string "It might be an odd way of thanking you,\n"
.string "but take this POKéMON.$"
2019-11-01 22:50:54 +01:00
@ Unused
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_NoRoomForPokemon:
2018-12-07 16:41:08 +01:00
.string "Hm? You don't seem to have any room\n"
.string "for this POKéMON.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_PlayerReceivedCastform:
2017-11-10 02:21:31 +01:00
.string "{PLAYER} received CASTFORM!$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_PokemonChangesWithWeather:
2017-11-10 02:21:31 +01:00
.string "That POKéMON changes shape according\n"
.string "to the weather conditions.\p"
2018-12-07 16:41:08 +01:00
.string "There're plenty of them in the\n"
2017-11-10 02:21:31 +01:00
.string "INSTITUTE--go ahead and take it.$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_ChangingWeatherRidiculous:
2018-12-07 16:41:08 +01:00
.string "I've been researching rain for many\n"
.string "years, but it's ridiculous to think that\l"
2017-11-10 02:21:31 +01:00
.string "humans can freely change the weather.$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_GroudonWeather:
2017-11-10 02:21:31 +01:00
.string "I track weather patterns over\n"
.string "the HOENN region.\p"
.string "Presently, a drought has been recorded\n"
.string "in {STR_VAR_1}.\p"
.string "Could that mean, somewhere near\n"
.string "{STR_VAR_1}…$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_KyogreWeather:
2017-11-10 02:21:31 +01:00
.string "I track weather patterns over\n"
.string "the HOENN region.\p"
.string "Presently, heavy rainfall has been\n"
.string "recorded over {STR_VAR_1}.\p"
.string "Could that mean, somewhere near\n"
.string "{STR_VAR_1}…$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_2F_Text_NoAbnormalWeather:
2017-11-10 02:21:31 +01:00
.string "Abnormal weather conditions are\n"
.string "no longer being reported.\p"
.string "The occasional rainfall is a blessing,\n"
.string "really.$"