pokeemerald/data/maps/Route119_WeatherInstitute_1F/scripts.inc

136 lines
4.7 KiB
PHP
Raw Permalink Normal View History

.set LOCALID_LITTLE_BOY, 5
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, Route119_WeatherInstitute_1F_OnTransition
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_OnTransition:
call_if_eq VAR_WEATHER_INSTITUTE_STATE, 0, Route119_WeatherInstitute_1F_EventScript_SetLittleBoyPos
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_EventScript_SetLittleBoyPos::
setobjectxyperm LOCALID_LITTLE_BOY, 0, 5
setobjectmovementtype LOCALID_LITTLE_BOY, MOVEMENT_TYPE_FACE_RIGHT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_EventScript_LittleBoy::
2017-11-10 02:21:31 +01:00
lock
faceplayer
special GetPlayerBigGuyGirlString
goto_if_eq VAR_WEATHER_INSTITUTE_STATE, 0, Route119_WeatherInstitute_1F_EventScript_LittleBoyTeamAquaHere
2019-11-01 22:50:54 +01:00
msgbox Route119_WeatherInstitute_1F_Text_WowYoureStrong, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_EventScript_LittleBoyTeamAquaHere::
2019-11-01 22:50:54 +01:00
msgbox Route119_WeatherInstitute_1F_Text_EveryoneWentUpstairs, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_EventScript_InstituteWorker1::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-01 22:50:54 +01:00
goto_if_unset FLAG_SYS_GAME_CLEAR, Route119_WeatherInstitute_1F_EventScript_StudyingRain
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_1F_EventScript_LegendaryDefeated
call_if_set FLAG_DEFEATED_GROUDON, Route119_WeatherInstitute_1F_EventScript_LegendaryDefeated
goto_if_eq VAR_0x8004, 2, Route119_WeatherInstitute_1F_EventScript_StudyingRain @ Both defeated
2019-12-02 01:19:47 +01:00
msgbox Route119_WeatherInstitute_1F_Text_NoticingAbnormalWeather, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_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_1F_EventScript_StudyingRain::
2019-11-01 22:50:54 +01:00
msgbox Route119_WeatherInstitute_1F_Text_ProfStudyingRain, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_EventScript_InstituteWorker2::
2019-11-01 22:50:54 +01:00
msgbox Route119_WeatherInstitute_1F_Text_WhatWereAquasUpTo, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_EventScript_Bed::
2017-11-10 02:21:31 +01:00
lockall
2019-11-01 22:50:54 +01:00
msgbox Route119_WeatherInstitute_1F_Text_TakeRestInBed, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
call Common_EventScript_OutOfCenterPartyHeal
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_EventScript_Grunt1::
trainerbattle_single TRAINER_GRUNT_WEATHER_INST_1, Route119_WeatherInstitute_1F_Text_Grunt1Intro, Route119_WeatherInstitute_1F_Text_Grunt1Defeat
msgbox Route119_WeatherInstitute_1F_Text_Grunt1PostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_EventScript_Grunt4::
trainerbattle_single TRAINER_GRUNT_WEATHER_INST_4, Route119_WeatherInstitute_1F_Text_Grunt4Intro, Route119_WeatherInstitute_1F_Text_Grunt4Defeat
msgbox Route119_WeatherInstitute_1F_Text_Grunt4PostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_Text_Grunt1Intro:
2017-11-10 02:21:31 +01:00
.string "The BOSS got interested in\n"
.string "the research they have going here,\l"
.string "so he sent us out.\p"
.string "You quit meddling!$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_Text_Grunt1Defeat:
2017-11-10 02:21:31 +01:00
.string "Blast it…\n"
.string "Blasted by a kid…$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_Text_Grunt1PostBattle:
2017-11-10 02:21:31 +01:00
.string "Our BOSS knows everything.\p"
2018-12-07 16:41:08 +01:00
.string "But I'm just a GRUNT. What would I know\n"
.string "about what he's thinking?$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_Text_Grunt4Intro:
2017-11-10 02:21:31 +01:00
.string "Huh?\n"
2018-12-07 16:41:08 +01:00
.string "What's a kid doing here?$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_Text_Grunt4Defeat:
2017-11-10 02:21:31 +01:00
.string "Huh?\n"
.string "I lost?!$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_Text_Grunt4PostBattle:
2017-11-10 02:21:31 +01:00
.string "Oh, no…\n"
2018-12-07 16:41:08 +01:00
.string "I'll catch an earful for losing to a kid…\p"
2017-11-10 02:21:31 +01:00
.string "I should just take a nap in the bed…$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_Text_EveryoneWentUpstairs:
2017-11-10 02:21:31 +01:00
.string "While I was sleeping, everyone went\n"
.string "upstairs!$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_Text_WowYoureStrong:
2018-12-07 16:41:08 +01:00
.string "Wow, you're really strong!\p"
2017-11-10 02:21:31 +01:00
.string "I wish I could be a POKéMON TRAINER\n"
.string "like you!$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_Text_ProfStudyingRain:
2017-11-10 02:21:31 +01:00
.string "The PROFESSOR loves rain.\n"
2018-12-07 16:41:08 +01:00
.string "That's a fact.\p"
2017-11-10 02:21:31 +01:00
.string "But if it keeps raining, people will be in\n"
2018-12-07 16:41:08 +01:00
.string "trouble. That's another fact.\p"
2017-11-10 02:21:31 +01:00
.string "And thus, the PROFESSOR is studying\n"
.string "if the rain can be put to good use.$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_Text_NoticingAbnormalWeather:
2017-11-10 02:21:31 +01:00
.string "On the 2nd floor of the INSTITUTE,\n"
.string "we study the weather patterns over\l"
.string "the HOENN region.\p"
2018-12-07 16:41:08 +01:00
.string "We've been noticing temporary and\n"
2017-11-10 02:21:31 +01:00
.string "isolated cases of droughts and\l"
.string "heavy rain lately…$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_Text_WhatWereAquasUpTo:
2017-11-10 02:21:31 +01:00
.string "Hello!\n"
2018-12-07 16:41:08 +01:00
.string "We've been saved by your actions!\p"
.string "What I don't understand is what on\n"
2017-11-10 02:21:31 +01:00
.string "earth the AQUAS were up to.$"
2021-07-20 21:18:31 +02:00
Route119_WeatherInstitute_1F_Text_TakeRestInBed:
2018-12-07 16:41:08 +01:00
.string "There's a bed…\n"
.string "Let's take a rest.$"
2017-11-10 02:21:31 +01:00