import from github
This commit is contained in:
137
data/maps/LilycoveCity_DepartmentStore_1F/map.json
Normal file
137
data/maps/LilycoveCity_DepartmentStore_1F/map.json
Normal file
@ -0,0 +1,137 @@
|
||||
{
|
||||
"id": "MAP_LILYCOVE_CITY_DEPARTMENT_STORE_1F",
|
||||
"name": "LilycoveCity_DepartmentStore_1F",
|
||||
"layout": "LAYOUT_LILYCOVE_CITY_DEPARTMENT_STORE_1F",
|
||||
"music": "MUS_LILYCOVE",
|
||||
"region_map_section": "MAPSEC_LILYCOVE_CITY",
|
||||
"requires_flash": false,
|
||||
"weather": "WEATHER_NONE",
|
||||
"map_type": "MAP_TYPE_INDOOR",
|
||||
"allow_cycling": false,
|
||||
"allow_escaping": false,
|
||||
"allow_running": false,
|
||||
"show_map_name": false,
|
||||
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
|
||||
"connections": null,
|
||||
"object_events": [
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_BEAUTY",
|
||||
"x": 8,
|
||||
"y": 2,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "LilycoveCity_DepartmentStore_1F_EventScript_Greeter",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_BEAUTY",
|
||||
"x": 10,
|
||||
"y": 2,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
|
||||
"movement_range_x": 0,
|
||||
"movement_range_y": 0,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "LilycoveCity_DepartmentStore_1F_EventScript_LotteryClerk",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_POKEFAN_F",
|
||||
"x": 14,
|
||||
"y": 5,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_WANDER_AROUND",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "LilycoveCity_DepartmentStore_1F_EventScript_PokefanF",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_LITTLE_GIRL",
|
||||
"x": 4,
|
||||
"y": 4,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_WANDER_AROUND",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "LilycoveCity_DepartmentStore_1F_EventScript_LittleGirl",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_POKEFAN_M",
|
||||
"x": 3,
|
||||
"y": 6,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "LilycoveCity_DepartmentStore_1F_EventScript_PokefanM",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_AZUMARILL",
|
||||
"x": 2,
|
||||
"y": 6,
|
||||
"elevation": 3,
|
||||
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
|
||||
"movement_range_x": 1,
|
||||
"movement_range_y": 1,
|
||||
"trainer_type": "TRAINER_TYPE_NONE",
|
||||
"trainer_sight_or_berry_tree_id": "0",
|
||||
"script": "LilycoveCity_DepartmentStore_1F_EventScript_Azumarill",
|
||||
"flag": "0"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 8,
|
||||
"y": 7,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_LILYCOVE_CITY",
|
||||
"dest_warp_id": 0
|
||||
},
|
||||
{
|
||||
"x": 9,
|
||||
"y": 7,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_LILYCOVE_CITY",
|
||||
"dest_warp_id": 0
|
||||
},
|
||||
{
|
||||
"x": 16,
|
||||
"y": 1,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_LILYCOVE_CITY_DEPARTMENT_STORE_2F",
|
||||
"dest_warp_id": 0
|
||||
},
|
||||
{
|
||||
"x": 2,
|
||||
"y": 1,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_LILYCOVE_CITY_DEPARTMENT_STORE_ELEVATOR",
|
||||
"dest_warp_id": 0
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": [
|
||||
{
|
||||
"type": "sign",
|
||||
"x": 0,
|
||||
"y": 8,
|
||||
"elevation": 0,
|
||||
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
|
||||
"script": "LilycoveCity_DepartmentStore_1F_EventScript_FloorNamesSign"
|
||||
}
|
||||
]
|
||||
}
|
185
data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc
Normal file
185
data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc
Normal file
@ -0,0 +1,185 @@
|
||||
.set LOCALID_LOTTERY_CLERK, 2
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_MapScripts::
|
||||
.byte 0
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_Greeter::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_WelcomeToDeptStore, MSGBOX_NPC
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_LotteryClerk::
|
||||
lock
|
||||
faceplayer
|
||||
dotimebasedevents
|
||||
goto_if_ne VAR_POKELOT_PRIZE_ITEM, ITEM_NONE, LilycoveCity_DepartmentStore_1F_EventScript_GivePrizeFromEarlier
|
||||
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
|
||||
setflag FLAG_DAILY_PICKED_LOTO_TICKET
|
||||
message LilycoveCity_DepartmentStore_1F_Text_PleasePickTicket
|
||||
waitmessage
|
||||
special RetrieveLotteryNumber
|
||||
copyvar VAR_0x8008, VAR_RESULT
|
||||
special BufferLottoTicketNumber
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_TicketNumberIsXPleaseWait, MSGBOX_DEFAULT
|
||||
applymovement LOCALID_LOTTERY_CLERK, Common_Movement_WalkInPlaceFasterRight
|
||||
waitmovement 0
|
||||
playse SE_PC_ON
|
||||
special DoLotteryCornerComputerEffect
|
||||
special PickLotteryCornerTicket
|
||||
delay 220
|
||||
special EndLotteryCornerComputerEffect
|
||||
delay 10
|
||||
applymovement LOCALID_LOTTERY_CLERK, Common_Movement_FacePlayer
|
||||
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
|
||||
special TryPutLotteryWinnerReportOnAir
|
||||
goto LilycoveCity_DepartmentStore_1F_EventScript_PleaseVisitAgain2
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_TicketMatchPartyMon::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_TicketMatchesPartyMon, MSGBOX_DEFAULT
|
||||
return
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_TicketMatchPCMon::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_TicketMatchesPCMon, MSGBOX_DEFAULT
|
||||
return
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_ComeBackTomorrow::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_ComeBackTomorrow, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_PleaseVisitAgain::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_PleaseVisitAgain, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_NoMatch::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_NoNumbersMatched, MSGBOX_DEFAULT
|
||||
goto LilycoveCity_DepartmentStore_1F_EventScript_PleaseVisitAgain2
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_PleaseVisitAgain2::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_PleaseVisitAgain2, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_TwoDigitMatch::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_TwoDigitsMatched, MSGBOX_DEFAULT
|
||||
return
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_ThreeDigitMatch::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_ThreeDigitsMatched, MSGBOX_DEFAULT
|
||||
return
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_FourDigitMatch::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_FourDigitsMatched, MSGBOX_DEFAULT
|
||||
return
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_FullMatch::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_AllFiveDigitsMatched, MSGBOX_DEFAULT
|
||||
return
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_RecordPrizeNoRoom::
|
||||
copyvar VAR_POKELOT_PRIZE_PLACE, VAR_0x8004
|
||||
copyvar VAR_POKELOT_PRIZE_ITEM, VAR_0x8005
|
||||
goto LilycoveCity_DepartmentStore_1F_EventScript_NoRoomForPrize
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_NoRoomForPrize::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_NoRoomForThis, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_GivePrizeFromEarlier::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_PrizeWeveBeenHolding, MSGBOX_DEFAULT
|
||||
giveitem VAR_POKELOT_PRIZE_ITEM
|
||||
goto_if_eq VAR_RESULT, FALSE, LilycoveCity_DepartmentStore_1F_EventScript_NoRoomForPrize
|
||||
copyvar VAR_0x8004, VAR_POKELOT_PRIZE_PLACE
|
||||
copyvar VAR_0x8005, VAR_POKELOT_PRIZE_ITEM
|
||||
special TryPutLotteryWinnerReportOnAir
|
||||
setvar VAR_POKELOT_PRIZE_ITEM, ITEM_NONE
|
||||
setvar VAR_POKELOT_PRIZE_PLACE, 0
|
||||
release
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_PokefanF::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_IBuyAllSortsOfThings, MSGBOX_NPC
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_LittleGirl::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_MomBuyingMeFurniture, MSGBOX_NPC
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_PokefanM::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_BuyingSomethingForAzumarill, MSGBOX_NPC
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_Azumarill::
|
||||
lock
|
||||
faceplayer
|
||||
waitse
|
||||
playmoncry SPECIES_AZUMARILL, CRY_MODE_NORMAL
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_Azumarill, MSGBOX_DEFAULT
|
||||
waitmoncry
|
||||
release
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_EventScript_FloorNamesSign::
|
||||
msgbox LilycoveCity_DepartmentStore_1F_Text_FloorNamesSign, MSGBOX_SIGN
|
||||
end
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_Text_WelcomeToDeptStore:
|
||||
.string "Welcome to LILYCOVE DEPARTMENT STORE.$"
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_Text_IBuyAllSortsOfThings:
|
||||
.string "Whenever I come to the DEPARTMENT\n"
|
||||
.string "STORE, I always end up buying all sorts\l"
|
||||
.string "of things because it's so fun.$"
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_Text_MomBuyingMeFurniture:
|
||||
.string "Today, my mom is going to buy me some\n"
|
||||
.string "nice furniture.$"
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_Text_BuyingSomethingForAzumarill:
|
||||
.string "I'm buying something for my AZUMARILL\n"
|
||||
.string "as a reward for winning a CONTEST.$"
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_Text_Azumarill:
|
||||
.string "AZUMARILL: Maririroo!$"
|
||||
|
||||
LilycoveCity_DepartmentStore_1F_Text_FloorNamesSign:
|
||||
.string "1F: SERVICE COUNTER\n"
|
||||
.string " LOTTERY CORNER\p"
|
||||
.string "2F: TRAINER'S ZONE\p"
|
||||
.string "3F: BATTLE COLLECTION\p"
|
||||
.string "4F: TM CORNER\p"
|
||||
.string "5F: POKé DOLL FLOOR\p"
|
||||
.string "ROOFTOP: ROOFTOP PLAZA$"
|
||||
|
||||
@ Unused
|
||||
LilycoveCity_DepartmentStore_1F_Text_WirelessCommIsFun:
|
||||
.string "Wireless Communication is a\n"
|
||||
.string "lot of fun, isn't it?\p"
|
||||
.string "I think it lets you do things that\n"
|
||||
.string "weren't possible before.\p"
|
||||
.string "For instance, you can now trade\n"
|
||||
.string "with people you couldn't before.\p"
|
||||
.string "I think it's going to be exciting!$"
|
||||
|
||||
@ Unused
|
||||
LilycoveCity_DepartmentStore_1F_Text_SpreadWordAboutWirelessComm:
|
||||
.string "I want to spread the word about how\n"
|
||||
.string "fun Wireless Communication can be.$"
|
||||
|
Reference in New Issue
Block a user