pokeemerald/data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc

186 lines
6.8 KiB
PHP
Raw Normal View History

.set LOCALID_LOTTERY_CLERK, 2
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_MapScripts::
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_Greeter::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_WelcomeToDeptStore, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_LotteryClerk::
2017-11-10 02:21:31 +01:00
lock
faceplayer
dotimebasedevents
goto_if_ne VAR_POKELOT_PRIZE_ITEM, ITEM_NONE, LilycoveCity_DepartmentStore_1F_EventScript_GivePrizeFromEarlier
2019-11-04 22:41:42 +01:00
goto_if_set FLAG_DAILY_PICKED_LOTO_TICKET, LilycoveCity_DepartmentStore_1F_EventScript_ComeBackTomorrow
msgbox LilycoveCity_DepartmentStore_1F_Text_LotteryCornerDrawTicket, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, LilycoveCity_DepartmentStore_1F_EventScript_PleaseVisitAgain
2019-01-02 22:12:43 +01:00
setflag FLAG_DAILY_PICKED_LOTO_TICKET
2019-11-04 22:41:42 +01:00
message LilycoveCity_DepartmentStore_1F_Text_PleasePickTicket
2017-11-10 02:21:31 +01:00
waitmessage
special RetrieveLotteryNumber
copyvar VAR_0x8008, VAR_RESULT
special BufferLottoTicketNumber
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_TicketNumberIsXPleaseWait, MSGBOX_DEFAULT
applymovement LOCALID_LOTTERY_CLERK, Common_Movement_WalkInPlaceFasterRight
2017-11-10 02:21:31 +01:00
waitmovement 0
playse SE_PC_ON
special DoLotteryCornerComputerEffect
2017-11-10 02:21:31 +01:00
special PickLotteryCornerTicket
delay 220
special EndLotteryCornerComputerEffect
2017-11-10 02:21:31 +01:00
delay 10
applymovement LOCALID_LOTTERY_CLERK, Common_Movement_FacePlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
goto_if_eq VAR_0x8004, 0, LilycoveCity_DepartmentStore_1F_EventScript_NoMatch
incrementgamestat GAME_STAT_WON_POKEMON_LOTTERY
call_if_eq VAR_0x8006, 0, LilycoveCity_DepartmentStore_1F_EventScript_TicketMatchPartyMon
call_if_eq VAR_0x8006, 1, LilycoveCity_DepartmentStore_1F_EventScript_TicketMatchPCMon
bufferitemname STR_VAR_1, VAR_0x8005
call_if_eq VAR_0x8004, 1, LilycoveCity_DepartmentStore_1F_EventScript_TwoDigitMatch
call_if_eq VAR_0x8004, 2, LilycoveCity_DepartmentStore_1F_EventScript_ThreeDigitMatch
call_if_eq VAR_0x8004, 3, LilycoveCity_DepartmentStore_1F_EventScript_FourDigitMatch
call_if_eq VAR_0x8004, 4, LilycoveCity_DepartmentStore_1F_EventScript_FullMatch
giveitem VAR_0x8005
goto_if_eq VAR_RESULT, FALSE, LilycoveCity_DepartmentStore_1F_EventScript_RecordPrizeNoRoom
2019-11-04 22:41:42 +01:00
special TryPutLotteryWinnerReportOnAir
goto LilycoveCity_DepartmentStore_1F_EventScript_PleaseVisitAgain2
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_TicketMatchPartyMon::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_TicketMatchesPartyMon, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_TicketMatchPCMon::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_TicketMatchesPCMon, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_ComeBackTomorrow::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_ComeBackTomorrow, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_PleaseVisitAgain::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_PleaseVisitAgain, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_NoMatch::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_NoNumbersMatched, MSGBOX_DEFAULT
goto LilycoveCity_DepartmentStore_1F_EventScript_PleaseVisitAgain2
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_PleaseVisitAgain2::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_PleaseVisitAgain2, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_TwoDigitMatch::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_TwoDigitsMatched, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_ThreeDigitMatch::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_ThreeDigitsMatched, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_FourDigitMatch::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_FourDigitsMatched, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_FullMatch::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_AllFiveDigitsMatched, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_RecordPrizeNoRoom::
2019-02-27 21:18:56 +01:00
copyvar VAR_POKELOT_PRIZE_PLACE, VAR_0x8004
copyvar VAR_POKELOT_PRIZE_ITEM, VAR_0x8005
2019-11-04 22:41:42 +01:00
goto LilycoveCity_DepartmentStore_1F_EventScript_NoRoomForPrize
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_NoRoomForPrize::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_NoRoomForThis, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_GivePrizeFromEarlier::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_PrizeWeveBeenHolding, MSGBOX_DEFAULT
giveitem VAR_POKELOT_PRIZE_ITEM
goto_if_eq VAR_RESULT, FALSE, LilycoveCity_DepartmentStore_1F_EventScript_NoRoomForPrize
2019-02-27 21:18:56 +01:00
copyvar VAR_0x8004, VAR_POKELOT_PRIZE_PLACE
copyvar VAR_0x8005, VAR_POKELOT_PRIZE_ITEM
2019-11-04 22:41:42 +01:00
special TryPutLotteryWinnerReportOnAir
setvar VAR_POKELOT_PRIZE_ITEM, ITEM_NONE
2019-02-27 21:18:56 +01:00
setvar VAR_POKELOT_PRIZE_PLACE, 0
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_PokefanF::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_IBuyAllSortsOfThings, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_LittleGirl::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_MomBuyingMeFurniture, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_PokefanM::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_BuyingSomethingForAzumarill, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_Azumarill::
2017-11-10 02:21:31 +01:00
lock
faceplayer
waitse
2021-11-07 18:58:11 +01:00
playmoncry SPECIES_AZUMARILL, CRY_MODE_NORMAL
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_Azumarill, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
waitmoncry
release
end
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_EventScript_FloorNamesSign::
2019-11-04 22:41:42 +01:00
msgbox LilycoveCity_DepartmentStore_1F_Text_FloorNamesSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_Text_WelcomeToDeptStore:
2017-11-10 02:21:31 +01:00
.string "Welcome to LILYCOVE DEPARTMENT STORE.$"
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_Text_IBuyAllSortsOfThings:
2017-11-10 02:21:31 +01:00
.string "Whenever I come to the DEPARTMENT\n"
.string "STORE, I always end up buying all sorts\l"
2018-12-07 16:41:08 +01:00
.string "of things because it's so fun.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_Text_MomBuyingMeFurniture:
2017-11-10 02:21:31 +01:00
.string "Today, my mom is going to buy me some\n"
.string "nice furniture.$"
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_Text_BuyingSomethingForAzumarill:
2018-12-07 16:41:08 +01:00
.string "I'm buying something for my AZUMARILL\n"
2017-11-10 02:21:31 +01:00
.string "as a reward for winning a CONTEST.$"
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_Text_Azumarill:
2017-11-10 02:21:31 +01:00
.string "AZUMARILL: Maririroo!$"
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_Text_FloorNamesSign:
2017-11-10 02:21:31 +01:00
.string "1F: SERVICE COUNTER\n"
.string " LOTTERY CORNER\p"
2018-12-07 16:41:08 +01:00
.string "2F: TRAINER'S ZONE\p"
2017-11-10 02:21:31 +01:00
.string "3F: BATTLE COLLECTION\p"
.string "4F: TM CORNER\p"
.string "5F: POKé DOLL FLOOR\p"
.string "ROOFTOP: ROOFTOP PLAZA$"
2019-11-04 22:41:42 +01:00
@ Unused
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_Text_WirelessCommIsFun:
.string "Wireless Communication is a\n"
2018-12-07 16:41:08 +01:00
.string "lot of fun, isn't it?\p"
.string "I think it lets you do things that\n"
2018-12-07 16:41:08 +01:00
.string "weren't possible before.\p"
.string "For instance, you can now trade\n"
2018-12-07 16:41:08 +01:00
.string "with people you couldn't before.\p"
.string "I think it's going to be exciting!$"
2019-11-04 22:41:42 +01:00
@ Unused
2021-07-20 21:18:31 +02:00
LilycoveCity_DepartmentStore_1F_Text_SpreadWordAboutWirelessComm:
.string "I want to spread the word about how\n"
.string "fun Wireless Communication can be.$"
2017-11-10 02:21:31 +01:00