2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_MapScripts::
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, LilycoveCity_DepartmentStoreRooftop_OnTransition
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_OnTransition:
|
2019-10-07 08:00:16 +02:00
|
|
|
getpricereduction POKENEWS_LILYCOVE
|
2019-11-04 22:41:42 +01:00
|
|
|
compare VAR_RESULT, TRUE
|
|
|
|
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_ShowSaleWoman
|
|
|
|
compare VAR_RESULT, FALSE
|
|
|
|
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_HideSaleWoman
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_ShowSaleWoman::
|
2018-10-18 04:07:23 +02:00
|
|
|
clearflag FLAG_HIDE_LILYCOVE_DEPARTMENT_STORE_ROOFTOP_SALE_WOMAN
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_HideSaleWoman::
|
2018-10-18 04:07:23 +02:00
|
|
|
setflag FLAG_HIDE_LILYCOVE_DEPARTMENT_STORE_ROOFTOP_SALE_WOMAN
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_SaleWoman::
|
2017-11-10 02:21:31 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
2019-08-15 05:38:42 +02:00
|
|
|
message gText_HowMayIServeYou
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
2019-11-04 22:41:42 +01:00
|
|
|
pokemartdecoration LilycoveCity_DepartmentStoreRooftop_PokemartDecor_ClearOutSale
|
2019-08-15 05:38:42 +02:00
|
|
|
msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2017-11-10 08:36:41 +01:00
|
|
|
.align 2
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_PokemartDecor_ClearOutSale:
|
2019-04-17 02:06:38 +02:00
|
|
|
.2byte DECOR_MUD_BALL
|
|
|
|
.2byte DECOR_FENCE_LENGTH
|
|
|
|
.2byte DECOR_FENCE_WIDTH
|
|
|
|
.2byte DECOR_TIRE
|
|
|
|
.2byte DECOR_BREAKABLE_DOOR
|
|
|
|
.2byte DECOR_SOLID_BOARD
|
|
|
|
.2byte DECOR_SAND_ORNAMENT
|
|
|
|
.2byte DECOR_STAND
|
|
|
|
.2byte DECOR_SLIDE
|
|
|
|
.2byte DECOR_TV
|
|
|
|
.2byte DECOR_ROUND_TV
|
|
|
|
.2byte DECOR_CUTE_TV
|
|
|
|
.2byte DECOR_WAILMER_DOLL
|
|
|
|
.2byte DECOR_RHYDON_DOLL
|
2017-11-10 02:21:31 +01:00
|
|
|
.2byte 0
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_Man::
|
2017-11-10 02:21:31 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
2019-10-07 08:00:16 +02:00
|
|
|
getpricereduction POKENEWS_LILYCOVE
|
2019-11-04 22:41:42 +01:00
|
|
|
compare VAR_RESULT, TRUE
|
|
|
|
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_ManClearOutSale
|
|
|
|
msgbox LilycoveCity_DepartmentStoreRooftop_Text_SetDatesForClearOutSales, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_ManClearOutSale::
|
2019-11-04 22:41:42 +01:00
|
|
|
msgbox LilycoveCity_DepartmentStoreRooftop_Text_BeenWaitingForClearOutSale, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_ThirstyMan::
|
2019-11-04 22:41:42 +01:00
|
|
|
msgbox LilycoveCity_DepartmentStoreRooftop_Text_BoneDryThirsty, MSGBOX_NPC
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_VendingMachine::
|
2017-11-10 02:21:31 +01:00
|
|
|
lockall
|
2019-11-04 22:41:42 +01:00
|
|
|
message LilycoveCity_DepartmentStoreRooftop_Text_WhichDrinkWouldYouLike
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
|
|
|
showmoneybox 0, 0, 0
|
2019-11-04 22:41:42 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseDrink
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseDrink::
|
2021-03-31 06:35:56 +02:00
|
|
|
multichoice 16, 0, MULTI_VENDING_MACHINE, FALSE
|
2018-05-19 18:02:43 +02:00
|
|
|
copyvar VAR_TEMP_1, VAR_RESULT
|
|
|
|
switch VAR_TEMP_1
|
2019-11-04 22:41:42 +01:00
|
|
|
case 0, LilycoveCity_DepartmentStoreRooftop_EventScript_FreshWater
|
|
|
|
case 1, LilycoveCity_DepartmentStoreRooftop_EventScript_SodaPop
|
|
|
|
case 2, LilycoveCity_DepartmentStoreRooftop_EventScript_Lemonade
|
|
|
|
msgbox LilycoveCity_DepartmentStoreRooftop_Text_DecidedAgainstBuyingDrink, MSGBOX_DEFAULT
|
|
|
|
goto LilycoveCity_DepartmentStoreRooftop_EventScript_ExitVendingMachine
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_FreshWater::
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_TEMP_0, ITEM_FRESH_WATER
|
2019-11-04 22:41:42 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreRooftop_EventScript_TryBuyDrink
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_SodaPop::
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_TEMP_0, ITEM_SODA_POP
|
2019-11-04 22:41:42 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreRooftop_EventScript_TryBuyDrink
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_Lemonade::
|
2019-09-16 05:47:07 +02:00
|
|
|
setvar VAR_TEMP_0, ITEM_LEMONADE
|
2019-11-04 22:41:42 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreRooftop_EventScript_TryBuyDrink
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneyFreshWater::
|
2019-09-16 05:47:07 +02:00
|
|
|
checkmoney 200, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneySodaPop::
|
2019-09-16 05:47:07 +02:00
|
|
|
checkmoney 300, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneyLemonade::
|
2019-09-16 05:47:07 +02:00
|
|
|
checkmoney 350, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_RemoveMoneyFreshWater::
|
2020-01-13 05:24:52 +01:00
|
|
|
removemoney 200, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_RemoveMoneySodaPop::
|
2020-01-13 05:24:52 +01:00
|
|
|
removemoney 300, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_RemoveMoneyLemonade::
|
2020-01-13 05:24:52 +01:00
|
|
|
removemoney 350, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_TryBuyDrink::
|
2018-05-19 18:02:43 +02:00
|
|
|
compare VAR_TEMP_1, 0
|
2019-11-04 22:41:42 +01:00
|
|
|
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneyFreshWater
|
2018-05-19 18:02:43 +02:00
|
|
|
compare VAR_TEMP_1, 1
|
2019-11-04 22:41:42 +01:00
|
|
|
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneySodaPop
|
2018-05-19 18:02:43 +02:00
|
|
|
compare VAR_TEMP_1, 2
|
2019-11-04 22:41:42 +01:00
|
|
|
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneyLemonade
|
|
|
|
compare VAR_RESULT, FALSE
|
|
|
|
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_NotEnoughMoneyForDrink
|
2018-05-19 18:02:43 +02:00
|
|
|
checkitemspace VAR_TEMP_0, 1
|
2019-11-04 22:41:42 +01:00
|
|
|
compare VAR_RESULT, FALSE
|
|
|
|
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_NoRoomForDrink
|
2018-05-19 18:02:43 +02:00
|
|
|
compare VAR_TEMP_1, 0
|
2020-01-13 05:24:52 +01:00
|
|
|
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_RemoveMoneyFreshWater
|
2018-05-19 18:02:43 +02:00
|
|
|
compare VAR_TEMP_1, 1
|
2020-01-13 05:24:52 +01:00
|
|
|
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_RemoveMoneySodaPop
|
2018-05-19 18:02:43 +02:00
|
|
|
compare VAR_TEMP_1, 2
|
2020-01-13 05:24:52 +01:00
|
|
|
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_RemoveMoneyLemonade
|
2017-11-10 02:21:31 +01:00
|
|
|
updatemoneybox 0, 0
|
2018-05-19 18:02:43 +02:00
|
|
|
bufferitemname 0, VAR_TEMP_0
|
2020-08-21 00:02:00 +02:00
|
|
|
playse SE_VEND
|
2019-11-04 22:41:42 +01:00
|
|
|
msgbox LilycoveCity_DepartmentStoreRooftop_Text_CanOfDrinkDroppedDown, MSGBOX_DEFAULT
|
2020-01-11 18:02:58 +01:00
|
|
|
additem VAR_TEMP_0
|
2018-05-19 18:02:43 +02:00
|
|
|
bufferitemname 1, VAR_TEMP_0
|
2019-09-19 00:57:25 +02:00
|
|
|
bufferstdstring 2, STDSTRING_ITEMS
|
2019-03-22 03:10:56 +01:00
|
|
|
msgbox gText_PutItemInPocket, MSGBOX_DEFAULT
|
2019-11-04 22:41:42 +01:00
|
|
|
random 64 @ 1/64 chance of an additional drink dropping
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-11-04 22:41:42 +01:00
|
|
|
goto_if_ne LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseNewDrink
|
2018-05-19 18:02:43 +02:00
|
|
|
checkitemspace VAR_TEMP_0, 1
|
2019-11-04 22:41:42 +01:00
|
|
|
compare VAR_RESULT, FALSE
|
|
|
|
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_NoRoomForDrink
|
2020-08-21 00:02:00 +02:00
|
|
|
playse SE_VEND
|
2019-11-04 22:41:42 +01:00
|
|
|
msgbox LilycoveCity_DepartmentStoreRooftop_Text_ExtraCanOfDrinkDroppedDown, MSGBOX_DEFAULT
|
2020-01-11 18:02:58 +01:00
|
|
|
additem VAR_TEMP_0
|
2018-05-19 18:02:43 +02:00
|
|
|
bufferitemname 1, VAR_TEMP_0
|
2019-09-19 00:57:25 +02:00
|
|
|
bufferstdstring 2, STDSTRING_ITEMS
|
2019-03-22 03:10:56 +01:00
|
|
|
msgbox gText_PutItemInPocket, MSGBOX_DEFAULT
|
2019-11-04 22:41:42 +01:00
|
|
|
random 64 @ 1/64 * the prev 1/64 chance of a third additional drink dropping, ~ 0.02% chance
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-11-04 22:41:42 +01:00
|
|
|
goto_if_ne LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseNewDrink
|
2018-05-19 18:02:43 +02:00
|
|
|
checkitemspace VAR_TEMP_0, 1
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 0
|
2019-11-04 22:41:42 +01:00
|
|
|
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_NoRoomForDrink
|
2020-08-21 00:02:00 +02:00
|
|
|
playse SE_VEND
|
2019-11-04 22:41:42 +01:00
|
|
|
msgbox LilycoveCity_DepartmentStoreRooftop_Text_ExtraCanOfDrinkDroppedDown, MSGBOX_DEFAULT
|
2020-01-11 18:02:58 +01:00
|
|
|
additem VAR_TEMP_0
|
2018-05-19 18:02:43 +02:00
|
|
|
bufferitemname 1, VAR_TEMP_0
|
2019-09-19 00:57:25 +02:00
|
|
|
bufferstdstring 2, STDSTRING_ITEMS
|
2019-03-22 03:10:56 +01:00
|
|
|
msgbox gText_PutItemInPocket, MSGBOX_DEFAULT
|
2019-11-04 22:41:42 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseNewDrink
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseNewDrink::
|
2019-11-04 22:41:42 +01:00
|
|
|
message LilycoveCity_DepartmentStoreRooftop_Text_WhichDrinkWouldYouLike
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmessage
|
2019-11-04 22:41:42 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseDrink
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_NotEnoughMoneyForDrink::
|
2019-11-04 22:41:42 +01:00
|
|
|
msgbox LilycoveCity_DepartmentStoreRooftop_Text_NotEnoughMoney, MSGBOX_DEFAULT
|
|
|
|
goto LilycoveCity_DepartmentStoreRooftop_EventScript_ExitVendingMachine
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_NoRoomForDrink::
|
2019-08-15 05:38:42 +02:00
|
|
|
msgbox gText_TheBagIsFull, MSGBOX_DEFAULT
|
2019-11-04 22:41:42 +01:00
|
|
|
goto LilycoveCity_DepartmentStoreRooftop_EventScript_ExitVendingMachine
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_EventScript_ExitVendingMachine::
|
2017-11-10 02:21:31 +01:00
|
|
|
hidemoneybox
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_Text_SetDatesForClearOutSales:
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "Don't they have set dates for their\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "clear-out sales?\p"
|
|
|
|
.string "I watch TV, but they never show any\n"
|
|
|
|
.string "commercials.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_Text_BeenWaitingForClearOutSale:
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "Yes! I've been waiting a long time for\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "this clear-out sale.\p"
|
|
|
|
.string "They have items that you can only get\n"
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "here. I'm going to load up, that I am!$"
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_Text_BoneDryThirsty:
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "Ohh… I'm bone-dry thirsty!$"
|
2017-11-10 02:21:31 +01:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_Text_WhichDrinkWouldYouLike:
|
2018-12-07 16:41:08 +01:00
|
|
|
.string "It's a VENDING MACHINE.\n"
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Which drink would you like?$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_Text_CanOfDrinkDroppedDown:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Clang!\p"
|
|
|
|
.string "A can of {STR_VAR_1} dropped down.$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_Text_ExtraCanOfDrinkDroppedDown:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Clang!\p"
|
|
|
|
.string "Score! An extra can of {STR_VAR_1}\n"
|
|
|
|
.string "dropped down!$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_Text_NotEnoughMoney:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Not enough money…$"
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
LilycoveCity_DepartmentStoreRooftop_Text_DecidedAgainstBuyingDrink:
|
2017-11-10 02:21:31 +01:00
|
|
|
.string "Decided against buying a drink.$"
|