import from github

This commit is contained in:
2022-05-19 17:14:13 +00:00
parent 5247c34f50
commit ab32b30591
12612 changed files with 1905035 additions and 83 deletions

View File

@ -0,0 +1,98 @@
{
"id": "MAP_LILYCOVE_CITY_DEPARTMENT_STORE_ROOFTOP",
"name": "LilycoveCity_DepartmentStoreRooftop",
"layout": "LAYOUT_LILYCOVE_CITY_DEPARTMENT_STORE_ROOFTOP",
"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_MAN_2",
"x": 4,
"y": 4,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_UP",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0",
"script": "LilycoveCity_DepartmentStoreRooftop_EventScript_Man",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_MAN_3",
"x": 7,
"y": 5,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_WANDER_LEFT_AND_RIGHT",
"movement_range_x": 1,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0",
"script": "LilycoveCity_DepartmentStoreRooftop_EventScript_ThirstyMan",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_ROOFTOP_SALE_WOMAN",
"x": 6,
"y": 1,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0",
"script": "LilycoveCity_DepartmentStoreRooftop_EventScript_SaleWoman",
"flag": "FLAG_HIDE_LILYCOVE_DEPARTMENT_STORE_ROOFTOP_SALE_WOMAN"
},
{
"graphics_id": "OBJ_EVENT_GFX_WOMAN_3",
"x": 15,
"y": 5,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0",
"script": "LilycoveCity_DepartmentStoreRooftop_EventScript_SubstituteTutor",
"flag": "0"
}
],
"warp_events": [
{
"x": 13,
"y": 3,
"elevation": 0,
"dest_map": "MAP_LILYCOVE_CITY_DEPARTMENT_STORE_5F",
"dest_warp_id": 2
}
],
"coord_events": [],
"bg_events": [
{
"type": "sign",
"x": 9,
"y": 1,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "LilycoveCity_DepartmentStoreRooftop_EventScript_VendingMachine"
},
{
"type": "sign",
"x": 10,
"y": 1,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "LilycoveCity_DepartmentStoreRooftop_EventScript_VendingMachine"
}
]
}

View File

