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

144
data/maps/Route131/map.json Normal file
View File

@ -0,0 +1,144 @@
{
"id": "MAP_ROUTE131",
"name": "Route131",
"layout": "LAYOUT_ROUTE131",
"music": "MUS_ROUTE119",
"region_map_section": "MAPSEC_ROUTE_131",
"requires_flash": false,
"weather": "WEATHER_SUNNY",
"map_type": "MAP_TYPE_OCEAN_ROUTE",
"allow_cycling": true,
"allow_escaping": false,
"allow_running": true,
"show_map_name": true,
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
"connections": [
{
"direction": "left",
"offset": 0,
"map": "MAP_PACIFIDLOG_TOWN"
},
{
"direction": "right",
"offset": 0,
"map": "MAP_ROUTE130"
}
],
"object_events": [
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 41,
"y": 32,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_SEQUENCE_UP_RIGHT_LEFT_DOWN",
"movement_range_x": 5,
"movement_range_y": 7,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route131_EventScript_Richard",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 18,
"y": 19,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN_LEFT_AND_RIGHT",
"movement_range_x": 0,
"movement_range_y": 7,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "4",
"script": "Route131_EventScript_Herman",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 10,
"y": 22,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN_UP_AND_RIGHT",
"movement_range_x": 6,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "4",
"script": "Route131_EventScript_Susie",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 31,
"y": 25,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_SEQUENCE_LEFT_DOWN_RIGHT_UP",
"movement_range_x": 3,
"movement_range_y": 5,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route131_EventScript_Kara",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 9,
"y": 16,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "1",
"script": "Route131_EventScript_Reli",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_TUBER_M_SWIMMING",
"x": 8,
"y": 16,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "1",
"script": "Route131_EventScript_Ian",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 52,
"y": 20,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_DOWN_AND_UP",
"movement_range_x": 1,
"movement_range_y": 3,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "5",
"script": "Route131_EventScript_Kevin",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 52,
"y": 27,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_UP_AND_DOWN",
"movement_range_x": 1,
"movement_range_y": 3,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "5",
"script": "Route131_EventScript_Talia",
"flag": "0"
}
],
"warp_events": [
{
"x": 36,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SKY_PILLAR_ENTRANCE",
"dest_warp_id": 0
}
],
"coord_events": [],
"bg_events": []
}

View File

@ -0,0 +1,57 @@
Route131_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, Route131_OnTransition
.byte 0
Route131_OnTransition:
call_if_ge VAR_SOOTOPOLIS_CITY_STATE, 4, Route131_EventScript_CheckSetAbnormalWeather
call Route131_EventScript_SetLayout
end
Route131_EventScript_SetLayout::
setmaplayoutindex LAYOUT_ROUTE131_SKY_PILLAR
return
Route131_EventScript_CheckSetAbnormalWeather::
call_if_set FLAG_SYS_WEATHER_CTRL, Common_EventScript_SetAbnormalWeather
return
Route131_EventScript_Richard::
trainerbattle_single TRAINER_RICHARD, Route131_Text_RichardIntro, Route131_Text_RichardDefeat
msgbox Route131_Text_RichardPostBattle, MSGBOX_AUTOCLOSE
end
Route131_EventScript_Herman::
trainerbattle_single TRAINER_HERMAN, Route131_Text_HermanIntro, Route131_Text_HermanDefeat
msgbox Route131_Text_HermanPostBattle, MSGBOX_AUTOCLOSE
end
Route131_EventScript_Susie::
trainerbattle_single TRAINER_SUSIE, Route131_Text_SusieIntro, Route131_Text_SusieDefeat
msgbox Route131_Text_SusiePostBattle, MSGBOX_AUTOCLOSE
end
Route131_EventScript_Kara::
trainerbattle_single TRAINER_KARA, Route131_Text_KaraIntro, Route131_Text_KaraDefeat
msgbox Route131_Text_KaraPostBattle, MSGBOX_AUTOCLOSE
end
Route131_EventScript_Reli::
trainerbattle_double TRAINER_RELI_AND_IAN, Route131_Text_ReliIntro, Route131_Text_ReliDefeat, Route131_Text_ReliNotEnoughMons
msgbox Route131_Text_ReliPostBattle, MSGBOX_AUTOCLOSE
end
Route131_EventScript_Ian::
trainerbattle_double TRAINER_RELI_AND_IAN, Route131_Text_IanIntro, Route131_Text_IanDefeat, Route131_Text_IanNotEnoughMons
msgbox Route131_Text_IanPostBattle, MSGBOX_AUTOCLOSE
end
Route131_EventScript_Talia::
trainerbattle_single TRAINER_TALIA, Route131_Text_TaliaIntro, Route131_Text_TaliaDefeat
msgbox Route131_Text_TaliaPostBattle, MSGBOX_AUTOCLOSE
end
Route131_EventScript_Kevin::
trainerbattle_single TRAINER_KEVIN, Route131_Text_KevinIntro, Route131_Text_KevinDefeat
msgbox Route131_Text_KevinPostBattle, MSGBOX_AUTOCLOSE
end