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,49 @@
{
"id": "MAP_MAUVILLE_CITY_HOUSE2",
"name": "MauvilleCity_House2",
"layout": "LAYOUT_HOUSE1",
"music": "MUS_RUSTBORO",
"region_map_section": "MAPSEC_MAUVILLE_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_WOMAN_3",
"x": 4,
"y": 5,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_LEFT",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0",
"script": "MauvilleCity_House2_EventScript_Woman",
"flag": "0"
}
],
"warp_events": [
{
"x": 3,
"y": 8,
"elevation": 0,
"dest_map": "MAP_MAUVILLE_CITY",
"dest_warp_id": 6
},
{
"x": 4,
"y": 8,
"elevation": 0,
"dest_map": "MAP_MAUVILLE_CITY",
"dest_warp_id": 6
}
],
"coord_events": [],
"bg_events": []
}

View File

@ -0,0 +1,65 @@
MauvilleCity_House2_MapScripts::
.byte 0
MauvilleCity_House2_EventScript_Woman::
lock
faceplayer
goto_if_set FLAG_RECEIVED_COIN_CASE, MauvilleCity_House2_EventScript_ReceivedCoinCase
msgbox MauvilleCity_House2_Text_BuyHarborMailAtSlateport, MSGBOX_DEFAULT
checkitem ITEM_HARBOR_MAIL
goto_if_eq VAR_RESULT, TRUE, MauvilleCity_House2_EventScript_AskToTradeForHarborMail
release
end
MauvilleCity_House2_EventScript_AskToTradeForHarborMail::
playse SE_PIN
applymovement VAR_LAST_TALKED, Common_Movement_ExclamationMark
waitmovement 0
applymovement VAR_LAST_TALKED, Common_Movement_Delay48
waitmovement 0
msgbox MauvilleCity_House2_Text_TradeHarborMailForCoinCase, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, MauvilleCity_House2_EventScript_AcceptTrade
goto_if_eq VAR_RESULT, NO, MauvilleCity_House2_EventScript_DeclineTrade
end
MauvilleCity_House2_EventScript_AcceptTrade::
msgbox MauvilleCity_House2_Text_IllTradeYouCoinCase, MSGBOX_DEFAULT
removeitem ITEM_HARBOR_MAIL
giveitem ITEM_COIN_CASE
setflag FLAG_RECEIVED_COIN_CASE
goto MauvilleCity_House2_EventScript_ReceivedCoinCase
end
MauvilleCity_House2_EventScript_ReceivedCoinCase::
msgbox MauvilleCity_House2_Text_UseCoinCaseAtGameCorner, MSGBOX_DEFAULT
release
end
MauvilleCity_House2_EventScript_DeclineTrade::
msgbox MauvilleCity_House2_Text_ThatsDisappointing, MSGBOX_DEFAULT
release
end
MauvilleCity_House2_Text_BuyHarborMailAtSlateport:
.string "If I had a BIKE, it'd be easy to cycle to\n"
.string "SLATEPORT for some shopping.\p"
.string "I'd be able to buy HARBOR MAIL at the\n"
.string "POKéMON MART in SLATEPORT…$"
MauvilleCity_House2_Text_TradeHarborMailForCoinCase:
.string "Oh! You have HARBOR MAIL?\n"
.string "Will you trade it for a COIN CASE?$"
MauvilleCity_House2_Text_IllTradeYouCoinCase:
.string "Oh, I'm so happy!\n"
.string "Okay, I'll trade you a COIN CASE!$"
MauvilleCity_House2_Text_UseCoinCaseAtGameCorner:
.string "That COIN CASE can be used\n"
.string "at the GAME CORNER.$"
MauvilleCity_House2_Text_ThatsDisappointing:
.string "Oh, that's disappointing.\p"
.string "A COIN CASE is needed for the\n"
.string "GAME CORNER.$"