@ -0,0 +1,219 @@
LilycoveCity_DepartmentStoreRooftop_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, LilycoveCity_DepartmentStoreRooftop_OnTransition
.byte 0
LilycoveCity_DepartmentStoreRooftop_OnTransition:
getpokenewsactive POKENEWS_LILYCOVE
call_if_eq VAR_RESULT, TRUE, LilycoveCity_DepartmentStoreRooftop_EventScript_ShowSaleWoman
call_if_eq VAR_RESULT, FALSE, LilycoveCity_DepartmentStoreRooftop_EventScript_HideSaleWoman
end
LilycoveCity_DepartmentStoreRooftop_EventScript_ShowSaleWoman::
clearflag FLAG_HIDE_LILYCOVE_DEPARTMENT_STORE_ROOFTOP_SALE_WOMAN
return
LilycoveCity_DepartmentStoreRooftop_EventScript_HideSaleWoman::
setflag FLAG_HIDE_LILYCOVE_DEPARTMENT_STORE_ROOFTOP_SALE_WOMAN
return
LilycoveCity_DepartmentStoreRooftop_EventScript_SaleWoman::
lock
faceplayer
message gText_HowMayIServeYou
waitmessage
pokemartdecoration LilycoveCity_DepartmentStoreRooftop_PokemartDecor_ClearOutSale
msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
.align 2
LilycoveCity_DepartmentStoreRooftop_PokemartDecor_ClearOutSale:
.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
.2byte 0
release
end
LilycoveCity_DepartmentStoreRooftop_EventScript_Man::
lock
faceplayer
getpokenewsactive POKENEWS_LILYCOVE
call_if_eq VAR_RESULT, TRUE, LilycoveCity_DepartmentStoreRooftop_EventScript_ManClearOutSale
msgbox LilycoveCity_DepartmentStoreRooftop_Text_SetDatesForClearOutSales, MSGBOX_DEFAULT
release
end
LilycoveCity_DepartmentStoreRooftop_EventScript_ManClearOutSale::
msgbox LilycoveCity_DepartmentStoreRooftop_Text_BeenWaitingForClearOutSale, MSGBOX_DEFAULT
release
end
LilycoveCity_DepartmentStoreRooftop_EventScript_ThirstyMan::
msgbox LilycoveCity_DepartmentStoreRooftop_Text_BoneDryThirsty, MSGBOX_NPC
end
LilycoveCity_DepartmentStoreRooftop_EventScript_VendingMachine::
lockall
message LilycoveCity_DepartmentStoreRooftop_Text_WhichDrinkWouldYouLike
waitmessage
showmoneybox 0, 0
goto LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseDrink
end
LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseDrink::
multichoice 16, 0, MULTI_VENDING_MACHINE, FALSE
copyvar VAR_TEMP_1, VAR_RESULT
switch VAR_TEMP_1
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_FreshWater::
setvar VAR_TEMP_0, ITEM_FRESH_WATER
goto LilycoveCity_DepartmentStoreRooftop_EventScript_TryBuyDrink
end
LilycoveCity_DepartmentStoreRooftop_EventScript_SodaPop::
setvar VAR_TEMP_0, ITEM_SODA_POP
goto LilycoveCity_DepartmentStoreRooftop_EventScript_TryBuyDrink
end
LilycoveCity_DepartmentStoreRooftop_EventScript_Lemonade::
setvar VAR_TEMP_0, ITEM_LEMONADE
goto LilycoveCity_DepartmentStoreRooftop_EventScript_TryBuyDrink
end
LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneyFreshWater::
checkmoney 200
return
LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneySodaPop::
checkmoney 300
return
LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneyLemonade::
checkmoney 350
return
LilycoveCity_DepartmentStoreRooftop_EventScript_RemoveMoneyFreshWater::
removemoney 200
return
LilycoveCity_DepartmentStoreRooftop_EventScript_RemoveMoneySodaPop::
removemoney 300
return
LilycoveCity_DepartmentStoreRooftop_EventScript_RemoveMoneyLemonade::
removemoney 350
return
LilycoveCity_DepartmentStoreRooftop_EventScript_TryBuyDrink::
call_if_eq VAR_TEMP_1, 0, LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneyFreshWater
call_if_eq VAR_TEMP_1, 1, LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneySodaPop
call_if_eq VAR_TEMP_1, 2, LilycoveCity_DepartmentStoreRooftop_EventScript_CheckMoneyLemonade
goto_if_eq VAR_RESULT, FALSE, LilycoveCity_DepartmentStoreRooftop_EventScript_NotEnoughMoneyForDrink
checkitemspace VAR_TEMP_0
goto_if_eq VAR_RESULT, FALSE, LilycoveCity_DepartmentStoreRooftop_EventScript_NoRoomForDrink
call_if_eq VAR_TEMP_1, 0, LilycoveCity_DepartmentStoreRooftop_EventScript_RemoveMoneyFreshWater
call_if_eq VAR_TEMP_1, 1, LilycoveCity_DepartmentStoreRooftop_EventScript_RemoveMoneySodaPop
call_if_eq VAR_TEMP_1, 2, LilycoveCity_DepartmentStoreRooftop_EventScript_RemoveMoneyLemonade
updatemoneybox
bufferitemname STR_VAR_1, VAR_TEMP_0
playse SE_VEND
msgbox LilycoveCity_DepartmentStoreRooftop_Text_CanOfDrinkDroppedDown, MSGBOX_DEFAULT
additem VAR_TEMP_0
bufferitemname STR_VAR_2, VAR_TEMP_0
bufferstdstring STR_VAR_3, STDSTRING_ITEMS
msgbox gText_PutItemInPocket, MSGBOX_DEFAULT
random 64 @ 1/64 chance of an additional drink dropping
goto_if_ne VAR_RESULT, 0, LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseNewDrink
checkitemspace VAR_TEMP_0
goto_if_eq VAR_RESULT, FALSE, LilycoveCity_DepartmentStoreRooftop_EventScript_NoRoomForDrink
playse SE_VEND
msgbox LilycoveCity_DepartmentStoreRooftop_Text_ExtraCanOfDrinkDroppedDown, MSGBOX_DEFAULT
additem VAR_TEMP_0
bufferitemname STR_VAR_2, VAR_TEMP_0
bufferstdstring STR_VAR_3, 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
goto_if_ne VAR_RESULT, 0, LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseNewDrink
checkitemspace VAR_TEMP_0
goto_if_eq VAR_RESULT, 0, LilycoveCity_DepartmentStoreRooftop_EventScript_NoRoomForDrink
playse SE_VEND
msgbox LilycoveCity_DepartmentStoreRooftop_Text_ExtraCanOfDrinkDroppedDown, MSGBOX_DEFAULT
additem VAR_TEMP_0
bufferitemname STR_VAR_2, VAR_TEMP_0
bufferstdstring STR_VAR_3, STDSTRING_ITEMS
msgbox gText_PutItemInPocket, MSGBOX_DEFAULT
goto LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseNewDrink
end
LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseNewDrink::
message LilycoveCity_DepartmentStoreRooftop_Text_WhichDrinkWouldYouLike
waitmessage
goto LilycoveCity_DepartmentStoreRooftop_EventScript_ChooseDrink
end
LilycoveCity_DepartmentStoreRooftop_EventScript_NotEnoughMoneyForDrink::
msgbox LilycoveCity_DepartmentStoreRooftop_Text_NotEnoughMoney, MSGBOX_DEFAULT
goto LilycoveCity_DepartmentStoreRooftop_EventScript_ExitVendingMachine
end
LilycoveCity_DepartmentStoreRooftop_EventScript_NoRoomForDrink::
msgbox gText_TheBagIsFull, MSGBOX_DEFAULT
goto LilycoveCity_DepartmentStoreRooftop_EventScript_ExitVendingMachine
end
LilycoveCity_DepartmentStoreRooftop_EventScript_ExitVendingMachine::
hidemoneybox
releaseall
end
LilycoveCity_DepartmentStoreRooftop_Text_SetDatesForClearOutSales:
.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_BeenWaitingForClearOutSale:
.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_BoneDryThirsty:
.string "Ohh… I'm bone-dry thirsty!$"
LilycoveCity_DepartmentStoreRooftop_Text_WhichDrinkWouldYouLike:
.string "It's a VENDING MACHINE.\n"
.string "Which drink would you like?$"
LilycoveCity_DepartmentStoreRooftop_Text_CanOfDrinkDroppedDown:
.string "Clang!\p"
.string "A can of {STR_VAR_1} dropped down.$"
LilycoveCity_DepartmentStoreRooftop_Text_ExtraCanOfDrinkDroppedDown:
.string "Clang!\p"
.string "Score! An extra can of {STR_VAR_1}\n"
.string "dropped down!$"
LilycoveCity_DepartmentStoreRooftop_Text_NotEnoughMoney:
.string "Not enough money…$"
LilycoveCity_DepartmentStoreRooftop_Text_DecidedAgainstBuyingDrink:
.string "Decided against buying a drink.$"