2017-11-10 02:21:31 +01:00
|
|
|
Route123_BerryMastersHouse_MapScripts:: @ 826F83B
|
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
|
|
|
|
|
2019-04-05 01:28:37 +02:00
|
|
|
Route123_BerryMastersHouse_OnTransition: @ 826F841
|
2017-12-27 04:20:29 +01:00
|
|
|
setflag FLAG_LANDMARK_BERRY_MASTERS_HOUSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route123_BerryMastersHouse_EventScript_26F845:: @ 826F845
|
|
|
|
lock
|
|
|
|
faceplayer
|
2019-02-12 07:40:34 +01:00
|
|
|
dotimebasedevents
|
2019-01-03 02:54:55 +01:00
|
|
|
goto_if_set FLAG_DAILY_BERRY_MASTER_RECEIVED_BERRY, Route123_BerryMastersHouse_EventScript_26F8B6
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_2A7386, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
random 10
|
|
|
|
addvar VAR_RESULT, 20
|
2019-09-16 05:47:07 +02:00
|
|
|
addvar VAR_RESULT, FIRST_BERRY_INDEX
|
2017-11-10 02:21:31 +01:00
|
|
|
giveitem_std VAR_RESULT
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-02-23 01:52:11 +01:00
|
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
2019-01-03 02:54:55 +01:00
|
|
|
setflag FLAG_DAILY_BERRY_MASTER_RECEIVED_BERRY
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_2A7428, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
random 10
|
|
|
|
addvar VAR_RESULT, 20
|
2019-09-16 05:47:07 +02:00
|
|
|
addvar VAR_RESULT, FIRST_BERRY_INDEX
|
2017-11-10 02:21:31 +01:00
|
|
|
giveitem_std VAR_RESULT
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-02-23 01:52:11 +01:00
|
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_2A7445, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
Route123_BerryMastersHouse_EventScript_26F8B6:: @ 826F8B6
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_2A749E, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
Route123_BerryMastersHouse_EventScript_26F8C0:: @ 826F8C0
|
|
|
|
lock
|
|
|
|
faceplayer
|
2019-02-12 07:40:34 +01:00
|
|
|
dotimebasedevents
|
2019-01-02 22:12:43 +01:00
|
|
|
goto_if_set FLAG_DAILY_BERRY_MASTERS_WIFE, Route123_BerryMastersHouse_EventScript_26FA6F
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_2A74E6, 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
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq Route123_BerryMastersHouse_EventScript_26F909
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq Route123_BerryMastersHouse_EventScript_26F8F7
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route123_BerryMastersHouse_EventScript_26F8F7:: @ 826F8F7
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_2A7682, MSGBOX_DEFAULT
|
|
|
|
msgbox Route123_BerryMastersHouse_Text_2A761B, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
Route123_BerryMastersHouse_EventScript_26F909:: @ 826F909
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_0x8004, 0
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq Route123_BerryMastersHouse_EventScript_26F94C
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_0x8004, 1
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq Route123_BerryMastersHouse_EventScript_26F97A
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_0x8004, 2
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq Route123_BerryMastersHouse_EventScript_26F9AB
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_0x8004, 3
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq Route123_BerryMastersHouse_EventScript_26F9DC
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_0x8004, 4
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq Route123_BerryMastersHouse_EventScript_26FA0D
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_0x8004, 5
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq Route123_BerryMastersHouse_EventScript_26FA3E
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Route123_BerryMastersHouse_EventScript_26F94C:: @ 826F94C
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_2A75D0, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
random 10
|
2019-09-16 05:47:07 +02:00
|
|
|
addvar VAR_RESULT, FIRST_BERRY_INDEX
|
2017-11-10 02:21:31 +01:00
|
|
|
giveitem_std VAR_RESULT
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-02-23 01:52:11 +01:00
|
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
2017-11-10 02:21:31 +01:00
|
|
|
goto Route123_BerryMastersHouse_EventScript_26FA79
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
Route123_BerryMastersHouse_EventScript_26F97A:: @ 826F97A
|
2019-01-02 22:12:43 +01:00
|
|
|
goto_if_set FLAG_RECEIVED_SPELON_BERRY, Route123_BerryMastersHouse_EventScript_26F94C
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_2A7583, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
giveitem_std ITEM_SPELON_BERRY
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-02-23 01:52:11 +01:00
|
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_RECEIVED_SPELON_BERRY
|
2017-11-10 02:21:31 +01:00
|
|
|
goto Route123_BerryMastersHouse_EventScript_26FA79
|
|
|
|
end
|
|
|
|
|
|
|
|
Route123_BerryMastersHouse_EventScript_26F9AB:: @ 826F9AB
|
2019-01-02 22:12:43 +01:00
|
|
|
goto_if_set FLAG_RECEIVED_PAMTRE_BERRY, Route123_BerryMastersHouse_EventScript_26F94C
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_2A7583, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
giveitem_std ITEM_PAMTRE_BERRY
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-02-23 01:52:11 +01:00
|
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_RECEIVED_PAMTRE_BERRY
|
2017-11-10 02:21:31 +01:00
|
|
|
goto Route123_BerryMastersHouse_EventScript_26FA79
|
|
|
|
end
|
|
|
|
|
|
|
|
Route123_BerryMastersHouse_EventScript_26F9DC:: @ 826F9DC
|
2019-01-02 22:12:43 +01:00
|
|
|
goto_if_set FLAG_RECEIVED_WATMEL_BERRY, Route123_BerryMastersHouse_EventScript_26F94C
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_2A7583, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
giveitem_std ITEM_WATMEL_BERRY
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-02-23 01:52:11 +01:00
|
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_RECEIVED_WATMEL_BERRY
|
2017-11-10 02:21:31 +01:00
|
|
|
goto Route123_BerryMastersHouse_EventScript_26FA79
|
|
|
|
end
|
|
|
|
|
|
|
|
Route123_BerryMastersHouse_EventScript_26FA0D:: @ 826FA0D
|
2019-01-02 22:12:43 +01:00
|
|
|
goto_if_set FLAG_RECEIVED_DURIN_BERRY, Route123_BerryMastersHouse_EventScript_26F94C
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_2A7583, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
giveitem_std ITEM_DURIN_BERRY
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-02-23 01:52:11 +01:00
|
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_RECEIVED_DURIN_BERRY
|
2017-11-10 02:21:31 +01:00
|
|
|
goto Route123_BerryMastersHouse_EventScript_26FA79
|
|
|
|
end
|
|
|
|
|
|
|
|
Route123_BerryMastersHouse_EventScript_26FA3E:: @ 826FA3E
|
2019-01-02 22:12:43 +01:00
|
|
|
goto_if_set FLAG_RECEIVED_BELUE_BERRY, Route123_BerryMastersHouse_EventScript_26F94C
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_2A7583, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
giveitem_std ITEM_BELUE_BERRY
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-02-23 01:52:11 +01:00
|
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_RECEIVED_BELUE_BERRY
|
2017-11-10 02:21:31 +01:00
|
|
|
goto Route123_BerryMastersHouse_EventScript_26FA79
|
|
|
|
end
|
|
|
|
|
|
|
|
Route123_BerryMastersHouse_EventScript_26FA6F:: @ 826FA6F
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_2A761B, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
Route123_BerryMastersHouse_EventScript_26FA79:: @ 826FA79
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_DAILY_BERRY_MASTERS_WIFE
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox Route123_BerryMastersHouse_Text_2A761B, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|