pokeemerald/data/maps/PacifidlogTown_House2/scripts.inc

148 lines
5.0 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_MapScripts::
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_EventScript_FanClubYoungerBrother::
2017-11-10 02:21:31 +01:00
lock
faceplayer
dotimebasedevents
2019-11-07 21:41:42 +01:00
call PacifidlogTown_House2_EventScript_UpdateFanClubTMFlag
goto_if_set FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK, PacifidlogTown_House2_EventScript_ComeBackInXDays
call_if_set FLAG_MET_FANCLUB_YOUNGER_BROTHER, PacifidlogTown_House2_EventScript_MonAssessment
call_if_unset FLAG_MET_FANCLUB_YOUNGER_BROTHER, PacifidlogTown_House2_EventScript_FirstMonAssessment
2019-01-02 22:12:43 +01:00
setflag FLAG_MET_FANCLUB_YOUNGER_BROTHER
specialvar VAR_RESULT, GetLeadMonFriendshipScore
goto_if_ge VAR_RESULT, FRIENDSHIP_150_TO_199, PacifidlogTown_House2_EventScript_GiveReturn
specialvar VAR_RESULT, GetLeadMonFriendshipScore
goto_if_ge VAR_RESULT, FRIENDSHIP_50_TO_99, PacifidlogTown_House2_EventScript_PutInEffort
2019-11-07 21:41:42 +01:00
goto PacifidlogTown_House2_EventScript_GiveFrustration
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_EventScript_UpdateFanClubTMFlag::
2019-02-23 02:21:26 +01:00
goto_if_unset FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK, Common_EventScript_NopReturn
specialvar VAR_RESULT, GetDaysUntilPacifidlogTMAvailable
call_if_eq VAR_RESULT, 0, PacifidlogTown_House2_EventScript_ClearReceivedFanClubTM
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_EventScript_MonAssessment::
2019-11-07 21:41:42 +01:00
msgbox PacifidlogTown_House2_Text_AhYourPokemon, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_EventScript_FirstMonAssessment::
2019-11-07 21:41:42 +01:00
msgbox PacifidlogTown_House2_Text_ChairmansYoungerBrotherOnVacation, MSGBOX_DEFAULT
msgbox PacifidlogTown_House2_Text_AhYourPokemon, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_EventScript_ClearReceivedFanClubTM::
2019-01-02 22:12:43 +01:00
clearflag FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_EventScript_GiveReturn::
2019-11-07 21:41:42 +01:00
msgbox PacifidlogTown_House2_Text_AdoringPokemonTakeThis, MSGBOX_DEFAULT
giveitem ITEM_TM_RETURN
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK
special SetPacifidlogTMReceivedDay
2019-11-07 21:41:42 +01:00
msgbox PacifidlogTown_House2_Text_ExplainReturnFrustration, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_EventScript_PutInEffort::
2019-11-07 21:41:42 +01:00
msgbox PacifidlogTown_House2_Text_PutInSomeMoreEffort, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_EventScript_GiveFrustration::
2019-11-07 21:41:42 +01:00
msgbox PacifidlogTown_House2_Text_ViciousPokemonTakeThis, MSGBOX_DEFAULT
giveitem ITEM_TM_FRUSTRATION
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK
special SetPacifidlogTMReceivedDay
2019-11-07 21:41:42 +01:00
msgbox PacifidlogTown_House2_Text_ExplainReturnFrustration, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_EventScript_ComeBackInXDays::
specialvar VAR_RESULT, GetDaysUntilPacifidlogTMAvailable
buffernumberstring STR_VAR_1, VAR_RESULT
2019-11-07 21:41:42 +01:00
msgbox PacifidlogTown_House2_Text_GetGoodTMInXDays, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_EventScript_HappyAzurill::
2017-11-10 02:21:31 +01:00
lock
faceplayer
waitse
2021-11-07 18:58:11 +01:00
playmoncry SPECIES_AZURILL, CRY_MODE_NORMAL
2019-11-07 21:41:42 +01:00
msgbox PacifidlogTown_House2_Text_Rurii, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
waitmoncry
2019-11-07 21:41:42 +01:00
msgbox PacifidlogTown_House2_Text_VeryFriendlyWithTrainer, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_EventScript_UnhappyAzurill::
2017-11-10 02:21:31 +01:00
lock
faceplayer
waitse
2021-11-07 18:58:11 +01:00
playmoncry SPECIES_AZURILL, CRY_MODE_ENCOUNTER
2019-11-07 21:41:42 +01:00
msgbox PacifidlogTown_House2_Text_Rururi, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
waitmoncry
2019-11-07 21:41:42 +01:00
msgbox PacifidlogTown_House2_Text_DoesntLikeTrainerVeryMuch, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_Text_ChairmansYoungerBrotherOnVacation:
2017-11-10 02:21:31 +01:00
.string "Er-hem!\p"
2018-12-07 16:41:08 +01:00
.string "I am the POKéMON FAN CLUB's most\n"
.string "important person, the CHAIRMAN's\l"
2017-11-10 02:21:31 +01:00
.string "younger brother.\p"
2018-12-07 16:41:08 +01:00
.string "I'm here enjoying my vacation with\n"
2017-11-10 02:21:31 +01:00
.string "POKéMON, yes, indeed.$"
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_Text_AhYourPokemon:
2017-11-10 02:21:31 +01:00
.string "Ah!\n"
.string "Your POKéMON…$"
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_Text_AdoringPokemonTakeThis:
2017-11-10 02:21:31 +01:00
.string "It clearly likes you very much.\p"
.string "A POKéMON that adoring and adorable\n"
.string "deserves a TM like this, no?$"
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_Text_PutInSomeMoreEffort:
2017-11-10 02:21:31 +01:00
.string "Hmm…\n"
2018-12-07 16:41:08 +01:00
.string "It's not bad, but it's also not good.\p"
2017-11-10 02:21:31 +01:00
.string "You, as the TRAINER, need to put in\n"
.string "some more effort.$"
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_Text_ViciousPokemonTakeThis:
2017-11-10 02:21:31 +01:00
.string "It has a vicious look to it.\p"
.string "A frightening POKéMON like that\n"
.string "deserves a TM like this.$"
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_Text_ExplainReturnFrustration:
2018-12-07 16:41:08 +01:00
.string "If a POKéMON likes you a lot, RETURN's\n"
2017-11-10 02:21:31 +01:00
.string "power is enhanced.\p"
2018-12-07 16:41:08 +01:00
.string "If it doesn't like you, FRUSTRATION's\n"
2017-11-10 02:21:31 +01:00
.string "power goes up.$"
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_Text_GetGoodTMInXDays:
2017-11-10 02:21:31 +01:00
.string "Oh, yes. In about {STR_VAR_1} or so days,\n"
.string "I should be getting a good TM or two.\p"
.string "You should come see me then.\n"
2018-12-07 16:41:08 +01:00
.string "I'll give you a TM that's suitable for\l"
2017-11-10 02:21:31 +01:00
.string "your POKéMON.$"
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_Text_Rurii:
2017-11-10 02:21:31 +01:00
.string "AZURILL: Rurii.$"
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_Text_VeryFriendlyWithTrainer:
2017-11-10 02:21:31 +01:00
.string "It appears to be very friendly with the\n"
.string "TRAINER.$"
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_Text_Rururi:
2017-11-10 02:21:31 +01:00
.string "AZURILL: Rururi!$"
2021-07-20 21:18:31 +02:00
PacifidlogTown_House2_Text_DoesntLikeTrainerVeryMuch:
2018-12-07 16:41:08 +01:00
.string "It doesn't appear to like the TRAINER\n"
2017-11-10 02:21:31 +01:00
.string "very much.$"