2021-07-20 21:18:31 +02:00
|
|
|
Route123_BerryMastersHouse_MapScripts::
|
2019-04-05 01:28:37 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, Route123_BerryMastersHouse_OnTransition
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route123_BerryMastersHouse_OnTransition:
|
2017-12-27 04:20:29 +01:00
|
|
|
setflag FLAG_LANDMARK_BERRY_MASTERS_HOUSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route123_BerryMastersHouse_EventScript_BerryMaster::
|
2017-11-10 02:21:31 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
2019-02-12 07:40:34 +01:00
|
|
|
dotimebasedevents
|
2019-11-06 20:06:06 +01:00
|
|
|
goto_if_set FLAG_DAILY_BERRY_MASTER_RECEIVED_BERRY, Route123_BerryMastersHouse_EventScript_ReceivedBerryToday
|
|
|
|
msgbox Route123_BerryMastersHouse_Text_YoureDeservingOfBerry, MSGBOX_DEFAULT
|
|
|
|
random NUM_BERRY_MASTER_BERRIES
|
|
|
|
addvar VAR_RESULT, NUM_BERRY_MASTER_BERRIES_SKIPPED
|
2019-09-16 05:47:07 +02:00
|
|
|
addvar VAR_RESULT, FIRST_BERRY_INDEX
|
2020-01-11 18:02:58 +01:00
|
|
|
giveitem VAR_RESULT
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
2019-01-03 02:54:55 +01:00
|
|
|
setflag FLAG_DAILY_BERRY_MASTER_RECEIVED_BERRY
|
2019-11-06 20:06:06 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_WhyBeStingyTakeAnother, MSGBOX_DEFAULT
|
|
|
|
random NUM_BERRY_MASTER_BERRIES
|
|
|
|
addvar VAR_RESULT, NUM_BERRY_MASTER_BERRIES_SKIPPED
|
2019-09-16 05:47:07 +02:00
|
|
|
addvar VAR_RESULT, FIRST_BERRY_INDEX
|
2020-01-11 18:02:58 +01:00
|
|
|
giveitem VAR_RESULT
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
2019-11-06 20:06:06 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_VisitPrettyPetalFlowerShop, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route123_BerryMastersHouse_EventScript_ReceivedBerryToday::
|
2019-11-06 20:06:06 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_DoneForToday, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route123_BerryMastersHouse_EventScript_BerryMastersWife::
|
2017-11-10 02:21:31 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
2019-02-12 07:40:34 +01:00
|
|
|
dotimebasedevents
|
2019-11-06 20:06:06 +01:00
|
|
|
goto_if_set FLAG_DAILY_BERRY_MASTERS_WIFE, Route123_BerryMastersHouse_EventScript_ReceivedWifeBerryToday
|
|
|
|
msgbox Route123_BerryMastersHouse_Text_HeardAGoodSayingLately, MSGBOX_DEFAULT
|
2019-02-27 19:45:31 +01:00
|
|
|
setvar VAR_0x8004, EASY_CHAT_TYPE_GOOD_SAYING
|
|
|
|
call Common_ShowEasyChatScreen
|
2017-11-10 02:21:31 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, TRUE, Route123_BerryMastersHouse_EventScript_GavePhrase
|
|
|
|
goto_if_eq VAR_RESULT, FALSE, Route123_BerryMastersHouse_EventScript_CancelPhrase
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route123_BerryMastersHouse_EventScript_CancelPhrase::
|
2019-11-06 20:06:06 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_Ah, MSGBOX_DEFAULT
|
|
|
|
msgbox Route123_BerryMastersHouse_Text_JoyNeverGoesOutOfMyLife, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route123_BerryMastersHouse_EventScript_GavePhrase::
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_0x8004, NOT_SPECIAL_PHRASE, Route123_BerryMastersHouse_EventScript_GiveNormalBerry
|
|
|
|
goto_if_eq VAR_0x8004, PHRASE_GREAT_BATTLE, Route123_BerryMastersHouse_EventScript_GiveSpelonBerry
|
|
|
|
goto_if_eq VAR_0x8004, PHRASE_CHALLENGE_CONTEST, Route123_BerryMastersHouse_EventScript_GivePamtreBerry
|
|
|
|
goto_if_eq VAR_0x8004, PHRASE_OVERWHELMING_LATIAS, Route123_BerryMastersHouse_EventScript_GiveWatmelBerry
|
|
|
|
goto_if_eq VAR_0x8004, PHRASE_COOL_LATIOS, Route123_BerryMastersHouse_EventScript_GiveDurinBerry
|
|
|
|
goto_if_eq VAR_0x8004, PHRASE_SUPER_HUSTLE, Route123_BerryMastersHouse_EventScript_GiveBelueBerry
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route123_BerryMastersHouse_EventScript_GiveNormalBerry::
|
2019-11-06 20:06:06 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_GoodSayingTakeThis, MSGBOX_DEFAULT
|
|
|
|
random NUM_BERRY_MASTER_WIFE_BERRIES
|
2019-09-16 05:47:07 +02:00
|
|
|
addvar VAR_RESULT, FIRST_BERRY_INDEX
|
2020-01-11 18:02:58 +01:00
|
|
|
giveitem VAR_RESULT
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
2019-11-06 20:06:06 +01:00
|
|
|
goto Route123_BerryMastersHouse_EventScript_GaveBerry
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route123_BerryMastersHouse_EventScript_GiveSpelonBerry::
|
2019-11-06 20:06:06 +01:00
|
|
|
goto_if_set FLAG_RECEIVED_SPELON_BERRY, Route123_BerryMastersHouse_EventScript_GiveNormalBerry
|
|
|
|
msgbox Route123_BerryMastersHouse_Text_InspirationalTakeThis, MSGBOX_DEFAULT
|
2020-01-11 18:02:58 +01:00
|
|
|
giveitem ITEM_SPELON_BERRY
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_RECEIVED_SPELON_BERRY
|
2019-11-06 20:06:06 +01:00
|
|
|
goto Route123_BerryMastersHouse_EventScript_GaveBerry
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route123_BerryMastersHouse_EventScript_GivePamtreBerry::
|
2019-11-06 20:06:06 +01:00
|
|
|
goto_if_set FLAG_RECEIVED_PAMTRE_BERRY, Route123_BerryMastersHouse_EventScript_GiveNormalBerry
|
|
|
|
msgbox Route123_BerryMastersHouse_Text_InspirationalTakeThis, MSGBOX_DEFAULT
|
2020-01-11 18:02:58 +01:00
|
|
|
giveitem ITEM_PAMTRE_BERRY
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_RECEIVED_PAMTRE_BERRY
|
2019-11-06 20:06:06 +01:00
|
|
|
goto Route123_BerryMastersHouse_EventScript_GaveBerry
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route123_BerryMastersHouse_EventScript_GiveWatmelBerry::
|
2019-11-06 20:06:06 +01:00
|
|
|
goto_if_set FLAG_RECEIVED_WATMEL_BERRY, Route123_BerryMastersHouse_EventScript_GiveNormalBerry
|
|
|
|
msgbox Route123_BerryMastersHouse_Text_InspirationalTakeThis, MSGBOX_DEFAULT
|
2020-01-11 18:02:58 +01:00
|
|
|
giveitem ITEM_WATMEL_BERRY
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_RECEIVED_WATMEL_BERRY
|
2019-11-06 20:06:06 +01:00
|
|
|
goto Route123_BerryMastersHouse_EventScript_GaveBerry
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route123_BerryMastersHouse_EventScript_GiveDurinBerry::
|
2019-11-06 20:06:06 +01:00
|
|
|
goto_if_set FLAG_RECEIVED_DURIN_BERRY, Route123_BerryMastersHouse_EventScript_GiveNormalBerry
|
|
|
|
msgbox Route123_BerryMastersHouse_Text_InspirationalTakeThis, MSGBOX_DEFAULT
|
2020-01-11 18:02:58 +01:00
|
|
|
giveitem ITEM_DURIN_BERRY
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_RECEIVED_DURIN_BERRY
|
2019-11-06 20:06:06 +01:00
|
|
|
goto Route123_BerryMastersHouse_EventScript_GaveBerry
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route123_BerryMastersHouse_EventScript_GiveBelueBerry::
|
2019-11-06 20:06:06 +01:00
|
|
|
goto_if_set FLAG_RECEIVED_BELUE_BERRY, Route123_BerryMastersHouse_EventScript_GiveNormalBerry
|
|
|
|
msgbox Route123_BerryMastersHouse_Text_InspirationalTakeThis, MSGBOX_DEFAULT
|
2020-01-11 18:02:58 +01:00
|
|
|
giveitem ITEM_BELUE_BERRY
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_RECEIVED_BELUE_BERRY
|
2019-11-06 20:06:06 +01:00
|
|
|
goto Route123_BerryMastersHouse_EventScript_GaveBerry
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route123_BerryMastersHouse_EventScript_ReceivedWifeBerryToday::
|
2019-11-06 20:06:06 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_JoyNeverGoesOutOfMyLife, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route123_BerryMastersHouse_EventScript_GaveBerry::
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_DAILY_BERRY_MASTERS_WIFE
|
2019-11-06 20:06:06 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_JoyNeverGoesOutOfMyLife, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|