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

154
data/maps/Route126/map.json Normal file
View File

@ -0,0 +1,154 @@
{
"id": "MAP_ROUTE126",
"name": "Route126",
"layout": "LAYOUT_ROUTE126",
"music": "MUS_ROUTE120",
"region_map_section": "MAPSEC_ROUTE_126",
"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": "up",
"offset": 0,
"map": "MAP_ROUTE124"
},
{
"direction": "right",
"offset": 0,
"map": "MAP_ROUTE127"
},
{
"direction": "dive",
"offset": 0,
"map": "MAP_UNDERWATER_ROUTE126"
}
],
"object_events": [
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 51,
"y": 65,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_SEQUENCE_LEFT_UP_RIGHT_DOWN",
"movement_range_x": 10,
"movement_range_y": 3,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route126_EventScript_Barry",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 56,
"y": 22,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_RIGHT_AND_LEFT",
"movement_range_x": 9,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route126_EventScript_Dean",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 63,
"y": 43,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_ROTATE_CLOCKWISE",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route126_EventScript_Nikki",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 9,
"y": 48,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_FACE_UP",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "3",
"script": "Route126_EventScript_Brenda",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
"x": 14,
"y": 1,
"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": "Route126_EventScript_ItemGreenShard",
"flag": "FLAG_ITEM_ROUTE_126_GREEN_SHARD"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 15,
"y": 66,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_IN_PLACE_LEFT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "7",
"script": "Route126_EventScript_Sienna",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 7,
"y": 66,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_IN_PLACE_RIGHT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "7",
"script": "Route126_EventScript_Pablo",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_F",
"x": 64,
"y": 5,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_IN_PLACE_LEFT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "7",
"script": "Route126_EventScript_Isobel",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_SWIMMER_M",
"x": 56,
"y": 5,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_WALK_IN_PLACE_RIGHT",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NORMAL",
"trainer_sight_or_berry_tree_id": "7",
"script": "Route126_EventScript_Leonardo",
"flag": "0"
}
],
"warp_events": [],
"coord_events": [],
"bg_events": []
}

View File

@ -0,0 +1,64 @@
Route126_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, Route126_OnTransition
.byte 0
Route126_OnTransition:
call_if_set FLAG_SYS_WEATHER_CTRL, Common_EventScript_SetAbnormalWeather
end
Route126_EventScript_Barry::
trainerbattle_single TRAINER_BARRY, Route126_Text_BarryIntro, Route126_Text_BarryDefeat
msgbox Route126_Text_BarryPostBattle, MSGBOX_AUTOCLOSE
end
Route126_EventScript_Dean::
trainerbattle_single TRAINER_DEAN, Route126_Text_DeanIntro, Route126_Text_DeanDefeat
msgbox Route126_Text_DeanPostBattle, MSGBOX_AUTOCLOSE
end
Route126_EventScript_Nikki::
trainerbattle_single TRAINER_NIKKI, Route126_Text_NikkiIntro, Route126_Text_NikkiDefeat
msgbox Route126_Text_NikkiPostBattle, MSGBOX_AUTOCLOSE
end
Route126_EventScript_Brenda::
trainerbattle_single TRAINER_BRENDA, Route126_Text_BrendaIntro, Route126_Text_BrendaDefeat
msgbox Route126_Text_BrendaPostBattle, MSGBOX_AUTOCLOSE
end
Route126_EventScript_Leonardo::
trainerbattle_single TRAINER_LEONARDO, Route126_Text_LeonardoIntro, Route126_Text_LeonardoDefeat
msgbox Route126_Text_LeonardoPostBattle, MSGBOX_AUTOCLOSE
end
Route126_EventScript_Isobel::
trainerbattle_single TRAINER_ISOBEL, Route126_Text_IsobelIntro, Route126_Text_IsobelDefeat
msgbox Route126_Text_IsobelPostBattle, MSGBOX_AUTOCLOSE
end
Route126_EventScript_Sienna::
trainerbattle_single TRAINER_SIENNA, Route126_Text_SiennaIntro, Route126_Text_SiennaDefeat
msgbox Route126_Text_SiennaPostBattle, MSGBOX_AUTOCLOSE
end
Route126_EventScript_Pablo::
trainerbattle_single TRAINER_PABLO_1, Route126_Text_PabloIntro, Route126_Text_PabloDefeat, Route126_EventScript_RegisterPablo
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route126_EventScript_RematchPablo
msgbox Route126_Text_PabloPostBattle, MSGBOX_DEFAULT
release
end
Route126_EventScript_RegisterPablo::
special PlayerFaceTrainerAfterBattle
waitmovement 0
msgbox Route126_Text_PabloRegister, MSGBOX_DEFAULT
register_matchcall TRAINER_PABLO_1
release
end
Route126_EventScript_RematchPablo::
trainerbattle_rematch TRAINER_PABLO_1, Route126_Text_PabloRematchIntro, Route126_Text_PabloRematchDefeat
msgbox Route126_Text_PabloPostRematch, MSGBOX_AUTOCLOSE
end