import from github
This commit is contained in:
62
data/maps/RustboroCity_House1/map.json
Normal file
62
data/maps/RustboroCity_House1/map.json
Normal file
@ -0,0 +1,62 @@
|
||||
{
|
||||
"id": "MAP_RUSTBORO_CITY_HOUSE1",
|
||||
"name": "RustboroCity_House1",
|
||||
"layout": "LAYOUT_RUSTBORO_CITY_HOUSE1",
|
||||
"music": "MUS_RUSTBORO",
|
||||
"region_map_section": "MAPSEC_RUSTBORO_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_CAMPER",
|
||||
"x": 6,
|
||||
"y": 4,
|
||||
"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": "RustboroCity_House1_EventScript_Trader",
|
||||
"flag": "0"
|
||||
},
|
||||
{
|
||||
"graphics_id": "OBJ_EVENT_GFX_HIKER",
|
||||
"x": 9,
|
||||
"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": "RustboroCity_House1_EventScript_Hiker",
|
||||
"flag": "0"
|
||||
}
|
||||
],
|
||||
"warp_events": [
|
||||
{
|
||||
"x": 5,
|
||||
"y": 7,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_RUSTBORO_CITY",
|
||||
"dest_warp_id": 7
|
||||
},
|
||||
{
|
||||
"x": 6,
|
||||
"y": 7,
|
||||
"elevation": 0,
|
||||
"dest_map": "MAP_RUSTBORO_CITY",
|
||||
"dest_warp_id": 7
|
||||
}
|
||||
],
|
||||
"coord_events": [],
|
||||
"bg_events": []
|
||||
}
|
81
data/maps/RustboroCity_House1/scripts.inc
Normal file
81
data/maps/RustboroCity_House1/scripts.inc
Normal file
@ -0,0 +1,81 @@
|
||||
RustboroCity_House1_MapScripts::
|
||||
.byte 0
|
||||
|
||||
RustboroCity_House1_EventScript_Trader::
|
||||
lock
|
||||
faceplayer
|
||||
goto_if_set FLAG_RUSTBORO_NPC_TRADE_COMPLETED, RustboroCity_House1_EventScript_TradeCompleted
|
||||
setvar VAR_0x8008, INGAME_TRADE_SEEDOT
|
||||
copyvar VAR_0x8004, VAR_0x8008
|
||||
specialvar VAR_RESULT, GetInGameTradeSpeciesInfo
|
||||
copyvar VAR_0x8009, VAR_RESULT
|
||||
msgbox RustboroCity_House1_Text_IllTradeIfYouWant, MSGBOX_YESNO
|
||||
goto_if_eq VAR_RESULT, NO, RustboroCity_House1_EventScript_DeclineTrade
|
||||
special ChoosePartyMon
|
||||
waitstate
|
||||
copyvar VAR_0x800A, VAR_0x8004
|
||||
goto_if_eq VAR_0x8004, PARTY_NOTHING_CHOSEN, RustboroCity_House1_EventScript_DeclineTrade
|
||||
copyvar VAR_0x8005, VAR_0x800A
|
||||
specialvar VAR_RESULT, GetTradeSpecies
|
||||
copyvar VAR_0x800B, VAR_RESULT
|
||||
goto_if_ne VAR_RESULT, VAR_0x8009, RustboroCity_House1_EventScript_NotRequestedMon
|
||||
copyvar VAR_0x8004, VAR_0x8008
|
||||
copyvar VAR_0x8005, VAR_0x800A
|
||||
special CreateInGameTradePokemon
|
||||
special DoInGameTradeScene
|
||||
waitstate
|
||||
msgbox RustboroCity_House1_Text_PleaseBeGoodToMyPokemon, MSGBOX_DEFAULT
|
||||
setflag FLAG_RUSTBORO_NPC_TRADE_COMPLETED
|
||||
release
|
||||
end
|
||||
|
||||
RustboroCity_House1_EventScript_DeclineTrade::
|
||||
msgbox RustboroCity_House1_Text_YouDontWantToThatsOkay, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
RustboroCity_House1_EventScript_NotRequestedMon::
|
||||
bufferspeciesname STR_VAR_1, VAR_0x8009
|
||||
msgbox RustboroCity_House1_Text_DoesntLookLikeMonToMe, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
RustboroCity_House1_EventScript_TradeCompleted::
|
||||
msgbox RustboroCity_House1_Text_AnyPokemonCanBeCute, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
|
||||
RustboroCity_House1_EventScript_Hiker::
|
||||
msgbox RustboroCity_House1_Text_AllSortsOfPlaces, MSGBOX_NPC
|
||||
end
|
||||
|
||||
RustboroCity_House1_Text_IllTradeIfYouWant:
|
||||
.string "Huh? My POKéMON is cute?\n"
|
||||
.string "Sure, I knew that.\p"
|
||||
.string "But if you really want, I'm willing\n"
|
||||
.string "to trade it to you.\p"
|
||||
.string "I'll trade you my {STR_VAR_2} for\n"
|
||||
.string "a {STR_VAR_1} if you want.$"
|
||||
|
||||
RustboroCity_House1_Text_PleaseBeGoodToMyPokemon:
|
||||
.string "Eheheh…\n"
|
||||
.string "Please be good to my POKéMON.$"
|
||||
|
||||
RustboroCity_House1_Text_DoesntLookLikeMonToMe:
|
||||
.string "Huh? That doesn't look anything like\n"
|
||||
.string "a {STR_VAR_1} to me.$"
|
||||
|
||||
RustboroCity_House1_Text_YouDontWantToThatsOkay:
|
||||
.string "Oh, if you don't want to, that's okay.\n"
|
||||
.string "But my POKéMON is cute, you know…$"
|
||||
|
||||
RustboroCity_House1_Text_AnyPokemonCanBeCute:
|
||||
.string "Any POKéMON can be cute if you raise\n"
|
||||
.string "it with care and kindness.$"
|
||||
|
||||
RustboroCity_House1_Text_AllSortsOfPlaces:
|
||||
.string "In all sorts of places, there are all\n"
|
||||
.string "sorts of POKéMON and people.\p"
|
||||
.string "I find that fascinating, so I go to all\n"
|
||||
.string "sorts of places.$"
|
||||
|
Reference in New Issue
Block a user