Document dept store
This commit is contained in:
@@ -4,32 +4,32 @@ LilycoveCity_DepartmentStoreRooftop_MapScripts:: @ 8220207
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_OnTransition: @ 822020D
|
||||
getpricereduction POKENEWS_LILYCOVE
|
||||
compare VAR_RESULT, 1
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220227
|
||||
compare VAR_RESULT, 0
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_22022B
|
||||
compare VAR_RESULT, TRUE
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_ShowSaleWoman
|
||||
compare VAR_RESULT, FALSE
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_HideSaleWoman
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_220227:: @ 8220227
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_ShowSaleWoman:: @ 8220227
|
||||
clearflag FLAG_HIDE_LILYCOVE_DEPARTMENT_STORE_ROOFTOP_SALE_WOMAN
|
||||
return
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_22022B:: @ 822022B
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_HideSaleWoman:: @ 822022B
|
||||
setflag FLAG_HIDE_LILYCOVE_DEPARTMENT_STORE_ROOFTOP_SALE_WOMAN
|
||||
return
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_22022F:: @ 822022F
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_SaleWoman:: @ 822022F
|
||||
lock
|
||||
faceplayer
|
||||
message gText_HowMayIServeYou
|
||||
waitmessage
|
||||
pokemartdecoration LilycoveCity_DepartmentStoreRooftop_PokemartDecor_220248
|
||||
pokemartdecoration LilycoveCity_DepartmentStoreRooftop_PokemartDecor_ClearOutSale
|
||||
msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
.align 2
|
||||
LilycoveCity_DepartmentStoreRooftop_PokemartDecor_220248: @ 8220248
|
||||
LilycoveCity_DepartmentStoreRooftop_PokemartDecor_ClearOutSale: @ 8220248
|
||||
.2byte DECOR_MUD_BALL
|
||||
.2byte DECOR_FENCE_LENGTH
|
||||
.2byte DECOR_FENCE_WIDTH
|
||||
@@ -48,189 +48,189 @@ LilycoveCity_DepartmentStoreRooftop_PokemartDecor_220248: @ 8220248
|
||||
release
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_220268:: @ 8220268
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_Man:: @ 8220268
|
||||
lock
|
||||
faceplayer
|
||||
getpricereduction POKENEWS_LILYCOVE
|
||||
compare VAR_RESULT, 1
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220282
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_220463, MSGBOX_DEFAULT
|
||||
compare VAR_RESULT, TRUE
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_ManClearOutSale
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_SetDatesForClearOutSales, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_220282:: @ 8220282
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_2204C9, MSGBOX_DEFAULT
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_ManClearOutSale:: @ 8220282
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_BeenWaitingForClearOutSale, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_22028C:: @ 822028C
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_220552, MSGBOX_NPC
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_ThirstyMan:: @ 822028C
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_BoneDryThirsty, MSGBOX_NPC
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_220295:: @ 8220295
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_VendingMachine:: @ 8220295
|
||||
lockall
|
||||
message LilycoveCity_DepartmentStoreRooftop_Text_22056D
|
||||
message LilycoveCity_DepartmentStoreRooftop_Text_WhichDrinkWouldYouLike
|
||||
waitmessage
|
||||
showmoneybox 0, 0, 0
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_2202A6
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseDrink
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_2202A6:: @ 82202A6
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseDrink:: @ 82202A6
|
||||
multichoice 16, 0, MULTI_VENDING_MACHINE, 0
|
||||
copyvar VAR_TEMP_1, VAR_RESULT
|
||||
switch VAR_TEMP_1
|
||||
case 0, LilycoveCity_DepartmentStoreRooftop_EventScript_2202E4
|
||||
case 1, LilycoveCity_DepartmentStoreRooftop_EventScript_2202EF
|
||||
case 2, LilycoveCity_DepartmentStoreRooftop_EventScript_2202FA
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_220603, MSGBOX_DEFAULT
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_22045E
|
||||
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
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_2202E4:: @ 82202E4
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_FreshWater:: @ 82202E4
|
||||
setvar VAR_TEMP_0, ITEM_FRESH_WATER
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_22032F
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_TryBuyDrink
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_2202EF:: @ 82202EF
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_SodaPop:: @ 82202EF
|
||||
setvar VAR_TEMP_0, ITEM_SODA_POP
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_22032F
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_TryBuyDrink
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_2202FA:: @ 82202FA
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_Lemonade:: @ 82202FA
|
||||
setvar VAR_TEMP_0, ITEM_LEMONADE
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_22032F
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_TryBuyDrink
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_220305:: @ 8220305
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneyFreshWater:: @ 8220305
|
||||
checkmoney 200, 0
|
||||
return
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_22030C:: @ 822030C
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneySodaPop:: @ 822030C
|
||||
checkmoney 300, 0
|
||||
return
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_220313:: @ 8220313
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneyLemonade:: @ 8220313
|
||||
checkmoney 350, 0
|
||||
return
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_22031A:: @ 822031A
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_TakeMoneyFreshWater:: @ 822031A
|
||||
takemoney 200, 0
|
||||
return
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_220321:: @ 8220321
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_TakeMoneySodaPop:: @ 8220321
|
||||
takemoney 300, 0
|
||||
return
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_220328:: @ 8220328
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_TakeMoneyLemonade:: @ 8220328
|
||||
takemoney 350, 0
|
||||
return
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_22032F:: @ 822032F
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_TryBuyDrink:: @ 822032F
|
||||
compare VAR_TEMP_1, 0
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220305
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneyFreshWater
|
||||
compare VAR_TEMP_1, 1
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_22030C
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneySodaPop
|
||||
compare VAR_TEMP_1, 2
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220313
|
||||
compare VAR_RESULT, 0
|
||||
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220442
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneyLemonade
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_NotEnoughMoneyForDrink
|
||||
checkitemspace VAR_TEMP_0, 1
|
||||
compare VAR_RESULT, 0
|
||||
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_NoRoomForDrink
|
||||
compare VAR_TEMP_1, 0
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_22031A
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_TakeMoneyFreshWater
|
||||
compare VAR_TEMP_1, 1
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220321
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_TakeMoneySodaPop
|
||||
compare VAR_TEMP_1, 2
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220328
|
||||
call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_TakeMoneyLemonade
|
||||
updatemoneybox 0, 0
|
||||
bufferitemname 0, VAR_TEMP_0
|
||||
playse SE_JIHANKI
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_2205A1, MSGBOX_DEFAULT
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_CanOfDrinkDroppedDown, MSGBOX_DEFAULT
|
||||
giveitem VAR_TEMP_0, 1
|
||||
bufferitemname 1, VAR_TEMP_0
|
||||
bufferstdstring 2, STDSTRING_ITEMS
|
||||
msgbox gText_PutItemInPocket, MSGBOX_DEFAULT
|
||||
random 64
|
||||
random 64 @ 1/64 chance of an additional drink dropping
|
||||
compare VAR_RESULT, 0
|
||||
goto_if_ne LilycoveCity_DepartmentStoreRooftop_EventScript_220436
|
||||
goto_if_ne LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseNewDrink
|
||||
checkitemspace VAR_TEMP_0, 1
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_NoRoomForDrink
|
||||
playse SE_JIHANKI
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_ExtraCanOfDrinkDroppedDown, MSGBOX_DEFAULT
|
||||
giveitem VAR_TEMP_0, 1
|
||||
bufferitemname 1, VAR_TEMP_0
|
||||
bufferstdstring 2, STDSTRING_ITEMS
|
||||
msgbox gText_PutItemInPocket, MSGBOX_DEFAULT
|
||||
random 64 @ 1/64 * the prev 1/64 chance of a third additional drink dropping, ~ 0.02% chance
|
||||
compare VAR_RESULT, 0
|
||||
goto_if_ne LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseNewDrink
|
||||
checkitemspace VAR_TEMP_0, 1
|
||||
compare VAR_RESULT, 0
|
||||
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
|
||||
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_NoRoomForDrink
|
||||
playse SE_JIHANKI
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_2205C2, MSGBOX_DEFAULT
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_ExtraCanOfDrinkDroppedDown, MSGBOX_DEFAULT
|
||||
giveitem VAR_TEMP_0, 1
|
||||
bufferitemname 1, VAR_TEMP_0
|
||||
bufferstdstring 2, STDSTRING_ITEMS
|
||||
msgbox gText_PutItemInPocket, MSGBOX_DEFAULT
|
||||
random 64
|
||||
compare VAR_RESULT, 0
|
||||
goto_if_ne LilycoveCity_DepartmentStoreRooftop_EventScript_220436
|
||||
checkitemspace VAR_TEMP_0, 1
|
||||
compare VAR_RESULT, 0
|
||||
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
|
||||
playse SE_JIHANKI
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_2205C2, MSGBOX_DEFAULT
|
||||
giveitem VAR_TEMP_0, 1
|
||||
bufferitemname 1, VAR_TEMP_0
|
||||
bufferstdstring 2, STDSTRING_ITEMS
|
||||
msgbox gText_PutItemInPocket, MSGBOX_DEFAULT
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_220436
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseNewDrink
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_220436:: @ 8220436
|
||||
message LilycoveCity_DepartmentStoreRooftop_Text_22056D
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseNewDrink:: @ 8220436
|
||||
message LilycoveCity_DepartmentStoreRooftop_Text_WhichDrinkWouldYouLike
|
||||
waitmessage
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_2202A6
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseDrink
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_220442:: @ 8220442
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_2205F1, MSGBOX_DEFAULT
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_22045E
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_NotEnoughMoneyForDrink:: @ 8220442
|
||||
msgbox LilycoveCity_DepartmentStoreRooftop_Text_NotEnoughMoney, MSGBOX_DEFAULT
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_ExitVendingMachine
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_220450:: @ 8220450
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_NoRoomForDrink:: @ 8220450
|
||||
msgbox gText_TheBagIsFull, MSGBOX_DEFAULT
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_22045E
|
||||
goto LilycoveCity_DepartmentStoreRooftop_EventScript_ExitVendingMachine
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_22045E:: @ 822045E
|
||||
LilycoveCity_DepartmentStoreRooftop_EventScript_ExitVendingMachine:: @ 822045E
|
||||
hidemoneybox
|
||||
nop
|
||||
nop
|
||||
releaseall
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_Text_220463: @ 8220463
|
||||
LilycoveCity_DepartmentStoreRooftop_Text_SetDatesForClearOutSales: @ 8220463
|
||||
.string "Don't they have set dates for their\n"
|
||||
.string "clear-out sales?\p"
|
||||
.string "I watch TV, but they never show any\n"
|
||||
.string "commercials.$"
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_Text_2204C9: @ 82204C9
|
||||
LilycoveCity_DepartmentStoreRooftop_Text_BeenWaitingForClearOutSale: @ 82204C9
|
||||
.string "Yes! I've been waiting a long time for\n"
|
||||
.string "this clear-out sale.\p"
|
||||
.string "They have items that you can only get\n"
|
||||
.string "here. I'm going to load up, that I am!$"
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_Text_220552: @ 8220552
|
||||
LilycoveCity_DepartmentStoreRooftop_Text_BoneDryThirsty: @ 8220552
|
||||
.string "Ohh… I'm bone-dry thirsty!$"
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_Text_22056D: @ 822056D
|
||||
LilycoveCity_DepartmentStoreRooftop_Text_WhichDrinkWouldYouLike: @ 822056D
|
||||
.string "It's a VENDING MACHINE.\n"
|
||||
.string "Which drink would you like?$"
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_Text_2205A1: @ 82205A1
|
||||
LilycoveCity_DepartmentStoreRooftop_Text_CanOfDrinkDroppedDown: @ 82205A1
|
||||
.string "Clang!\p"
|
||||
.string "A can of {STR_VAR_1} dropped down.$"
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_Text_2205C2: @ 82205C2
|
||||
LilycoveCity_DepartmentStoreRooftop_Text_ExtraCanOfDrinkDroppedDown: @ 82205C2
|
||||
.string "Clang!\p"
|
||||
.string "Score! An extra can of {STR_VAR_1}\n"
|
||||
.string "dropped down!$"
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_Text_2205F1: @ 82205F1
|
||||
LilycoveCity_DepartmentStoreRooftop_Text_NotEnoughMoney: @ 82205F1
|
||||
.string "Not enough money…$"
|
||||
|
||||
LilycoveCity_DepartmentStoreRooftop_Text_220603: @ 8220603
|
||||
LilycoveCity_DepartmentStoreRooftop_Text_DecidedAgainstBuyingDrink: @ 8220603
|
||||
.string "Decided against buying a drink.$"
|
||||
|
||||
Reference in New Issue
Block a user